This is the mail archive of the gcc-bugs@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]

[Bug target/18665] [3.4/4.0 Regression] -ftrapv borks up simple integer arithmetic


------- 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


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