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

rguenther at suse dot de gcc-bugzilla@gcc.gnu.org
Wed Nov 26 15:51:00 GMT 2014


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

--- Comment #4 from rguenther at suse dot de <rguenther at suse dot de> ---
On Wed, 26 Nov 2014, enkovich.gnu at gmail dot com wrote:

> 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.

Any reason why non-C-family languages cannot use MPX?

Richard.



More information about the Gcc-bugs mailing list