This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Warnings in emit-rtl.c
- To: law at cygnus dot com
- Subject: Re: Warnings in emit-rtl.c
- From: Andreas Schwab <schwab at issan dot informatik dot uni-dortmund dot de>
- Date: 26 Jan 1998 11:55:53 +0100
- Cc: egcs at cygnus dot com
- References: <9642.885540318@hurl.cygnus.com>
Jeffrey A Law <law@hurl.cygnus.com> writes:
|> In message <vyzyb0akv62.fsf@issan.informatik.uni-dortmund.de>you write:
|> > There are two warnings about pointer mismatch in emit-rtl.c, which are due
|> > to putting special things in rtx slots. The actual types cannot be
|> > expressed by the print formats in rtl.def.
|> >
|> >
|> > 1998-01-20 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
|> >
|> > * emit-rtl.c (gen_label_rtx): Add cast to avoid warning.
|> > (gen_inline_header_rtx): Likewise.
|> Well, the first one gets "fixed" by removing all the useless bytecode stuff.
|> The second one is wrong -- the bug is actually in rtl.def and has been
|> fixed for the 980122 snapshot.
This is still wrong. The real type of the argument is array of rtx, which
is quite different from rtvec and cannot be expressed in the current set
of print formats. There are other places where rtl.def lies about the
real type. For example, look at the casts in integrate.c.
--
Andreas Schwab "And now for something
schwab@issan.informatik.uni-dortmund.de completely different"
schwab@gnu.org