public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: thorpej@shagadelic.org
To: gcc-gnats@gcc.gnu.org
Subject: optimization/5257: GCC goes into infinite loop on i386 -> mips cross compiler
Date: Wed, 02 Jan 2002 11:46:00 -0000	[thread overview]
Message-ID: <20020102194114.5625F9869@dr-evil.shagadelic.org> (raw)


>Number:         5257
>Category:       optimization
>Synopsis:       GCC goes into infinite loop on i386 -> mips cross compiler
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 02 11:46:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jason R. Thorpe
>Release:        3.1 20020101 (experimental)
>Organization:
Wasabi Systems, Inc.
>Environment:
System: NetBSD dr-evil 1.5Z NetBSD 1.5Z (DR-EVIL) #252: Sun Dec 9 17:39:53 PST 2001 thorpej@dr-evil:/u1/netbsd/src/sys/arch/i386/compile/DR-EVIL i386


	
host: i386-unknown-netbsdelf
build: i386-unknown-netbsdelf
target: mipsel-unknown-netbsd
configured with: ../../gcc/configure --disable-shared --prefix=/usr/local/gnu --host=i386-unknown-netbsdelf --target=mipsel-unknown-netbsd : (reconfigured) 
>Description:
	An i386 -> mips cross compiler goes into an apparent infinite
	loop when compiling a common SHA-1 implementation with -O2.
	
	If the file is compiled with -O1, the compiler still fails, but
	the bevaior is different: the compiler still loops, but apparently
	allocating data structures (until the kernel kills the process).

	The compiler is invoked as:

	    mipsel-unknown-netbsd-gcc -O2 -c bug.i 

>How-To-Repeat:
	The following is a trimmed down, pre-processed version of
	the file that triggers the problem.

begin 644 bug.i.gz
M'XL(",LJ,SP"`V)U9RYI`,W;ZVO;5A@&\._Y*T0+1EK2X7.W25-(TV;],#;8
M]JTLH%LZT\0IN6PM=?_W25$B6]%S7B%X(ZE06&7[L<_#.._Y^?(R$,&+Y.[3
MS^F+O9?E?[].[E87MZ]6ZS>/%]*KR\MXG047JW7^>''["%/_X_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(>&YM#`')H4#5?ZA,:,@9HQT!L&>L,`;QA2,USI$QHS
M!FK&0&\8Z`T#O&%(S7"E#SAFMK_%\(\:`T5CH#D,-(<!YC"D:+C2)R0:`T5C
MH#D,-(<!YC"D:+C2)S1F#-2,@=XPT!L&>,.0FN%*G]*8@9HQT!L&>L,`;QA2
M,USI`XZ9[>],B%$#16.@.0PTAP'F,*1HN-(G)!H#16.@.0PTAP'F,*1HN-*G
M-&:@9@STAH'>,,`;AM0,5_J4Q@S4C('>,-`;!GC#D)KA2A]PS/A_=V*A8RR4
MAH72L$`:EG0,5SHH\.38RA/QS@[S;3`+]6*A+RSTA06^L*1>N-([RGO^#_4M
M](J%HK!0%!:(PI)>X4KO*._Y/]2W4"D6.L)"1UC@"$LJA2N]H[QA?G=BH4\L
M%(2%@K!`$);T"5=Z1X'/_VTP"U5BH1LL=(,%;K"D2KC2QQ\:T"$62L%"*5@@
M!4LZA"M]_*$!]6&A#RST@04^L*0^N-(''!K^WYU8Z`X+96"A#"R0@27=P94^
MX.#P#`VH#0L]8*$'+/"`);7!E3[ZT'!0&@Y:P$$+.&`!1TJ#*WWTH>&@-!RT
M@(,6<,`"CI0&5_J`0\/_NQ,'M>&@!QST@`,><*0VN-)'UX:#VG#0`PYZP`$/
M.%(;7.FC#PT'I>&@!1RT@`,6<*0TN-+''QI0&@Y:P$$+.&`!1TJ#*WW`H>'_
MW8F#VG#0`PYZP`$/.%(;7.FC:\-!;3CH`0<]X(`''*D-KO3QAP:4AH,6<-`"
I#EC`D=+@2A]_:$!I.&@!!RW@@`4<*0VN]`&'QMZ/O?\!!1/9#DIC```6
`
end

>Fix:
	The file can be compiled without optimization (-O0).
>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2002-01-02 19:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-02 11:46 thorpej [this message]
2002-04-03  1:56 rth
2002-04-08 19:06 Jason R Thorpe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020102194114.5625F9869@dr-evil.shagadelic.org \
    --to=thorpej@shagadelic.org \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).