From 152f50979835aa4a88123c27ed97c0539075616f Mon Sep 17 00:00:00 2001 From: Brendan Kehoe Date: Thu, 29 Sep 1994 21:21:19 +0000 Subject: [PATCH] * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (ENTRY): Use poundfnc instead of \#function, to satisfy gcc-2.6.0 and higher. (cat, poundfnc): Define macros to pull it off. --- sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h b/sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h index 711fd8c7ff..90e2b38427 100644 --- a/sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h +++ b/sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1993 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1994 Free Software Foundation, Inc. Contributed by Brendan Kehoe (brendan@zen.org). The GNU C Library is free software; you can redistribute it and/or @@ -21,11 +21,17 @@ Cambridge, MA 02139, USA. */ #include +/* As of gcc-2.6.0, it complains about pound signs in front of things + that aren't arguments to the macro. So we use this to pull it off + instead. */ +#define cat(a,b) a##b +#define poundfnc cat(#,function) + #define ENTRY(name) \ .section ".text"; \ .align 4; \ .global C_SYMBOL_NAME(name); \ - .type C_SYMBOL_NAME(name), \#function; \ + .type C_SYMBOL_NAME(name), poundfnc; \ C_LABEL(name) #define PSEUDO(name, syscall_name, args) \