diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2009-11-16 20:18:45 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2009-11-16 20:18:45 +0000 |
commit | efd0b0d36de2b536225b81804587915e3440c1c0 (patch) | |
tree | 1ad9ed53a0613667c963c6e451717e4e83b6b11d /gcc | |
parent | f8981d1c08b02802f3b20a656b6a8d1fc46a6f1a (diff) | |
download | gcc-efd0b0d36de2b536225b81804587915e3440c1c0.zip gcc-efd0b0d36de2b536225b81804587915e3440c1c0.tar.gz gcc-efd0b0d36de2b536225b81804587915e3440c1c0.tar.bz2 |
* stmt.c (expand_asm_stmt): Get locus from stmt.
From-SVN: r154214
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/stmt.c | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aba806e..8464a28 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2009-11-16 Alexandre Oliva <aoliva@redhat.com> + * stmt.c (expand_asm_stmt): Get locus from stmt. + +2009-11-16 Alexandre Oliva <aoliva@redhat.com> + * tree-cfg.c (gimple_redirect_edge_and_branch) <case GIMPLE_ASM>: Create the decl label for the new dest block on demand. Require a fallthrough edge if no asm labels were redirected. @@ -1099,6 +1099,7 @@ expand_asm_stmt (gimple stmt) size_t i, n; const char *s; tree str, out, in, cl, labels; + location_t locus = gimple_location (stmt); /* Meh... convert the gimple asm operands into real tree lists. Eventually we should make all routines work on the vectors instead @@ -1144,7 +1145,7 @@ expand_asm_stmt (gimple stmt) if (gimple_asm_input_p (stmt)) { - expand_asm_loc (str, gimple_asm_volatile_p (stmt), input_location); + expand_asm_loc (str, gimple_asm_volatile_p (stmt), locus); return; } @@ -1160,7 +1161,7 @@ expand_asm_stmt (gimple stmt) /* Generate the ASM_OPERANDS insn; store into the TREE_VALUEs of OUTPUTS some trees for where the values were actually stored. */ expand_asm_operands (str, outputs, in, cl, labels, - gimple_asm_volatile_p (stmt), input_location); + gimple_asm_volatile_p (stmt), locus); /* Copy all the intermediate outputs into the specified outputs. */ for (i = 0, tail = outputs; tail; tail = TREE_CHAIN (tail), i++) |