https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83452
John David Anglin <danglin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #42910|0 |1 is patch| | --- Comment #9 from John David Anglin <danglin at gcc dot gnu.org> --- Comment on attachment 42910 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42910 stublib.d.txt >Index: config/pa/stublib.c >=================================================================== >--- config/pa/stublib.c (revision 255670) >+++ config/pa/stublib.c (working copy) >@@ -115,3 +115,7 @@ > return 0; > } > #endif >+ >+#ifdef L_gnu_lto_v1 >+char gnu_lto_v1; >+#endif >Index: config/pa/t-stublib >=================================================================== >--- config/pa/t-stublib (revision 255670) >+++ config/pa/t-stublib (working copy) >@@ -3,7 +3,8 @@ > pthread_default_stacksize_np-stub.o \ > pthread_mutex_lock-stub.o \ > pthread_mutex_unlock-stub.o \ >- pthread_once-stub.o >+ pthread_once-stub.o \ >+ gnu_lto_v1-stub.o > > rfi-stub.o: $(srcdir)/config/pa/stublib.c > $(gcc_compile) -c -O2 -DL_register_frame_info $< >@@ -35,6 +36,9 @@ > pthread_once-stub.o: $(srcdir)/config/pa/stublib.c > $(gcc_compile) -c -O2 -DL_pthread_once $< > >+gnu_lto_v1-stub.o: $(srcdir)/config/pa/stublib.c >+ $(gcc_compile) -c -O2 -DL_gnu_lto_v1 $< >+ > libgcc_stub.a: $(LIBGCCSTUB_OBJS) > -rm -rf $@ > $(AR) rc $@ $(LIBGCCSTUB_OBJS)