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.26-157-gea99fcd


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  ea99fcd03875caf59ceda354ec8ed813bb5a5f79 (commit)
      from  a8410a5fc9305c316633a5a3033f3927b759be35 (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=ea99fcd03875caf59ceda354ec8ed813bb5a5f79

commit ea99fcd03875caf59ceda354ec8ed813bb5a5f79
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Mon Aug 21 21:43:32 2017 +0000

    Fix GCC 7 build of k_standard.c.
    
    This patch adds a default case to k_standard.c that calls
    __builtin_unreachable, to avoid an uninitialized variable error from
    GCC 7 (reported in
    <https://sourceware.org/ml/libc-alpha/2017-08/msg01012.html>).
    
    Tested for x86_64 (with GCC 7).
    
    	* sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
    	case calling __builtin_unreachable.

diff --git a/ChangeLog b/ChangeLog
index 3d2afd9..bf3e893 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-08-21  Joseph Myers  <joseph@codesourcery.com>
+
+	* sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
+	case calling __builtin_unreachable.
+
 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
 	* libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
diff --git a/sysdeps/ieee754/k_standard.c b/sysdeps/ieee754/k_standard.c
index 0a0201f..8f906bd 100644
--- a/sysdeps/ieee754/k_standard.c
+++ b/sysdeps/ieee754/k_standard.c
@@ -939,6 +939,9 @@ __kernel_standard(double x, double y, int type)
 		break;
 
 		/* #### Last used is 50/150/250 ### */
+
+	    default:
+		__builtin_unreachable ();
 	}
 	return exc.retval;
 }

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

Summary of changes:
 ChangeLog                    |    5 +++++
 sysdeps/ieee754/k_standard.c |    3 +++
 2 files changed, 8 insertions(+), 0 deletions(-)


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]