diff options
Diffstat (limited to 'gcc/mkconfig.sh')
-rw-r--r-- | gcc/mkconfig.sh | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gcc/mkconfig.sh b/gcc/mkconfig.sh index d56df8cf53e..d96af1d2f2b 100644 --- a/gcc/mkconfig.sh +++ b/gcc/mkconfig.sh @@ -1,6 +1,7 @@ #! /bin/sh -# Copyright (C) 2001, 2002, 2006, 2007, 2010 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002, 2006, 2007, 2010, 2011 +# Free Software Foundation, Inc. # This file is part of GCC. # GCC is free software; you can redistribute it and/or modify @@ -19,7 +20,7 @@ # Generate gcc's various configuration headers: -# config.h, tconfig.h, bconfig.h, tm.h, and tm_p.h. +# config.h, tconfig.h, bconfig.h, tm.h, libgcc_tm.h, and tm_p.h. # $1 is the file to generate. DEFINES, HEADERS, and possibly # TARGET_CPU_DEFAULT are expected to be set in the environment. @@ -88,8 +89,9 @@ if [ -n "$HEADERS" ]; then fi # If this is tm.h, now include insn-flags.h only if IN_GCC is defined -# but neither GENERATOR_FILE nor USED_FOR_TARGET is defined. (Much of -# this is temporary.) +# but neither GENERATOR_FILE nor USED_FOR_TARGET is defined. Also +# include libgcc_tm.h if USED_FOR_TARGET is defined. (Much of this is +# temporary.) case $output in tm.h ) @@ -97,6 +99,9 @@ case $output in #if defined IN_GCC && !defined GENERATOR_FILE && !defined USED_FOR_TARGET # include "insn-flags.h" #endif +#ifdef USED_FOR_TARGET +# include "libgcc_tm.h" +#endif EOF ;; esac |