From 98c2359b286f7eb35ff65320486e1d0dc17bf48f Mon Sep 17 00:00:00 2001 From: Benjamin Kosnik Date: Fri, 6 Apr 2001 06:13:27 +0000 Subject: [PATCH] cppdefault.c (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Add. 2001-04-06 Benjamin Kosnik * cppdefault.c (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Add. * Makefile.in (-DGPLUSPLUS_BACKWARD_INCLUDE_DIR): Add. From-SVN: r41140 --- gcc/ChangeLog | 5 +++++ gcc/Makefile.in | 1 + gcc/cppdefault.c | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c86f2da83fc..c6165632a63 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-04-06 Benjamin Kosnik + + * cppdefault.c (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Add. + * Makefile.in (-DGPLUSPLUS_BACKWARD_INCLUDE_DIR): Add. + 2001-04-06 Neil Booth * cppfiles.c (open_file): Fail directories silently, but diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 7c1f8369f70..d405353278b 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -1927,6 +1927,7 @@ PREPROCESSOR_DEFINES = \ -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \ -DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \ -DGPLUSPLUS_TOOL_INCLUDE_DIR=\"$(gcc_gxx_include_dir)/$(target_alias)\" \ + -DGPLUSPLUS_BACKWARD_INCLUDE_DIR=\"$(gcc_gxx_include_dir)/backward\" \ -DLOCAL_INCLUDE_DIR=\"$(includedir)\" \ -DCROSS_INCLUDE_DIR=\"$(gcc_tooldir)/sys-include\" \ -DTOOL_INCLUDE_DIR=\"$(gcc_tooldir)/include\" diff --git a/gcc/cppdefault.c b/gcc/cppdefault.c index a51b05a7c57..328971ba901 100644 --- a/gcc/cppdefault.c +++ b/gcc/cppdefault.c @@ -39,6 +39,10 @@ const struct default_include cpp_include_defaults[] /* Pick up GNU C++ target-dependent include files. */ { GPLUSPLUS_TOOL_INCLUDE_DIR, "G++", 1, 1 }, #endif +#ifdef GPLUSPLUS_BACKWARD_INCLUDE_DIR + /* Pick up GNU C++ backward and deprecated include files. */ + { GPLUSPLUS_BACKWARD_INCLUDE_DIR, "G++", 1, 1 }, +#endif #ifdef LOCAL_INCLUDE_DIR /* /usr/local/include comes before the fixincluded header files. */ { LOCAL_INCLUDE_DIR, 0, 0, 1 },