From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: Silence two Clang warnings Date: Fri, 16 Jun 2017 16:53:46 +0000 Message-ID: References: <1e61fe6d-4646-b2ea-9dc1-7b782fc91e05@cs.ucla.edu> <76bbc143-faba-c106-5f2e-42fb51092942@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113d4694989461055216a166" X-Trace: blaine.gmane.org 1497632077 3043 195.159.176.226 (16 Jun 2017 16:54:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Jun 2017 16:54:37 +0000 (UTC) Cc: Emacs development discussions To: Paul Eggert , Philipp Stephani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 16 18:54:30 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLuVy-0000MJ-7O for ged-emacs-devel@m.gmane.org; Fri, 16 Jun 2017 18:54:30 +0200 Original-Received: from localhost ([::1]:59930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLuW1-0002Y3-S9 for ged-emacs-devel@m.gmane.org; Fri, 16 Jun 2017 12:54:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLuVT-0002Xt-Cw for emacs-devel@gnu.org; Fri, 16 Jun 2017 12:54:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLuVS-0003NR-Bs for emacs-devel@gnu.org; Fri, 16 Jun 2017 12:53:59 -0400 Original-Received: from mail-oi0-x233.google.com ([2607:f8b0:4003:c06::233]:36204) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dLuVS-0003Mv-7E for emacs-devel@gnu.org; Fri, 16 Jun 2017 12:53:58 -0400 Original-Received: by mail-oi0-x233.google.com with SMTP id k145so27286809oih.3 for ; Fri, 16 Jun 2017 09:53:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZPIXYwlSVXZP4FjitXCFGU1meWMLObPzUkSMm5JTECw=; b=UsVFQwsSi/wE1zhR9p9zTB0GrG1xsPJVsmR6vbbW+Vz0Q3jDuUT+8ZTqTdyeqBJfhD awyJ3udf8bZH2K7W0S1L+PVqUnReCrIkDeeac2q6JOnNen0btt5N+yQDHJQ3gZQrEi8/ GihkORsawpCnTP6G5YlLjS6ze20Vmb3TZK0W8P+hHccUB8uLzq9lRUYQ512+RJzMydsM sNO1ZooQHLQjEoK4d0U2afypoa9pn78x6VRSj8KDxA3/1h4yE7JsBeNEbUzBBkIV4v3g 003f5RNbeqiaBOwcj4eaw7vLYL8yFo6y9rnoute5Lliv1GsxVf6Pa6ihD/q1gK0Qw35s Q8mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZPIXYwlSVXZP4FjitXCFGU1meWMLObPzUkSMm5JTECw=; b=FSkjfap9oLlfd3J4DIsH/byrR0rgq9ZMBfTuipwAQ59brxp78hcuSeNA2lOPi+iVDu dP5Ydj9y+voF9LwSiM/KfZcTudlcFIpzN89LY2wff74dP5baANAWIEm5G/vhq9zq+AuU Qa7jgmHwk26hvsWrpf2mqKTlSb3W5AYwDtv/mvDZP4MfDijV3gLYuW3NMl9HSDswhDyj 0FGYu9zP7KSStlewgCcj+vR80HaU72LrGVT4gYZ53oEhld+Yr7huAR3TXnf6yZdvQvut 2Kh3agusGdp6nwy4H7NLQwWudqdB0L8thrLKIzSicV/1n9RMVCptJP8zpOprR627X1f9 AkmA== X-Gm-Message-State: AKS2vOwApY4iQVYyxw4lrg0qdBdruOuEL9qCaKTWWEJQpDZ3VXsMPkCl 9qWyE5mmlejoj/GrfluT6pFOyzxPNQ== X-Received: by 10.202.225.65 with SMTP id y62mr4862668oig.113.1497632037439; Fri, 16 Jun 2017 09:53:57 -0700 (PDT) In-Reply-To: <76bbc143-faba-c106-5f2e-42fb51092942@cs.ucla.edu> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::233 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:215677 Archived-At: --001a113d4694989461055216a166 Content-Type: text/plain; charset="UTF-8" Paul Eggert schrieb am Do., 15. Juni 2017 um 21:35 Uhr: > On 06/15/2017 12:23 PM, Philipp Stephani wrote: > > Given that that message only appears with CFLAGS=-save-temps, we > > probably don't need to disable it. With my usual configuration > > (--enable-gcc-warnings, CFLAGS='-O0 -ggdb3') there are no warnings. > > OK, I reverted that change then. This sounds like a bug in how Clang > generates warnings, as --save-temps shouldn't affect warnings like that. > > Yes, it seems both Clang and GCC have such bugs. See https://bugs.llvm.org/show_bug.cgi?id=22949 for Clang and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57201 for GCC. They are easily reproducible, but apparently nobody treats them as high priority. --001a113d4694989461055216a166 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Paul E= ggert <eggert@cs.ucla.edu> = schrieb am Do., 15. Juni 2017 um 21:35=C2=A0Uhr:
On 06/15/2017 12:23 PM, Philipp Stephani wrote:
> Given that that message only appears with CFLAGS=3D-save-temps, we
> probably don't need to disable it. With my usual configuration
> (--enable-gcc-warnings, CFLAGS=3D'-O0 -ggdb3') there are no wa= rnings.

OK, I reverted that change then. This sounds like a bug in how Clang
generates warnings, as --save-temps shouldn't affect warnings like that= .


Yes, it seems both Clang and GCC have = such bugs. See ht= tps://bugs.llvm.org/show_bug.cgi?id=3D22949=C2=A0for Clang and=C2=A0https://gcc.g= nu.org/bugzilla/show_bug.cgi?id=3D57201=C2=A0for GCC. They are easily r= eproducible, but apparently nobody treats them as high priority.
--001a113d4694989461055216a166--