]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2013-03-25 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Mar 2013 09:39:52 +0000 (09:39 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Mar 2013 09:39:52 +0000 (09:39 +0000)
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

gcc/ChangeLog
gcc/calls.c

index 08458cec445ff66b35fd4bfc7a2abb04f8ff950b..31a026a2d1a4a9c308775b3b33441e600d3aaf38 100644 (file)
@@ -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.
index a585390be5f58a144b5cdbf42542268fd7f8b7b9..cdab8e04617cf7246ccba5e0c8f66296d6182c6b 100644 (file)
@@ -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);