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 tree-optimization/36008] [4.3/4.4 Regression] Function produces wrong results when inlined.



------- Comment #15 from jakub at gcc dot gnu dot org  2008-04-24 16:20 -------
Subject: Bug 36008

Author: jakub
Date: Thu Apr 24 16:19:22 2008
New Revision: 134636

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134636
Log:
        PR tree-optimization/36008
        * fold-const.c (try_move_mult_to_index): If s == NULL, divide
        the original op1, rather than delta by step.

        * gcc.c-torture/execute/20080424-1.c: New test.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/gcc.c-torture/execute/20080424-1.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=36008


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