From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9919 invoked by alias); 26 Apr 2009 11:50:36 -0000 Received: (qmail 9903 invoked by uid 22791); 26 Apr 2009 11:50:36 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_36 X-Spam-Check-By: sourceware.org Received: from sunsite.ms.mff.cuni.cz (HELO sunsite.mff.cuni.cz) (195.113.15.26) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 26 Apr 2009 11:50:31 +0000 Received: from sunsite.mff.cuni.cz (localhost.localdomain [127.0.0.1]) by sunsite.mff.cuni.cz (8.13.8/8.13.8) with ESMTP id n3QC0DLH017657; Sun, 26 Apr 2009 14:00:13 +0200 Received: (from jakub@localhost) by sunsite.mff.cuni.cz (8.13.8/8.13.8/Submit) id n3QC0DrR017656; Sun, 26 Apr 2009 14:00:13 +0200 Date: Sun, 26 Apr 2009 11:50:00 -0000 From: Jakub Jelinek To: Ulrich Drepper Cc: Glibc hackers Subject: [PATCH] Fix -Wsequence-point warnings on s_tan.c Message-ID: <20090426120013.GB16681@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2009-04/txt/msg00006.txt.bz2 Hi! The following patch fixes: ../sysdeps/ieee754/dbl-64/s_tan.c: In function 'tan': ../sysdeps/ieee754/dbl-64/s_tan.c:111: warning: operation on 't4' may be undefined ../sysdeps/ieee754/dbl-64/s_tan.c:219: warning: operation on 't4' may be undefined ../sysdeps/ieee754/dbl-64/s_tan.c:225: warning: operation on 't4' may be undefined ../sysdeps/ieee754/dbl-64/s_tan.c:330: warning: operation on 't4' may be undefined ../sysdeps/ieee754/dbl-64/s_tan.c:336: warning: operation on 't4' may be undefined ../sysdeps/ieee754/dbl-64/s_tan.c:434: warning: operation on 't4' may be undefined ../sysdeps/ieee754/dbl-64/s_tan.c:440: warning: operation on 't4' may be undefined warnings when compiling with gcc 4.4. 2009-04-26 Jakub Jelinek * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings. --- libc/sysdeps/ieee754/dbl-64/s_tan.c.jj 2009-04-26 13:34:21.000000000 +0200 +++ libc/sysdeps/ieee754/dbl-64/s_tan.c 2009-04-26 13:42:38.000000000 +0200 @@ -108,7 +108,8 @@ double tan(double x) { fi = xfg[i][1].d; gi = xfg[i][2].d; t2 = pz*(gi+fi)/(gi-pz); if ((y=fi+(t2-fi*u3.d))==fi+(t2+fi*u3.d)) return (s*y); t3 = (t2