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: [PATCH] Introduce abi_word_mode


Mark Mitchell wrote:

> I think the optimization is just fine -- but I think that it might be 
> that some code (namely, code that uses attribute ((mode (word)))) would 
> need to change to take advantage of the optimization.  (For example, it 
> could use SImode instead, or just "int".)  In other words, I think it's 
> too strong a statement to say that not allowing the change to mode(word) 
> prevents the optimization.  You could even add a warning for uses of 
> mode(word) to help catch problems when recompiling programs; it would be 
> a mechanical change.

Well, if we *can* move away from existing uses of attribute ((mode (word))),
in particular in current libgcc headers, without breaking the ABI on any
platform, I'd certainly agree that would be a good thing.  I'm not really
concerned all that much about users of attribute ((mode (word))) outside
of GCC.

I'm not sure how feasible that is though ...

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  Linux on zSeries Development
  Ulrich.Weigand@de.ibm.com


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