I'm currently compiling my linux based of the Linux From Scratch SVN. I decided to try my hand at compiling with the gcc 4.3.0.
The current bug im noticing has to do with the -O2 flag and __cplusplus. I have done a search through the bug database all most errors that I have seen have had __cplusplus in the part of the program that failed. One of the programs that I tried to compile was tar 1.18 and 1.19. It would not compile because of the -O2 flag, when I removed it from the config script and reconfigured it compiled fine. The same thing happened with the glibc and the problem was in the conftest which had a __cplusplus and a exception throw. With LFS the first part of the compiling process is to only comprile the C compiler part of gnu compiler yet im not sure why __cplusplus would be returning true if there is not a C++ compiler. -- Summary: GCC 4.3.0 tar 1.19 and glibc 2.7 bug with __cplusplus and -O2 Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: devilsclaw at devilsclaws dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35761