This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [00/77] Add wrapper classes for machine_modes
- From: Eric Gallager <egall at gwmail dot gwu dot edu>
- To: Gerald Pfeifer <gerald at pfeifer dot com>
- Cc: Richard Sandiford <richard dot sandiford at linaro dot org>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 5 Sep 2017 06:58:00 -0400
- Subject: Re: [00/77] Add wrapper classes for machine_modes
- Authentication-results: sourceware.org; auth=none
- References: <alpine.LSU.2.21.1709032057540.5182@anthias.pfeifer.com>
On 9/3/17, Gerald Pfeifer <gerald@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