mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 17:40:49 +00:00
Correctly check gcc version.
This commit is contained in:
4
ld/ld.h
4
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user