diff options
author | Neil Booth <neilb@earthling.net> | 2000-09-07 20:31:06 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-09-07 20:31:06 +0000 |
commit | 771c4df34e750e7263595e550e214a2d969591e8 (patch) | |
tree | e1049271d55561fd06422b6c8da7e9ac19f11ef5 /gcc/cppinit.c | |
parent | 2ecd81ef2b944ae8de94a75b234e54774edad316 (diff) | |
download | gcc-771c4df34e750e7263595e550e214a2d969591e8.zip gcc-771c4df34e750e7263595e550e214a2d969591e8.tar.gz gcc-771c4df34e750e7263595e550e214a2d969591e8.tar.bz2 |
Makefile.in: Remove references to cppulp.{c,o}.
* Makefile.in: Remove references to cppulp.{c,o}.
* cppinit.c (initialize_builtins, cpp_start_read,
cpp_handle_option): Update to use cpp_options structure.
* cppulp.c: Remove.
From-SVN: r36245
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r-- | gcc/cppinit.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c index fbccfc3..f8dc690 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -598,6 +598,7 @@ initialize_builtins (pfile) cpp_reader *pfile; { const struct builtin *b; + for(b = builtin_array; b < builtin_array_end; b++) { if (b->flags & CPLUS && ! CPP_OPTION (pfile, cplusplus)) @@ -617,7 +618,7 @@ initialize_builtins (pfile) else { if (b->flags & ULP) - val = user_label_prefix; + val = CPP_OPTION (pfile, user_label_prefix); else val = b->value; @@ -825,8 +826,8 @@ cpp_start_read (pfile, print, fname) CPP_OPTION (pfile, warn_paste) = 0; /* Set this if it hasn't been set already. */ - if (user_label_prefix == NULL) - user_label_prefix = USER_LABEL_PREFIX; + if (CPP_OPTION (pfile, user_label_prefix) == NULL) + CPP_OPTION (pfile, user_label_prefix) = USER_LABEL_PREFIX; /* Figure out if we need to save function macro parameter spellings. We don't use CPP_PEDANTIC() here because that depends on whether @@ -1224,10 +1225,10 @@ cpp_handle_option (pfile, argc, argv) case N_OPTS: /* shut GCC up */ break; case OPT_fleading_underscore: - user_label_prefix = "_"; + CPP_OPTION (pfile, user_label_prefix) = "_"; break; case OPT_fno_leading_underscore: - user_label_prefix = ""; + CPP_OPTION (pfile, user_label_prefix) = ""; break; case OPT_fpreprocessed: CPP_OPTION (pfile, preprocessed) = 1; |