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 "co
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 p
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
> > unhealt
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
>
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!
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
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 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,
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
suggestio
Andy,
I received this email in its own thread so perhaps I missed where it was
tied to the problems with Win32/MinGW that we have discussed in #parrot.
For those following along at home, MinGW's gcc version 3.4.2 has deprecated
#pragma once and will actually cause the compiler to blow up when com
10 matches
Mail list logo