public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/15378] New: -Werror should provide notification of why gcc is exiting
@ 2004-05-12 13:13 ed at catmur dot co dot uk
  2004-05-12 13:41 ` [Bug other/15378] " pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: ed at catmur dot co dot uk @ 2004-05-12 13:13 UTC (permalink / raw)
  To: gcc-bugs

$ echo "main(){}" | gcc -x c - -Wall -Werror -o /dev/null
<stdin>:1: warning: return type defaults to `int'

gcc should output something like:
-Werror is set; regarding warnings as errors. Exiting.

This is necessary because when gcc is invoked from GNU make it is not always
clear what command-line arguments have been passed.

-- 
           Summary: -Werror should provide notification of why gcc is
                    exiting
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ed at catmur dot co dot uk
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15378


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

* [Bug other/15378] -Werror should provide notification of why gcc is exiting
  2004-05-12 13:13 [Bug other/15378] New: -Werror should provide notification of why gcc is exiting ed at catmur dot co dot uk
@ 2004-05-12 13:41 ` pinskia at gcc dot gnu dot org
  2004-05-12 14:33 ` jsm at polyomino dot org dot uk
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-12 13:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-11 17:07 -------
Confirmed, as sometimes we get reports of gcc failing to build and people thing it is an ICE when it 
stopped to build because gcc is built (IIRC not on the release branch though) with -Werror.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2004-05-11 17:08:00
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15378


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

* [Bug other/15378] -Werror should provide notification of why gcc is exiting
  2004-05-12 13:13 [Bug other/15378] New: -Werror should provide notification of why gcc is exiting ed at catmur dot co dot uk
  2004-05-12 13:41 ` [Bug other/15378] " pinskia at gcc dot gnu dot org
@ 2004-05-12 14:33 ` jsm at polyomino dot org dot uk
  2004-05-12 15:14 ` [Bug other/15378] [3.3/3.4/3.5 regression] " bangerth at dealii dot org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jsm at polyomino dot org dot uk @ 2004-05-12 14:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jsm at polyomino dot org dot uk  2004-05-11 17:48 -------
Subject: Re:  New: -Werror should provide notification of
 why gcc is exiting

On Tue, 11 May 2004, ed at catmur dot co dot uk wrote:

> gcc should output something like:
> -Werror is set; regarding warnings as errors. Exiting.

There's code to do this in diagnostic_count_diagnostic, but it doesn't
seem to be working.

      if (context->warnings_are_errors_message)
        {
          pp_verbatim (context->printer,
                       "%s: warnings being treated as errors\n", progname);
          context->warnings_are_errors_message = false;
        }



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15378


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

* [Bug other/15378] [3.3/3.4/3.5 regression] -Werror should provide notification of why gcc is exiting
  2004-05-12 13:13 [Bug other/15378] New: -Werror should provide notification of why gcc is exiting ed at catmur dot co dot uk
  2004-05-12 13:41 ` [Bug other/15378] " pinskia at gcc dot gnu dot org
  2004-05-12 14:33 ` jsm at polyomino dot org dot uk
@ 2004-05-12 15:14 ` bangerth at dealii dot org
  2004-06-06  3:57 ` giovannibajo at libero dot it
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bangerth at dealii dot org @ 2004-05-12 15:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2004-05-11 18:11 -------
Hm, I'm not exactly sure what you mean -- if you give -Werror to the compiler, 
then shouldn't you expect the compiler to stop when it encounters an 
error? If your Makefiles are written such that they don't show the actual 
commmand line of the compiler invokation, this can hardly count as a bug 
in gcc. 
 
That being said, we indeed have a regression: 
---------- 
main () {} 
---------- 
yields 
 
g/x> /home/bangerth/bin/gcc-2.95.3/bin/c++ x.cc -Wall -W -Werror 
cc1plus: warnings being treated as errors 
x.cc:1: warning: ANSI C++ forbids declaration `main' with no type 
 
g/x> /home/bangerth/bin/gcc-3.2.3/bin/c++ x.cc -Wall -W -Werror 
cc1plus: warnings being treated as errors 
x.cc:1: warning: ISO C++ forbids declaration of `main' with no type 
 
g/x> /home/bangerth/bin/gcc-3.3.4-pre/bin/c++ x.cc -Wall -W -Werror 
x.cc:1: warning: ISO C++ forbids declaration of `main' with no type 
 
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ x.cc -Wall -W -Werror 
x.cc:1: warning: ISO C++ forbids declaration of `main' with no type 
 
g/x> /home/bangerth/bin/gcc-3.5-pre/bin/c++ x.cc -Wall -W -Werror 
x.cc:1: warning: ISO C++ forbids declaration of `main' with no type 
 
In other words, the indication of -Werror was dropped sometime between 
3.2.x and 3.3.x. 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|enhancement                 |minor
      Known to fail|                            |3.3.4 3.4.0 3.5.0
      Known to work|                            |2.95.3 3.2.3
            Summary|-Werror should provide      |[3.3/3.4/3.5 regression] -
                   |notification of why gcc is  |Werror should provide
                   |exiting                     |notification of why gcc is
                   |                            |exiting
   Target Milestone|---                         |3.3.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15378


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

* [Bug other/15378] [3.3/3.4/3.5 regression] -Werror should provide notification of why gcc is exiting
  2004-05-12 13:13 [Bug other/15378] New: -Werror should provide notification of why gcc is exiting ed at catmur dot co dot uk
                   ` (2 preceding siblings ...)
  2004-05-12 15:14 ` [Bug other/15378] [3.3/3.4/3.5 regression] " bangerth at dealii dot org
@ 2004-06-06  3:57 ` giovannibajo at libero dot it
  2004-06-12 22:07 ` mmitchel at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: giovannibajo at libero dot it @ 2004-06-06  3:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2004-06-06 03:57 -------
Retargeting to 3.4.1, being a regression on that release branch.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gdr at gcc dot gnu dot org
   Target Milestone|3.3.4                       |3.4.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15378


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

* [Bug other/15378] [3.3/3.4/3.5 regression] -Werror should provide notification of why gcc is exiting
  2004-05-12 13:13 [Bug other/15378] New: -Werror should provide notification of why gcc is exiting ed at catmur dot co dot uk
                   ` (3 preceding siblings ...)
  2004-06-06  3:57 ` giovannibajo at libero dot it
@ 2004-06-12 22:07 ` mmitchel at gcc dot gnu dot org
  2004-06-22  8:05 ` mmitchel at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-06-12 22:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-06-12 22:07 -------
Gaby, what is the status of this PR?  As diagnostic maintainer, would you please
take a look?

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15378


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

* [Bug other/15378] [3.3/3.4/3.5 regression] -Werror should provide notification of why gcc is exiting
  2004-05-12 13:13 [Bug other/15378] New: -Werror should provide notification of why gcc is exiting ed at catmur dot co dot uk
                   ` (4 preceding siblings ...)
  2004-06-12 22:07 ` mmitchel at gcc dot gnu dot org
@ 2004-06-22  8:05 ` mmitchel at gcc dot gnu dot org
  2004-08-19 21:13 ` mmitchel at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-06-22  8:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-06-22 08:05 -------
Postponed until GCC 3.4.2.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.1                       |3.4.2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15378


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

* [Bug other/15378] [3.3/3.4/3.5 regression] -Werror should provide notification of why gcc is exiting
  2004-05-12 13:13 [Bug other/15378] New: -Werror should provide notification of why gcc is exiting ed at catmur dot co dot uk
                   ` (5 preceding siblings ...)
  2004-06-22  8:05 ` mmitchel at gcc dot gnu dot org
@ 2004-08-19 21:13 ` mmitchel at gcc dot gnu dot org
  2004-08-19 21:33 ` gdr at integrable-solutions dot net
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-19 21:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-08-19 21:13 -------
Gaby, would you please fix this bug?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |gdr at integrable-solutions
                   |dot org                     |dot net
             Status|NEW                         |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15378


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

* [Bug other/15378] [3.3/3.4/3.5 regression] -Werror should provide notification of why gcc is exiting
  2004-05-12 13:13 [Bug other/15378] New: -Werror should provide notification of why gcc is exiting ed at catmur dot co dot uk
                   ` (6 preceding siblings ...)
  2004-08-19 21:13 ` mmitchel at gcc dot gnu dot org
@ 2004-08-19 21:33 ` gdr at integrable-solutions dot net
  2004-08-29 19:09 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: gdr at integrable-solutions dot net @ 2004-08-19 21:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at integrable-solutions dot net  2004-08-19 21:33 -------
Subject: Re:  [3.3/3.4/3.5 regression] -Werror should provide notification of why gcc is exiting

"mmitchel at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| Gaby, would you please fix this bug?

OK.

-- Gaby
 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15378


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

* [Bug other/15378] [3.3/3.4/3.5 regression] -Werror should provide notification of why gcc is exiting
  2004-05-12 13:13 [Bug other/15378] New: -Werror should provide notification of why gcc is exiting ed at catmur dot co dot uk
                   ` (7 preceding siblings ...)
  2004-08-19 21:33 ` gdr at integrable-solutions dot net
@ 2004-08-29 19:09 ` mmitchel at gcc dot gnu dot org
  2004-08-30  4:56 ` gdr at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-29 19:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-08-29 19:09 -------
Postponed until GCC 3.4.3.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.2                       |3.4.3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15378


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

* [Bug other/15378] [3.3/3.4/3.5 regression] -Werror should provide notification of why gcc is exiting
  2004-05-12 13:13 [Bug other/15378] New: -Werror should provide notification of why gcc is exiting ed at catmur dot co dot uk
                   ` (8 preceding siblings ...)
  2004-08-29 19:09 ` mmitchel at gcc dot gnu dot org
@ 2004-08-30  4:56 ` gdr at gcc dot gnu dot org
  2004-11-01  0:47 ` [Bug other/15378] [3.3/3.4 " mmitchel at gcc dot gnu dot org
  2005-05-19 17:37 ` mmitchel at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-08-30  4:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2004-08-30 04:56 -------

Fixed in 3.5.0 or whatever it gets called.

   http://gcc.gnu.org/ml/gcc-patches/2004-08/msg02416.html

backport to 3.3.5 pending

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15378


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

* [Bug other/15378] [3.3/3.4 regression] -Werror should provide notification of why gcc is exiting
  2004-05-12 13:13 [Bug other/15378] New: -Werror should provide notification of why gcc is exiting ed at catmur dot co dot uk
                   ` (9 preceding siblings ...)
  2004-08-30  4:56 ` gdr at gcc dot gnu dot org
@ 2004-11-01  0:47 ` mmitchel at gcc dot gnu dot org
  2005-05-19 17:37 ` mmitchel at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-11-01  0:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-11-01 00:46 -------
Postponed until GCC 3.4.4.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.3                       |3.4.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15378


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

* [Bug other/15378] [3.3/3.4 regression] -Werror should provide notification of why gcc is exiting
  2004-05-12 13:13 [Bug other/15378] New: -Werror should provide notification of why gcc is exiting ed at catmur dot co dot uk
                   ` (10 preceding siblings ...)
  2004-11-01  0:47 ` [Bug other/15378] [3.3/3.4 " mmitchel at gcc dot gnu dot org
@ 2005-05-19 17:37 ` mmitchel at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-05-19 17:37 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.4                       |3.4.5


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15378


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

end of thread, other threads:[~2005-05-19 17:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-12 13:13 [Bug other/15378] New: -Werror should provide notification of why gcc is exiting ed at catmur dot co dot uk
2004-05-12 13:41 ` [Bug other/15378] " pinskia at gcc dot gnu dot org
2004-05-12 14:33 ` jsm at polyomino dot org dot uk
2004-05-12 15:14 ` [Bug other/15378] [3.3/3.4/3.5 regression] " bangerth at dealii dot org
2004-06-06  3:57 ` giovannibajo at libero dot it
2004-06-12 22:07 ` mmitchel at gcc dot gnu dot org
2004-06-22  8:05 ` mmitchel at gcc dot gnu dot org
2004-08-19 21:13 ` mmitchel at gcc dot gnu dot org
2004-08-19 21:33 ` gdr at integrable-solutions dot net
2004-08-29 19:09 ` mmitchel at gcc dot gnu dot org
2004-08-30  4:56 ` gdr at gcc dot gnu dot org
2004-11-01  0:47 ` [Bug other/15378] [3.3/3.4 " mmitchel at gcc dot gnu dot org
2005-05-19 17:37 ` mmitchel at gcc dot gnu dot org

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