aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-04-29 00:56:29 +0000
committerAlan Modra <amodra@gmail.com>2000-04-29 00:56:29 +0000
commita1934524a3fc1e93084d3148ddf590eb78eba875 (patch)
tree953088caff9e271c09fbfcabddc5d069d368eaf5 /ld
parent14958a432dbf8acd11a54f9956a12290dc1ea6e2 (diff)
downloadgdb-a1934524a3fc1e93084d3148ddf590eb78eba875.zip
gdb-a1934524a3fc1e93084d3148ddf590eb78eba875.tar.gz
gdb-a1934524a3fc1e93084d3148ddf590eb78eba875.tar.bz2
Correctly check gcc version.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/ld.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index cbe5c34..c8d8aa1 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2000-04-29 Andreas Jaeger <aj@suse.de>
+
+ * ld.h: Correctly check GCC version.
+
Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com)
* Makefile.am: Add PA64 support. Add missing dependencies for
diff --git a/ld/ld.h b/ld/ld.h
index 2c7e55d..e2052a0 100644
--- a/ld/ld.h
+++ b/ld/ld.h
@@ -235,8 +235,8 @@ extern void check_nocrossrefs PARAMS ((void));
extern void ld_abort PARAMS ((const char *, int, const char *))
ATTRIBUTE_NORETURN;
-/* If gcc, we can give a function name, too. */
-#if !defined (__GNUC__) || __GNUC_MINOR__ <= 5
+/* If gcc >= 2.6, we can give a function name, too. */
+#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 6)
#define __PRETTY_FUNCTION__ ((char*) NULL)
#endif