dbxout.c (dbxout_function): When deciding to call dbxout_function_end change test...
authorDoug Evans <dje@gnu.org>
Mon, 6 May 1996 22:51:59 +0000 (22:51 +0000)
committerDoug Evans <dje@gnu.org>
Mon, 6 May 1996 22:51:59 +0000 (22:51 +0000)
* dbxout.c (dbxout_function): When deciding to call dbxout_function_end
change test from flag_function_sections to DECL_SECTION_NAME != NULL.

From-SVN: r11946

gcc/dbxout.c

index 9831cdddc36a6fb82f45012a61acb1d5e3aedbe9..83b81590e2e3c8dd06b1def1d35cd0f482e13274 100644 (file)
@@ -2692,7 +2692,8 @@ dbxout_function (decl)
   DBX_OUTPUT_FUNCTION_END (asmfile, decl);
 #endif
 #ifdef ASM_OUTPUT_SECTION_NAME
-  if (flag_function_sections && use_gnu_debug_info_extensions)
+  if (use_gnu_debug_info_extensions
+      && DECL_SECTION_NAME (decl) != NULL)
     dbxout_function_end ();
 #endif
 }