https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63994

--- Comment #3 from Ilya Enkovich <enkovich.gnu at gmail dot com> ---
(In reply to rguent...@suse.de from comment #2)
> 
> > TARGET_CFLAGS="-O2 -g -mmpx -fcheck-pointer-bounds" TARGET_CXXFLAGS="-O2 
> -g -mmpx -fcheck-pointer-bounds" BOOT_CFLAGS="-O2 -g -mmpx 
> -fcheck-pointer-bounds" /space/rguenther/src/svn/trunk/configure 
> --enable-languages=all,obj-c++,ada,go
> > make -j12  TARGET_CFLAGS="-O2 -g -mmpx -fcheck-pointer-bounds" 
> TARGET_CXXFLAGS="-O2 -g -mmpx -fcheck-pointer-bounds" BOOT_CFLAGS="-O2 -g 
> -mmpx -fcheck-pointer-bounds"

Building with these options I see Ada compiler is called with
-fcheck-pointer-bounds.  Option is in c-family/c.opt and shouldn't be passed
for Ada compiler.  

We should either not pass CFLAGS for Ada during build or filter language in the
compiler.

Reply via email to