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 middle-end/32628] [4.3 Regression] bogus integer overflow warning



------- Comment #9 from rguenth at gcc dot gnu dot org  2008-01-16 21:52 -------
Subject: Bug 32628

Author: rguenth
Date: Wed Jan 16 21:51:57 2008
New Revision: 131579

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131579
Log:
2008-01-16  Richard Guenther  <rguenther@suse.de>

        PR middle-end/32628
        * fold-const.c (fold_convert_const_int_from_int): Do not
        set overflow if that occured only because of a sign extension
        change when converting from/to a sizetype with the same
        precision and signedness.

        * gcc.dg/overflow-warn-7.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/overflow-warn-7.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32628


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