summaryrefslogtreecommitdiffstats
path: root/debian/patches/zero-call-used-regs-m68k.patch
blob: 1e90eaa32ca51432c64fd2f43b218aa574326c3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From 781d9de6499eb979e9f1a66242bcf58250a1f21e Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@debian.org>
Date: Thu, 21 Mar 2024 10:20:21 +0000
Subject: Extend -fzero-call-used-regs check to catch m68k gcc bug

Bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934
Bug-Debian: https://bugs.debian.org/1067243
Forwarded: https://bugzilla.mindrot.org/show_bug.cgi?id=3673
Last-Update: 2024-03-24

Patch-Name: zero-call-used-regs-m68k.patch
---
 m4/openssh.m4 | 3 +++
 1 file changed, 3 insertions(+)

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) {