This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Introduce abi_word_mode
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: mark at codesourcery dot com (Mark Mitchell)
- Cc: iant at google dot com (Ian Lance Taylor), geoffk at apple dot com (Geoffrey Keating), Andreas dot Krebbel at de dot ibm dot com (Andreas Krebbel), gcc-patches at gcc dot gnu dot org
- Date: Tue, 10 Oct 2006 00:52:22 +0200 (CEST)
- Subject: 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