[uClibc]error building mipsel-linux gmon.c

Liam Girdwood liam.girdwood at wolfsonmicro.com
Wed Apr 16 08:40:43 UTC 2003


On Tue, 2003-04-15 at 20:52, Erik Andersen wrote:
> On Tue Apr 15, 2003 at 07:43:58PM +0200, Peter Kjellerstedt wrote:
> > >   
> > > +#if  __GNUC__ <= 3 && __GNUC_MINOR__ <= 1
> >
> > Shouldn't that be:
> > 
> > #if __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ <= 1)
> 
> yes, of course, thanks,
> 

Patch updated

diff -u -r1.1 machine-gmon.h
--- libc/sysdeps/linux/mips/bits/machine-gmon.h 3 Mar 2003 20:58:25
-0000      1.1
+++ libc/sysdeps/linux/mips/bits/machine-gmon.h 16 Apr 2003 08:43:27
-0000
@@ -17,8 +17,13 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
  
+#if __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ <= 1)
 #define _MCOUNT_DECL(frompc,selfpc) \
 static void __attribute_used__ __mcount (u_long frompc, u_long selfpc)
+#else
+#define _MCOUNT_DECL(frompc,selfpc) \
+static void __mcount (u_long frompc, u_long selfpc)
+#endif
  
 /* Call __mcount with our the return PC for our caller,
    and the return PC our caller will return to.  */


Cheers


Liam

-- 
Liam Girdwood <liam.girdwood at wolfsonmicro.com>



Wolfson Microelectronics plc
http://www.wolfsonmicro.com
t: +44 131 272-7000
f: +44 131 272-7001
Registered in Scotland 89839

This message may contain confidential or proprietary information. If you receive this message in error, please
immediately delete it, destroy all copies of it and notify the sender. Any views expressed in this message are those of the individual sender,
except where the message states otherwise. We take reasonable precautions to ensure our Emails are virus free.
However, we cannot accept responsibility for any virus transmitted by us
and recommend that you subject any incoming Email to your own virus
checking procedures.



More information about the uClibc mailing list