This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
-flto / -flto-partition=none question on ia64-hp-hpux11.23
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 25 Feb 2011 15:22:02 -0800 (PST)
- Subject: -flto / -flto-partition=none question on ia64-hp-hpux11.23
- Reply-to: sje at cup dot hp dot com
I am looking at an lto bug on ia64-hp-hpux11.23. If I compile
g++.dg/torture/pr33572.C with -flto on this platform I get:
ld: Unsatisfied symbol "__gcc_personality_v0" in file /var/tmp//ccYlpGzO.ltrans0.ltrans.o
1 errors.
collect2: ld returned 1 exit status
(This is using the HP linker which I do for all my GCC builds.)
If I add -flto-partition=none to the link, then everything works fine.
I notice that the =none option fo -flto-partition does not seem to be
documented in invoke.texi, which only covers 1to1 and balanced so I am
not sure what it means (put everything in one object?).
In both cases if I look at the output of the linker I see an undef of
__gcc_personality_v0 in the object file created by compiling pr33572.C
and a definition that should resolve that use in libstdc++.so.
libstdc++.so is searched in both cases and __gcc_personality_v0 is found
in both cases so I don't understand why I am getting the error in the
standard -flto case.
Does anyone have any ideas on what I should look at to understand this
problem?
I get this on a few other -flto programs, but not on all of them.
Steve Ellcey
sje@cup.hp.com