This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/15937] [3.3 only] miscompiles gengtype of HEAD as bootstrap compiler
- From: "wilson at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jun 2004 06:24:01 -0000
- Subject: [Bug middle-end/15937] [3.3 only] miscompiles gengtype of HEAD as bootstrap compiler
- References: <20040611111350.15937.rguenth@tat.physik.uni-tuebingen.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From wilson at gcc dot gnu dot org 2004-06-17 06:23 -------
I am not able to reproduce this problem.
I tried first on a debian testing system. I bootstrapped the gcc-3.3.4 tarball
with --enable-languages=c, and then tried to bootstrap mainline. gengtype
worked correctly.
I then tried on a debian unstable system. I ran apt-get to make sure everything
was up to date, then tried to bootstrap mainline using /usr/bin/gcc which is
gcc-3.3.4-1. gengtype worked correctly.
I suspect that this may be a bison/flex versioning problem rather than a gcc
optimizer bug. Perhaps the debian folks have already updated the bison/flex
packages to make this problem go away, or perhaps you have out of date versions
of the bison/flex packages, or perhaps someone has already applied a patch to
the bison/flex input files on mainline that fixed the problem. There is no easy
way for me to tell.
By the way, reporting a bug against mainline is a bit ambiguous, unless you
indicate when you checked out mainline. If you use contrib/gcc_update, then you
can include the LAST_UPDATED file. Otherwise, you can try attaching the top
entry of the relevant ChangeLog file, e.g. gcc/ChangeLog for gcc problems.
I notice that gengtype was compiled without optimization. If you configure
normally, it will be compiled with -O2. That implies that you did something
different when configuring that you failed to specify in the bug report. This
could perhaps explain why I could not reproduce the problem.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15937