This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-971031, sparc-sun-solaris2.5 new bootstrap failure
- To: ghazi at caip dot rutgers dot edu (Kaveh R. Ghazi)
- Subject: Re: egcs-971031, sparc-sun-solaris2.5 new bootstrap failure
- From: hjl at lucon dot org (H.J. Lu)
- Date: Mon, 3 Nov 1997 12:46:37 -0800 (PST)
- Cc: egcs at cygnus dot com, ghazi at caip dot rutgers dot edu
>
> Building egcs-971031 on sparc-sun-solaris2.5 using BOOT_CFLAGS=
> "-g -O3 -funroll-all-loops" with cc for stage1 resulted in:
>
> > stage1/xgcc -Bstage1/ -DIN_GCC -DSVR4 -g -O3 -funroll-all-loops
> > -DHAVE_CONFIG_H -o cccp cccp.o cexp.o \
> > version.o obstack.o ` case "stage1/xgcc -Bstage1/" in "cc") echo
> > "alloca.o" ;; esac `
> > Undefined first referenced
> > symbol in file
> > .LL6861 cccp.o
> > ld: fatal: Symbol referencing errors. No output written to cccp
> > collect2: ld returned 1 exit status
> > make[1]: *** [cccp] Error 1
>
> The dwarf patch made no difference.
>
> I was able to bootstrap when using "-g -O2".
This may or may not be related to my -g -funroll-loops bug report.
I cannot use them together on x86 with my small test code.
-g -O -funroll-loops kills gcc.
H.J.
----
class String
{
public:
String();
~String();
int OK() const;
};
void splittest()
{
String w[10];
for (int i = 0; i < 5; ++i)
{
if (!w[i].OK())
return;
}
}