Article View: gnu.g++.lib.bug
Article #585(none)
From: Jay Chalmers
Date: Wed, 28 Feb 1990 03:39
Date: Wed, 28 Feb 1990 03:39
87 lines
4004 bytes
4004 bytes
I got the following on a Sun 4/490 running 4.0.3
g++ -I../g++-include -g -O -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall -v -c stream.cc
g++ version 1.36.4 (based on GCC 1.36.93)
/usr/local/lib/gcc-cpp -+ -v -I../g++-include -undef -D__GNUC__ -D__GNUG__ -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__OPTIMIZE__ -Wall stream.cc /usr/tmp/cca05672.cpp
GNU CPP version 1.37
/usr/local/lib/gcc-cc1plus /usr/tmp/cca05672.cpp -quiet -dumpbase stream.cc -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -g -O -Wall -version -o /usr/tmp/cca05672.s
GNU C++ version 1.36.4 (based on GCC 1.36.93) (sparc) compiled by GNU C version 1.37.
default target switches: -mfpu -mepilogue
g++: Program cc1plus got fatal signal 6.
*** Error code 1
make: Fatal error: Command failed for target `stream.o'
Script started on Tue Feb 27 18:52:35 1990
cmsun 1% gdb /usr/local/lib/gcc-cc1plus
GDB 3.5, Copyright (C) 1989 Free Software Foundation, Inc.
There is ABSOLUTELY NO WARRANTY for GDB; type "info warranty" for details.
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "info copying" to see the conditions.
Reading symbol data from /usr/local/lib/gcc-cc1plus...done.
Type "help" for a list of commands.
(gdb) dir /scr2/root/gnu/g++
Source directories searched: /scr2/jwc/gnu/libg++-1.36.3/src:/scr2/root/gnu/g++
(gdb) sou run-it
Program received signal 6, Abort
0xf0670 in kill ()
(gdb) where
#0 0xf0670 in kill ()
#1 0xdf144 in output_63 (...) (...)
#2 0xceb74 in final_scan_insn (...) (...)
#3 0xcdcd4 in final (...) (...)
#4 0x65418 in rest_of_compilation (...) (...)
#5 0x1f338 in finish_function (...) (...)
#6 0xa9b4 in yyparse (...) (...)
#7 0x63fa8 in compile_file (...) (...)
#8 0x660ec in main (...) (...)
(gdb) l
Reading in symbols for toplev.c...done.
1936 perror(name);
1937 }
1938 ^L
1939 /* Entry point of c++. Decode command args, then call compile_file.
1940 Exit code is 35 if can't open files, 34 if fatal error,
1941 33 if had nonfatal errors, else success. */
1942
1943 int
1944 main (argc, argv, envp)
1945 int argc;
(gdb) up
Reading in symbols for insn-output.c...done.
#1 0xdf144 in output_63 (operands=(rtx *) 0xfd4b8) (insn-output.c line 768)
768 abort ();
(gdb) l 750,775
750 cc_status.mdep = XEXP (operands[1], 0);
751 return "sethi %%hi(%m1),%%g1\n\tldub [%%g1+%%lo(%m1)],%0";
752 }
753 else
754 return "ldub %1,%0";
755 }
756 }
757
758 static char *
759 output_63 (operands, insn)
760 rtx *operands;
761 rtx insn;
762 {
763
764 {
765 if (REG_P (operands[1]))
766 return "sll %1,0x10,%0\n\tsra %0,0x10,%0";
767 if (GET_CODE (operands[1]) == CONST_INT)
768 abort ();
769 if (CONSTANT_ADDRESS_P (XEXP (operands[1], 0)))
770 {
771 cc_status.flags |= CC_KNOW_HI_G1;
772 cc_status.mdep = XEXP (operands[1], 0);
773 return "sethi %%hi(%m1),%%g1\n\tldsh [%%g1+%%lo(%m1)],%0";
774 }
775 else
(gdb) p *operands[1]
$1 = {code = CONST_INT, mode = VOIDmode, jump = 0, call = 0, unchanging = 0, volatil = 0, in_struct = 0, used = 0, integrated = 0, fld = {{rtint = 0, rtstr = 0x0, rtx = 0x0, rtvec = 0x0, rttype = VOIDmode}}}
(gdb) q
The program is running. Quit anyway? (y or n) y
script done on Tue Feb 27 18:56:35 1990
Technical Details
Message-ID:
<9002280339.AA06052@cmsun.ncsa.uiuc.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!NCSA.UIUC.EDU!jwcShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!NCSA.UIUC.EDU!jwc From: jwc@NCSA.UIUC.EDU (Jay Chalmers) Newsgroups: gnu.g++.lib.bug Subject: (none) Message-ID: <9002280339.AA06052@cmsun.ncsa.uiuc.edu> Date: 28 Feb 90 03:39:03 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 87