This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

optimization/8492: GCC spins forever compiling loop


>Number:         8492
>Category:       optimization
>Synopsis:       GCC spins forever compiling loop
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 07 08:36:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jason R Thorpe
>Release:        3.3 20021106 (experimental)
>Organization:
Wasabi Systems, Inc.
>Environment:
System: NetBSD yeah-baby.shagadelic.org 1.6I NetBSD 1.6I (YEAH-BABY-XP) #11: Sun Sep 29 17:42:25 PDT 2002 thorpej@yeah-baby.shagadelic.org:/u1/netbsd/src/sys/arch/i386/compile/YEAH-BABY-XP i386


	
host: i386-unknown-netbsdelf
build: i386-unknown-netbsdelf
target: i386-unknown-netbsdelf
configured with: ../../gcc/configure --prefix=/usr/local/gnu --disable-shared --host=i386-unknown-netbsdelf --target=i386-unknown-netbsdelf
>Description:
	GCC spins forever when compiling the loop in the included
	test case.

	This test case was reduced from a routine in the NetBSD
	kernel's VM system (the assignment of the "locked" variable
	is the result of mutex routines expanding to noops when the
	kernel is build w/o support for multiprocessors).

>How-To-Repeat:
	Compile this file with -O2.

begin 644 bug.c
M:6YT(&-O=6YT.PH*:6YT"F9U;F,H:6YT("IV86QP*0I["B`@:6YT('9A;"P@
M;&]C:V5D(#T@,#L*"B`@=VAI;&4@*"AV86P@/2`J=F%L<"D@(3T@,"D*("`@
M('L*("`@("`@:68@*&-O=6YT*0H@("`@("`@('L*("`@("`@("`@(&EF("AC
M;W5N="D*("`@("`@("`@("`@;&]C:V5D(#T@,3L*("`@("`@("`@(&5L<V4*
M"2`@("!L;V-K960@/2`Q.PH*"2`@:68@*"%L;V-K960I"@D@("`@8V]N=&EN
M=64["@E]"@H@("`@("!I9B`H(6-O=6YT*0H@("`@("`@(&-O=6YT+2T["@H@
C("`@("!B<F5A:SL*("`@('T*"B`@<F5T=7)N('9A;#L*?0IO
`
end

>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]