[Top] [All Lists]

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

To: "Maciej W. Rozycki" <>
Subject: Re: [PATCH] MIPS: Make BUG() __noreturn.
From: Andreas Schwab <>
Date: Fri, 21 Nov 2008 13:58:30 +0100
Cc: Geert Uytterhoeven <>, Alan Cox <>, David Daney <>, linux-mips <>,
In-reply-to: <> (Maciej W. Rozycki's message of "Fri, 21 Nov 2008 11:14:30 +0000 (GMT)")
Original-recipient: rfc822;
References: <> <> <Pine.LNX.4.64.0811211126420.26004@anakin> <>
User-agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.3 (gnu/linux)
"Maciej W. Rozycki" <> 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 Schwab, SuSE Labs,
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>