This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Warnings in emit-rtl.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]