On Tue, Jun 12, 2007 at 01:13:44PM -0700, Mark Glines wrote:
I just came up with an artificial benchmark and found that gcc-3.4.6
runs slightly faster with #pragma once protecting a header that includes
lots of other headers. (a chain of 200 other headers, in my test.) By
slightly, I mean
I'm very uncomfortable with removing #pragma once from our header
files. It is perfectly valid C89 code, and I think bowing to a
broken compiler is unhealthy precedent.
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
or compiling a more recent gcc themselves.
That is, as long as it is not causing problems anywhere else.
Cheers,
Joshua Gatcomb
a.k.a. Limbic~Region
On 6/12/07, Andy Lester [EMAIL PROTECTED] wrote:
I'm very uncomfortable with removing #pragma once from our header
files. It is perfectly valid C89 code
On 6/12/07, Andy Lester [EMAIL PROTECTED] wrote:
I'm very uncomfortable with removing #pragma once from our header
files. It is perfectly valid C89 code, and I think bowing to a
broken compiler is unhealthy precedent.
to add some context, in r18884 andy committed a patch (after my
suggestion
On Jun 12, 2007, at 9:38 AM, jerry gay wrote:
now, to the matter at hand: i agree with andy. we shouldn't revert
this because one broken compiler doesn't like it. however, we should
make it clear in the documentation that the particular version of that
compiler has trouble compiling valid C89,
jerry gay wrote:
On 6/12/07, Andy Lester [EMAIL PROTECTED] wrote:
I'm very uncomfortable with removing #pragma once from our header
files. It is perfectly valid C89 code, and I think bowing to a
broken compiler is unhealthy precedent.
to add some context, in r18884 andy committed a patch
On Jun 12, 2007, at 1:39 PM, Allison Randal wrote:
Do we have any proof that it does speed up compilation with msvc?
Littering our code with optimizations for odd compilers is also
an unhealthy precedent.
Darn you and your pragmatism!
DO we indeed have proof of a speedup?
xoa
--
Andy
On 6/12/07, Andy Lester [EMAIL PROTECTED] wrote:
On Jun 12, 2007, at 1:39 PM, Allison Randal wrote:
Do we have any proof that it does speed up compilation with msvc?
Littering our code with optimizations for odd compilers is also
an unhealthy precedent.
Darn you and your pragmatism!
DO we
On Tue, 12 Jun 2007 11:39:35 -0700
Allison Randal [EMAIL PROTECTED] wrote:
jerry gay wrote:
On 6/12/07, Andy Lester [EMAIL PROTECTED] wrote:
I'm very uncomfortable with removing #pragma once from our header
files. It is perfectly valid C89 code, and I think bowing to a
broken compiler
On Tue, Jun 12, 2007 at 01:13:44PM -0700, Mark Glines wrote:
On Tue, 12 Jun 2007 11:39:35 -0700
Allison Randal [EMAIL PROTECTED] wrote:
Do we have any proof that it does speed up compilation with msvc?
Littering our code with optimizations for odd compilers is also an
unhealthy
On Jun 12, 2007, at 3:13 PM, Mark Glines wrote:
On the other hand, will #pragma once allow us to get rid of all of
those ugly header guard macros? If so, I would argue to keep it for
maintenance reasons, regardless of any performance benefits.
No, not at all, because #pragma once is only a
11 matches
Mail list logo