From 12ff5d5690066cac0467274b17afc1fbabaa04a4 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 14 Apr 2000 04:14:25 +0000 Subject: [PATCH] Portability fixes. --- binutils/ChangeLog | 7 +++++++ binutils/arlex.l | 4 ++++ binutils/objdump.c | 6 ------ binutils/readelf.c | 6 ------ gas/ChangeLog | 4 ++++ gas/as.h | 4 ++++ 6 files changed, 19 insertions(+), 12 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 71b60730a7..b7e2e50dc8 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,10 @@ +2000-04-14 Michael Sokolov + + * arlex.l: Add directives to increase lex buffer size. + + * objdump.c, readelf.c: Don't include strarg.h or varargs.h. They are + already included by bucomm.h. + 2000-04-10 Philippe De Muyter * readelf (dynamic_segment_mips_val): Call `sprintf', not diff --git a/binutils/arlex.l b/binutils/arlex.l index 74e13d13df..2fd94da4dd 100644 --- a/binutils/arlex.l +++ b/binutils/arlex.l @@ -31,6 +31,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ int linenumber; %} + +%a 10000 +%o 25000 + %% "ADDLIB" { return ADDLIB; } diff --git a/binutils/objdump.c b/binutils/objdump.c index a5ab114903..b86be6652b 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -29,12 +29,6 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "debug.h" #include "budbg.h" -#ifdef ANSI_PROTOTYPES -#include -#else -#include -#endif - /* Internal headers for the ELF .stab-dump code - sorry. */ #define BYTES_IN_WORD 32 #include "aout/aout64.h" diff --git a/binutils/readelf.c b/binutils/readelf.c index 55e68e1bf7..152ce1e937 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -74,12 +74,6 @@ #include "bucomm.h" #include "getopt.h" -#ifdef ANSI_PROTOTYPES -#include -#else -#include -#endif - char * program_name = "readelf"; unsigned int dynamic_addr; bfd_size_type dynamic_size; diff --git a/gas/ChangeLog b/gas/ChangeLog index 4bbe674fa6..903d21c2c7 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2000-04-14 Michael Sokolov + + * as.h (SEEK_SET): Define if undefined. + 2000-04-13 Alan Modra * config/tc-arm.c (md_apply_fix3): Don't use UL suffix on diff --git a/gas/as.h b/gas/as.h index 2106b339ab..c8d37879d4 100644 --- a/gas/as.h +++ b/gas/as.h @@ -211,6 +211,10 @@ extern char **environ; #define EXIT_FAILURE 1 #endif +#ifndef SEEK_SET +#define SEEK_SET 0 +#endif + #define obstack_chunk_alloc xmalloc #define obstack_chunk_free xfree -- 2.34.1