]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cygwin.h (SUBTARGET_PROLOGUE): Replace with PROFILE_HOOK.
authorDanny Smith <dannysmith@users.sourceforge.net>
Thu, 5 Dec 2002 20:30:32 +0000 (20:30 +0000)
committerDanny Smith <dannysmith@gcc.gnu.org>
Thu, 5 Dec 2002 20:30:32 +0000 (20:30 +0000)
* config/i386/cygwin.h (SUBTARGET_PROLOGUE): Replace with
PROFILE_HOOK.
* config/i386/mingw32.h (SUBTARGET_PROLOGUE): Don't undef.

From-SVN: r59866

gcc/ChangeLog
gcc/config/i386/cygwin.h
gcc/config/i386/mingw32.h

index b8f8c273d09c025a065ae2c8aa184740369113cc..151bc547185751aad30428aff2d09cba38f023d9 100644 (file)
@@ -1,3 +1,9 @@
+2002-12-05  Danny Smith  <dannysmith@users.sourceforge.net>
+
+       * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Replace with
+       PROFILE_HOOK.
+       * config/i386/mingw32.h (SUBTARGET_PROLOGUE): Don't undef.
+
 2002-12-05  Nick Clifton  <nickc@redhat.com>
 
        * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Check for frame
index 35f820985f4c41dbd86378204a7ac6f7420e76a5..a0b8834ef3207b845fc0aa2a9c647adc3ff23cf5 100644 (file)
@@ -431,15 +431,15 @@ extern void i386_pe_unique_section PARAMS ((TREE, int));
 /* Don't assume anything about the header files.  */
 #define NO_IMPLICIT_EXTERN_C
 
-#define SUBTARGET_PROLOGUE                                             \
-  if (current_function_profile                                         \
-      && MAIN_NAME_P (DECL_NAME (current_function_decl)))              \
-     {                                                                 \
-      emit_call_insn (gen_rtx (CALL, VOIDmode,                                 \
+#undef PROFILE_HOOK
+#define PROFILE_HOOK(LABEL)                                            \
+  if (MAIN_NAME_P (DECL_NAME (current_function_decl)))                 \
+                                                                     \
+      emit_call_insn (gen_rtx (CALL, VOIDmode,                         \
        gen_rtx_MEM (FUNCTION_MODE,                                     \
                     gen_rtx_SYMBOL_REF (Pmode, "_monstartup")),        \
        const0_rtx));                                                   \
-     }
+    }
 
 /* External function declarations.  */
 
index b93e856fdd9fe5cbce4a6b5c5352708968a9c09f..629328ecb61665de36cbb8d97b5067393b67a14d 100644 (file)
@@ -106,7 +106,3 @@ do {                                                \
   putc ('\"', asm_file);                       \
 } while (0)
 
-/* Override Cygwin's definition. This is necessary now due to the way
-   Cygwin profiling code is written. Once "fixed", we can remove this.  */
-#undef SUBTARGET_PROLOGUE
-