Bug 52667 - sh_reorg segfault
Summary: sh_reorg segfault
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.8.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-22 13:50 UTC by Chung-Lin Tang
Modified: 2012-05-31 23:04 UTC (History)
1 user (show)

See Also:
Host:
Target: sh-linux
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
glibc testcase (70.29 KB, text/plain)
2012-03-22 13:51 UTC, Chung-Lin Tang
Details

Note You need to log in before you can comment on or make changes to this bug.
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