Bug 39039 - segfault with common block and "-O1 -ftree-vectorize -msse2"
Summary: segfault with common block and "-O1 -ftree-vectorize -msse2"
Status: RESOLVED DUPLICATE of bug 37216
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.4.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: wrong-code
Depends on:
Blocks:
 
Reported: 2009-01-30 04:49 UTC by David Billinghurst
Modified: 2009-01-30 09:56 UTC (History)
6 users (show)

See Also:
Host: i686-pc-cygwin
Target: i686-pc-cygwin
Build: i686-pc-cygwin
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Billinghurst 2009-01-30 04:49:36 UTC
The following program segfaults when compiled with "-O1 -ftree-vectorize -msse2".  Compiler is gfortran trunk revision 143693 (4.4.0 20090127).

Also fails with higher levels of optimization but requires both -ftree-vectorize and -msse2.


program common
   real (kind=8) b(5)
   common /com1/b
   b = 100
end

The case is reduced from gfortran.fortran-torture/execute/common.f90
Comment 1 Uroš Bizjak 2009-01-30 09:56:00 UTC
You can workaround this PE/COFF problem with -fno-common.

*** This bug has been marked as a duplicate of 37216 ***