mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-09 11:47:24 +08:00
lex.c (lang_init_options): Initialize cpplib.
Wed Dec 9 15:33:01 1998 Dave Brolley <brolley@cygnus.com> * lex.c (lang_init_options): Initialize cpplib. * decl2.c (parse_options,cpp_initialized): Removed. (lang_decode_option): Move initialization of cpplib to lang_init_options. From-SVN: r24221
This commit is contained in:
parent
8a1a524a83
commit
dfb0fb1d90
@ -1,3 +1,10 @@
|
|||||||
|
Wed Dec 9 15:33:01 1998 Dave Brolley <brolley@cygnus.com>
|
||||||
|
|
||||||
|
* lex.c (lang_init_options): Initialize cpplib.
|
||||||
|
* decl2.c (parse_options,cpp_initialized): Removed.
|
||||||
|
(lang_decode_option): Move initialization of cpplib to
|
||||||
|
lang_init_options.
|
||||||
|
|
||||||
1998-12-09 Mark Mitchell <mark@markmitchell.com>
|
1998-12-09 Mark Mitchell <mark@markmitchell.com>
|
||||||
|
|
||||||
* decl.c (grokdeclarator): Update the name of the TEMPLATE_DECL, as
|
* decl.c (grokdeclarator): Update the name of the TEMPLATE_DECL, as
|
||||||
|
@ -46,8 +46,6 @@ Boston, MA 02111-1307, USA. */
|
|||||||
#if USE_CPPLIB
|
#if USE_CPPLIB
|
||||||
#include "cpplib.h"
|
#include "cpplib.h"
|
||||||
extern cpp_reader parse_in;
|
extern cpp_reader parse_in;
|
||||||
extern cpp_options parse_options;
|
|
||||||
static int cpp_initialized;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static tree get_sentry PROTO((tree));
|
static tree get_sentry PROTO((tree));
|
||||||
@ -523,13 +521,6 @@ lang_decode_option (argc, argv)
|
|||||||
int strings_processed;
|
int strings_processed;
|
||||||
char *p = argv[0];
|
char *p = argv[0];
|
||||||
#if USE_CPPLIB
|
#if USE_CPPLIB
|
||||||
if (! cpp_initialized)
|
|
||||||
{
|
|
||||||
cpp_reader_init (&parse_in);
|
|
||||||
parse_in.opts = &parse_options;
|
|
||||||
cpp_options_init (&parse_options);
|
|
||||||
cpp_initialized = 1;
|
|
||||||
}
|
|
||||||
strings_processed = cpp_handle_option (&parse_in, argc, argv);
|
strings_processed = cpp_handle_option (&parse_in, argc, argv);
|
||||||
#else
|
#else
|
||||||
strings_processed = 0;
|
strings_processed = 0;
|
||||||
|
@ -388,6 +388,12 @@ char *cplus_tree_code_name[] = {
|
|||||||
void
|
void
|
||||||
lang_init_options ()
|
lang_init_options ()
|
||||||
{
|
{
|
||||||
|
#if USE_CPPLIB
|
||||||
|
cpp_reader_init (&parse_in);
|
||||||
|
parse_in.opts = &parse_options;
|
||||||
|
cpp_options_init (&parse_options);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Default exceptions on. */
|
/* Default exceptions on. */
|
||||||
flag_exceptions = 1;
|
flag_exceptions = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user