This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Chill warning questions #2
- To: bothner at cygnus dot com
- Subject: Re: Chill warning questions #2
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Wed, 14 Oct 1998 23:07:35 -0400 (EDT)
- Cc: brolley at cygnus dot com, egcs at cygnus dot com
> From: Per Bothner <bothner@cygnus.com>
>
> > 2. In the following case, did you mean to use "=", not "=="?
> > typeck.c: In function `build_chill_cast':
> > typeck.c:1214: warning: statement with no effect
> > > TREE_READONLY (expr) == TYPE_READONLY (type);
>
> Yes, it should be a "=".
>
> > 4. What should have been printed here?
> > tasking.c: In function `build_signal_descriptor':
> > tasking.c:1275: warning: char format, tree_node arg (arg 2)
> > tree signame = DECL_NAME (sigdef);
> > [...]
> > error ("SEND requires a SIGNAL; %s is not a SIGNAL name", signame);
>
> It should be ... IDENTIFIER_POINTER (signame));
>
> Assuming you have egcs write permission, please go ahead with these fixes.
>
> --Per Bothner
Done. Thanks for responding.
If you have a moment, would you please try to answer question #1 from
the same message (http://www.cygnus.com/ml/egcs/1998-Oct/0340.html)?
I believe it was suggested that the comparison in the statement should
be &&, not &, (in http://www.cygnus.com/ml/egcs/1998-Oct/0442.html).
Is that correct?
While we're on a role...
See http://www.cygnus.com/ml/egcs/1998-Oct/0335.html for three more
issues.
Thanks,
--Kaveh
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Icon CMT Corp.