This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, master, updated. glibc-2.15-748-gbd7b0e5
- From: aj at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 6 May 2012 07:17:00 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.15-748-gbd7b0e5
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via bd7b0e561f7f684cedfc4adb964569fe9ab16209 (commit)
from 5779f134a0f2d52effc24afc1fdb201055bbb3fe (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=bd7b0e561f7f684cedfc4adb964569fe9ab16209
commit bd7b0e561f7f684cedfc4adb964569fe9ab16209
Author: Andreas Jaeger <aj@suse.de>
Date: Sun May 6 09:14:15 2012 +0200
Build glibc with -frounding-math
* Makeconfig (+math-flags): New, set to -frounding-math.
(+cflags): Add +math-flags so that all of glibc gets compiled with
it.
diff --git a/ChangeLog b/ChangeLog
index e121392..866f9bd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-05-06 Andreas Jaeger <aj@suse.de>
+
+ * Makeconfig (+math-flags): New, set to -frounding-math.
+ (+cflags): Add +math-flags so that all of glibc gets compiled with
+ it.
+
2012-05-05 Joseph Myers <joseph@codesourcery.com>
* math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
diff --git a/Makeconfig b/Makeconfig
index 5c78ee4..f68a752 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -574,6 +574,11 @@ endif
# actually different, so allow the compiler to merge them all.
+merge-constants = -fmerge-all-constants
+# We have to assume that glibc functions are called in any rounding
+# mode and also change the rounding mode in a few functions. So,
+# disable any optimization that assume default rounding mode.
++math-flags = -frounding-math
+
# This is the program that generates makefile dependencies from C source files.
# The -MP flag tells GCC >= 3.2 (which we now require) to produce dummy
# targets for headers so that removed headers don't break the build.
@@ -633,7 +638,7 @@ ifeq "$(strip $(+cflags))" ""
+cflags := $(default_cflags)
endif # $(+cflags) == ""
-+cflags += $(cflags-cpu) $(+gccwarn) $(+merge-constants)
++cflags += $(cflags-cpu) $(+gccwarn) $(+merge-constants) $(+math-flags)
+gcc-nowarn := -w
# Don't duplicate options if we inherited variables from the parent.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
Makeconfig | 7 ++++++-
2 files changed, 12 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources