bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bison -d option generates sparse .h files


From: Hal Brodigan
Subject: bison -d option generates sparse .h files
Date: Fri, 07 Oct 2005 19:12:59 -0700
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050731)

I've noticed that when creating bison files with C code in the Prologue section that this code does not show up in the generated .h files when using "bison -d". This is especially annoying when one is trying to override the default definitions of bison, such as YYSTYPE. If one redefines YYSTYPE, the redefinition will not be included in the generated .h file and any other code that expects the new definition to be there, such as a flex file, will not find it. I've noticed that this bug is well known and Google searches reveal emails on the subject. I've already submitted a bug report to my distribution of choice, Gentoo, and the Gentoo devs could not render a patch or work-around to resolve the issue. So here I am, asking the upstream devs for help. Also the Gentoo devs would like me to relay any resolving patches they're way in order to benefit the users.

Here is the link to the versions of bison supplied by Gentoo. I have already tested versions 1.875d, 2.0 and 2.1, all contain the described bug.
http://packages.gentoo.org/search/?sstring=bison

Also if it's of any help here is my "emerge info" output.

Gentoo Base System version 1.6.13
Portage 2.0.51.22-r3 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.12-gentoo-r10 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r10 x86_64 AMD Athlon(tm) 64 Processor 3400+
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O3 -march=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-pipe -O3 -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo";
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac alsa avi berkdb bitmap-fonts cdr crypt curl dvd dvdread eds emboss encode esd fam flac foomaticdb fortran gif gnome gpm gstreamer gtk gtk2 imlib ipv6 jpeg libvisual lzw lzw-tiff mp3 mpeg ncurses network nls ogg oggvorbis opengl pam pdflib perl png python quicktime readline samba sdl softmmu speex spell sqlite ssl tcpd theora tiff truetype-fonts type1-fonts usb userlocales vorbis xine xml2 xpm xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

Hal Brodigan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]