This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix attribute handling


On Fri, 11 Oct 2002, Eric Christopher wrote:

> 2002-10-11  Eric Christopher  <echristo@redhat.com>
> 
> 	
> 	* output.h (default_valid_pointer_mode): Declare.
> 	* varasm.c (default_valid_pointer_mode): Define.
> 	* target-def.h (TARGET_VALID_POINTER_MODE): Use.
> 	* target.h: Ditto.
> 	* tree.c (build_pointer_type_for_mode): New function.
> 	(build_pointer_type): Use.
> 	(build_reference_type_for_mode): New function.
> 	(build_reference_type): Use.
> 	* tree.h: Declare new functions.
> 	* c-common.c (handle_mode_attribute): Use new functions, check
> 	for type.
> 	* stor-layout.c (layout_type): Depend on machine mode for
> 	REFERENCE_TYPE and POINTER_TYPE.
> 	* dwarf2out.c (simple_type_size_in_bits): Move upward in file.
> 	(modified_type_die): Use instead of PTR_SIZE for POINTER_TYPE
> 	and REFERENCE_TYPE.
> 	* config/mips/mips.c (mips_valid_pointer_mode): New function.
> 	(TARGET_VALID_POINTER_MODE): Use and define.
> 	* config/mips/mips-protos.h (mips_valid_pointer_mode): Declare.
> 
This patch causes a bootstrap failure for libjava on b-i-b.  I
still have no more details other than undoing it allows me to
build ObjectInputStream.o again.

-----------------------------------------------------------------------------
/notnfs/dnovillo/sbox/bib/bld/gcc/gcj -B/notnfs/dnovillo/sbox/bib/bld/i686-pc-linux-gnu/libjava/ -B/notnfs/dnovillo/sbox/bib/bld/gcc/ --encoding=UTF-8 -fclasspath= -fbootclasspath=/notnfs/dnovillo/sbox/bib/bld/i686-pc-linux-gnu/libjava -ffloat-store -g -O2 -MD -MT java/io/ObjectInputStream.lo -MF java/io/ObjectInputStream.d -c /home/dnovillo/perf/sbox/bib/local/src/libjava/java/io/ObjectInputStream.java -fPIC -o java/io/.libs/ObjectInputStream.o
/home/dnovillo/perf/sbox/bib/local/src/libjava/java/io/ObjectInputStream.java: In class `java.io.ObjectInputStream$1':
/home/dnovillo/perf/sbox/bib/local/src/libjava/java/io/ObjectInputStream.java: In method `java.io.ObjectInputStream$1.getObjectStreamClass()':
/home/dnovillo/perf/sbox/bib/local/src/libjava/java/io/ObjectInputStream.java:771: internal compiler error: in int_mode_for_mode, at stor-layout.c:292
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[3]: *** [java/io/ObjectInputStream.lo] Error 1
make[3]: Leaving directory `/notnfs/dnovillo/sbox/bib/bld/i686-pc-linux-gnu/libjava'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/notnfs/dnovillo/sbox/bib/bld/i686-pc-linux-gnu/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/notnfs/dnovillo/sbox/bib/bld'
make: *** [bootstrap] Error 2

$ gdb /notnfs/dnovillo/sbox/bib/bld/gcc/jc1
GNU gdb Red Hat Linux (5.2-2)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
(gdb) b fancy_abort
Breakpoint 1 at 0x80f8e46: file /home/dnovillo/perf/sbox/bib/local/src/gcc/diagnostic.c, line 1363.
(gdb) run /home/dnovillo/perf/sbox/bib/local/src/libjava/java/io/ObjectInputStream.java -fhash-synchronization -fno-use-divide-subroutine -fuse-boehm-gc -fnon-call-exceptions -fkeep-inline-functions -quiet -dumpbase ObjectInputStream.java -auxbase-strip java/io/.libs/ObjectInputStream.o -g -O2 -version -fencoding=UTF-8 -fclasspath= -fbootclasspath=/notnfs/dnovillo/sbox/bib/bld/i686-pc-linux-gnu/libjava -ffloat-store -fPIC -MD -MT java/io/ObjectInputStream.lo -MF java/io/ObjectInputStream.d -o ObjectInputStream.s
Starting program: /notnfs/dnovillo/sbox/bib/bld/gcc/jc1 /home/dnovillo/perf/sbox/bib/local/src/libjava/java/io/ObjectInputStream.java -fhash-synchronization -fno-use-divide-subroutine -fuse-boehm-gc -fnon-call-exceptions -fkeep-inline-functions -quiet -dumpbase ObjectInputStream.java -auxbase-strip java/io/.libs/ObjectInputStream.o -g -O2 -version -fencoding=UTF-8 -fclasspath= -fbootclasspath=/notnfs/dnovillo/sbox/bib/bld/i686-pc-linux-gnu/libjava -ffloat-store -fPIC -MD -MT java/io/ObjectInputStream.lo -MF java/io/ObjectInputStream.d -o ObjectInputStream.s
GNU Java version 3.4-bi 20020930 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 3.4-bi 20020930 (experimental).
Class path starts here:
    ./
    /notnfs/dnovillo/sbox/bib/bld/i686-pc-linux-gnu/libjava/ (system)

Breakpoint 1, fancy_abort (file=0x0, line=0, function=0x0)
    at /home/dnovillo/perf/sbox/bib/local/src/gcc/diagnostic.c:1363
1363      internal_error ("in %s, at %s:%d", function, trim_filename (file), line);
(gdb) up
#1  0x08297e15 in int_mode_for_mode ()
    at /home/dnovillo/perf/sbox/bib/local/src/gcc/stor-layout.c:292
292           abort ();
(gdb) up
#2  0x0811d940 in extract_bit_field (str_rtx=0x402f2534, bitsize=0, bitnum=96,
    unsignedp=1, target=0x0, mode=VOIDmode, tmode=VOIDmode, total_size=12)
    at /home/dnovillo/perf/sbox/bib/local/src/gcc/expmed.c:1229
1229      int_mode = int_mode_for_mode (tmode);
(gdb) up
#3  0x08131e6c in expand_expr (exp=0x4019a3c0, target=0x0, tmode=SImode,
    modifier=EXPAND_NORMAL)
    at /home/dnovillo/perf/sbox/bib/local/src/gcc/expr.c:7385
7385                op0 = extract_bit_field (op0, bitsize, bitpos,
(gdb) down
#2  0x0811d940 in extract_bit_field (str_rtx=0x402f2534, bitsize=0, bitnum=96,
    unsignedp=1, target=0x0, mode=VOIDmode, tmode=VOIDmode, total_size=12)
    at /home/dnovillo/perf/sbox/bib/local/src/gcc/expmed.c:1229
1229      int_mode = int_mode_for_mode (tmode);
(gdb) pr str_rtx
(mem/s:BLK (reg/v/f:SI 59) [46 S12 A32])
-----------------------------------------------------------------------------


Diego.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]