diff options
author | dannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-12-05 20:20:32 +0000 |
---|---|---|
committer | dannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-12-05 20:20:32 +0000 |
commit | e902f1d721386d6f584bded5a114432c4db4c26c (patch) | |
tree | bbf6d3bb3681a70e6275766984c37c1f9c8e88e3 | |
parent | fbfeaad60c772116987ca01f33fb68da0f890071 (diff) |
* config/i386/cygming.h (SUBTARGET_PROLOGUE): Replace withcygwin-mingw-gcc-3_2_1-branch
PROFILE_HOOK.
* config/i386/mingw32.h (SUBTARGET_PROLOGUE): Don't undef.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/cygwin-mingw-gcc-3_2_1-branch@59865 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog.cygwin-mingw | 6 | ||||
-rw-r--r-- | gcc/config/i386/cygming.h | 12 | ||||
-rw-r--r-- | gcc/config/i386/mingw32.h | 4 |
3 files changed, 12 insertions, 10 deletions
diff --git a/gcc/ChangeLog.cygwin-mingw b/gcc/ChangeLog.cygwin-mingw index a6dffd5f787..afe447ab3b3 100644 --- a/gcc/ChangeLog.cygwin-mingw +++ b/gcc/ChangeLog.cygwin-mingw @@ -1,3 +1,9 @@ +2002-12-05 Danny Smith <dannysmith@users.sourceforge.net> + + * config/i386/cygming.h (SUBTARGET_PROLOGUE): Replace with + PROFILE_HOOK. + * config/i386/mingw32.h (SUBTARGET_PROLOGUE): Don't undef. + 2002-01-13 Christopher Faylor <cgf@redhat.com> * cppfiles.c (TEST_THRESHOLD): New macro. diff --git a/gcc/config/i386/cygming.h b/gcc/config/i386/cygming.h index 06973c2a8a2..dca1c384a94 100644 --- a/gcc/config/i386/cygming.h +++ b/gcc/config/i386/cygming.h @@ -347,15 +347,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. */ diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h index 74b0da79d38..e79df34159e 100644 --- a/gcc/config/i386/mingw32.h +++ b/gcc/config/i386/mingw32.h @@ -96,10 +96,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 unsigned short for compatability with MS runtime. */ #undef WINT_TYPE #define WINT_TYPE "short unsigned int" |