public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/5647: ternary with bit value assignment as parameter
@ 2002-04-23 2:13 rth
0 siblings, 0 replies; 3+ messages in thread
From: rth @ 2002-04-23 2:13 UTC (permalink / raw)
To: craig, gcc-bugs, gcc-prs, nobody
Synopsis: ternary with bit value assignment as parameter
State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Tue Apr 23 02:13:01 2002
State-Changed-Why:
Use make bootstrap.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5647
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c/5647: ternary with bit value assignment as parameter
@ 2002-02-09 16:46 Andrew Pinski
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Pinski @ 2002-02-09 16:46 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c/5647; it has been noted by GNATS.
From: Andrew Pinski <pinskia@physics.uc.edu>
To: craig@svensons.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c/5647: ternary with bit value assignment as parameter
Date: Sat, 9 Feb 2002 19:36:58 -0500
When you build gcc, you are to use `make bootstrap`; not just `make'.
The c++ of gcc uses some gcc extensions, you are supposed to make g++
without using gcc.
Thanks,
Andrew Pinski
PS Also use a separate build directory.
On Saturday, February 9, 2002, at 07:11 , craig@svensons.com wrote:
>
>> Number: 5647
>> Category: c
>> Synopsis: ternary with bit value assignment as parameter
>> Confidential: no
>> Severity: serious
>> Priority: medium
>> Responsible: unassigned
>> State: open
>> Class: sw-bug
>> Submitter-Id: net
>> Arrival-Date: Sat Feb 09 16:16:01 PST 2002
>> Closed-Date:
>> Last-Modified:
>> Originator: Craig Svenson
>> Release: gcc-3.0.3
>> Organization:
>> Environment:
> powerpc-ibm-aix4.3.2.0
> AIX 'C' version 5.0
>> Description:
>
> #define SET_BINFO_MARKED(NODE)
> (TREE_VIA_VIRTUAL(NODE)?SET_CLASSTYPE_MARKED(BINF
> O_TYPE(NODE)):(TREE_LANG_FLAG_0(NODE)=1))
>
> "cp/pt.c", line 8370.9: 1506-226 (S) The ":" operator is not allowed
> between "void" and "unsigned int:1".
> make: 1254-004 The error code from the last command is 1.
>
> In the AIX 'C' compiler SET_BINFO_MARKED(NODE) assumes a reurn type of
> void. The ternary is returning unsigned int.
>> How-To-Repeat:
>
>> Fix:
> #define SET_BINFO_MARKED(NODE)
> (TREE_VIA_VIRTUAL(NODE)?SET_CLASSTYPE_MARKED(BINF
> O_TYPE(NODE)): (void) (TREE_LANG_FLAG_0(NODE)=1))
>
> cast the assignment to void. This repairs many files where this macro
> is used.
>> Release-Note:
>> Audit-Trail:
>> Unformatted:
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* c/5647: ternary with bit value assignment as parameter
@ 2002-02-09 16:16 craig
0 siblings, 0 replies; 3+ messages in thread
From: craig @ 2002-02-09 16:16 UTC (permalink / raw)
To: gcc-gnats
>Number: 5647
>Category: c
>Synopsis: ternary with bit value assignment as parameter
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 09 16:16:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Craig Svenson
>Release: gcc-3.0.3
>Organization:
>Environment:
powerpc-ibm-aix4.3.2.0
AIX 'C' version 5.0
>Description:
#define SET_BINFO_MARKED(NODE) (TREE_VIA_VIRTUAL(NODE)?SET_CLASSTYPE_MARKED(BINF
O_TYPE(NODE)):(TREE_LANG_FLAG_0(NODE)=1))
"cp/pt.c", line 8370.9: 1506-226 (S) The ":" operator is not allowed between "void" and "unsigned int:1".
make: 1254-004 The error code from the last command is 1.
In the AIX 'C' compiler SET_BINFO_MARKED(NODE) assumes a reurn type of void. The ternary is returning unsigned int.
>How-To-Repeat:
>Fix:
#define SET_BINFO_MARKED(NODE) (TREE_VIA_VIRTUAL(NODE)?SET_CLASSTYPE_MARKED(BINF
O_TYPE(NODE)): (void) (TREE_LANG_FLAG_0(NODE)=1))
cast the assignment to void. This repairs many files where this macro is used.
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-04-23 9:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-23 2:13 c/5647: ternary with bit value assignment as parameter rth
-- strict thread matches above, loose matches on Subject: below --
2002-02-09 16:46 Andrew Pinski
2002-02-09 16:16 craig
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).