From 967958e4fad8758d10ff13a848fea17a153f41f1 Mon Sep 17 00:00:00 2001 From: jsm28 Date: Mon, 29 Nov 2010 14:09:41 +0000 Subject: * system.h: Include "safe-ctype.h" instead of . Include , , and . (O_BINARY, SIGCHLD, MAP_FAILED, MAP_ANONYMOUS, kill): Conditionally define. (GET_ENVIRONMENT): Poison. * configure.ac: Don't test for mincore. * configure: Regenerate. * config.in: Regenerate. * collect2-aix.c: Don't include . * collect2.c: Don't include . (SIGCHLD): Don't define. (prefix_from_env): Use getenv instead of GET_ENVIRONMENT. * config/alpha/alpha.c: Include "splay-tree.h" instead of . * config/arm/arm.c (arm_target_help): Use getenv instead of GET_ENVIRONMENT. * config/avr/driver-avr.c: Don't include . * config/frv/frv.c: Don't include . * config/host-darwin.c: Don't include . * config/host-hpux.c: Don't include or . (MAP_FAILED): Don't define. * config/host-linux.c: Don't include or . * config/host-solaris.c: Don't include . * config/i386/cygming.h: Don't include . * config/i386/driver-i386.c: Don't include . * config/i386/host-cygwin.c: Don't include . * config/iq2000/iq2000.c: Don't include . * config/m32c/m32c-pragma.c: Don't include . * config/m68hc11/m68hc11.c: Don't include . * config/mep/mep-pragma.c: Don't include . * config/microblaze/microblaze.c: Don't include . * config/mips/mips.c: Don't include . * config/rs6000/host-darwin.c: Don't include . * cppdefault.c (cpp_relocated): Use getenv instead of GET_ENVIRONMENT. * defaults.h (GET_ENVIRONMENT): Don't define. * et-forest.h: Don't include or . * gcc.c: Don't include , or . (SIGCHLD, MAP_FAILED, kill): Don't define. (process_command): Use getenv instead of GET_ENVIRONMENT. * genhooks.c: Don't include . * ggc-common.c: Don't include , or . (MAP_FAILED): Don't define. * ggc-page.c Don't include . (MAP_ANONYMOUS, MAP_FAILED): Don't define. * ggc-zone.c: Don't include . (MAP_ANONYMOUS, MAP_FAILED): Don't define. * graph.c: Include "config.h" instead of . * incpath.c (add_env_var_paths): Use getenv instead of GET_ENVIRONMENT. * lto-wrapper.c: Don't include , or "libiberty.h". (SIGCHLD, kill): Don't define. * mips-tfile.c: Don't include . * opts.c: Don't include or . (print_specific_help): Use getenv instead of GET_ENVIRONMENT. * passes.c: Don't include , or . * sparseset.h: Don't include . * timevar.c: Don't include or . * tlink.c: Don't include "libiberty.h". * toplev.c: Don't include or . * tree-mudflap.c: Include "demangle.h" instead of . * tree-switch-conversion.c: Don't include . * vmsdbgout.c: Don't include or . c-family: * c-opts.c (check_deps_environment_vars): Use getenv instead of GET_ENVIRONMENT. * c-pch.c (O_BINARY): Don't define here. * c-pragma.h: Include "cpplib.h" instead of . fortran: * gfortran.h (alloca): Don't include definitions. (NULL): Don't define. java: * boehm.c: Include "config.h" instead of . * builtins.c: Don't include . * class.c: Don't include "stdio.h". (O_BINARY): Don't define here. * jcf-depend.c: Don't include . (jcf_dependency_set_dep_file, jcf_dependency_init, jcf_dependency_write): Use gcc_assert. * jcf-io.c (O_BINARY): Don't define here. * jcf-path.c: Don't include "tm.h". (jcf_path_init): Use getenv instead of GET_ENVIRONMENT. * resource.c: Don't include "stdio.h". (O_BINARY): Don't define here. * verify-impl.c: Don't include . lto: * lto-endian.h: Delete. * lto-object.c: Don't include "libiberty.h". (O_BINARY): Don't define. * lto.c: Don't include "libiberty.h" or . (O_BINARY): Don't define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167241 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c-family/ChangeLog | 7 +++++++ gcc/c-family/c-opts.c | 4 ++-- gcc/c-family/c-pch.c | 4 ---- gcc/c-family/c-pragma.h | 2 +- 4 files changed, 10 insertions(+), 7 deletions(-) (limited to 'gcc/c-family') diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 41ae904d66c..dadedfa041a 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,10 @@ +2010-11-29 Joseph Myers + + * c-opts.c (check_deps_environment_vars): Use getenv instead of + GET_ENVIRONMENT. + * c-pch.c (O_BINARY): Don't define here. + * c-pragma.h: Include "cpplib.h" instead of . + 2010-11-25 Joseph Myers * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to diff --git a/gcc/c-family/c-opts.c b/gcc/c-family/c-opts.c index 03af07ae8a8..befd64498a4 100644 --- a/gcc/c-family/c-opts.c +++ b/gcc/c-family/c-opts.c @@ -1131,12 +1131,12 @@ check_deps_environment_vars (void) { char *spec; - GET_ENVIRONMENT (spec, "DEPENDENCIES_OUTPUT"); + spec = getenv ("DEPENDENCIES_OUTPUT"); if (spec) cpp_opts->deps.style = DEPS_USER; else { - GET_ENVIRONMENT (spec, "SUNPRO_DEPENDENCIES"); + spec = getenv ("SUNPRO_DEPENDENCIES"); if (spec) { cpp_opts->deps.style = DEPS_SYSTEM; diff --git a/gcc/c-family/c-pch.c b/gcc/c-family/c-pch.c index 951ab1fc303..b863c25a93e 100644 --- a/gcc/c-family/c-pch.c +++ b/gcc/c-family/c-pch.c @@ -472,10 +472,6 @@ c_common_no_more_pch (void) /* Handle #pragma GCC pch_preprocess, to load in the PCH file. */ -#ifndef O_BINARY -# define O_BINARY 0 -#endif - void c_common_pch_pragma (cpp_reader *pfile, const char *name) { diff --git a/gcc/c-family/c-pragma.h b/gcc/c-family/c-pragma.h index 1c29ec455eb..cec9cd17616 100644 --- a/gcc/c-family/c-pragma.h +++ b/gcc/c-family/c-pragma.h @@ -21,7 +21,7 @@ along with GCC; see the file COPYING3. If not see #ifndef GCC_C_PRAGMA_H #define GCC_C_PRAGMA_H -#include /* For enum cpp_ttype. */ +#include "cpplib.h" /* For enum cpp_ttype. */ /* Pragma identifiers built in to the front end parsers. Identifiers for ancillary handlers will follow these. */ -- cgit v1.2.1