public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/29358] Warning issued two times with snprintf
[not found] <bug-29358-4@http.gcc.gnu.org/bugzilla/>
@ 2012-01-14 0:23 ` pinskia at gcc dot gnu.org
2015-05-21 12:13 ` mpolacek at gcc dot gnu.org
2015-06-03 8:28 ` mpolacek at gcc dot gnu.org
2 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-01-14 0:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29358
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-01-14
Component|middle-end |c
Ever Confirmed|0 |1
Known to fail| |4.4.0, 4.7.0
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-14 00:14:12 UTC ---
Confirmed.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/29358] Warning issued two times with snprintf
[not found] <bug-29358-4@http.gcc.gnu.org/bugzilla/>
2012-01-14 0:23 ` [Bug c/29358] Warning issued two times with snprintf pinskia at gcc dot gnu.org
@ 2015-05-21 12:13 ` mpolacek at gcc dot gnu.org
2015-06-03 8:28 ` mpolacek at gcc dot gnu.org
2 siblings, 0 replies; 7+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-05-21 12:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29358
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Note that my patch <https://gcc.gnu.org/ml/gcc-patches/2015-05/msg01697.html>
also fixes this issue.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/29358] Warning issued two times with snprintf
[not found] <bug-29358-4@http.gcc.gnu.org/bugzilla/>
2012-01-14 0:23 ` [Bug c/29358] Warning issued two times with snprintf pinskia at gcc dot gnu.org
2015-05-21 12:13 ` mpolacek at gcc dot gnu.org
@ 2015-06-03 8:28 ` mpolacek at gcc dot gnu.org
2 siblings, 0 replies; 7+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-06-03 8:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29358
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org
Target Milestone|--- |6.0
--- Comment #9 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Should be fixed now.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/29358] Warning issued two times with snprintf
2006-10-05 17:04 [Bug c/29358] New: " pf dot hugues at gmail dot com
` (2 preceding siblings ...)
2006-10-05 17:11 ` pf dot hugues at gmail dot com
@ 2006-10-05 17:16 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-10-05 17:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-10-05 17:15 -------
(gdb) p debug_tree (function)
<addr_expr 0xb7dd60a0
type <pointer_type 0xb7dd3900
type <function_type 0xb7dae180 type <integer_type 0xb7d122a0 int>
SI
size <integer_cst 0xb7cff380 constant invariant 32>
unit size <integer_cst 0xb7cff040 constant invariant 4>
align 32 symtab 0 alias set -1
attributes <tree_list 0xb7daaba0
purpose <identifier_node 0xb7da95a0 __format__>
value <tree_list 0xb7daab40
value <identifier_node 0xb7da95d0 __printf__>
chain <tree_list 0xb7daab10
value <integer_cst 0xb7cffc00 constant invariant 3>
chain <tree_list 0xb7daab28 value <integer_cst
0xb7cffc20 4>>>>
chain <tree_list 0xb7d4c4e0
purpose <identifier_node 0xb7d11810 nonnull>
value <tree_list 0xb7d215d0 value <integer_cst 0xb7cffc00
3>>
chain <tree_list 0xb7d4c4c8
purpose <identifier_node 0xb7d11780 format>
value <tree_list 0xb7d21a08 value <identifier_node
0xb7d118a0 printf> chain <tree_list 0xb7d2 16a8>>>>>
arg-types <tree_list 0xb7daaae0 value <pointer_type 0xb7dac360>
chain <tree_list 0xb7daaac8 value <integer_type 0xb7d939c0
size_t>
chain <tree_list 0xb7daaab0 value <pointer_type
0xb7da7900>>>>
pointer_to_this <pointer_type 0xb7dd3900>>
unsigned SI size <integer_cst 0xb7cff380 32> unit size <integer_cst
0xb7cff040 4>
align 32 symtab 0 alias set -1>
constant invariant
arg 0 <function_decl 0xb7d4d900 snprintf type <function_type 0xb7dae180>
addressable used nothrow public external in_system_header built-in
decl_3 decl_5 SI defer-output file /home/a
pinski/src/gcc-3c/gcc-4.1-build/install/ppu/sysroot//usr/include/stdio.h line
353
built-in BUILT_IN_NORMAL:BUILT_IN_SNPRINTF attributes <tree_list
0xb7d4c558>>>
$4 = void
(gdb) p debug_generic_expr(0xb7d4c4c8)
format printf, 3, 4
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29358
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/29358] Warning issued two times with snprintf
2006-10-05 17:04 [Bug c/29358] New: " pf dot hugues at gmail dot com
2006-10-05 17:07 ` [Bug c/29358] " pinskia at gcc dot gnu dot org
2006-10-05 17:10 ` joseph at codesourcery dot com
@ 2006-10-05 17:11 ` pf dot hugues at gmail dot com
2006-10-05 17:16 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 7+ messages in thread
From: pf dot hugues at gmail dot com @ 2006-10-05 17:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pf dot hugues at gmail dot com 2006-10-05 17:11 -------
I don't contest the warning, but why is it printed 2 times ?!
--
pf dot hugues at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29358
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/29358] Warning issued two times with snprintf
2006-10-05 17:04 [Bug c/29358] New: " pf dot hugues at gmail dot com
2006-10-05 17:07 ` [Bug c/29358] " pinskia at gcc dot gnu dot org
@ 2006-10-05 17:10 ` joseph at codesourcery dot com
2006-10-05 17:11 ` pf dot hugues at gmail dot com
2006-10-05 17:16 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 7+ messages in thread
From: joseph at codesourcery dot com @ 2006-10-05 17:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from joseph at codesourcery dot com 2006-10-05 17:10 -------
Subject: Re: Warning issued two times with snprintf
On Thu, 5 Oct 2006, pinskia at gcc dot gnu dot org wrote:
> uint32_t is unsigned int on those targets and this is not a bug.
Did you read the bug report? The problem is that the warning is issued
twice when it should be issued once.
I'd guess that the issue that that the system header declares the function
with a format attribute, and such an attribute is also built in, and the
duplicate attributes don't get eliminated properly.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29358
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c/29358] Warning issued two times with snprintf
2006-10-05 17:04 [Bug c/29358] New: " pf dot hugues at gmail dot com
@ 2006-10-05 17:07 ` pinskia at gcc dot gnu dot org
2006-10-05 17:10 ` joseph at codesourcery dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-10-05 17:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-10-05 17:07 -------
uint32_t is unsigned int on those targets and this is not a bug.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29358
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-06-03 8:28 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-29358-4@http.gcc.gnu.org/bugzilla/>
2012-01-14 0:23 ` [Bug c/29358] Warning issued two times with snprintf pinskia at gcc dot gnu.org
2015-05-21 12:13 ` mpolacek at gcc dot gnu.org
2015-06-03 8:28 ` mpolacek at gcc dot gnu.org
2006-10-05 17:04 [Bug c/29358] New: " pf dot hugues at gmail dot com
2006-10-05 17:07 ` [Bug c/29358] " pinskia at gcc dot gnu dot org
2006-10-05 17:10 ` joseph at codesourcery dot com
2006-10-05 17:11 ` pf dot hugues at gmail dot com
2006-10-05 17:16 ` pinskia at gcc dot gnu dot 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).