This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Move some i386 code to filescope
- From: "Uros Bizjak" <ubizjak at gmail dot com>
- To: "GCC Patches" <gcc-patches at gcc dot gnu dot org>
- Cc: "Mike Stump" <mrs at apple dot com>
- Date: Tue, 22 May 2007 07:49:17 +0200
- Subject: 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.