]> gcc.gnu.org Git - gcc.git/commitdiff
(handle_pragma_weak): Test HANDLE_PRAGMA_WEAK
authorRichard Stallman <rms@gnu.org>
Thu, 23 Sep 1993 17:25:13 +0000 (17:25 +0000)
committerRichard Stallman <rms@gnu.org>
Thu, 23 Sep 1993 17:25:13 +0000 (17:25 +0000)
and WEAK_ASM_OP and SET_ASM_OP.

From-SVN: r5438

gcc/varasm.c

index 36ebfb6620e4a4754f437c7fa39fe0e8e6337bb9..382a4e97396d336624a2cc4b7432f2cf4028bcdf 100644 (file)
@@ -3619,6 +3619,9 @@ output_constructor (exp, size)
 
 #ifdef HANDLE_SYSV_PRAGMA
 
+/* Support #pragma weak by default if WEAK_ASM_OP is defined.  */
+#if defined (HANDLE_PRAGMA_WEAK) || (defined (WEAK_ASM_OP) && defined (SET_ASM_OP))
+
 /* Output asm to handle ``#pragma weak'' */
 void
 handle_pragma_weak (what, asm_out_file, name, value)
@@ -3657,4 +3660,6 @@ handle_pragma_weak (what, asm_out_file, name, value)
     warning ("malformed `#pragma weak'");
 }
 
+#endif /* HANDLE_PRAGMA_WEAK or (WEAK_ASM_OP and SET_ASM_OP) */
+
 #endif /* HANDLE_SYSV_PRAGMA */
This page took 0.074361 seconds and 5 git commands to generate.