[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bison-2.0a feedback
From: |
Bruno Haible |
Subject: |
bison-2.0a feedback |
Date: |
Wed, 25 May 2005 12:03:47 +0200 |
User-agent: |
KMail/1.5 |
Some test results of bison-2.0a.
1) On BeOS 5, i586-pc-beos, we have the following warnings.
gcc -Wall -DHAVE_CONFIG_H -I. -I. -I.. -I/boot/home/config/include -g -O2 -c
bitset.c
/boot/home/gnubuild/bison-2.0a/lib/bitset.c: In function `bitset_print':
/boot/home/gnubuild/bison-2.0a/lib/bitset.c:310: warning: int format, long int
arg (arg 3)
gcc -Wall -DHAVE_CONFIG_H -I. -I. -I.. -I/boot/home/config/include -g -O2 -c
ebitset.c
/boot/home/gnubuild/bison-2.0a/lib/ebitset.c:119: warning: `min' redefined
/boot/develop/headers/be/support/SupportDefs.h:85: warning: this is the
location of the previous definition
/boot/home/gnubuild/bison-2.0a/lib/ebitset.c:120: warning: `max' redefined
/boot/develop/headers/be/support/SupportDefs.h:88: warning: this is the
location of the previous definition
gcc -Wall -DHAVE_CONFIG_H -I. -I. -I.. -I/boot/home/config/include -g -O2 -c
vbitset.c
/boot/home/gnubuild/bison-2.0a/lib/vbitset.c:52: warning: `min' redefined
/boot/develop/headers/be/support/SupportDefs.h:85: warning: this is the
location of the previous definition
/boot/home/gnubuild/bison-2.0a/lib/vbitset.c:53: warning: `max' redefined
/boot/develop/headers/be/support/SupportDefs.h:88: warning: this is the
location of the previous definition
gcc -Wall -DHAVE_CONFIG_H -DPKGDATADIR=\"/boot/home/config/share/bison\"
-DLOCALEDIR=\"/boot/home/config/share/locale\" -I. -I. -I.. -I../lib -I../lib
-I/boot/home/config/include -g -O2 -c scan-gram.c
/boot/home/gnubuild/bison-2.0a/src/scan-gram.l: In function `gram_lex':
/boot/home/gnubuild/bison-2.0a/src/scan-gram.l:134: warning: `braces_level'
might be used uninitialized in this function
/boot/home/gnubuild/bison-2.0a/src/scan-gram.l:137: warning: `context_state'
might be used uninitialized in this function
/boot/home/gnubuild/bison-2.0a/src/scan-gram.l:140: warning: `token_type' might
be used uninitialized in this function
gcc -Wall -DHAVE_CONFIG_H -DPKGDATADIR=\"/boot/home/config/share/bison\"
-DLOCALEDIR=\"/boot/home/config/share/locale\" -I. -I. -I.. -I../lib -I../lib
-I/boot/home/config/include -g -O2 -c scan-skel.c
/boot/home/gnubuild/bison-2.0a/src/scan-skel.l: In function `skel_lex':
/boot/home/gnubuild/bison-2.0a/src/scan-skel.l:44: warning: `lineno' might be
used uninitialized in this function
The testsuite passes OK.
2) On FreeBSD 4.0, i386, with gcc-2.95.3, we have the following warnings.
gcc -Wall -DHAVE_CONFIG_H -I. -I. -I.. -I/home/bruno/include -g -O2 -c
subpipe.c
subpipe.c: In function `create_subpipe':
subpipe.c:103: warning: variable `from_in_fd' might be clobbered by `longjmp'
or `vfork'
subpipe.c:104: warning: variable `from_out_fd' might be clobbered by `longjmp'
or `vfork'
subpipe.c:105: warning: variable `to_in_fd' might be clobbered by `longjmp' or
`vfork'
subpipe.c:106: warning: variable `to_out_fd' might be clobbered by `longjmp' or
`vfork'
gcc -Wall -DHAVE_CONFIG_H -DPKGDATADIR=\"/home/bruno/share/bison\"
-DLOCALEDIR=\"/home/bruno/share/locale\" -I. -I. -I.. -I../lib -I../lib
-I/home/bruno/include -g -O2 -c scan-gram.c
scan-gram.c: In function `gram_lex':
scan-gram.l:134: warning: `braces_level' might be used uninitialized in this
function
scan-gram.l:137: warning: `context_state' might be used uninitialized in this
function
scan-gram.l:140: warning: `token_type' might be used uninitialized in this
function
gcc -Wall -DHAVE_CONFIG_H -DPKGDATADIR=\"/home/bruno/share/bison\"
-DLOCALEDIR=\"/home/bruno/share/locale\" -I. -I. -I.. -I../lib -I../lib
-I/home/bruno/include -g -O2 -c scan-skel.c
scan-skel.c: In function `skel_lex':
scan-skel.l:44: warning: `lineno' might be used uninitialized in this function
The testsuite passes OK.
3) On MacOS X 10.3.9, we have this warning.
if gcc -Wall -DHAVE_CONFIG_H -I. -I. -I..
-I/Volumes/UserData/local-macos/include -g -O2 -MT bitset.o -MD -MP -MF
".deps/bitset.Tpo" -c -o bitset.o bitset.c; \
then mv -f ".deps/bitset.Tpo" ".deps/bitset.Po"; else rm -f ".deps/bitset.Tpo";
exit 1; fi
bitset.c: In function `bitset_print':
bitset.c:310: warning: int format, bitset_bindex arg (arg 3)
The testsuite passes OK.
4) With gcc-4.0.0, both on Linux/x86 and MacOS X 10.3.9, the five
"User Actions" tests are skipped. Since gcc-4 will soon be the standard
compiler on these systems, it's worth fixing this.
2005-05-24 Bruno Haible <address@hidden>
* tests/synclines.at (AT_SYNCLINES_COMPILE): Add support for the
error message syntax used by gcc-4.0.
*** bison-2.0a/tests/synclines.at.bak 2005-05-14 08:52:30.000000000 +0200
--- bison-2.0a/tests/synclines.at 2005-05-25 01:26:00.000000000 +0200
***************
*** 1,5 ****
# Executing Actions. -*- Autotest -*-
! # Copyright (C) 2002, 2004 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
--- 1,5 ----
# Executing Actions. -*- Autotest -*-
! # Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
***************
*** 29,39 ****
[AT_CHECK([$CC $CFLAGS $CPPFLAGS -c $1], [ignore], [], [stderr])
# In case GCC displays column information, strip it down.
#
! # input.y:4:2: #error "4" or input.y:4.2: #error "4"
# =>
# input.y:4: #error "4"
#
! AT_CHECK([[sed 's/^\([^:]*:[^:.]*\)[.:][^:]*:\(.*\)$/\1:\2/' stderr]], 0,
[stdout])
])
# AT_TEST_SYNCLINE(TITLE, INPUT, ERROR-MSG)
--- 29,41 ----
[AT_CHECK([$CC $CFLAGS $CPPFLAGS -c $1], [ignore], [], [stderr])
# In case GCC displays column information, strip it down.
#
! # input.y:4:2: #error "4" or
! # input.y:4.2: #error "4" or
! # input.y:4:2: Fehler: #error "4"
# =>
# input.y:4: #error "4"
#
! AT_CHECK([[sed -e 's/^\([^:]*:[^:.]*\)[.:][^:]*:\(.*\)$/\1:\2/' -e
's/^\([^:]*:[^:]*:\)address@hidden:@]*\( @%:@error\)/\1\2/' stderr]], 0,
[stdout])
])
# AT_TEST_SYNCLINE(TITLE, INPUT, ERROR-MSG)
Bruno
- bison-2.0a feedback,
Bruno Haible <=