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: Warning policy?


"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


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