This is the mail archive of the gcc@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]

Re: 1.0.2/m68k/exception/longlong problem


On Sat, 6 Jun 1998, Jes Sorensen wrote:

> I have a problem with egcs 1.0.2 as found in the Red Hat 5.1
> distribution when trying to build it under Linux/m68k.
> 
> It is being build with bootstrap-lean and I have patched it to compile
> enquire.c with -O2 as it otherwise crashes with spilled register
> problems. This is also a problem with all versions of gcc that I know of
> so I do not think it is related.

I wouldn't be so sure... I have built egcs 1.0.2 on my Linux/m68k (with
your RH 5.0 installed) and it compiled just fine. All I did was override
CFLAGS in order not to compile with -g, if I remember correctly (just for
space reasons). It compiled enquire just fine, as well as libgcc2.a.

I'd advice that you download the official egcs 1.0.2 and try to build this
one. Perhaps some local RedHat patches screw things up?

> The output from the build that is just before the crash looks like this:
> 
> stage1/xgcc -Bstage1/  -DIN_GCC    -O2 -O2 -m68020-40 -fomit-frame-pointer  -DHAVE_CONFIG_H -DHAIFA  -o g77 g77.o g77spec.o version.o \
>   choose-temp.o pexecute.o  obstack.o   
> ./xgcc -B./  -DIN_GCC    -O2 -O2 -m68020-40 -fomit-frame-pointer -I./include     -DNO_MEM -O2 -I. -c ../../gcc/enquire.c
> case " c proto gcov  c++ f77 objc " in \
> *" "[cC]"++ "*) \
>   echo tinfo.o tinfo2.o new.o new1.o new2.o exception.o > cplib2.new;; \
> *) \
>   echo "" > cplib2.new;; \
> esac
> mv -f cplib2.new cplib2.txt 
> rm -f tmplibgcc2.a
> for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf _op_new _op_vnew _new_handler _op_delete _op_vdel _bb _shtab _clear_cache _trampoline __main _exit _ctors _eh  _pure; \
> do \
>   echo ${name}; \
>   ./xgcc -B./ -O2   -DIN_GCC    -O2 -O2 -m68020-40 -fomit-frame-pointer -I./include  -fPIC -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -fexceptions   -I. -I../../gcc -I../../gcc/config -c -DL${name} \
>       ../../gcc/libgcc2.c -o ${name}.o; \
>   if [ $? -eq 0 ] ; then true; else exit 1; fi; \
>   ar rc tmplibgcc2.a ${name}.o; \
>   rm -f ${name}.o; \
> done
> _muldi3
> xgcc: Internal compiler error: program cc1 got fatal signal 11

Oh, I see a difference when compared to my build now. You set CFLAGS to
"-O2 -m68020-40 -fomit-frame-pointer", right? Perhaps this triggers the
bug.

Also, enabling Haifa (I suppose that's where -DHAIFA comes from?) doesn't
make much sense on m68k, since it doesn't do instruction scheduling at
all.

/ Kamil Iskra    AmigaOS  Linux/i386  Linux/m68k               \
| GeekGadgets GCC maintainer   UNIX system administrator       |
| iskra@student.uci.agh.edu.pl  kiskra@ernie.icslab.agh.edu.pl |
\ kamil@dwd.interkom.pl   http://student.uci.agh.edu.pl/~iskra /



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