diff options
author | Richard Henderson <rth@redhat.com> | 2005-04-16 16:19:35 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2005-04-16 16:19:35 -0700 |
commit | 5b5513d00e50d605b486a2b5b986f4170ae285f1 (patch) | |
tree | b80f5434c2ea87f68dfe101bb2a04913e75cab2b /gcc/builtins.c | |
parent | 92750a3929a3974cd0d4baa6c2da3258a2d43b2b (diff) | |
download | gcc-5b5513d00e50d605b486a2b5b986f4170ae285f1.zip gcc-5b5513d00e50d605b486a2b5b986f4170ae285f1.tar.gz gcc-5b5513d00e50d605b486a2b5b986f4170ae285f1.tar.bz2 |
re PR target/21051 (sync tests ICE on ia64)
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.
From-SVN: r98239
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index 78a577f..f39a073 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -6178,6 +6178,8 @@ expand_builtin (tree exp, rtx target, rtx subtarget, enum machine_mode mode, case BUILT_IN_BOOL_COMPARE_AND_SWAP_2: case BUILT_IN_BOOL_COMPARE_AND_SWAP_4: case BUILT_IN_BOOL_COMPARE_AND_SWAP_8: + if (mode == VOIDmode) + mode = TYPE_MODE (boolean_type_node); if (!target || !register_operand (target, mode)) target = gen_reg_rtx (mode); target = expand_builtin_compare_and_swap (arglist, true, target); |