This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.21-326-g34cb304


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  34cb304e5a6df706e186d504b69af974bfc15a2f (commit)
      from  b13b96ca05a132a12dc5f3712b99e626670716bf (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://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=34cb304e5a6df706e186d504b69af974bfc15a2f

commit 34cb304e5a6df706e186d504b69af974bfc15a2f
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Mon May 11 22:58:10 2015 +0000

    Fix mips16 __fpu_control static linking (bug 18397).
    
    Programs are supposed to be able to define the __fpu_control variable,
    overriding the library's version to cause the floating-point control
    word to be set to the chosen value at startup.
    
    This is broken for mips16 for static linking because the library's
    __fpu_control variable is in the same object file as the helper
    functions used by fpu_control.h for mips16, so test-fpucw-ieee-static
    fails to link with multiple definitions of __fpu_control.
    
    This patch fixes this by putting the helpers in a separate file rather
    than overriding fpu_control.c.  Tested for mips16 that this fixes the
    link failure and the ABI tests still pass.
    
    	[BZ #18397]
    	* sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
    	* sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
    	<fpu_control.h> instead of <math/fpu_control.c>.
    	* sysdeps/mips/mips32/fpu/Makefile: New file.

diff --git a/ChangeLog b/ChangeLog
index 05c23e7..c998dd5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2015-05-11  Joseph Myers  <joseph@codesourcery.com>
+
+	[BZ #18397]
+	* sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
+	* sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
+	<fpu_control.h> instead of <math/fpu_control.c>.
+	* sysdeps/mips/mips32/fpu/Makefile: New file.
+
 2015-05-11  Andreas Schwab  <schwab@suse.de>
 
 	[BZ #18007]
diff --git a/NEWS b/NEWS
index c1054cc..f4fe47f 100644
--- a/NEWS
+++ b/NEWS
@@ -17,7 +17,7 @@ Version 2.22
   18007, 18019, 18020, 18029, 18030, 18032, 18036, 18038, 18039, 18042,
   18043, 18046, 18047, 18068, 18080, 18093, 18100, 18104, 18110, 18111,
   18125, 18128, 18138, 18185, 18197, 18206, 18210, 18211, 18247, 18287,
-  18319, 18333, 18346.
+  18319, 18333, 18346, 18397.
 
 * Cache information can be queried via sysconf() function on s390 e.g. with
   _SC_LEVEL1_ICACHE_SIZE as argument.
diff --git a/sysdeps/mips/mips32/fpu/Makefile b/sysdeps/mips/mips32/fpu/Makefile
new file mode 100644
index 0000000..951c408
--- /dev/null
+++ b/sysdeps/mips/mips32/fpu/Makefile
@@ -0,0 +1,3 @@
+ifeq ($(subdir),math)
+aux += fpucw-helpers
+endif
diff --git a/sysdeps/mips/mips32/fpu/fpu_control.c b/sysdeps/mips/mips32/fpu/fpucw-helpers.c
similarity index 97%
rename from sysdeps/mips/mips32/fpu/fpu_control.c
rename to sysdeps/mips/mips32/fpu/fpucw-helpers.c
index eeb94c5..40391a3 100644
--- a/sysdeps/mips/mips32/fpu/fpu_control.c
+++ b/sysdeps/mips/mips32/fpu/fpucw-helpers.c
@@ -16,7 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include <math/fpu_control.c>
+#include <fpu_control.h>
 
 fpu_control_t
 __mips_fpu_getcw (void)

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                                          |    8 ++++++++
 NEWS                                               |    2 +-
 .../{aarch64/soft-fp => mips/mips32/fpu}/Makefile  |    2 +-
 .../mips32/fpu/{fpu_control.c => fpucw-helpers.c}  |    2 +-
 4 files changed, 11 insertions(+), 3 deletions(-)
 copy sysdeps/{aarch64/soft-fp => mips/mips32/fpu}/Makefile (52%)
 rename sysdeps/mips/mips32/fpu/{fpu_control.c => fpucw-helpers.c} (97%)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]