This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/40521] [4.4/4.5 Regression] -g causes GCC to generate .eh_frame
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Oct 2009 17:35:22 -0000
- Subject: [Bug debug/40521] [4.4/4.5 Regression] -g causes GCC to generate .eh_frame
- References: <bug-40521-3264@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #19 from ebotcazou at gcc dot gnu dot org 2009-10-16 17:35 -------
> When testing this, I've noticed a major problem with Ada, supposedly on the
> trunk as well when using latest binutils.
Thanks for the heads up.
> The problem is that gnat_init_gcc_eh which can change flag_exceptions is
> called way too late, not from lang_hooks.init, but far after it. This means
> by the time dwarf2out_init is called flag_exceptions might be still 0 and
> thus .cfi_sections .dwarf_frame is emitted. But then gnat_init_gcc_eh
> changes flag_exception to 1 and excepts .eh_frame to be generated.
Can we arrange for making it safe to set flag_exceptions from lang_hooks.init
and then clear it in gnat_init_gcc_eh?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40521