OSDN Git Service

make TS_BLOCK a substructure of TS_BASE
authorfroydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 May 2011 17:38:51 +0000 (17:38 +0000)
committerfroydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 May 2011 17:38:51 +0000 (17:38 +0000)
commit027fc6effed44ed55e1c2214a28b5b664dc00178
treed221c28a4588d4ee669bca17061040874f839eab
parent8f2b914f9827988da22710ae55eecfeb7c12aee0
make TS_BLOCK a substructure of TS_BASE
gcc/
* tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
TS_BASE instead of TS_COMMON.
(find_decls_types_r): Check for TS_TYPED structure before looking at
TREE_TYPE.
* tree.h (struct tree_block): Inherit from tree_base, not tree_common.
Add chain field.
(BLOCK_CHAIN): Use new chain field.

gcc/c-family/
* c-common.c (warning_candidate_p): Check for BLOCKs.

gcc/java/
* decl.c (poplevel): Don't access TREE_TYPE of BLOCKs.
* expr.c (build_jni_stub): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174300 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/java/ChangeLog
gcc/java/decl.c
gcc/java/expr.c
gcc/tree.c
gcc/tree.h