comparison gcc/mkconfig.sh @ 16:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents f6334be47118
children 84e7813d76e9
comparison
equal deleted inserted replaced
15:561a7518be6b 16:04ced10e8804
1 #! /bin/sh 1 #! /bin/sh
2 2
3 # Copyright (C) 2001, 2002, 2006, 2007, 2010 Free Software Foundation, Inc. 3 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
4 # This file is part of GCC. 4 # This file is part of GCC.
5 5
6 # GCC is free software; you can redistribute it and/or modify 6 # GCC is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by 7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3, or (at your option) 8 # the Free Software Foundation; either version 3, or (at your option)
17 # along with GCC; see the file COPYING3. If not see 17 # along with GCC; see the file COPYING3. If not see
18 # <http://www.gnu.org/licenses/>. 18 # <http://www.gnu.org/licenses/>.
19 19
20 20
21 # Generate gcc's various configuration headers: 21 # Generate gcc's various configuration headers:
22 # config.h, tconfig.h, bconfig.h, tm.h, and tm_p.h. 22 # config.h, tconfig.h, bconfig.h, tm.h, libgcc_tm.h, and tm_p.h.
23 # $1 is the file to generate. DEFINES, HEADERS, and possibly 23 # $1 is the file to generate. DEFINES, HEADERS, and possibly
24 # TARGET_CPU_DEFAULT are expected to be set in the environment. 24 # TARGET_CPU_DEFAULT are expected to be set in the environment.
25 25
26 if [ -z "$1" ]; then 26 if [ -z "$1" ]; then
27 echo "Usage: DEFINES='list' HEADERS='list' \\" >&2 27 echo "Usage: DEFINES='list' HEADERS='list' \\" >&2
86 echo '#endif' >> ${output}T 86 echo '#endif' >> ${output}T
87 fi 87 fi
88 fi 88 fi
89 89
90 # If this is tm.h, now include insn-flags.h only if IN_GCC is defined 90 # If this is tm.h, now include insn-flags.h only if IN_GCC is defined
91 # but neither GENERATOR_FILE nor USED_FOR_TARGET is defined. (Much of 91 # but neither GENERATOR_FILE nor USED_FOR_TARGET is defined. (Much of this
92 # this is temporary.) 92 # is temporary.)
93 93
94 case $output in 94 case $output in
95 tm.h ) 95 tm.h )
96 cat >> ${output}T <<EOF 96 cat >> ${output}T <<EOF
97 #if defined IN_GCC && !defined GENERATOR_FILE && !defined USED_FOR_TARGET 97 #if defined IN_GCC && !defined GENERATOR_FILE && !defined USED_FOR_TARGET
98 # include "insn-flags.h" 98 # include "insn-flags.h"
99 #endif
100 #if defined IN_GCC && !defined GENERATOR_FILE
101 # include "insn-modes.h"
99 #endif 102 #endif
100 EOF 103 EOF
101 ;; 104 ;;
102 esac 105 esac
103 106