From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey A Law To: pmw@uk.research.att.com (Paul Webster) Cc: gcc-help@gcc.gnu.org Subject: Re: Functions using attribute `noreturn'... Date: Sat, 01 Apr 2000 00:00:00 -0000 Message-ID: <3261.949529923@upchuck> References: <200002021707.RAA14128@rocoto> X-SW-Source: 2000-q1/msg00204.html Message-ID: <20000401000000.eNvB_ae5hFm89v6q3zQnWyoigwUjcAVogInF0a4Kc2Y@z> In message < 200002021707.RAA14128@rocoto >you write: > To minimise the amount of code output, I would like to check to see if the > current function is declared with the __noreturn__ attribute. If it is, > then I don't need to do output any of the function return code or > save/restore any registers that otherwise would be. This will happen automatically if you are using RTL prologues and epilogues. The code which emits the epilogue will notice that the exit block has no true predecessors and thus the epilogue code is unnecessary and never added to the insn stream. jeff