public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: "introduce no new bootstrap warning" criteria. was: Loop iv debugging, patch
@ 2001-01-13  4:34 Kaveh R. Ghazi
  2001-01-13  5:34 ` Andreas Jaeger
  2001-01-14  0:22 ` Geoff Keating
  0 siblings, 2 replies; 7+ messages in thread
From: Kaveh R. Ghazi @ 2001-01-13  4:34 UTC (permalink / raw)
  To: geoffk; +Cc: aj, dewar, dkorn, gcc, jsm28, robertlipe

 > From: Geoff Keating <geoffk@geoffk.org>
 > 
 > > From: "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu>
 > >
 > > I looked into what it would take to turn on -Werror and/or
 > > -pedatic-errors and that doesn't seem possible.  There are too many
 > > unfixable messages requiring a pragma silencer and also many warnings
 > > only appear on unusual platforms so we'd have a real hard time getting
 > > this to work without breaking bootstrap on lots of systems.  Plus any
 > > time a new warning is added to -Wall, it would break systems until
 > > completely silenced also.
 > 
 > Why do we have unfixable warnings in -Wall?  They're not supposed
 > to be there.

Recall that if we activate -Werror, we must have zero warnings on all
platforms, even old strange broken ones.  Here are some examples of
annoying or impossible to fix problems:

* On solaris, the system header definition of __GTHREAD_ONCE_INIT
causes missing initializer warnings.  Generically, any warning caused
by a macro defined in system headers but used in user code is trouble.
Checking in_system_header doesn't work for these.

* On systems where %p isn't supported, the backup method for printing
pointers using appropriate sized integer specifiers always causes
-Wformat warnings.  I don't think this one has a solution.

* On non-POSIX/non-USG "BSD" systems, e.g. sunos4, we don't include
string.h in tsystem.h.  This causes numerous implicit decl warnings
for the string functions.  We can't provide the backup decls because
they might conflict with platforms that do supply them and we can't
use autoconf in tsystem.h to confitionally provide them.

* On K&R systems, many system header prototypes (especially those
returning int which exist implicitly) aren't available unless one
defines __USE_FIXED_PROTOTYPES__.  We might want to define that during
bootstrap, but I don't know if it is safe for all platforms.
Otherwise it would have been done already.


My point is that -Werror requires *every* platform to have zero
warnings.  I think we could get *some* platforms down to zero, but its
not possible to get *all* of them IMHO.

		--Kaveh
--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions

^ permalink raw reply	[flat|nested] 7+ messages in thread
* "introduce no new bootstrap warning" criteria.  was: Loop iv debugging patch
@ 2001-01-12  5:50 Robert Lipe
  2001-01-12  6:13 ` "introduce no new bootstrap warning" criteria. was: Loop ivdebugging patch Joseph S. Myers
  0 siblings, 1 reply; 7+ messages in thread
From: Robert Lipe @ 2001-01-12  5:50 UTC (permalink / raw)
  To: gcc

About a recent patch, Andreas Jaeger wrote:

> Bootstrapping gcc I get:
> /cvs/gcc/gcc/doloop.c:60: warning: static declaration for `doloop_condition_get' follows non-static

For some compilers, this is a hard error and breaks the build.


I'm not going to fuss about the commit in question.  But in recent
years, a LOT of effort has been spent on getting the warning level in
a full bootstrap down to a manageable number.  (Thanks, Kaveh!)  It's
easy to watch that number decay as code is added back in that isn't held
to the same standards of zero warnings.  Yeah, when major new libraries
come it I can see it taking some time for them to stabilize on all
combinations of builds, but we're consistently seeing defects introduced
into tree that gcc itself would have told us about.

Is it time, in the name of quality/damage control in this project, to
make it an acceptance criteria for any commit that it introduce no new
warnings?

RJL

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

end of thread, other threads:[~2001-01-14  4:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-13  4:34 "introduce no new bootstrap warning" criteria. was: Loop iv debugging, patch Kaveh R. Ghazi
2001-01-13  5:34 ` Andreas Jaeger
2001-01-14  0:22 ` Geoff Keating
2001-01-14  3:31   ` "introduce no new bootstrap warning" criteria. was: Loop ivdebugging, patch Joseph S. Myers
2001-01-14  4:01     ` Geoff Keating
2001-01-14  4:41       ` "introduce no new bootstrap warning" criteria. was: Loop iv debugging, patch Neil Booth
  -- strict thread matches above, loose matches on Subject: below --
2001-01-12  5:50 "introduce no new bootstrap warning" criteria. was: Loop iv debugging patch Robert Lipe
2001-01-12  6:13 ` "introduce no new bootstrap warning" criteria. was: Loop ivdebugging patch Joseph S. Myers

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).