[Bug c/87242] optimize -O2 incorrect output
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87242 Alexander Monakov changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|--- |DUPLICATE --- Comment #7 from Alexander Monakov --- As mentioned in PR 65337, this is fixed in gcc-6+, and the gcc-5 branch is now closed. *** This bug has been marked as a duplicate of bug 65337 ***
[Bug c/87242] optimize -O2 incorrect output
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87242 rpluim at gmail dot com changed: What|Removed |Added CC||rpluim at gmail dot com --- Comment #6 from rpluim at gmail dot com --- Based on my bisection of gcc using the same emacs test case, this was fixed by: commit e98da821c1ee4450bbe40a0278cd75803706aa7c (HEAD, refs/bisect/new) Author: hubicka Date: Sun Dec 20 05:50:29 2015 + PR middle-end/65337 * tree-ssa-dce.c (bb_postorder): New static var. (forward_edge_to_pdom): Remove. (remove_dead_stmt): Instead of redirecting edges only keep an edge on a path to nearest live BB. (eliminate_unnecessary_stmts): Free bb_postorder. * cfganal.c (dfs_find_deadend): Add START_POINTES. * cfganal.h (inverted_post_order_compute): Update prototype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/address@hidden 138bc75d-0d04-0410-961f-82ee72b054a4
[Bug c/87242] optimize -O2 incorrect output
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87242 --- Comment #5 from Greg Minshall --- Created attachment 44684 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44684=edit creduce'd (but, only partly) test case. module_intern() is the function i creduce'd on (my creduce "interesting" required module_intern() to be unchanged in the .c file, and emacs_intern() in the -O2 .s file to be within epsilon of unchanged, as well as in the non-O2 .s file to have a call to lisp_to_value()). with -O2, it makes a couple of calls then returns 0, which is incorrect behavior.
[Bug c/87242] optimize -O2 incorrect output
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87242 --- Comment #4 from Greg Minshall --- hi. sorry for the delay. i'm creduce'ing and will upload.
[Bug c/87242] optimize -O2 incorrect output
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87242 Alexander Monakov changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed||2018-09-11 CC||amonakov at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #3 from Alexander Monakov --- Please either attach a compressed file as indicated by Andrew, or if you want to minimize the testcase yourself, take a look at tools such as c-reduce or multidelta. Also make sure to explain what the problem is, the title of the bug is not enough. Note that gcc-5 is no longer supported.
[Bug c/87242] optimize -O2 incorrect output
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87242 --- Comment #2 from Andrew Pinski --- (In reply to Greg Minshall from comment #1) > sorry, the attachment is too long (4MB). You can compress it, usually preprocessed source compresses nicely with either gzip or bzip2.
[Bug c/87242] optimize -O2 incorrect output
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87242 --- Comment #1 from Greg Minshall --- sorry, the attachment is too long (4MB). is there any tool for whittling away the unnecessary bits, given a .c file -- i'd create by -E, though maybe the .i file would work? -- and a target function -- i.e., the closure of all the references in the target function?