[Bug target/85613] New: [8/9 regression] FAIL: gfortran.dg/pr51434.f90 -O1 execution test

schwab@linux-m68k.org gcc-bugzilla@gcc.gnu.org
Wed May 2 16:16:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85613

            Bug ID: 85613
           Summary: [8/9 regression] FAIL: gfortran.dg/pr51434.f90   -O1
                    execution test
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: schwab@linux-m68k.org
  Target Milestone: ---
            Target: powerpc*-*-*

The test crashes at -O1, but not on other opt levels.  The offset from
.LANCHOR0 is miscalculated for the A.1.2066 object, at -O1 there is another
object (c.2059) placed before it.

-O2 vs -O1:
        .globl __foo_MOD_s
        .globl __foo_MOD___vtab_foo_A
        .globl __foo_MOD___def_init_foo_A
-       .set    c.2059,__foo_MOD___def_init_foo_A
        .section        .rodata
        .align 2
        .set    .LANCHOR0,. + 0
@@ -86,6 +81,28 @@ options.3.2073:
        .long   1
        .long   0
        .long   31
+       .type   c.2059, @object
+       .size   c.2059, 12
+c.2059:
+       .long   5
+       .ascii  "a"
+       .ascii  "b"
+       .ascii  "c"
+       .ascii  "d"
+       .ascii  "e"
+       .ascii  " "
+       .ascii  " "
+       .ascii  " "
+       .ascii  " "
+       .ascii  " "
+       .ascii  " "
+       .ascii  " "
+       .ascii  " "
+       .ascii  " "
+       .ascii  " "
+       .ascii  " "
+       .ascii  " "
+       .ascii  " "
        .type   A.1.2066, @object
        .size   A.1.2066, 20
 A.1.2066:


More information about the Gcc-bugs mailing list