This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Move some i386 code to filescope


Hello!

I have a pragma for darwin that wants to be able to access these
values... by moving them to filescope instead of function local, I can
then access them.  I want to get at things like:

processor_target_table[ix86_tune].cost

But there is global variable "ix86_cost" just for this purpose. It is initialized to selected -mtune= target as:

 if (optimize_size)
   ix86_cost = &size_cost;
 else
   ix86_cost = processor_target_table[ix86_tune].cost;

Uros.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]