pa.c (override_options): Warn if both PIC code generation and profiling are requested.
authorJeff Law <law@gcc.gnu.org>
Fri, 23 Feb 1996 16:23:13 +0000 (09:23 -0700)
committerJeff Law <law@gcc.gnu.org>
Fri, 23 Feb 1996 16:23:13 +0000 (09:23 -0700)
        * pa.c (override_options): Warn if both PIC code generation and
        profiling are requested.

From-SVN: r11343

gcc/config/pa/pa.c

index 2c3e0140ae704e387dfd1284a5c6a0e47575a106..026821c37abb5f564dd73a2e1b9e83e5e663f1fe 100644 (file)
@@ -108,6 +108,11 @@ override_options ()
    {
       warning ("PIC code generation is not compatable with fast indirect calls\n");
    }
+
+  if (flag_pic && profile_flag)
+    {
+      warning ("PIC code generation is not compatable with profiling\n");
+    }
 }