This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: noreturn function attribute and ret asm instruction


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]