From 692291b3d2d75972534e13b283e0ede9e66251ef Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Jan 16 2020 16:06:42 +0000 Subject: Drop sed fix for detecting when signal handlers need to be reinstalled. It only affects a few packages -- few enough we can fix them individually. --- diff --git a/macros b/macros index d6af663..29e85c1 100644 --- a/macros +++ b/macros @@ -108,11 +108,7 @@ print(result) # raise a SIGFPE. By declaring x & y volatile we prevent the optimizers # from removing the computation # -# The fourth is a way of testing if we need to reenable signal handlers. We need to -# indicate to the LTO optimizers that the nsigint object changes unexpectedly -# compromises the test, so we indicate the key function should not be inlined or cloned -# -# The sixth refines how configure turns the output from NM back into +# The fourth refines how configure turns the output from NM back into # a C decl. Prior to LTO the symbol type didn't matter, but it does # with LTO. Thankfully this has always been the case for HP-UX, so # we can crib the code from the HP-UX support @@ -122,7 +118,6 @@ print(result) %{__sed} -r --in-place=.backup 's/^char \\(\\*f\\) \\(\\) = /__attribute__ ((used)) char (*f) () = /g' $file; \ %{__sed} -r --in-place=.backup 's/^char \\(\\*f\\) \\(\\);/__attribute__ ((used)) char (*f) ();/g' $file; \ %{__sed} --in-place=.backup ':a;N;\$\!ba;s/int x = 1;.\*int nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/g' $file; \ - %{__sed} --in-place=.backup 's/^int nsigint;/volatile int nsigint;/' $file; \ %{__sed} --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '"'"'s/^T .* \\\\(.*\\\\)$/extern int \\\\1();/p'"'"' -e '"'"'s/^$symcode* .* \\\\(.*\\\\)$/extern char \\\\1;/p'"'"'"#' $file; \ done ;