public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cjxgm at 126 dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/56120] New: built-in SIMD with statement expression causes ICE: in iterative_hash_expr, at tree.c:6990 when optimization is on Date: Sun, 27 Jan 2013 06:07:00 -0000 [thread overview] Message-ID: <bug-56120-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56120 Bug #: 56120 Summary: built-in SIMD with statement expression causes ICE: in iterative_hash_expr, at tree.c:6990 when optimization is on Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned@gcc.gnu.org ReportedBy: cjxgm@126.com Target: i686-pc-linux-gnu Build: /build/src/gcc-4.7.2/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c ++ --enable-shared --ena The following is the code: typedef float v4 __attribute__((vector_size(sizeof(float)*4))); v4 v4refract(v4 n, v4 v, float ior) { return n * ({ v4 __t = (n) * (v); __t[0] + __t[1] + __t[2]; }); } the compiler output: $ gcc -msse -O3 -c -o v.o v.c v.c: In function 'v4refract': v.c:5:11: internal compiler error: in iterative_hash_expr, at tree.c:6990 Please submit a full bug report, with preprocessed source if appropriate. See <https://bugs.archlinux.org/> for instructions. Compilation succeeds when the optimization level is 0 but if the optimization level is above 0, whatever 1, 2 or 3, produces this ICE.
next reply other threads:[~2013-01-27 6:07 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-01-27 6:07 cjxgm at 126 dot com [this message] 2013-01-27 7:40 ` [Bug middle-end/56120] " pinskia at gcc dot gnu.org 2013-01-27 9:56 ` glisse at gcc dot gnu.org 2021-07-24 4:11 ` pinskia at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-56120-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).