public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/18773] New: GCC terminates on warnings compiling ada/raise.c
@ 2004-12-02  2:41 awreynolds at mac dot com
  2004-12-02  2:47 ` [Bug ada/18773] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: awreynolds at mac dot com @ 2004-12-02  2:41 UTC (permalink / raw)
  To: gcc-bugs

gcc -c   -g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0 -DENABLE_CHECKING 
-DENABLE_ASSERT_CHECKING -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-
prototypes    -Werror -fno-common   -DHAVE_CONFIG_H     \
	    -I. -Iada -I../../gcc -I../../gcc/ada -I../../gcc/../include -I../../gcc/../libcpp/include  ../../gcc/
ada/raise.c -o ada/raise.o
In file included from ../../gcc/ada/raise.c:98:
../../gcc/unwind.h:35: warning: ignoring #pragma GCC visibility
../../gcc/unwind.h:237: warning: ignoring #pragma GCC visibility
make[2]: *** [ada/raise.o] Error 1
make[1]: *** [stage1_build] Error 2
make: *** [bootstrap] Error 2

Compiler configured with the following:

../configure --prefix=/usr/local/ada --enable-shared --disable-nls --enable-languages=c,ada

Compiled with the following GCC:

Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20040913 (GNAT for Mac OS X build 1650)

-- 
           Summary: GCC terminates on warnings compiling ada/raise.c
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: awreynolds at mac dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-apple-darwin7.6.0
  GCC host triplet: powerpc-apple-darwin7.6.0
GCC target triplet: powerpc-apple-darwin7.6.0


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


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

* [Bug ada/18773] GCC terminates on warnings compiling ada/raise.c
  2004-12-02  2:41 [Bug ada/18773] New: GCC terminates on warnings compiling ada/raise.c awreynolds at mac dot com
@ 2004-12-02  2:47 ` pinskia at gcc dot gnu dot org
  2004-12-02  3:02 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-02  2:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-02 02:46 -------
Hmm, this worked yesterday:
gcc version 4.0.0 20041201 (experimental)
-Werror should not be there.
In fact in my compiling I don't get -Werror:
gcc -c   -g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0 -DENABLE_CHECKING 
-DENABLE_ASSERT_CHECKING -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-
prototypes     -fno-common   -DHAVE_CONFIG_H     \
            -I. -Iada -I/Users/pinskia/src/local2/gcc/gcc -I/Users/pinskia/src/local2/gcc/gcc/ada -I/
Users/pinskia/src/local2/gcc/gcc/../include -I./../intl -I/Users/pinskia/src/local2/gcc/gcc/../libcpp/
include  /Users/pinskia/src/local2/gcc/gcc/ada/raise.c -o ada/raise.o
In file included from /Users/pinskia/src/local2/gcc/gcc/ada/raise.c:98:
/Users/pinskia/src/local2/gcc/gcc/unwind.h:35: warning: ignoring #pragma GCC visibility
/Users/pinskia/src/local2/gcc/gcc/unwind.h:237: warning: ignoring #pragma GCC visibility

Can you try configuring with an absolute path?

-- 


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


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

* [Bug ada/18773] GCC terminates on warnings compiling ada/raise.c
  2004-12-02  2:41 [Bug ada/18773] New: GCC terminates on warnings compiling ada/raise.c awreynolds at mac dot com
  2004-12-02  2:47 ` [Bug ada/18773] " pinskia at gcc dot gnu dot org
@ 2004-12-02  3:02 ` pinskia at gcc dot gnu dot org
  2004-12-02  3:21 ` [Bug ada/18773] [4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-02  3:02 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org


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


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

* [Bug ada/18773] [4.0 Regression] GCC terminates on warnings compiling ada/raise.c
  2004-12-02  2:41 [Bug ada/18773] New: GCC terminates on warnings compiling ada/raise.c awreynolds at mac dot com
  2004-12-02  2:47 ` [Bug ada/18773] " pinskia at gcc dot gnu dot org
  2004-12-02  3:02 ` pinskia at gcc dot gnu dot org
@ 2004-12-02  3:21 ` pinskia at gcc dot gnu dot org
  2004-12-02  3:25 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-02  3:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-02 03:20 -------
But I do now, this is just wrong.
In fact it was caused by:
2004-12-01  Mark Mitchell  <mark@codesourcery.com>

        * Makefile.in (WERROR): New variable.
        (STRICT2_WARN): Use it.
        (STAGE2_FLAGS_TO_PASS): Likewise.
        * config/i386/x-mingw32 (WERROR): Add -Wno-format.

Ada's Make-lang.in uses WERROR which seems wrong.
I might submit patch to fix the problem.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
  GCC build triplet|powerpc-apple-darwin7.6.0   |
   GCC host triplet|powerpc-apple-darwin7.6.0   |
           Keywords|                            |build
   Last reconfirmed|0000-00-00 00:00:00         |2004-12-02 03:20:57
               date|                            |
            Summary|GCC terminates on warnings  |[4.0 Regression] GCC
                   |compiling ada/raise.c       |terminates on warnings
                   |                            |compiling ada/raise.c
   Target Milestone|---                         |4.0.0


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


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

* [Bug ada/18773] [4.0 Regression] GCC terminates on warnings compiling ada/raise.c
  2004-12-02  2:41 [Bug ada/18773] New: GCC terminates on warnings compiling ada/raise.c awreynolds at mac dot com
                   ` (2 preceding siblings ...)
  2004-12-02  3:21 ` [Bug ada/18773] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-12-02  3:25 ` pinskia at gcc dot gnu dot org
  2004-12-02  3:41 ` pinskia at gcc dot gnu dot org
  2004-12-02 13:10 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-02  3:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-02 03:25 -------
This patch should fix it (I am testing it right now):
Index: ada/Make-lang.in
===============================================================
====
RCS file: /cvs/gcc/gcc/gcc/ada/Make-lang.in,v
retrieving revision 1.96
diff -u -p -r1.96 Make-lang.in
--- ada/Make-lang.in    27 Nov 2004 01:53:46 -0000      1.96
+++ ada/Make-lang.in    2 Dec 2004 03:25:18 -0000
@@ -70,7 +70,7 @@ ADA_FLAGS_TO_PASS = \
 
 # FIXME: need to add $(ALL_ADA_CFLAGS) to .c.o suffix rule
 # Use loose warnings for this front end, but add some special flags
-ada-warn = $(ALL_ADA_CFLAGS) $(WERROR)
+ada-warn = $(ALL_ADA_CFLAGS)
 # unresolved warnings in a couple of files
 ada/tracebak.o-warn = -Wno-error
 ada/b_gnat1.o-warn = -Wno-error

-- 


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


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

* [Bug ada/18773] [4.0 Regression] GCC terminates on warnings compiling ada/raise.c
  2004-12-02  2:41 [Bug ada/18773] New: GCC terminates on warnings compiling ada/raise.c awreynolds at mac dot com
                   ` (3 preceding siblings ...)
  2004-12-02  3:25 ` pinskia at gcc dot gnu dot org
@ 2004-12-02  3:41 ` pinskia at gcc dot gnu dot org
  2004-12-02 13:10 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-02  3:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-02 03:41 -------
Yes the patch works for me, getting passed stage1.

-- 


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


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

* [Bug ada/18773] [4.0 Regression] GCC terminates on warnings compiling ada/raise.c
  2004-12-02  2:41 [Bug ada/18773] New: GCC terminates on warnings compiling ada/raise.c awreynolds at mac dot com
                   ` (4 preceding siblings ...)
  2004-12-02  3:41 ` pinskia at gcc dot gnu dot org
@ 2004-12-02 13:10 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-02 13:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-02 13:09 -------
Fixed by:
2004-12-02  Andreas Schwab  <schwab@suse.de>

        * Makefile.in (WERROR_FLAGS): Renamed from WERROR.
        (STRICT2_WARN): Use $(WERROR_FLAGS) instead of $(WERROR).
        (STAGE2_FLAGS_TO_PASS): Likewise.

        * config/i386/x-mingw32: Set WERROR_FLAGS instead of WERROR.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2004-12-02 13:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-02  2:41 [Bug ada/18773] New: GCC terminates on warnings compiling ada/raise.c awreynolds at mac dot com
2004-12-02  2:47 ` [Bug ada/18773] " pinskia at gcc dot gnu dot org
2004-12-02  3:02 ` pinskia at gcc dot gnu dot org
2004-12-02  3:21 ` [Bug ada/18773] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-12-02  3:25 ` pinskia at gcc dot gnu dot org
2004-12-02  3:41 ` pinskia at gcc dot gnu dot org
2004-12-02 13:10 ` pinskia 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).