File: alpha-ieee.diff

package info (click to toggle)
gcc-10 10.2.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, bullseye-backports
  • size: 112,096 kB
  • sloc: makefile: 2,446; sh: 993; python: 825; awk: 23; cpp: 14
file content (21 lines) | stat: -rw-r--r-- 566 bytes parent folder | download | duplicates (29)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# DP: #212912
# DP: on alpha-linux, make -mieee default and add -mieee-disable switch
# DP: to turn default off

---
 gcc/config/alpha/alpha.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

--- a/src/gcc/config/alpha/alpha.c
+++ b/src/gcc/config/alpha/alpha.c
@@ -259,6 +259,10 @@
   int line_size = 0, l1_size = 0, l2_size = 0;
   int i;
 
+  /* If not -ffinite-math-only, enable -mieee*/
+  if (!flag_finite_math_only)
+    target_flags |= MASK_IEEE|MASK_IEEE_CONFORMANT;
+
 #ifdef SUBTARGET_OVERRIDE_OPTIONS
   SUBTARGET_OVERRIDE_OPTIONS;
 #endif