Mercurial > hg > CbC > CbC_gcc
comparison contrib/gcc_update @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | f6334be47118 |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
2 # | 2 # |
3 # Update a local Subversion, Git or Mercurial tree from the GCC | 3 # Update a local Subversion, Git or Mercurial tree from the GCC |
4 # repository, with an emphasis on treating generated files correctly, so | 4 # repository, with an emphasis on treating generated files correctly, so |
5 # that autoconf, gperf et al are not required for the ``end'' user. | 5 # that autoconf, gperf et al are not required for the ``end'' user. |
6 # | 6 # |
7 # (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010 | 7 # (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, |
8 # Free Software Foundation | 8 # 2010, 2011, 2012, 2013, 2014, 2015, 2017 Free Software Foundation |
9 # Originally by Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>, August 1998. | 9 # Originally by Gerald Pfeifer <gerald@pfeifer.com>, August 1998. |
10 # | 10 # |
11 # This script is Free Software, and it can be copied, distributed and | 11 # This script is Free Software, and it can be copied, distributed and |
12 # modified as defined in the GNU General Public License. A copy of | 12 # modified as defined in the GNU General Public License. A copy of |
13 # its license can be downloaded from http://www.gnu.org/copyleft/gpl.html | 13 # its license can be downloaded from http://www.gnu.org/copyleft/gpl.html |
14 # | 14 # |
77 # Now, proceed to gcc automatically generated files | 77 # Now, proceed to gcc automatically generated files |
78 gcc/configure: gcc/configure.ac | 78 gcc/configure: gcc/configure.ac |
79 gcc/cstamp-h.in: gcc/configure.ac | 79 gcc/cstamp-h.in: gcc/configure.ac |
80 gcc/config.in: gcc/cstamp-h.in | 80 gcc/config.in: gcc/cstamp-h.in |
81 gcc/fixinc/fixincl.x: gcc/fixinc/fixincl.tpl gcc/fixinc/inclhack.def | 81 gcc/fixinc/fixincl.x: gcc/fixinc/fixincl.tpl gcc/fixinc/inclhack.def |
82 gcc/config/arm/arm-tune.md: gcc/config/arm/arm-cores.def gcc/config/arm/gentune.sh | 82 gcc/config/aarch64/aarch64-tune.md: gcc/config/aarch64/aarch64-cores.def gcc/config/aarch64/gentune.sh |
83 gcc/config/arm/arm-tune.md: gcc/config/arm/arm-cpus.in gcc/config/arm/parsecpu.awk | |
84 gcc/config/arm/arm-tables.opt: gcc/config/arm/arm-cpus.in gcc/config/arm/parsecpu.awk | |
85 gcc/config/avr/t-multilib: gcc/config/avr/avr-mcus.def gcc/config/avr/genmultilib.awk | |
86 gcc/config/c6x/c6x-tables.opt: gcc/config/c6x/c6x-isas.def gcc/config/c6x/genopt.sh | |
87 gcc/config/c6x/c6x-sched.md: gcc/config/c6x/c6x-sched.md.in gcc/config/c6x/gensched.sh | |
88 gcc/config/c6x/c6x-mult.md: gcc/config/c6x/c6x-mult.md.in gcc/config/c6x/genmult.sh | |
89 gcc/config/m68k/m68k-tables.opt: gcc/config/m68k/m68k-devices.def gcc/config/m68k/m68k-isas.def gcc/config/m68k/m68k-microarchs.def gcc/config/m68k/genopt.sh | |
90 gcc/config/mips/mips-tables.opt: gcc/config/mips/mips-cpus.def gcc/config/mips/genopt.sh | |
91 gcc/config/rs6000/rs6000-tables.opt: gcc/config/rs6000/rs6000-cpus.def gcc/config/rs6000/genopt.sh | |
92 gcc/config/tilegx/mul-tables.c: gcc/config/tilepro/gen-mul-tables.cc | |
93 gcc/config/tilepro/mul-tables.c: gcc/config/tilepro/gen-mul-tables.cc | |
83 # And then, language-specific files | 94 # And then, language-specific files |
84 gcc/cp/cfns.h: gcc/cp/cfns.gperf | 95 gcc/cp/cfns.h: gcc/cp/cfns.gperf |
85 gcc/java/keyword.h: gcc/java/keyword.gperf | |
86 # testsuite | 96 # testsuite |
87 # Without this, _Pragma3.c can have a false negative. | 97 # Without this, _Pragma3.c can have a false negative. |
88 gcc/testsuite/gcc.dg/cpp/_Pragma3.c: gcc/testsuite/gcc.dg/cpp/mi1c.h | 98 gcc/testsuite/gcc.dg/cpp/_Pragma3.c: gcc/testsuite/gcc.dg/cpp/mi1c.h |
89 # Similarly, without this, you will see: | 99 # Similarly, without this, you will see: |
90 # direct2s.c:35: warning: current file is older than direct2.c | 100 # direct2s.c:35: warning: current file is older than direct2.c |
110 libffi/Makefile.in: libffi/Makefile.am libffi/configure.ac libffi/aclocal.m4 | 120 libffi/Makefile.in: libffi/Makefile.am libffi/configure.ac libffi/aclocal.m4 |
111 libffi/configure: libffi/configure.ac libffi/aclocal.m4 | 121 libffi/configure: libffi/configure.ac libffi/aclocal.m4 |
112 libffi/fficonfig.h.in: libffi/configure.ac libffi/aclocal.m4 | 122 libffi/fficonfig.h.in: libffi/configure.ac libffi/aclocal.m4 |
113 libgfortran/aclocal.m4: libgfortran/configure.ac libgfortran/acinclude.m4 | 123 libgfortran/aclocal.m4: libgfortran/configure.ac libgfortran/acinclude.m4 |
114 libgfortran/Makefile.in: libgfortran/Makefile.am libgfortran/configure.ac libgfortran/aclocal.m4 | 124 libgfortran/Makefile.in: libgfortran/Makefile.am libgfortran/configure.ac libgfortran/aclocal.m4 |
125 libquadmath/configure: libquadmath/configure.ac libquadmath/aclocal.m4 | |
126 libquadmath/aclocal.m4: libquadmath/configure.ac libquadmath/acinclude.m4 | |
127 libquadmath/Makefile.in: libquadmath/Makefile.am libquadmath/configure.ac libgfortran/aclocal.m4 | |
115 libgfortran/configure: libgfortran/configure.ac libgfortran/aclocal.m4 | 128 libgfortran/configure: libgfortran/configure.ac libgfortran/aclocal.m4 |
116 libjava/aclocal.m4: libjava/configure.ac | |
117 libjava/Makefile.in: libjava/Makefile.am libjava/configure.ac libjava/aclocal.m4 | |
118 libjava/configure: libjava/configure.ac libjava/aclocal.m4 | |
119 libjava/libltdl/aclocal.m4: libjava/libltdl/configure.ac libjava/libltdl/acinclude.m4 | |
120 libjava/libltdl/Makefile.in: libjava/libltdl/Makefile.am libjava/libltdl/configure.ac libjava/libltdl/aclocal.m4 | |
121 libjava/libltdl/configure: libjava/libltdl/configure.ac libjava/libltdl/aclocal.m4 | |
122 libjava/libltdl/config-h.in: libjava/libltdl/configure.ac libjava/libltdl/aclocal.m4 | |
123 libcpp/aclocal.m4: libcpp/configure.ac | 129 libcpp/aclocal.m4: libcpp/configure.ac |
124 libcpp/Makefile.in: libcpp/configure.ac libcpp/aclocal.m4 | 130 libcpp/Makefile.in: libcpp/configure.ac libcpp/aclocal.m4 |
125 libcpp/configure: libcpp/configure.ac libcpp/aclocal.m4 | 131 libcpp/configure: libcpp/configure.ac libcpp/aclocal.m4 |
126 libgomp/aclocal.m4: libgomp/configure.ac libgomp/acinclude.m4 | 132 libgomp/aclocal.m4: libgomp/configure.ac libgomp/acinclude.m4 |
133 libgomp/Makefile.am: libgomp/plugin/Makefrag.am | |
127 libgomp/Makefile.in: libgomp/Makefile.am libgomp/aclocal.m4 | 134 libgomp/Makefile.in: libgomp/Makefile.am libgomp/aclocal.m4 |
128 libgomp/testsuite/Makefile.in: libgomp/Makefile.am libgomp/aclocal.m4 | 135 libgomp/testsuite/Makefile.in: libgomp/testsuite/Makefile.am libgomp/aclocal.m4 |
136 libgomp/configure.ac: libgomp/plugin/configfrag.ac | |
129 libgomp/configure: libgomp/configure.ac libgomp/aclocal.m4 | 137 libgomp/configure: libgomp/configure.ac libgomp/aclocal.m4 |
130 libgomp/config.h.in: libgomp/configure.ac libgomp/aclocal.m4 | 138 libgomp/config.h.in: libgomp/configure.ac libgomp/aclocal.m4 |
139 libhsail-rt/aclocal.m4: libhsail-rt/configure.ac | |
140 libhsail-rt/Makefile.in: libhsail-rt/Makefile.am libhsail-rt/aclocal.m4 | |
141 libhsail-rt/configure: libhsail-rt/configure.ac libhsail-rt/aclocal.m4 | |
142 libhsail-rt/target-config.h.in: libhsail-rt/configure.ac libhsail-rt/aclocal.m4 | |
143 libitm/aclocal.m4: libitm/configure.ac libitm/acinclude.m4 | |
144 libitm/Makefile.in: libitm/Makefile.am libitm/aclocal.m4 | |
145 libitm/testsuite/Makefile.in: libitm/testsuite/Makefile.am libitm/aclocal.m4 | |
146 libitm/configure: libitm/configure.ac libitm/aclocal.m4 | |
147 libitm/config.h.in: libitm/configure.ac libitm/aclocal.m4 | |
148 libatomic/aclocal.m4: libatomic/configure.ac libatomic/acinclude.m4 | |
149 libatomic/Makefile.in: libatomic/Makefile.am libatomic/aclocal.m4 | |
150 libatomic/testsuite/Makefile.in: libatomic/testsuite/Makefile.am libatomic/aclocal.m4 | |
151 libatomic/configure: libatomic/configure.ac libatomic/aclocal.m4 | |
152 libatomic/auto-config.h.in: libatomic/configure.ac libatomic/aclocal.m4 | |
153 libsanitizer/aclocal.m4: libsanitizer/configure.ac libsanitizer/acinclude.m4 | |
154 libsanitizer/Makefile.in: libsanitizer/Makefile.am libsanitizer/aclocal.m4 | |
155 libsanitizer/configure: libsanitizer/configure.ac libsanitizer/aclocal.m4 | |
156 libsanitizer/asan/Makefile.in: libsanitizer/asan/Makefile.am libsanitizer/aclocal.m4 | |
157 libsanitizer/interception/Makefile.in: libsanitizer/interception/Makefile.am libsanitizer/aclocal.m4 | |
158 libsanitizer/sanitizer_common/Makefile.in: libsanitizer/sanitizer_common/Makefile.am libsanitizer/aclocal.m4 | |
159 libvtv/aclocal.m4: libvtv/configure.ac libvtv/acinclude.m4 | |
160 libvtv/Makefile.in: libvtv/Makefile.am libvtv/aclocal.m4 | |
161 libvtv/configure: libvtv/configure.ac libvtv/aclocal.m4 | |
162 libcilkrts/aclocal.m4: libcilkrts/configure.ac | |
163 libcilkrts/Makefile.in: libcilkrts/Makefile.am | |
164 libcilkrts/configure: libcilkrts/configure.ac | |
165 liboffloadmic/aclocal.m4: liboffloadmic/configure.ac | |
166 liboffloadmic/Makefile.in: liboffloadmic/Makefile.am | |
167 liboffloadmic/configure: liboffloadmic/configure.ac | |
168 liboffloadmic/plugin/aclocal.m4: liboffloadmic/plugin/configure.ac | |
169 liboffloadmic/plugin/Makefile.in: liboffloadmic/plugin/Makefile.am | |
170 liboffloadmic/plugin/configure: liboffloadmic/plugin/configure.ac | |
171 libbacktrace/aclocal.m4: libbacktrace/configure.ac | |
172 libbacktrace/Makefile.in: libbacktrace/Makefile.am libbacktrace/aclocal.m4 | |
173 libbacktrace/configure: libbacktrace/configure.ac libbacktrace/aclocal.m4 | |
174 libbacktrace/config.h.in: libbacktrace/configure.ac libbacktrace/aclocal.m4 | |
131 # Top level | 175 # Top level |
132 Makefile.in: Makefile.tpl Makefile.def | 176 Makefile.in: Makefile.tpl Makefile.def |
133 configure: configure.ac config/acx.m4 | 177 configure: configure.ac config/acx.m4 |
134 EOF | 178 EOF |
135 } | 179 } |
330 # Extract SVN revision corresponding to parents, as stored by | 374 # Extract SVN revision corresponding to parents, as stored by |
331 # hg convert. Before hg 1.4.3, there's no template keyword | 375 # hg convert. Before hg 1.4.3, there's no template keyword |
332 # corresponding to the extra: tag, so need to use hg log --debug | 376 # corresponding to the extra: tag, so need to use hg log --debug |
333 # to extract the info. | 377 # to extract the info. |
334 parents=`$GCC_HG parents --template '{rev}'` | 378 parents=`$GCC_HG parents --template '{rev}'` |
335 revision=`$GCC_HG log --debug -r$parents | \ | 379 convert_revision=`$GCC_HG log --debug -r$parents | \ |
336 sed -ne "/^extra:.*convert_revision=svn:/ { | 380 sed -ne "/^extra:.*convert_revision=svn:/ { |
337 s%^.*@%% | 381 s%^[^/]*/%% |
338 p | 382 p |
339 }"` | 383 }"` |
340 branch=`$GCC_HG branch` | 384 revision=`echo $convert_revision | sed -e 's/.*@//'` |
341 # trunk in SVN parlance shows up as default branch in hg. | 385 branch=`echo $convert_revision | sed -e 's%branches/%%' -e 's/@.*//'` |
342 [ x$branch = x"default" ] && branch="trunk" | |
343 ;; | 386 ;; |
344 | 387 |
345 svn) | 388 svn) |
346 chat "Updating SVN tree" | 389 chat "Updating SVN tree" |
347 | 390 |
350 (touch_files_reexec) | 393 (touch_files_reexec) |
351 echo "SVN update of full tree failed." >&2 | 394 echo "SVN update of full tree failed." >&2 |
352 exit 1 | 395 exit 1 |
353 fi | 396 fi |
354 | 397 |
355 revision=`svn info | awk '/Revision:/ { print $2 }'` | 398 revision=`$GCC_SVN info | awk '/Revision:/ { print $2 }'` |
356 branch=`svn info | sed -ne "/URL:/ { | 399 branch=`$GCC_SVN info | sed -ne "/^URL:/ { |
357 s,.*/trunk,trunk, | 400 s,.*/trunk,trunk, |
358 s,.*/branches/,, | 401 s,.*/branches/,, |
359 s,.*/tags/,, | 402 s,.*/tags/,, |
360 p | 403 p |
361 }"` | 404 }"` |