OSDN Git Service

Add -mdynamic-no-pic to compile flags for gcc. On Mac OS X and Darwin,
authorbowdidge <bowdidge@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Aug 2004 20:02:46 +0000 (20:02 +0000)
committerbowdidge <bowdidge@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Aug 2004 20:02:46 +0000 (20:02 +0000)
the compiler generates position-independent-code by default.  This allows
an object file to be used for a dylib or executable without any thought
on the developer's part, but generates less-efficient code.  Setting this
flag on gcc speeds compiles by 3-5%.
        * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86141 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/rs6000/x-darwin

index 89b102c..8525cac 100644 (file)
@@ -1,3 +1,7 @@
+2004-08-17  Robert Bowdidge  <bowdidge@apple.com>
+  
+        * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
+
 2004-08-17  Andreas Tobler  <a.tobler@schweiz.ch>
 
        * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
index f7242a7..0a2f528 100644 (file)
@@ -1,3 +1,4 @@
+XCFLAGS = -mdynamic-no-pic
 host-darwin.o : $(srcdir)/config/rs6000/host-darwin.c $(CONFIG_H) $(SYSTEM_H) \
   coretypes.h hosthooks.h hosthooks-def.h toplev.h diagnostic.h
        $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \