diff options
author | Alan Modra <amodra@gmail.com> | 2005-02-22 12:57:27 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2005-02-22 12:57:27 +0000 |
commit | dc3c06c291951d9aca329aa6a69fc3443f08f0b1 (patch) | |
tree | 0cc8fa1cb3099e3e792d41eff523bbcbd7637477 /binutils/sysinfo.y | |
parent | 58e2ea4d1caa51d171a9a8fb8649a6cda59ad28e (diff) | |
download | gdb-dc3c06c291951d9aca329aa6a69fc3443f08f0b1.zip gdb-dc3c06c291951d9aca329aa6a69fc3443f08f0b1.tar.gz gdb-dc3c06c291951d9aca329aa6a69fc3443f08f0b1.tar.bz2 |
* Makefile.am (syslex.o, sysinfo.o): Pass AM_CFLAGS to compiler.
(syslex.o, sysinfo.o, dlltool.o, rescoff.o): Remove duplicate
dependencies. Run "make dep-am".
* nlmconv.c: Warning fixes.
* readelf.c: Likewise.
* srconv.c: Likewise.
* sysdump.c: Likewise.
* sysinfo.y: Likewise.
* syslex.l: Likewise. Use yyleng instead of strlen, memcpy instead
of strcpy.
* Makefile.in: Regenerate.
Diffstat (limited to 'binutils/sysinfo.y')
-rw-r--r-- | binutils/sysinfo.y | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/binutils/sysinfo.y b/binutils/sysinfo.y index bf19263..807ac78 100644 --- a/binutils/sysinfo.y +++ b/binutils/sysinfo.y @@ -1,4 +1,4 @@ -/* Copyright 2001, 2003 Free Software Foundation, Inc. +/* Copyright 2001, 2003, 2005 Free Software Foundation, Inc. Written by Steve Chamberlain of Cygnus Support (steve@cygnus.com). This file is part of GNU binutils. @@ -37,6 +37,9 @@ int rdepth; char *loop [] = {"","n","m","/*BAD*/"}; char *names[] = {" ","[n]","[n][m]"}; char *pnames[]= {"","*","**"}; + +static int yyerror (char *s); +extern int yylex (void); %} @@ -117,7 +120,7 @@ it: printf("void sysroff_swap_%s_in(ptr)\n",$2); printf("struct IT_%s *ptr;\n", it); printf("{\n"); - printf("char raw[255];\n"); + printf("unsigned char raw[255];\n"); printf("\tint idx = 0 ;\n"); printf("\tint size;\n"); printf("memset(raw,0,255);\n"); @@ -129,7 +132,7 @@ it: printf("FILE * file;\n"); printf("struct IT_%s *ptr;\n", it); printf("{\n"); - printf("\tchar raw[255];\n"); + printf("\tunsigned char raw[255];\n"); printf("\tint idx = 16 ;\n"); printf("\tmemset (raw, 0, 255);\n"); printf("\tcode = IT_%s_CODE;\n", it); @@ -431,7 +434,7 @@ if (writecode == 'd') return 0; } -int +static int yyerror (char *s) { fprintf(stderr, "%s\n" , s); |