aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimplify.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2006-10-11 14:03:37 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2006-10-11 14:03:37 +0000
commitba38541ad25b14adf226bc6edf0bd0ee152daca7 (patch)
tree23259a5430b0300cd752b0edcf21ba04cc502e5e /gcc/gimplify.c
parent7de856fca175ec46a6cd399c30ffe50e24f52091 (diff)
downloadgcc-ba38541ad25b14adf226bc6edf0bd0ee152daca7.zip
gcc-ba38541ad25b14adf226bc6edf0bd0ee152daca7.tar.gz
gcc-ba38541ad25b14adf226bc6edf0bd0ee152daca7.tar.bz2
re PR inline-asm/29119 (Internal compiler error while adding __asm__ statement)
2006-10-11 Richard Guenther <rguenther@suse.de> PR inline-asm/29119 * gimplify.c (gimplify_asm_expr): Mark the gimplified lvalue addressable. * gcc.dg/torture/pr29119.c: New testcase. From-SVN: r117633
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r--gcc/gimplify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index 1a88c60..ab11a83 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -4036,9 +4036,9 @@ gimplify_asm_expr (tree *expr_p, tree *pre_p, tree *post_p)
/* If the operand is a memory input, it should be an lvalue. */
if (!allows_reg && allows_mem)
{
- lang_hooks.mark_addressable (TREE_VALUE (link));
tret = gimplify_expr (&TREE_VALUE (link), pre_p, post_p,
is_gimple_lvalue, fb_lvalue | fb_mayfail);
+ lang_hooks.mark_addressable (TREE_VALUE (link));
if (tret == GS_ERROR)
{
error ("memory input %d is not directly addressable", i);