diff options
author | Phil Muldoon <pmuldoon@gcc.gnu.org> | 2014-10-27 17:21:42 +0000 |
---|---|---|
committer | Phil Muldoon <pmuldoon@gcc.gnu.org> | 2014-10-27 17:21:42 +0000 |
commit | ddc8de034a1f79861fed57b231813a5c5c48a130 (patch) | |
tree | 93d1166de8622ded3678c7599baa864b75cb5e25 /gcc/stor-layout.c | |
parent | 50a504654d2c54b270615541ab66af7c4f3d664f (diff) | |
download | gcc-ddc8de034a1f79861fed57b231813a5c5c48a130.zip gcc-ddc8de034a1f79861fed57b231813a5c5c48a130.tar.gz gcc-ddc8de034a1f79861fed57b231813a5c5c48a130.tar.bz2 |
Let GDB reuse GCC's parser.
2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
Jan Kratochvil <jan.kratochvil@redhat.com>
Tom Tromey <tromey@redhat.com>
* aclocal.m4: New file.
* callbacks.cc: New file.
* callbacks.hh: New file.
* cc1plugin-config.h.in: New file.
* configure: New file.
* configure.ac: New file.
* connection.cc: New file.
* connection.hh: New file.
* findcomp.cc: New file.
* findcomp.hh: New file.
* libcc1.cc: New file.
* libcc1plugin.sym: New file.
* libcc1.sym: New file.
* Makefile.am: New file.
* Makefile.in: New file.
* marshall.cc: New file.
* marshall.hh: New file.
* names.cc: New file.
* names.hh: New file.
* plugin.cc: New file.
* rpc.hh: New file.
* status.hh: New file.
2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
Jan Kratochvil <jan.kratochvil@redhat.com>
Tom Tromey <tromey@redhat.com>
* gcc-c-fe.def: New file.
* gcc-c-interface.h: New file.
* gcc-interface.h: New file.
2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
Tom Tromey <tromey@redhat.com>
* c-tree.h (enum c_oracle_request): New.
(c_binding_oracle_function): New typedef.
(c_binding_oracle, c_pushtag, c_bind): Declare.
* c-decl.c (c_binding_oracle): New global.
(I_SYMBOL_CHECKED): New macro.
(i_symbol_binding): New function.
(I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine.
(I_TAG_CHECKED): New macro.
(i_tag_binding): New function.
(I_TAG_BINDING, I_TAG_DECL): Redefine.
(I_LABEL_CHECKED): New macro.
(i_label_binding): New function.
(I_LABEL_BINDING, I_LABEL_DECL): Redefine.
(c_print_identifier): Save and restore c_binding_oracle.
(c_pushtag, c_bind): New functions.
2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
Tom Tromey <tromey@redhat.com>
* aclocal.m4, configure: Rebuild.
* Makefile.in (aclocal_deps): Add gcc-plugin.m4.
* configure.ac: Use GCC_ENABLE_PLUGINS.
* stor-layout.c (finish_bitfield_layout): Now public. Change
argument type to 'tree'.
(finish_record_layout): Update.
* stor-layout.h (finish_bitfield_layout): Declare.
2014-10-27 Tom Tromey <tromey@redhat.com>
* gcc-plugin.m4: New file.
2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
Tom Tromey <tromey@redhat.com>
* Makefile.def: Add libcc1 to host_modules.
* configure.ac (host_tools): Add libcc1.
* Makefile.in, configure: Rebuild.
From-SVN: r216748
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 9f0064b..fcfabf3 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -1959,10 +1959,10 @@ finish_bitfield_representative (tree repr, tree field) } /* Compute and set FIELD_DECLs for the underlying objects we should - use for bitfield access for the structure laid out with RLI. */ + use for bitfield access for the structure T. */ -static void -finish_bitfield_layout (record_layout_info rli) +void +finish_bitfield_layout (tree t) { tree field, prev; tree repr = NULL_TREE; @@ -1971,10 +1971,10 @@ finish_bitfield_layout (record_layout_info rli) we could use the underlying type as hint for the representative if the bitfield would fit and the representative would not exceed the union in size. */ - if (TREE_CODE (rli->t) != RECORD_TYPE) + if (TREE_CODE (t) != RECORD_TYPE) return; - for (prev = NULL_TREE, field = TYPE_FIELDS (rli->t); + for (prev = NULL_TREE, field = TYPE_FIELDS (t); field; field = DECL_CHAIN (field)) { if (TREE_CODE (field) != FIELD_DECL) @@ -2061,7 +2061,7 @@ finish_record_layout (record_layout_info rli, int free_p) finalize_type_size (rli->t); /* Compute bitfield representatives. */ - finish_bitfield_layout (rli); + finish_bitfield_layout (rli->t); /* Propagate TYPE_PACKED to variants. With C++ templates, handle_packed_attribute is too early to do this. */ |