summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-01 21:15:05 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-01 21:15:05 +0000
commit9373e454c9bb4d59ca31c3e78210c4e4807628c2 (patch)
tree1eb28b4e6d194de504429333a764b2f314398396
parentb77755eeb62b74a152c4d404a55c0bd915baf076 (diff)
downloadgcc-9373e454c9bb4d59ca31c3e78210c4e4807628c2.tar.gz
* tree-object-size.c (pass_through_call): Handle
BUILT_IN_ASSUME_ALIGNED. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175768 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-object-size.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 38c0854e351..90433ee59b1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2011-07-01 Jakub Jelinek <jakub@redhat.com>
+
+ * tree-object-size.c (pass_through_call): Handle
+ BUILT_IN_ASSUME_ALIGNED.
+
2011-07-01 Martin Jambor <mjambor@suse.cz>
* tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
diff --git a/gcc/tree-object-size.c b/gcc/tree-object-size.c
index 674f72e9031..b85c9730f1d 100644
--- a/gcc/tree-object-size.c
+++ b/gcc/tree-object-size.c
@@ -1,5 +1,5 @@
/* __builtin_object_size (ptr, object_size_type) computation
- Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010
+ Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, Inc.
Contributed by Jakub Jelinek <jakub@redhat.com>
@@ -464,6 +464,7 @@ pass_through_call (const_gimple call)
case BUILT_IN_STRNCPY_CHK:
case BUILT_IN_STRCAT_CHK:
case BUILT_IN_STRNCAT_CHK:
+ case BUILT_IN_ASSUME_ALIGNED:
if (gimple_call_num_args (call) >= 1)
return gimple_call_arg (call, 0);
break;