This is the mail archive of the gcc@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: Adding assembly after end of functions in GCC-3.4


Etienne Lorrain wrote:
 between functions, if it would (undocumentely) work to put an
 asm("") in between the last return of a function and the closing
 brace of the function.

No. Unreachable code will be deleted by dead code elimination (DCE) optimizations. Even if the code is volatile, it will still be deleted.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



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