Bugzilla – Attachment 3573 Details for
Bug 3394
Problems detecting -fzero-call-used-regs=all on some architectures
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Improve detection of -fzero-call-used-regs=all support
0001-Improve-detection-of-fzero-call-used-regs-all-suppor.patch (text/plain), 1.16 KB, created by
Colin Watson
on 2022-02-25 03:06:11 AEDT
(
hide
)
Description:
Improve detection of -fzero-call-used-regs=all support
Filename:
MIME Type:
Creator:
Colin Watson
Created:
2022-02-25 03:06:11 AEDT
Size:
1.16 KB
patch
obsolete
>From 423258fb1f7530223d304e6e0590d3e5dfa61bb6 Mon Sep 17 00:00:00 2001 >From: Colin Watson <cjwatson@debian.org> >Date: Thu, 24 Feb 2022 16:04:18 +0000 >Subject: [PATCH] Improve detection of -fzero-call-used-regs=all support > >GCC doesn't tell us whether this option is supported unless it runs into >the situation where it would need to emit corresponding code. >--- > m4/openssh.m4 | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/m4/openssh.m4 b/m4/openssh.m4 >index 4f9c3792d..8c33c701b 100644 >--- a/m4/openssh.m4 >+++ b/m4/openssh.m4 >@@ -14,6 +14,8 @@ AC_DEFUN([OSSH_CHECK_CFLAG_COMPILE], [{ > AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ > #include <stdlib.h> > #include <stdio.h> >+/* Trivial function to help test for -fzero-call-used-regs */ >+void f(int n) {} > int main(int argc, char **argv) { > (void)argv; > /* Some math to catch -ftrapv problems in the toolchain */ >@@ -21,6 +23,7 @@ int main(int argc, char **argv) { > float l = i * 2.1; > double m = l / 0.5; > long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; >+ f(0); > printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); > /* > * Test fallthrough behaviour. clang 10's -Wimplicit-fallthrough does >-- >2.34.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 3394
: 3573