This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/42454] debug_ranges table contains empty range for unused .text section with -ffunction-sections
- From: "ccoutant at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Dec 2009 23:13:31 -0000
- Subject: [Bug debug/42454] debug_ranges table contains empty range for unused .text section with -ffunction-sections
- References: <bug-42454-15484@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from ccoutant at gcc dot gnu dot org 2009-12-21 23:13 -------
Created an attachment (id=19363)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19363&action=view)
Proposed fix for PR 42454
* dwarf2out.c (dwarf2out_finish): Don't output range for .text
section unless .text section was used. Likewise for cold.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42454