--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-05-02
04:23 ---
Subject: Bug 19542
CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED] 2005-05-02 04:22:57
Modified files:
gcc: c-common.c c-common.h c-opts.c c.opt
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-01
03:39 ---
To Mark as a dup of bug 18886.
*** This bug has been marked as a duplicate of 18886 ***
--
What|Removed |Added
--
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-01
03:39 ---
Reopening to ..
--
What|Removed |Added
Status|RESOLVED|UNCON
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-05-01
01:13 ---
Subject: Bug 19542
CVSROOT:/cvs/gcc
Module name:gcc
Branch: gcc-4_0-branch
Changes by: [EMAIL PROTECTED] 2005-05-01 01:13:09
Modified files:
gcc: c-comm
--- Additional Comments From matz at suse dot de 2005-01-20 15:35 ---
I agree that C++ is special, and that NULL in C++ is only a null pointer
constant (but not a null pointer). Hence, yes, strictly speaking a cast
would be needed even for NULL in va_lists.
But, as a matter of fact,
--- Additional Comments From marcus at jet dot franken dot de 2005-01-20
15:05 ---
thanks!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19542
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-20
15:00 ---
C++ is differrent from C.
NULL in C++ is defined special in that it is defined as an int but C is
different. You should always use a
cast when you passing to a varargs otherwise you might get a problem on
--- Additional Comments From marcus at jet dot franken dot de 2005-01-20
13:44 ---
well, i am not specifying the NULL, the code actually has "NULL".
However it gets defined by the gcc stdef.h file:
#if defined (_STDDEF_H) || defined (__need_NULL)
#undef NULL /* in case
--- Additional Comments From giovannibajo at libero dot it 2005-01-20
13:11 ---
__null is 0 of integer type, while attribute sentinel checks for 0 of pointer
type. Remember this is not the same because it depends on the ABI: on some
platforms, pushing a 0 of integer type into the stack
--- Additional Comments From marcus at jet dot franken dot de 2005-01-20
09:52 ---
Created an attachment (id=8003)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8003&action=view)
xx.cc
testcse, compile with -Wall
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19542
10 matches
Mail list logo