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/36300] [4.1/4.2/4.3 Regression] Incorrect type used for inlined expression



------- Comment #17 from rguenth at gcc dot gnu dot org  2008-05-28 13:46 -------
Subject: Bug 36300

Author: rguenth
Date: Wed May 28 13:45:47 2008
New Revision: 136085

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

        PR middle-end/36300
        * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
        not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.

        * gcc.dg/pr36300-1.c: New testcase.
        * gcc.dg/pr36300-2.c: Likewise.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/pr36300-1.c
    branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/pr36300-2.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=36300


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