From: Darren Tucker Date: Sun, 24 Mar 2024 22:28:02 +0000 (+1100) Subject: Improve detection of -fzero-call-used-regs=used. X-Git-Tag: V_9_8_P1~163 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9193f03db0029fc9c31fbdb5c66a2737446bd8f;p=thirdparty%2Fopenssh-portable.git Improve detection of -fzero-call-used-regs=used. Should better detect problems with gcc 13 on m68k. bz#3673 from Colin Watson via bz#3673 and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934 Signed-off-by: Darren Tucker --- diff --git a/m4/openssh.m4 b/m4/openssh.m4 index 033df501c..176a8d1c9 100644 --- a/m4/openssh.m4 +++ b/m4/openssh.m4 @@ -20,7 +20,10 @@ char *f2(char *s, ...) { va_end(args); return strdup(ret); } +int i; +double d; const char *f3(int s) { + i = (int)d; return s ? "good" : "gooder"; } int main(int argc, char **argv) {