public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug middle-end/56443] New: internal compiler error: verify_gimple failed at -O[1-2] -ftree-vectorize @ 2013-02-25 12:18 silver24k at gmail dot com 2013-02-25 12:46 ` [Bug middle-end/56443] [4.8 Regression] " jakub at gcc dot gnu.org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: silver24k at gmail dot com @ 2013-02-25 12:18 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56443 Bug #: 56443 Summary: internal compiler error: verify_gimple failed at -O[1-2] -ftree-vectorize Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned@gcc.gnu.org ReportedBy: silver24k@gmail.com The following codes ICE at -O[1-2] -ftree-vectorize typedef int myint __attribute__ ((__aligned__(16))); int a1[1024] __attribute__((__aligned__(16))); int a2[1024] __attribute__((__aligned__(16))); void test (int n, myint * __restrict__ p1, myint * __restrict__ p2) { while (n--) *p1++ = *p2++ + 1; } int main (void) { test (1024, a1, a2); return 0; } MBP:~me$ g++-mp-4.8 -c -Wall -O1 -ftree-vectorize ice.cpp ice.cpp: In function 'void test(int, myint*, myint*)': ice.cpp:6:6: error: type mismatch in binary expression void test (int n, myint * __restrict__ p1, myint * __restrict__ p2) { ^ vector(4) unsigned int vector(4) unsigned int vector(4) int vect_var_.18_58 = vect_var_.17_56 + vect_cst_.19_57; ice.cpp:6:6: internal compiler error: verify_gimple failed ice.cpp:6:6: internal compiler error: Abort trap: 6 g++-mp-4.8: internal compiler error: Abort trap: 6 (program cc1plus) Abort trap: 6 MBP:~me$ g++-mp-4.8 -v Using built-in specs. COLLECT_GCC=g++-mp-4.8 COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin12/4.8.0/lto-wrapper Target: x86_64-apple-darwin12 Configured with: ../gcc-4.8-20130217/configure --prefix=/opt/local --build=x86_64-apple-darwin12 --enable-languages=c,c++,objc,obj-c++,fortran,java --libdir=/opt/local/lib/gcc48 --includedir=/opt/local/include/gcc48 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.8 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.8 --with-gxx-include-dir=/opt/local/include/gcc48/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-ppl=/opt/local --with-cloog=/opt/local --enable-cloog-backend=isl --disable-cloog-version-check --enable-stage1-checking --disable-multilib --enable-lto --enable-libstdcxx-time --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --with-pkgversion='MacPorts gcc48 4.8-20130217_0' Thread model: posix gcc version 4.8.0 20130217 (experimental) (MacPorts gcc48 4.8-20130217_0) ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/56443] [4.8 Regression] internal compiler error: verify_gimple failed at -O[1-2] -ftree-vectorize 2013-02-25 12:18 [Bug middle-end/56443] New: internal compiler error: verify_gimple failed at -O[1-2] -ftree-vectorize silver24k at gmail dot com @ 2013-02-25 12:46 ` jakub at gcc dot gnu.org 2013-02-25 13:11 ` jakub at gcc dot gnu.org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: jakub at gcc dot gnu.org @ 2013-02-25 12:46 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56443 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2013-02-25 CC| |jakub at gcc dot gnu.org AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org |gnu.org | Target Milestone|--- |4.8.0 Summary|internal compiler error: |[4.8 Regression] internal |verify_gimple failed at |compiler error: |-O[1-2] -ftree-vectorize |verify_gimple failed at | |-O[1-2] -ftree-vectorize Ever Confirmed|0 |1 --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-02-25 12:46:04 UTC --- Started with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192390 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/56443] [4.8 Regression] internal compiler error: verify_gimple failed at -O[1-2] -ftree-vectorize 2013-02-25 12:18 [Bug middle-end/56443] New: internal compiler error: verify_gimple failed at -O[1-2] -ftree-vectorize silver24k at gmail dot com 2013-02-25 12:46 ` [Bug middle-end/56443] [4.8 Regression] " jakub at gcc dot gnu.org @ 2013-02-25 13:11 ` jakub at gcc dot gnu.org 2013-02-26 9:59 ` jakub at gcc dot gnu.org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: jakub at gcc dot gnu.org @ 2013-02-25 13:11 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56443 --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-02-25 13:11:08 UTC --- Created attachment 29535 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29535 gcc48-pr56443.patch Untested fix. Going forward, you want to avoid using the overaligned types for these purposes, better use __builtin_assume_aligned. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/56443] [4.8 Regression] internal compiler error: verify_gimple failed at -O[1-2] -ftree-vectorize 2013-02-25 12:18 [Bug middle-end/56443] New: internal compiler error: verify_gimple failed at -O[1-2] -ftree-vectorize silver24k at gmail dot com 2013-02-25 12:46 ` [Bug middle-end/56443] [4.8 Regression] " jakub at gcc dot gnu.org 2013-02-25 13:11 ` jakub at gcc dot gnu.org @ 2013-02-26 9:59 ` jakub at gcc dot gnu.org 2013-02-26 10:30 ` jakub at gcc dot gnu.org 2013-02-26 10:33 ` jakub at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: jakub at gcc dot gnu.org @ 2013-02-26 9:59 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56443 --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-02-26 09:59:17 UTC --- Author: jakub Date: Tue Feb 26 09:59:12 2013 New Revision: 196277 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196277 Log: PR tree-optimization/56443 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument to type_for_mode langhook. * gcc.dg/torture/pr56443.c: New test. Added: trunk/gcc/testsuite/gcc.dg/torture/pr56443.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-vect-stmts.c ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/56443] [4.8 Regression] internal compiler error: verify_gimple failed at -O[1-2] -ftree-vectorize 2013-02-25 12:18 [Bug middle-end/56443] New: internal compiler error: verify_gimple failed at -O[1-2] -ftree-vectorize silver24k at gmail dot com ` (2 preceding siblings ...) 2013-02-26 9:59 ` jakub at gcc dot gnu.org @ 2013-02-26 10:30 ` jakub at gcc dot gnu.org 2013-02-26 10:33 ` jakub at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: jakub at gcc dot gnu.org @ 2013-02-26 10:30 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56443 --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-02-26 10:29:58 UTC --- Author: jakub Date: Tue Feb 26 10:29:47 2013 New Revision: 196279 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196279 Log: PR tree-optimization/56443 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument to type_for_mode langhook. * gcc.dg/torture/pr56443.c: New test. Added: branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/torture/pr56443.c Modified: branches/gcc-4_7-branch/gcc/ChangeLog branches/gcc-4_7-branch/gcc/testsuite/ChangeLog branches/gcc-4_7-branch/gcc/tree-vect-stmts.c ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/56443] [4.8 Regression] internal compiler error: verify_gimple failed at -O[1-2] -ftree-vectorize 2013-02-25 12:18 [Bug middle-end/56443] New: internal compiler error: verify_gimple failed at -O[1-2] -ftree-vectorize silver24k at gmail dot com ` (3 preceding siblings ...) 2013-02-26 10:30 ` jakub at gcc dot gnu.org @ 2013-02-26 10:33 ` jakub at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: jakub at gcc dot gnu.org @ 2013-02-26 10:33 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56443 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-02-26 10:31:47 UTC --- Fixed. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-02-26 10:33 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-02-25 12:18 [Bug middle-end/56443] New: internal compiler error: verify_gimple failed at -O[1-2] -ftree-vectorize silver24k at gmail dot com 2013-02-25 12:46 ` [Bug middle-end/56443] [4.8 Regression] " jakub at gcc dot gnu.org 2013-02-25 13:11 ` jakub at gcc dot gnu.org 2013-02-26 9:59 ` jakub at gcc dot gnu.org 2013-02-26 10:30 ` jakub at gcc dot gnu.org 2013-02-26 10:33 ` jakub at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).