<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-1166</id>
	<title>Nabble - gcc - prs</title>
	<updated>2005-09-11T10:02:52Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/gcc---prs-f1166.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/gcc---prs-f1166.html" />
	<subtitle type="html">Tracks GCC problem reports.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-834165</id>
	<title>Re: c++/8431: compile short program to get internal compilation error</title>
	<published>2005-09-11T10:02:52Z</published>
	<updated>2005-09-11T10:02:52Z</updated>
	<author>
		<name>William J. Evans</name>
	</author>
	<content type="html">You wrote:
&lt;br&gt;:Synopsis: compile short program to get internal compilation error
&lt;br&gt;:
&lt;br&gt;:State-Changed-From-To: open-&amp;gt;feedback
&lt;br&gt;:State-Changed-By: paolo
&lt;br&gt;:State-Changed-When: Sat Nov &amp;nbsp;2 17:23:38 2002
&lt;br&gt;:State-Changed-Why:
&lt;br&gt;: &amp;nbsp; &amp;nbsp;Unfortunately the files didn't reach us. Could you possibly
&lt;br&gt;: &amp;nbsp; &amp;nbsp;send them again?
&lt;br&gt;: &amp;nbsp; &amp;nbsp;Thanks, Paolo.
&lt;br&gt;:
&lt;br&gt;:&lt;a href=&quot;http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&amp;database=gcc&amp;pr=8431&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&amp;database=gcc&amp;pr=8431&lt;/a&gt;&lt;br&gt;&lt;br&gt;I'm not sure your mechanism is lynx-friendly, so I'll include them
&lt;br&gt;here as plain text. &amp;nbsp;Sorry for the inconvenience.
&lt;br&gt;&lt;br&gt;I get an internal compilation error when using
&lt;br&gt;gcc version 2.95.3 20010315 (release)
&lt;br&gt;to compile this code, whether or not I use -Wall or -save-temps. &amp;nbsp;I use no
&lt;br&gt;other switches, no includes, just a straight compile.
&lt;br&gt;&lt;br&gt;=== code begins immediately after this line
&lt;br&gt;#define X(a) if(a);
&lt;br&gt;&lt;br&gt;int main(void) { long long little_doggie;
&lt;br&gt;&lt;br&gt;/*
&lt;br&gt;&amp;nbsp;* It makes no difference whether the offending expressions are surrounded by
&lt;br&gt;&amp;nbsp;* () or (()). &amp;nbsp;I used (()) because of your suggestion to check the
&lt;br&gt;&amp;nbsp;* compilation against -Wall.
&lt;br&gt;&amp;nbsp;*/
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;X((little_doggie=0x01030507090B0D0FLL)) /* internal error */
&lt;br&gt;/* X((little_doggie=0x01030507090B0D0FL)) &amp;nbsp; &amp;nbsp; internal error */
&lt;br&gt;/* X((little_doggie=0x01030507090B0D0F)) &amp;nbsp; &amp;nbsp; &amp;nbsp;internal error */
&lt;br&gt;/* X((little_doggie=0x0103050709)) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;internal error */
&lt;br&gt;/* X((little_doggie=0x01030507)) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;compiles ok &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&lt;br&gt;return 0; }
&lt;br&gt;&lt;br&gt;=== code ends immediately before this line
&lt;br&gt;&lt;br&gt;The output I get is this:
&lt;br&gt;&lt;br&gt;/tmp/e1.cxx: In function `int main()':
&lt;br&gt;/tmp/e1.cxx:11: Internal compiler error in `do_jump', at expr.c:10976
&lt;br&gt;Please submit a full bug report.
&lt;br&gt;See &amp;lt;URL:&lt;a href=&quot;http://www.gnu.org/software/gcc/bugs.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gnu.org/software/gcc/bugs.html&lt;/a&gt;&amp;gt; for instructions.
&lt;br&gt;&lt;br&gt;The output from the -v switch is this:
&lt;br&gt;&lt;br&gt;Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/specs
&lt;br&gt;gcc version 2.95.3 20010315 (release)
&lt;br&gt;&lt;br&gt;/usr/lib/gcc-lib/i386-slackware-linux/2.95.3/specs contains this:
&lt;br&gt;&lt;br&gt;===content begins immediately after this line
&lt;br&gt;*asm:
&lt;br&gt;%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}
&lt;br&gt;&lt;br&gt;*asm_final:
&lt;br&gt;%|
&lt;br&gt;&lt;br&gt;*cpp:
&lt;br&gt;%(cpp_cpu) %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}
&lt;br&gt;&lt;br&gt;*cc1:
&lt;br&gt;%(cc1_cpu) %{profile:-p}
&lt;br&gt;&lt;br&gt;*cc1plus:
&lt;br&gt;&lt;br&gt;&lt;br&gt;*endfile:
&lt;br&gt;%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s
&lt;br&gt;&lt;br&gt;*link:
&lt;br&gt;-m elf_i386 %{shared:-shared} &amp;nbsp; %{!shared: &amp;nbsp; &amp;nbsp; %{!ibcs: &amp;nbsp; &amp;nbsp; &amp;nbsp; %{!static: 	%{rdynamic:-export-dynamic} 	%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} 	%{static:-static}}}
&lt;br&gt;&lt;br&gt;*lib:
&lt;br&gt;%{shared: -lc} &amp;nbsp; &amp;nbsp;%{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} 	%{profile:-lc_p} %{!profile: -lc}}
&lt;br&gt;&lt;br&gt;*libgcc:
&lt;br&gt;-lgcc
&lt;br&gt;&lt;br&gt;*startfile:
&lt;br&gt;%{!shared: &amp;nbsp; &amp;nbsp; &amp;nbsp;%{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} 		 &amp;nbsp; &amp;nbsp; &amp;nbsp; %{!p:%{profile:gcrt1.o%s} 			 %{!profile:crt1.o%s}}}} &amp;nbsp; &amp;nbsp;crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}
&lt;br&gt;&lt;br&gt;*switches_need_spaces:
&lt;br&gt;&lt;br&gt;&lt;br&gt;*signed_char:
&lt;br&gt;%{funsigned-char:-D__CHAR_UNSIGNED__}
&lt;br&gt;&lt;br&gt;*predefines:
&lt;br&gt;-D__ELF__ -Dunix -D__i386__ -Dlinux -Asystem(posix)
&lt;br&gt;&lt;br&gt;*cross_compile:
&lt;br&gt;0
&lt;br&gt;&lt;br&gt;*version:
&lt;br&gt;2.95.3
&lt;br&gt;&lt;br&gt;*multilib:
&lt;br&gt;. ;
&lt;br&gt;&lt;br&gt;*multilib_defaults:
&lt;br&gt;&lt;br&gt;&lt;br&gt;*multilib_extra:
&lt;br&gt;&lt;br&gt;&lt;br&gt;*multilib_matches:
&lt;br&gt;&lt;br&gt;&lt;br&gt;*linker:
&lt;br&gt;collect2
&lt;br&gt;&lt;br&gt;*cpp_486:
&lt;br&gt;%{!ansi:-Di486} -D__i486 -D__i486__
&lt;br&gt;&lt;br&gt;*cpp_586:
&lt;br&gt;%{!ansi:-Di586 -Dpentium} 	-D__i586 -D__i586__ -D__pentium -D__pentium__
&lt;br&gt;&lt;br&gt;*cpp_k6:
&lt;br&gt;%{!ansi:-Di586 -Dk6} 	-D__i586 -D__i586__ -D__k6 -D__k6__
&lt;br&gt;&lt;br&gt;*cpp_686:
&lt;br&gt;%{!ansi:-Di686 -Dpentiumpro} 	-D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__
&lt;br&gt;&lt;br&gt;*cpp_cpu_default:
&lt;br&gt;&lt;br&gt;&lt;br&gt;*cpp_cpu:
&lt;br&gt;-Acpu(i386) -Amachine(i386) %{!ansi:-Di386} -D__i386 -D__i386__ %{mcpu=i486:%(cpp_486)} %{m486:%(cpp_486)} %{mpentium:%(cpp_586)} %{mcpu=pentium:%(cpp_586)} %{mpentiumpro:%(cpp_686)} %{mcpu=pentiumpro:%(cpp_686)} %{mcpu=k6:%(cpp_k6)} %{!mcpu*:%{!m486:%{!mpentium*:%(cpp_cpu_default)}}}
&lt;br&gt;&lt;br&gt;*cc1_cpu:
&lt;br&gt;%{!mcpu*: %{m386:-mcpu=i386 -march=i386} %{m486:-mcpu=i486 -march=i486} %{mpentium:-mcpu=pentium} %{mpentiumpro:-mcpu=pentiumpro}}
&lt;br&gt;&lt;br&gt;*link_command:
&lt;br&gt;%{!fsyntax-only: &amp;nbsp;%{!c:%{!M:%{!MM:%{!E:%{!S:%(linker) %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} 			%{r} %{s} %{t} %{u*} %{x} %{z} %{Z}			%{!A:%{!nostdlib:%{!nostartfiles:%S}}}			%{static:} %{L*} %D %o			%{!nostdlib:%{!nodefaultlibs:%G %L %G}}			%{!A:%{!nostdlib:%{!nostartfiles:%E}}}			%{T*}			
&lt;br&gt;&amp;nbsp;}}}}}}
&lt;br&gt;&lt;br&gt;===content ends immediately before this line
&lt;br&gt;&lt;br&gt;Hope this helps!
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-c%2B%2B-8431%3A-compile-short-program-to-get-internal-compilation-error-tp834165p834165.html" />
</entry>

</feed>
