This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/58039] New: -ftree-vectorizer make a loop crash on non-aligned memory
- From: "bar at mariadb dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 01 Aug 2013 04:52:51 +0000
- Subject: [Bug tree-optimization/58039] New: -ftree-vectorizer make a loop crash on non-aligned memory
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58039
Bug ID: 58039
Summary: -ftree-vectorizer make a loop crash on non-aligned
memory
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: bar at mariadb dot org
Created attachment 30578
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30578&action=edit
The program that repeats the report crash
If I compile the attached program using:
gcc -Wall -O2 -fno-inline -ftree-vectorize -ftree-vectorizer-verbose=2 a.c
it crashes with "segmentation fault".
$ gcc --version
gcc (GCC) 4.7.2 20120921 (Red Hat 4.7.2-2)
Processor: Intel Coreâ i7-3520M CPU @ 2.90GHz à 4
The program is a minimal extract from the MariaDB-10.0 sources
that reproduces the crash.
The GCC flags that are actually used in the debug build of MariaDB are:
gcc -Wall -O3 -fno-inline a.c
but after tracking it down we noticed that the actually reason is
-ftree-vectorize.