aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2010-05-27 14:11:35 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2010-05-27 14:11:35 +0000
commit7951d88a0c68059bc28a8fdd89390d0c315b7e34 (patch)
treecbad29225d6336a230779ca3e818e4ac1ce219e6 /gcc/dwarf2out.c
parentfde9c428ca630b5e4fb4dc24fba6e59b95e48d4c (diff)
downloadgcc-7951d88a0c68059bc28a8fdd89390d0c315b7e34.zip
gcc-7951d88a0c68059bc28a8fdd89390d0c315b7e34.tar.gz
gcc-7951d88a0c68059bc28a8fdd89390d0c315b7e34.tar.bz2
re PR lto/44230 (Do not create need for multiple EH personalities)
PR lto/44230 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message. lto/ * lto.h (lto_eh_personality): New prototype. * lto.c: Include debug.h. (first_personality_decl): New static variable. (lto_materialize_function): Set it to DECL_FUNCTION_PERSONALITY of the first function for which it is non-null. (lto_eh_personality_decl): New static variable. (lto_eh_personality): New function. * lto-lang.c (LANG_HOOKS_EH_PERSONALITY): Redefine to above function. * Make-lang.in (lto/lto.o): Add dependency on debug.h. From-SVN: r159921
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index a50e02a..ca2194f 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -4009,12 +4009,11 @@ dwarf2out_begin_prologue (unsigned int line ATTRIBUTE_UNUSED,
current_unit_personality = personality;
/* We cannot keep a current personality per function as without CFI
- asm at the point where we emit the CFI data there is no current
+ asm, at the point where we emit the CFI data, there is no current
function anymore. */
- if (personality
- && current_unit_personality != personality)
- sorry ("Multiple EH personalities are supported only with assemblers "
- "supporting .cfi.personality directive.");
+ if (personality && current_unit_personality != personality)
+ sorry ("multiple EH personalities are supported only with assemblers "
+ "supporting .cfi_personality directive");
}
}