diff options
author | Tom Tromey <tom@tromey.com> | 2021-05-04 15:26:58 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-05-05 00:06:17 -0600 |
commit | 0624823260f953050447a909da87f031488dba13 (patch) | |
tree | 0bfb6977bc5cc58a57f2d2df6f5dea9c0f477e82 /gcc | |
parent | 0ed83e1d03b4864b5f50b6a8735ed8e3a3635193 (diff) | |
download | gcc-0624823260f953050447a909da87f031488dba13.zip gcc-0624823260f953050447a909da87f031488dba13.tar.gz gcc-0624823260f953050447a909da87f031488dba13.tar.bz2 |
libcc1: share basic context code
Both plugins in libcc1 share a fair amount of boilerplate. They both
share error-emission code, context management code, and tree GC code.
This patch unifies these two bodies of code, avoiding needless
duplication.
libcc1
* libcc1plugin.cc: Move code to context.cc.
* libcp1plugin.cc: Move code to context.cc.
* context.hh: New file.
* context.cc: New file.
* Makefile.in: Rebuild.
* Makefile.am (AM_CPPFLAGS): Add more gcc flags.
(CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): Update.
(libcc1plugin_la_SOURCES): Add context.hh, context.cc.
(libcp1plugin_la_SOURCES): Likewise.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions