linux-mips
[Top] [All Lists]

Re: [PATCH] MIPS: Make BUG() __noreturn.

To: "Maciej W. Rozycki" <macro@linux-mips.org>
Subject: Re: [PATCH] MIPS: Make BUG() __noreturn.
From: Andreas Schwab <schwab@suse.de>
Date: Fri, 21 Nov 2008 13:58:30 +0100
Cc: Geert Uytterhoeven <geert@linux-m68k.org>, Alan Cox <alan@lxorguk.ukuu.org.uk>, David Daney <ddaney@caviumnetworks.com>, linux-mips <linux-mips@linux-mips.org>, linux-kernel@vger.kernel.org
In-reply-to: <alpine.LFD.1.10.0811211059290.20023@ftp.linux-mips.org> (Maciej W. Rozycki's message of "Fri, 21 Nov 2008 11:14:30 +0000 (GMT)")
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <49260E4C.8080500@caviumnetworks.com> <20081121100035.3f5a640b@lxorguk.ukuu.org.uk> <Pine.LNX.4.64.0811211126420.26004@anakin> <alpine.LFD.1.10.0811211059290.20023@ftp.linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.3 (gnu/linux)
"Maciej W. Rozycki" <macro@linux-mips.org> writes:

> Otherwise it looks like the attribute is useless -- it looks like it can 
> only be used for functions where GCC can determine the function does not 
> return anyway.  Which means it is redundant.

The purpose of the attribute is to tell the _callers_ of this function
that it does not return.  It does not change how the attributed function
itself is compiled.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

<Prev in Thread] Current Thread [Next in Thread>