diff options
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r-- | gcc/langhooks.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c index 8505ec40b98..92eacd465e0 100644 --- a/gcc/langhooks.c +++ b/gcc/langhooks.c @@ -604,6 +604,8 @@ lhd_begin_section (const char *name) /* Save the old section so we can restore it in lto_end_asm_section. */ gcc_assert (!saved_section); saved_section = in_section; + if (!saved_section) + saved_section = text_section; /* Create a new section and switch to it. */ section = get_section (name, SECTION_DEBUG, NULL); |