This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ipa/65765] [5/6 Regression] Compiling Firefox with GCC 5 leads to broken javascript engine on x86-64
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 15 Apr 2015 07:22:06 +0000
- Subject: [Bug ipa/65765] [5/6 Regression] Compiling Firefox with GCC 5 leads to broken javascript engine on x86-64
- Auto-submitted: auto-generated
- References: <bug-65765-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65765
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 35316
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35316&action=edit
gcc5-pr65765.patch
Untested fix. The main bug has been a return true; for
GIMPLE_NOP/GIMPLE_PREDICT, that means compare_bb ignored anything in the rest
of the basic block, which is obviously completely wrong.
While looking at it, I think we should compare for GIMPLE_PREDICT the
predictor/outcome, if somebody puts an effort to mark something as hot or cold,
unifying it if they differ sounds wrong to me. And similarly, IMHO for
GIMPLE_EH_DISPATCH we should compare the region number.