home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.gcc.bug
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!brendan
- From: brendan@cygnus.com (Brendan Kehoe)
- Subject: [jbg@qualcomm.com: Core dump now internal error]
- Message-ID: <9301060312.AA27401@cygnus.com>
- Sender: gnulists@ai.mit.edu
- Reply-To: brendan@cygnus.com (Brendan Kehoe)
- Organization: GNUs Not Usenet
- Distribution: gnu
- Date: Wed, 6 Jan 1993 03:12:46 GMT
- Approved: bug-gcc@prep.ai.mit.edu
- Lines: 73
-
- I think this is a back-end problem. `-O -g -funroll-loops' is what
- triggers it.
-
- ------- Start of forwarded message -------
- From: Jeff Gehlhaar <jbg@qualcomm.com>
- Subject: Core dump now internal error
- To: bug-g++@prep.ai.mit.edu
- Date: Mon, 4 Jan 1993 09:19:11 -0700
- X-Sender: jbg@wizard.qualcomm.com
-
- // This program used to cause G++ to dump core. It now causes an internal
- // compiler error.
-
- // All of this, both code and options, seem to be necessary to tickle
- // the bug. Don't ask _me_ why; I don't see how they are related....
-
- // The result of ``g++ -v -c -O -g -funroll-loops bug006.cc'' is attached below.
-
- // -- Greg
-
- #include <iostream.h>
- #define SHOW(x) do { cout << x << endl; } while (0)
-
- class List
- {
- public:
- List(void) { list = 0; }
- class List *list;
- };
-
- class Class
- {
- public:
- Class(char *param);
- List queue;
- };
-
- Class::Class(char *param)
- {
- SHOW("Display some text");
- }
-
- /* Compiler output follows:
- Reading specs from /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/specs
- gcc version 2.3.3
- /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/cpp -lang-c++ -v -undef
- - -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__
- - -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix -D__OPTIMIZE__ -g bug006.cc
- /usr/tmp/cca29841.i
- GNU CPP version 2.3.3 (sparc)
- /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/cc1plus
- /usr/tmp/cca29841.i -quiet -dumpbase bug006.cc -g -O -version
- - -funroll-loops -o /usr/tmp/cca29841.s
- GNU C++ version 2.3.3 (sparc) compiled by CC.
- bug006.cc: In method `Class::Class (char *)':
- bug006.cc:31: Internal compiler error.
- bug006.cc:31: Please report this to `bug-g++@prep.ai.mit.edu'.
- Compiler output above */
-
-
- ======================================================
- Jeff Gehlhaar Qualcomm Inc,
- jbg@qualcomm.com San Diego, CA, USA
- (619) 597-5241 "The Elegant Solution...."
- ======================================================
-
-
- ------- End of forwarded message -------
-
- --
- Brendan Kehoe brendan@cygnus.com
- Cygnus Support, Mountain View, CA +1 415 903 1400
-
-