aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2000-06-01 20:06:57 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-06-01 20:06:57 +0000
commitd7a2e0f70bda2f8a6bc82ca8da8cd069a4dbf954 (patch)
treef453ae8daad4bc2e728ee46239aaa1feccfd364b /gcc/cpplib.c
parent0ba154aa230cbd0dc92a8500919922a378df4767 (diff)
downloadgcc-d7a2e0f70bda2f8a6bc82ca8da8cd069a4dbf954.zip
gcc-d7a2e0f70bda2f8a6bc82ca8da8cd069a4dbf954.tar.gz
gcc-d7a2e0f70bda2f8a6bc82ca8da8cd069a4dbf954.tar.bz2
[multiple changes]
2000-06-01 Zack Weinberg <zack@wolery.cumb.org> * cpplex.c (maybe_macroexpand): Use CPP_WTRADITIONAL. Improve error message. * cpplib.c (parse_include): Remove support for VAX-C "#include starlet" misfeature. * gcc.dg/cpp-tradwarn2.c: Update egrep pattern. 2000-05-31 Laurynas Biveinis <lauras@softhome.net> * cppfiles.c: conditionally define O_BINARY. (open_include_file): pass O_BINARY to open(). From-SVN: r34344
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r--gcc/cpplib.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index e339c1e..529d1bb 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -411,27 +411,7 @@ parse_include (pfile, name)
len = CPP_WRITTEN (pfile) - old_written;
- if (token == CPP_STRING)
- ; /* No special treatment required. */
-#ifdef VMS
- else if (token == CPP_NAME)
- {
- /* Support '#include xyz' like VAX-C. It is taken as
- '#include <xyz.h>' and generates a warning. */
- cpp_warning (pfile, "#%s filename is obsolete, use #%s <filename.h>",
- name, name);
-
- /* Rewrite the token to <xyz.h>. */
- CPP_RESERVE (pfile, 4);
- len += 4;
- memmove (pfile->token_buffer + old_written + 1,
- pfile->token_buffer + old_written,
- CPP_WRITTEN (pfile) - old_written);
- pfile->token_buffer[old_written] = '<';
- CPP_PUTS_Q (pfile, ".h>", 2);
- }
-#endif
- else
+ if (token != CPP_STRING)
{
cpp_error (pfile, "#%s expects \"FILENAME\" or <FILENAME>", name);
CPP_SET_WRITTEN (pfile, old_written);