re PR middle-end/48269 (Incorrect fortify warning for a packed struct member)
authorRichard Guenther <rguenther@suse.de>
Thu, 24 Mar 2011 12:44:58 +0000 (12:44 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 24 Mar 2011 12:44:58 +0000 (12:44 +0000)
commit190b2187b62863306378ea0940a6ddd2eb3629d5
treefaced84a3cdaada552e2cec1d6c500866d64c6b6
parenta183b5c7af929e900fa073b48f72ee6436411748
re PR middle-end/48269 (Incorrect fortify warning for a packed struct member)

2011-03-24  Richard Guenther  <rguenther@suse.de>

PR middle-end/48269
* tree-object-size.c (addr_object_size): Do not double-account
for MEM_REF offsets.

* gcc.dg/builtin-object-size-10.c: New testcase.

From-SVN: r171388
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtin-object-size-10.c [new file with mode: 0644]
gcc/tree-object-size.c