OSDN Git Service

PR 18149
[pf3gnuchains/gcc-fork.git] / gcc / config / i386 / darwin.h
index b0e2f01..c7b583d 100644 (file)
@@ -39,13 +39,14 @@ Boston, MA 02111-1307, USA.  */
    the kernel or some such.  */
 
 #undef CC1_SPEC
-#define CC1_SPEC "%{!static:-fPIC}"
+#define CC1_SPEC "%{!static:-fPIC}\
+  %{gused: -g -feliminate-unused-debug-symbols %<gused }\
+  %{gfull: -g -fno-eliminate-unused-debug-symbols %<gfull }\
+  %{g: %{!gfull: -feliminate-unused-debug-symbols %<gfull }}"
 
+#undef ASM_SPEC
 #define ASM_SPEC "-arch i686 \
   -force_cpusubtype_ALL \
-  %{gused: -g -feliminate-unused-debug-symbols %<gused }\
-  %{gfull: -g -fno-eliminate-unused-debug-symbols %<gfull }\
-  %{g: %{!gfull: -feliminate-unused-debug-symbols %<gfull }}\
   %{Zforce_cpusubtype_ALL:-force_cpusubtype_ALL} \
   %{!Zforce_cpusubtype_ALL:%{mmmx:-force_cpusubtype_ALL}\
                           %{msse:-force_cpusubtype_ALL}\
@@ -98,10 +99,8 @@ Boston, MA 02111-1307, USA.  */
 
 /* These are used by -fbranch-probabilities */
 #define HOT_TEXT_SECTION_NAME "__TEXT,__text,regular,pure_instructions"
-#define NORMAL_TEXT_SECTION_NAME "__TEXT,__text,regular,pure_instructions"
 #define UNLIKELY_EXECUTED_TEXT_SECTION_NAME \
                               "__TEXT,__unlikely,regular,pure_instructions"
-#define SECTION_FORMAT_STRING ".section %s\n\t.align 2\n" 
 
 /* Assembler pseudos to introduce constants of various size.  */
 
@@ -143,9 +142,9 @@ Boston, MA 02111-1307, USA.  */
     do {                                                               \
       if (MACHOPIC_INDIRECT)                                           \
        {                                                               \
-         const char *name = machopic_stub_name ("*mcount");            \
+         const char *name = machopic_mcount_stub_name ();              \
          fprintf (FILE, "\tcall %s\n", name+1);  /*  skip '&'  */      \
-         machopic_validate_stub_or_non_lazy_ptr (name, /*stub:*/1);    \
+         machopic_validate_stub_or_non_lazy_ptr (name);                \
        }                                                               \
       else fprintf (FILE, "\tcall mcount\n");                          \
     } while (0)