This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bug?
- From: "Aaron W. LaFramboise" <aaronavay62 at aaronwl dot com>
- To: Sam Lauber <sam124 at operamail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 11 Dec 2004 21:24:49 -0600
- Subject: Re: Bug?
- References: <20041212005844.27850416118@ws5-2.us4.outblaze.com>
Sam Lauber wrote:
> I was compiling gnulib2 (which was part of gcc 1.42) with GCC 3.4.3. The CFLAGS were -g. There was nothing wrong with the code. However,
>
> + gcc -g -O3 tree.c -c
> - tree.c: In function `array_type_nelts':
> - tree.c:1015: internal compiler error: in
> - add_abstract_origin_attribute, at dwarf2out.c:10112
> - Please submit a full bug report,
> - with preprocessed source if appropriate.
> - See <URL:http://gcc.gnu.org/bugs.html> for instructions.
>
> However, when changing -g to -gstabs+, it worked perfectly fine. Does this warrant a bug? The preprocessed source is attached.
This may be related to debug/17406. Try the patches here:
<http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17406>.
Note that Dwarf-2 debugging does not work properly on 3.4 for Windows
targets, and probably never will on this branch. It would be helpful to
see if you could recreate it on a recent 4.0 snapshot.
> I compiled with my hand-built GCC 3.4.3 (compiled with make
profiledbootstrap). The code in dwarf2out.c:10112 was
Make sure to include all of the usual info in your bug report, such as
the configure options GCC was built with. Since it seems like you're
using the --with-dwarf2 option, you should know that it will only give
favorable results if you are using a very recent binutils snapshot. (I
don't think the ones on mingw.org are new enough.)
Keep in mind that pretty much anything with GCC on Windows outside of
the official MinGW and Cygwin releases is pretty bleeding edge; expect
to do a lot of bleeding.
Aaron W. LaFramboise