]> 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 23:55:15 +0000 (23:55 +0000)
committerDanny Smith <dannysmith@gcc.gnu.org>
Thu, 5 Dec 2002 23:55:15 +0000 (23:55 +0000)
* config/i386/cygwin.h (SUBTARGET_PROLOGUE): Replace with
PROFILE_HOOK.
* config/i386/mingw32.h (SUBTARGET_PROLOGUE): Don't undef.

From-SVN: r59874

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

index caedebf44490dce154c356922a668e33053587ab..683219fd952d1af0b23c5431e61eaa5e5c56a83a 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  Aldy Hernandez  <aldyh@redhat.com>
 
        * config/rs6000/spe.h (__ev_mwlufi): Remove.
index 680bf74da775c492e31afe880569982e54fb7ace..f630d1f8450036df936b85c51b079356004ca32c 100644 (file)
@@ -387,15 +387,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 6b367eba314de4ff8f87e0690d73ec6701d4f62d..e7c5e8b6bcc04c5ea63bd312681c3d9dec57df4d 100644 (file)
@@ -127,10 +127,6 @@ 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
-
 /* Define as short unsigned for compatability with MS runtime.  */
 #undef WINT_TYPE
 #define WINT_TYPE "short unsigned int"