public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug middle-end/36791] New: ICE with constant argument to __builtin_eh_return @ 2008-07-10 14:44 jfc at mit dot edu 2008-07-10 15:22 ` [Bug middle-end/36791] " jfc at mit dot edu 2008-12-27 22:08 ` pinskia at gcc dot gnu dot org 0 siblings, 2 replies; 4+ messages in thread From: jfc at mit dot edu @ 2008-07-10 14:44 UTC (permalink / raw) To: gcc-bugs This function causes an ICE in rtl generation: void g() { __builtin_eh_return(0, 0); } The crash happens when either operand to __builtin_eh_return is an integer constant. expand_builtin_eh_return calls copy_to_reg on a CONST_INT operand. copy_to_reg generates a register with mode VOIDmode. I think the fix is to change the two calls to copy_to_reg to copy_addr_to_reg in expand_builtin_eh_return. This bug seems to be present for many versions and on at least two targets, x86 and SPARC. Note that with optimization on the same crash may occur if a variable known to hold an integer constant value is passed as the first argument. -- Summary: ICE with constant argument to __builtin_eh_return Product: gcc Version: 4.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jfc at mit dot edu GCC host triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36791 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/36791] ICE with constant argument to __builtin_eh_return 2008-07-10 14:44 [Bug middle-end/36791] New: ICE with constant argument to __builtin_eh_return jfc at mit dot edu @ 2008-07-10 15:22 ` jfc at mit dot edu 2008-12-27 22:08 ` pinskia at gcc dot gnu dot org 1 sibling, 0 replies; 4+ messages in thread From: jfc at mit dot edu @ 2008-07-10 15:22 UTC (permalink / raw) To: gcc-bugs -- jfc at mit dot edu changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |minor http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36791 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/36791] ICE with constant argument to __builtin_eh_return 2008-07-10 14:44 [Bug middle-end/36791] New: ICE with constant argument to __builtin_eh_return jfc at mit dot edu 2008-07-10 15:22 ` [Bug middle-end/36791] " jfc at mit dot edu @ 2008-12-27 22:08 ` pinskia at gcc dot gnu dot org 1 sibling, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu dot org @ 2008-12-27 22:08 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from pinskia at gcc dot gnu dot org 2008-12-27 22:04 ------- Confirmed. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 GCC host triplet|x86_64-linux-gnu | Keywords| |ice-on-valid-code Last reconfirmed|0000-00-00 00:00:00 |2008-12-27 22:04:44 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36791 ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <bug-36791-4@http.gcc.gnu.org/bugzilla/>]
* [Bug middle-end/36791] ICE with constant argument to __builtin_eh_return [not found] <bug-36791-4@http.gcc.gnu.org/bugzilla/> @ 2021-08-08 16:50 ` pinskia at gcc dot gnu.org 0 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-08-08 16:50 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36791 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|NEW |RESOLVED --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This is a dup of bug 67619 which is fixed in GCC 4.9.4, GCC 5.3.0, and GCC 6+ *** This bug has been marked as a duplicate of bug 67619 *** ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-08-08 16:50 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2008-07-10 14:44 [Bug middle-end/36791] New: ICE with constant argument to __builtin_eh_return jfc at mit dot edu 2008-07-10 15:22 ` [Bug middle-end/36791] " jfc at mit dot edu 2008-12-27 22:08 ` pinskia at gcc dot gnu dot org [not found] <bug-36791-4@http.gcc.gnu.org/bugzilla/> 2021-08-08 16:50 ` pinskia 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).