From: rguenth Date: Mon, 25 Mar 2013 09:39:52 +0000 (+0000) Subject: 2013-03-25 Richard Biener X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=10836fcce806e5fcb060ef2fa7eb2ca29580fbd4;p=thirdparty%2Fgcc.git 2013-03-25 Richard Biener 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 08458cec445f..31a026a2d1a4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2013-03-25 Richard Biener + + 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 * config/i386/mmx.md (mov): Add ?!Ym,r and r,?!Ym alternatives. diff --git a/gcc/calls.c b/gcc/calls.c index a585390be5f5..cdab8e04617c 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);