0001-Improve-detection-of-fzero-call-used-regs-used.patch 927 B

1234567891011121314151617181920212223242526272829303132
  1. From f9193f03db0029fc9c31fbdb5c66a2737446bd8f Mon Sep 17 00:00:00 2001
  2. From: Darren Tucker <dtucker@dtucker.net>
  3. Date: Mon, 25 Mar 2024 09:28:02 +1100
  4. Subject: [PATCH] Improve detection of -fzero-call-used-regs=used.
  5. Should better detect problems with gcc 13 on m68k. bz#3673 from Colin
  6. Watson via bz#3673 and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934
  7. Signed-off-by: Darren Tucker <dtucker@dtucker.net>
  8. Upstream: https://github.com/openssh/openssh-portable/commit/f9193f03db0029fc9c31fbdb5c66a2737446bd8f
  9. ---
  10. m4/openssh.m4 | 3 +++
  11. 1 file changed, 3 insertions(+)
  12. diff --git a/m4/openssh.m4 b/m4/openssh.m4
  13. index 033df501c3d8..176a8d1c9282 100644
  14. --- a/m4/openssh.m4
  15. +++ b/m4/openssh.m4
  16. @@ -20,7 +20,10 @@ char *f2(char *s, ...) {
  17. va_end(args);
  18. return strdup(ret);
  19. }
  20. +int i;
  21. +double d;
  22. const char *f3(int s) {
  23. + i = (int)d;
  24. return s ? "good" : "gooder";
  25. }
  26. int main(int argc, char **argv) {
  27. --
  28. 2.43.0