public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/14791] New: 13070 does not fix -Wformat with fprintf
@ 2004-03-31 0:24 wmay at cisco dot com
2004-03-31 0:26 ` [Bug c++/14791] " wmay at cisco dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: wmay at cisco dot com @ 2004-03-31 0:24 UTC (permalink / raw)
To: gcc-bugs
I upgraded to 3.3.3 because this bug fixed printf; it does not seem to
fix the fprintf case.
Configured with: ./configure --prefix=/usr --enable-threads
Thread model: posix
g++ -Wall -Wformat -Werror -Wformat=2 test.cpp
--
Summary: 13070 does not fix -Wformat with fprintf
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: wmay at cisco dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14791
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/14791] 13070 does not fix -Wformat with fprintf
2004-03-31 0:24 [Bug c++/14791] New: 13070 does not fix -Wformat with fprintf wmay at cisco dot com
@ 2004-03-31 0:26 ` wmay at cisco dot com
2004-03-31 0:31 ` [Bug c++/14791] [3.3/3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: wmay at cisco dot com @ 2004-03-31 0:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From wmay at cisco dot com 2004-03-31 00:26 -------
Created an attachment (id=6018)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6018&action=view)
test.ii file requested.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14791
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/14791] [3.3/3.4/3.5 Regression] 13070 does not fix -Wformat with fprintf
2004-03-31 0:24 [Bug c++/14791] New: 13070 does not fix -Wformat with fprintf wmay at cisco dot com
2004-03-31 0:26 ` [Bug c++/14791] " wmay at cisco dot com
@ 2004-03-31 0:31 ` pinskia at gcc dot gnu dot org
2004-04-02 16:25 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-31 0:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-31 00:31 -------
Confirmed, reduced testcase:
typedef struct _FILE FILE;
FILE *stderr;
extern "C" int fprintf (FILE *__restrict __stream,
__const char *__restrict __format, ...);
int main()
{
fprintf(stderr, "%d\n", 1, 1);
}
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |roger at eyesopen dot com
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |diagnostic
Known to fail| |3.3.3 3.4.0 3.5.0
Known to work| |3.2.3
Last reconfirmed|0000-00-00 00:00:00 |2004-03-31 00:31:24
date| |
Summary|13070 does not fix -Wformat |[3.3/3.4/3.5 Regression]
|with fprintf |13070 does not fix -Wformat
| |with fprintf
Target Milestone|--- |3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14791
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/14791] [3.3/3.4/3.5 Regression] 13070 does not fix -Wformat with fprintf
2004-03-31 0:24 [Bug c++/14791] New: 13070 does not fix -Wformat with fprintf wmay at cisco dot com
2004-03-31 0:26 ` [Bug c++/14791] " wmay at cisco dot com
2004-03-31 0:31 ` [Bug c++/14791] [3.3/3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-04-02 16:25 ` jakub at gcc dot gnu dot org
2004-04-25 15:43 ` giovannibajo at libero dot it
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2004-04-02 16:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jakub at gcc dot gnu dot org 2004-04-02 16:25 -------
http://gcc.gnu.org/ml/gcc-patches/2004-04/msg00132.html
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14791
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/14791] [3.3/3.4/3.5 Regression] 13070 does not fix -Wformat with fprintf
2004-03-31 0:24 [Bug c++/14791] New: 13070 does not fix -Wformat with fprintf wmay at cisco dot com
` (2 preceding siblings ...)
2004-04-02 16:25 ` jakub at gcc dot gnu dot org
@ 2004-04-25 15:43 ` giovannibajo at libero dot it
2004-06-10 8:08 ` cvs-commit at gcc dot gnu dot org
2004-06-12 21:50 ` mmitchel at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: giovannibajo at libero dot it @ 2004-04-25 15:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-04-25 15:31 -------
*** Bug 15125 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |debian-gcc at lists dot
| |debian dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14791
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/14791] [3.3/3.4/3.5 Regression] 13070 does not fix -Wformat with fprintf
2004-03-31 0:24 [Bug c++/14791] New: 13070 does not fix -Wformat with fprintf wmay at cisco dot com
` (3 preceding siblings ...)
2004-04-25 15:43 ` giovannibajo at libero dot it
@ 2004-06-10 8:08 ` cvs-commit at gcc dot gnu dot org
2004-06-12 21:50 ` mmitchel at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-10 8:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-06-10 08:08 -------
Subject: Bug 14791
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: jakub@gcc.gnu.org 2004-06-10 08:08:02
Modified files:
gcc : ChangeLog builtin-types.def tree.h tree.c
builtins.def c-common.c
gcc/testsuite : ChangeLog
gcc/cp : decl.c
Added files:
gcc/testsuite/g++.dg/opt: builtins1.C
Log message:
PR c++/14791
* tree.h (enum tree_index): Add TI_FILEPTR_TYPE.
(fileptr_type_node): Define.
* tree.c (build_common_tree_nodes_2): Initialize
fileptr_type_node to ptr_type_node.
* c-common.c (c_common_nodes_and_builtins): For C++, make
fileptr_type_node a distinct type copy.
* builtin-types.def (BT_FILEPTR, BT_FN_INT_CONST_STRING_FILEPTR,
BT_FN_INT_INT_FILEPTR, BT_FN_INT_FILEPTR_CONST_STRING_VALIST_ARG,
BT_FN_SIZE_CONST_PTR_SIZE_SIZE_FILEPTR,
BT_FN_INT_FILEPTR_CONST_STRING_VAR): Add.
(BT_FN_INT_CONST_STRING_PTR, BT_FN_INT_INT_PTR,
BT_FN_SIZE_CONST_PTR_SIZE_SIZE_PTR, BT_FN_INT_PTR_CONST_STRING_VAR,
BT_FN_INT_PTR_CONST_STRING_VALIST_ARG): Remove.
* builtins.def (BUILT_IN_FPRINTF, BUILT_IN_FPRINTF_UNLOCKED,
BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS,
BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FSCANF, BUILT_IN_FWRITE,
BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): Use
the above *FILEPTR* types instead of *PTR*.
* decl.c (duplicate_decls): Handle fileptr_type_node arguments
specially.
* g++.dg/opt/builtins1.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.3905&r2=2.3906
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/builtin-types.def.diff?cvsroot=gcc&r1=1.26&r2=1.27
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.h.diff?cvsroot=gcc&r1=1.508&r2=1.509
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.c.diff?cvsroot=gcc&r1=1.374&r2=1.375
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/builtins.def.diff?cvsroot=gcc&r1=1.84&r2=1.85
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-common.c.diff?cvsroot=gcc&r1=1.510&r2=1.511
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3835&r2=1.3836
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1212&r2=1.1213
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/opt/builtins1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14791
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/14791] [3.3/3.4/3.5 Regression] 13070 does not fix -Wformat with fprintf
2004-03-31 0:24 [Bug c++/14791] New: 13070 does not fix -Wformat with fprintf wmay at cisco dot com
` (4 preceding siblings ...)
2004-06-10 8:08 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-12 21:50 ` mmitchel at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-06-12 21:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-06-12 21:50 -------
Won't fix in GCC 3.4.x.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|3.4.1 |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14791
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-06-12 21:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-31 0:24 [Bug c++/14791] New: 13070 does not fix -Wformat with fprintf wmay at cisco dot com
2004-03-31 0:26 ` [Bug c++/14791] " wmay at cisco dot com
2004-03-31 0:31 ` [Bug c++/14791] [3.3/3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
2004-04-02 16:25 ` jakub at gcc dot gnu dot org
2004-04-25 15:43 ` giovannibajo at libero dot it
2004-06-10 8:08 ` cvs-commit at gcc dot gnu dot org
2004-06-12 21:50 ` mmitchel 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).