public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Andrew Pinski <pinskia@physics.uc.edu>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: c/5647: ternary with bit value assignment as parameter
Date: Sat, 09 Feb 2002 16:46:00 -0000	[thread overview]
Message-ID: <20020210004601.29869.qmail@sources.redhat.com> (raw)

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:
 >
 >
 


             reply	other threads:[~2002-02-10  0:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-09 16:46 Andrew Pinski [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-04-23  2:13 rth
2002-02-09 16:16 craig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020210004601.29869.qmail@sources.redhat.com \
    --to=pinskia@physics.uc.edu \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).