public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/65040] New: [5 Regression] gcc-5 -Wformat broken
@ 2015-02-12 10:10 rguenth at gcc dot gnu.org
  2015-02-12 10:10 ` [Bug c/65040] " rguenth at gcc dot gnu.org
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-02-12 10:10 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65040

            Bug ID: 65040
           Summary: [5 Regression] gcc-5 -Wformat broken
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org

$ cat | gcc-5 -x c - -c -o /dev/null -Wformat=2
#include <stdio.h>

void x(unsigned short arg)
{
        printf("%x\n", arg);
}
^D
gives:
<stdin>: In function ‘x’:
<stdin>:5:16: warning: format ‘%x’ expects argument of type ‘unsigned int’, but
argument 2 has type ‘int’ [-Wformat=]

but we know the range of (int)arg is [0, USHORT_MAX] so the warning isn't
helpful - it is technically true but there is no reason to warn here.
>From gcc-bugs-return-476991-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 12 10:33:58 2015
Return-Path: <gcc-bugs-return-476991-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23676 invoked by alias); 12 Feb 2015 10:33:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23621 invoked by uid 48); 12 Feb 2015 10:33:54 -0000
From: "ramana at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/65031] [5 Regression] ICE (segfault) on arm-linux-gnueabihf
Date: Thu, 12 Feb 2015 10:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ramana at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-65031-4-jzzlDLsEBf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65031-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65031-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-02/txt/msg01324.txt.bz2
Content-length: 184

https://gcc.gnu.org/bugzilla/show_bug.cgi?ide031

--- Comment #2 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
Appears to work with r220637. Checking if dup of PR65003.


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2015-02-27 14:14 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-12 10:10 [Bug c/65040] New: [5 Regression] gcc-5 -Wformat broken rguenth at gcc dot gnu.org
2015-02-12 10:10 ` [Bug c/65040] " rguenth at gcc dot gnu.org
2015-02-12 10:37 ` mpolacek at gcc dot gnu.org
2015-02-12 10:46 ` mpolacek at gcc dot gnu.org
2015-02-12 11:05 ` jakub at gcc dot gnu.org
2015-02-12 11:07 ` jakub at gcc dot gnu.org
2015-02-12 11:12 ` mark at gcc dot gnu.org
2015-02-12 11:33 ` fche at redhat dot com
2015-02-13  7:56 ` mpolacek at gcc dot gnu.org
2015-02-13  7:57 ` mpolacek at gcc dot gnu.org
2015-02-14  9:58 ` jirislaby at gmail dot com
2015-02-14 10:31 ` mpolacek at gcc dot gnu.org
2015-02-14 11:21 ` jakub at gcc dot gnu.org
2015-02-14 11:21 ` jirislaby at gmail dot com
2015-02-16 11:17 ` mpolacek at gcc dot gnu.org
2015-02-24  9:40 ` rguenth at gcc dot gnu.org
2015-02-24  9:57 ` rguenth at gcc dot gnu.org
2015-02-24 10:14 ` mpolacek at gcc dot gnu.org
2015-02-24 10:16 ` jakub at gcc dot gnu.org
2015-02-24 10:22 ` rguenth at gcc dot gnu.org
2015-02-27 15:02 ` mpolacek at gcc dot gnu.org
2015-02-27 15:03 ` mpolacek at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).