noreturn function attribute and ret asm instruction

Kristis Makris kristis.makris@asu.edu
Wed Sep 3 02:19:00 GMT 2003


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.




More information about the Gcc-bugs mailing list