This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Warning policy?
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: Warning policy?
- From: Andreas Schwab <schwab at issan dot informatik dot uni-dortmund dot de>
- Date: 30 Dec 1998 10:33:01 +0100
- Cc: chip at perlsupport dot com, pfeifer at dbai dot tuwien dot ac dot at, egcs at cygnus dot com
- References: <199812281636.LAA15720@caip.rutgers.edu>
"Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> writes:
|> The "label `???' defined but not used" warnings mostly appear in
|> insn-recog.c. In this case genrecog.c needs to be fixed. It may be
|> non-trivial to deduce which labels are unnecessary, I haven't looked.
|> Another approach might be to get the compiler to allow attribute
|> __unused__ on a label and just mark all of them unused in the generated
|> insn-recog.c file.
Well, the brute force method would be to just emit a `goto L' before
each label L.
--
Andreas Schwab "And now for something
schwab@issan.cs.uni-dortmund.de completely different"
schwab@gnu.org