forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
www-servers/varnish: fix bug #620952 for 4.1.5 and 4.1.6
Package-Manager: Portage-2.3.5, Repoman-2.3.1
- Loading branch information
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
See https://bugs.gentoo.org/show_bug.cgi?id=620952 | ||
|
||
From 54b5a09f00c027da280361b30d32a4ff309ba3ab Mon Sep 17 00:00:00 2001 | ||
From: Poul-Henning Kamp <[email protected]> | ||
Date: Tue, 28 Mar 2017 18:44:12 +0000 | ||
Subject: [PATCH] Try to confuse GCC to not doing FP brain-damage. | ||
|
||
Fixes #1875 (maybe) | ||
--- | ||
bin/varnishd/mgt/mgt_param_tweak.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/bin/varnishd/mgt/mgt_param_tweak.c b/bin/varnishd/mgt/mgt_param_tweak.c | ||
index 12a7a52ef..b26581e2e 100644 | ||
--- a/bin/varnishd/mgt/mgt_param_tweak.c | ||
+++ b/bin/varnishd/mgt/mgt_param_tweak.c | ||
@@ -52,7 +52,7 @@ static int | ||
tweak_generic_double(struct vsb *vsb, volatile double *dest, | ||
const char *arg, const char *min, const char *max, const char *fmt) | ||
{ | ||
- double u, minv = 0, maxv = 0; | ||
+ volatile double u, minv = 0, maxv = 0; | ||
|
||
if (arg != NULL) { | ||
if (min != NULL) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters