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/44533] New: [4.6 Regression] Revision 160679 miscompiles capacita.f90 with -O3 -finline-limit=600 -flto


On x86_64-apple-darwin10 the polyhedron test capacita.f90 is miscompiled with
'-O3 -finline-limit=600 -flto' at revision 160679 (revision 160678 is fine):

[macbook] lin/test% gfcp -O3 -finline-limit=600 -flto capacita.f90
[macbook] lin/test% a.out 
 Give: N_x, N_y, GridSize_X, GridSize_Y, DoCircle, UseFFT, UsePreco

   N_x and N_y give the grid division in x and y-directions and
   should be powers of 2, DoCircle and UseFFT are T or F (true
   or false). If DoCircle=T, the case of an ellipse is computed
   (circle: C = 8*eps0*R, P = 16/3*eps0*R^3), else that of the
   completely filled grid. UseFFT is for increased speed.
 Calculating G
 Transforming G
Segmentation fault

Backtrace is

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000404
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   a.out                               0x0000000100005230
__solv_cap_MOD_fourir2d + 3136
1   a.out                               0x000000010000d580
__solv_cap_MOD_init_solve + 2512
2   a.out                               0x000000010000ddaf MAIN__.2138 + 1647
3   a.out                               0x000000010000e0b1 main + 33
4   a.out                               0x0000000100000f24 start + 52

Note that '-fno-tree-vectorize' does not remove the crash, while it does not
occur with '-O2 -ftree-vectorize' (nor on powerpc-apple-darwin9 at revision
160686).


-- 
           Summary: [4.6 Regression] Revision 160679 miscompiles
                    capacita.f90 with -O3 -finline-limit=600 -flto
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dominiq at lps dot ens dot fr
 GCC build triplet: x86_64-apple-darwin10
  GCC host triplet: x86_64-apple-darwin10
GCC target triplet: x86_64-apple-darwin10


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


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