pa.h (OVERRIDE_OPTIONS): Define.
authorJeff Law <law@gcc.gnu.org>
Thu, 1 Jul 1993 20:20:28 +0000 (14:20 -0600)
committerJeff Law <law@gcc.gnu.org>
Thu, 1 Jul 1993 20:20:28 +0000 (14:20 -0600)
* pa.h (OVERRIDE_OPTIONS): Define.  Give a warning if -fpic or
-fPIC was specified on the command line.

From-SVN: r4820

gcc/config/pa/pa.h

index e478992..0931cff 100644 (file)
@@ -116,6 +116,21 @@ extern int target_flags;
 #define WCHAR_TYPE "short unsigned int"
 #define WCHAR_TYPE_SIZE 16
 
+/* Sometimes certain combinations of command options do not make sense
+   on a particular target machine.  You can define a macro
+   `OVERRIDE_OPTIONS' to take account of this.  This macro, if
+   defined, is executed once just after all the command options have
+   been parsed.
+
+   On the PA, it is used to explicitly warn the user that -fpic and -fPIC
+   do not work.  */
+
+#define OVERRIDE_OPTIONS \
+{                                                              \
+  if (flag_pic != 0)                                           \
+    warning ("-fpic and -fPIC are not supported on the PA.");  \
+}
+
 /* Omit frame pointer at high optimization levels.  */
   
 #define OPTIMIZATION_OPTIONS(OPTIMIZE) \