[Bug target/100152] [10 Regression] used caller-saved register not preserved across a call.

2022-05-29 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152

Iain Sandoe  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #60 from Iain Sandoe  ---
fixed on open branches (likely the fault is latent on earlier branches, despite
the 'known to work' reports).

[Bug target/100152] [10 Regression] used caller-saved register not preserved across a call.

2022-05-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152

--- Comment #59 from CVS Commits  ---
The releases/gcc-10 branch has been updated by Iain D Sandoe
:

https://gcc.gnu.org/g:b6a762bf4645d495ea2218dbabcebd0c15eb60fc

commit r10-10797-gb6a762bf4645d495ea2218dbabcebd0c15eb60fc
Author: Iain Sandoe 
Date:   Mon May 3 08:22:53 2021 +0100

Darwin, X86: Adjust call clobbers to allow for lazy-binding [PR 100152].

We allow public functions defined in a TU to bind locally for PIC
code (the default) on 64bit Mach-O.

If such functions are not inlined, we cannot tell at compile-time if
they might be called via the lazy symbol resolver (this can depend on
options given at link-time).  Therefore, we must assume that the lazy
resolver could be used which clobbers R11 and R10.

Signed-off-by: Iain Sandoe 

gcc/ChangeLog:

PR target/100152
* config/i386/i386-expand.c (ix86_expand_call): If a call is
to a non-local-binding, or local but to a public symbol, then
assume that it might be indirected via the lazy symbol binder.
Mark R10 and R10 as clobbered in that case.

(cherry picked from commit 41bd1b190358fce213f5add8396faf14a32d5c23)

[Bug target/100152] [10 Regression] used caller-saved register not preserved across a call.

2021-07-22 Thread lucier at math dot purdue.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152

--- Comment #58 from lucier at math dot purdue.edu ---
Thanks.  Brad

[Bug target/100152] [10 Regression] used caller-saved register not preserved across a call.

2021-07-20 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152

Iain Sandoe  changed:

   What|Removed |Added

Summary|[10/11/12 Regression] used  |[10 Regression] used
   |caller-saved register not   |caller-saved register not
   |preserved across a call.|preserved across a call.

--- Comment #57 from Iain Sandoe  ---
so fixed on master (12) and for 11.2 so far.

Note the problem is present on closed branches too.