This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [00/77] Add wrapper classes for machine_modes


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]