This is the mail archive of the gcc@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]

egcs-970922/m68k-motorola-sysv bootstrap failure


bootstrapping egcs-970922 fails on m68k-motorola-sysv because filebuf.cc
is miscompiled by cc1plus.  Here is a scaled-down version of the problem.

$ cat xxx.ii
class filebuf {
  public:
    static const int openprot;  
};
const int filebuf::openprot = 0644;
$ /usr/gnu/tmp/egcs/gcc/cc1plus -dp -O2 xxx.ii
$ cat xxx.s
	file	"xxx.ii"
gcc2_compiled%:
global __static_7filebuf openprot
                        ^---------------- NOTE THE SPACE IN THE SYMBOL NAME
text
	even
__static_7filebuf openprot:
                 ^-------------------- LIKEWISE
	long 420
	comm __eh_pc,4
	comm __eh_type,4
	comm __eh_value,4
	comm __eh_cleanup,4
	comm __eh_in_catch,1


The resulting assembler file of course can't be assembled.  Where should I
look at ?

Philippe De Muyter


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