public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug tree-optimization/64295] New: [5 Regression] ICE: SIGSEGV (infinite recursion) with -frounding-math -funsafe-math-optimizations @ 2014-12-13 9:44 zsojka at seznam dot cz 2014-12-13 17:34 ` [Bug tree-optimization/64295] " jakub at gcc dot gnu.org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: zsojka at seznam dot cz @ 2014-12-13 9:44 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64295 Bug ID: 64295 Summary: [5 Regression] ICE: SIGSEGV (infinite recursion) with -frounding-math -funsafe-math-optimizations Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Created attachment 34273 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34273&action=edit reduced testcase Compiler output: $ gcc -O -frounding-math -funsafe-math-optimizations testcase.c gcc: internal compiler error: Segmentation fault (program cc1) 0x40c085 execute /mnt/svn/gcc-trunk/gcc/gcc.c:2912 0x40c319 do_spec_1 /mnt/svn/gcc-trunk/gcc/gcc.c:4845 0x40e917 process_brace_body /mnt/svn/gcc-trunk/gcc/gcc.c:6128 0x40e917 handle_braces /mnt/svn/gcc-trunk/gcc/gcc.c:6042 0x40d317 do_spec_1 /mnt/svn/gcc-trunk/gcc/gcc.c:5499 0x40e917 process_brace_body /mnt/svn/gcc-trunk/gcc/gcc.c:6128 0x40e917 handle_braces /mnt/svn/gcc-trunk/gcc/gcc.c:6042 0x40d317 do_spec_1 /mnt/svn/gcc-trunk/gcc/gcc.c:5499 0x40c6a3 do_spec_1 /mnt/svn/gcc-trunk/gcc/gcc.c:5614 0x40e917 process_brace_body /mnt/svn/gcc-trunk/gcc/gcc.c:6128 0x40e917 handle_braces /mnt/svn/gcc-trunk/gcc/gcc.c:6042 0x40d317 do_spec_1 /mnt/svn/gcc-trunk/gcc/gcc.c:5499 0x40e917 process_brace_body /mnt/svn/gcc-trunk/gcc/gcc.c:6128 0x40e917 handle_braces /mnt/svn/gcc-trunk/gcc/gcc.c:6042 0x40d317 do_spec_1 /mnt/svn/gcc-trunk/gcc/gcc.c:5499 0x40e917 process_brace_body /mnt/svn/gcc-trunk/gcc/gcc.c:6128 0x40e917 handle_braces /mnt/svn/gcc-trunk/gcc/gcc.c:6042 0x40d317 do_spec_1 /mnt/svn/gcc-trunk/gcc/gcc.c:5499 0x40e917 process_brace_body /mnt/svn/gcc-trunk/gcc/gcc.c:6128 0x40e917 handle_braces /mnt/svn/gcc-trunk/gcc/gcc.c:6042 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. Tested revisions: r218658 - ICE 4_9 r218177 - OK ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/64295] [5 Regression] ICE: SIGSEGV (infinite recursion) with -frounding-math -funsafe-math-optimizations 2014-12-13 9:44 [Bug tree-optimization/64295] New: [5 Regression] ICE: SIGSEGV (infinite recursion) with -frounding-math -funsafe-math-optimizations zsojka at seznam dot cz @ 2014-12-13 17:34 ` jakub at gcc dot gnu.org 2014-12-15 9:00 ` rguenth at gcc dot gnu.org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: jakub at gcc dot gnu.org @ 2014-12-13 17:34 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64295 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P1 Status|UNCONFIRMED |NEW Last reconfirmed| |2014-12-13 CC| |jakub at gcc dot gnu.org Target Milestone|--- |5.0 Ever confirmed|0 |1 --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Started with r217545. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/64295] [5 Regression] ICE: SIGSEGV (infinite recursion) with -frounding-math -funsafe-math-optimizations 2014-12-13 9:44 [Bug tree-optimization/64295] New: [5 Regression] ICE: SIGSEGV (infinite recursion) with -frounding-math -funsafe-math-optimizations zsojka at seznam dot cz 2014-12-13 17:34 ` [Bug tree-optimization/64295] " jakub at gcc dot gnu.org @ 2014-12-15 9:00 ` rguenth at gcc dot gnu.org 2014-12-15 9:21 ` rguenth at gcc dot gnu.org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: rguenth at gcc dot gnu.org @ 2014-12-15 9:00 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64295 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Mine. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/64295] [5 Regression] ICE: SIGSEGV (infinite recursion) with -frounding-math -funsafe-math-optimizations 2014-12-13 9:44 [Bug tree-optimization/64295] New: [5 Regression] ICE: SIGSEGV (infinite recursion) with -frounding-math -funsafe-math-optimizations zsojka at seznam dot cz 2014-12-13 17:34 ` [Bug tree-optimization/64295] " jakub at gcc dot gnu.org 2014-12-15 9:00 ` rguenth at gcc dot gnu.org @ 2014-12-15 9:21 ` rguenth at gcc dot gnu.org 2014-12-15 13:01 ` rguenth at gcc dot gnu.org 2014-12-15 13:02 ` rguenth at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: rguenth at gcc dot gnu.org @ 2014-12-15 9:21 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64295 --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- Ok, so we're folding g / 3 -> g * (1 / 3) and then applyign the same transform to 1 / 3 (because that's not constant folded with -frounding-math). I believe the option combination is a red herring, but ... The original fold-const.c code only transformed this if 1 / 3 constant folded but I used fold_binary in the pattern (because const_binop wasn't available at the point of writing it). Testing a patch. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/64295] [5 Regression] ICE: SIGSEGV (infinite recursion) with -frounding-math -funsafe-math-optimizations 2014-12-13 9:44 [Bug tree-optimization/64295] New: [5 Regression] ICE: SIGSEGV (infinite recursion) with -frounding-math -funsafe-math-optimizations zsojka at seznam dot cz ` (2 preceding siblings ...) 2014-12-15 9:21 ` rguenth at gcc dot gnu.org @ 2014-12-15 13:01 ` rguenth at gcc dot gnu.org 2014-12-15 13:02 ` rguenth at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: rguenth at gcc dot gnu.org @ 2014-12-15 13:01 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64295 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- Fixed. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/64295] [5 Regression] ICE: SIGSEGV (infinite recursion) with -frounding-math -funsafe-math-optimizations 2014-12-13 9:44 [Bug tree-optimization/64295] New: [5 Regression] ICE: SIGSEGV (infinite recursion) with -frounding-math -funsafe-math-optimizations zsojka at seznam dot cz ` (3 preceding siblings ...) 2014-12-15 13:01 ` rguenth at gcc dot gnu.org @ 2014-12-15 13:02 ` rguenth at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: rguenth at gcc dot gnu.org @ 2014-12-15 13:02 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64295 --- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Mon Dec 15 13:01:47 2014 New Revision: 218748 URL: https://gcc.gnu.org/viewcvs?rev=218748&root=gcc&view=rev Log: 2014-12-15 Richard Biener <rguenther@suse.de> PR middle-end/64295 * match.pd (X / CST -> X * (1 / CST): Use const_binop instead of fold_binary to compute the constant to multiply with. * gcc.dg/pr64295.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/pr64295.c Modified: trunk/gcc/ChangeLog trunk/gcc/match.pd trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-12-15 13:02 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2014-12-13 9:44 [Bug tree-optimization/64295] New: [5 Regression] ICE: SIGSEGV (infinite recursion) with -frounding-math -funsafe-math-optimizations zsojka at seznam dot cz 2014-12-13 17:34 ` [Bug tree-optimization/64295] " jakub at gcc dot gnu.org 2014-12-15 9:00 ` rguenth at gcc dot gnu.org 2014-12-15 9:21 ` rguenth at gcc dot gnu.org 2014-12-15 13:01 ` rguenth at gcc dot gnu.org 2014-12-15 13:02 ` rguenth 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).