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/37882] [4.3/4.4 Regression] Bitfield miscompilation



------- Comment #4 from jakub at gcc dot gnu dot org  2008-10-22 20:09 -------
Subject: Bug 37882

Author: jakub
Date: Wed Oct 22 20:08:01 2008
New Revision: 141306

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141306
Log:
        PR middle-end/37882
        * fold-const.c (build_range_type): For 1 .. signed_max
        range call build_nonstandard_inter_type if signed_type_for
        returned a type with bigger precision.

        * gcc.c-torture/execute/pr37882.c: New test.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/gcc.c-torture/execute/pr37882.c
Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/fold-const.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


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


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