frv.h (ASM_SPEC): Pass -mno-fdpic as -mnopic.
authorAlexandre Oliva <aoliva@redhat.com>
Sun, 2 May 2004 04:50:04 +0000 (04:50 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Sun, 2 May 2004 04:50:04 +0000 (04:50 +0000)
* config/frv/frv.h (ASM_SPEC): Pass -mno-fdpic as -mnopic.
(CPP_SPEC, CPP_SIMPLE_SPEC): Undefine __FRV_ACC__ and __FRV_FPR__
before redefining them.

From-SVN: r81404

gcc/ChangeLog
gcc/config/frv/frv.h

index 9fa56520148d2f7277fccf71a6975e9385ca6bad..c2373755047487c6d11ce5c38623284bfc96ba92 100644 (file)
@@ -1,3 +1,9 @@
+2004-05-02  Alexandre Oliva  <aoliva@redhat.com>
+
+       * config/frv/frv.h (ASM_SPEC): Pass -mno-fdpic as -mnopic.
+       (CPP_SPEC, CPP_SIMPLE_SPEC): Undefine __FRV_ACC__ and __FRV_FPR__
+       before redefining them.
+
 2004-05-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * builtins.c (fold_fixed_mathfn): New function.
index 1e892102994dca04b4f3961688e08418b673077b..438fbfef4884d65d71989942571f1f951468b581 100644 (file)
     %{mmedia} %{mno-media} \
     %{mmuladd} %{mno-muladd} \
     %{mpack} %{mno-pack} \
-    %{mfdpic} \
+    %{mno-fdpic:-mnopic} %{mfdpic} \
     %{fpic|fpie: -mpic} %{fPIC|fPIE: -mPIC} %{mlibrary-pic}}"
 
 /* Another C string constant used much like `LINK_SPEC'.  The difference
 %{mcpu=tomcat: %(cpp_fr500)} \
 %{mcpu=simple: %(cpp_simple)} \
 %{!mcpu*: %(cpp_cpu_default)} \
-%{mno-media: -D__FRV_ACC__=0 %{msoft-float: -D__FRV_FPR__=0}} \
+%{mno-media: -U__FRV_ACC__ -D__FRV_ACC__=0 %{msoft-float: -U__FRV_FPR__ -D__FRV_FPR__=0}} \
 %{mhard-float: -D__FRV_HARD_FLOAT__} \
 %{msoft-float: -U__FRV_HARD_FLOAT__} \
 %{mgpr-32: -U__FRV_GPR__ -D__FRV_GPR__=32} \
 -D__FRV_GPR__=32 \
 -D__FRV_FPR__=0 \
 -D__FRV_ACC__=0 \
-%{mmedia: -D__FRV_ACC__=8} \
+%{mmedia: -U__FRV_ACC__ -D__FRV_ACC__=8} \
 %{mhard-float|mmedia: -D__FRV_FPR__=64}"
 
 #define MASK_DEFAULT_FRV       \