summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glibc/glibc/0032-soft-fp-ignore-maybe-uninitialized.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/glibc/glibc/0032-soft-fp-ignore-maybe-uninitialized.patch')
-rw-r--r--meta/recipes-core/glibc/glibc/0032-soft-fp-ignore-maybe-uninitialized.patch72
1 files changed, 0 insertions, 72 deletions
diff --git a/meta/recipes-core/glibc/glibc/0032-soft-fp-ignore-maybe-uninitialized.patch b/meta/recipes-core/glibc/glibc/0032-soft-fp-ignore-maybe-uninitialized.patch
deleted file mode 100644
index 4d56e55296..0000000000
--- a/meta/recipes-core/glibc/glibc/0032-soft-fp-ignore-maybe-uninitialized.patch
+++ /dev/null
@@ -1,72 +0,0 @@
1From 0efa7fd1c800277d5323d05cb245c0536fe9ce22 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Sun, 16 Sep 2018 12:39:22 +0000
4Subject: [PATCH] soft-fp: ignore maybe-uninitialized
5
6* with -O it fails with:
7
8In file included from ../soft-fp/soft-fp.h:318,
9 from ../sysdeps/ieee754/soft-fp/s_fdiv.c:28:
10../sysdeps/ieee754/soft-fp/s_fdiv.c: In function '__fdiv':
11../soft-fp/op-2.h:98:25: error: 'R_f1' may be used uninitialized in this function [-Werror=maybe-uninitialized]
12 X##_f0 = (X##_f1 << (_FP_W_TYPE_SIZE - (N)) | X##_f0 >> (N) \
13 ^~
14../sysdeps/ieee754/soft-fp/s_fdiv.c:38:14: note: 'R_f1' was declared here
15 FP_DECL_D (R);
16 ^
17../soft-fp/op-2.h:37:36: note: in definition of macro '_FP_FRAC_DECL_2'
18 _FP_W_TYPE X##_f0 _FP_ZERO_INIT, X##_f1 _FP_ZERO_INIT
19 ^
20../soft-fp/double.h:95:24: note: in expansion of macro '_FP_DECL'
21 # define FP_DECL_D(X) _FP_DECL (2, X)
22 ^~~~~~~~
23../sysdeps/ieee754/soft-fp/s_fdiv.c:38:3: note: in expansion of macro 'FP_DECL_D'
24 FP_DECL_D (R);
25 ^~~~~~~~~
26../soft-fp/op-2.h:101:17: error: 'R_f0' may be used uninitialized in this function [-Werror=maybe-uninitialized]
27 : (X##_f0 << (_FP_W_TYPE_SIZE - (N))) != 0)); \
28 ^~
29../sysdeps/ieee754/soft-fp/s_fdiv.c:38:14: note: 'R_f0' was declared here
30 FP_DECL_D (R);
31 ^
32../soft-fp/op-2.h:37:14: note: in definition of macro '_FP_FRAC_DECL_2'
33 _FP_W_TYPE X##_f0 _FP_ZERO_INIT, X##_f1 _FP_ZERO_INIT
34 ^
35../soft-fp/double.h:95:24: note: in expansion of macro '_FP_DECL'
36 # define FP_DECL_D(X) _FP_DECL (2, X)
37 ^~~~~~~~
38../sysdeps/ieee754/soft-fp/s_fdiv.c:38:3: note: in expansion of macro 'FP_DECL_D'
39 FP_DECL_D (R);
40 ^~~~~~~~~
41
42Upstream-Status: Submitted [https://www.sourceware.org/ml/libc-alpha/2018-09/msg00300.html]
43
44Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
45---
46 soft-fp/op-2.h | 3 +++
47 1 file changed, 3 insertions(+)
48
49diff --git a/soft-fp/op-2.h b/soft-fp/op-2.h
50index 6020d663d4..6672337949 100644
51--- a/soft-fp/op-2.h
52+++ b/soft-fp/op-2.h
53@@ -92,6 +92,8 @@
54 X##_f1 = 0; \
55 }))
56
57+#pragma GCC diagnostic push
58+#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
59 #define _FP_FRAC_SRS_2(X, N, sz) \
60 (void) (((N) < _FP_W_TYPE_SIZE) \
61 ? ({ \
62@@ -109,6 +111,7 @@
63 | X##_f0) != 0)); \
64 X##_f1 = 0; \
65 }))
66+#pragma GCC diagnostic pop
67
68 #define _FP_FRAC_ADDI_2(X, I) \
69 __FP_FRAC_ADDI_2 (X##_f1, X##_f0, I)
70--
712.17.1
72