This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/65217] __builtin_unreachable in if statement causes bad assembly generation
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 26 Feb 2015 03:45:46 +0000
- Subject: [Bug c/65217] __builtin_unreachable in if statement causes bad assembly generation
- Auto-submitted: auto-generated
- References: <bug-65217-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65217
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed on the trunk for GCC 5:
expected:
.LFB0:
.cfi_startproc
movl %edi, %eax
ret
...
test:
.LFB1:
.cfi_startproc
movl %edi, %eax
ret