Bug 52667

Summary: sh_reorg segfault
Product: gcc Reporter: Chung-Lin Tang <chunglin.tang>
Component: targetAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED FIXED    
Severity: normal CC: tschwinge
Priority: P3    
Version: 4.8.0   
Target Milestone: ---   
Host: Target: sh-linux
Build: Known to work:
Known to fail: Last reconfirmed:
Attachments: glibc testcase

Description Chung-Lin Tang 2012-03-22 13:50:00 UTC
Attached testcase from glibc causes segfault ICE. Patch in testing, submitting issue for tracking.
Comment 1 Chung-Lin Tang 2012-03-22 13:51:44 UTC
Created attachment 26956 [details]
glibc testcase
Comment 2 Chung-Lin Tang 2012-03-27 13:05:06 UTC
Author: cltang
Date: Tue Mar 27 13:05:01 2012
New Revision: 185867

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185867
Log:
2012-03-27  Chung-Lin Tang  <cltang@codesourcery.com>

	PR target/52667
	* config/sh/sh.c (find_barrier): Add equality check of last_got
	to avoid going above orig insn. Update comments.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/sh/sh.c
Comment 3 Thomas Schwinge 2012-03-30 17:23:37 UTC
Has been committed.
Comment 4 Oleg Endo 2012-05-31 23:04:08 UTC
Author: olegendo
Date: Thu May 31 23:04:02 2012
New Revision: 188089

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188089
Log:
	Backport from mainline
	2012-03-27  Chung-Lin Tang  <cltang@codesourcery.com>

	PR target/52667
	* config/sh/sh.c (find_barrier): Add equality check of last_got to
	avoid going above orig insn.  Update comments.


Modified:
    branches/gcc-4_7-branch/gcc/ChangeLog
    branches/gcc-4_7-branch/gcc/config/sh/sh.c