View | Details | Raw Unified | Return to bug 3394
Collapse All | Expand All

(-)a/m4/openssh.m4 (-1 / +3 lines)
Lines 14-19 AC_DEFUN([OSSH_CHECK_CFLAG_COMPILE], [{ Link Here
14
	AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
14
	AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
15
#include <stdlib.h>
15
#include <stdlib.h>
16
#include <stdio.h>
16
#include <stdio.h>
17
/* Trivial function to help test for -fzero-call-used-regs */
18
void f(int n) {}
17
int main(int argc, char **argv) {
19
int main(int argc, char **argv) {
18
	(void)argv;
20
	(void)argv;
19
	/* Some math to catch -ftrapv problems in the toolchain */
21
	/* Some math to catch -ftrapv problems in the toolchain */
Lines 21-26 int main(int argc, char **argv) { Link Here
21
	float l = i * 2.1;
23
	float l = i * 2.1;
22
	double m = l / 0.5;
24
	double m = l / 0.5;
23
	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
25
	long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
26
	f(0);
24
	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
27
	printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
25
	/*
28
	/*
26
	 * Test fallthrough behaviour.  clang 10's -Wimplicit-fallthrough does
29
	 * Test fallthrough behaviour.  clang 10's -Wimplicit-fallthrough does
27
- 

Return to bug 3394