From c0d80b8819e4bae4acd81cc435282dd774651ba9 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Thu, 1 Jul 1993 14:20:28 -0600 Subject: [PATCH] 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 --- gcc/config/pa/pa.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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) \ -- 2.30.2