Is it possible that this is responsible for a bootstrap failure introduced 
in the last 27 hours or so?

/scratch/tmp/gerald/gcc-HEAD/gcc/tree-object-size.c:44:59: error: narrowing 
conversion of '-0x00000000000000001' from 'int' to 'long unsigned int' inside { 
} [-Werror=narrowing]
/scratch/tmp/gerald/gcc-HEAD/gcc/tree-object-size.c:44:59: error: narrowing 
conversion of '-0x00000000000000001' from 'int' to 'long unsigned int' inside { 
} [-Werror=narrowing]
cc1plus: all warnings being treated as errors
gmake[3]: *** [tree-object-size.o] Error 1
gmake[3]: Leaving directory `/local0/scratch/gerald/OBJ-1023-1848/gcc'
gmake[2]: *** [all-stage2-gcc] Error 2
gmake[2]: Leaving directory `/local0/scratch/gerald/OBJ-1023-1848'
gmake[1]: *** [stage2-bubble] Error 2

The code in question is

  static unsigned HOST_WIDE_INT unknown[4] = { -1, -1, 0, 0 };

This is on amd64-unknown-freebsd8.0, though I am puzzled it does not
seem to trigger for other 64-bit platforms?

I also filed PR 50841 for the bootstrap failure, especially if it's
not yours.

Gerald


2011-10-23  Paolo Carlini  <paolo.carl...@oracle.com>

        PR c++/50810
        * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
        of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
        Wnarrowing for C++0x and C++98.
        * c.opt ([Wnarrowing]): Update.

Reply via email to