This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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]

Last IA64 HP-UX build patch


Here is the last of my 3 patches to fix warnings in the HP-UX IA64
binutils build.  This one puts an undef in front of the define of MIN in
gas/config/tc-ia64.c.  With this patch and the previous two I can build
binutils and gas on HP-UX IA64 with no errors.

Steve Ellcey
sje@cup.hp.com


gas/ChangeLog:

2005-05-05  Steve Ellcey  <sje@cup.hp.com>

	tc-ia64.c: undef MIN.

*** src.orig/gas/config/tc-ia64.c	Thu May  5 10:20:56 2005
--- src/gas/config/tc-ia64.c	Thu May  5 10:23:24 2005
***************
*** 56,61 ****
--- 56,64 ----
  #endif
  
  #define NELEMS(a)	((int) (sizeof (a)/sizeof ((a)[0])))
+ 
+ /* Some systems define MIN in, e.g., param.h.  */
+ #undef MIN
  #define MIN(a,b)	((a) < (b) ? (a) : (b))
  
  #define NUM_SLOTS	4


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