On 9/3/17, Gerald Pfeifer <ger...@pfeifer.com> wrote: > Hi Richard, > > I'm afraid your patchset has broken bootstrap on i686-unknown-freebsd10.3, > in fact, it appears on FreeBSD in general (amd64-unknown-freebsd11 as > well): > > > /scratch/tmp/gerald/GCC-HEAD/gcc/builtins.c:4913:6: error: cannot pass > object of non-POD type 'scalar_int_mode' through variadic function; call > will abort at runtime [-Wnon-pod-varargs] > > ptr_mode, bot, ptr_mode); > ^ > > /scratch/tmp/gerald/GCC-HEAD/gcc/builtins.c:4913:21: error: cannot pass > object of non-POD type 'scalar_int_mode' through variadic function; call > will abort at runtime [-Wnon-pod-varargs] > > ptr_mode, bot, ptr_mode); > ^ > > > Digging into this, I believe this is due to clang 3.4.1 serving as system > compiler (which probably is why nobody else reported this so far): > > c++ -std=gnu++98 -fno-PIE -c -g -DIN_GCC -fno-strict-aliasing > -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall > -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format > -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long > -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H > : > -o calls.o -MT calls.o -MMD -MP -MF ./.deps/calls.TPo > /scratch/tmp/gerald/GCC-HEAD/gcc/calls.c > > Gerald >
Note that bug 64867 exists to add this warning for gcc, too: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64867