diff options
author | Jakub Jelinek <jakub@redhat.com> | 2015-03-26 14:19:59 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2015-03-26 14:19:59 +0100 |
commit | 672ff0b6fd7f43aa5415bff60ab212b893b9f474 (patch) | |
tree | 103331a842bf4bd31af5f4ef2d0b06f0304344e3 /libgo | |
parent | d00dce2749c652a0d63b646695249a9c5a820b94 (diff) | |
download | gcc-672ff0b6fd7f43aa5415bff60ab212b893b9f474.zip gcc-672ff0b6fd7f43aa5415bff60ab212b893b9f474.tar.gz gcc-672ff0b6fd7f43aa5415bff60ab212b893b9f474.tar.bz2 |
re PR tree-optimization/64715 (__builtin_object_size (..., 1) fails to locate subobject)
PR tree-optimization/64715
* passes.def: Add another instance of pass_object_sizes before
ccp1.
* tree-object-size.c (pass_object_sizes::execute): In
first_pass_instance, only handle __bos (, 1) and __bos (, 3)
calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
__bos result and the computed constant. Remove redundant
checks, obsoleted by gimple_call_builtin_p test.
* gcc.dg/builtin-object-size-15.c: New test.
* gcc.dg/pr64715-1.c: New test.
* gcc.dg/pr64715-2.c: New test.
From-SVN: r221694
Diffstat (limited to 'libgo')
0 files changed, 0 insertions, 0 deletions