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 lto/55021] New: [4.8 Regression] The tests gfortran.dg/integer_exponentiation_5.F90 and masklr_1.F90 are miscompiled with -flto after revision 192529


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

             Bug #: 55021
           Summary: [4.8 Regression] The tests
                    gfortran.dg/integer_exponentiation_5.F90 and
                    masklr_1.F90 are miscompiled with -flto after revision
                    192529
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dominiq@lps.ens.fr
                CC: rguenth@gcc.gnu.org


The tests gfortran.dg/integer_exponentiation_5.F90 (with -O1) and masklr_1.F90
are miscompiled with -flto after revision 192529 (r192528 is OK):

[macbook] f90/bug% /opt/gcc/gcc4.8p-192559/bin/gfortran
/opt/gcc/work/gcc/testsuite/gfortran.dg/integer_exponentiation_5.F90
-fno-range-check -O1 -flto
[macbook] f90/bug% a.out                                                        
Backtrace for this error:
#0  0x1000041ae
#1  0x100004536
#2  0x1000d6108
#3  0x100000c19
#4  0x100000cd5
Abort

[macbook] f90/bug% /opt/gcc/gcc4.8p-192559/bin/gfortran
/opt/gcc/work/gcc/testsuite/gfortran.dg/masklr_1.F90 -ffree-line-length-none
-flto
[macbook] f90/bug% a.out 

Backtrace for this error:
#0  0x1000051ae
#1  0x100005536
#2  0x1000d7108
#3  0x100001b33
#4  0x100001cff
Abort

Reduced test case

module mod_check
  implicit none

contains

  subroutine check_i8 (a, b)
    integer(kind=8), intent(in) :: a, b
    if (a /= b) call abort()
  end subroutine check_i8

end module mod_check

program test
  use mod_check
  implicit none

  integer(kind=8) :: i8

  i8 = 3_8
  call check_i8(i8**43_8,3_8**43_8)

end program test


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