Re: Optimization of conditional access to globals: thread-unsafe?

2007-10-28 Thread Ross Smith
read of control to read a memory location simultaneously. [end quote] -- Ross Smith

Re: -Wparentheses lumps too much together

2007-12-21 Thread Ross Smith
rking on (about 60k lines of C++) for anywhere && and || appear on the same line. I got 49 hits, 29 where && was evaluated before ||, 20 the other way around. (All of them, I'm happy to say, properly parenthesised.) So while &&-inside-|| seems to be slightly more common, I'd certainly dispute James's claim that it's "far more common". -- Ross Smith

Re: Using __sync_* builtins within libgcc code

2008-06-10 Thread Ross Smith
e should be the default. -- Ross Smith

Re: gcc-in-cxx branch created

2008-06-24 Thread Ross Smith
at "we're doing something more complicated than straightforward iteration here, so read carefully". -- Ross Smith

Re: What is wrong with Bugzilla? [Was: Re: GCC and Floating-Point]

2005-05-28 Thread Ross Smith
dress, alarm bells start going off in their minds, and they go away. (If the email request was on the bug report form itself instead of a login, and was _optional_, probably more people would be willing to fill it in.) -- Ross Smith [EMAIL PROTECTED] Auckland, New Zealand

Re: order of -D and -U is significant

2009-08-04 Thread Ross Smith
gnu89. -- Ross Smith

Re: Over-sensitive warning, or some quirk of C++ language rules?

2010-01-09 Thread Ross Smith
--- gcc 4.0.1, 4.2.1, and 4.3.4 don't warn about this. Looks like a regression. -- Ross Smith

Re: Integer overflow in operator new

2007-04-08 Thread Ross Smith
low_num = num < ((size_t)1 << (max_bits * 5 / 8)); low_size = size < ((size_t)1 << (max_bits * 3 / 8)); if (__builtin_expect(low_num && low_size, 1) || num <= ~(size_t)0 / size) return num * size; else re

Re: Integer overflow in operator new

2007-04-09 Thread Ross Smith
27;s code had. That was sort of the whole point. If you don't care whether it gives the right answer you might as well just leave the status quo. -- Ross Smith [EMAIL PROTECTED] Auckland, New Zealand "Those who can make you believe absurdities can make you commit atrocities."-- Voltaire

Re: [RFC] Marking C++ new operator as malloc?

2007-09-09 Thread Ross Smith
Gabriel Dos Reis wrote: Joe Buck <[EMAIL PROTECTED]> writes: | On Sat, Sep 08, 2007 at 04:33:50PM -0500, Gabriel Dos Reis wrote: | > "Richard Guenther" <[EMAIL PROTECTED]> writes: | > | > | On 9/8/07, Chris Lattner <[EMAIL PROTECTED]> wrote: | > | > I understand, but allowing users to override

Re: Serious code generation/optimisation bug (I think)

2009-01-29 Thread Ross Smith
zero, then a standard C compiler has to use some other value for the null pointer. -- Ross Smith

Re: About strict-aliasing warning

2009-02-13 Thread Ross Smith
e existing wording was intended to mean, but I can also see how it could easily be interpreted to mean that -fstrict-aliasing automatically implies -Wstrict-aliasing. -- Ross Smith