This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: noreturn function attribute and ret asm instruction
- From: Kristis Makris <kristis dot makris at asu dot edu>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: Jim Wilson <wilson at tuliptree dot org>, gcc-bugs at gcc dot gnu dot org
- Date: 02 Sep 2003 19:19:07 -0700
- Subject: Re: noreturn function attribute and ret asm instruction
- References: <1061654032.13013.9.camel@syd.monet.net><3F4A71EA.40209@tuliptree.org> <1061880472.16160.134.camel@syd.monet.net><87wud0sxtj.fsf@egil.codesourcery.com><1062202145.1918.7.camel@syd.monet.net><1062537266.1047.7.camel@leaf.tuliptree.org> <87isoarh0m.fsf@egil.codesourcery.com>
I am sorry, I obviously have no undrestanding of gcc internals. For
whatever it's worth, I have added a feature request for this in the GCC
bugzilla (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12118), with a
link that points back to this thread.
> > The real problem here is that we have no support for asms that change
> > flow of control. Adding a function attribute to suppress the ret does
> My old suggestion was to express this by clobbering "pc", which
> currently has no meaning. This would require no syntax change.
> The objection I remember is "use __builtin_trap()", but that is
> not flexible enough to replace the above, nor is it universally
> implemented.
I couldn't find any history on that discussion anywhere on bugzilla or
the mailing lists. Thank's for the comments though.