I ran LTO for spu-elf.
Most of the gcc.dg/lto.exp fail because -shared is not support as
there are no shared library support for SPU yet.
In fact there is an error running the lto.exp testsuite from dejagnu:
+ERROR: tcl error sourcing
/home/apinski/src/lto/gcc/gcc/testsuite/gcc.dg/lto/lto.exp.
+ERROR: can't read "name": no such variable
This is because 20081212-1 fails to link and we are still trying to do
scan-symbol.

In the G++ testsuite, we have other issues.
With -fPIC, GCC defaults to erroring out if there is a runtime
relocation will happen, which causes some of the testcases to fail.

And one ICE:
+FAIL: g++.dg/lto/20090311 cp_lto_20090311_0.o-cp_lto_20090311_1.o
link,  (internal compiler error)
lto1: internal compiler error: in duplicate_node_data, at ipa-pure-const.c:633^M

This is at  -O2 -flto .

A link error:
FAIL: g++.dg/lto/20090311 cp_lto_20090311_0.o-cp_lto_20090311_1.o link
cp_lto_20090311_1.wpa.ltrans.o:(.rodata._ZTV2C2[_ZTV2C2]+0x8):
undefined reference to `_ZN2C2D1Ev'^Mcollect2: ld returned 1 exit
status^M
This is at -O2 -fwhopr.

Other than those issues, the results look like the trunk with addition
failures at -O2 -flto which also happen at -O2.

One failure without LTO which looks like it was introduced in just
recently (between revision 152285 and 152343):
FAIL: g++.dg/eh/crossjump1.C (test for excess errors)

I almost want to say
2009-09-30  Diego Novillo  <dnovi...@google.com>
2009-09-30  Diego Novillo  <dnovi...@google.com>
+
+       * cp/tree.c (cp_free_lang_data): Assert that DECL is a
+       FUNCTION_DECL or a VAR_DECL.
+       Call uses_template_params and check for
+       DECL_TEMPLATE_INSTANTIATION or
+       DECL_TEMPLATE_SPECIALIZATION

introduced it.  As I tested spu-elf before that patch without lto
enabled and that testcase worked.

As an aside looks like the testsuite link line does not record the
optimization level which was used which means there might be a couple
of the "tests" with the same name.

Thanks,
Andrew Pinski

Reply via email to