* [Bug c/21014] read-rtl.c:670: warning: missing sentinel in function call
2005-04-14 0:27 [Bug c/21014] New: read-rtl.c:670: warning: missing sentinel in function call danglin at gcc dot gnu dot org
@ 2005-04-14 0:29 ` danglin at gcc dot gnu dot org
2005-04-14 0:30 ` [Bug middle-end/21014] " pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: danglin at gcc dot gnu dot org @ 2005-04-14 0:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From danglin at gcc dot gnu dot org 2005-04-14 00:28 -------
Created an attachment (id=8622)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8622&action=view)
Preprocessed source.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21014
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/21014] read-rtl.c:670: warning: missing sentinel in function call
2005-04-14 0:27 [Bug c/21014] New: read-rtl.c:670: warning: missing sentinel in function call danglin at gcc dot gnu dot org
2005-04-14 0:29 ` [Bug c/21014] " danglin at gcc dot gnu dot org
@ 2005-04-14 0:30 ` pinskia at gcc dot gnu dot org
2005-04-14 0:46 ` dave at hiauly1 dot hia dot nrc dot ca
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-14 0:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-14 00:30 -------
result = concat ("(", cond1, ") && (", cond2, ")", NULL);
Looks like someone forgot the cast. (well in most of the time there is a cast, oh well).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|c |middle-end
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-04-14 00:30:19
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21014
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/21014] read-rtl.c:670: warning: missing sentinel in function call
2005-04-14 0:27 [Bug c/21014] New: read-rtl.c:670: warning: missing sentinel in function call danglin at gcc dot gnu dot org
2005-04-14 0:29 ` [Bug c/21014] " danglin at gcc dot gnu dot org
2005-04-14 0:30 ` [Bug middle-end/21014] " pinskia at gcc dot gnu dot org
@ 2005-04-14 0:46 ` dave at hiauly1 dot hia dot nrc dot ca
2005-04-14 0:58 ` dave at hiauly1 dot hia dot nrc dot ca
2005-04-15 22:10 ` dave at hiauly1 dot hia dot nrc dot ca
4 siblings, 0 replies; 6+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2005-04-14 0:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca 2005-04-14 00:46 -------
Subject: Re: read-rtl.c:670: warning: missing sentinel in function call
> result = concat ("(", cond1, ") && (", cond2, ")", NULL);
>
>
> Looks like someone forgot the cast. (well in most of the time there is a cast, oh well).
Casts definitely postdate vax-ultrix ;-) Do we always need a cast in
join_c_conditions?
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21014
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/21014] read-rtl.c:670: warning: missing sentinel in function call
2005-04-14 0:27 [Bug c/21014] New: read-rtl.c:670: warning: missing sentinel in function call danglin at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-04-14 0:46 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2005-04-14 0:58 ` dave at hiauly1 dot hia dot nrc dot ca
2005-04-15 22:10 ` dave at hiauly1 dot hia dot nrc dot ca
4 siblings, 0 replies; 6+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2005-04-14 0:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca 2005-04-14 00:58 -------
Subject: Re: read-rtl.c:670: warning: missing sentinel in function call
> > result = concat ("(", cond1, ") && (", cond2, ")", NULL);
> >
> >
> > Looks like someone forgot the cast. (well in most of the time there is a cast, oh well).
>
> Casts definitely postdate vax-ultrix ;-) Do we always need a cast in
> join_c_conditions?
Looking at /usr/include/sys/_null.h on HP-UX 11.11, it appears that
we only will get a cast if _ANSI_NULL_POINTER is defined. Since we
don't define this, I'm not sure why this problem doesn't also occur
under HP-UX.
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21014
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/21014] read-rtl.c:670: warning: missing sentinel in function call
2005-04-14 0:27 [Bug c/21014] New: read-rtl.c:670: warning: missing sentinel in function call danglin at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-04-14 0:58 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2005-04-15 22:10 ` dave at hiauly1 dot hia dot nrc dot ca
4 siblings, 0 replies; 6+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2005-04-15 22:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca 2005-04-15 22:10 -------
Subject: Re: read-rtl.c:670: warning: missing sentinel in function call
> result = concat ("(", cond1, ") && (", cond2, ")", NULL);
>
>
> Looks like someone forgot the cast. (well in most of the time there is a cast, oh well).
It looks like this could be fixed by including stddef.h after stdio.h
in system.h. stddef.h would then provide an appropriate define for NULL.
Otherwise, stdio.h needs fixing. The define for NULL in system.h is
also probably inadequate if it's ever needed.
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21014
^ permalink raw reply [flat|nested] 6+ messages in thread