diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-03-25 09:39:52 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-03-25 09:39:52 +0000 |
commit | 10836fcce806e5fcb060ef2fa7eb2ca29580fbd4 (patch) | |
tree | c2e52879ca585c315c69e3bbcdd963a5d9844af2 /gcc/calls.c | |
parent | c553170a28015272c442cbce1f52efec27a5d4af (diff) | |
download | gcc-10836fcce806e5fcb060ef2fa7eb2ca29580fbd4.tar.gz |
2013-03-25 Richard Biener <rguenther@suse.de>
PR middle-end/56434
* calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
the pointer returned by calls with ECF_MALLOC set.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197030 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/calls.c')
-rw-r--r-- | gcc/calls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/calls.c b/gcc/calls.c index a585390be5f..cdab8e04617 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -3188,7 +3188,7 @@ expand_call (tree exp, rtx target, int ignore) /* The return value from a malloc-like function is a pointer. */ if (TREE_CODE (rettype) == POINTER_TYPE) - mark_reg_pointer (temp, BIGGEST_ALIGNMENT); + mark_reg_pointer (temp, MALLOC_ABI_ALIGNMENT); emit_move_insn (temp, valreg); |