summaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorctice <ctice@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-16 21:37:01 +0000
committerctice <ctice@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-16 21:37:01 +0000
commit792a073a0217b190cb15ffbaeaf48d6d66e5d7c2 (patch)
treee341ea5046d53daf979967bc128d37281b462f43 /gcc/dwarf2out.c
parentce971c8c0a4460285e87db453f71c401519f48ae (diff)
downloadgcc-792a073a0217b190cb15ffbaeaf48d6d66e5d7c2.tar.gz
2005-05-16 Caroline Tice <ctice@apple.com>
* bb-reorder.c (verify_hot_cold_block_grouping): Replace internal_error with gcc_assert. * dwarf2out.c (dwarf2out_switch_text_section): Likewise. * function.h (struct function): Remove space between "*" and struct field names. * varasm.c (initialize_cold_section_name): Add gcc_assert; modify to use alloca. (unlikely_text_section): Add check for flag_function_sections. (assemble_start_function): Move call to resolve_section, so it comes before first call to unlikely_text_section. (assemble_end_function): Add test and call to function_section if appropriate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99796 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index aee1c2f9e71..32711c7227c 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -6814,8 +6814,7 @@ dwarf2out_switch_text_section (void)
{
dw_fde_ref fde;
- if (!cfun)
- internal_error ("Attempt to switch text sections without any code.");
+ gcc_assert (cfun);
fde = &fde_table[fde_table_in_use - 1];
fde->dw_fde_switched_sections = true;