This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH]: Fix bug 2936 (a regression)
- To: nathan at codesourcery dot com
- Subject: Re: [C++ PATCH]: Fix bug 2936 (a regression)
- From: Jeffrey Oldham <oldham at codesourcery dot com>
- Date: Thu, 31 May 2001 20:12:57 -0700
- cc: oldham at codesourcery dot com, gcc-patches at gcc dot gnu dot org
- Reply-to: oldham at codesourcery dot com
gcc 3.0 for sparc-sun-solaris2.8 and i686-pc-linux-gnu both fail on
gcc/testsuite/g++.old-deja/g++.other/optimize3.C although 2.95.3 and
2.91.66 succeed. The patch to gcc/cp/optimize.c does not solve the
problem when compiling with -O1 or -O2.
Here are some _possibilities_ for what is going wrong. In
gcc/cp/optimize.c:remap_decl(), the test that only local variables be
remapped omits anonymous unions. In the same function, the condition
checking for an anonymous union never succeeds because the
`!DECL_NAME(t)' is never true.
Will you please fix the problem, making sure to perform a bootstrap
and run the regression tests?
Thanks,
Jeffrey D. Oldham
oldham@codesourcery.com