public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* comparisons..
@ 2000-07-12 22:58 Andrew Morton
  2000-07-12 23:35 ` comparisons Michael Meissner
  2000-07-12 23:54 ` comparisons Martin v. Loewis
  0 siblings, 2 replies; 35+ messages in thread
From: Andrew Morton @ 2000-07-12 22:58 UTC (permalink / raw)
  To: gcc

unsigned long x;
 
int y()
{
        return (x < 0);
}

This is usually a bug.  Is there a way of getting gcc to warn about it?

^ permalink raw reply	[flat|nested] 35+ messages in thread
* Re: comparisons..
@ 2000-07-13 10:09 Phil Edwards
  2000-07-13 11:18 ` comparisons Michael Meissner
  0 siblings, 1 reply; 35+ messages in thread
From: Phil Edwards @ 2000-07-13 10:09 UTC (permalink / raw)
  To: bkorb; +Cc: gcc

Bruce Korb <bkorb@sco.COM>:
> How hard would it be (wondering aloud and not having done 
> any research at all)....
>
> to set up an rc-type file at either gcc build time or
> gcc run time (or both?) that contained a list of "my" warnings
> and allowed someone to merely specify -Wmine on the command
> line.  Just wondering....*not* volunteering :-)

I and some of my coworkers have occasionally created ancilliary 4- and
5-line specs files, and use those to augment the defaults.  Usually we
use them to turn on /boatloads/ of extra warnings, but occasionally we
need some weird -f/-m flags turned on (and we can't modify the makefiles
for other reasons).

Then it's just "gcc -specs=.../philspecs" or "gcc -specs=.../bobspecs"
or, etc.


Phil

^ permalink raw reply	[flat|nested] 35+ messages in thread

end of thread, other threads:[~2000-07-28  5:48 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-12 22:58 comparisons Andrew Morton
2000-07-12 23:35 ` comparisons Michael Meissner
2000-07-12 23:48   ` comparisons Andrew Morton
2000-07-12 23:57     ` comparisons Michael Meissner
2000-07-13  0:24       ` comparisons Andrew Morton
2000-07-13  1:05         ` comparisons Nick Burrett
2000-07-13  1:47           ` comparisons Andrew Morton
2000-07-13  9:12             ` comparisons Joe Buck
2000-07-13 14:48               ` comparisons Andi Kleen
2000-07-13 21:46               ` comparisons Andrew Morton
2000-07-13  0:24     ` comparisons Martin v. Loewis
2000-07-13  1:09       ` comparisons Andrew Morton
2000-07-13  1:36         ` comparisons Nick Burrett
2000-07-13  1:47           ` comparisons Andrew Morton
2000-07-13  6:39         ` comparisons Andrew Morton
2000-07-13  9:11           ` comparisons Joe Buck
2000-07-13  9:45             ` comparisons Bruce Korb
2000-07-13 10:32               ` comparisons Joe Buck
2000-07-13 15:14             ` comparisons Russ Allbery
2000-07-13 17:11               ` comparisons Philipp Thomas
2000-07-28  5:48           ` comparisons Nix
2000-07-13  9:44         ` comparisons Gerald Pfeifer
2000-07-13 17:12           ` comparisons Andrew Morton
2000-07-13 17:30             ` comparisons Russ Allbery
2000-07-13 17:48               ` comparisons Michael Meissner
2000-07-14  4:22             ` comparisons Toon Moene
2000-07-14 10:57               ` comparisons Richard Henderson
2000-07-14 12:43                 ` comparisons Toon Moene
2000-07-14 12:52                   ` comparisons Richard Henderson
2000-07-14 13:53                     ` comparisons Toon Moene
2000-07-14 14:00               ` comparisons Martin v. Loewis
2000-07-15 17:35               ` comparisons Joe Buck
2000-07-12 23:54 ` comparisons Martin v. Loewis
2000-07-13 10:09 comparisons Phil Edwards
2000-07-13 11:18 ` comparisons Michael Meissner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).