This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/63994] Ada bootstrap fails with -fcheck-pointer-bounds -mmpx
- From: "enkovich.gnu at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 26 Nov 2014 14:57:22 +0000
- Subject: [Bug middle-end/63994] Ada bootstrap fails with -fcheck-pointer-bounds -mmpx
- Auto-submitted: auto-generated
- References: <bug-63994-4 at http dot gcc dot gnu dot org/bugzilla/>
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.