summaryrefslogtreecommitdiff
path: root/gcc/config/i386/uwin.h
diff options
context:
space:
mode:
authorkhan <khan@138bc75d-0d04-0410-961f-82ee72b054a4>1999-12-14 06:57:48 +0000
committerkhan <khan@138bc75d-0d04-0410-961f-82ee72b054a4>1999-12-14 06:57:48 +0000
commit4d541bccfb201962178145d6bc5394cb2148ed03 (patch)
tree5b29868299a4e2537cf3aac2592634af7218b543 /gcc/config/i386/uwin.h
parentd4e2e29babddc888bd8b2d55ccece565cd938e15 (diff)
downloadgcc-4d541bccfb201962178145d6bc5394cb2148ed03.tar.gz
1999-12-14 Mumit Khan <khan@xraylith.wisc.edu>
* i386/crtdll.h (STARTFILE_SPEC): Add -pg profiling support. * i386/mingw32.h (LIB_SPEC): Likewise. (STARTFILE_SPEC): Likewise. * i386/uwin.h (LIB_SPEC): Likewise. (STARTFILE_SPEC): Likewise. * i386/mingw32.h (SUBTARGET_PROLOGUE): Override Cygwin definition. * i386/uwin.h (SUBTARGET_PROLOGUE): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30900 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386/uwin.h')
-rw-r--r--gcc/config/i386/uwin.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/config/i386/uwin.h b/gcc/config/i386/uwin.h
index 84604fb9b00..0588bc0d772 100644
--- a/gcc/config/i386/uwin.h
+++ b/gcc/config/i386/uwin.h
@@ -51,7 +51,7 @@ Boston, MA 02111-1307, USA. */
kernel32. */
#undef LIB_SPEC
#define LIB_SPEC \
- "%{mwindows:-luser32 -lgdi32 -lcomdlg32} -lkernel32 -ladvapi32"
+ "%{pg:-lgmon} %{mwindows:-luser32 -lgdi32 -lcomdlg32} -lkernel32 -ladvapi32"
/* This is needed in g77spec.c for now. Will be removed in the future. */
#define WIN32_UWIN_TARGET 1
@@ -67,7 +67,7 @@ Boston, MA 02111-1307, USA. */
%{!mdll:-u _main}"
#undef STARTFILE_SPEC
-#define STARTFILE_SPEC "%{mdll:dllcrt2%O%s} %{!mdll:crt2%O%s}"
+#define STARTFILE_SPEC "%{mdll:dllcrt2%O%s} %{!mdll:crt2%O%s} %{pg:gcrt2%O%s}"
/* These are PE BFD bug workarounds. Should go away eventually. */
@@ -90,3 +90,7 @@ Boston, MA 02111-1307, USA. */
#undef ASM_OUTPUT_EXTERNAL
#undef ASM_OUTPUT_EXTERNAL_LIBCALL
+/* 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
+