This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/81424] [7 regression] internal error on GPRbuild with -O2
- From: "pavel at zhukoff dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 16 Jul 2017 11:16:51 +0000
- Subject: [Bug ada/81424] [7 regression] internal error on GPRbuild with -O2
- Auto-submitted: auto-generated
- References: <bug-81424-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81424
--- Comment #2 from Pavel Zhukov <pavel at zhukoff dot net> ---
(In reply to Eric Botcazou from comment #1)
> Confirmed, but how can it block anything since the workaround is trivial?
Thanks Eric.
We have to use compiler/linker flags provided by distribution's macros and they
include O2 [1]. While we can change gnat specific flags relatively easy global
optflags is distribution wide.
Ada packaging guidelines:
https://fedoraproject.org/wiki/Packaging:Ada
[1] -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
https://fedoraproject.org/wiki/Packaging:RPMMacros#Build_flags_macros_and_variables