Re: quiet inline configure check misses a step for clang

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: quiet inline configure check misses a step for clang
Date: 2014-04-03 13:43:20
Message-ID: 16698.1396532600@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andres Freund <andres(at)2ndquadrant(dot)com> writes:
> The current quiet inline test doesn't work for clang. As e.g. evidenced in
> http://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=gull&dt=2014-04-03%2007%3A49%3A26&stg=configure
> configure thinks it's not quiet.

> Which means that postgres compiled with a recent clang will be noticably
> slower than it needs to be.

> The reason for that is that clang is smart and warns about static inline
> if they are declared locally in the .c file, but not if they are
> declared in a #included file. That seems to be a reasonable
> behaviour...

> I think that needs to be fixed. We either can make the configure test
> considerably more complex or simply drop the requirement for quiet
> inline.

I object to the latter; you're proposing to greatly increase the warning
noise seen with any compiler that issues a warning for this without caring
about .h vs .c. For somebody who finds gcc -pedantic unusable, I would
think you'd have a bit more sympathy for people using other compilers.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2014-04-03 13:46:04 Re: quiet inline configure check misses a step for clang
Previous Message Alexander Korotkov 2014-04-03 13:15:17 Re: GSoC 2014 proposal