[Bug middle-end/63994] Ada bootstrap fails with -fcheck-pointer-bounds -mmpx

enkovich.gnu at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Nov 26 14:57:00 GMT 2014


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

--- Comment #3 from Ilya Enkovich <enkovich.gnu at gmail dot com> ---
(In reply to rguenther@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.



More information about the Gcc-bugs mailing list