git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Honor HP C's noreturn attribute

From
Piotr Krukowiecki <piotr.krukowiecki@gmail.com>
Date
Mar 8, 2011, 19:26 UTC
Message-ID
<AANLkTi=FPkccc3Rk3YDuEsN3YGt_U1NhhT2MGHmbrAra@mail.gmail.com>
In-Reply-To
<7v4o7dfndw.fsf@alter.siamese.dyndns.org>
On Tue, Mar 8, 2011 at 8:00 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 20 quoted lines
> Michal Rokos <rokos@nextsoft.cz> writes:
>
>> HP C for Integrity servers (Itanium) gained support for noreturn
>> attribute sometime in 2006. It was released in Compiler Version A.06.10
>> and made available in July 2006.
>>
>> The __HP_cc define detects the HP C compiler version. Precede the
>> __GNUC__ check so it works well when compiling with HP C using -Agcc
>> option that enables partial support for the GNU C dialect. The -Agcc
>> defines the __GNUC__ too.
>>
>> Signed-off-by: Michal Rokos <michal.rokos@nextsoft.cz>
>
> We tend to prefer new code be appended at the end of if/elif/.../then/fi
> cascade when there is no strong reason to do otherwise; your log message
> clearly explains why this particular #if needs to come before the existing
> one.
>
> I love it when people write a very readable log message to explain why the
> patch _has_ to be the way it is.  Very good job.

I liked it too, but it'd be even better to put the comment in the code IMO. I don't think anyone would check the commit to see if he can change the order of the #ifdefs ...

(So please comment in code more!)
-- 
Piotr Krukowiecki
Previous: Junio C HamanoNext: Michal Rokos
Message 3 of 4 in “Honor HP C's noreturn attribute”
  1. Honor HP C's noreturn attributeMichal Rokos, Mar 7, 2011
  2. Junio C HamanoMar 8, 2011
  3. Piotr KrukowieckiMar 8, 2011
  4. Michal RokosMar 8, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.