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 rtl-optimization/26272] New: [4.2 Regresssion] gcc.c-torture/execute/built-in-setjmp.c fails at -O2 and above


[dandelion:~/src/gcc/local] pinskia% /Volumes/temp/gcc/local/bin/gcc -O2
gcc/gcc/testsuite/gcc.c-torture/execute/built-in-setjmp.c
[dandelion:~/src/gcc/local] pinskia% !./
./a.out
Bus error
[dandelion:~/src/gcc/local] pinskia% /Volumes/temp/gcc/local/bin/gcc -O2
gcc/gcc/testsuite/gcc.c-torture/execute/built-in-setjmp.c
-fno-move-loop-invariants
[dandelion:~/src/gcc/local] pinskia% !./
./a.out
[dandelion:~/src/gcc/local] pinskia% 

It is moving the reloading of the PIC register from inside the loop to outside:
(insn 45 144 41 2 (set (reg:SI 168)
        (unspec:SI [
                (symbol_ref:SI ("*LSJR4"))
            ] 15)) 16 {load_macho_picbase_si} (nil)
    (nil))
;; End of basic block 2, registers live:
 (nil)

Is that really valid (or should there be an use on pc)?


-- 
           Summary: [4.2 Regresssion] gcc.c-torture/execute/built-in-
                    setjmp.c fails at -O2 and above
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
GCC target triplet: powerpc-darwin7.9.0


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


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