aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMumit Khan <khan@xraylith.wisc.edu>1999-12-14 06:57:48 +0000
committerMumit Khan <khan@gcc.gnu.org>1999-12-14 06:57:48 +0000
commit9b0b6c5118858730896ebae968149791c376f704 (patch)
tree5b29868299a4e2537cf3aac2592634af7218b543 /gcc
parent986c364253846aef7f9f0fdf06f3d141db4b4d87 (diff)
downloadgcc-9b0b6c5118858730896ebae968149791c376f704.zip
gcc-9b0b6c5118858730896ebae968149791c376f704.tar.gz
gcc-9b0b6c5118858730896ebae968149791c376f704.tar.bz2
crtdll.h (STARTFILE_SPEC): Add -pg profiling support.
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. From-SVN: r30900
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog11
-rw-r--r--gcc/config/i386/crtdll.h2
-rw-r--r--gcc/config/i386/mingw32.h8
-rw-r--r--gcc/config/i386/uwin.h8
4 files changed, 24 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7e76aed..446631b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,14 @@
+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.
+
Mon Dec 13 20:25:29 1999 Jeffrey A Law (law@cygnus.com)
* combine.c (combine_simplify_rtx): Fix order of checks for
diff --git a/gcc/config/i386/crtdll.h b/gcc/config/i386/crtdll.h
index 3202af8..6ec3f50 100644
--- a/gcc/config/i386/crtdll.h
+++ b/gcc/config/i386/crtdll.h
@@ -36,5 +36,5 @@ Boston, MA 02111-1307, USA. */
/* Specify a different entry point when linking a DLL */
#undef STARTFILE_SPEC
-#define STARTFILE_SPEC "%{mdll:dllcrt1%O%s} %{!mdll:crt1%O%s}"
+#define STARTFILE_SPEC "%{mdll:dllcrt1%O%s} %{!mdll:crt1%O%s} %{pg:gcrt1%O%s}"
diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h
index 5ec2448..15528e6 100644
--- a/gcc/config/i386/mingw32.h
+++ b/gcc/config/i386/mingw32.h
@@ -50,7 +50,7 @@ Boston, MA 02111-1307, USA. */
/* For Windows applications, include more libraries, but always include
kernel32. */
#undef LIB_SPEC
-#define LIB_SPEC "%{mwindows:-lgdi32 -lcomdlg32} \
+#define LIB_SPEC "%{pg:-lgmon} %{mwindows:-lgdi32 -lcomdlg32} \
-luser32 -lkernel32 -ladvapi32 -lshell32"
/* Include in the mingw32 libraries with libgcc */
@@ -58,7 +58,7 @@ Boston, MA 02111-1307, USA. */
#define LIBGCC_SPEC "-lmingw32 -lgcc -lmoldname -lmsvcrt"
#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}"
/* MS runtime does not need a separate math library. */
#define MATH_LIBRARY ""
@@ -84,3 +84,7 @@ 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
+
diff --git a/gcc/config/i386/uwin.h b/gcc/config/i386/uwin.h
index 84604fb..0588bc0 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
+