Bug 21051 - [4.1 Regression] sync tests ICE on ia64
Summary: [4.1 Regression] sync tests ICE on ia64
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.1.0
: P2 normal
Target Milestone: 4.1.0
Assignee: Richard Henderson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-15 20:39 UTC by Joseph S. Myers
Modified: 2005-04-16 23:20 UTC (History)
2 users (show)

See Also:
Host:
Target: ia64-*-*
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-04-16 23:16:40


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph S. Myers 2005-04-15 20:39:36 UTC
FAIL: gcc.dg/ia64-sync-1.c (test for excess errors)
FAIL: gcc.dg/ia64-sync-2.c (test for excess errors)
FAIL: gcc.dg/ia64-sync-3.c (test for excess errors)

appeared on ia64-hpux between 20050414 and 20050415; these tests formerly
passed.  The new test gcc.c-torture/compile/sync-1.c also fails at all levels. 
gcc-testresults indicates these failures also occur on ia64-linux.  All failures
are of the form:

/home/gcc/nightlies/gcc-mainline-2005-04-15/gcc/testsuite/gcc.dg/ia64-sync-1.c:
In function 'do_noret_si':
/home/gcc/nightlies/gcc-mainline-2005-04-15/gcc/testsuite/gcc.dg/ia64-sync-1.c:20:
internal compiler error: in simplify_subreg, at simplify-rtx.c:3736
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Comment 1 Andrew Pinski 2005-04-15 20:42:38 UTC
Most likely caused by:
2004-04-14  Richard Henderson  <rth@redhat.com>

        * config/ia64/ia64.h (enum fetchop_code): Remove.
        (enum ia64_builtins): Move ...
Comment 2 GCC Commits 2005-04-16 23:19:47 UTC
Subject: Bug 21051

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	rth@gcc.gnu.org	2005-04-16 23:19:35

Modified files:
	gcc            : ChangeLog builtins.c 
	gcc/config/ia64: sync.md 

Log message:
	PR target/21051
	* builtins.c (expand_builtin) <BUILT_IN_BOOL_COMPARE_AND_SWAP_*>:
	Use the mode of boolean_type_node when the user doesn't provide one.
	* config/ia64/sync.md (sync_lock_release<I48MODE>): Use operand 1.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.8325&r2=2.8326
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/builtins.c.diff?cvsroot=gcc&r1=1.454&r2=1.455
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/ia64/sync.md.diff?cvsroot=gcc&r1=1.1&r2=1.2

Comment 3 Richard Henderson 2005-04-16 23:20:32 UTC
Fixed.