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 target/25765] New: gfortran.dg/assign_2.f90 -O0 fails


gfortran.dg/assign_2.f90 at -O0 fails because the subtraction between labels in
different sections cannot be done, well it is really the last label is not in
the same section when it should be as there is no nop after the last label.

we get something like:
"L00000000001$pb":
L6:
        popl    %ebx
        leal    _j.0.799-"L00000000001$pb"(%ebx), %eax
        movl    $-1, (%eax)
        leal    _j.1.800-"L00000000001$pb"(%ebx), %edx
        leal    L2-"L00000000001$pb"(%ebx), %eax
....

        leave
        ret
L2:  // <--- there should be a nop here.
        .data
        .align 2
_j.0.799:


-- 
           Summary: gfortran.dg/assign_2.f90 -O0 fails
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: assemble-failure
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
GCC target triplet: i686-apple-darwin


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


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