This is the mail archive of the gcc@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: Can we speed up the gcc_target structure?


On Sun, 18 Jan 2004, Kaveh R. Ghazi wrote:

> Something I considered was const-ifying the targetm structure so that
> GCC might optimize some of the call points better.  This would work,
> but for the unfortunate tendency of GCC to modify these values at
> runtime.  I can work around that by inserting an extra function layer,
> except for targetm members that aren't functions already themselves.
> Take a look at the targetm.asm_out.unaligned_op.di assignment in
> sparc.c

When --enable-intermodule is used, does (or should) the compiler manage to
detect which parts of the target structure are in fact constant (even
without constifying)?

-- 
Joseph S. Myers
jsm@polyomino.org.uk


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