From: John David Anglin Date: Sun, 21 Jan 2018 17:52:44 +0000 (+0000) Subject: re PR lto/83452 (FAIL: gfortran.dg/save_6.f90 -O0 (test for excess errors)) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=07baf4a541d710bc5f1713cb168650ce5c210304;p=gcc.git re PR lto/83452 (FAIL: gfortran.dg/save_6.f90 -O0 (test for excess errors)) PR lto/83452 * config/pa/stublib.c (L_gnu_lto_v1): New stub definition. * config/pa/t-stublib (gnu_lto_v1-stub.o): Add make fragment. From-SVN: r256933 --- diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 85738df894f..7a530b20235 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,9 @@ +2018-01-21 John David Anglin + + PR lto/83452 + * config/pa/stublib.c (L_gnu_lto_v1): New stub definition. + * config/pa/t-stublib (gnu_lto_v1-stub.o): Add make fragment. + 2018-01-13 Richard Sandiford * config/aarch64/value-unwind.h (aarch64_vg): New function. diff --git a/libgcc/config/pa/stublib.c b/libgcc/config/pa/stublib.c index a333a2ad6aa..3840b695f22 100644 --- a/libgcc/config/pa/stublib.c +++ b/libgcc/config/pa/stublib.c @@ -115,3 +115,7 @@ pthread_once (void) return 0; } #endif + +#ifdef L_gnu_lto_v1 +char gnu_lto_v1; +#endif diff --git a/libgcc/config/pa/t-stublib b/libgcc/config/pa/t-stublib index 8004c1e46a7..0a6223d952e 100644 --- a/libgcc/config/pa/t-stublib +++ b/libgcc/config/pa/t-stublib @@ -3,7 +3,8 @@ LIBGCCSTUB_OBJS = rfi-stub.o dfi-stub.o ritm-stub.o ditm-stub.o \ 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_mutex_unlock-stub.o: $(srcdir)/config/pa/stublib.c 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)