This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/5853: -ax option lets crash g++
- From: smitl at cs dot utwente dot nl
- To: gcc-gnats at gcc dot gnu dot org
- Date: Wed, 6 Mar 2002 20:11:39 +0100
- Subject: c++/5853: -ax option lets crash g++
- Reply-to: smitl at cs dot utwente dot nl
>Number: 5853
>Category: c++
>Synopsis: -ax option lets crash g++
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Wed Mar 06 11:16:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Lodewijk T. Smit
>Release: 3.0.3
>Organization:
University of Twente
>Environment:
System: Linux loki 2.4.9-21smp #1 SMP Thu Jan 17 14:01:48 EST 2002 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ./configure --prefix=/home/aid/smitl/linux
>Description:
The g++ compiler crashes when using the -ax option, e.g.:
g++ -ax filename.cpp
Output of compiler is:
try.cpp: In function `int main()':
try.cpp:3: Unrecognizable insn:
(call_insn 46 45 47 (call (mem:QI (symbol_ref ("__bb_trace_ret")) 0)
(const_int 0 [0x0])) -1 (nil)
(nil)
(nil))
try.cpp:3: Internal compiler error in extract_insn, at recog.c:2218
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
Edit a very simple cpp file, e.g. with only one line of code:
int main () {};
Compile the file with the following command:
g++ -ax filename.cpp
>Fix:
Work around : omit -ax option.
>Release-Note:
>Audit-Trail:
>Unformatted: