This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/18665] [3.4/4.0 Regression] -ftrapv borks up simple integer arithmetic
- From: "schlie at comcast dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Dec 2004 14:36:12 -0000
- Subject: [Bug target/18665] [3.4/4.0 Regression] -ftrapv borks up simple integer arithmetic
- References: <20041124222749.18665.skunk@iskunk.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From schlie at comcast dot net 2004-12-07 14:36 -------
Subject: [3.4/4.0 Regression] -ftrapv borks up simple
integer arithmetic
> ------- Additional Comment #8 From Eric Botcazou 2004-12-06 18:45
> The (useless?) mode promotion from SImode to DImode comes from:
> http://gcc.gnu.org/ml/gcc-patches/2003-02/msg00625.html
>
The c4X inspired logic seems basically wrong; built-in function type sizes
should likely be determined by the mode/size (QI/HI/SI/etc.) specified by
the target, not words-per-"anything" (where 8-bit targets may define a short
as being 1 word-wide, and long as 4-words-wide; 64-bit targets may specify a
short as being 1/4-words-wide, and long as 1-words-wide).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18665