This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [C++ PATCH]: Fix bug 2936 (a regression)



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]