public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Mainline bootstrap failure
@ 2002-08-31  8:52 Andreas Schwab
  2002-08-31 14:12 ` Richard Henderson
  0 siblings, 1 reply; 7+ messages in thread
From: Andreas Schwab @ 2002-08-31  8:52 UTC (permalink / raw)
  To: Richard Henderson; +Cc: gcc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3931 bytes --]

Your last change to expr.c broke bootstrap on ia64:

Starting program: /tmp/cvs/gcc-20020831/Build/gcc/stage1/cc1 -quiet -v -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include -iprefix stage1/../lib/gcc-lib/ia64-suse-linux/3.3/ -isystem include -isystem stage1/include -isystem /usr/local/ia64-suse-linux/bin/include -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 -D__gnu_linux__ -D__linux -D__linux__ -D_LONGLONG -Dlinux -Dunix -D__gnu_linux__ -D__linux -D__linux__ -D_LONGLONG -D__linux__ -D__unix__ -D__linux -D__unix -Asystem=linux -Acpu=ia64 -Amachine=ia64 -D__ia64 -D__ia64__ -D_LP64 -D__LP64__ -D__ELF__ -DIN_GCC -DHAVE_CONFIG_H ../../gcc/resource.c -quiet -dumpbase resource.c -auxbase-strip resource.o -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -version -fno-common
ignoring nonexistent directory "stage1/include"
ignoring nonexistent directory "/usr/local/ia64-suse-linux/bin/include"
GNU C version 3.3 20020831 (experimental) (ia64-suse-linux)
        compiled by GNU C version 3.1.1 20020715 (prerelease) (SuSE Linux).
ignoring nonexistent directory "lib/gcc-lib/ia64-suse-linux/3.3/include"
ignoring nonexistent directory "lib/gcc-lib/ia64-suse-linux/3.3/../../../../ia64-suse-linux/include"
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory "/usr/local/lib/gcc-lib/ia64-suse-linux/3.3/include"
ignoring nonexistent directory "/usr/local/ia64-suse-linux/include"
ignoring duplicate directory "."
ignoring duplicate directory "../../gcc"
#include "..." search starts here:
#include <...> search starts here:
 .
 ../../gcc
 ../../gcc/config
 ../../include
 include
 /usr/local/include
 /usr/include
End of search list.

Program received signal SIGSEGV, Segmentation fault.
block_move_libcall_safe_for_call_parm () at ../../gcc/expr.c:1781
1781                      = TYPE_MODE (TREE_TYPE (TREE_VALUE (arg)));
(gdb) l 
1776
1777                arg = TYPE_ARG_TYPES (TREE_TYPE (fn));
1778                for ( ; arg != void_list_node ; arg = TREE_CHAIN (arg))
1779                  {
1780                    enum machine_mode mode
1781                      = TYPE_MODE (TREE_TYPE (TREE_VALUE (arg)));
1782                    rtx tmp = FUNCTION_ARG (args_so_far, mode, NULL_TREE, 1);
1783                    if (!tmp || !REG_P (tmp))
1784                      goto fail_takes_regs;
1785    #ifdef FUNCTION_ARG_PARTIAL_NREGS
(gdb) p arg
$1 = (union tree_node *) 0x2000000000586250
(gdb) pt
 <tree_list 0x2000000000586250
    value <integer_type 0x20000000002dabc0 long unsigned int unsigned sizetype DI
        size <integer_cst 0x20000000002d06c0 constant 64>
        unit size <integer_cst 0x20000000002d0810 constant 8>
        align 64 symtab 1861024 alias set -1 precision 64 min <integer_cst 0x20000000002d08a0 0> max <integer_cst 0x20000000002d08d0 18446744073709551615>>
    chain <tree_list 0x20000000002d3630
        value <void_type 0x20000000002db100 void asm_written VOID
            align 8 symtab 0 alias set -1
            pointer_to_this <pointer_type 0x20000000002db1e0>>>>
(gdb) p $.list.value
$2 = (union tree_node *) 0x20000000002dabc0
(gdb) pt
 <integer_type 0x20000000002dabc0 long unsigned int unsigned sizetype DI
    size <integer_cst 0x20000000002d06c0 type <integer_type 0x20000000002daca0 bit_size_type> constant 64>
    unit size <integer_cst 0x20000000002d0810 type <integer_type 0x20000000002dabc0 long unsigned int> constant 8>
    align 64 symtab 1861024 alias set -1 precision 64 min <integer_cst 0x20000000002d08a0 0> max <integer_cst 0x20000000002d08d0 18446744073709551615>>
(gdb) p $.common.type
$3 = (union tree_node *) 0x0

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

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

* Re: Mainline bootstrap failure
  2002-08-31  8:52 Mainline bootstrap failure Andreas Schwab
@ 2002-08-31 14:12 ` Richard Henderson
  0 siblings, 0 replies; 7+ messages in thread
From: Richard Henderson @ 2002-08-31 14:12 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: gcc

On Sat, Aug 31, 2002 at 05:52:02PM +0200, Andreas Schwab wrote:
> (gdb) p $.common.type
> $3 = (union tree_node *) 0x0

Bother.  Looks like I committed the wrong patch.  Fixed.


r~


        * expr.c (block_move_libcall_safe_for_call_parm): Fix thinko.

Index: expr.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/expr.c,v
retrieving revision 1.479
diff -c -p -d -r1.479 expr.c
*** expr.c	29 Aug 2002 19:19:59 -0000	1.479
--- expr.c	31 Aug 2002 21:10:57 -0000
*************** block_move_libcall_safe_for_call_parm ()
*** 1777,1784 ****
  	    arg = TYPE_ARG_TYPES (TREE_TYPE (fn));
  	    for ( ; arg != void_list_node ; arg = TREE_CHAIN (arg))
  	      {
! 		enum machine_mode mode
! 		  = TYPE_MODE (TREE_TYPE (TREE_VALUE (arg)));
  		rtx tmp = FUNCTION_ARG (args_so_far, mode, NULL_TREE, 1);
  		if (!tmp || !REG_P (tmp))
  		  goto fail_takes_regs;
--- 1777,1783 ----
  	    arg = TYPE_ARG_TYPES (TREE_TYPE (fn));
  	    for ( ; arg != void_list_node ; arg = TREE_CHAIN (arg))
  	      {
! 		enum machine_mode mode = TYPE_MODE (TREE_VALUE (arg));
  		rtx tmp = FUNCTION_ARG (args_so_far, mode, NULL_TREE, 1);
  		if (!tmp || !REG_P (tmp))
  		  goto fail_takes_regs;

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

* Re: Mainline bootstrap failure
  2003-09-12 12:38 S. Bosscher
@ 2003-09-12 18:55 ` H. J. Lu
  0 siblings, 0 replies; 7+ messages in thread
From: H. J. Lu @ 2003-09-12 18:55 UTC (permalink / raw)
  To: S. Bosscher; +Cc: 'Andreas Schwab ', 'gcc@gcc.gnu.org '

On Fri, Sep 12, 2003 at 12:40:35PM +0200, S. Bosscher wrote:
> For me, it just fails to bootstrap with an error in tree-inline.c:
> 
>  gcc -c   -g  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -pedantic -Wno-long-long    -DHAVE_CONFIG_H    -I. -I.
> -I../../mainline/gcc -I../../mainline/gcc/. -I../../mainline/gcc/../include
> ../../mainline/gcc/tree-inline.c -o tree-inline.o
> ../../mainline/gcc/tree-inline.c: In function `inline_forbidden_p_1':
> ../../mainline/gcc/tree-inline.c:896: warning: dereferencing `void *'
> pointer
> ../../mainline/gcc/tree-inline.c:896: request for member `decl' in something
> not a structure or union
> make[2]: *** [tree-inline.o] Error 1
> make[2]: Leaving directory `/home/steven/devel/trunkbuild/gcc'
> make[1]: *** [stage1_build] Error 2
> make[1]: Leaving directory `/home/steven/devel/trunkbuild/gcc'
> make: *** [bootstrap] Error 2

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


H.J.

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

* RE: Mainline bootstrap failure
@ 2003-09-12 12:38 S. Bosscher
  2003-09-12 18:55 ` H. J. Lu
  0 siblings, 1 reply; 7+ messages in thread
From: S. Bosscher @ 2003-09-12 12:38 UTC (permalink / raw)
  To: 'Andreas Schwab ', 'gcc@gcc.gnu.org '

For me, it just fails to bootstrap with an error in tree-inline.c:

 gcc -c   -g  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long    -DHAVE_CONFIG_H    -I. -I.
-I../../mainline/gcc -I../../mainline/gcc/. -I../../mainline/gcc/../include
../../mainline/gcc/tree-inline.c -o tree-inline.o
../../mainline/gcc/tree-inline.c: In function `inline_forbidden_p_1':
../../mainline/gcc/tree-inline.c:896: warning: dereferencing `void *'
pointer
../../mainline/gcc/tree-inline.c:896: request for member `decl' in something
not a structure or union
make[2]: *** [tree-inline.o] Error 1
make[2]: Leaving directory `/home/steven/devel/trunkbuild/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/home/steven/devel/trunkbuild/gcc'
make: *** [bootstrap] Error 2
$ cat ../mainline/LAST_UPDATED 
vr sep 12 07:30:17 CEST 2003
vr sep 12 05:30:17 UTC 2003

Gr.
Steven




-----Original Message-----
From: Andreas Schwab
To: gcc@gcc.gnu.org
Sent: 9/12/03 12:23 PM
Subject: Mainline bootstrap failure

Mainline does not bootstrap on ia64:

./xgcc -B./ -B/usr/local/ia64-suse-linux/bin/ -isystem
/usr/local/ia64-suse-linux/include -isystem
/usr/local/ia64-suse-linux/sys-include
-L/tmp/cvs/gcc-20030912/Build/gcc/../ld -O2  -DIN_GCC    -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED  -c -o crtfastmath.o \
	../../gcc/config/ia64/crtfastmath.c
../../gcc/config/ia64/crtfastmath.c: In function `__ia64_set_fast_math':

../../gcc/config/ia64/crtfastmath.c:37: internal compiler error: virtual
array basic_block_info[2]: element 2 out of bounds in
create_basic_block_structure, at cfgrtl.c:312
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

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

* Mainline bootstrap failure
@ 2003-09-12 12:28 Andreas Schwab
  0 siblings, 0 replies; 7+ messages in thread
From: Andreas Schwab @ 2003-09-12 12:28 UTC (permalink / raw)
  To: gcc

Mainline does not bootstrap on ia64:

./xgcc -B./ -B/usr/local/ia64-suse-linux/bin/ -isystem /usr/local/ia64-suse-linux/include -isystem /usr/local/ia64-suse-linux/sys-include -L/tmp/cvs/gcc-20030912/Build/gcc/../ld -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -c -o crtfastmath.o \
	../../gcc/config/ia64/crtfastmath.c
../../gcc/config/ia64/crtfastmath.c: In function `__ia64_set_fast_math':

../../gcc/config/ia64/crtfastmath.c:37: internal compiler error: virtual array basic_block_info[2]: element 2 out of bounds in create_basic_block_structure, at cfgrtl.c:312
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

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

* Re: mainline bootstrap failure
  2003-01-23 19:59 mainline " Kai Henningsen
@ 2003-01-24  0:44 ` Kaveh R. Ghazi
  0 siblings, 0 replies; 7+ messages in thread
From: Kaveh R. Ghazi @ 2003-01-24  0:44 UTC (permalink / raw)
  To: kai; +Cc: gcc-patches, gcc

 > Configure arguments:
 > --prefix=/opt/gcc-head --enable-multilib --enable-checking
 > --enable-c-mbchar --enable-threads --enable-objc-gc --enable-nls
 > --enable-version-specific-runtime-libs --enable-languages=all
 > 
 > End of log:
 > [...]
 > stage1/xgcc -Bstage1/ -B/opt/gcc-head/i686-pc-linux-gnu/bin/ -c -g -O2
 >   -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
 >   -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
 >   --fno-common -Werror -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc
 >   --I../../gcc/gcc/. -I../../gcc/gcc/config -I../../gcc/gcc/../include
 >   -../../gcc/gcc/cpplex.c -o cpplex.o ../../gcc/gcc/cpplex.c: In
 >   -function `cpp_interpret_charconst': ../../gcc/gcc/cpplex.c:1940:
 >   -warning: pointer targets in passing arg 2 of `local_mbtowc' differ
 >   -in signedness
 > make[2]: *** [cpplex.o] Fehler 1
 > make[2]: Leaving directory `/Partition/gcc/gcc/build/build/gcc'
 > make[1]: *** [stage2_build] Fehler 2
 > make[1]: Leaving directory `/Partition/gcc/gcc/build/build/gcc'
 > make: *** [bootstrap] Fehler 2

Fixed with this patch.  Patch tested via three-stage compile on
sparc-sun-solaris2.7 with configure flags --enable-languages=c
--disable-checking --disable-nls --enable-multilib=no
--enable-c-mbchar.

Installed as obvious.


2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* cpplex.c (cpp_interpret_charconst): Squelch warning with cast.

diff -rup orig/egcc-CVS20030123/gcc/cpplex.c egcc-CVS20030123/gcc/cpplex.c
--- orig/egcc-CVS20030123/gcc/cpplex.c	2003-01-17 22:01:57.000000000 -0500
+++ egcc-CVS20030123/gcc/cpplex.c	2003-01-23 14:38:50.817748000 -0500
@@ -1937,7 +1937,7 @@ cpp_interpret_charconst (pfile, token, p
       wchar_t wc;
       int char_len;
 
-      char_len = local_mbtowc (&wc, str, limit - str);
+      char_len = local_mbtowc (&wc, (const char *)str, limit - str);
       if (char_len == -1)
 	{
 	  cpp_error (pfile, DL_WARNING,

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

* mainline bootstrap failure
@ 2003-01-23 19:59 Kai Henningsen
  2003-01-24  0:44 ` Kaveh R. Ghazi
  0 siblings, 1 reply; 7+ messages in thread
From: Kai Henningsen @ 2003-01-23 19:59 UTC (permalink / raw)
  To: gcc; +Cc: Kai Henningsen

Debian testing/unstable
Linux khms.westfalen.de 2.4.19+kai.58 #1 Sam Sep 7 14:16:44 CEST 2002 i686 AMD Athlon(tm) Processor AuthenticAMD GNU/Linux
glibc Version: 2.3.1-10

Configure arguments:
--prefix=/opt/gcc-head --enable-multilib --enable-checking --enable-c-mbchar --enable-threads --enable-objc-gc --enable-nls --enable-version-specific-runtime-libs --enable-languages=all

End of log:
[...]
stage1/xgcc -Bstage1/ -B/opt/gcc-head/i686-pc-linux-gnu/bin/ -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -fno-common -Werror   -DHAVE_CONFIG_H    -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/config -I../../gcc/gcc/../include ../../gcc/gcc/c-pch.c -o c-pch.o
stage1/xgcc -Bstage1/ -B/opt/gcc-head/i686-pc-linux-gnu/bin/ -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -fno-common -Werror   -DHAVE_CONFIG_H    -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/config -I../../gcc/gcc/../include ../../gcc/gcc/cpplib.c -o cpplib.o
stage1/xgcc -Bstage1/ -B/opt/gcc-head/i686-pc-linux-gnu/bin/ -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -fno-common -Werror   -DHAVE_CONFIG_H    -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/config -I../../gcc/gcc/../include ../../gcc/gcc/cpplex.c -o cpplex.o
../../gcc/gcc/cpplex.c: In function `cpp_interpret_charconst':
../../gcc/gcc/cpplex.c:1940: warning: pointer targets in passing arg 2 of `local_mbtowc' differ in signedness
make[2]: *** [cpplex.o] Fehler 1
make[2]: Leaving directory `/Partition/gcc/gcc/build/build/gcc'
make[1]: *** [stage2_build] Fehler 2
make[1]: Leaving directory `/Partition/gcc/gcc/build/build/gcc'
make: *** [bootstrap] Fehler 2

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

end of thread, other threads:[~2003-09-12 17:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-31  8:52 Mainline bootstrap failure Andreas Schwab
2002-08-31 14:12 ` Richard Henderson
2003-01-23 19:59 mainline " Kai Henningsen
2003-01-24  0:44 ` Kaveh R. Ghazi
2003-09-12 12:28 Mainline " Andreas Schwab
2003-09-12 12:38 S. Bosscher
2003-09-12 18:55 ` H. J. Lu

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