[PATCH] Fix bootstrap failure on i686-pc-linux-gnu
Caroline Tice
ctice@apple.com
Tue Apr 12 06:09:00 GMT 2005
The following patch fixes a bootstrap problem caused by the most
recent hot/cold patch that was committed. The problem was a faulty
assumption that if current_function_decl was defined, it had a valid
function struct attached to it.
This patch fixes the problem (reported in PR 20934, 20940 and 20942).
I have tested this patch on an Apple G5 running powerpc darwin and an
x86 running Linux. It has passed a profiledbootstrap with
partitioning, a profiledbootstrap with reordering but no partitioning,
and a regular bootstrap. I'm in the process of running DejaGnu tests.
Assuming it passes these tests, is it okay to commit to FSF mainline?
-- Caroline Tice
ctice@apple.com
2005-04-11 Caroline Tice <ctice@apple.com>
* dwarf2out.c (dwarf2out_switch_text_section): Check
current_function_decl
and DECL_STRUCT_FUNCTION (current_function_decl) to make sure
they
exist before trying to use them to access cold text section
name.
(output_line_info): Likewise.
(add_location_or_const_value_attribute): Likewise.
(dwarf2out_var_location): Likewise.
* varasm.c (initialize_cold_section_name): Likewise.
(unlikely_text_section): Likewise.
(in_unlikely_text_section): Likewise.
(named_section): Test for cfun before trying to dereference it.
(default_section_type_flags_1): Likewise.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcc5-hot-cold.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050412/14a9f808/attachment.txt>
More information about the Gcc-patches
mailing list