http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60487
Bug ID: 60487 Summary: FAIL: gcc.dg/tree-prof/crossmodule-indircall-1a.c compilation, -fprofile-generate -D_PROFILE_GENERATE Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org Host: hppa2.0w-hp-hpux11.11 Target: hppa2.0w-hp-hpux11.11 Build: hppa2.0w-hp-hpux11.11 spawn /test/gnu/gcc/objdir/gcc/xgcc -B/test/gnu/gcc/objdir/gcc/ /test/gnu/gcc/gc c/gcc/testsuite/gcc.dg/tree-prof/crossmodule-indircall-1a.c -fno-diagnostics-sho w-caret -fdiagnostics-color=never /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/tree-pr of/crossmodule-indircall-1a.c -fprofile-generate -D_PROFILE_GENERATE -lm -o /tes t/gnu/gcc/objdir/gcc/testsuite/gcc/crossmodule-indircall-1a.x01 /usr/ccs/bin/ld: Duplicate symbol "main" in files /var/tmp//ccFgQFKi.o and /var/ tmp//ccQoAKFt.o /usr/ccs/bin/ld: Duplicate symbol "global constructors keyed to 65535_1_main" in files /var/tmp//ccFgQFKi.o and /var/tmp//ccQoAKFt.o /usr/ccs/bin/ld: Found 2 duplicate symbol(s) collect2: error: ld returned 1 exit status compiler exited with status 1 Test probability needs to check visibility.