diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/calls.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 08458ce..31a026a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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. + 2013-03-24 Uros Bizjak <ubizjak@gmail.com> * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives. diff --git a/gcc/calls.c b/gcc/calls.c index a585390..cdab8e0 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); |