diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2002-12-05 23:55:15 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2002-12-05 23:55:15 +0000 |
commit | d176882655c86435dd59fc2646b1b8102bc7e200 (patch) | |
tree | 5f845ea5975f4975c84d1523889809bc46b6c3d0 | |
parent | d5113372da4603fe6e0c9ba645002584c2b3ee82 (diff) |
* config/i386/cygwin.h (SUBTARGET_PROLOGUE): Replace with
PROFILE_HOOK.
* config/i386/mingw32.h (SUBTARGET_PROLOGUE): Don't undef.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@59874 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/i386/cygwin.h | 12 | ||||
-rw-r--r-- | gcc/config/i386/mingw32.h | 4 |
3 files changed, 12 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index caedebf4449..683219fd952 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h index 680bf74da77..f630d1f8450 100644 --- a/gcc/config/i386/cygwin.h +++ b/gcc/config/i386/cygwin.h @@ -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. */ diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h index 6b367eba314..e7c5e8b6bcc 100644 --- a/gcc/config/i386/mingw32.h +++ b/gcc/config/i386/mingw32.h @@ -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" |