Commit d154bfa2 by Richard Biener Committed by Richard Biener

re PR rtl-optimization/56434 (document that __attribute__((__malloc__)) assumes…

re PR rtl-optimization/56434 (document that __attribute__((__malloc__)) assumes returned pointer has BIGGEST_ALIGNMENT)

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.

From-SVN: r197030
parent c42ee993
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.
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment