This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] undef PSEUDO_END in sysdeps/unix/mips/sysdep.h


sysdeps/unix/mips/sysdep.h pulls in sysdeps/unix/sysdep.h, which
defines PSEUDO_END.

sysdeps/unix/mips/sysdep.h then defines PSEUDO_END itself,
unconditionally, w/o undef'ing it.

Warnings occur.

This patch makes sysdeps/unix/mips/sysdep.h undef it first.  This
seems kind-of strange to me (why not just define it *before* including
sysdeps/unix/sysdep.h?), but the sysdeps/unix/alpha bits do it the
same way...

(tested using glibc sources as of 2003-08-16 00:00 UTC.)


chris
--
Chris Demetriou                                            Broadcom Corporation
                Principal Design Engineer, Broadband Processors
  Any opinions expressed in this message are mine, not necessarily Broadcom's.
--
2003-09-09  Chris Demetriou  <cgd@broadcom.com>

        * sysdeps/unix/mips/sysdep.h (PSEUDO_END): Undef before defining.

Index: sysdeps/unix/mips/sysdep.h
*** sysdeps/unix/mips/sysdep.h	Fri Aug 15 19:34:50 2003
--- sysdeps/unix/mips/sysdep.h	Sat Aug 30 20:41:23 2003
***************
*** 37,42 ****
--- 37,43 ----
  
  #define ret	j ra ; nop
  
+ #undef PSEUDO_END
  #define PSEUDO_END(sym) .end sym; .size sym,.-sym
  
  #define PSEUDO_NOERRNO(name, syscall_name, args)	\


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]