* dwarf2out.c (text_section_used, cold_text_section_used,
commitd6de7df91e1d41c5c74b9416214339b6a2964f21
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 19 Aug 2007 23:07:15 +0000 (19 23:07 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 19 Aug 2007 23:07:15 +0000 (19 23:07 +0000)
tree245aeeb475ad0d8a9a6b234bd130067c1e1a38ed
parenta305543185071bc945b42c82339c7fe3952aa160
* dwarf2out.c (text_section_used, cold_text_section_used,
cold_text_section, dwarf2out_note_section_used): New.
(dwarf2out_init): Initialize cold_text_section.
(dwarf2out_switch_text_section, dwarf2out_begin_function): Call
dwarf2out_note_section_used.
(size_of_aranges): Only count entry for text section if it was
used.  Count entry for cold text section if it was used.
(output_aranges): Only output entries for text section and cold
text section if they were used.

testsuite:
* gcc.dg/debug/dwarf2/aranges-fnsec-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127627 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/dwarf2/aranges-fnsec-1.c [new file with mode: 0644]