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 bootstrap on SPARC/Solaris with RTL checking


On Wed, 20 Jun 2007, Eric Botcazou wrote:

> > 2007-06-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
> >
> > 	* df-scan.c (df_get_call_refs): Be prepared for MEMs inside CLOBBERs.
>
> Self-approved and installed, after bootstrapping/regtesting with RTL checking
> on i586-suse-linux (C,C++,Ada) and x86_64-suse-linux (all languages), there
> is at least 1 developer (Kaveh) who uses SPARC/Solaris as his dev platform.
> Eric Botcazou

I tried --enable-checking=yes,rtl today on sparc-sun-solaris2.10, I got:

libtool: compile:  /tmp/kg/basel/build.rtl/./gcc/xgcc
-B/tmp/kg/basel/build.rtl/./gcc/ -B/usr/local/sparc-sun-solaris2.10/bin/
-B/usr/local/sparc-sun-solaris2.10/lib/ -isystem
/usr/local/sparc-sun-solaris2.10/include -isystem
/usr/local/sparc-sun-solaris2.10/sys-include -DHAVE_CONFIG_H -I.
-I../../../../../../egcc-SVN20070627/libjava/classpath/native/fdlibm
-I../../include -O2 -g -MT e_exp.lo -MD -MP -MF .deps/e_exp.Tpo -c
../../../../../../egcc-SVN20070627/libjava/classpath/native/fdlibm/e_exp.c
-fPIC -DPIC -o .libs/e_exp.o
../../../../../../egcc-SVN20070627/libjava/classpath/native/fdlibm/e_exp.c:
In function '__ieee754_exp':
../../../../../../egcc-SVN20070627/libjava/classpath/native/fdlibm/e_exp.c:164:
internal compiler error: RTL check: expected code 'reg', have 'subreg' in
rhs_regno, at rtl.h:956
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[5]: *** [e_exp.lo] Error 1


(gdb) bt
#0  0xff2af080 in exit () from /lib/libc.so.1
#1  0x00183e10 in diagnostic_action_after_output (context=0x9145cc,
diagnostic=0xffbff274)
    at ../../egcc-SVN20070627/gcc/diagnostic.c:248
#2  0x00184048 in diagnostic_report_diagnostic (context=0x9145cc,
diagnostic=0xffbff274)
    at ../../egcc-SVN20070627/gcc/diagnostic.c:423
#3  0x001841cc in internal_error (gmsgid=0x8a5e00 "RTL check: expected
code '%s', have '%s' in %s, at %s:%d")
    at ../../egcc-SVN20070627/gcc/diagnostic.c:602
#4  0x00398f44 in rtl_check_failed_code1 (r=0xff1794b0, code=<value
optimized out>,
    file=0x880038 "../../egcc-SVN20070627/gcc/rtl.h", line=956,
func=0x880148 "rhs_regno")
    at ../../egcc-SVN20070627/gcc/rtl.c:516
#5  0x00178768 in df_note_compute (all_blocks=<value optimized out>) at
rtl.h:956
#6  0x0016c4e8 in df_analyze_problem (dflow=0x96b1d0,
blocks_to_consider=0x9c4750, postorder=0x994b98, n_blocks=23)
    at ../../egcc-SVN20070627/gcc/df-core.c:1053
#7  0x0016c754 in df_analyze () at
../../egcc-SVN20070627/gcc/df-core.c:1151
#8  0x003b9190 in schedule_insns () at
../../egcc-SVN20070627/gcc/sched-rgn.c:2903
#9  0x003b9944 in rest_of_handle_sched2 () at
../../egcc-SVN20070627/gcc/sched-rgn.c:3154
#10 0x002ff6d8 in execute_one_pass (pass=0x90eba8) at
../../egcc-SVN20070627/gcc/passes.c:1125
#11 0x002ff91c in execute_pass_list (pass=0x90eba8) at
../../egcc-SVN20070627/gcc/passes.c:1178
#12 0x002ff940 in execute_pass_list (pass=0x90e3c4) at
../../egcc-SVN20070627/gcc/passes.c:1179
#13 0x002ff940 in execute_pass_list (pass=0x90e390) at
../../egcc-SVN20070627/gcc/passes.c:1179
#14 0x00451ff8 in tree_rest_of_compilation (fndecl=0xff1452c0) at
../../egcc-SVN20070627/gcc/tree-optimize.c:406
#15 0x005b310c in cgraph_expand_function (node=0xff149770) at
../../egcc-SVN20070627/gcc/cgraphunit.c:1073
#16 0x005b5cac in cgraph_optimize () at
../../egcc-SVN20070627/gcc/cgraphunit.c:1142
#17 0x00067590 in c_write_global_declarations () at
../../egcc-SVN20070627/gcc/c-decl.c:7911
#18 0x003f65d8 in toplev_main (argc=<value optimized out>, argv=<value
optimized out>)
    at ../../egcc-SVN20070627/gcc/toplev.c:1064
#19 0x000544e4 in _start ()


Run the .i file with:

cc1 -fpreprocessed e_exp.i -quiet -dumpbase e_exp.c -mcpu=v9
-auxbase-strip .libs/e_exp.o -g -O2 -version -fPIC -o e_exp.s


		Thanks,
		--Kaveh
--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu

Attachment: e_exp.i.gz
Description: e_exp.i.gz


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