In the test-case to be attached and entered in gcc.c-torture/execute
alt. gcc.dg/torture as prNNNNN-1.c, there's a call to get_n, which
is moved out of the loop.  This happens before rtl passes.
The FC3-bundled gcc known as gcc-3.4.2-6.fc3 (for i686) does not
have this bug.  Trunk as of LAST_UPDATED "Sat Feb 19 00:34:51 UTC 2005"
has this bug, apparent with cris-axis-elf and i686-pc-linux-gnu.

-- 
           Summary: [4.0 regression] static call incorrectly judged
                    constant, moved out of loop
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hp at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu, cris-axis-elf


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

Reply via email to