From: Jeff Law Date: Thu, 1 Jul 1993 20:20:28 +0000 (-0600) Subject: pa.h (OVERRIDE_OPTIONS): Define. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0d80b8819e4bae4acd81cc435282dd774651ba9;p=gcc.git pa.h (OVERRIDE_OPTIONS): Define. * pa.h (OVERRIDE_OPTIONS): Define. Give a warning if -fpic or -fPIC was specified on the command line. From-SVN: r4820 --- diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index e478992eecb..0931cff733d 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -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) \