PR pch/53880
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Jul 2012 09:20:56 +0000 (09:20 +0000)
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Jul 2012 09:20:56 +0000 (09:20 +0000)
commit2391ba8ed3366cf2d1ec1d92cb5dcad48f2fa2e0
tree7b64afcca3aba595d2bf430c39ed491bbd9f189b
parent3a44f5e6ca1c27d08b737a5cce1daade3e645c9e
PR pch/53880
* gengtype.c (struct walk_type_data): Add have_this_obj field.
(walk_type): For functions that take a this_obj argument and
that process fields with a GTY((length)) argument, write the
test that write_types_local_process_field will write also at the
head of the loop, effectively unswitching the loop.
(write_func_for_structure, write_local_func_for_structure): Clear
have_this_obj before calling walk_type.
(write_local_func_for_structure): Set have_this_obj before walk_type.
(write_array): Set have_this_obj for output of local pointer walking
functions but not for marker functions.
(write_types_local_process_field): Assert have_this_obj is set.

* rtl.h (simplify_using_condition): Adjust prototype using bitmap
from coretypes.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189999 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gengtype.c
gcc/rtl.h