]> gcc.gnu.org Git - gcc.git/blame - gcc/Makefile.in
collect2.c (main): Call find_file_set_debug.
[gcc.git] / gcc / Makefile.in
CommitLineData
73458fb7
NN
1# Makefile for GNU Compiler Collection
2# Run 'configure' to generate Makefile from Makefile.in
3
4c4b3eb0 4# Copyright (C) 1987, 1988, 1990, 1991, 1992, 1993, 1994, 1995, 1996,
703fdf5a 5# 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
e08120b1 6# 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
79d8453e 7
1322177d 8#This file is part of GCC.
79d8453e 9
1322177d 10#GCC is free software; you can redistribute it and/or modify
79d8453e 11#it under the terms of the GNU General Public License as published by
9dcd6f09 12#the Free Software Foundation; either version 3, or (at your option)
79d8453e
RS
13#any later version.
14
1322177d 15#GCC is distributed in the hope that it will be useful,
79d8453e
RS
16#but WITHOUT ANY WARRANTY; without even the implied warranty of
17#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18#GNU General Public License for more details.
19
20#You should have received a copy of the GNU General Public License
9dcd6f09
NC
21#along with GCC; see the file COPYING3. If not see
22#<http://www.gnu.org/licenses/>.
79d8453e
RS
23
24# The targets for external use include:
455c8f48 25# all, doc, install, install-cross, install-cross-rest, install-strip,
8b1f719a 26# uninstall, TAGS, mostlyclean, clean, distclean, maintainer-clean.
79d8453e 27
6c80a645 28# This is the default target.
73458fb7
NN
29# Set by autoconf to "all.internal" for a native build, or
30# "all.cross" to build a cross compiler.
31all: @ALL@
32
33# Depend on this to specify a phony target portably.
34force:
35
36# This tells GNU make version 3 not to export the variables
37# defined in this file into the environment (and thus recursive makes).
38.NOEXPORT:
39# And this tells it not to automatically pass command-line variables
40# to recursive makes.
41MAKEOVERRIDES =
6c80a645 42
03787dfd 43# Suppress smart makes who think they know how to automake yacc and flex file
2e494f70 44.y.c:
03787dfd 45.l.c:
2e494f70 46
73458fb7
NN
47# The only suffixes we want for implicit rules are .c and .o, so clear
48# the list and add them. This speeds up GNU Make, and allows -r to work.
49# For i18n support, we also need .gmo, .po, .pox.
50# This must come before the language makefile fragments to allow them to
51# add suffixes and rules of their own.
52.SUFFIXES:
53.SUFFIXES: .c .o .po .pox .gmo
54
55# -------------------------------
56# Standard autoconf-set variables
57# -------------------------------
58
4665e56c
NN
59build=@build@
60host=@host@
73458fb7 61target=@target@
e165d61b 62target_noncanonical:=@target_noncanonical@
73458fb7
NN
63
64# Sed command to transform gcc to installed name.
e165d61b 65program_transform_name := @program_transform_name@
73458fb7
NN
66
67# -----------------------------
68# Directories used during build
69# -----------------------------
70
71# Directory where sources are, from where we are.
72srcdir = @srcdir@
ad3a7ce3 73gcc_docdir = @srcdir@/doc
71cbe2c1
KC
74
75# Directory where sources are, absolute.
76abs_srcdir = @abs_srcdir@
77abs_docdir = @abs_srcdir@/doc
3859c32a 78
5da9128a
PB
79# Top build directory for this package, relative to here.
80top_builddir = .
3bbd5a19 81
da0f6381
PB
82# The absolute path to the current directory.
83objdir := $(shell pwd)
73458fb7 84
215c351a 85host_subdir=@host_subdir@
71b5d516 86build_subdir=@build_subdir@
3bbd5a19 87target_subdir=@target_subdir@
57255173 88build_libsubdir=@build_libsubdir@
71b5d516 89
3bbd5a19 90# Top build directory for the "Cygnus tree", relative to $(top_builddir).
215c351a 91ifeq ($(host_subdir),.)
3bbd5a19 92toplevel_builddir := ..
215c351a 93else
3bbd5a19 94toplevel_builddir := ../..
215c351a
PB
95endif
96
3bbd5a19
PB
97build_objdir := $(toplevel_builddir)/$(build_subdir)
98build_libobjdir := $(toplevel_builddir)/$(build_libsubdir)
99target_objdir := $(toplevel_builddir)/$(target_subdir)
100
65455962
KC
101# --------
102# Defined vpaths
103# --------
104
105# Directory where sources are, from where we are.
106VPATH = @srcdir@
107
5340bbea 108# We define a vpath for the sources of the .texi files here because they
65455962
KC
109# are split between multiple directories and we would rather use one implicit
110# pattern rule for everything.
111# This vpath could be extended within the Make-lang fragments.
112
d683ec81
PB
113vpath %.texi $(gcc_docdir)
114vpath %.texi $(gcc_docdir)/include
65455962 115
73458fb7
NN
116# --------
117# UNSORTED
118# --------
119
79d8453e
RS
120# Variables that exist for you to override.
121# See below for how to change them for certain systems.
122
013a2ee0 123# List of language subdirectories.
19361834 124SUBDIRS =@subdirs@ build
013a2ee0 125
79d8453e 126# Selection of languages to be made.
cc11cc9b 127CONFIG_LANGUAGES = @all_selected_languages@
4977bab6 128LANGUAGES = c gcov$(exeext) gcov-dump$(exeext) $(CONFIG_LANGUAGES)
79d8453e 129
00afcaa0 130# Default values for variables overridden in Makefile fragments.
78faa32d 131# CFLAGS is for the user to override to, e.g., do a cross build with -O2.
b8dad04b 132# TCFLAGS is used for compilations with the GCC just built.
00afcaa0
PB
133# T_CFLAGS is used for all compilations and is overridden by t-* files.
134T_CFLAGS =
b8dad04b 135TCFLAGS =
ec6c7392 136CFLAGS = @CFLAGS@
00020c16 137CXXFLAGS = @CXXFLAGS@
cc11cc9b 138LDFLAGS = @LDFLAGS@
b8dad04b 139
22aa533e
NS
140# Flags to determine code coverage. When coverage is disabled, this will
141# contain the optimization flags, as you normally want code coverage
e61a2eb7 142# without optimization.
22aa533e 143COVERAGE_FLAGS = @coverage_flags@
160e2e4f 144coverageexts = .{gcda,gcno}
22aa533e 145
8b1f719a 146# The warning flags are separate from CFLAGS because people tend to
5b67ad6f
DA
147# override optimization flags and we'd like them to still have warnings
148# turned on. These flags are also used to pass other stage dependent
149# flags from configure. The user is free to explicitly turn these flags
150# off if they wish.
b8dad04b 151# LOOSE_WARN are the warning flags to use when compiling something
8dd9a120 152# which is only compiled with gcc, such as libgcc.
00020c16 153# C_LOOSE_WARN is similar, but with C-only warnings.
8b1f719a 154# STRICT_WARN are the additional warning flags to
8dd9a120 155# apply to the back end and some front ends, which may be compiled
8b1f719a 156# with other compilers.
00020c16 157# C_STRICT_WARN is similar, with C-only warnings.
3bbd5a19 158LOOSE_WARN = @loose_warn@
00020c16 159C_LOOSE_WARN = @c_loose_warn@
8b1f719a 160STRICT_WARN = @strict_warn@
00020c16 161C_STRICT_WARN = @c_strict_warn@
b8dad04b 162
204250d2
RH
163# This is set by --enable-checking. The idea is to catch forgotten
164# "extern" tags in header files.
165NOCOMMON_FLAG = @nocommon_flag@
166
e9411247
MM
167NOEXCEPTION_FLAGS = @noexception_flags@
168
73e232f0 169# This is set by --disable-maintainer-mode (default) to "#"
a88fdc2a
NP
170# FIXME: 'MAINT' will always be set to an empty string, no matter if
171# --disable-maintainer-mode is used or not. This is because the
172# following will expand to "MAINT := " in maintainer mode, and to
173# "MAINT := #" in non-maintainer mode, but because '#' starts a comment,
174# they mean exactly the same thing for make.
e9c4897b 175MAINT := @MAINT@
73e232f0 176
a88fdc2a
NP
177# The following provides the variable ENABLE_MAINTAINER_RULES that can
178# be used in language Make-lang.in makefile fragments to enable
179# maintainer rules. So, ENABLE_MAINTAINER_RULES is 'true' in
180# maintainer mode, and '' otherwise.
181@MAINT@ ENABLE_MAINTAINER_RULES = true
182
414d23ae
HPN
183# These are set by --enable-checking=valgrind.
184RUN_GEN = @valgrind_command@
185VALGRIND_DRIVER_DEFINES = @valgrind_path_defines@
186
b8dad04b
ZW
187# This is how we control whether or not the additional warnings are applied.
188.-warn = $(STRICT_WARN)
9a43b902 189build-warn = $(STRICT_WARN)
00020c16
ILT
190GCC_WARN_CFLAGS = $(LOOSE_WARN) $(C_LOOSE_WARN) $($(@D)-warn) $(if $(filter-out $(STRICT_WARN),$($(@D)-warn)),,$(C_STRICT_WARN)) $(NOCOMMON_FLAG) $($@-warn)
191GCC_WARN_CXXFLAGS = $(LOOSE_WARN) $($(@D)-warn) $(NOCOMMON_FLAG) $($@-warn)
dd859b8a 192
89a42ac8
ZW
193# These files are to have specific diagnostics suppressed, or are not to
194# be subject to -Werror:
87f85ea0 195# flex output may yield harmless "no previous prototype" warnings
406176be 196build/gengtype-lex.o-warn = -Wno-error
f142b5bc 197gengtype-lex.o-warn = -Wno-error
12bd5a1e 198expmed.o-warn = -Wno-error
b8dad04b
ZW
199
200# All warnings have to be shut off in stage1 if the compiler used then
201# isn't gcc; configure determines that. WARN_CFLAGS will be either
00020c16
ILT
202# $(GCC_WARN_CFLAGS), or nothing. Similarly, WARN_CXXFLAGS will be
203# either $(GCC_WARN_CXXFLAGS), or nothing.
b8dad04b 204WARN_CFLAGS = @warn_cflags@
00020c16 205WARN_CXXFLAGS = @warn_cxxflags@
b8dad04b 206
f5d394a6
DB
207CPPFLAGS = @CPPFLAGS@
208
ab87f8c8 209AWK = @AWK@
b614ee64 210CC = @CC@
00020c16 211CXX = @CXX@
1e608388 212BISON = @BISON@
0777e4c6 213BISONFLAGS =
1e608388
ZW
214FLEX = @FLEX@
215FLEXFLAGS =
f6a874ac 216AR = @AR@
79d8453e 217AR_FLAGS = rc
f6a874ac 218NM = @NM@
6822468a 219RANLIB = @RANLIB@
343a6100 220RANLIB_FLAGS = @ranlib_flags@
73458fb7 221
ed2eaa9f
ILT
222# Libraries to use on the host.
223HOST_LIBS = @HOST_LIBS@
224
00020c16 225# The name of the compiler to use.
00020c16
ILT
226COMPILER = $(CXX)
227COMPILER_FLAGS = $(CXXFLAGS)
ed2eaa9f
ILT
228# If HOST_LIBS is set, then the user is controlling the libraries to
229# link against. In that case, link with $(CC) so that the -lstdc++
230# library is not introduced. If HOST_LIBS is not set, link with
231# $(CXX) to pick up -lstdc++.
232ifeq ($(HOST_LIBS),)
00020c16
ILT
233LINKER = $(CXX)
234LINKER_FLAGS = $(CXXFLAGS)
ed2eaa9f
ILT
235else
236LINKER = $(CC)
237LINKER_FLAGS = $(CFLAGS)
238endif
7980bfb8 239
73458fb7
NN
240# -------------------------------------------
241# Programs which operate on the build machine
242# -------------------------------------------
243
b41e09a7 244SHELL = @SHELL@
1e6347d8
RO
245# pwd command to use. Allow user to override default by setting PWDCMD in
246# the environment to account for automounters. The make variable must not
247# be called PWDCMD, otherwise the value set here is passed to make
248# subprocesses and overrides the setting from the user's environment.
8c90b13a
L
249# Don't use PWD since it is a common shell environment variable and we
250# don't want to corrupt it.
251PWD_COMMAND = $${PWDCMD-pwd}
79d8453e 252# on sysV, define this as cp.
3c18ea24 253INSTALL = @INSTALL@
ac64120e
JW
254# Some systems may be missing symbolic links, regular links, or both.
255# Allow configure to check this and use "ln -s", "ln", or "cp" as appropriate.
256LN=@LN@
257LN_S=@LN_S@
79d8453e 258# These permit overriding just for certain files.
fca9d4b0
MH
259INSTALL_PROGRAM = @INSTALL_PROGRAM@
260INSTALL_DATA = @INSTALL_DATA@
7c1e8336 261INSTALL_SCRIPT = @INSTALL@
455c8f48
RW
262install_sh = $(SHELL) $(srcdir)/../install-sh
263INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
09fa0705 264MAKEINFO = @MAKEINFO@
a541f69d 265MAKEINFOFLAGS = --no-split
d8984b6e 266TEXI2DVI = texi2dvi
b5422ad7 267TEXI2PDF = texi2pdf
9d65c5cb 268TEXI2HTML = $(MAKEINFO) --html
fd939e46 269TEXI2POD = perl $(srcdir)/../contrib/texi2pod.pl
b361b153 270POD2MAN = pod2man --center="GNU" --release="gcc-$(version)" --date=$(shell sed 's/\(....\)\(..\)\(..\)/\1-\2-\3/' <$(DATESTAMP))
5262d6b6 271# Some versions of `touch' (such as the version on Solaris 2.8)
d9835ae8 272# do not correctly set the timestamp due to buggy versions of `utime'
5262d6b6 273# in the kernel. So, we use `echo' instead.
d9835ae8 274STAMP = echo timestamp >
703fdf5a
RW
275# If necessary (e.g., when using the MSYS shell on Microsoft Windows)
276# translate the shell's notion of absolute pathnames to the native
277# spelling.
a0e527e3 278build_file_translate = @build_file_translate@
d9835ae8 279
73458fb7
NN
280# Make sure the $(MAKE) variable is defined.
281@SET_MAKE@
282
947c6b00
NN
283# Locate mkinstalldirs.
284mkinstalldirs=$(SHELL) $(srcdir)/../mkinstalldirs
285
a4e4a2d6
RW
286# write_entries_to_file - writes each entry in a list
287# to the specified file. Entries are written in chunks of
073a8998 288# $(write_entries_to_file_split) to accommodate systems with
a4e4a2d6
RW
289# severe command-line-length limitations.
290# Parameters:
291# $(1): variable containing entries to iterate over
292# $(2): output file
293write_entries_to_file_split = 50
294write_entries_to_file = $(shell rm -f $(2) || :) $(shell touch $(2)) \
295 $(foreach range, \
296 $(shell i=1; while test $$i -le $(words $(1)); do \
297 echo $$i; i=`expr $$i + $(write_entries_to_file_split)`; done), \
1b77ee03
MM
298 $(shell echo "$(wordlist $(range), \
299 $(shell expr $(range) + $(write_entries_to_file_split) - 1), $(1))" \
2fdb618d 300 | tr ' ' '\012' >> $(2)))
a4e4a2d6 301
73458fb7
NN
302# --------
303# UNSORTED
304# --------
305
306# Some compilers can't handle cc -c blah.c -o foo/blah.o.
307# In stage2 and beyond, we force this to "-o $@" since we know we're using gcc.
308OUTPUT_OPTION = @OUTPUT_OPTION@
309
b8dad04b
ZW
310# This is where we get zlib from. zlibdir is -L../zlib and zlibinc is
311# -I../zlib, unless we were configured with --with-system-zlib, in which
312# case both are empty.
313ZLIB = @zlibdir@ -lz
314ZLIBINC = @zlibinc@
79d8453e 315
6de9cd9a
DN
316# How to find GMP
317GMPLIBS = @GMPLIBS@
318GMPINC = @GMPINC@
319
33ad93b9
RG
320# How to find ISL
321ISLINC = @ISLINC@
f8bf9252
SP
322
323# How to find CLOOG
324CLOOGLIBS = @CLOOGLIBS@
325CLOOGINC = @CLOOGINC@
326
d7f09764
DN
327# Set to 'yes' if the LTO front end is enabled.
328enable_lto = @enable_lto@
329
de3f621b 330# Compiler and flags needed for plugin support
de3f621b
JR
331PLUGINCC = @CXX@
332PLUGINCFLAGS = @CXXFLAGS@
eeb971c9
EB
333
334# Libs and linker options needed for plugin support
68a607d8
DN
335PLUGINLIBS = @pluginlibs@
336
bf016de8
RAE
337enable_plugin = @enable_plugin@
338
6046b0ed 339CPPLIB = ../libcpp/libcpp.a
4f4e53dd
PB
340CPPINC = -I$(srcdir)/../libcpp/include
341
909e2256 342# Where to find decNumber
79b87c74 343enable_decimal_float = @enable_decimal_float@
909e2256 344DECNUM = $(srcdir)/../libdecnumber
79b87c74
MM
345DECNUMFMT = $(srcdir)/../libdecnumber/$(enable_decimal_float)
346DECNUMINC = -I$(DECNUM) -I$(DECNUMFMT) -I../libdecnumber
909e2256
JG
347LIBDECNUMBER = ../libdecnumber/libdecnumber.a
348
d83697f4
ILT
349# The backtrace library.
350BACKTRACE = $(srcdir)/../libbacktrace
351BACKTRACEINC = -I$(BACKTRACE)
352LIBBACKTRACE = ../libbacktrace/.libs/libbacktrace.a
353
ba1811f1 354# Target to use when installing include directory. Either
ff3aaf17 355# install-headers-tar, install-headers-cpio or install-headers-cp.
3c18ea24 356INSTALL_HEADERS_DIR = @build_install_headers_dir@
ba1811f1 357
d7371761
RK
358# Header files that are made available under the same name
359# to programs compiled with GCC.
b7f0fff2 360USER_H = $(srcdir)/ginclude/float.h \
d57a4b98
RH
361 $(srcdir)/ginclude/iso646.h \
362 $(srcdir)/ginclude/stdarg.h \
363 $(srcdir)/ginclude/stdbool.h \
364 $(srcdir)/ginclude/stddef.h \
365 $(srcdir)/ginclude/varargs.h \
0f996086 366 $(srcdir)/ginclude/stdfix.h \
bbceee64 367 $(srcdir)/ginclude/stdnoreturn.h \
d19fa6b5 368 $(srcdir)/ginclude/stdalign.h \
d57a4b98 369 $(EXTRA_HEADERS)
d7371761 370
9b91e436
KT
371USER_H_INC_NEXT_PRE = @user_headers_inc_next_pre@
372USER_H_INC_NEXT_POST = @user_headers_inc_next_post@
373
fa958513 374# The GCC to use for compiling crt*.o.
bf428f48 375# Usually the one we just built.
fa958513 376# Don't use this as a dependency--use $(GCC_PASSES).
4977bab6 377GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) ./xgcc -B./ -B$(build_tooldir)/bin/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include -L$(objdir)/../ld
79d8453e 378
c875f596
DN
379# Set if the compiler was configured with --with-build-sysroot.
380SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
381
79d8453e 382# This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
da0f6381 383# It specifies -B./.
3c9a2b55 384# It also specifies -isystem ./include to find, e.g., stddef.h.
00020c16 385GCC_CFLAGS=$(CFLAGS_FOR_TARGET) $(INTERNAL_CFLAGS) $(T_CFLAGS) $(LOOSE_WARN) $(C_LOOSE_WARN) -Wold-style-definition $($@-warn) -isystem ./include $(TCFLAGS)
79d8453e 386
73458fb7
NN
387# ---------------------------------------------------
388# Programs which produce files for the target machine
389# ---------------------------------------------------
7e717196 390
4ac29b33 391AR_FOR_TARGET := $(shell \
7e717196
JL
392 if [ -f $(objdir)/../binutils/ar ] ; then \
393 echo $(objdir)/../binutils/ar ; \
394 else \
4665e56c 395 if [ "$(host)" = "$(target)" ] ; then \
f6a874ac 396 echo $(AR); \
7e717196 397 else \
455c8f48 398 t='$(program_transform_name)'; echo ar | sed -e "$$t" ; \
7e717196 399 fi; \
4ac29b33 400 fi)
5262d6b6 401AR_FLAGS_FOR_TARGET =
7bde2862
GK
402AR_CREATE_FOR_TARGET = $(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) rc
403AR_EXTRACT_FOR_TARGET = $(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) x
ed0db39f 404LIPO_FOR_TARGET = lipo
9f18db39 405ORIGINAL_AS_FOR_TARGET = @ORIGINAL_AS_FOR_TARGET@
4ac29b33 406RANLIB_FOR_TARGET := $(shell \
7e717196
JL
407 if [ -f $(objdir)/../binutils/ranlib ] ; then \
408 echo $(objdir)/../binutils/ranlib ; \
409 else \
4665e56c 410 if [ "$(host)" = "$(target)" ] ; then \
6dd05d08 411 echo $(RANLIB); \
7e717196 412 else \
455c8f48 413 t='$(program_transform_name)'; echo ranlib | sed -e "$$t" ; \
7e717196 414 fi; \
4ac29b33 415 fi)
9f18db39
PB
416ORIGINAL_LD_FOR_TARGET = @ORIGINAL_LD_FOR_TARGET@
417ORIGINAL_NM_FOR_TARGET = @ORIGINAL_NM_FOR_TARGET@
418NM_FOR_TARGET = ./nm
ed0db39f 419STRIP_FOR_TARGET := $(shell \
455c8f48
RW
420 if [ -f $(objdir)/../binutils/strip-new ] ; then \
421 echo $(objdir)/../binutils/strip-new ; \
ed0db39f
GK
422 else \
423 if [ "$(host)" = "$(target)" ] ; then \
424 echo strip; \
425 else \
455c8f48 426 t='$(program_transform_name)'; echo strip | sed -e "$$t" ; \
ed0db39f
GK
427 fi; \
428 fi)
7e717196 429
73458fb7
NN
430# --------
431# UNSORTED
432# --------
433
4e872036
AS
434# Where to find some libiberty headers.
435HASHTAB_H = $(srcdir)/../include/hashtab.h
e980df8e 436OBSTACK_H = $(srcdir)/../include/obstack.h
5193cc6d 437SPLAY_TREE_H= $(srcdir)/../include/splay-tree.h
e980df8e
TT
438FIBHEAP_H = $(srcdir)/../include/fibheap.h
439PARTITION_H = $(srcdir)/../include/partition.h
440MD5_H = $(srcdir)/../include/md5.h
ee666c25
SB
441DWARF2_H = $(srcdir)/../include/dwarf2.h $(srcdir)/../include/dwarf2.def
442XREGEX_H = $(srcdir)/../include/xregex.h
f9bf5a8e 443FNMATCH_H = $(srcdir)/../include/fnmatch.h
4e872036 444
d7f09764
DN
445# Linker plugin API headers
446LINKER_PLUGIN_API_H = $(srcdir)/../include/plugin-api.h
447LTO_SYMTAB_H = $(srcdir)/../include/lto-symtab.h
448
a078a589 449# Default native SYSTEM_HEADER_DIR, to be overridden by targets.
08b2bad2 450NATIVE_SYSTEM_HEADER_DIR = @NATIVE_SYSTEM_HEADER_DIR@
512b62fb 451# Default cross SYSTEM_HEADER_DIR, to be overridden by targets.
4977bab6 452CROSS_SYSTEM_HEADER_DIR = @CROSS_SYSTEM_HEADER_DIR@
512b62fb 453
a078a589 454# autoconf sets SYSTEM_HEADER_DIR to one of the above.
073a8998 455# Purge it of unnecessary internal relative paths
be448346
BS
456# to directories that might not exist yet.
457# The sed idiom for this is to repeat the search-and-replace until it doesn't match, using :a ... ta.
70d0631e
RW
458# Use single quotes here to avoid nested double- and backquotes, this
459# macro is also used in a double-quoted context.
460SYSTEM_HEADER_DIR = `echo @SYSTEM_HEADER_DIR@ | sed -e :a -e 's,[^/]*/\.\.\/,,' -e ta`
a078a589 461
52c0e446 462# Control whether to run fixincludes.
0df47f66 463STMP_FIXINC = @STMP_FIXINC@
ac1284f9 464
40dc28fc
ILT
465# Test to see whether <limits.h> exists in the system header files.
466LIMITS_H_TEST = [ -f $(SYSTEM_HEADER_DIR)/limits.h ]
467
4977bab6
ZW
468# Directory for prefix to system directories, for
469# each of $(system_prefix)/usr/include, $(system_prefix)/usr/lib, etc.
470TARGET_SYSTEM_ROOT = @TARGET_SYSTEM_ROOT@
ce86ad58 471TARGET_SYSTEM_ROOT_DEFINE = @TARGET_SYSTEM_ROOT_DEFINE@
4977bab6 472
2ed26f6b
ZW
473xmake_file=@xmake_file@
474tmake_file=@tmake_file@
aca600aa
AS
475TM_ENDIAN_CONFIG=@TM_ENDIAN_CONFIG@
476TM_MULTILIB_CONFIG=@TM_MULTILIB_CONFIG@
477TM_MULTILIB_EXCEPTIONS_CONFIG=@TM_MULTILIB_EXCEPTIONS_CONFIG@
3c18ea24
RK
478out_file=$(srcdir)/config/@out_file@
479out_object_file=@out_object_file@
c49a6962
JM
480common_out_file=$(srcdir)/common/config/@common_out_file@
481common_out_object_file=@common_out_object_file@
3c18ea24 482md_file=$(srcdir)/config/@md_file@
4977bab6 483tm_file_list=@tm_file_list@
e22340b0 484tm_include_list=@tm_include_list@
d5355cb2 485tm_defines=@tm_defines@
11642c3a 486tm_p_file_list=@tm_p_file_list@
e22340b0 487tm_p_include_list=@tm_p_include_list@
11642c3a 488build_xm_file_list=@build_xm_file_list@
e22340b0 489build_xm_include_list=@build_xm_include_list@
11642c3a
ZW
490build_xm_defines=@build_xm_defines@
491host_xm_file_list=@host_xm_file_list@
e22340b0 492host_xm_include_list=@host_xm_include_list@
11642c3a 493host_xm_defines=@host_xm_defines@
e22340b0
ZW
494xm_file_list=@xm_file_list@
495xm_include_list=@xm_include_list@
3d9d2476 496xm_defines=@xm_defines@
d4a10d0a
SB
497lang_checks=
498lang_checks_parallelized=
f1ee724c
JJ
499dg_target_exps:=alpha.exp,arm.exp,avr.exp,bfin.exp,cris.exp,frv.exp
500dg_target_exps:=$(dg_target_exps),i386.exp,ia64.exp,m68k.exp,microblaze.exp
501dg_target_exps:=$(dg_target_exps),mips.exp,powerpc.exp,rx.exp,s390.exp,sh.exp
502dg_target_exps:=$(dg_target_exps),sparc.exp,spu.exp,xstormy16.exp
7134e605
JJ
503# This lists a couple of test files that take most time during check-gcc.
504# When doing parallelized check-gcc, these can run in parallel with the
505# remaining tests. Each word in this variable stands for work for one
506# make goal and one extra make goal is added to handle all the *.exp
507# files not handled explicitly already. If multiple *.exp files
508# should be run in the same runtest invocation (usually if they aren't
509# very long running, but still should be split of from the check-parallel-$lang
510# remaining tests runtest invocation), they should be concatenated with commas.
511# Note that [a-zA-Z] wildcards need to have []s prefixed with \ (needed
512# by tcl) and as the *.exp arguments are mached both as is and with
513# */ prefixed to it in runtest_file_p, it is usually desirable to include
514# a subdirectory name.
515check_gcc_parallelize=execute.exp=execute/2* \
f1ee724c
JJ
516 execute.exp=execute/\[013-9a-fA-F\]* \
517 execute.exp=execute/\[pP\]*,dg.exp \
518 execute.exp=execute/\[g-oq-zG-OQ-Z\]*,compile.exp=compile/2* \
519 compile.exp=compile/\[9pP\]*,builtins.exp \
520 compile.exp=compile/\[013-8a-oq-zA-OQ-Z\]* \
521 dg-torture.exp,ieee.exp \
522 vect.exp,guality.exp,unsorted.exp \
523 struct-layout-1.exp,stackalign.exp,$(dg_target_exps)
39dabefd 524lang_opt_files=@lang_opt_files@ $(srcdir)/c-family/c.opt $(srcdir)/common.opt
3c18ea24 525lang_specs_files=@lang_specs_files@
3103b7db 526lang_tree_files=@lang_tree_files@
11642c3a 527target_cpu_default=@target_cpu_default@
d8bb17c8 528OBJC_BOEHM_GC=@objc_boehm_gc@
0974c7d7 529extra_modes_file=@extra_modes_file@
75685792 530extra_opt_files=@extra_opt_files@
476d9098 531host_hook_obj=@out_host_hook_obj@
79d8453e 532
e0cdc09f
MK
533# Multiarch support
534enable_multiarch = @enable_multiarch@
d757eae9 535with_cpu = @with_cpu@
e0cdc09f
MK
536with_float = @with_float@
537ifeq ($(enable_multiarch),yes)
538 if_multiarch = $(1)
e0cdc09f 539else
9eae3904
MK
540 ifeq ($(enable_multiarch),auto)
541 # SYSTEM_HEADER_DIR is makefile syntax, cannot be evaluated in configure.ac
542 if_multiarch = $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib/*/crti.o),$(1))
543 else
544 if_multiarch =
545 endif
e0cdc09f
MK
546endif
547
73458fb7
NN
548# ------------------------
549# Installation directories
550# ------------------------
551
79d8453e
RS
552# Common prefix for installation directories.
553# NOTE: This directory must exist when you start installation.
3c18ea24 554prefix = @prefix@
c844ddda
RS
555# Directory in which to put localized header files. On the systems with
556# gcc as the native cc, `local_prefix' may not be `prefix' which is
557# `/usr'.
0b2fbcb2 558# NOTE: local_prefix *should not* default from prefix.
3c18ea24 559local_prefix = @local_prefix@
2e494f70 560# Directory in which to put host dependent programs and libraries
3c18ea24 561exec_prefix = @exec_prefix@
79d8453e 562# Directory in which to put the executable for the command `gcc'
3c18ea24 563bindir = @bindir@
79d8453e 564# Directory in which to put the directories used by the compiler.
3c18ea24 565libdir = @libdir@
a8ee6e2d
GK
566# Directory in which GCC puts its executables.
567libexecdir = @libexecdir@
73458fb7
NN
568
569# --------
570# UNSORTED
571# --------
572
a8ee6e2d 573# Directory in which the compiler finds libraries etc.
caa55b1e 574libsubdir = $(libdir)/gcc/$(target_noncanonical)/$(version)
a8ee6e2d 575# Directory in which the compiler finds executables
caa55b1e 576libexecsubdir = $(libexecdir)/gcc/$(target_noncanonical)/$(version)
f142b5bc
RG
577# Directory in which all plugin resources are installed
578plugin_resourcesdir = $(libsubdir)/plugin
579 # Directory in which plugin headers are installed
580plugin_includedir = $(plugin_resourcesdir)/include
581# Directory in which plugin specific executables are installed
582plugin_bindir = $(libexecsubdir)/plugin
91c7bd9b 583# Used to produce a relative $(gcc_tooldir) in gcc.o
1f72bfca 584unlibsubdir = ../../..
15c723f3
RS
585# $(prefix), expressed as a path relative to $(libsubdir).
586#
587# An explanation of the sed strings:
588# -e 's|^$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
589# -e 's|/$$||' match a trailing forward slash and eliminates it
590# -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
591# -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
592#
593# (*) Note this pattern overwrites the first character of the string
594# with a forward slash if one is not already present. This is not a
595# problem because the exact names of the sub-directories concerned is
596# unimportant, just the number of them matters.
597#
598# The practical upshot of these patterns is like this:
599#
600# prefix exec_prefix result
601# ------ ----------- ------
602# /foo /foo/bar ../
603# /foo/ /foo/bar ../
604# /foo /foo/bar/ ../
605# /foo/ /foo/bar/ ../
606# /foo /foo/bar/ugg ../../
607libsubdir_to_prefix := \
608 $(unlibsubdir)/$(shell echo "$(libdir)" | \
609 sed -e 's|^$(prefix)||' -e 's|/$$||' -e 's|^[^/]|/|' \
610 -e 's|/[^/]*|../|g')
611# $(exec_prefix), expressed as a path relative to $(prefix).
612prefix_to_exec_prefix := \
613 $(shell echo "$(exec_prefix)" | \
614 sed -e 's|^$(prefix)||' -e 's|^/||' -e '/./s|$$|/|')
d062c304 615# Directory in which to find other cross-compilation tools and headers.
4c112cda 616dollar = @dollar@
d062c304
JL
617# Used in install-cross.
618gcc_tooldir = @gcc_tooldir@
f098ead2 619# Since gcc_tooldir does not exist at build-time, use -B$(build_tooldir)/bin/
caa55b1e 620build_tooldir = $(exec_prefix)/$(target_noncanonical)
e2187d3b
BK
621# Directory in which the compiler finds target-independent g++ includes.
622gcc_gxx_include_dir = @gcc_gxx_include_dir@
17719d09 623gcc_gxx_include_dir_add_sysroot = @gcc_gxx_include_dir_add_sysroot@
49ba557e 624# Directory to search for site-specific includes.
793e9558
PB
625local_includedir = $(local_prefix)/include
626includedir = $(prefix)/include
0b2fbcb2 627# where the info files go
3c18ea24 628infodir = @infodir@
587a4ba6
L
629# Where cpp should go besides $prefix/bin if necessary
630cpp_install_dir = @cpp_install_dir@
ab87f8c8 631# where the locale files go
191bf464 632datadir = @datadir@
ab87f8c8 633localedir = $(datadir)/locale
79d8453e 634# Extension (if any) to put in installed man-page filename.
77bd67cb
JM
635man1ext = .1
636man7ext = .7
173712fb 637objext = .o
6e26218f
ILT
638exeext = @host_exeext@
639build_exeext = @build_exeext@
173712fb 640
79d8453e 641# Directory in which to put man pages.
a76b6b40
MH
642mandir = @mandir@
643man1dir = $(mandir)/man1
77bd67cb 644man7dir = $(mandir)/man7
62c13b81
RS
645# Dir for temp files.
646tmpdir = /tmp
79d8453e 647
22482f74
MS
648datarootdir = @datarootdir@
649docdir = @docdir@
9288b845 650# Directory in which to build HTML
22482f74 651build_htmldir = $(objdir)/HTML/gcc-$(version)
9d65c5cb 652# Directory in which to put HTML
22482f74 653htmldir = @htmldir@
9d65c5cb 654
ab87f8c8
JL
655# Whether we were configured with NLS.
656USE_NLS = @USE_NLS@
657
658# Internationalization library.
56694dd9
ZW
659LIBINTL = @LIBINTL@
660LIBINTL_DEP = @LIBINTL_DEP@
ab87f8c8 661
62c62a4f
RO
662# Character encoding conversion library.
663LIBICONV = @LIBICONV@
56694dd9 664LIBICONV_DEP = @LIBICONV_DEP@
62c62a4f 665
0a25f1f5 666# The GC method to be used on this system.
81bf3d9e 667GGC=@GGC@.o
0a25f1f5
RH
668
669# If a supplementary library is being used for the GC.
670GGC_LIB=
671
160633c6
MM
672# "true" if the target C library headers are unavailable; "false"
673# otherwise.
674inhibit_libc = @inhibit_libc@
675ifeq ($(inhibit_libc),true)
676INHIBIT_LIBC_CFLAGS = -Dinhibit_libc
677endif
678
79d8453e 679# List of extra executables that should be compiled for this target machine
d82c57a8 680# that are used when linking.
79d8453e 681# The rules for compiling them should be in the t-* file for the machine.
3c18ea24 682EXTRA_PROGRAMS = @extra_programs@
2e494f70 683
2e494f70
RS
684# List of extra object files that should be compiled and linked with
685# compiler proper (cc1, cc1obj, cc1plus).
3c18ea24 686EXTRA_OBJS = @extra_objs@
2e494f70 687
43554690
RK
688# List of extra object files that should be compiled and linked with
689# the gcc driver.
30500d84 690EXTRA_GCC_OBJS =@extra_gcc_objs@
43554690 691
e3b3fa45
RO
692# List of extra libraries that should be linked with the gcc driver.
693EXTRA_GCC_LIBS = @EXTRA_GCC_LIBS@
694
f780d21b 695# List of additional header files to install.
3c18ea24 696EXTRA_HEADERS =@extra_headers_list@
f780d21b 697
207bf79d
JM
698# How to handle <stdint.h>.
699USE_GCC_STDINT = @use_gcc_stdint@
700
c38f02df
ILT
701# The configure script will set this to collect2$(exeext), except on a
702# (non-Unix) host which can not build collect2, for which it will be
703# set to empty.
704COLLECT2 = @collect2@
47547081 705
79d8453e 706# Program to convert libraries.
4c457b6b 707LIBCONVERT =
79d8453e
RS
708
709# Control whether header files are installed.
e34a3d31 710INSTALL_HEADERS=install-headers install-mkheaders
79d8453e 711
09fa0705
ZW
712# Control whether Info documentation is built and installed.
713BUILD_INFO = @BUILD_INFO@
09fa0705 714
fd939e46
JM
715# Control whether manpages generated by texi2pod.pl can be rebuilt.
716GENERATED_MANPAGES = @GENERATED_MANPAGES@
717
66d7ffbf 718# Additional directories of header files to run fixincludes on.
4ab08223
RS
719# These should be directories searched automatically by default
720# just as /usr/include is.
4c457b6b 721# *Do not* use this for directories that happen to contain
4ab08223 722# header files, but are not searched automatically by default.
66d7ffbf
RS
723# On most systems, this is empty.
724OTHER_FIXINCLUDES_DIRS=
725
7c27f801 726# A list of all the language-specific executables.
d4a10d0a 727COMPILERS = @all_compilers@
7c27f801 728
acbbf3d9 729# List of things which should already be built whenever we try to use xgcc
79d8453e 730# to compile anything (without linking).
d4a10d0a 731GCC_PASSES=xgcc$(exeext) specs
79d8453e 732
79d8453e
RS
733# Directory to link to, when using the target `maketest'.
734DIR = ../gcc
735
a078a589 736# Native compiler for the build machine and its switches.
eaf9f3b2 737CC_FOR_BUILD = @CC_FOR_BUILD@
bdd5dc28 738CXX_FOR_BUILD = @CXX_FOR_BUILD@
4977bab6 739BUILD_CFLAGS= @BUILD_CFLAGS@ -DGENERATOR_FILE
bdd5dc28 740BUILD_CXXFLAGS = @BUILD_CXXFLAGS@ -DGENERATOR_FILE
a078a589 741
7980bfb8 742# Native compiler that we use. This may be C++ some day.
bdd5dc28
DN
743COMPILER_FOR_BUILD = $(CXX_FOR_BUILD)
744BUILD_COMPILERFLAGS = $(BUILD_CXXFLAGS)
7980bfb8 745
c607156f 746# Native linker that we use.
bdd5dc28
DN
747LINKER_FOR_BUILD = $(CXX_FOR_BUILD)
748BUILD_LINKERFLAGS = $(BUILD_CXXFLAGS)
c607156f 749
a078a589 750# Native linker and preprocessor flags. For x-fragment overrides.
f8c33439 751BUILD_LDFLAGS=@BUILD_LDFLAGS@
4977bab6 752BUILD_CPPFLAGS=$(ALL_CPPFLAGS)
79d8453e 753
338023d4 754# Actual name to use when installing a native compiler.
e165d61b
KC
755GCC_INSTALL_NAME := $(shell echo gcc|sed '$(program_transform_name)')
756GCC_TARGET_INSTALL_NAME := $(target_noncanonical)-$(shell echo gcc|sed '$(program_transform_name)')
757CPP_INSTALL_NAME := $(shell echo cpp|sed '$(program_transform_name)')
e165d61b 758GCOV_INSTALL_NAME := $(shell echo gcov|sed '$(program_transform_name)')
338023d4 759
e933cbe0
JL
760# Setup the testing framework, if you have one
761EXPECT = `if [ -f $${rootme}/../expect/expect ] ; then \
762 echo $${rootme}/../expect/expect ; \
763 else echo expect ; fi`
764
765RUNTEST = `if [ -f $${srcdir}/../dejagnu/runtest ] ; then \
766 echo $${srcdir}/../dejagnu/runtest ; \
767 else echo runtest; fi`
768RUNTESTFLAGS =
769
3bd6d4c4
AO
770# This should name the specs file that we're going to install. Target
771# Makefiles may override it and name another file to be generated from
772# the built-in specs and installed as the default spec, as long as
773# they also introduce a rule to generate a file name specs, to be used
774# at build time.
775SPECS = specs
776
fd438373
MM
777# Extra include files that are defined by HeaderInclude directives in
778# the .opt files
779OPTIONS_H_EXTRA =
780
781# Extra include files that are defined by SourceInclude directives in
782# the .opt files
6f4185d7 783OPTIONS_C_EXTRA = $(PRETTY_PRINT_H)
fd438373
MM
784
785@option_includes@
786
79d8453e
RS
787# End of variables for you to override.
788
4977bab6
ZW
789# GTM_H lists the config files that the generator files depend on,
790# while TM_H lists the ones ordinary gcc files depend on, which
791# includes several files generated by those generators.
e980df8e 792BCONFIG_H = bconfig.h $(build_xm_file_list)
4977bab6 793CONFIG_H = config.h $(host_xm_file_list)
1b0c37d7 794TCONFIG_H = tconfig.h $(xm_file_list)
4977bab6 795TM_P_H = tm_p.h $(tm_p_file_list)
c513ce77 796GTM_H = tm.h $(tm_file_list) insn-constants.h
852b75ed 797TM_H = $(GTM_H) insn-flags.h $(OPTIONS_H)
4977bab6 798
a1286ef5 799# Variables for version information.
f08dd1f8
ZW
800BASEVER := $(srcdir)/BASE-VER # 4.x.y
801DEVPHASE := $(srcdir)/DEV-PHASE # experimental, prerelease, ""
802DATESTAMP := $(srcdir)/DATESTAMP # YYYYMMDD or empty
db5b4110 803REVISION := $(srcdir)/REVISION # [BRANCH revision XXXXXX]
a1286ef5 804
f08dd1f8
ZW
805BASEVER_c := $(shell cat $(BASEVER))
806DEVPHASE_c := $(shell cat $(DEVPHASE))
807DATESTAMP_c := $(shell cat $(DATESTAMP))
a1286ef5 808
db5b4110
L
809ifeq (,$(wildcard $(REVISION)))
810REVISION_c :=
f8ed6dc5 811REVISION :=
db5b4110
L
812else
813REVISION_c := $(shell cat $(REVISION))
814endif
815
f08dd1f8 816version := $(BASEVER_c)
a1286ef5
ZW
817
818# For use in version.c - double quoted strings, with appropriate
819# surrounding punctuation and spaces, and with the datestamp and
820# development phase collapsed to the empty string in release mode
821# (i.e. if DEVPHASE_c is empty). The space immediately after the
822# comma in the $(if ...) constructs is significant - do not remove it.
f08dd1f8
ZW
823BASEVER_s := "\"$(BASEVER_c)\""
824DEVPHASE_s := "\"$(if $(DEVPHASE_c), ($(DEVPHASE_c)))\""
825DATESTAMP_s := "\"$(if $(DEVPHASE_c), $(DATESTAMP_c))\""
2f41c1d6
PB
826PKGVERSION_s:= "\"@PKGVERSION@\""
827BUGURL_s := "\"@REPORT_BUGS_TO@\""
828
829PKGVERSION := @PKGVERSION@
830BUGURL_TEXI := @REPORT_BUGS_TEXI@
a1286ef5 831
db5b4110
L
832ifdef REVISION_c
833REVISION_s := "\"$(if $(DEVPHASE_c), $(REVISION_c))\""
834else
cf8aba7f 835REVISION_s := "\"\""
db5b4110
L
836endif
837
e980df8e 838# Shorthand variables for dependency lists.
9771b263 839VEC_H = vec.h statistics.h $(GGC_H)
0823efed 840HASH_TABLE_H = $(HASHTAB_H) hash-table.h
9771b263 841EXCEPT_H = except.h $(HASHTAB_H)
acce4e77
JM
842TARGET_DEF = target.def target-hooks-macros.h
843C_TARGET_DEF = c-family/c-target.def target-hooks-macros.h
c49a6962 844COMMON_TARGET_DEF = common/common-target.def target-hooks-macros.h
acce4e77
JM
845TARGET_H = $(TM_H) target.h $(TARGET_DEF) insn-modes.h
846C_TARGET_H = c-family/c-target.h $(C_TARGET_DEF)
677f3fa8 847COMMON_TARGET_H = common/common-target.h $(INPUT_H) $(COMMON_TARGET_DEF)
e980df8e
TT
848MACHMODE_H = machmode.h mode-classes.def insn-modes.h
849HOOKS_H = hooks.h $(MACHMODE_H)
850HOSTHOOKS_DEF_H = hosthooks-def.h $(HOOKS_H)
851LANGHOOKS_DEF_H = langhooks-def.h $(HOOKS_H)
38f8b050 852TARGET_DEF_H = target-def.h target-hooks-def.h $(HOOKS_H) targhooks.h
acce4e77 853C_TARGET_DEF_H = c-family/c-target-def.h c-family/c-target-hooks-def.h \
677f3fa8 854 $(TREE_H) $(C_COMMON_H) $(HOOKS_H) common/common-targhooks.h
c49a6962
JM
855COMMON_TARGET_DEF_H = common/common-target-def.h \
856 common/common-target-hooks-def.h $(HOOKS_H)
79bdca32
SB
857RTL_BASE_H = coretypes.h rtl.h rtl.def $(MACHMODE_H) reg-notes.def \
858 insn-notes.def $(INPUT_H) $(REAL_H) statistics.h $(VEC_H) \
859 $(FIXED_VALUE_H) alias.h $(HASHTAB_H)
e63ea00c 860FIXED_VALUE_H = fixed-value.h $(MACHMODE_H) double-int.h
9771b263 861RTL_H = $(RTL_BASE_H) $(FLAGS_H) genrtl.h
ee666c25 862RTL_ERROR_H = rtl-error.h $(RTL_H) $(DIAGNOSTIC_CORE_H)
9f418533 863READ_MD_H = $(OBSTACK_H) $(HASHTAB_H) read-md.h
e980df8e 864PARAMS_H = params.h params.def
0a35513e 865BUILTINS_DEF = builtins.def sync-builtins.def omp-builtins.def \
32b4b7f5 866 gtm-builtins.def sanitizer.def
25583c4f
RS
867INTERNAL_FN_DEF = internal-fn.def
868INTERNAL_FN_H = internal-fn.h $(INTERNAL_FN_DEF)
79bdca32 869TREE_H = coretypes.h tree.h all-tree.def tree.def c-family/c-common.def \
39dabefd
SB
870 $(lang_tree_files) $(MACHMODE_H) tree-check.h $(BUILTINS_DEF) \
871 $(INPUT_H) statistics.h $(VEC_H) treestruct.def $(HASHTAB_H) \
9771b263 872 double-int.h alias.h $(SYMTAB_H) $(FLAGS_H) \
39dabefd 873 $(REAL_H) $(FIXED_VALUE_H)
7a8cba34 874REGSET_H = regset.h $(BITMAP_H) hard-reg-set.h
6889a650
FW
875BASIC_BLOCK_H = basic-block.h $(PREDICT_H) $(VEC_H) $(FUNCTION_H) \
876 cfg-flags.def cfghooks.h
3e097227 877GIMPLE_H = gimple.h gimple.def gsstruct.def pointer-set.h $(VEC_H) \
9771b263 878 $(GGC_H) $(BASIC_BLOCK_H) $(TREE_H) tree-ssa-operands.h \
25583c4f 879 tree-ssa-alias.h $(INTERNAL_FN_H)
0a35513e 880TRANS_MEM_H = trans-mem.h
e980df8e
TT
881GCOV_IO_H = gcov-io.h gcov-iov.h auto-host.h
882COVERAGE_H = coverage.h $(GCOV_IO_H)
883DEMANGLE_H = $(srcdir)/../include/demangle.h
884RECOG_H = recog.h
79bdca32 885ALIAS_H = alias.h
e980df8e 886EMIT_RTL_H = emit-rtl.h
79bdca32 887FLAGS_H = flags.h flag-types.h $(OPTIONS_H)
fd438373 888OPTIONS_H = options.h flag-types.h $(OPTIONS_H_EXTRA)
9771b263
DN
889FUNCTION_H = function.h $(HASHTAB_H) $(TM_H) hard-reg-set.h \
890 $(VEC_H) $(INPUT_H) $(MACHMODE_H)
e980df8e 891EXPR_H = expr.h insn-config.h $(FUNCTION_H) $(RTL_H) $(FLAGS_H) $(TREE_H) $(MACHMODE_H) $(EMIT_RTL_H)
cd1440b1 892OPTABS_H = optabs.h insn-codes.h insn-opinit.h
539bac37 893REGS_H = regs.h $(MACHMODE_H) hard-reg-set.h
7a8cba34 894SCHED_INT_H = sched-int.h $(INSN_ATTR_H) $(BASIC_BLOCK_H) $(RTL_H) $(DF_H) \
9771b263 895 $(REGSET_H)
e855c69d 896SEL_SCHED_IR_H = sel-sched-ir.h $(INSN_ATTR_H) $(BASIC_BLOCK_H) $(RTL_H) \
9771b263 897 $(GGC_H) $(BITMAP_H) $(SCHED_INT_H) $(CFGLOOP_H) $(REGSET_H)
e855c69d 898SEL_SCHED_DUMP_H = sel-sched-dump.h $(SEL_SCHED_IR_H)
9771b263 899CFGLOOP_H = cfgloop.h $(BASIC_BLOCK_H) double-int.h \
7a8cba34 900 $(BITMAP_H) sbitmap.h
e980df8e 901IPA_UTILS_H = ipa-utils.h $(TREE_H) $(CGRAPH_H)
e63ea00c 902IPA_REFERENCE_H = ipa-reference.h $(BITMAP_H) $(TREE_H)
3e097227 903CGRAPH_H = cgraph.h $(VEC_H) $(TREE_H) $(BASIC_BLOCK_H) $(FUNCTION_H) \
5d59b5e1 904 cif-code.def ipa-ref.h ipa-ref-inline.h $(LINKER_PLUGIN_API_H) is-a.h
7a8cba34
SB
905DF_H = df.h $(BITMAP_H) $(REGSET_H) sbitmap.h $(BASIC_BLOCK_H) \
906 alloc-pool.h $(TIMEVAR_H)
e9f950ba
AO
907VALTRACK_H = valtrack.h $(BITMAP_H) $(DF_H) $(RTL_H) $(BASIC_BLOCK_H) \
908 $(HASH_TABLE_H)
e980df8e
TT
909RESOURCE_H = resource.h hard-reg-set.h $(DF_H)
910DDG_H = ddg.h sbitmap.h $(DF_H)
6afbc885 911GCC_H = gcc.h version.h $(DIAGNOSTIC_CORE_H)
e63ea00c 912GGC_H = ggc.h gtype-desc.h statistics.h
a9429e29 913GGC_INTERNAL_H = ggc-internal.h $(GGC_H)
e980df8e 914TIMEVAR_H = timevar.h timevar.def
88a00ef7 915INSN_ATTR_H = insn-attr.h insn-attr-common.h $(INSN_ADDR_H)
9771b263 916INSN_ADDR_H = $(srcdir)/insn-addr.h
532aafad 917C_COMMON_H = c-family/c-common.h c-family/c-common.def $(TREE_H) \
39dabefd
SB
918 $(SPLAY_TREE_H) $(CPPLIB_H) $(GGC_H) $(DIAGNOSTIC_CORE_H)
919C_PRAGMA_H = c-family/c-pragma.h $(CPPLIB_H)
7c475d11 920C_TREE_H = c-tree.h $(C_COMMON_H) $(DIAGNOSTIC_H)
e63ea00c
RW
921SYSTEM_H = system.h hwint.h $(srcdir)/../include/libiberty.h \
922 $(srcdir)/../include/safe-ctype.h $(srcdir)/../include/filenames.h
e980df8e 923PREDICT_H = predict.h predict.def
d8044160
GK
924CPPLIB_H = $(srcdir)/../libcpp/include/line-map.h \
925 $(srcdir)/../libcpp/include/cpplib.h
e63ea00c 926INPUT_H = $(srcdir)/../libcpp/include/line-map.h input.h
21bf1558 927OPTS_H = $(INPUT_H) $(VEC_H) opts.h
e980df8e
TT
928DECNUM_H = $(DECNUM)/decContext.h $(DECNUM)/decDPD.h $(DECNUM)/decNumber.h \
929 $(DECNUMFMT)/decimal32.h $(DECNUMFMT)/decimal64.h \
930 $(DECNUMFMT)/decimal128.h $(DECNUMFMT)/decimal128Local.h
d83697f4 931BACKTRACE_H = $(BACKTRACE)/backtrace.h
e980df8e 932MKDEPS_H = $(srcdir)/../libcpp/include/mkdeps.h
e63ea00c 933SYMTAB_H = $(srcdir)/../libcpp/include/symtab.h $(OBSTACK_H)
d8044160 934CPP_ID_DATA_H = $(CPPLIB_H) $(srcdir)/../libcpp/include/cpp-id-data.h
e63ea00c 935CPP_INTERNAL_H = $(srcdir)/../libcpp/internal.h $(CPP_ID_DATA_H)
78c60e3d 936TREE_DUMP_H = tree-dump.h $(SPLAY_TREE_H) dumpfile.h
7ee2468b 937TREE_PASS_H = tree-pass.h $(TIMEVAR_H) dumpfile.h
e980df8e 938TREE_FLOW_H = tree-flow.h tree-flow-inline.h tree-ssa-operands.h \
7a8cba34 939 $(BITMAP_H) sbitmap.h $(BASIC_BLOCK_H) $(GIMPLE_H) \
5006671f
RG
940 $(HASHTAB_H) $(CGRAPH_H) $(IPA_REFERENCE_H) \
941 tree-ssa-alias.h
9771b263 942TREE_SSA_LIVE_H = tree-ssa-live.h $(PARTITION_H)
4e3825db 943SSAEXPAND_H = ssaexpand.h $(TREE_SSA_LIVE_H)
e63ea00c 944PRETTY_PRINT_H = pretty-print.h $(INPUT_H) $(OBSTACK_H)
ee666c25
SB
945TREE_PRETTY_PRINT_H = tree-pretty-print.h $(PRETTY_PRINT_H)
946GIMPLE_PRETTY_PRINT_H = gimple-pretty-print.h $(TREE_PRETTY_PRINT_H)
7c475d11 947DIAGNOSTIC_CORE_H = diagnostic-core.h $(INPUT_H) bversion.h diagnostic.def
1da2ed5f 948DIAGNOSTIC_H = diagnostic.h $(DIAGNOSTIC_CORE_H) $(PRETTY_PRINT_H)
6f4185d7 949DWARF2OUT_H = dwarf2out.h $(DWARF2_H)
39dabefd
SB
950C_PRETTY_PRINT_H = c-family/c-pretty-print.h $(PRETTY_PRINT_H) \
951 $(C_COMMON_H) $(TREE_H)
e980df8e 952SCEV_H = tree-scalar-evolution.h $(GGC_H) tree-chrec.h $(PARAMS_H)
6f4185d7
SB
953OMEGA_H = omega.h $(PARAMS_H)
954TREE_DATA_REF_H = tree-data-ref.h $(OMEGA_H) graphds.h $(SCEV_H)
9771b263 955TREE_INLINE_H = tree-inline.h
e980df8e 956REAL_H = real.h $(MACHMODE_H)
058e97ec 957IRA_INT_H = ira.h ira-int.h $(CFGLOOP_H) alloc-pool.h
55a2c322 958LRA_INT_H = lra.h $(BITMAP_H) $(RECOG_H) $(INSN_ATTR_H) insn-codes.h lra-int.h
e980df8e 959DBGCNT_H = dbgcnt.h dbgcnt.def
d7f09764 960LTO_STREAMER_H = lto-streamer.h $(LINKER_PLUGIN_API_H) $(TARGET_H) \
9771b263 961 $(CGRAPH_H) $(VEC_H) $(TREE_H) $(GIMPLE_H) \
ee666c25 962 $(GCOV_IO_H) $(DIAGNOSTIC_H) alloc-pool.h
f0efc7aa
DN
963DATA_STREAMER_H = data-streamer.h $(VEC_H) $(LTO_STREAMER_H)
964GIMPLE_STREAMER_H = gimple-streamer.h $(LTO_STREAMER_H) $(BASIC_BLOCK_H) \
965 $(FUNCTION_H)
b9393656
DN
966TREE_STREAMER_H = tree-streamer.h $(TREE_H) $(LTO_STREAMER_H) \
967 $(STREAMER_HOOKS_H)
f0efc7aa 968STREAMER_HOOKS_H = streamer-hooks.h $(TREE_H)
b6cef4e0 969TREE_VECTORIZER_H = tree-vectorizer.h $(TREE_DATA_REF_H) $(TARGET_H)
310bc633 970IPA_PROP_H = ipa-prop.h $(TREE_H) $(VEC_H) $(CGRAPH_H) $(GIMPLE_H) alloc-pool.h
2c9561b5 971IPA_INLINE_H = ipa-inline.h $(IPA_PROP_H)
e63ea00c
RW
972GSTAB_H = gstab.h stab.def
973BITMAP_H = bitmap.h $(HASHTAB_H) statistics.h
ee666c25
SB
974GCC_PLUGIN_H = gcc-plugin.h highlev-plugin-common.h plugin.def \
975 $(CONFIG_H) $(SYSTEM_H) $(HASHTAB_H)
3e17e31d 976PLUGIN_H = plugin.h $(GCC_PLUGIN_H)
0c463e16 977PLUGIN_VERSION_H = plugin-version.h configargs.h
5714c34f 978LIBFUNCS_H = libfuncs.h $(HASHTAB_H)
c4df8f8c 979
544eb21e 980#\f
79d8453e
RS
981# Now figure out from those variables how to compile and link.
982
a078a589
ZW
983# IN_GCC distinguishes between code compiled into GCC itself and other
984# programs built during a bootstrap.
2989d30c
GK
985# autoconf inserts -DCROSS_DIRECTORY_STRUCTURE if we are building a
986# cross compiler which does not use the native headers and libraries.
8733892f 987INTERNAL_CFLAGS = -DIN_GCC @CROSS@
79d8453e 988
83599948 989# This is the variable actually used when we compile. If you change this,
a6a5e4c9 990# you probably want to update BUILD_CFLAGS in configure.ac
7a3b4887 991ALL_CFLAGS = $(T_CFLAGS) $(CFLAGS-$@) \
da0f6381 992 $(CFLAGS) $(INTERNAL_CFLAGS) $(COVERAGE_FLAGS) $(WARN_CFLAGS) @DEFS@
79d8453e 993
00020c16 994# The C++ version.
295409e1 995ALL_CXXFLAGS = $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS) $(INTERNAL_CFLAGS) \
e9411247 996 $(COVERAGE_FLAGS) $(NOEXCEPTION_FLAGS) $(WARN_CXXFLAGS) @DEFS@
00020c16 997
3a6ebcdc
PB
998# Likewise. Put INCLUDES at the beginning: this way, if some autoconf macro
999# puts -I options in CPPFLAGS, our include files in the srcdir will always
1000# win against random include files in /usr/include.
da0f6381 1001ALL_CPPFLAGS = $(INCLUDES) $(CPPFLAGS)
79d8453e 1002
7980bfb8 1003# This is the variable to use when using $(COMPILER).
00020c16 1004ALL_COMPILERFLAGS = $(ALL_CXXFLAGS)
7980bfb8 1005
c607156f 1006# This is the variable to use when using $(LINKER).
00020c16 1007ALL_LINKERFLAGS = $(ALL_CXXFLAGS)
c607156f 1008
71b5d516 1009# Build and host support libraries.
06f0b04c 1010LIBIBERTY = ../libiberty/libiberty.a
57255173 1011BUILD_LIBIBERTY = $(build_libobjdir)/libiberty/libiberty.a
79d8453e 1012
935bfb44 1013# Dependencies on the intl and portability libraries.
2691e6d7 1014LIBDEPS= libcommon.a $(CPPLIB) $(LIBIBERTY) $(LIBINTL_DEP) $(LIBICONV_DEP) \
d83697f4 1015 $(LIBDECNUMBER) $(LIBBACKTRACE)
79d8453e
RS
1016
1017# Likewise, for use in the tools that must run on this machine
1018# even if we are cross-building GCC.
4977bab6 1019BUILD_LIBDEPS= $(BUILD_LIBIBERTY)
79d8453e
RS
1020
1021# How to link with both our special library facilities
1022# and the system's installed libraries.
d83697f4
ILT
1023LIBS = @LIBS@ libcommon.a $(CPPLIB) $(LIBINTL) $(LIBICONV) $(LIBBACKTRACE) \
1024 $(LIBIBERTY) $(LIBDECNUMBER) $(HOST_LIBS)
33ad93b9 1025BACKENDLIBS = $(CLOOGLIBS) $(GMPLIBS) $(PLUGINLIBS) $(HOST_LIBS) \
181e5ea4 1026 $(ZLIB)
7d600178
RO
1027# Any system libraries needed just for GNAT.
1028SYSLIBS = @GNAT_LIBEXC@
1029
96ee6e08 1030# Used from ada/gcc-interface/Make-lang.in
3d4e720a
ST
1031GNATBIND = @GNATBIND@
1032GNATMAKE = @GNATMAKE@
1033
62c9aa5f
ZW
1034# Libs needed (at present) just for jcf-dump.
1035LDEXP_LIB = @LDEXP_LIB@
1036
79d8453e
RS
1037# Likewise, for use in the tools that must run on this machine
1038# even if we are cross-building GCC.
4977bab6 1039BUILD_LIBS = $(BUILD_LIBIBERTY)
79d8453e 1040
9b68b6ea 1041BUILD_RTL = build/rtl.o build/read-rtl.o build/ggc-none.o \
10692477
RS
1042 build/vec.o build/min-insn-modes.o build/gensupport.o \
1043 build/print-rtl.o
9b68b6ea 1044BUILD_MD = build/read-md.o
3b620440 1045BUILD_ERRORS = build/errors.o
79d8453e
RS
1046
1047# Specify the directories to be searched for header files.
1048# Both . and srcdir are used, in that order,
eaf4e618 1049# so that *config.h will be found in the compilation
79d8453e 1050# subdirectory rather than in the source directory.
b8dad04b
ZW
1051# -I$(@D) and -I$(srcdir)/$(@D) cause the subdirectory of the file
1052# currently being compiled, in both source trees, to be examined as well.
6eb95e99 1053# libintl.h will be found in ../intl if we are using the included libintl.
b8dad04b 1054INCLUDES = -I. -I$(@D) -I$(srcdir) -I$(srcdir)/$(@D) \
6de9cd9a 1055 -I$(srcdir)/../include @INCINTL@ \
d83697f4 1056 $(CPPINC) $(GMPINC) $(DECNUMINC) $(BACKTRACEINC) \
33ad93b9 1057 $(CLOOGINC) $(ISLINC)
79d8453e 1058
e980df8e 1059.c.o:
7980bfb8 1060 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $< $(OUTPUT_OPTION)
79d8453e 1061
544eb21e 1062#\f
73458fb7
NN
1063# Support for additional languages (other than C).
1064# C can be supported this way too (leave for later).
013a2ee0 1065
2ed26f6b 1066LANG_MAKEFRAGS = @all_lang_makefrags@
013a2ee0
DE
1067
1068# Flags to pass to recursive makes.
8b1f719a 1069# CC is set by configure.
013a2ee0 1070# ??? The choices here will need some experimenting with.
e158a5fb
MM
1071
1072export AR_FOR_TARGET
1073export AR_CREATE_FOR_TARGET
1074export AR_FLAGS_FOR_TARGET
1075export AR_EXTRACT_FOR_TARGET
1076export AWK
e158a5fb
MM
1077export DESTDIR
1078export GCC_FOR_TARGET
1079export INCLUDES
1080export INSTALL_DATA
040b1c5a 1081export LIPO_FOR_TARGET
e158a5fb
MM
1082export MACHMODE_H
1083export NM_FOR_TARGET
040b1c5a 1084export STRIP_FOR_TARGET
e158a5fb
MM
1085export RANLIB_FOR_TARGET
1086export libsubdir
e158a5fb 1087
8b1f719a 1088FLAGS_TO_PASS = \
da0f6381 1089 "ADA_CFLAGS=$(ADA_CFLAGS)" \
013a2ee0
DE
1090 "BISON=$(BISON)" \
1091 "BISONFLAGS=$(BISONFLAGS)" \
5b67ad6f 1092 "CFLAGS=$(CFLAGS) $(WARN_CFLAGS)" \
013a2ee0 1093 "LDFLAGS=$(LDFLAGS)" \
1e608388
ZW
1094 "FLEX=$(FLEX)" \
1095 "FLEXFLAGS=$(FLEXFLAGS)" \
ac64120e
JW
1096 "LN=$(LN)" \
1097 "LN_S=$(LN_S)" \
013a2ee0
DE
1098 "MAKEINFO=$(MAKEINFO)" \
1099 "MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
03bbd83f 1100 "MAKEOVERRIDES=" \
013a2ee0 1101 "SHELL=$(SHELL)" \
aab26e16 1102 "exeext=$(exeext)" \
6e26218f 1103 "build_exeext=$(build_exeext)" \
aab26e16 1104 "objext=$(objext)" \
013a2ee0
DE
1105 "exec_prefix=$(exec_prefix)" \
1106 "prefix=$(prefix)" \
3bf810d8 1107 "local_prefix=$(local_prefix)" \
8f8d3278 1108 "gxx_include_dir=$(gcc_gxx_include_dir)" \
f098ead2 1109 "build_tooldir=$(build_tooldir)" \
91c7bd9b 1110 "gcc_tooldir=$(gcc_tooldir)" \
013a2ee0 1111 "bindir=$(bindir)" \
0ac3cb2a 1112 "libexecsubdir=$(libexecsubdir)" \
2d09b640 1113 "datarootdir=$(datarootdir)" \
ab87f8c8 1114 "datadir=$(datadir)" \
ab87f8c8 1115 "localedir=$(localedir)"
544eb21e 1116#\f
79d8453e
RS
1117# Lists of files for various purposes.
1118
75685792
RS
1119# All option source files
1120ALL_OPT_FILES=$(lang_opt_files) $(extra_opt_files)
1121
aac69a49
NC
1122# Target specific, C specific object file
1123C_TARGET_OBJS=@c_target_objs@
1124
1125# Target specific, C++ specific object file
1126CXX_TARGET_OBJS=@cxx_target_objs@
1127
c776a6d0
DF
1128# Target specific, Fortran specific object file
1129FORTRAN_TARGET_OBJS=@fortran_target_objs@
1130
d4a10d0a 1131# Object files for gcc many-languages driver.
677f3fa8 1132GCC_OBJS = gcc.o ggc-none.o
14c7833c 1133
39dabefd 1134# Language-specific object files shared by all C-family front ends.
d4a10d0a
SB
1135# FIXME: tree-mudflap is C-family only, but it is also part of the middle-end.
1136# The mudflap machinery should be properly separated from the front ends, and
1137# perhaps turned into a plugin.
39dabefd
SB
1138C_COMMON_OBJS = c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o \
1139 c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o \
1140 c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o \
1141 c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o \
d4a10d0a 1142 c-family/c-semantics.o c-family/c-ada-spec.o tree-mudflap.o
e8066a5d 1143
79d8453e 1144# Language-independent object files.
d5dc6bad
ILT
1145# We put the insn-*.o files first so that a parallel make will build
1146# them sooner, because they are large and otherwise tend to be the
1147# last objects to finish building.
252b3e8c 1148OBJS = \
d5dc6bad
ILT
1149 insn-attrtab.o \
1150 insn-automata.o \
41723253 1151 insn-dfatab.o \
d5dc6bad
ILT
1152 insn-emit.o \
1153 insn-extract.o \
41723253 1154 insn-latencytab.o \
d5dc6bad
ILT
1155 insn-modes.o \
1156 insn-opinit.o \
1157 insn-output.o \
1158 insn-peep.o \
1159 insn-preds.o \
1160 insn-recog.o \
0fe60a1b 1161 insn-enums.o \
d5dc6bad
ILT
1162 $(GGC) \
1163 alias.o \
1164 alloc-pool.o \
6fb5fa3c 1165 auto-inc-dec.o \
d5dc6bad
ILT
1166 bb-reorder.o \
1167 bitmap.o \
1168 bt-load.o \
1169 builtins.o \
1170 caller-save.o \
1171 calls.o \
1172 cfg.o \
1173 cfganal.o \
1174 cfgbuild.o \
1175 cfgcleanup.o \
1176 cfgexpand.o \
1177 cfghooks.o \
d5dc6bad
ILT
1178 cfgloop.o \
1179 cfgloopanal.o \
1180 cfgloopmanip.o \
1181 cfgrtl.o \
2aae7680 1182 symtab.o \
252b3e8c
MM
1183 cgraph.o \
1184 cgraphbuild.o \
1185 cgraphunit.o \
66a20fc2 1186 cgraphclones.o \
d5dc6bad 1187 combine.o \
c7a0240a 1188 combine-stack-adj.o \
e692f276 1189 compare-elim.o \
d5dc6bad
ILT
1190 convert.o \
1191 coverage.o \
252b3e8c
MM
1192 cppbuiltin.o \
1193 cppdefault.o \
e45425ec 1194 cprop.o \
d5dc6bad
ILT
1195 cse.o \
1196 cselib.o \
f0efc7aa
DN
1197 data-streamer.o \
1198 data-streamer-in.o \
1199 data-streamer-out.o \
d5dc6bad 1200 dbxout.o \
6fb5fa3c
DB
1201 dbgcnt.o \
1202 dce.o \
d5dc6bad
ILT
1203 ddg.o \
1204 debug.o \
1205 df-core.o \
1206 df-problems.o \
1207 df-scan.o \
1208 dfp.o \
d5dc6bad
ILT
1209 dojump.o \
1210 dominance.o \
1211 domwalk.o \
1212 double-int.o \
6fb5fa3c 1213 dse.o \
78c60e3d 1214 dumpfile.o \
d5dc6bad 1215 dwarf2asm.o \
647a1567 1216 dwarf2cfi.o \
d5dc6bad
ILT
1217 dwarf2out.o \
1218 emit-rtl.o \
1219 et-forest.o \
1220 except.o \
1221 explow.o \
1222 expmed.o \
1223 expr.o \
1224 final.o \
1e1ba002 1225 fixed-value.o \
d5dc6bad
ILT
1226 fold-const.o \
1227 function.o \
1228 fwprop.o \
1229 gcse.o \
d5dc6bad 1230 ggc-common.o \
726a989a
RB
1231 gimple.o \
1232 gimple-iterator.o \
cbdd87d4 1233 gimple-fold.o \
d5dc6bad 1234 gimple-low.o \
726a989a 1235 gimple-pretty-print.o \
f9453c07 1236 gimple-ssa-strength-reduction.o \
f0efc7aa
DN
1237 gimple-streamer-in.o \
1238 gimple-streamer-out.o \
d5dc6bad 1239 gimplify.o \
c6a13190 1240 godump.o \
d5dc6bad 1241 graph.o \
66f97d31 1242 graphds.o \
f8bf9252 1243 graphite.o \
204b560f
SP
1244 graphite-blocking.o \
1245 graphite-clast-to-gimple.o \
1246 graphite-dependences.o \
1247 graphite-interchange.o \
b60cc080 1248 graphite-optimize-isl.o \
204b560f 1249 graphite-poly.o \
204b560f
SP
1250 graphite-scop-detection.o \
1251 graphite-sese-to-poly.o \
d5dc6bad
ILT
1252 gtype-desc.o \
1253 haifa-sched.o \
9d9c740d 1254 hw-doloop.o \
c59ffc41 1255 hwint.o \
d5dc6bad 1256 ifcvt.o \
26cd9add 1257 ree.o \
252b3e8c 1258 incpath.o \
6fb5fa3c 1259 init-regs.o \
25583c4f 1260 internal-fn.o \
252b3e8c
MM
1261 ipa-cp.o \
1262 ipa-split.o \
1263 ipa-inline.o \
1264 ipa-inline-analysis.o \
1265 ipa-inline-transform.o \
1266 ipa-prop.o \
1267 ipa-pure-const.o \
1268 ipa-reference.o \
1269 ipa-ref.o \
1270 ipa-utils.o \
1271 ipa.o \
058e97ec
VM
1272 ira.o \
1273 ira-build.o \
1274 ira-costs.o \
1275 ira-conflicts.o \
1276 ira-color.o \
1277 ira-emit.o \
1278 ira-lives.o \
d5dc6bad 1279 jump.o \
d5dc6bad
ILT
1280 langhooks.o \
1281 lcm.o \
1282 lists.o \
d5dc6bad
ILT
1283 loop-doloop.o \
1284 loop-init.o \
1285 loop-invariant.o \
1286 loop-iv.o \
1287 loop-unroll.o \
1288 loop-unswitch.o \
e53a16e7 1289 lower-subreg.o \
55a2c322
VM
1290 lra.o \
1291 lra-assigns.o \
1292 lra-coalesce.o \
1293 lra-constraints.o \
1294 lra-eliminations.o \
1295 lra-lives.o \
1296 lra-spills.o \
d7f09764 1297 lto-cgraph.o \
f0efc7aa 1298 lto-streamer.o \
d7f09764
DN
1299 lto-streamer-in.o \
1300 lto-streamer-out.o \
1301 lto-section-in.o \
1302 lto-section-out.o \
1303 lto-symtab.o \
1304 lto-opts.o \
d7f09764 1305 lto-compress.o \
52c76998 1306 mcf.o \
d5dc6bad
ILT
1307 mode-switching.o \
1308 modulo-sched.o \
3d8864c0 1309 omega.o \
d5dc6bad
ILT
1310 omp-low.o \
1311 optabs.o \
57dfdff0 1312 options-save.o \
21bf1558 1313 opts-global.o \
d5dc6bad 1314 passes.o \
68a607d8 1315 plugin.o \
d5dc6bad
ILT
1316 pointer-set.o \
1317 postreload-gcse.o \
1318 postreload.o \
1319 predict.o \
d5dc6bad
ILT
1320 print-rtl.o \
1321 print-tree.o \
1322 profile.o \
1323 real.o \
d49b6e1e 1324 realmpfr.o \
d5dc6bad
ILT
1325 recog.o \
1326 reg-stack.o \
fac41238 1327 regcprop.o \
2af2dbdc 1328 reginfo.o \
d5dc6bad
ILT
1329 regmove.o \
1330 regrename.o \
6fb5fa3c 1331 regstat.o \
d5dc6bad
ILT
1332 reload.o \
1333 reload1.o \
1334 reorg.o \
1335 resource.o \
1336 rtl-error.o \
d5dc6bad
ILT
1337 rtl.o \
1338 rtlanal.o \
1339 rtlhooks.o \
1340 sbitmap.o \
1341 sched-deps.o \
1342 sched-ebb.o \
1343 sched-rgn.o \
1344 sched-vis.o \
1345 sdbout.o \
e855c69d
AB
1346 sel-sched-ir.o \
1347 sel-sched-dump.o \
1348 sel-sched.o \
204b560f 1349 sese.o \
d5dc6bad 1350 simplify-rtx.o \
b4da855a 1351 sparseset.o \
d5dc6bad 1352 sreal.o \
6fb5fa3c 1353 stack-ptr-mod.o \
9fe0cb7d 1354 statistics.o \
d5dc6bad
ILT
1355 stmt.o \
1356 stor-layout.o \
df35c271 1357 store-motion.o \
f0efc7aa 1358 streamer-hooks.o \
d5dc6bad 1359 stringpool.o \
3bd36029 1360 target-globals.o \
d5dc6bad
ILT
1361 targhooks.o \
1362 timevar.o \
1363 toplev.o \
1364 tracer.o \
0a35513e 1365 trans-mem.o \
d5dc6bad 1366 tree-affine.o \
37d6f666 1367 asan.o \
32b4b7f5 1368 tsan.o \
c2699190 1369 tree-call-cdce.o \
d5dc6bad
ILT
1370 tree-cfg.o \
1371 tree-cfgcleanup.o \
1372 tree-chrec.o \
1373 tree-complex.o \
1374 tree-data-ref.o \
1375 tree-dfa.o \
cf835838 1376 tree-diagnostic.o \
d5dc6bad
ILT
1377 tree-dump.o \
1378 tree-eh.o \
8b84c596 1379 tree-emutls.o \
d5dc6bad 1380 tree-if-conv.o \
252b3e8c 1381 tree-inline.o \
d5dc6bad
ILT
1382 tree-into-ssa.o \
1383 tree-iterator.o \
dea61d92 1384 tree-loop-distribution.o \
d5dc6bad 1385 tree-nested.o \
252b3e8c 1386 tree-nomudflap.o \
d5dc6bad
ILT
1387 tree-nrv.o \
1388 tree-object-size.o \
1389 tree-optimize.o \
1390 tree-outof-ssa.o \
5f40b3cb 1391 tree-parloops.o \
d5dc6bad 1392 tree-phinodes.o \
bbc8a8dc 1393 tree-predcom.o \
d5dc6bad
ILT
1394 tree-pretty-print.o \
1395 tree-profile.o \
1396 tree-scalar-evolution.o \
1397 tree-sra.o \
b6e99746 1398 tree-switch-conversion.o \
d5dc6bad
ILT
1399 tree-ssa-address.o \
1400 tree-ssa-alias.o \
1401 tree-ssa-ccp.o \
1402 tree-ssa-coalesce.o \
1403 tree-ssa-copy.o \
1404 tree-ssa-copyrename.o \
1405 tree-ssa-dce.o \
1406 tree-ssa-dom.o \
1407 tree-ssa-dse.o \
1408 tree-ssa-forwprop.o \
18d08014 1409 tree-ssa-ifcombine.o \
d5dc6bad
ILT
1410 tree-ssa-live.o \
1411 tree-ssa-loop-ch.o \
1412 tree-ssa-loop-im.o \
1413 tree-ssa-loop-ivcanon.o \
1414 tree-ssa-loop-ivopts.o \
1415 tree-ssa-loop-manip.o \
1416 tree-ssa-loop-niter.o \
1417 tree-ssa-loop-prefetch.o \
1418 tree-ssa-loop-unswitch.o \
1419 tree-ssa-loop.o \
1420 tree-ssa-math-opts.o \
1421 tree-ssa-operands.o \
1422 tree-ssa-phiopt.o \
67514449 1423 tree-ssa-phiprop.o \
d5dc6bad
ILT
1424 tree-ssa-pre.o \
1425 tree-ssa-propagate.o \
1426 tree-ssa-reassoc.o \
89fb70a3 1427 tree-ssa-sccvn.o \
d5dc6bad 1428 tree-ssa-sink.o \
8b57bfeb 1429 tree-ssa-strlen.o \
d5dc6bad 1430 tree-ssa-structalias.o \
c9e93168 1431 tree-ssa-tail-merge.o \
d5dc6bad
ILT
1432 tree-ssa-ter.o \
1433 tree-ssa-threadedge.o \
1434 tree-ssa-threadupdate.o \
1435 tree-ssa-uncprop.o \
34f97b94 1436 tree-ssa-uninit.o \
d5dc6bad
ILT
1437 tree-ssa.o \
1438 tree-ssanames.o \
1439 tree-stdarg.o \
f0efc7aa
DN
1440 tree-streamer.o \
1441 tree-streamer-in.o \
1442 tree-streamer-out.o \
d5dc6bad 1443 tree-tailcall.o \
d5dc6bad
ILT
1444 tree-vect-generic.o \
1445 tree-vect-patterns.o \
252b3e8c
MM
1446 tree-vect-data-refs.o \
1447 tree-vect-stmts.o \
1448 tree-vect-loop.o \
1449 tree-vect-loop-manip.o \
1450 tree-vect-slp.o \
d5dc6bad 1451 tree-vectorizer.o \
d5dc6bad
ILT
1452 tree-vrp.o \
1453 tree.o \
08df6c0d 1454 valtrack.o \
d5dc6bad
ILT
1455 value-prof.o \
1456 var-tracking.o \
1457 varasm.o \
252b3e8c 1458 varpool.o \
d5dc6bad
ILT
1459 vmsdbgout.o \
1460 web.o \
252b3e8c
MM
1461 xcoffout.o \
1462 $(out_object_file) \
d5dc6bad 1463 $(EXTRA_OBJS) \
252b3e8c 1464 $(host_hook_obj)
d1bd0ded 1465
2691e6d7
JM
1466# Objects in libcommon.a, potentially used by all host binaries and with
1467# no target dependencies.
1468OBJS-libcommon = diagnostic.o pretty-print.o intl.o input.o version.o
1469
1ed1641d
JM
1470# Objects in libcommon-target.a, used by drivers and by the core
1471# compiler and containing target-dependent code.
4c77620d 1472OBJS-libcommon-target = $(common_out_object_file) prefix.o params.o \
0823efed 1473 opts.o opts-common.o options.o vec.o hooks.o common/common-targhooks.o \
c2a73de2 1474 hash-table.o file-find.o
1ed1641d 1475
7a3b4887 1476# This lists all host objects for the front ends.
d4a10d0a 1477ALL_HOST_FRONTEND_OBJS = $(foreach v,$(CONFIG_LANGUAGES),$($(v)_OBJS))
7a3b4887 1478
2691e6d7 1479ALL_HOST_BACKEND_OBJS = $(GCC_OBJS) $(OBJS) $(OBJS-libcommon) \
d4a10d0a 1480 $(OBJS-libcommon-target) @TREEBROWSER@ main.o c-family/cppspec.o \
5c30094f 1481 $(COLLECT2_OBJS) $(EXTRA_GCC_OBJS) $(GCOV_OBJS) $(GCOV_DUMP_OBJS)
6cba282a 1482
7a3b4887
SB
1483# This lists all host object files, whether they are included in this
1484# compilation or not.
1485ALL_HOST_OBJS = $(ALL_HOST_FRONTEND_OBJS) $(ALL_HOST_BACKEND_OBJS)
1486
41723253 1487BACKEND = libbackend.a main.o @TREEBROWSER@ libcommon-target.a libcommon.a \
1ed1641d 1488 $(CPPLIB) $(LIBDECNUMBER)
a36556a8 1489
8b1f719a 1490MOSTLYCLEANFILES = insn-flags.h insn-config.h insn-codes.h \
79d8453e 1491 insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c \
41723253 1492 insn-attr.h insn-attr-common.h insn-attrtab.c insn-dfatab.c \
cd1440b1 1493 insn-latencytab.c insn-opinit.c insn-opinit.h insn-preds.c insn-constants.h \
d6d5951a 1494 tm-preds.h tm-constrs.h checksum-options \
1c7352cd 1495 tree-check.h min-insn-modes.c insn-modes.c insn-modes.h \
6ac9d3a3 1496 genrtl.h gt-*.h gtype-*.h gtype-desc.c gtyp-input.list \
d4a10d0a 1497 xgcc$(exeext) cpp$(exeext) \
5f73c6cc 1498 $(EXTRA_PROGRAMS) gcc-cross$(exeext) \
b6b89215
AK
1499 $(SPECS) collect2$(exeext) gcc-ar$(exeext) gcc-nm$(exeext) \
1500 gcc-ranlib$(exeext) \
4977bab6 1501 gcov-iov$(build_exeext) gcov$(exeext) gcov-dump$(exeext) \
f142b5bc
RG
1502 gengtype$(exeext) *.[0-9][0-9].* *.[si] *-checksum.c libbackend.a \
1503 libcommon-target.a libcommon.a libgcc.mk
79d8453e 1504
544eb21e 1505#\f
013a2ee0
DE
1506# Language makefile fragments.
1507
1508# The following targets define the interface between us and the languages.
1509#
a078a589 1510# all.cross, start.encap, rest.encap,
bd97af06 1511# install-common, install-info, install-man,
436a88a6 1512# uninstall,
a03ad584 1513# mostlyclean, clean, distclean, maintainer-clean,
013a2ee0 1514#
62b81e45
MM
1515# Each language is linked in with a series of hooks. The name of each
1516# hooked is "lang.${target_name}" (eg: lang.info). Configure computes
1517# and adds these here. We use double-colon rules for some of the hooks;
1518# double-colon rules should be preferred for any new hooks.
013a2ee0 1519
2ed26f6b 1520# language hooks, generated by configure
3c18ea24 1521@language_hooks@
013a2ee0 1522
2ed26f6b
ZW
1523# per-language makefile fragments
1524ifneq ($(LANG_MAKEFRAGS),)
1525include $(LANG_MAKEFRAGS)
1526endif
013a2ee0 1527
7e63a64e
RO
1528# target and host overrides must follow the per-language makefile fragments
1529# so they can override or augment language-specific variables
1530
1531# target overrides
1532ifneq ($(tmake_file),)
1533include $(tmake_file)
1534endif
1535
1536# host overrides
1537ifneq ($(xmake_file),)
1538include $(xmake_file)
1539endif
1540
c0ed0531
ILT
1541# all-tree.def includes all the tree.def files.
1542all-tree.def: s-alltree; @true
1543s-alltree: Makefile
1544 rm -f tmp-all-tree.def
1545 echo '#include "tree.def"' > tmp-all-tree.def
1546 echo 'END_OF_BASE_TREE_CODES' >> tmp-all-tree.def
39dabefd 1547 echo '#include "c-family/c-common.def"' >> tmp-all-tree.def
c0ed0531
ILT
1548 ltf="$(lang_tree_files)"; for f in $$ltf; do \
1549 echo "#include \"$$f\""; \
1550 done | sed 's|$(srcdir)/||' >> tmp-all-tree.def
1551 $(SHELL) $(srcdir)/../move-if-change tmp-all-tree.def all-tree.def
1552 $(STAMP) s-alltree
1553
7a3b4887
SB
1554# Now that LANG_MAKEFRAGS are included, we can add special flags to the
1555# objects that belong to the front ends. We add an extra define that
1556# causes back-end specific include files to be poisoned, in the hope that
1557# we can avoid introducing dependencies of the front ends on things that
1558# no front end should ever look at (e.g. everything RTL related).
1559$(foreach file,$(ALL_HOST_FRONTEND_OBJS),$(eval CFLAGS-$(file) += -DIN_GCC_FRONTEND))
1560
544eb21e 1561#\f
79d8453e 1562
73458fb7
NN
1563# -----------------------------
1564# Rebuilding this configuration
1565# -----------------------------
1566
f637f072
RÁE
1567# On the use of stamps:
1568# Consider the example of tree-check.h. It is constructed with build/gencheck.
1569# A simple rule to build tree-check.h would be
1570# tree-check.h: build/gencheck$(build_exeext)
1571# $(RUN_GEN) build/gencheck$(build_exeext) > tree-check.h
1572#
1573# but tree-check.h doesn't change every time gencheck changes. It would the
e980df8e 1574# nice if targets that depend on tree-check.h wouldn't be rebuild
f637f072
RÁE
1575# unnecessarily when tree-check.h is unchanged. To make this, tree-check.h
1576# must not be overwritten with a identical copy. One solution is to use a
1577# temporary file
1578# tree-check.h: build/gencheck$(build_exeext)
f7ca46d6 1579# $(RUN_GEN) build/gencheck$(build_exeext) > tmp-check.h
f637f072
RÁE
1580# $(SHELL) $(srcdir)/../move-if-change tmp-check.h tree-check.h
1581#
1582# This solution has a different problem. Since the time stamp of tree-check.h
1583# is unchanged, make will try to update tree-check.h every time it runs.
1584# To prevent this, one can add a stamp
1585# tree-check.h: s-check
1586# s-check : build/gencheck$(build_exeext)
f7ca46d6 1587# $(RUN_GEN) build/gencheck$(build_exeext) > tmp-check.h
f637f072
RÁE
1588# $(SHELL) $(srcdir)/../move-if-change tmp-check.h tree-check.h
1589# $(STAMP) s-check
1590#
1591# The problem with this solution is that make thinks that tree-check.h is
1592# always unchanged. Make must be deceived into thinking that tree-check.h is
f7ca46d6 1593# rebuild by the "tree-check.h: s-check" rule. To do this, add a dummy command:
f637f072
RÁE
1594# tree-check.h: s-check; @true
1595# s-check : build/gencheck$(build_exeext)
f7ca46d6 1596# $(RUN_GEN) build/gencheck$(build_exeext) > tmp-check.h
f637f072
RÁE
1597# $(SHELL) $(srcdir)/../move-if-change tmp-check.h tree-check.h
1598# $(STAMP) s-check
1599#
1600# This is what is done in this makefile. Note that mkconfig.sh has a
1601# move-if-change built-in
1602
a1286ef5 1603Makefile: config.status $(srcdir)/Makefile.in $(LANG_MAKEFRAGS)
2ed26f6b
ZW
1604 LANGUAGES="$(CONFIG_LANGUAGES)" \
1605 CONFIG_HEADERS= \
e75f9147 1606 CONFIG_SHELL="$(SHELL)" \
2ed26f6b 1607 CONFIG_FILES=$@ $(SHELL) config.status
79d8453e 1608
11642c3a 1609config.h: cs-config.h ; @true
4977bab6 1610bconfig.h: cs-bconfig.h ; @true
11642c3a 1611tconfig.h: cs-tconfig.h ; @true
4977bab6 1612tm.h: cs-tm.h ; @true
11642c3a
ZW
1613tm_p.h: cs-tm_p.h ; @true
1614
1615cs-config.h: Makefile
4977bab6 1616 TARGET_CPU_DEFAULT="" \
e22340b0 1617 HEADERS="$(host_xm_include_list)" DEFINES="$(host_xm_defines)" \
11642c3a
ZW
1618 $(SHELL) $(srcdir)/mkconfig.sh config.h
1619
4977bab6
ZW
1620cs-bconfig.h: Makefile
1621 TARGET_CPU_DEFAULT="" \
e22340b0 1622 HEADERS="$(build_xm_include_list)" DEFINES="$(build_xm_defines)" \
4977bab6 1623 $(SHELL) $(srcdir)/mkconfig.sh bconfig.h
11642c3a 1624
0d24f4d1 1625cs-tconfig.h: Makefile
3d9d2476 1626 TARGET_CPU_DEFAULT="" \
232b67d9 1627 HEADERS="$(xm_include_list)" DEFINES="USED_FOR_TARGET $(xm_defines)" \
11642c3a
ZW
1628 $(SHELL) $(srcdir)/mkconfig.sh tconfig.h
1629
4977bab6
ZW
1630cs-tm.h: Makefile
1631 TARGET_CPU_DEFAULT="$(target_cpu_default)" \
e22340b0 1632 HEADERS="$(tm_include_list)" DEFINES="$(tm_defines)" \
4977bab6
ZW
1633 $(SHELL) $(srcdir)/mkconfig.sh tm.h
1634
11642c3a 1635cs-tm_p.h: Makefile
4977bab6 1636 TARGET_CPU_DEFAULT="" \
e22340b0 1637 HEADERS="$(tm_p_include_list)" DEFINES="" \
11642c3a
ZW
1638 $(SHELL) $(srcdir)/mkconfig.sh tm_p.h
1639
a6a5e4c9 1640# Don't automatically run autoconf, since configure.ac might be accidentally
e7f62dcf
NC
1641# newer than configure. Also, this writes into the source directory which
1642# might be on a read-only file system. If configured for maintainer mode
1643# then do allow autoconf to be run.
1644
6efbd53f
RW
1645AUTOCONF = autoconf
1646ACLOCAL = aclocal
1647ACLOCAL_AMFLAGS = -I ../config -I ..
1648aclocal_deps = \
1649 $(srcdir)/../libtool.m4 \
1650 $(srcdir)/../ltoptions.m4 \
1651 $(srcdir)/../ltsugar.m4 \
1652 $(srcdir)/../ltversion.m4 \
1653 $(srcdir)/../lt~obsolete.m4 \
1654 $(srcdir)/../config/acx.m4 \
1655 $(srcdir)/../config/codeset.m4 \
1656 $(srcdir)/../config/extensions.m4 \
1657 $(srcdir)/../config/gettext-sister.m4 \
1658 $(srcdir)/../config/iconv.m4 \
1659 $(srcdir)/../config/lcmessage.m4 \
1660 $(srcdir)/../config/lib-ld.m4 \
1661 $(srcdir)/../config/lib-link.m4 \
1662 $(srcdir)/../config/lib-prefix.m4 \
1663 $(srcdir)/../config/override.m4 \
1664 $(srcdir)/../config/progtest.m4 \
7c2a2dbf 1665 $(srcdir)/../config/stdint.m4 \
6efbd53f
RW
1666 $(srcdir)/../config/unwind_ipinfo.m4 \
1667 $(srcdir)/../config/warnings.m4 \
3c39bca6 1668 $(srcdir)/../config/dfp.m4 \
2f6935f4 1669 $(srcdir)/../config/mmap.m4 \
6efbd53f
RW
1670 $(srcdir)/acinclude.m4
1671
1672$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/aclocal.m4
1673 (cd $(srcdir) && $(AUTOCONF))
1674
1675$(srcdir)/aclocal.m4 : @MAINT@ $(aclocal_deps)
1676 (cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS))
3c18ea24 1677
da7ece9a 1678# cstamp-h.in controls rebuilding of config.in.
7c0ae5f1
DE
1679# It is named cstamp-h.in and not stamp-h.in so the mostlyclean rule doesn't
1680# delete it. A stamp file is needed as autoheader won't update the file if
1681# nothing has changed.
da7ece9a
DE
1682# It remains in the source directory and is part of the distribution.
1683# This follows what is done in shellutils, fileutils, etc.
5408f8d0
DE
1684# "echo timestamp" is used instead of touch to be consistent with other
1685# packages that use autoconf (??? perhaps also to avoid problems with patch?).
da7ece9a 1686# ??? Newer versions have a maintainer mode that may be useful here.
e7f62dcf
NC
1687
1688# Don't run autoheader automatically either.
1689# Only run it if maintainer mode is enabled.
6efbd53f 1690@MAINT@ AUTOHEADER = autoheader
e7f62dcf 1691@MAINT@ $(srcdir)/config.in: $(srcdir)/cstamp-h.in
a6a5e4c9 1692@MAINT@ $(srcdir)/cstamp-h.in: $(srcdir)/configure.ac
6efbd53f 1693@MAINT@ (cd $(srcdir) && $(AUTOHEADER))
e7f62dcf
NC
1694@MAINT@ @rm -f $(srcdir)/cstamp-h.in
1695@MAINT@ echo timestamp > $(srcdir)/cstamp-h.in
b7cb92ad 1696auto-host.h: cstamp-h ; @true
da7ece9a 1697cstamp-h: config.in config.status
2ed26f6b
ZW
1698 CONFIG_HEADERS=auto-host.h:config.in \
1699 CONFIG_FILES= \
1700 LANGUAGES="$(CONFIG_LANGUAGES)" $(SHELL) config.status
d68b51ef 1701
7c0ae5f1
DE
1702# Really, really stupid make features, such as SUN's KEEP_STATE, may force
1703# a target to build even if it is up-to-date. So we must verify that
1704# config.status does not exist before failing.
a1286ef5 1705config.status: $(srcdir)/configure $(srcdir)/config.gcc
7c0ae5f1 1706 @if [ ! -f config.status ] ; then \
436a88a6 1707 echo You must configure gcc. Look at http://gcc.gnu.org/install/ for details.; \
7c0ae5f1
DE
1708 false; \
1709 else \
71205e0b 1710 LANGUAGES="$(CONFIG_LANGUAGES)" $(SHELL) config.status --recheck; \
7c0ae5f1
DE
1711 fi
1712
73458fb7
NN
1713# --------
1714# UNSORTED
1715# --------
1716
3bbd5a19
PB
1717# Provide quickstrap as a target that people can type into the gcc directory,
1718# and that fails if you're not into it.
1719quickstrap: all
1720 cd $(toplevel_builddir) && $(MAKE) all-target-libgcc
1721
43297964 1722all.internal: start.encap rest.encap doc
79d8453e 1723# This is what to compile if making a cross-compiler.
b3b2cbc4 1724all.cross: native gcc-cross$(exeext) cpp$(exeext) specs \
fa958513 1725 libgcc-support lang.all.cross doc @GENINSRC@ srcextra
79d8453e 1726# This is what must be made before installing GCC and converting libraries.
4871239e 1727start.encap: native xgcc$(exeext) cpp$(exeext) specs \
14da6073 1728 libgcc-support lang.start.encap @GENINSRC@ srcextra
eea77e5f 1729# These can't be made until after GCC can run.
52c0e446 1730rest.encap: lang.rest.encap
79d8453e
RS
1731# This is what is made with the host's compiler
1732# whether making a cross compiler or not.
6eb95e99 1733native: config.status auto-host.h build-@POSUB@ $(LANGUAGES) \
d82c57a8 1734 $(EXTRA_PROGRAMS) $(COLLECT2) lto-wrapper$(exeext) \
b6b89215 1735 gcc-ar$(exeext) gcc-nm$(exeext) gcc-ranlib$(exeext)
79d8453e 1736
f142b5bc
RG
1737ifeq ($(enable_plugin),yes)
1738native: gengtype$(exeext)
1739endif
1740
3aa072f2
RS
1741# On the target machine, finish building a cross compiler.
1742# This does the things that can't be done on the host machine.
fa958513 1743rest.cross: specs
3aa072f2 1744
3aa072f2
RS
1745# Recompile all the language-independent object files.
1746# This is used only if the user explicitly asks for it.
a36556a8 1747compilations: $(BACKEND)
79d8453e 1748
4f4e53dd 1749# This archive is strictly for the host.
de6ba7ae 1750libbackend.a: $(OBJS)
a36556a8 1751 -rm -rf libbackend.a
de6ba7ae 1752 $(AR) $(AR_FLAGS) libbackend.a $(OBJS)
343a6100 1753 -$(RANLIB) $(RANLIB_FLAGS) libbackend.a
6c1cc7fa 1754
1ed1641d
JM
1755libcommon-target.a: $(OBJS-libcommon-target)
1756 -rm -rf libcommon-target.a
1757 $(AR) $(AR_FLAGS) libcommon-target.a $(OBJS-libcommon-target)
1758 -$(RANLIB) $(RANLIB_FLAGS) libcommon-target.a
1759
2691e6d7
JM
1760libcommon.a: $(OBJS-libcommon)
1761 -rm -rf libcommon.a
1762 $(AR) $(AR_FLAGS) libcommon.a $(OBJS-libcommon)
1763 -$(RANLIB) $(RANLIB_FLAGS) libcommon.a
1764
acbbf3d9
RS
1765# We call this executable `xgcc' rather than `gcc'
1766# to avoid confusion if the current directory is in the path
1767# and CC is `gcc'. It is renamed to `gcc' when it is installed.
d4a10d0a 1768xgcc$(exeext): $(GCC_OBJS) c/gccspec.o libcommon-target.a $(LIBDEPS) \
1ed1641d 1769 $(EXTRA_GCC_OBJS)
a90163e9 1770 +$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ $(GCC_OBJS) \
d4a10d0a 1771 c/gccspec.o $(EXTRA_GCC_OBJS) libcommon-target.a \
e3b3fa45 1772 $(EXTRA_GCC_LIBS) $(LIBS)
3aa072f2 1773
d4a10d0a
SB
1774# cpp is to cpp0 as e.g. g++ is to cc1plus: Just another driver.
1775# It is part of c-family because the handled extensions are hard-coded
1776# and only contain c-family extensions (see known_suffixes).
1777cpp$(exeext): $(GCC_OBJS) c-family/cppspec.o libcommon-target.a $(LIBDEPS) \
1ed1641d 1778 $(EXTRA_GCC_OBJS)
a90163e9 1779 +$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ $(GCC_OBJS) \
d4a10d0a 1780 c-family/cppspec.o $(EXTRA_GCC_OBJS) libcommon-target.a \
e3b3fa45 1781 $(EXTRA_GCC_LIBS) $(LIBS)
922cf99e 1782
3aa072f2 1783# Dump a specs file to make -B./ read these specs over installed ones.
3bd6d4c4 1784$(SPECS): xgcc$(exeext)
d521a023 1785 $(GCC_FOR_TARGET) -dumpspecs > tmp-specs
3bd6d4c4 1786 mv tmp-specs $(SPECS)
79d8453e 1787
acbbf3d9 1788# We do want to create an executable named `xgcc', so we can use it to
79d8453e
RS
1789# compile libgcc2.a.
1790# Also create gcc-cross, so that install-common will install properly.
b3b2cbc4 1791gcc-cross$(exeext): xgcc$(exeext)
aab26e16 1792 cp xgcc$(exeext) gcc-cross$(exeext)
79d8453e 1793
d6d5951a
AK
1794checksum-options:
1795 echo "$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS)" > checksum-options.tmp \
1796 && $(srcdir)/../move-if-change checksum-options.tmp checksum-options
e980df8e 1797
544eb21e 1798#\f
79d8453e 1799# Build libgcc.a.
a2ab7f2b 1800
52c0e446 1801libgcc-support: libgcc.mvars stmp-int-hdrs $(TCONFIG_H) \
f9989b51 1802 $(MACHMODE_H) gcov-iov.h
fa958513 1803
f9989b51 1804libgcc.mvars: config.status Makefile specs xgcc$(exeext)
fa958513 1805 : > tmp-libgcc.mvars
5f73c6cc
RO
1806 echo GCC_CFLAGS = '$(GCC_CFLAGS)' >> tmp-libgcc.mvars
1807 echo INHIBIT_LIBC_CFLAGS = '$(INHIBIT_LIBC_CFLAGS)' >> tmp-libgcc.mvars
7f142d33 1808 echo TARGET_SYSTEM_ROOT = '$(TARGET_SYSTEM_ROOT)' >> tmp-libgcc.mvars
fa958513
DJ
1809
1810 mv tmp-libgcc.mvars libgcc.mvars
79d8453e 1811
f6cdc7ea
DE
1812# Use the genmultilib shell script to generate the information the gcc
1813# driver program needs to select the library directory based on the
1814# switches.
e5e809f4
JL
1815multilib.h: s-mlib; @true
1816s-mlib: $(srcdir)/genmultilib Makefile
c49d2df6
JJ
1817 if test @enable_multilib@ = yes \
1818 || test -n "$(MULTILIB_OSDIRNAMES)"; then \
4d2fb38b
JJ
1819 $(SHELL) $(srcdir)/genmultilib \
1820 "$(MULTILIB_OPTIONS)" \
1821 "$(MULTILIB_DIRNAMES)" \
1822 "$(MULTILIB_MATCHES)" \
1823 "$(MULTILIB_EXCEPTIONS)" \
1824 "$(MULTILIB_EXTRA_OPTS)" \
1825 "$(MULTILIB_EXCLUSIONS)" \
5bbcd587 1826 "$(MULTILIB_OSDIRNAMES)" \
43661dc4 1827 "$(MULTILIB_REQUIRED)" \
e0cdc09f 1828 "$(MULTIARCH_DIRNAME)" \
c49d2df6 1829 "@enable_multilib@" \
4d2fb38b
JJ
1830 > tmp-mlib.h; \
1831 else \
e0cdc09f 1832 $(SHELL) $(srcdir)/genmultilib '' '' '' '' '' '' '' '' "$(MULTIARCH_DIRNAME)" no \
c49d2df6 1833 > tmp-mlib.h; \
4d2fb38b 1834 fi
88e3a2a3 1835 $(SHELL) $(srcdir)/../move-if-change tmp-mlib.h multilib.h
d9835ae8 1836 $(STAMP) s-mlib
544eb21e 1837#\f
79d8453e
RS
1838# Compiling object files from source files.
1839
e980df8e
TT
1840# Note that dependencies on obstack.h are not written
1841# because that file is not part of GCC.
1842
02ba6b22
KC
1843srcextra: gcc.srcextra lang.srcextra
1844
01d419ae 1845gcc.srcextra: gengtype-lex.c
03787dfd
KC
1846 -cp -p $^ $(srcdir)
1847
be7a421e 1848graph.o: graph.c $(SYSTEM_H) coretypes.h $(TM_H) toplev.h $(DIAGNOSTIC_CORE_H) $(FLAGS_H) \
e63ea00c 1849 $(RTL_H) $(FUNCTION_H) hard-reg-set.h $(BASIC_BLOCK_H) graph.h $(OBSTACK_H) \
5936d944 1850 $(CONFIG_H) $(EMIT_RTL_H)
39dabefd 1851
3c2c4f22 1852sbitmap.o: sbitmap.c sbitmap.h $(CONFIG_H) $(SYSTEM_H) coretypes.h
e63ea00c 1853sparseset.o: sparseset.c $(SYSTEM_H) sparseset.h $(CONFIG_H)
e980df8e 1854
c2a73de2 1855AR_OBJS = file-find.o
b6b89215
AK
1856AR_LIBS = @COLLECT2_LIBS@
1857
c2a73de2 1858gcc-ar$(exeext): gcc-ar.o $(AR_OBJS) $(LIBDEPS)
b6b89215 1859 +$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) gcc-ar.o -o $@ \
c2a73de2 1860 $(AR_OBJS) $(LIBS) $(AR_LIBS)
b6b89215 1861
c2a73de2 1862gcc-nm$(exeext): gcc-nm.o $(AR_OBJS) $(LIBDEPS)
b6b89215 1863 +$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) gcc-nm.o -o $@ \
c2a73de2 1864 $(AR_OBJS) $(LIBS) $(AR_LIBS)
b6b89215 1865
c2a73de2 1866gcc-ranlib$(exeext): gcc-ranlib.o $(AR_OBJS) $(LIBDEPS)
b6b89215 1867 +$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) gcc-ranlib.o -o $@ \
c2a73de2 1868 $(AR_OBJS) $(LIBS) $(AR_LIBS)
b6b89215
AK
1869
1870CFLAGS-gcc-ar.o += $(DRIVER_DEFINES) \
1871 -DTARGET_MACHINE=\"$(target_noncanonical)\" \
1872 @TARGET_SYSTEM_ROOT_DEFINE@ -DPERSONALITY=\"ar\"
1873
1874gcc-ar.o: gcc-ar.c $(CONFIG_H) $(SYSTEM_H) $(LIBIBERTY_H)
1875
1876CFLAGS-gcc-ranlib.o += $(DRIVER_DEFINES) \
1877 -DTARGET_MACHINE=\"$(target_noncanonical)\" \
1878 @TARGET_SYSTEM_ROOT_DEFINE@ -DPERSONALITY=\"ranlib\"
1879
1880gcc-ranlib.o: gcc-ranlib.c $(CONFIG_H) $(SYSTEM_H) $(LIBIBERTY_H)
1881
1882CFLAGS-gcc-nm.o += $(DRIVER_DEFINES) \
1883 -DTARGET_MACHINE=\"$(target_noncanonical)\" \
1884 @TARGET_SYSTEM_ROOT_DEFINE@ -DPERSONALITY=\"nm\"
1885
1886gcc-nm.o: gcc-nm.c $(CONFIG_H) $(SYSTEM_H) $(LIBIBERTY_H)
1887
1888# ??? the implicit rules dont trigger if the source file has a different name
1889# so copy instead
1890gcc-ranlib.c: gcc-ar.c
1891 cp $^ $@
1892
1893gcc-nm.c: gcc-ar.c
1894 cp $^ $@
1895
c2a73de2 1896COLLECT2_OBJS = collect2.o collect2-aix.o tlink.o vec.o ggc-none.o file-find.o
4e70264f 1897COLLECT2_LIBS = @COLLECT2_LIBS@
a2d25763 1898collect2$(exeext): $(COLLECT2_OBJS) $(LIBDEPS)
057f494b 1899# Don't try modifying collect2 (aka ld) in place--it might be linking this.
a90163e9 1900 +$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o T$@ \
4e70264f 1901 $(COLLECT2_OBJS) $(LIBS) $(COLLECT2_LIBS)
ff0a63e8 1902 mv -f T$@ $@
79d8453e 1903
c5bc3df6
JM
1904CFLAGS-collect2.o += -DTARGET_MACHINE=\"$(target_noncanonical)\" \
1905 @TARGET_SYSTEM_ROOT_DEFINE@
e980df8e 1906collect2.o : collect2.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) intl.h \
9e350e99 1907 $(OBSTACK_H) $(DEMANGLE_H) collect2.h collect2-aix.h version.h \
c2a73de2 1908 $(DIAGNOSTIC_H) file-find.h
dfb636dc
RS
1909
1910collect2-aix.o : collect2-aix.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
1911 collect2-aix.h
e980df8e
TT
1912
1913tlink.o: tlink.c $(DEMANGLE_H) $(HASHTAB_H) $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
bd12b9fc 1914 $(OBSTACK_H) collect2.h intl.h $(DIAGNOSTIC_CORE_H) $(VEC_H)
e980df8e 1915
f31c0018
RG
1916lto-wrapper$(exeext): lto-wrapper.o ggc-none.o libcommon-target.a $(LIBDEPS)
1917 +$(LINKER) $(ALL_COMPILERFLAGS) $(LDFLAGS) -o T$@ \
1918 lto-wrapper.o ggc-none.o libcommon-target.a $(LIBS)
d7f09764
DN
1919 mv -f T$@ $@
1920
10692477 1921lto-wrapper.o: lto-wrapper.c $(CONFIG_H) $(SYSTEM_H) coretypes.h intl.h \
f31c0018 1922 $(OBSTACK_H) $(DIAGNOSTIC_H) $(OPTS_H) $(OPTIONS_H)
d7f09764 1923
d4a10d0a
SB
1924# Files used by all variants of C or by the stand-alone pre-processor.
1925c-family/cppspec.o: c-family/cppspec.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
1926 $(TM_H) $(GCC_H) $(OPTS_H)
1927
39dabefd
SB
1928c-family/c-common.o : c-family/c-common.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
1929 $(TM_H) $(TREE_H) \
7c475d11 1930 $(OBSTACK_H) $(C_COMMON_H) $(FLAGS_H) toplev.h output.h $(C_PRAGMA_H) \
4d451982 1931 $(GGC_H) builtin-types.def builtin-attrs.def \
61d3ce20 1932 $(DIAGNOSTIC_H) langhooks.h c-family/c-objc.h \
39dabefd 1933 $(TARGET_H) tree-iterator.h langhooks.h tree-mudflap.h \
a4d8c676 1934 intl.h $(OPTS_H) $(CPPLIB_H) $(TREE_INLINE_H) $(HASHTAB_H) \
6bdf3519 1935 $(BUILTINS_DEF) $(CGRAPH_H) $(TARGET_DEF_H) \
677f3fa8 1936 gt-c-family-c-common.h $(COMMON_TARGET_H)
e980df8e 1937
39dabefd
SB
1938c-family/c-cppbuiltin.o : c-family/c-cppbuiltin.c $(CONFIG_H) $(SYSTEM_H) \
1939 coretypes.h $(TM_H) $(TREE_H) version.h $(C_COMMON_H) $(C_PRAGMA_H) \
677f3fa8 1940 $(FLAGS_H) output.h $(TREE_H) $(TARGET_H) $(COMMON_TARGET_H) \
82a1c2fe 1941 $(TM_P_H) debug.h $(CPP_ID_DATA_H) cppbuiltin.h
39dabefd
SB
1942
1943c-family/c-dump.o : c-family/c-dump.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
1944 $(TM_H) $(TREE_H) $(TREE_DUMP_H)
e980df8e 1945
39dabefd
SB
1946c-family/c-format.o : c-family/c-format.c c-family/c-format.h \
1947 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) langhooks.h \
acce4e77 1948 $(C_COMMON_H) $(FLAGS_H) intl.h $(C_TARGET_H) \
61d3ce20 1949 $(DIAGNOSTIC_CORE_H) alloc-pool.h c-family/c-objc.h
39dabefd
SB
1950
1951c-family/c-gimplify.o : c-family/c-gimplify.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) \
1952 $(C_COMMON_H) $(DIAGNOSTIC_CORE_H) $(GIMPLE_H) \
7c475d11 1953 $(FLAGS_H) langhooks.h $(LANGHOOKS_DEF_H) \
6bdf3519 1954 $(TM_H) coretypes.h $(C_PRETTY_PRINT_H) $(CGRAPH_H) \
7ee2468b 1955 dumpfile.h $(TREE_INLINE_H)
39dabefd
SB
1956
1957c-family/c-lex.o : c-family/c-lex.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
1958 $(TM_H) $(TREE_H) $(FIXED_VALUE_H) debug.h $(C_COMMON_H) $(SPLAY_TREE_H) \
a8781821 1959 $(C_PRAGMA_H) $(INPUT_H) intl.h $(FLAGS_H) \
39dabefd
SB
1960 $(CPPLIB_H) $(TARGET_H) $(TIMEVAR_H)
1961
1962c-family/c-omp.o : c-family/c-omp.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
7c475d11 1963 $(TREE_H) $(C_COMMON_H) $(GIMPLE_H) langhooks.h
39dabefd 1964
c5bc3df6 1965CFLAGS-c-family/c-opts.o += @TARGET_SYSTEM_ROOT_DEFINE@
39dabefd 1966c-family/c-opts.o : c-family/c-opts.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
7c475d11 1967 $(TREE_H) $(C_PRAGMA_H) $(FLAGS_H) toplev.h langhooks.h \
acce4e77 1968 $(DIAGNOSTIC_H) intl.h debug.h $(C_COMMON_H) $(C_TARGET_H) \
a4d8c676 1969 $(OPTS_H) $(OPTIONS_H) $(MKDEPS_H) incpath.h cppdefault.h
e980df8e 1970
c5bc3df6
JM
1971CFLAGS-c-family/c-pch.o += -DHOST_MACHINE=\"$(host)\" \
1972 -DTARGET_MACHINE=\"$(target)\"
39dabefd 1973c-family/c-pch.o : c-family/c-pch.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
7c475d11 1974 $(CPPLIB_H) $(TREE_H) $(C_COMMON_H) output.h $(C_PRAGMA_H) \
39dabefd 1975 $(GGC_H) debug.h langhooks.h $(FLAGS_H) hosthooks.h version.h \
a4d8c676 1976 $(TARGET_H) $(OPTS_H) $(TIMEVAR_H)
e980df8e 1977
39dabefd
SB
1978c-family/c-ppoutput.o : c-family/c-ppoutput.c $(CONFIG_H) $(SYSTEM_H) \
1979 coretypes.h $(C_COMMON_H) $(TREE_H) $(CPPLIB_H) $(CPP_INTERNAL_H) \
1980 $(C_PRAGMA_H)
e980df8e 1981
39dabefd 1982c-family/c-pragma.o: c-family/c-pragma.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
7c475d11 1983 $(TM_H) $(TREE_H) $(FUNCTION_H) $(C_PRAGMA_H) output.h \
39dabefd 1984 $(TM_P_H) $(C_COMMON_H) $(TARGET_H) $(CPPLIB_H) $(FLAGS_H) \
a4d8c676 1985 $(DIAGNOSTIC_H) $(OPTS_H) $(PLUGINS_H) \
39dabefd 1986 gt-c-family-c-pragma.h
e980df8e 1987
39dabefd
SB
1988c-family/c-pretty-print.o : c-family/c-pretty-print.c $(C_PRETTY_PRINT_H) \
1989 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
ee666c25 1990 $(DIAGNOSTIC_H) tree-iterator.h intl.h $(TREE_PRETTY_PRINT_H)
e980df8e 1991
39dabefd 1992c-family/c-semantics.o : c-family/c-semantics.c $(CONFIG_H) $(SYSTEM_H) \
be7a421e 1993 coretypes.h $(TM_H) $(TREE_H) $(FLAGS_H) \
39dabefd
SB
1994 $(C_COMMON_H) $(FUNCTION_H) langhooks.h $(SPLAY_TREE_H) $(TIMEVAR_H) \
1995 tree-iterator.h
e980df8e 1996
39dabefd
SB
1997c-family/c-ada-spec.o : c-family/c-ada-spec.c c-family/c-ada-spec.h \
1998 $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(CPP_ID_DATA_H) $(TM_H) \
7ee2468b 1999 coretypes.h tree-iterator.h dumpfile.h
39dabefd
SB
2000
2001c-family/stub-objc.o : c-family/stub-objc.c $(CONFIG_H) $(SYSTEM_H) \
61d3ce20 2002 coretypes.h $(TREE_H) $(C_COMMON_H) c-family/c-objc.h
e980df8e 2003
acce4e77
JM
2004default-c.o: config/default-c.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2005 $(C_TARGET_H) $(C_TARGET_DEF_H)
2006 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) \
2007 $< $(OUTPUT_OPTION)
e980df8e 2008
39dabefd
SB
2009# Files used by all variants of C and some other languages.
2010
2011attribs.o : attribs.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
ee666c25 2012 $(FLAGS_H) $(DIAGNOSTIC_CORE_H) $(GGC_H) $(TM_P_H) \
39dabefd
SB
2013 $(TARGET_H) langhooks.h $(CPPLIB_H) $(PLUGIN_H)
2014
2015incpath.o: incpath.c incpath.h $(CONFIG_H) $(SYSTEM_H) $(CPPLIB_H) \
2016 intl.h prefix.h coretypes.h $(TM_H) cppdefault.h $(TARGET_H) \
2017 $(MACHMODE_H)
2018
c5bc3df6 2019CFLAGS-prefix.o += -DPREFIX=\"$(prefix)\" -DBASEVER=$(BASEVER_s)
c49a6962
JM
2020prefix.o: prefix.c $(CONFIG_H) $(SYSTEM_H) coretypes.h prefix.h \
2021 $(COMMON_TARGET_H) Makefile $(BASEVER)
79d8453e 2022
e980df8e 2023# Language-independent files.
2fe3178b 2024
610c62ac 2025DRIVER_DEFINES = \
0deb20df 2026 -DSTANDARD_STARTFILE_PREFIX=\"$(unlibsubdir)/\" \
a8ee6e2d
GK
2027 -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc/\" \
2028 -DSTANDARD_LIBEXEC_PREFIX=\"$(libexecdir)/gcc/\" \
964ceda1 2029 -DDEFAULT_TARGET_VERSION=\"$(version)\" \
caa55b1e 2030 -DDEFAULT_TARGET_MACHINE=\"$(target_noncanonical)\" \
0deb20df 2031 -DSTANDARD_BINDIR_PREFIX=\"$(bindir)/\" \
15c723f3 2032 -DTOOLDIR_BASE_PREFIX=\"$(libsubdir_to_prefix)$(prefix_to_exec_prefix)\" \
4977bab6 2033 @TARGET_SYSTEM_ROOT_DEFINE@ \
414d23ae 2034 $(VALGRIND_DRIVER_DEFINES) \
b040f2be 2035 `test "X$${SHLIB}" = "X" || test "@enable_shared@" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` \
e11ddaf5 2036 -DCONFIGURE_SPECS="\"@CONFIGURE_SPECS@\""
e980df8e
TT
2037
2038gcc.o: gcc.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) intl.h multilib.h \
2039 Makefile $(lang_specs_files) specs.h prefix.h $(GCC_H) $(FLAGS_H) \
a7d0d30f 2040 configargs.h $(OBSTACK_H) $(OPTS_H) $(DIAGNOSTIC_H) $(VEC_H) $(PARAMS_H)
b040f2be 2041 (SHLIB='$(SHLIB)'; \
7980bfb8 2042 $(COMPILER) $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) \
e980df8e
TT
2043 $(DRIVER_DEFINES) \
2044 -c $(srcdir)/gcc.c $(OUTPUT_OPTION))
2045
0d24f4d1
ZW
2046specs.h : s-specs ; @true
2047s-specs : Makefile
766c7ad1
ZW
2048 lsf="$(lang_specs_files)"; for f in $$lsf; do \
2049 echo "#include \"$$f\""; \
0d24f4d1 2050 done | sed 's|$(srcdir)/||' > tmp-specs.h
88e3a2a3 2051 $(SHELL) $(srcdir)/../move-if-change tmp-specs.h specs.h
0d24f4d1
ZW
2052 $(STAMP) s-specs
2053
776dc15d 2054optionlist: s-options ; @true
75685792
RS
2055s-options: $(ALL_OPT_FILES) Makefile $(srcdir)/opt-gather.awk
2056 $(AWK) -f $(srcdir)/opt-gather.awk $(ALL_OPT_FILES) > tmp-optionlist
776dc15d 2057 $(SHELL) $(srcdir)/../move-if-change tmp-optionlist optionlist
469ef4a3
ILT
2058 $(STAMP) s-options
2059
86fa5de4
JM
2060options.c: optionlist $(srcdir)/opt-functions.awk $(srcdir)/opt-read.awk \
2061 $(srcdir)/optc-gen.awk
2062 $(AWK) -f $(srcdir)/opt-functions.awk -f $(srcdir)/opt-read.awk \
2063 -f $(srcdir)/optc-gen.awk \
6be4d3ac 2064 -v header_name="config.h system.h coretypes.h options.h tm.h" < $< > $@
776dc15d 2065
57dfdff0
JM
2066options-save.c: optionlist $(srcdir)/opt-functions.awk $(srcdir)/opt-read.awk \
2067 $(srcdir)/optc-save-gen.awk
2068 $(AWK) -f $(srcdir)/opt-functions.awk -f $(srcdir)/opt-read.awk \
2069 -f $(srcdir)/optc-save-gen.awk \
2070 -v header_name="config.h system.h coretypes.h tm.h" < $< > $@
2071
75685792 2072options.h: s-options-h ; @true
86fa5de4
JM
2073s-options-h: optionlist $(srcdir)/opt-functions.awk $(srcdir)/opt-read.awk \
2074 $(srcdir)/opth-gen.awk
2075 $(AWK) -f $(srcdir)/opt-functions.awk -f $(srcdir)/opt-read.awk \
2076 -f $(srcdir)/opth-gen.awk \
75685792
RS
2077 < $< > tmp-options.h
2078 $(SHELL) $(srcdir)/../move-if-change tmp-options.h options.h
2079 $(STAMP) $@
776dc15d 2080
57dfdff0 2081options.o: options.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
c344a866 2082 $(TM_H) $(OPTS_H) intl.h $(OPTIONS_C_EXTRA) insn-attr-common.h
e980df8e 2083
57dfdff0
JM
2084options-save.o: options-save.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TARGET_H) $(FLAGS_H) \
2085 $(TM_H) $(OPTS_H) intl.h $(OPTIONS_C_EXTRA)
e980df8e 2086
79d8453e
RS
2087dumpvers: dumpvers.c
2088
c5bc3df6 2089CFLAGS-version.o += -DBASEVER=$(BASEVER_s) -DDATESTAMP=$(DATESTAMP_s) \
e980df8e
TT
2090 -DREVISION=$(REVISION_s) \
2091 -DDEVPHASE=$(DEVPHASE_s) -DPKGVERSION=$(PKGVERSION_s) \
c5bc3df6
JM
2092 -DBUGURL=$(BUGURL_s)
2093version.o: version.c version.h $(REVISION) $(DATESTAMP) $(BASEVER) $(DEVPHASE)
e980df8e
TT
2094
2095gtype-desc.o: gtype-desc.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
b6feb796 2096 $(HASHTAB_H) $(SPLAY_TREE_H) $(OBSTACK_H) $(BITMAP_H) \
464778c0 2097 $(INPUT_H) $(TREE_H) $(RTL_H) $(FUNCTION_H) insn-config.h $(EXPR_H) \
e63ea00c 2098 hard-reg-set.h $(BASIC_BLOCK_H) cselib.h $(INSN_ADDR_H) $(OPTABS_H) \
9f7f1892 2099 $(LIBFUNCS_H) debug.h $(GGC_H) $(CGRAPH_H) $(TREE_FLOW_H) reload.h \
78bde837 2100 $(CPP_ID_DATA_H) tree-chrec.h $(EXCEPT_H) output.h \
3bd36029
RS
2101 $(CFGLOOP_H) $(TARGET_H) $(IPA_PROP_H) $(LTO_STREAMER_H) \
2102 target-globals.h
e980df8e 2103
0a35513e
AH
2104trans-mem.o : trans-mem.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2105 $(TREE_H) $(GIMPLE_H) $(TREE_FLOW_H) $(TREE_PASS_H) $(TREE_INLINE_H) \
2106 $(DIAGNOSTIC_CORE_H) $(DEMANGLE_H) output.h $(TRANS_MEM_H) \
2107 $(PARAMS_H) $(TARGET_H) langhooks.h \
6f4185d7
SB
2108 $(GIMPLE_PRETTY_PRINT_H) $(CFGLOOP_H) \
2109 gt-trans-mem.h
0a35513e 2110
ae2392a9 2111ggc-common.o: ggc-common.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
7c475d11 2112 $(GGC_H) $(HASHTAB_H) $(DIAGNOSTIC_CORE_H) $(PARAMS_H) hosthooks.h \
a9429e29 2113 $(HOSTHOOKS_DEF_H) $(VEC_H) $(PLUGIN_H) $(GGC_INTERNAL_H) $(TIMEVAR_H)
e980df8e
TT
2114
2115ggc-page.o: ggc-page.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(TREE_H) \
c59ffc41 2116 $(FLAGS_H) $(DIAGNOSTIC_CORE_H) $(GGC_H) $(TIMEVAR_H) $(TM_P_H) $(PARAMS_H) \
a9429e29 2117 $(TREE_FLOW_H) $(PLUGIN_H) $(GGC_INTERNAL_H)
e980df8e
TT
2118
2119ggc-zone.o: ggc-zone.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
c59ffc41 2120 $(TREE_H) $(FLAGS_H) $(DIAGNOSTIC_CORE_H) $(GGC_H) $(TIMEVAR_H) $(TM_P_H) \
a9429e29 2121 $(PARAMS_H) $(BITMAP_H) $(PLUGIN_H) $(GGC_INTERNAL_H)
e980df8e
TT
2122
2123ggc-none.o: ggc-none.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(GGC_H) \
2124 $(BCONFIG_H)
2125
8e65c286 2126stringpool.o: stringpool.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
a9429e29 2127 $(TREE_H) $(GGC_H) $(GGC_INTERNAL_H) gt-stringpool.h $(CPPLIB_H) $(SYMTAB_H)
e980df8e 2128
e980df8e 2129convert.o: convert.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
7c475d11 2130 $(FLAGS_H) convert.h $(DIAGNOSTIC_CORE_H) langhooks.h
e980df8e 2131
ee666c25 2132double-int.o: double-int.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H)
e980df8e 2133
d7f09764 2134# lto-compress.o needs $(ZLIBINC) added to the include flags.
c5bc3df6 2135CFLAGS-lto-compress.o += $(ZLIBINC)
d7f09764 2136lto-compress.o: lto-compress.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
47c79d56 2137 $(TREE_H) langhooks.h $(LTO_STREAMER_H) $(LTO_SECTION_H) \
7c475d11 2138 lto-compress.h $(DIAGNOSTIC_CORE_H) $(DIAGNOSTIC_CORE_H)
f0efc7aa
DN
2139data-streamer-in.o: data-streamer-in.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2140 $(DATA_STREAMER_H) $(DIAGNOSTIC_H)
2141data-streamer-out.o: data-streamer-out.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2142 $(DATA_STREAMER_H)
2143data-streamer.o: data-streamer.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2144 $(DATA_STREAMER_H)
2145gimple-streamer-in.o: gimple-streamer-in.c $(CONFIG_H) $(SYSTEM_H) \
2146 coretypes.h $(GIMPLE_STREAMER_H) $(TREE_FLOW_H) $(DATA_STREAMER_H) \
2147 $(TREE_STREAMER_H) $(DIAGNOSTIC_H)
2148gimple-streamer-out.o: gimple-streamer-out.c $(CONFIG_H) $(SYSTEM_H) \
2149 coretypes.h $(GIMPLE_STREAMER_H) $(DATA_STREAMER_H) $(TREE_FLOW_H) \
b9393656 2150 $(LTO_STREAMER_H) $(TREE_STREAMER_H)
f0efc7aa
DN
2151tree-streamer.o: tree-streamer.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2152 $(TREE_STREAMER_H) $(STREAMER_HOOKS_H)
2153tree-streamer-in.o: tree-streamer-in.c $(CONFIG_H) $(SYSTEM_H) \
2154 coretypes.h $(DIAGNOSTIC_H) $(TREE_H) $(TREE_FLOW_H) $(TREE_STREAMER_H) \
2155 $(DATA_STREAMER_H) $(STREAMER_HOOKS_H) $(LTO_STREAMER_H)
2156tree-streamer-out.o: tree-streamer-out.c $(CONFIG_H) $(SYSTEM_H) \
2157 coretypes.h $(DIAGNOSTIC_H) $(TREE_STREAMER_H) $(DATA_STREAMER_H) \
2158 $(STREAMER_HOOKS_H)
2159streamer-hooks.o: streamer-hooks.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2160 $(STREAMER_HOOKS_H)
d7f09764 2161lto-cgraph.o: lto-cgraph.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
7c475d11 2162 $(TM_H) $(DIAGNOSTIC_CORE_H) $(EXPR_H) $(FLAGS_H) $(PARAMS_H) input.h \
9aae8d16 2163 $(HASHTAB_H) langhooks.h $(BASIC_BLOCK_H) \
1da2ed5f 2164 $(TREE_FLOW_H) $(CGRAPH_H) $(FUNCTION_H) $(GGC_H) $(DIAGNOSTIC_CORE_H) \
be7a421e 2165 $(EXCEPT_H) $(TIMEVAR_H) pointer-set.h $(LTO_STREAMER_H) \
7d57274b 2166 $(GCOV_IO_H) $(DATA_STREAMER_H) $(TREE_STREAMER_H) $(TREE_PASS_H)
d7f09764 2167lto-streamer-in.o: lto-streamer-in.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
723cd7ab
RH
2168 $(TM_H) toplev.h $(DIAGNOSTIC_CORE_H) $(EXPR_H) $(FLAGS_H) $(PARAMS_H) \
2169 input.h $(HASHTAB_H) $(BASIC_BLOCK_H) $(TREE_FLOW_H) $(TREE_PASS_H) \
2170 $(CGRAPH_H) $(FUNCTION_H) $(GGC_H) $(DIAGNOSTIC_H) $(EXCEPT_H) debug.h \
7ee2468b 2171 $(IPA_UTILS_H) $(LTO_STREAMER_H) toplev.h \
f0efc7aa 2172 $(DATA_STREAMER_H) $(GIMPLE_STREAMER_H) $(TREE_STREAMER_H)
d7f09764 2173lto-streamer-out.o : lto-streamer-out.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
7c475d11 2174 $(TM_H) $(DIAGNOSTIC_CORE_H) $(TREE_H) $(EXPR_H) $(FLAGS_H) $(PARAMS_H) input.h \
9aae8d16 2175 $(HASHTAB_H) $(BASIC_BLOCK_H) tree-iterator.h \
d7f09764 2176 $(TREE_FLOW_H) $(TREE_PASS_H) $(CGRAPH_H) $(FUNCTION_H) $(GGC_H) \
f0efc7aa
DN
2177 $(DIAGNOSTIC_CORE_H) $(EXCEPT_H) $(LTO_STREAMER_H) $(DIAGNOSTIC_CORE_H) \
2178 $(DATA_STREAMER_H) $(STREAMER_HOOKS_H) $(GIMPLE_STREAMER_H) \
2179 $(TREE_STREAMER_H)
d7f09764 2180lto-section-in.o: lto-section-in.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
7c475d11 2181 $(DIAGNOSTIC_CORE_H) $(EXPR_H) $(FLAGS_H) $(PARAMS_H) input.h \
d7f09764 2182 $(HASHTAB_H) $(BASIC_BLOCK_H) $(TREE_FLOW_H) $(CGRAPH_H) $(FUNCTION_H) \
be7a421e 2183 $(GGC_H) $(DIAGNOSTIC_CORE_H) $(EXCEPT_H) $(TIMEVAR_H) \
d7f09764
DN
2184 $(LTO_STREAMER_H) lto-compress.h
2185lto-section-out.o : lto-section-out.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
7c475d11 2186 $(TM_H) $(DIAGNOSTIC_CORE_H) $(TREE_H) $(EXPR_H) $(PARAMS_H) input.h \
7ee2468b 2187 $(HASHTAB_H) $(BASIC_BLOCK_H) $(TREE_FLOW_H) \
3b06d379 2188 $(CGRAPH_H) $(FUNCTION_H) $(GGC_H) $(EXCEPT_H) pointer-set.h \
412288f1
DN
2189 $(BITMAP_H) langhooks.h $(LTO_STREAMER_H) lto-compress.h \
2190 $(DATA_STREAMER_H)
d7f09764 2191lto-symtab.o: lto-symtab.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
b305e3da 2192 $(TREE_H) $(GIMPLE_H) $(GGC_H) $(HASHTAB_H) \
74adb444 2193 $(LTO_STREAMER_H) $(LINKER_PLUGIN_API_H)
d7f09764 2194lto-opts.o: lto-opts.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TREE_H) \
a4d8c676 2195 $(HASHTAB_H) $(GGC_H) $(BITMAP_H) $(FLAGS_H) $(OPTS_H) $(OPTIONS_H) \
677f3fa8 2196 $(COMMON_TARGET_H) $(DIAGNOSTIC_H) $(LTO_STREAMER_H)
d7f09764
DN
2197lto-streamer.o: lto-streamer.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2198 $(TM_H) $(TREE_H) $(GIMPLE_H) $(BITMAP_H) $(LTO_STREAMER_H) $(FLAGS_H) \
f0efc7aa
DN
2199 $(TREE_FLOW_H) $(DIAGNOSTIC_CORE_H) $(LTO_SYMTAB_H) toplev.h \
2200 $(DIAGNOSTIC_CORE_H) $(STREAMER_HOOKS_H)
7ee2468b 2201langhooks.o : langhooks.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TIMEVAR_H) \
6399c0ab 2202 $(TREE_H) toplev.h $(DIAGNOSTIC_CORE_H) $(TREE_INLINE_H) $(RTL_H) insn-config.h \
e63ea00c 2203 langhooks.h $(TARGET_H) $(LANGHOOKS_DEF_H) $(FLAGS_H) $(GGC_H) $(DIAGNOSTIC_H) \
cf835838 2204 intl.h $(GIMPLE_H) $(CGRAPH_H) output.h tree-diagnostic.h
40013784 2205tree.o: tree.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
c0ed0531 2206 all-tree.def $(FLAGS_H) $(FUNCTION_H) $(PARAMS_H) \
7c475d11 2207 toplev.h $(DIAGNOSTIC_CORE_H) $(GGC_H) $(HASHTAB_H) $(TARGET_H) output.h $(TM_P_H) \
40013784
SB
2208 langhooks.h gt-tree.h $(TREE_INLINE_H) tree-iterator.h \
2209 $(BASIC_BLOCK_H) $(TREE_FLOW_H) $(OBSTACK_H) pointer-set.h \
7ee2468b 2210 $(TREE_PASS_H) $(LANGHOOKS_DEF_H) $(DIAGNOSTIC_H) $(CGRAPH_H) \
ee666c25 2211 $(EXCEPT_H) debug.h intl.h tree-diagnostic.h $(TREE_PRETTY_PRINT_H) \
677f3fa8 2212 $(COMMON_TARGET_H)
78c60e3d
SS
2213tree-dump.o: tree-dump.c $(CONFIG_H) $(SYSTEM_H) $(TM_H) $(TREE_H) \
2214 langhooks.h $(TREE_DUMP_H) tree-iterator.h
e980df8e 2215tree-inline.o : tree-inline.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
6f4185d7 2216 $(TREE_H) $(RTL_H) $(FLAGS_H) $(PARAMS_H) $(INPUT_H) insn-config.h \
a803773f 2217 $(HASHTAB_H) langhooks.h $(TREE_INLINE_H) $(CGRAPH_H) \
086058c2 2218 intl.h $(FUNCTION_H) $(GIMPLE_H) \
a8da523f 2219 debug.h $(DIAGNOSTIC_H) $(EXCEPT_H) $(TREE_FLOW_H) tree-iterator.h tree-mudflap.h \
6399c0ab 2220 $(IPA_PROP_H) value-prof.h $(TREE_PASS_H) $(TARGET_H) \
ee666c25 2221 $(TREE_PRETTY_PRINT_H)
7ee2468b
SB
2222print-tree.o : print-tree.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h \
2223 $(TM_H) $(TREE_H) $(GGC_H) langhooks.h tree-iterator.h \
2224 $(DIAGNOSTIC_H) $(TREE_FLOW_H) $(GIMPLE_PRETTY_PRINT_H)
e980df8e 2225stor-layout.o : stor-layout.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
be7a421e 2226 $(TREE_H) $(PARAMS_H) $(FLAGS_H) $(FUNCTION_H) $(EXPR_H) $(RTL_H) \
e980df8e 2227 $(GGC_H) $(TM_P_H) $(TARGET_H) langhooks.h $(REGS_H) gt-stor-layout.h \
c59ffc41 2228 $(DIAGNOSTIC_CORE_H) $(CGRAPH_H) $(TREE_INLINE_H) $(TREE_DUMP_H) $(GIMPLE_H)
f6d98484
JJ
2229asan.o : asan.c asan.h $(CONFIG_H) $(SYSTEM_H) $(GIMPLE_H) \
2230 output.h coretypes.h $(GIMPLE_PRETTY_PRINT_H) \
2231 tree-iterator.h $(TREE_FLOW_H) $(TREE_PASS_H) \
daa2dcb5 2232 $(TARGET_H) $(EXPR_H) $(OPTABS_H) $(TM_P_H)
32b4b7f5
DV
2233tsan.o : $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(TREE_INLINE_H) \
2234 $(GIMPLE_H) $(DIAGNOSTIC_H) langhooks.h \
2235 $(TM_H) coretypes.h $(TREE_DUMP_H) $(TREE_PASS_H) $(CGRAPH_H) $(GGC_H) \
2236 $(BASIC_BLOCK_H) $(FLAGS_H) $(FUNCTION_H) \
2237 $(TM_P_H) $(TREE_FLOW_H) $(DIAGNOSTIC_CORE_H) $(GIMPLE_H) tree-iterator.h \
2238 intl.h cfghooks.h output.h options.h c-family/c-common.h tsan.h
c9e93168
TV
2239tree-ssa-tail-merge.o: tree-ssa-tail-merge.c \
2240 $(SYSTEM_H) $(CONFIG_H) coretypes.h $(TM_H) $(BITMAP_H) \
be7a421e 2241 $(FLAGS_H) $(TM_P_H) $(BASIC_BLOCK_H) \
0823efed 2242 $(TREE_H) $(TREE_FLOW_H) $(TREE_INLINE_H) $(TREE_DUMP_H) $(HASH_TABLE_H) \
7ee2468b 2243 $(GIMPLE_H) $(FUNCTION_H) tree-ssa-sccvn.h \
ee666c25 2244 $(CGRAPH_H) $(GIMPLE_PRETTY_PRINT_H) $(PARAMS_H)
5006671f 2245tree-ssa-structalias.o: tree-ssa-structalias.c \
e63ea00c 2246 $(SYSTEM_H) $(CONFIG_H) coretypes.h $(TM_H) $(GGC_H) $(OBSTACK_H) $(BITMAP_H) \
be7a421e 2247 $(FLAGS_H) $(TM_P_H) $(BASIC_BLOCK_H) \
7c475d11 2248 $(DIAGNOSTIC_H) $(TREE_H) $(TREE_FLOW_H) $(TREE_INLINE_H) \
237ee620 2249 $(GIMPLE_H) $(HASHTAB_H) $(FUNCTION_H) $(CGRAPH_H) \
7ee2468b 2250 $(TREE_PASS_H) alloc-pool.h $(SPLAY_TREE_H) $(PARAMS_H) \
7d6e2521 2251 $(CGRAPH_H) $(ALIAS_H) pointer-set.h
34f97b94 2252tree-ssa-uninit.o : tree-ssa-uninit.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
be7a421e 2253 $(TREE_H) $(TM_P_H) $(DIAGNOSTIC_H) \
7ee2468b
SB
2254 $(FUNCTION_H) $(TM_H) coretypes.h \
2255 $(TREE_PASS_H) $(BASIC_BLOCK_H) $(BITMAP_H) \
40013784 2256 $(FLAGS_H) $(HASHTAB_H) pointer-set.h \
ee666c25 2257 $(GIMPLE_H) $(TREE_INLINE_H) $(GIMPLE_PRETTY_PRINT_H)
e980df8e 2258tree-ssa.o : tree-ssa.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
be7a421e 2259 $(TREE_H) $(TM_P_H) $(EXPR_H) $(DIAGNOSTIC_H) \
7ee2468b
SB
2260 toplev.h $(FUNCTION_H) $(TM_H) coretypes.h \
2261 langhooks.h $(TREE_PASS_H) $(BASIC_BLOCK_H) $(BITMAP_H) \
40013784 2262 $(FLAGS_H) $(GGC_H) $(HASHTAB_H) pointer-set.h \
ee666c25
SB
2263 $(GIMPLE_H) $(TREE_INLINE_H) $(TARGET_H) \
2264 $(GIMPLE_PRETTY_PRINT_H) $(CFGLOOP_H)
e980df8e 2265tree-into-ssa.o : tree-into-ssa.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
d8d707b4 2266 $(TREE_H) $(TM_P_H) $(DIAGNOSTIC_CORE_H) \
7ee2468b 2267 $(FUNCTION_H) $(TM_H) coretypes.h \
40013784
SB
2268 langhooks.h domwalk.h $(TREE_PASS_H) $(PARAMS_H) $(BASIC_BLOCK_H) \
2269 $(BITMAP_H) $(CFGLOOP_H) $(FLAGS_H) $(HASHTAB_H) \
9771b263 2270 $(GIMPLE_H) $(TREE_INLINE_H) $(GIMPLE_PRETTY_PRINT_H)
e980df8e 2271tree-ssa-ter.o : tree-ssa-ter.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
7ee2468b 2272 $(TREE_H) $(DIAGNOSTIC_H) $(TM_H) coretypes.h dumpfile.h \
ee666c25
SB
2273 $(TREE_SSA_LIVE_H) $(BITMAP_H) $(FLAGS_H) \
2274 $(GIMPLE_PRETTY_PRINT_H)
e980df8e 2275tree-ssa-coalesce.o : tree-ssa-coalesce.c $(TREE_FLOW_H) $(CONFIG_H) \
7ee2468b 2276 $(SYSTEM_H) $(TREE_H) $(DIAGNOSTIC_H) $(TM_H) coretypes.h dumpfile.h \
0823efed 2277 $(TREE_SSA_LIVE_H) $(BITMAP_H) $(FLAGS_H) $(HASH_TABLE_H) \
ee666c25 2278 $(TREE_PRETTY_PRINT_H)
e980df8e 2279tree-outof-ssa.o : tree-outof-ssa.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
7ee2468b
SB
2280 $(TREE_H) $(DIAGNOSTIC_H) $(TM_H) coretypes.h dumpfile.h \
2281 $(TREE_SSA_LIVE_H) $(BASIC_BLOCK_H) $(BITMAP_H) $(GGC_H) \
ee666c25 2282 $(EXPR_H) $(SSAEXPAND_H) $(GIMPLE_PRETTY_PRINT_H)
e980df8e 2283tree-ssa-dse.o : tree-ssa-dse.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
6f4185d7 2284 $(TM_H) $(GGC_H) $(TREE_H) $(TM_P_H) $(BASIC_BLOCK_H) \
7ee2468b
SB
2285 $(TREE_FLOW_H) $(TREE_PASS_H) domwalk.h $(FLAGS_H) \
2286 $(GIMPLE_PRETTY_PRINT_H) langhooks.h
e980df8e 2287tree-ssa-forwprop.o : tree-ssa-forwprop.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
391886c8 2288 $(TM_H) $(TREE_H) $(TM_P_H) $(BASIC_BLOCK_H) $(CFGLOOP_H) \
7ee2468b 2289 $(TREE_FLOW_H) $(TREE_PASS_H) $(DIAGNOSTIC_H) \
148e45e5 2290 langhooks.h $(FLAGS_H) $(GIMPLE_H) $(GIMPLE_PRETTY_PRINT_H) $(EXPR_H) \
f2167d68 2291 $(OPTABS_H) tree-ssa-propagate.h
5a3db6d5 2292tree-ssa-phiprop.o : tree-ssa-phiprop.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
40013784 2293 $(TM_H) $(TREE_H) $(TM_P_H) $(BASIC_BLOCK_H) \
7ee2468b 2294 $(TREE_FLOW_H) $(TREE_PASS_H) $(DIAGNOSTIC_H) \
ee666c25 2295 langhooks.h $(FLAGS_H) $(GIMPLE_PRETTY_PRINT_H)
e980df8e
TT
2296tree-ssa-ifcombine.o : tree-ssa-ifcombine.c $(CONFIG_H) $(SYSTEM_H) \
2297 coretypes.h $(TM_H) $(TREE_H) $(BASIC_BLOCK_H) \
7ee2468b 2298 $(TREE_FLOW_H) $(TREE_PASS_H) $(DIAGNOSTIC_H) \
ee666c25 2299 $(TREE_PRETTY_PRINT_H)
e980df8e 2300tree-ssa-phiopt.o : tree-ssa-phiopt.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
40013784 2301 $(TM_H) $(GGC_H) $(TREE_H) $(TM_P_H) $(BASIC_BLOCK_H) \
7ee2468b
SB
2302 $(TREE_FLOW_H) $(TREE_PASS_H) langhooks.h $(FLAGS_H) \
2303 $(DIAGNOSTIC_H) pointer-set.h domwalk.h $(CFGLOOP_H) \
372a6eb8
BS
2304 $(TREE_DATA_REF_H) $(TREE_PRETTY_PRINT_H) $(GIMPLE_PRETTY_PRINT_H) \
2305 insn-config.h $(EXPR_H) $(OPTABS_H)
e980df8e 2306tree-nrv.o : tree-nrv.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
40013784 2307 $(TM_H) $(TREE_H) $(FUNCTION_H) $(BASIC_BLOCK_H) $(FLAGS_H) \
7ee2468b 2308 $(DIAGNOSTIC_H) $(TREE_FLOW_H) $(TREE_PASS_H) \
ee666c25 2309 langhooks.h $(TREE_PRETTY_PRINT_H)
e980df8e 2310tree-ssa-copy.o : tree-ssa-copy.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
be7a421e 2311 $(TREE_H) $(TM_P_H) $(GGC_H) $(DIAGNOSTIC_H) \
7ee2468b 2312 $(FUNCTION_H) $(TM_H) coretypes.h \
7072a650 2313 $(BASIC_BLOCK_H) $(TREE_PASS_H) langhooks.h tree-ssa-propagate.h \
ee666c25 2314 $(FLAGS_H) $(CFGLOOP_H) $(GIMPLE_PRETTY_PRINT_H)
e980df8e 2315tree-ssa-propagate.o : tree-ssa-propagate.c $(TREE_FLOW_H) $(CONFIG_H) \
be7a421e 2316 $(SYSTEM_H) $(TREE_H) $(TM_P_H) \
7ee2468b
SB
2317 $(DIAGNOSTIC_H) $(FUNCTION_H) $(TM_H) coretypes.h dumpfile.h \
2318 $(BASIC_BLOCK_H) langhooks.h \
3e097227 2319 tree-ssa-propagate.h $(VEC_H) value-prof.h gt-tree-ssa-propagate.h $(FLAGS_H) \
ee666c25 2320 $(GIMPLE_H) $(GIMPLE_PRETTY_PRINT_H)
e980df8e 2321tree-ssa-dom.o : tree-ssa-dom.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
be7a421e 2322 $(TREE_H) $(TM_P_H) $(DIAGNOSTIC_H) \
7ee2468b 2323 $(FUNCTION_H) $(TM_H) coretypes.h \
7072a650 2324 $(BASIC_BLOCK_H) domwalk.h $(TREE_PASS_H) $(FLAGS_H) langhooks.h \
ee666c25
SB
2325 tree-ssa-propagate.h $(CFGLOOP_H) $(PARAMS_H) \
2326 $(GIMPLE_PRETTY_PRINT_H)
e980df8e 2327tree-ssa-uncprop.o : tree-ssa-uncprop.c $(TREE_FLOW_H) $(CONFIG_H) \
be7a421e 2328 $(SYSTEM_H) $(TREE_H) $(TM_P_H) \
7ee2468b
SB
2329 $(DIAGNOSTIC_H) $(FUNCTION_H) $(TM_H) coretypes.h \
2330 $(BASIC_BLOCK_H) domwalk.h $(TREE_PASS_H) $(FLAGS_H) \
2331 tree-ssa-propagate.h
e980df8e 2332tree-ssa-threadedge.o : tree-ssa-threadedge.c $(TREE_FLOW_H) $(CONFIG_H) \
7ee2468b 2333 $(SYSTEM_H) coretypes.h dumpfile.h $(TM_H) $(TREE_H) $(FLAGS_H) $(TM_P_H) \
be7a421e 2334 $(BASIC_BLOCK_H) $(CFGLOOP_H) \
7ee2468b
SB
2335 $(FUNCTION_H) $(DIAGNOSTIC_H) $(TIMEVAR_H) $(TREE_FLOW_H) \
2336 tree-ssa-propagate.h langhooks.h \
7072a650 2337 $(PARAMS_H)
e980df8e 2338tree-ssa-threadupdate.o : tree-ssa-threadupdate.c $(TREE_FLOW_H) $(CONFIG_H) \
0823efed 2339 $(SYSTEM_H) $(TREE_H) $(TM_P_H) $(HASH_TABLE_H) \
7ee2468b
SB
2340 $(DIAGNOSTIC_H) $(FUNCTION_H) $(TM_H) coretypes.h dumpfile.h \
2341 $(BASIC_BLOCK_H) $(FLAGS_H) $(CFGLOOP_H)
e980df8e 2342tree-ssanames.o : tree-ssanames.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
40013784 2343 $(TM_H) $(TREE_H) $(TREE_FLOW_H) $(TREE_PASS_H)
e980df8e 2344tree-phinodes.o : tree-phinodes.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
9aae8d16 2345 $(TM_H) $(TREE_H) $(GGC_H) $(BASIC_BLOCK_H) $(TREE_FLOW_H) \
46d33ae9 2346 gt-tree-phinodes.h $(DIAGNOSTIC_CORE_H) $(GIMPLE_H)
e980df8e 2347domwalk.o : domwalk.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
7a8cba34 2348 $(BASIC_BLOCK_H) domwalk.h sbitmap.h
e980df8e 2349tree-ssa-live.o : tree-ssa-live.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
7ee2468b 2350 $(TREE_H) $(DIAGNOSTIC_H) $(TM_H) coretypes.h dumpfile.h $(TIMEVAR_H) \
7c475d11 2351 $(TREE_SSA_LIVE_H) $(BITMAP_H) debug.h $(FLAGS_H) \
ee666c25 2352 $(GIMPLE_PRETTY_PRINT_H) $(GIMPLE_H)
e980df8e 2353tree-ssa-copyrename.o : tree-ssa-copyrename.c $(TREE_FLOW_H) $(CONFIG_H) \
7ee2468b
SB
2354 $(SYSTEM_H) $(TREE_H) $(DIAGNOSTIC_H) $(FUNCTION_H) \
2355 $(TREE_PASS_H) $(TM_H) coretypes.h $(TREE_SSA_LIVE_H) \
7072a650 2356 $(BASIC_BLOCK_H) $(BITMAP_H) $(FLAGS_H) $(HASHTAB_H) langhooks.h \
ee666c25 2357 $(GIMPLE_H) $(TREE_INLINE_H) $(GIMPLE_H)
e980df8e 2358tree-ssa-pre.o : tree-ssa-pre.c $(TREE_FLOW_H) $(CONFIG_H) \
7ee2468b
SB
2359 $(SYSTEM_H) $(TREE_H) $(DIAGNOSTIC_H) \
2360 $(TM_H) coretypes.h $(TREE_PASS_H) $(FLAGS_H) langhooks.h \
0823efed 2361 $(CFGLOOP_H) alloc-pool.h $(BASIC_BLOCK_H) $(BITMAP_H) $(HASH_TABLE_H) \
7072a650 2362 $(GIMPLE_H) $(TREE_INLINE_H) tree-iterator.h tree-ssa-sccvn.h $(PARAMS_H) \
40b178f4 2363 $(DBGCNT_H) tree-scalar-evolution.h $(GIMPLE_PRETTY_PRINT_H) domwalk.h
e980df8e 2364tree-ssa-sccvn.o : tree-ssa-sccvn.c $(TREE_FLOW_H) $(CONFIG_H) \
7ee2468b
SB
2365 $(SYSTEM_H) $(TREE_H) $(DIAGNOSTIC_H) \
2366 $(TM_H) coretypes.h dumpfile.h $(FLAGS_H) $(CFGLOOP_H) \
2367 alloc-pool.h $(BASIC_BLOCK_H) $(BITMAP_H) $(HASHTAB_H) $(GIMPLE_H) \
2368 $(TREE_INLINE_H) tree-ssa-propagate.h tree-ssa-sccvn.h \
ee666c25 2369 $(PARAMS_H) $(GIMPLE_PRETTY_PRINT_H) gimple-fold.h
f9453c07
BS
2370gimple-ssa-strength-reduction.o : gimple-ssa-strength-reduction.c $(CONFIG_H) \
2371 $(SYSTEM_H) coretypes.h $(TREE_H) $(GIMPLE_H) $(BASIC_BLOCK_H) \
7ee2468b 2372 $(TREE_PASS_H) $(CFGLOOP_H) $(TREE_PRETTY_PRINT_H) \
f9453c07 2373 $(GIMPLE_PRETTY_PRINT_H) alloc-pool.h $(TREE_FLOW_H) domwalk.h \
6dd8f4bb 2374 pointer-set.h expmed.h
e980df8e 2375tree-vrp.o : tree-vrp.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
7ee2468b 2376 $(TREE_FLOW_H) $(TREE_PASS_H) $(DIAGNOSTIC_CORE_H) $(GGC_H) \
e980df8e 2377 $(BASIC_BLOCK_H) tree-ssa-propagate.h $(FLAGS_H) $(TREE_DUMP_H) \
7ee2468b 2378 $(CFGLOOP_H) $(SCEV_H) intl.h \
ee666c25 2379 $(GIMPLE_PRETTY_PRINT_H) gimple-fold.h $(OPTABS_H) $(EXPR_H)
e980df8e 2380tree-cfg.o : tree-cfg.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
5dfe1ad4 2381 $(TREE_H) $(TM_P_H) $(GGC_H) $(FLAGS_H) $(TARGET_H) \
7ee2468b
SB
2382 $(DIAGNOSTIC_CORE_H) $(FUNCTION_H) $(TM_H) coretypes.h \
2383 $(TREE_DUMP_H) $(EXCEPT_H) $(CFGLOOP_H) $(TREE_PASS_H) \
78bde837 2384 $(BASIC_BLOCK_H) \
ee666c25 2385 value-prof.h tree-ssa-propagate.h $(TREE_INLINE_H) $(GIMPLE_PRETTY_PRINT_H)
e980df8e 2386tree-cfgcleanup.o : tree-cfgcleanup.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
be7a421e 2387 $(TREE_H) $(TM_P_H) $(GGC_H) $(FLAGS_H) \
7ee2468b
SB
2388 $(DIAGNOSTIC_CORE_H) $(FUNCTION_H) $(TM_H) coretypes.h \
2389 $(EXCEPT_H) langhooks.h $(CFGLOOP_H) $(TREE_PASS_H) \
6f4185d7 2390 $(BASIC_BLOCK_H) $(HASHTAB_H) \
223cf84d 2391 tree-ssa-propagate.h $(SCEV_H)
e980df8e 2392tree-tailcall.o : tree-tailcall.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
40013784 2393 $(TREE_H) $(TM_P_H) $(FUNCTION_H) $(TM_H) coretypes.h \
7ee2468b 2394 $(EXCEPT_H) $(TREE_PASS_H) $(FLAGS_H) langhooks.h \
ee666c25 2395 $(BASIC_BLOCK_H) $(DBGCNT_H) $(GIMPLE_PRETTY_PRINT_H) $(TARGET_H) \
677f3fa8 2396 $(COMMON_TARGET_H)
e980df8e 2397tree-ssa-sink.o : tree-ssa-sink.c $(TREE_FLOW_H) $(CONFIG_H) \
7ee2468b
SB
2398 $(SYSTEM_H) $(TREE_H) $(DIAGNOSTIC_H) \
2399 $(TM_H) coretypes.h $(TREE_PASS_H) $(FLAGS_H) alloc-pool.h \
2400 $(BASIC_BLOCK_H) $(BITMAP_H) $(CFGLOOP_H) $(HASHTAB_H) \
2401 $(GIMPLE_H) $(TREE_INLINE_H) tree-iterator.h \
ee666c25 2402 $(GIMPLE_PRETTY_PRINT_H)
e980df8e 2403tree-nested.o: tree-nested.c $(CONFIG_H) $(SYSTEM_H) $(TM_H) $(TREE_H) \
40013784 2404 $(TM_P_H) $(FUNCTION_H) $(TREE_DUMP_H) $(TREE_INLINE_H) \
726a989a 2405 tree-iterator.h $(GIMPLE_H) $(CGRAPH_H) $(EXPR_H) langhooks.h \
40013784 2406 gt-tree-nested.h coretypes.h $(TREE_FLOW_H) pointer-set.h
e980df8e 2407tree-if-conv.o: tree-if-conv.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
7ee2468b 2408 $(TREE_H) $(FLAGS_H) $(BASIC_BLOCK_H) $(TREE_FLOW_H) \
40013784 2409 $(CFGLOOP_H) $(TREE_DATA_REF_H) $(TREE_PASS_H) $(DIAGNOSTIC_H) \
7ee2468b 2410 $(DBGCNT_H) $(GIMPLE_PRETTY_PRINT_H)
e980df8e 2411tree-iterator.o : tree-iterator.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) \
726a989a 2412 coretypes.h $(GGC_H) tree-iterator.h $(GIMPLE_H) gt-tree-iterator.h
e980df8e 2413tree-dfa.o : tree-dfa.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
be7a421e 2414 $(TREE_H) $(TM_P_H) $(GGC_H) $(DIAGNOSTIC_H) \
e980df8e 2415 $(TREE_INLINE_H) $(HASHTAB_H) pointer-set.h $(FLAGS_H) $(FUNCTION_H) \
7ee2468b 2416 convert.h $(TM_H) coretypes.h langhooks.h \
cf835838 2417 $(TREE_PASS_H) $(PARAMS_H) $(CGRAPH_H) $(BASIC_BLOCK_H) $(GIMPLE_H) \
ee666c25 2418 $(TREE_PRETTY_PRINT_H)
e980df8e 2419tree-ssa-operands.o : tree-ssa-operands.c $(TREE_FLOW_H) $(CONFIG_H) \
e63ea00c 2420 $(SYSTEM_H) $(TREE_H) $(GGC_H) $(DIAGNOSTIC_H) $(TREE_INLINE_H) \
7ee2468b
SB
2421 $(FLAGS_H) $(FUNCTION_H) $(TM_H) $(TIMEVAR_H) \
2422 coretypes.h dumpfile.h langhooks.h $(IPA_REFERENCE_H) $(GIMPLE_PRETTY_PRINT_H)
e980df8e 2423tree-eh.o : tree-eh.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
40013784 2424 $(TREE_H) $(TM_H) $(FLAGS_H) $(FUNCTION_H) $(EXCEPT_H) langhooks.h \
7ee2468b
SB
2425 $(GGC_H) $(TREE_PASS_H) coretypes.h pointer-set.h \
2426 $(TREE_INLINE_H) tree-iterator.h toplev.h \
296f202e 2427 $(DIAGNOSTIC_CORE_H) $(TARGET_H) $(CFGLOOP_H)
e63ea00c 2428tree-ssa-loop.o : tree-ssa-loop.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
be7a421e 2429 $(TREE_H) $(TM_P_H) $(BASIC_BLOCK_H) \
7ee2468b 2430 $(DIAGNOSTIC_H) $(TREE_FLOW_H) $(TREE_PASS_H) \
7c475d11 2431 $(CFGLOOP_H) $(FLAGS_H) $(TREE_INLINE_H) $(SCEV_H) $(DIAGNOSTIC_CORE_H) $(TREE_VECTORIZER_H)
e980df8e 2432tree-ssa-loop-unswitch.o : tree-ssa-loop-unswitch.c $(TREE_FLOW_H) \
40013784 2433 $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(TM_P_H) $(CFGLOOP_H) \
7ee2468b
SB
2434 $(PARAMS_H) $(DIAGNOSTIC_H) $(TM_H) \
2435 coretypes.h $(TREE_PASS_H) $(BASIC_BLOCK_H) \
e980df8e
TT
2436 $(TREE_INLINE_H)
2437tree-ssa-address.o : tree-ssa-address.c $(TREE_FLOW_H) $(CONFIG_H) \
2438 $(SYSTEM_H) $(RTL_H) $(TREE_H) $(TM_P_H) \
7ee2468b
SB
2439 $(DIAGNOSTIC_H) $(TM_H) coretypes.h dumpfile.h \
2440 $(FLAGS_H) $(TREE_INLINE_H) $(RECOG_H) insn-config.h \
cf835838 2441 $(EXPR_H) gt-tree-ssa-address.h $(GGC_H) tree-affine.h $(TARGET_H) \
6dd8f4bb 2442 $(TREE_PRETTY_PRINT_H) expmed.h
e980df8e 2443tree-ssa-loop-niter.o : tree-ssa-loop-niter.c $(TREE_FLOW_H) $(CONFIG_H) \
40013784 2444 $(SYSTEM_H) $(TREE_H) $(TM_P_H) $(CFGLOOP_H) $(PARAMS_H) \
7ee2468b
SB
2445 $(TREE_INLINE_H) $(DIAGNOSTIC_H) $(TM_H) coretypes.h dumpfile.h \
2446 $(DIAGNOSTIC_CORE_H) $(FLAGS_H) $(TREE_DATA_REF_H) \
ee666c25 2447 $(BASIC_BLOCK_H) $(GGC_H) intl.h $(GIMPLE_PRETTY_PRINT_H)
e980df8e 2448tree-ssa-loop-ivcanon.o : tree-ssa-loop-ivcanon.c $(TREE_FLOW_H) $(CONFIG_H) \
40013784 2449 $(SYSTEM_H) $(TREE_H) $(TM_P_H) $(CFGLOOP_H) $(PARAMS_H) \
7ee2468b 2450 $(TREE_INLINE_H) $(DIAGNOSTIC_H) $(TM_H) coretypes.h \
cf835838 2451 $(FLAGS_H) $(TREE_PASS_H) $(SCEV_H) $(BASIC_BLOCK_H) $(TARGET_H) \
ee666c25 2452 $(GIMPLE_PRETTY_PRINT_H)
e980df8e
TT
2453tree-ssa-loop-ch.o : tree-ssa-loop-ch.c $(TREE_FLOW_H) $(CONFIG_H) \
2454 $(SYSTEM_H) $(RTL_H) $(TREE_H) $(TM_P_H) $(CFGLOOP_H) $(TREE_INLINE_H) \
7ee2468b 2455 $(DIAGNOSTIC_H) $(TM_H) coretypes.h \
40013784 2456 $(TREE_PASS_H) $(FLAGS_H) $(BASIC_BLOCK_H)
e980df8e 2457tree-ssa-loop-prefetch.o: tree-ssa-loop-prefetch.c $(TREE_FLOW_H) $(CONFIG_H) \
40013784 2458 $(SYSTEM_H) $(TREE_H) $(TM_P_H) $(CFGLOOP_H) $(EXPR_H) \
7ee2468b 2459 $(DIAGNOSTIC_H) $(TM_H) coretypes.h \
40013784
SB
2460 $(TREE_PASS_H) $(RECOG_H) insn-config.h $(HASHTAB_H) \
2461 $(CFGLOOP_H) $(PARAMS_H) langhooks.h $(BASIC_BLOCK_H) \
7c475d11 2462 $(DIAGNOSTIC_CORE_H) langhooks.h $(TREE_INLINE_H) $(TREE_DATA_REF_H) \
ee666c25 2463 $(OPTABS_H) $(TREE_PRETTY_PRINT_H)
e980df8e 2464tree-predcom.o: tree-predcom.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(TM_P_H) \
223cf84d 2465 $(CFGLOOP_H) $(TREE_FLOW_H) $(GGC_H) $(TREE_DATA_REF_H) \
7072a650 2466 $(PARAMS_H) $(DIAGNOSTIC_H) $(TREE_PASS_H) $(TM_H) coretypes.h \
ee666c25 2467 tree-affine.h $(TREE_INLINE_H) $(TREE_PRETTY_PRINT_H)
e980df8e 2468tree-ssa-loop-ivopts.o : tree-ssa-loop-ivopts.c $(TREE_FLOW_H) $(CONFIG_H) \
40013784 2469 $(SYSTEM_H) $(TREE_H) $(TM_P_H) $(CFGLOOP_H) $(EXPR_H) \
7ee2468b 2470 $(DIAGNOSTIC_H) $(TM_H) coretypes.h \
7072a650 2471 $(TREE_PASS_H) $(GGC_H) $(RECOG_H) insn-config.h $(HASHTAB_H) $(SCEV_H) \
40013784 2472 $(CFGLOOP_H) $(PARAMS_H) langhooks.h $(BASIC_BLOCK_H) \
ee666c25
SB
2473 tree-affine.h pointer-set.h $(TARGET_H) \
2474 $(GIMPLE_PRETTY_PRINT_H) tree-ssa-propagate.h
e980df8e 2475tree-affine.o : tree-affine.c tree-affine.h $(CONFIG_H) pointer-set.h \
40013784 2476 $(SYSTEM_H) $(TREE_H) $(GIMPLE_H) \
7ee2468b 2477 coretypes.h dumpfile.h $(FLAGS_H) \
ee666c25 2478 $(TREE_PRETTY_PRINT_H)
e980df8e 2479tree-ssa-loop-manip.o : tree-ssa-loop-manip.c $(TREE_FLOW_H) $(CONFIG_H) \
7ee2468b
SB
2480 $(SYSTEM_H) coretypes.h dumpfile.h $(TM_H) $(TREE_H) \
2481 $(BASIC_BLOCK_H) $(DIAGNOSTIC_H) $(TREE_FLOW_H) \
2482 $(CFGLOOP_H) $(TREE_PASS_H) \
08dab97a 2483 $(SCEV_H) $(PARAMS_H) $(TREE_INLINE_H) langhooks.h
e980df8e 2484tree-ssa-loop-im.o : tree-ssa-loop-im.c $(TREE_FLOW_H) $(CONFIG_H) \
40013784 2485 $(SYSTEM_H) $(TREE_H) $(TM_P_H) $(CFGLOOP_H) domwalk.h \
7ee2468b
SB
2486 $(PARAMS_H) $(DIAGNOSTIC_H) $(TM_H) coretypes.h \
2487 $(TREE_PASS_H) $(FLAGS_H) $(BASIC_BLOCK_H) \
ee666c25 2488 pointer-set.h tree-affine.h tree-ssa-propagate.h $(GIMPLE_PRETTY_PRINT_H)
e63ea00c 2489tree-ssa-math-opts.o : tree-ssa-math-opts.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
7ee2468b 2490 $(TM_H) $(FLAGS_H) $(TREE_H) $(TREE_FLOW_H) \
464778c0 2491 $(TREE_PASS_H) alloc-pool.h $(BASIC_BLOCK_H) $(TARGET_H) \
ee666c25 2492 $(DIAGNOSTIC_H) $(RTL_H) $(EXPR_H) $(OPTABS_H) $(GIMPLE_PRETTY_PRINT_H)
e980df8e 2493tree-ssa-alias.o : tree-ssa-alias.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
6f4185d7 2494 $(TREE_H) $(TM_P_H) $(GGC_H) $(TREE_INLINE_H) $(FLAGS_H) \
7ee2468b
SB
2495 $(FUNCTION_H) $(TIMEVAR_H) convert.h $(TM_H) coretypes.h dumpfile.h \
2496 langhooks.h \
2497 $(PARAMS_H) $(BASIC_BLOCK_H) $(DIAGNOSTIC_H) \
7352c013 2498 $(GIMPLE_H) $(VEC_H) $(TARGET_H) \
9771b263 2499 pointer-set.h alloc-pool.h \
ee666c25 2500 $(TREE_PRETTY_PRINT_H)
e980df8e 2501tree-ssa-reassoc.o : tree-ssa-reassoc.c $(TREE_FLOW_H) $(CONFIG_H) \
7ee2468b
SB
2502 $(SYSTEM_H) $(TREE_H) $(DIAGNOSTIC_H) \
2503 $(TM_H) coretypes.h $(TREE_PASS_H) $(FLAGS_H) \
40013784 2504 tree-iterator.h $(BASIC_BLOCK_H) $(GIMPLE_H) $(TREE_INLINE_H) \
3e097227 2505 $(VEC_H) langhooks.h alloc-pool.h pointer-set.h $(CFGLOOP_H) \
296f202e 2506 $(TARGET_H) $(GIMPLE_PRETTY_PRINT_H) $(DIAGNOSTIC_CORE_H)
e980df8e 2507tree-optimize.o : tree-optimize.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
be7a421e 2508 $(TREE_H) $(TM_P_H) $(GGC_H) \
7ee2468b
SB
2509 $(DIAGNOSTIC_H) $(BASIC_BLOCK_H) $(FLAGS_H) $(TM_H) \
2510 coretypes.h toplev.h $(DIAGNOSTIC_CORE_H) $(FUNCTION_H) langhooks.h \
090fa0ab 2511 $(FLAGS_H) $(CGRAPH_H) $(PLUGIN_H) \
8554df86 2512 $(TREE_INLINE_H) $(GGC_H) graph.h $(CGRAPH_H) \
0878843f 2513 $(TREE_PASS_H) $(CFGLOOP_H) $(EXCEPT_H)
e63ea00c 2514
726a989a 2515gimplify.o : gimplify.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(GIMPLE_H) \
ee666c25 2516 $(DIAGNOSTIC_H) $(TREE_INLINE_H) langhooks.h \
e980df8e 2517 $(LANGHOOKS_DEF_H) $(TREE_FLOW_H) $(CGRAPH_H) $(TIMEVAR_H) $(TM_H) \
a4b7d13c 2518 coretypes.h $(EXCEPT_H) $(FLAGS_H) $(RTL_H) $(FUNCTION_H) $(EXPR_H) \
7c475d11 2519 $(GGC_H) gt-gimplify.h $(HASHTAB_H) $(TARGET_H) $(DIAGNOSTIC_CORE_H) $(OPTABS_H) \
6f4185d7 2520 $(SPLAY_TREE_H) $(VEC_H) tree-iterator.h $(TREE_PASS_H) $(TREE_PRETTY_PRINT_H)
726a989a
RB
2521gimple-iterator.o : gimple-iterator.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2522 $(TREE_H) $(GIMPLE_H) $(TREE_FLOW_H) value-prof.h
7ee2468b 2523gimple-fold.o : gimple-fold.c $(TREE_FLOW_H) $(CONFIG_H) coretypes.h dumpfile.h \
6f4185d7 2524 $(SYSTEM_H) $(RTL_H) $(TREE_H) $(TM_P_H) $(GGC_H) \
7ee2468b 2525 $(FUNCTION_H) $(TM_H) $(BASIC_BLOCK_H) langhooks.h \
6f4185d7 2526 tree-ssa-propagate.h $(FLAGS_H) $(TARGET_H) gimple-fold.h
e980df8e 2527gimple-low.o : gimple-low.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) \
6f4185d7 2528 $(DIAGNOSTIC_CORE_H) $(GIMPLE_H) $(TREE_INLINE_H) langhooks.h \
7ee2468b 2529 $(LANGHOOKS_DEF_H) $(TREE_FLOW_H) $(TM_H) coretypes.h \
6f4185d7 2530 $(EXCEPT_H) $(FLAGS_H) $(RTL_H) $(FUNCTION_H) $(TREE_PASS_H) \
88cd0e88 2531 $(HASHTAB_H) $(DIAGNOSTIC_CORE_H) tree-iterator.h langhooks.h
e980df8e 2532omp-low.o : omp-low.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
1da2ed5f 2533 $(RTL_H) $(GIMPLE_H) $(TREE_INLINE_H) langhooks.h $(DIAGNOSTIC_CORE_H) \
7ee2468b 2534 $(TREE_FLOW_H) $(FLAGS_H) $(EXPR_H) $(DIAGNOSTIC_CORE_H) \
7072a650 2535 $(TREE_PASS_H) $(GGC_H) $(EXCEPT_H) $(SPLAY_TREE_H) $(OPTABS_H) \
464778c0 2536 $(CFGLOOP_H) tree-iterator.h gt-omp-low.h
e980df8e 2537tree-browser.o : tree-browser.c tree-browser.def $(CONFIG_H) $(SYSTEM_H) \
ee666c25 2538 coretypes.h $(TREE_H) $(TREE_PRETTY_PRINT_H)
7ee2468b
SB
2539omega.o : omega.c $(OMEGA_H) $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h \
2540 $(TREE_H) $(DIAGNOSTIC_CORE_H)
2541tree-chrec.o : tree-chrec.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h \
2542 $(TREE_PRETTY_PRINT_H) $(CFGLOOP_H) $(TREE_FLOW_H) $(SCEV_H) \
1bd6497c
SP
2543 $(PARAMS_H)
2544tree-scalar-evolution.o : tree-scalar-evolution.c $(CONFIG_H) $(SYSTEM_H) \
7ee2468b
SB
2545 coretypes.h dumpfile.h $(GIMPLE_PRETTY_PRINT_H) $(TREE_FLOW_H) $(CFGLOOP_H) $(SCEV_H) \
2546 $(PARAMS_H) gt-tree-scalar-evolution.h
2547tree-data-ref.o : tree-data-ref.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h \
ee666c25 2548 $(GIMPLE_PRETTY_PRINT_H) $(TREE_FLOW_H) $(CFGLOOP_H) $(TREE_DATA_REF_H) \
7ee2468b 2549 langhooks.h tree-affine.h $(PARAMS_H)
ee666c25 2550sese.o : sese.c sese.h $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TREE_PRETTY_PRINT_H) \
6f4185d7 2551 $(TREE_FLOW_H) $(CFGLOOP_H) $(TREE_DATA_REF_H) $(TREE_PASS_H) value-prof.h
32a73fc4 2552graphite.o : graphite.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(DIAGNOSTIC_CORE_H) \
e8c2fb69 2553 $(TREE_FLOW_H) $(TREE_DUMP_H) $(CFGLOOP_H) $(TREE_DATA_REF_H) sese.h \
33ad93b9 2554 $(DBGCNT_H) graphite-poly.h graphite-scop-detection.h \
1bd6497c
SP
2555 graphite-clast-to-gimple.h graphite-sese-to-poly.h
2556graphite-blocking.o : graphite-blocking.c $(CONFIG_H) $(SYSTEM_H) \
7ee2468b 2557 coretypes.h dumpfile.h $(TREE_FLOW_H) $(CFGLOOP_H) $(TREE_DATA_REF_H) \
33ad93b9 2558 sese.h graphite-poly.h
1bd6497c 2559graphite-clast-to-gimple.o : graphite-clast-to-gimple.c $(CONFIG_H) \
7a1c57d3 2560 $(SYSTEM_H) coretypes.h $(DIAGNOSTIC_CORE_H) $(TREE_FLOW_H) $(TREE_PASS_H) \
33ad93b9
RG
2561 $(CFGLOOP_H) $(TREE_DATA_REF_H) sese.h \
2562 graphite-poly.h graphite-clast-to-gimple.h
1bd6497c 2563graphite-dependences.o : graphite-dependences.c $(CONFIG_H) $(SYSTEM_H) \
7a1c57d3 2564 coretypes.h $(TREE_FLOW_H) $(TREE_PASS_H) $(CFGLOOP_H) $(TREE_DATA_REF_H) \
33ad93b9 2565 sese.h graphite-poly.h
1bd6497c 2566graphite-interchange.o : graphite-interchange.c $(CONFIG_H) $(SYSTEM_H) \
7ee2468b 2567 coretypes.h dumpfile.h $(TREE_FLOW_H) $(CFGLOOP_H) $(TREE_DATA_REF_H) \
33ad93b9 2568 sese.h graphite-poly.h
7ee2468b
SB
2569graphite-poly.o : graphite-poly.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h \
2570 $(DIAGNOSTIC_CORE_H) $(TREE_FLOW_H) $(GIMPLE_PRETTY_PRINT_H) \
33ad93b9 2571 $(CFGLOOP_H) $(TREE_DATA_REF_H) sese.h graphite-poly.h
1bd6497c
SP
2572graphite-scop-detection.o : graphite-scop-detection.c $(CONFIG_H) $(SYSTEM_H) \
2573 coretypes.h $(TREE_FLOW_H) $(CFGLOOP_H) $(TREE_DATA_REF_H) $(TREE_PASS_H) \
33ad93b9 2574 sese.h graphite-poly.h graphite-scop-detection.h
1bd6497c 2575graphite-sese-to-poly.o : graphite-sese-to-poly.c $(CONFIG_H) \
7a1c57d3 2576 $(SYSTEM_H) coretypes.h $(TREE_FLOW_H) $(TREE_PASS_H) $(CFGLOOP_H) \
33ad93b9 2577 $(TREE_DATA_REF_H) domwalk.h sese.h graphite-poly.h \
1bd6497c 2578 graphite-sese-to-poly.h
b60cc080 2579graphite-optimize-isl.o : graphite-optimize-isl.c $(CONFIG_H) $(SYSTEM_H) \
7ee2468b
SB
2580 coretypes.h dumpfile.h $(TREE_FLOW_H) $(CFGLOOP_H) $(TREE_DATA_REF_H) $(SCEV_H) \
2581 sese.h graphite-poly.h
ebfd146a 2582tree-vect-loop.o: tree-vect-loop.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
78c60e3d 2583 $(TM_H) $(GGC_H) $(TREE_H) $(BASIC_BLOCK_H) $(TREE_FLOW_H) dumpfile.h \
7ee2468b 2584 $(CFGLOOP_H) $(EXPR_H) $(RECOG_H) $(OPTABS_H) \
ee666c25
SB
2585 $(DIAGNOSTIC_CORE_H) $(SCEV_H) $(TREE_VECTORIZER_H) \
2586 $(GIMPLE_PRETTY_PRINT_H) $(TARGET_H) $(TREE_DATA_REF_H)
ebfd146a 2587tree-vect-loop-manip.o: tree-vect-loop-manip.c $(CONFIG_H) $(SYSTEM_H) \
78c60e3d 2588 coretypes.h dumpfile.h $(TM_H) $(GGC_H) $(TREE_H) $(BASIC_BLOCK_H) \
7ee2468b 2589 $(TREE_FLOW_H) $(CFGLOOP_H) $(DIAGNOSTIC_CORE_H) \
ee666c25 2590 $(SCEV_H) $(TREE_VECTORIZER_H) langhooks.h $(GIMPLE_PRETTY_PRINT_H)
7ee2468b
SB
2591tree-vect-patterns.o: tree-vect-patterns.c $(CONFIG_H) $(SYSTEM_H) \
2592 coretypes.h dumpfile.h \
6f4185d7 2593 $(TM_H) $(GGC_H) $(TREE_H) $(TARGET_H) $(BASIC_BLOCK_H) \
7ee2468b 2594 $(TREE_FLOW_H) $(CFGLOOP_H) $(EXPR_H) $(OPTABS_H) $(PARAMS_H) \
7c475d11 2595 $(TREE_DATA_REF_H) $(TREE_VECTORIZER_H) $(RECOG_H) $(DIAGNOSTIC_CORE_H) \
ee666c25 2596 $(GIMPLE_PRETTY_PRINT_H)
78c60e3d
SS
2597tree-vect-slp.o: tree-vect-slp.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2598 dumpfile.h $(TM_H) $(GGC_H) $(TREE_H) $(TARGET_H) $(BASIC_BLOCK_H) \
7ee2468b 2599 $(DIAGNOSTIC_H) $(TREE_FLOW_H) $(CFGLOOP_H) \
ee666c25
SB
2600 $(EXPR_H) $(RECOG_H) $(OPTABS_H) $(TREE_VECTORIZER_H) \
2601 $(GIMPLE_PRETTY_PRINT_H) $(TREE_DATA_REF_H) langhooks.h
ebfd146a 2602tree-vect-stmts.o: tree-vect-stmts.c $(CONFIG_H) $(SYSTEM_H) \
7ee2468b
SB
2603 coretypes.h dumpfile.h $(TM_H) $(GGC_H) $(TREE_H) $(TARGET_H) \
2604 $(BASIC_BLOCK_H) $(TREE_FLOW_H) $(CFGLOOP_H) \
6f4185d7 2605 $(EXPR_H) $(RECOG_H) $(OPTABS_H) $(TREE_VECTORIZER_H) \
ee666c25 2606 langhooks.h $(GIMPLE_PRETTY_PRINT_H)
ebfd146a 2607tree-vect-data-refs.o: tree-vect-data-refs.c $(CONFIG_H) $(SYSTEM_H) \
7ee2468b
SB
2608 coretypes.h dumpfile.h $(TM_H) $(GGC_H) $(TREE_H) $(TARGET_H) $(BASIC_BLOCK_H) \
2609 $(TREE_FLOW_H) $(CFGLOOP_H) \
c59ffc41 2610 $(EXPR_H) $(OPTABS_H) $(SCEV_H) $(TREE_VECTORIZER_H) \
ee666c25 2611 $(DIAGNOSTIC_CORE_H) $(TM_P_H) $(GIMPLE_PRETTY_PRINT_H)
e980df8e 2612tree-vectorizer.o: tree-vectorizer.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
78c60e3d 2613 dumpfile.h $(TM_H) $(GGC_H) $(TREE_H) $(TREE_FLOW_H) \
7ee2468b 2614 $(CFGLOOP_H) $(TREE_PASS_H) $(TREE_VECTORIZER_H) \
ee666c25 2615 $(TREE_PRETTY_PRINT_H)
1bd6497c
SP
2616tree-loop-distribution.o: tree-loop-distribution.c $(CONFIG_H) $(SYSTEM_H) \
2617 coretypes.h $(TREE_FLOW_H) $(CFGLOOP_H) $(TREE_DATA_REF_H) $(TREE_PASS_H)
2618tree-parloops.o: tree-parloops.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
ee666c25 2619 $(TREE_FLOW_H) $(CFGLOOP_H) $(TREE_DATA_REF_H) $(GIMPLE_PRETTY_PRINT_H) \
1bd6497c 2620 $(TREE_PASS_H) langhooks.h gt-tree-parloops.h $(TREE_VECTORIZER_H)
e980df8e 2621tree-stdarg.o: tree-stdarg.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
6f4185d7 2622 $(TREE_H) $(FUNCTION_H) $(TREE_FLOW_H) $(TREE_PASS_H) \
ee666c25 2623 tree-stdarg.h $(TARGET_H) langhooks.h $(GIMPLE_PRETTY_PRINT_H)
e980df8e 2624tree-object-size.o: tree-object-size.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
7c475d11 2625 $(TM_H) $(TREE_H) $(DIAGNOSTIC_CORE_H) $(DIAGNOSTIC_H) $(TREE_FLOW_H) \
ee666c25 2626 $(TREE_PASS_H) tree-ssa-propagate.h $(GIMPLE_PRETTY_PRINT_H)
25583c4f
RS
2627internal-fn.o : internal-fn.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2628 $(INTERNAL_FN_H) $(TREE_H) $(EXPR_H) $(OPTABS_H) $(GIMPLE_H)
726a989a 2629gimple.o : gimple.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TREE_H) \
7c475d11 2630 $(GGC_H) $(GIMPLE_H) $(DIAGNOSTIC_CORE_H) $(DIAGNOSTIC_H) gt-gimple.h \
d7f09764
DN
2631 $(TREE_FLOW_H) value-prof.h $(FLAGS_H) $(DEMANGLE_H) \
2632 $(TARGET_H) $(ALIAS_H)
726a989a 2633gimple-pretty-print.o : gimple-pretty-print.c $(CONFIG_H) $(SYSTEM_H) \
7ee2468b 2634 coretypes.h dumpfile.h \
40013784 2635 $(TREE_H) $(DIAGNOSTIC_H) $(HASHTAB_H) $(TREE_FLOW_H) \
7ee2468b 2636 $(TM_H) $(GIMPLE_H) value-prof.h \
ee666c25 2637 $(TRANS_MEM_H) $(GIMPLE_PRETTY_PRINT_H)
e980df8e 2638tree-mudflap.o : $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(TREE_INLINE_H) \
464778c0 2639 $(GIMPLE_H) $(DIAGNOSTIC_H) $(DEMANGLE_H) $(HASHTAB_H) langhooks.h tree-mudflap.h \
7ee2468b 2640 $(TM_H) coretypes.h $(TREE_PASS_H) $(CGRAPH_H) $(GGC_H) \
40013784 2641 gt-tree-mudflap.h $(BASIC_BLOCK_H) $(FLAGS_H) $(FUNCTION_H) \
7c475d11 2642 $(TM_P_H) $(TREE_FLOW_H) $(DIAGNOSTIC_CORE_H) $(GIMPLE_H) tree-iterator.h
e980df8e 2643tree-nomudflap.o : $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(TREE_INLINE_H) \
726a989a 2644 $(C_TREE_H) $(C_COMMON_H) $(GIMPLE_H) $(DIAGNOSTIC_H) $(HASHTAB_H) \
9aae8d16 2645 output.h langhooks.h tree-mudflap.h $(TM_H) coretypes.h \
7c475d11 2646 $(GGC_H) gt-tree-mudflap.h $(TREE_PASS_H) $(DIAGNOSTIC_CORE_H)
e980df8e 2647tree-pretty-print.o : tree-pretty-print.c $(CONFIG_H) $(SYSTEM_H) \
40013784 2648 $(TREE_H) $(DIAGNOSTIC_H) $(HASHTAB_H) $(TREE_FLOW_H) \
7ee2468b
SB
2649 $(TM_H) coretypes.h dumpfile.h tree-iterator.h $(SCEV_H) langhooks.h \
2650 value-prof.h output.h $(TREE_PRETTY_PRINT_H)
2651tree-diagnostic.o : tree-diagnostic.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h \
07a0b324 2652 $(TREE_H) $(DIAGNOSTIC_H) tree-diagnostic.h langhooks.h $(LANGHOOKS_DEF_H) \
7ee2468b 2653 $(VEC_H) $(TREE_PRETTY_PRINT_H)
e980df8e 2654fold-const.o : fold-const.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
703c8606
LC
2655 $(TREE_H) $(FLAGS_H) $(DIAGNOSTIC_CORE_H) $(HASH_TABLE_H) $(EXPR_H) \
2656 $(RTL_H) $(GGC_H) $(TM_P_H) langhooks.h $(MD5_H) intl.h $(TARGET_H) \
70f34814 2657 $(GIMPLE_H) realmpfr.h $(TREE_FLOW_H)
cf835838 2658diagnostic.o : diagnostic.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
d83697f4
ILT
2659 version.h $(DEMANGLE_H) $(INPUT_H) intl.h $(BACKTRACE_H) $(DIAGNOSTIC_H) \
2660 diagnostic.def
299404a1 2661opts.o : opts.c $(OPTS_H) $(OPTIONS_H) $(DIAGNOSTIC_CORE_H) $(CONFIG_H) $(SYSTEM_H) \
78c60e3d 2662 coretypes.h dumpfile.h $(TM_H) \
88a00ef7 2663 $(DIAGNOSTIC_H) insn-attr-common.h intl.h $(COMMON_TARGET_H) \
299404a1 2664 $(FLAGS_H) $(PARAMS_H) opts-diagnostic.h
21bf1558 2665opts-global.o : opts-global.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
c98cd5bf 2666 $(DIAGNOSTIC_H) $(OPTS_H) $(FLAGS_H) $(GGC_H) $(TREE_H) langhooks.h \
299404a1 2667 $(TM_H) $(RTL_H) $(DBGCNT_H) debug.h $(LTO_STREAMER_H) output.h \
7c475d11 2668 $(PLUGIN_H) toplev.h $(TREE_PASS_H)
a4d8c676 2669opts-common.o : opts-common.c $(OPTS_H) $(FLAGS_H) $(CONFIG_H) $(SYSTEM_H) \
eea13ead 2670 coretypes.h intl.h $(DIAGNOSTIC_H) $(TM_H)
e980df8e 2671targhooks.o : targhooks.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TREE_H) \
7c475d11 2672 $(EXPR_H) $(TM_H) $(RTL_H) $(TM_P_H) $(FUNCTION_H) output.h $(DIAGNOSTIC_CORE_H) \
e980df8e 2673 $(MACHMODE_H) $(TARGET_DEF_H) $(TARGET_H) $(GGC_H) gt-targhooks.h \
6f4185d7 2674 $(OPTABS_H) $(RECOG_H) $(REGS_H) reload.h hard-reg-set.h intl.h $(OPTS_H) \
7352c013 2675 tree-ssa-alias.h $(TREE_FLOW_H)
677f3fa8
JM
2676common/common-targhooks.o : common/common-targhooks.c $(CONFIG_H) $(SYSTEM_H) \
2677 coretypes.h $(INPUT_H) $(TM_H) $(COMMON_TARGET_H) common/common-targhooks.h
e980df8e 2678
134ef638
BE
2679bversion.h: s-bversion; @true
2680s-bversion: BASE-VER
2681 echo "#define BUILDING_GCC_MAJOR `echo $(BASEVER_c) | sed -e 's/^\([0-9]*\).*$$/\1/'`" > bversion.h
2682 echo "#define BUILDING_GCC_MINOR `echo $(BASEVER_c) | sed -e 's/^[0-9]*\.\([0-9]*\).*$$/\1/'`" >> bversion.h
2683 echo "#define BUILDING_GCC_PATCHLEVEL `echo $(BASEVER_c) | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$$/\1/'`" >> bversion.h
2684 echo "#define BUILDING_GCC_VERSION (BUILDING_GCC_MAJOR * 1000 + BUILDING_GCC_MINOR)" >> bversion.h
2685 $(STAMP) s-bversion
2686
447924ef
JM
2687input.o : input.c $(CONFIG_H) $(SYSTEM_H) coretypes.h intl.h $(INPUT_H)
2688
c5bc3df6 2689CFLAGS-toplev.o += -DTARGET_NAME=\"$(target_noncanonical)\"
e980df8e 2690toplev.o : toplev.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
e63ea00c 2691 version.h $(RTL_H) $(FUNCTION_H) $(FLAGS_H) xcoffout.h $(INPUT_H) \
e980df8e 2692 $(INSN_ATTR_H) output.h $(DIAGNOSTIC_H) debug.h insn-config.h intl.h \
6bdf3519 2693 $(RECOG_H) Makefile toplev.h sdbout.h dbxout.h $(EXPR_H) \
a8da523f 2694 hard-reg-set.h $(BASIC_BLOCK_H) graph.h $(EXCEPT_H) $(REGS_H) $(TIMEVAR_H) \
058e97ec 2695 value-prof.h $(PARAMS_H) $(TM_P_H) reload.h ira.h dwarf2asm.h $(TARGET_H) \
78bde837 2696 langhooks.h insn-flags.h $(CFGLOOP_H) hosthooks.h \
6399c0ab 2697 $(CGRAPH_H) $(COVERAGE_H) alloc-pool.h $(GGC_H) \
a4d8c676 2698 $(OPTS_H) params.def tree-mudflap.h $(TREE_PASS_H) $(GIMPLE_H) \
cf835838 2699 tree-ssa-alias.h $(PLUGIN_H) realmpfr.h tree-diagnostic.h \
32b4b7f5
DV
2700 $(TREE_PRETTY_PRINT_H) opts-diagnostic.h $(COMMON_TARGET_H) \
2701 tsan.h
e980df8e 2702
3c67fd9c 2703hwint.o : hwint.c $(CONFIG_H) $(SYSTEM_H) $(DIAGNOSTIC_CORE_H)
c59ffc41 2704
e980df8e 2705passes.o : passes.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
6f4185d7 2706 $(RTL_H) $(FUNCTION_H) $(FLAGS_H) $(INPUT_H) $(INSN_ATTR_H) output.h \
7c475d11 2707 $(DIAGNOSTIC_CORE_H) debug.h insn-config.h intl.h $(RECOG_H) toplev.h \
6f4185d7 2708 $(EXPR_H) hard-reg-set.h $(BASIC_BLOCK_H) \
7ee2468b 2709 graph.h $(EXCEPT_H) $(REGS_H) value-prof.h \
6f4185d7
SB
2710 $(PARAMS_H) $(TM_P_H) reload.h $(TARGET_H) \
2711 langhooks.h insn-flags.h $(CFGLOOP_H) \
7072a650 2712 hosthooks.h $(CGRAPH_H) $(COVERAGE_H) $(TREE_PASS_H) $(TREE_DUMP_H) \
6f4185d7
SB
2713 $(GGC_H) $(OPTS_H) $(TREE_FLOW_H) $(TREE_INLINE_H) \
2714 gt-passes.h $(DF_H) $(PREDICT_H) $(LTO_STREAMER_H) \
af8bca3c 2715 $(PLUGIN_H) $(IPA_UTILS_H)
e980df8e 2716
68a607d8 2717plugin.o : plugin.c $(PLUGIN_H) $(CONFIG_H) $(SYSTEM_H) coretypes.h \
a803773f 2718 $(DIAGNOSTIC_CORE_H) $(TREE_H) $(TREE_PASS_H) intl.h $(PLUGIN_VERSION_H) $(GGC_H)
cf8aba7f 2719
7c475d11 2720main.o : main.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) toplev.h $(DIAGNOSTIC_CORE_H)
e980df8e
TT
2721
2722host-default.o : host-default.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2723 hosthooks.h $(HOSTHOOKS_DEF_H)
2724
0cbd9993
MLI
2725rtl-error.o: rtl-error.c $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_ERROR_H) \
2726 $(INSN_ATTR_H) insn-config.h $(INPUT_H) intl.h $(DIAGNOSTIC_H) \
b6feb796 2727 $(CONFIG_H)
e980df8e
TT
2728
2729rtl.o : rtl.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
6f4185d7 2730 $(GGC_H) $(BCONFIG_H) insn-notes.def reg-notes.def $(DIAGNOSTIC_CORE_H)
e980df8e 2731
7ee2468b 2732print-rtl.o : print-rtl.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h $(TM_H) \
e980df8e 2733 $(RTL_H) $(TREE_H) hard-reg-set.h $(BASIC_BLOCK_H) $(FLAGS_H) \
7ee2468b 2734 $(BCONFIG_H) $(DIAGNOSTIC_H) cselib.h $(TREE_PRETTY_PRINT_H) \
6f4185d7
SB
2735 $(DWARF2OUT_H)
2736rtlanal.o : rtlanal.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(DIAGNOSTIC_CORE_H) \
40013784 2737 $(RTL_H) hard-reg-set.h $(TM_P_H) insn-config.h $(RECOG_H) \
e980df8e 2738 $(FLAGS_H) $(REGS_H) output.h $(TARGET_H) $(FUNCTION_H) $(TREE_H) \
277f65de 2739 $(DF_H) $(EMIT_RTL_H) addresses.h
e980df8e
TT
2740
2741varasm.o : varasm.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
2742 $(RTL_H) $(FLAGS_H) $(FUNCTION_H) $(EXPR_H) hard-reg-set.h $(REGS_H) \
a803773f 2743 output.h $(DIAGNOSTIC_CORE_H) xcoffout.h debug.h $(GGC_H) $(TM_P_H) \
e980df8e 2744 $(HASHTAB_H) $(TARGET_H) langhooks.h gt-varasm.h $(BASIC_BLOCK_H) \
6f4185d7 2745 $(CGRAPH_H) $(TARGET_DEF_H) tree-mudflap.h \
8240018b 2746 pointer-set.h $(COMMON_TARGET_H) asan.h
0cbd9993 2747function.o : function.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_ERROR_H) \
78bde837 2748 $(TREE_H) $(GIMPLE_H) $(FLAGS_H) $(FUNCTION_H) $(EXPR_H) \
9f7f1892 2749 $(OPTABS_H) $(LIBFUNCS_H) $(REGS_H) hard-reg-set.h insn-config.h $(RECOG_H) \
0cbd9993 2750 output.h $(EXCEPT_H) $(HASHTAB_H) $(GGC_H) $(TM_P_H) langhooks.h \
6399c0ab 2751 gt-function.h $(TARGET_H) $(BASIC_BLOCK_H) $(PREDICT_H) \
9771b263 2752 $(TREE_PASS_H) $(DF_H) $(PARAMS_H) bb-reorder.h \
ffe14686 2753 $(COMMON_TARGET_H)
9fe0cb7d 2754statistics.o : statistics.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
8e65c286 2755 $(TREE_PASS_H) $(TREE_DUMP_H) $(HASHTAB_H) statistics.h $(FUNCTION_H)
7ee2468b 2756stmt.o : stmt.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h $(TM_H) $(RTL_H) \
e980df8e 2757 $(TREE_H) $(FLAGS_H) $(FUNCTION_H) insn-config.h hard-reg-set.h $(EXPR_H) \
7c475d11 2758 $(LIBFUNCS_H) $(EXCEPT_H) $(RECOG_H) $(DIAGNOSTIC_CORE_H) \
9f7f1892
RS
2759 output.h $(GGC_H) $(TM_P_H) langhooks.h $(PREDICT_H) $(OPTABS_H) \
2760 $(TARGET_H) $(GIMPLE_H) $(MACHMODE_H) $(REGS_H) alloc-pool.h \
3aa439ed 2761 $(PRETTY_PRINT_H) $(BITMAP_H) $(PARAMS_H)
e980df8e 2762except.o : except.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
9f7f1892 2763 $(TREE_H) $(FLAGS_H) $(EXCEPT_H) $(FUNCTION_H) $(EXPR_H) $(LIBFUNCS_H) \
e980df8e 2764 langhooks.h insn-config.h hard-reg-set.h $(BASIC_BLOCK_H) output.h \
6f4185d7 2765 dwarf2asm.h $(DWARF2OUT_H) toplev.h $(DIAGNOSTIC_CORE_H) $(HASHTAB_H) intl.h $(GGC_H) \
6399c0ab 2766 gt-except.h $(CGRAPH_H) $(DIAGNOSTIC_H) $(DWARF2_H) \
7ee2468b 2767 $(TARGET_H) $(TM_P_H) $(TREE_PASS_H) $(TREE_FLOW_H) \
ee666c25 2768 $(TREE_PRETTY_PRINT_H) sbitmap.h $(COMMON_TARGET_H) $(CFGLOOP_H)
e980df8e
TT
2769expr.o : expr.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2770 $(TREE_H) $(FLAGS_H) $(FUNCTION_H) $(REGS_H) $(EXPR_H) $(OPTABS_H) \
9f7f1892 2771 $(LIBFUNCS_H) $(INSN_ATTR_H) insn-config.h $(RECOG_H) output.h \
7c475d11 2772 typeclass.h hard-reg-set.h toplev.h $(DIAGNOSTIC_CORE_H) hard-reg-set.h $(EXCEPT_H) \
40013784 2773 reload.h langhooks.h intl.h $(TM_P_H) $(TARGET_H) \
e980df8e 2774 tree-iterator.h gt-expr.h $(MACHMODE_H) $(TIMEVAR_H) $(TREE_FLOW_H) \
9771b263 2775 $(TREE_PASS_H) $(DF_H) $(DIAGNOSTIC_H) $(SSAEXPAND_H) \
ee666c25
SB
2776 $(PARAMS_H) $(COMMON_TARGET_H) target-globals.h
2777dojump.o : dojump.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TM_P_H) \
2778 $(RTL_H) $(TREE_H) \
e980df8e 2779 $(FLAGS_H) $(FUNCTION_H) $(EXPR_H) $(OPTABS_H) $(INSN_ATTR_H) insn-config.h \
9771b263 2780 langhooks.h $(GGC_H) gt-dojump.h $(BASIC_BLOCK_H)
ee666c25
SB
2781builtins.o : builtins.c builtins.h $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2782 $(RTL_H) $(TREE_H) $(GIMPLE_H) $(FLAGS_H) $(TARGET_H) $(FUNCTION_H) $(REGS_H) \
e980df8e 2783 $(EXPR_H) $(OPTABS_H) insn-config.h $(RECOG_H) output.h typeclass.h \
c59ffc41 2784 hard-reg-set.h $(DIAGNOSTIC_CORE_H) hard-reg-set.h $(EXCEPT_H) \
9f7f1892
RS
2785 $(TM_P_H) $(PREDICT_H) $(LIBFUNCS_H) langhooks.h $(BASIC_BLOCK_H) \
2786 tree-mudflap.h realmpfr.h $(BUILTINS_DEF) $(MACHMODE_H) \
2787 $(DIAGNOSTIC_CORE_H) $(TREE_FLOW_H) value-prof.h
e980df8e
TT
2788calls.o : calls.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2789 $(TREE_H) $(FLAGS_H) $(EXPR_H) $(OPTABS_H) langhooks.h $(TARGET_H) \
ee666c25 2790 $(LIBFUNCS_H) $(REGS_H) $(DIAGNOSTIC_CORE_H) output.h \
9f7f1892
RS
2791 $(FUNCTION_H) $(TIMEVAR_H) $(TM_P_H) $(CGRAPH_H) $(EXCEPT_H) sbitmap.h \
2792 $(DBGCNT_H) $(TREE_FLOW_H)
e980df8e 2793expmed.o : expmed.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(TREE_H) \
40013784 2794 $(FLAGS_H) insn-config.h $(EXPR_H) $(OPTABS_H) $(RECOG_H) \
c59ffc41 2795 $(DIAGNOSTIC_CORE_H) $(TM_P_H) langhooks.h $(DF_H) $(TARGET_H) \
462f85ce 2796 expmed.h
e980df8e
TT
2797explow.o : explow.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(TREE_H) \
2798 $(FLAGS_H) hard-reg-set.h insn-config.h $(EXPR_H) $(OPTABS_H) $(RECOG_H) \
c59ffc41 2799 $(DIAGNOSTIC_CORE_H) $(EXCEPT_H) $(FUNCTION_H) $(GGC_H) $(TM_P_H) langhooks.h gt-explow.h \
ee666c25 2800 $(TARGET_H) $(COMMON_TARGET_H) output.h $(LIBFUNCS_H)
e980df8e 2801optabs.o : optabs.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
9f7f1892 2802 $(TREE_H) $(FLAGS_H) insn-config.h $(EXPR_H) $(OPTABS_H) $(LIBFUNCS_H) \
7c475d11 2803 $(RECOG_H) reload.h $(DIAGNOSTIC_CORE_H) $(GGC_H) $(TM_P_H) \
9f7f1892 2804 $(EXCEPT_H) gt-optabs.h $(BASIC_BLOCK_H) $(TARGET_H) $(FUNCTION_H)
e980df8e
TT
2805dbxout.o : dbxout.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
2806 $(RTL_H) $(FLAGS_H) $(REGS_H) debug.h $(TM_P_H) $(TARGET_H) $(FUNCTION_H) \
e63ea00c 2807 langhooks.h insn-config.h reload.h $(GSTAB_H) xcoffout.h output.h dbxout.h \
9166988f 2808 toplev.h $(DIAGNOSTIC_CORE_H) $(GGC_H) $(OBSTACK_H) $(EXPR_H) $(CGRAPH_H) \
677f3fa8 2809 gt-dbxout.h $(COMMON_TARGET_H)
c6a13190 2810debug.o : debug.c debug.h $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H)
e980df8e
TT
2811sdbout.o : sdbout.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) debug.h \
2812 $(TREE_H) $(GGC_H) $(RTL_H) $(REGS_H) $(FLAGS_H) insn-config.h \
7c475d11 2813 output.h $(DIAGNOSTIC_CORE_H) $(TM_P_H) gsyms.h langhooks.h $(TARGET_H) sdbout.h \
b6feb796 2814 gt-sdbout.h reload.h
723cd7ab
RH
2815dwarf2out.o : dwarf2out.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h \
2816 $(TM_H) $(TREE_H) version.h $(RTL_H) $(DWARF2_H) debug.h $(FLAGS_H) \
2817 insn-config.h output.h $(DIAGNOSTIC_H) hard-reg-set.h $(REGS_H) $(EXPR_H) \
2818 toplev.h $(DIAGNOSTIC_CORE_H) $(DWARF2OUT_H) reload.h \
9f7f1892
RS
2819 $(GGC_H) $(EXCEPT_H) dwarf2asm.h $(TM_P_H) langhooks.h $(HASHTAB_H) \
2820 gt-dwarf2out.h $(TARGET_H) $(CGRAPH_H) $(MD5_H) $(INPUT_H) $(FUNCTION_H) \
55a2c322 2821 $(GIMPLE_H) ira.h lra.h $(TREE_FLOW_H) \
ee666c25 2822 $(TREE_PRETTY_PRINT_H) $(COMMON_TARGET_H) $(OPTS_H)
647a1567 2823dwarf2cfi.o : dwarf2cfi.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
ee666c25 2824 version.h $(RTL_H) $(EXPR_H) $(REGS_H) $(FUNCTION_H) output.h \
6f4185d7 2825 gt-dwarf2cfi.h debug.h $(DWARF2_H) dwarf2asm.h $(DWARF2OUT_H) $(COMMON_TARGET_H) \
ee666c25 2826 $(GGC_H) $(TM_P_H) $(TARGET_H) $(TREE_PASS_H) $(BASIC_BLOCK_H) $(EXCEPT_H)
e980df8e
TT
2827dwarf2asm.o : dwarf2asm.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2828 $(FLAGS_H) $(RTL_H) $(TREE_H) output.h dwarf2asm.h $(TM_P_H) $(GGC_H) \
bbf531f0 2829 gt-dwarf2asm.h $(DWARF2_H) $(SPLAY_TREE_H) $(TARGET_H)
e980df8e 2830vmsdbgout.o : vmsdbgout.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) version.h \
e63ea00c 2831 $(FLAGS_H) $(RTL_H) output.h vmsdbg.h debug.h langhooks.h $(FUNCTION_H) $(TARGET_H)
e980df8e 2832xcoffout.o : xcoffout.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
a803773f 2833 $(TREE_H) $(RTL_H) xcoffout.h $(FLAGS_H) $(DIAGNOSTIC_CORE_H) output.h dbxout.h \
e63ea00c 2834 $(GGC_H) $(TARGET_H) debug.h $(GSTAB_H) xcoff.h
c6a13190 2835godump.o : godump.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(DIAGNOSTIC_CORE_H) \
6f4185d7 2836 $(TREE_H) $(GGC_H) pointer-set.h $(OBSTACK_H) debug.h gt-godump.h
e980df8e 2837emit-rtl.o : emit-rtl.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
9771b263 2838 $(TREE_H) $(FLAGS_H) $(FUNCTION_H) $(REGS_H) insn-config.h $(RECOG_H) \
7c475d11 2839 $(GGC_H) $(EXPR_H) hard-reg-set.h $(BITMAP_H) $(DIAGNOSTIC_CORE_H) $(BASIC_BLOCK_H) \
7072a650 2840 $(HASHTAB_H) $(TM_P_H) debug.h langhooks.h $(TREE_PASS_H) gt-emit-rtl.h \
78bde837 2841 $(DF_H) $(PARAMS_H) $(TARGET_H)
e980df8e 2842real.o : real.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
c59ffc41 2843 $(DIAGNOSTIC_CORE_H) $(TM_P_H) $(REAL_H) dfp.h realmpfr.h
79bdca32 2844realmpfr.o : realmpfr.c realmpfr.h $(CONFIG_H) $(SYSTEM_H) coretypes.h $(REAL_H) $(TREE_H)
e980df8e 2845dfp.o : dfp.c dfp.h $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
ee666c25 2846 $(TM_P_H) $(REAL_H) $(DECNUM_H)
e980df8e 2847fixed-value.o: fixed-value.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
7c475d11 2848 $(TREE_H) $(REAL_H) $(DIAGNOSTIC_CORE_H)
e980df8e
TT
2849jump.o : jump.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2850 $(FLAGS_H) hard-reg-set.h $(REGS_H) insn-config.h $(RECOG_H) $(EXPR_H) \
1da2ed5f 2851 $(EXCEPT_H) $(FUNCTION_H) $(BASIC_BLOCK_H) $(TREE_PASS_H) \
7c475d11 2852 $(DIAGNOSTIC_CORE_H) $(DIAGNOSTIC_CORE_H) $(INSN_ATTR_H) $(TM_P_H) reload.h \
7ee2468b 2853 $(PREDICT_H) $(TARGET_H)
e980df8e 2854simplify-rtx.o : simplify-rtx.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
40013784 2855 $(RTL_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h \
be7a421e 2856 $(RECOG_H) $(EXPR_H) $(DIAGNOSTIC_CORE_H) $(FUNCTION_H) $(GGC_H) $(TM_P_H) \
e980df8e 2857 $(TREE_H) $(TARGET_H)
2aae7680 2858symtab.o : symtab.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
6f4185d7 2859 langhooks.h $(DIAGNOSTIC_CORE_H) $(FLAGS_H) $(GGC_H) $(TARGET_H) $(CGRAPH_H) \
7ee2468b
SB
2860 $(TIMEVAR_H) $(HASHTAB_H) gt-symtab.h
2861cgraph.o : cgraph.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h \
2862 $(TM_H) $(TREE_H) $(TIMEVAR_H) \
7c475d11 2863 langhooks.h toplev.h $(DIAGNOSTIC_CORE_H) $(FLAGS_H) $(GGC_H) $(TARGET_H) $(CGRAPH_H) \
be7a421e 2864 gt-cgraph.h intl.h $(BASIC_BLOCK_H) debug.h $(HASHTAB_H) \
7ee2468b 2865 $(TREE_INLINE_H) $(TREE_FLOW_H) cif-code.def \
e7f23018 2866 value-prof.h $(EXCEPT_H) $(IPA_UTILS_H) $(DIAGNOSTIC_CORE_H) \
2c9561b5 2867 $(IPA_INLINE_H) $(LTO_STREAMER_H) $(CFGLOOP_H) $(GIMPLE_PRETTY_PRINT_H)
e980df8e 2868cgraphunit.o : cgraphunit.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
7c475d11 2869 $(TREE_H) langhooks.h $(TREE_INLINE_H) toplev.h $(DIAGNOSTIC_CORE_H) $(FLAGS_H) $(GGC_H) \
726a989a 2870 $(TARGET_H) $(CGRAPH_H) intl.h pointer-set.h $(FUNCTION_H) $(GIMPLE_H) \
237ee620 2871 $(TREE_FLOW_H) $(TREE_PASS_H) debug.h $(DIAGNOSTIC_H) \
7ee2468b 2872 $(FIBHEAP_H) output.h $(PARAMS_H) $(RTL_H) $(IPA_PROP_H) \
cf835838 2873 gt-cgraphunit.h tree-iterator.h $(COVERAGE_H) $(TREE_DUMP_H) \
2c9561b5 2874 $(GIMPLE_PRETTY_PRINT_H) $(IPA_INLINE_H) $(IPA_UTILS_H) \
ee666c25 2875 $(LTO_STREAMER_H) output.h $(REGSET_H) $(EXCEPT_H) $(GCC_PLUGIN_H) plugin.h
66a20fc2
JH
2876cgraphclones.o : cgraphclones.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2877 $(TREE_H) langhooks.h $(TREE_INLINE_H) toplev.h $(DIAGNOSTIC_CORE_H) $(FLAGS_H) $(GGC_H) \
2878 $(TARGET_H) $(CGRAPH_H) intl.h pointer-set.h $(FUNCTION_H) $(GIMPLE_H) \
7ee2468b
SB
2879 $(TREE_FLOW_H) $(TREE_PASS_H) debug.h $(DIAGNOSTIC_H) $(TREE_DUMP_H) \
2880 $(PARAMS_H) $(RTL_H) $(IPA_PROP_H) \
2881 tree-iterator.h $(COVERAGE_H) \
2c9561b5 2882 $(GIMPLE_PRETTY_PRINT_H) $(IPA_INLINE_H) $(IPA_UTILS_H) \
a4b7d13c 2883 $(LTO_STREAMER_H) $(EXCEPT_H) $(GCC_PLUGIN_H) gt-cgraphclones.h
e980df8e 2884cgraphbuild.o : cgraphbuild.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
726a989a 2885 $(TREE_H) langhooks.h $(CGRAPH_H) intl.h pointer-set.h $(GIMPLE_H) \
e7f23018 2886 $(TREE_FLOW_H) $(TREE_PASS_H) $(IPA_UTILS_H) $(EXCEPT_H) \
2c9561b5 2887 $(IPA_INLINE_H)
e980df8e 2888varpool.o : varpool.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
1da2ed5f 2889 $(TREE_H) $(CGRAPH_H) langhooks.h $(DIAGNOSTIC_CORE_H) $(HASHTAB_H) \
726a989a 2890 $(GGC_H) $(TIMEVAR_H) debug.h $(TARGET_H) output.h $(GIMPLE_H) \
66058468 2891 $(TREE_FLOW_H)
e63ea00c 2892ipa.o : ipa.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(CGRAPH_H) \
7ee2468b 2893 $(TREE_PASS_H) $(GIMPLE_H) $(TARGET_H) $(GGC_H) pointer-set.h \
af8bca3c 2894 $(IPA_UTILS_H)
3e293154
MJ
2895ipa-prop.o : ipa-prop.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2896 langhooks.h $(GGC_H) $(TARGET_H) $(CGRAPH_H) $(IPA_PROP_H) $(DIAGNOSTIC_H) \
7072a650 2897 $(TREE_FLOW_H) $(TM_H) $(TREE_PASS_H) $(FLAGS_H) $(TREE_H) \
7ee2468b 2898 $(TREE_INLINE_H) $(GIMPLE_H) \
ee666c25 2899 $(GIMPLE_PRETTY_PRINT_H) $(LTO_STREAMER_H) \
dfea20f1 2900 $(DATA_STREAMER_H) $(TREE_STREAMER_H) $(PARAMS_H)
369451ec
JH
2901ipa-ref.o : ipa-ref.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2902 langhooks.h $(GGC_H) $(TARGET_H) $(CGRAPH_H) $(TREE_H) $(TARGET_H) \
2903 $(TREE_FLOW_H) $(TM_H) $(TREE_PASS_H) $(FLAGS_H) $(TREE_H) $(GGC_H)
e980df8e 2904ipa-cp.o : ipa-cp.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
3949c4a7 2905 $(TREE_H) $(TARGET_H) $(GIMPLE_H) $(CGRAPH_H) $(IPA_PROP_H) $(TREE_FLOW_H) \
7ee2468b 2906 $(TREE_PASS_H) $(FLAGS_H) $(DIAGNOSTIC_H) \
2c9561b5 2907 $(TREE_INLINE_H) $(PARAMS_H) $(TREE_PRETTY_PRINT_H) $(IPA_INLINE_H)
ee666c25 2908ipa-split.o : ipa-split.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
3e485f62 2909 $(TREE_H) $(TARGET_H) $(CGRAPH_H) $(IPA_PROP_H) $(TREE_FLOW_H) \
7ee2468b 2910 $(TREE_PASS_H) $(FLAGS_H) $(DIAGNOSTIC_H) $(TREE_DUMP_H) \
2c9561b5 2911 $(TREE_INLINE_H) $(PARAMS_H) $(GIMPLE_PRETTY_PRINT_H) $(IPA_INLINE_H)
09a2806f 2912ipa-inline.o : ipa-inline.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
e980df8e 2913 $(TREE_H) langhooks.h $(TREE_INLINE_H) $(FLAGS_H) $(CGRAPH_H) intl.h \
7ee2468b 2914 $(DIAGNOSTIC_H) $(FIBHEAP_H) $(PARAMS_H) $(TREE_PASS_H) \
4c0f7679 2915 $(COVERAGE_H) $(GGC_H) $(TREE_FLOW_H) $(RTL_H) $(IPA_PROP_H) \
2c9561b5
MJ
2916 $(EXCEPT_H) $(GIMPLE_PRETTY_PRINT_H) $(IPA_INLINE_H) $(TARGET_H) \
2917 $(IPA_UTILS_H)
03dfc36d
JH
2918ipa-inline-analysis.o : ipa-inline-analysis.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2919 $(TREE_H) langhooks.h $(TREE_INLINE_H) $(FLAGS_H) $(CGRAPH_H) intl.h \
391886c8 2920 $(DIAGNOSTIC_H) $(PARAMS_H) $(TREE_PASS_H) $(CFGLOOP_H) \
03dfc36d 2921 $(HASHTAB_H) $(COVERAGE_H) $(GGC_H) $(TREE_FLOW_H) $(IPA_PROP_H) \
2c9561b5 2922 $(GIMPLE_PRETTY_PRINT_H) $(IPA_INLINE_H) $(LTO_STREAMER_H) $(DATA_STREAMER_H) \
f0efc7aa 2923 $(TREE_STREAMER_H)
fee8b6da
JH
2924ipa-inline-transform.o : ipa-inline-transform.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2925 $(TREE_H) langhooks.h $(TREE_INLINE_H) $(FLAGS_H) $(CGRAPH_H) intl.h \
7ee2468b 2926 $(TREE_PASS_H) \
fee8b6da 2927 $(HASHTAB_H) $(COVERAGE_H) $(GGC_H) $(TREE_FLOW_H) $(IPA_PROP_H) \
6f4185d7 2928 $(TREE_PASS_H)
e980df8e 2929ipa-utils.o : ipa-utils.c $(IPA_UTILS_H) $(CONFIG_H) $(SYSTEM_H) \
7ee2468b
SB
2930 coretypes.h dumpfile.h $(TM_H) $(TREE_H) $(TREE_FLOW_H) $(TREE_INLINE_H) \
2931 langhooks.h pointer-set.h $(GGC_H) $(GIMPLE_H) $(SPLAY_TREE_H) \
2932 $(CGRAPH_H) $(FLAGS_H) $(DIAGNOSTIC_H)
e980df8e
TT
2933ipa-reference.o : ipa-reference.c $(CONFIG_H) $(SYSTEM_H) \
2934 coretypes.h $(TM_H) $(TREE_H) $(TREE_FLOW_H) $(TREE_INLINE_H) langhooks.h \
237ee620 2935 pointer-set.h $(GGC_H) $(IPA_REFERENCE_H) $(IPA_UTILS_H) $(SPLAY_TREE_H) \
be7a421e 2936 $(GIMPLE_H) $(CGRAPH_H) $(FLAGS_H) $(TREE_PASS_H) \
7ee2468b 2937 $(DIAGNOSTIC_H) $(FUNCTION_H) $(LTO_STREAMER_H) \
412288f1 2938 $(DIAGNOSTIC_CORE_H) $(DATA_STREAMER_H)
e980df8e
TT
2939ipa-pure-const.o : ipa-pure-const.c $(CONFIG_H) $(SYSTEM_H) \
2940 coretypes.h $(TM_H) $(TREE_H) $(TREE_FLOW_H) $(TREE_INLINE_H) langhooks.h \
237ee620 2941 pointer-set.h $(GGC_H) $(IPA_UTILS_H) $(TARGET_H) \
7ee2468b 2942 $(GIMPLE_H) $(CGRAPH_H) $(FLAGS_H) $(TREE_PASS_H) \
cf835838 2943 $(DIAGNOSTIC_H) $(CFGLOOP_H) $(SCEV_H) $(LTO_STREAMER_H) \
ee666c25 2944 $(GIMPLE_PRETTY_PRINT_H) $(DATA_STREAMER_H) $(TREE_STREAMER_H)
7ee2468b 2945coverage.o : coverage.c $(GCOV_IO_H) $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h \
e980df8e 2946 $(TM_H) $(RTL_H) $(TREE_H) $(FLAGS_H) output.h $(REGS_H) $(EXPR_H) \
7c475d11 2947 $(FUNCTION_H) $(BASIC_BLOCK_H) toplev.h $(DIAGNOSTIC_CORE_H) $(GGC_H) langhooks.h $(COVERAGE_H) \
0823efed
DN
2948 tree-iterator.h $(CGRAPH_H) gcov-io.c $(TM_P_H) \
2949 $(DIAGNOSTIC_CORE_H) intl.h gt-coverage.h $(TARGET_H) $(HASH_TABLE_H)
7ee2468b 2950cselib.o : cselib.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h $(TM_H) $(RTL_H) \
40013784 2951 $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h $(RECOG_H) \
7ee2468b 2952 $(EMIT_RTL_H) $(DIAGNOSTIC_CORE_H) $(FUNCTION_H) \
b5b8b0ac 2953 cselib.h gt-cselib.h $(GGC_H) $(TM_P_H) $(PARAMS_H) alloc-pool.h \
532aafad 2954 $(HASHTAB_H) $(TARGET_H) $(BITMAP_H) $(TREE_H)
e980df8e 2955cse.o : cse.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(REGS_H) \
7c475d11 2956 hard-reg-set.h $(FLAGS_H) insn-config.h $(RECOG_H) $(EXPR_H) toplev.h $(DIAGNOSTIC_CORE_H) \
7ee2468b 2957 $(FUNCTION_H) $(BASIC_BLOCK_H) $(GGC_H) $(TM_P_H) \
7072a650 2958 $(EXCEPT_H) $(TARGET_H) $(PARAMS_H) rtlhooks-def.h $(TREE_PASS_H) \
40013784 2959 $(DF_H) $(DBGCNT_H)
e980df8e 2960dce.o : dce.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
35debead 2961 $(TREE_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) $(EXCEPT_H) $(DF_H) cselib.h \
08df6c0d 2962 $(DBGCNT_H) dce.h $(VALTRACK_H) $(TREE_PASS_H) $(DBGCNT_H) $(TM_P_H) \
5936d944 2963 $(EMIT_RTL_H)
78c60e3d
SS
2964dumpfile.o: dumpfile.c dumpfile.h $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2965 $(DIAGNOSTIC_CORE_H) $(GIMPLE_PRETTY_PRINT_H) $(TREE_H)
e980df8e
TT
2966dse.o : dse.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2967 $(TREE_H) $(TM_P_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h \
7ee2468b 2968 $(RECOG_H) $(EXPR_H) $(DF_H) cselib.h $(DBGCNT_H) \
711417cd 2969 $(TREE_PASS_H) alloc-pool.h $(ALIAS_H) $(OPTABS_H) $(TARGET_H) \
703c8606 2970 $(BITMAP_H) $(PARAMS_H) $(TREE_FLOW_H) $(HASH_TABLE_H)
e980df8e 2971fwprop.o : fwprop.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
7c475d11 2972 $(DIAGNOSTIC_CORE_H) insn-config.h $(RECOG_H) $(FLAGS_H) $(OBSTACK_H) $(BASIC_BLOCK_H) \
7ee2468b 2973 $(DF_H) alloc-pool.h $(TREE_PASS_H) $(TARGET_H) \
dc007c1f 2974 $(TM_P_H) $(CFGLOOP_H) $(EMIT_RTL_H) domwalk.h sparseset.h
e980df8e 2975web.o : web.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
be7a421e 2976 hard-reg-set.h $(FLAGS_H) $(BASIC_BLOCK_H) $(FUNCTION_H) $(DIAGNOSTIC_CORE_H) \
7ee2468b 2977 insn-config.h $(RECOG_H) $(DF_H) $(OBSTACK_H) $(TREE_PASS_H)
26cd9add 2978ree.o : ree.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
be7a421e 2979 hard-reg-set.h $(FLAGS_H) $(BASIC_BLOCK_H) $(FUNCTION_H) \
7ee2468b 2980 $(DF_H) $(TREE_PASS_H) $(RECOG_H) $(EXPR_H) \
7c475d11 2981 $(REGS_H) $(TREE_H) $(TM_P_H) insn-config.h $(INSN_ATTR_H) $(DIAGNOSTIC_CORE_H) \
87a0ebfd 2982 $(TARGET_H) $(OPTABS_H) insn-codes.h rtlhooks-def.h $(PARAMS_H) $(CGRAPH_H)
e45425ec 2983cprop.o : cprop.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
ee666c25 2984 $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h \
be7a421e 2985 $(RECOG_H) $(EXPR_H) $(BASIC_BLOCK_H) $(FUNCTION_H) toplev.h $(DIAGNOSTIC_CORE_H) \
7ee2468b 2986 $(TM_P_H) $(PARAMS_H) cselib.h $(EXCEPT_H) $(TREE_H) \
e45425ec 2987 intl.h $(OBSTACK_H) $(TREE_PASS_H) $(DF_H) $(DBGCNT_H) $(TARGET_H) \
7d776ee2 2988 $(DF_H) $(CFGLOOP_H)
e980df8e 2989gcse.o : gcse.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
40013784 2990 $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h $(GGC_H) \
be7a421e 2991 $(RECOG_H) $(EXPR_H) $(BASIC_BLOCK_H) $(FUNCTION_H) toplev.h $(DIAGNOSTIC_CORE_H) \
7ee2468b 2992 $(TM_P_H) $(PARAMS_H) cselib.h $(EXCEPT_H) gt-gcse.h $(TREE_H) \
7a8cba34 2993 intl.h $(OBSTACK_H) $(TREE_PASS_H) $(DF_H) $(DBGCNT_H) $(TARGET_H) \
7c6811fe 2994 $(DF_H) gcse.h
df35c271 2995store-motion.o : store-motion.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
40013784 2996 $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h $(GGC_H) \
be7a421e 2997 $(RECOG_H) $(EXPR_H) $(BASIC_BLOCK_H) $(FUNCTION_H) toplev.h $(DIAGNOSTIC_CORE_H) \
7ee2468b 2998 $(TM_P_H) $(EXCEPT_H) $(TREE_H) \
7072a650 2999 intl.h $(OBSTACK_H) $(TREE_PASS_H) $(DF_H) $(DBGCNT_H)
e980df8e
TT
3000resource.o : resource.c $(CONFIG_H) $(RTL_H) hard-reg-set.h $(SYSTEM_H) \
3001 coretypes.h $(TM_H) $(REGS_H) $(FLAGS_H) output.h $(RESOURCE_H) $(DF_H) \
7c475d11 3002 $(FUNCTION_H) $(DIAGNOSTIC_CORE_H) $(INSN_ATTR_H) $(EXCEPT_H) $(PARAMS_H) $(TM_P_H)
7ee2468b 3003lcm.o : lcm.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h $(TM_H) $(RTL_H) $(REGS_H) \
e980df8e 3004 hard-reg-set.h $(FLAGS_H) insn-config.h $(INSN_ATTR_H) $(RECOG_H) \
be7a421e 3005 $(BASIC_BLOCK_H) $(TM_P_H) $(FUNCTION_H) sbitmap.h
e980df8e
TT
3006mode-switching.o : mode-switching.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
3007 $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h \
3008 $(INSN_ATTR_H) $(RECOG_H) $(BASIC_BLOCK_H) $(TM_P_H) $(FUNCTION_H) \
7ee2468b 3009 $(TREE_PASS_H) $(DF_H) $(TARGET_H) $(EMIT_RTL_H)
e980df8e 3010tree-ssa-dce.o : tree-ssa-dce.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) \
7ee2468b
SB
3011 $(TREE_FLOW_H) $(DIAGNOSTIC_H) $(TM_H) \
3012 coretypes.h $(TREE_PASS_H) $(FLAGS_H) $(BASIC_BLOCK_H) \
ee666c25 3013 $(GGC_H) $(GIMPLE_H) $(CFGLOOP_H) $(SCEV_H) $(GIMPLE_PRETTY_PRINT_H)
c2699190 3014tree-call-cdce.o : tree-call-cdce.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) \
7ee2468b
SB
3015 $(TREE_FLOW_H) $(TM_H) \
3016 coretypes.h $(TREE_PASS_H) $(FLAGS_H) $(BASIC_BLOCK_H) \
ee666c25 3017 $(GIMPLE_H) $(GIMPLE_PRETTY_PRINT_H)
e980df8e 3018tree-ssa-ccp.o : tree-ssa-ccp.c $(TREE_FLOW_H) $(CONFIG_H) \
be7a421e 3019 $(SYSTEM_H) $(TREE_H) $(TM_P_H) \
7ee2468b
SB
3020 $(DIAGNOSTIC_H) $(FUNCTION_H) $(TM_H) coretypes.h \
3021 $(BASIC_BLOCK_H) $(TREE_PASS_H) langhooks.h $(PARAMS_H) \
0823efed
DN
3022 tree-ssa-propagate.h value-prof.h $(FLAGS_H) $(TARGET_H) \
3023 $(DIAGNOSTIC_CORE_H) $(HASH_TABLE_H) \
ee666c25 3024 $(DBGCNT_H) $(GIMPLE_PRETTY_PRINT_H) gimple-fold.h
8b57bfeb
JJ
3025tree-ssa-strlen.o : tree-ssa-strlen.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
3026 $(TREE_FLOW_H) $(TREE_PASS_H) domwalk.h alloc-pool.h tree-ssa-propagate.h \
ee666c25 3027 $(GIMPLE_PRETTY_PRINT_H) $(PARAMS_H) $(EXPR_H)
0674b9d0 3028tree-sra.o : tree-sra.c $(CONFIG_H) $(SYSTEM_H) coretypes.h alloc-pool.h \
7c475d11 3029 $(TM_H) $(TREE_H) $(GIMPLE_H) $(CGRAPH_H) $(TREE_FLOW_H) \
7ee2468b 3030 $(IPA_PROP_H) $(DIAGNOSTIC_H) statistics.h \
6f4185d7 3031 $(PARAMS_H) $(TARGET_H) $(FLAGS_H) \
ee666c25 3032 $(DBGCNT_H) $(TREE_INLINE_H) $(GIMPLE_PRETTY_PRINT_H)
b6e99746
MJ
3033tree-switch-conversion.o : tree-switch-conversion.c $(CONFIG_H) $(SYSTEM_H) \
3034 $(TREE_H) $(TM_P_H) $(TREE_FLOW_H) $(DIAGNOSTIC_H) $(TREE_INLINE_H) \
7ee2468b 3035 $(TM_H) coretypes.h $(GIMPLE_H) \
be7a421e 3036 $(TREE_PASS_H) $(FLAGS_H) $(EXPR_H) $(BASIC_BLOCK_H) \
cf835838 3037 $(GGC_H) $(OBSTACK_H) $(PARAMS_H) $(CPPLIB_H) $(PARAMS_H) \
ee666c25 3038 $(GIMPLE_PRETTY_PRINT_H) langhooks.h
e980df8e 3039tree-complex.o : tree-complex.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TREE_H) \
40013784 3040 $(TM_H) $(FLAGS_H) $(TREE_FLOW_H) $(GIMPLE_H) \
6f4185d7 3041 tree-iterator.h $(TREE_PASS_H) tree-ssa-propagate.h
8b84c596
RH
3042tree-emutls.o : tree-emutls.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TREE_H) \
3043 $(GIMPLE_H) $(TREE_PASS_H) $(TREE_FLOW_H) $(CGRAPH_H) langhooks.h \
6f4185d7 3044 $(TARGET_H) $(TARGET_DEF_H) tree-iterator.h
e980df8e 3045tree-vect-generic.o : tree-vect-generic.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) \
7072a650 3046 $(TM_H) $(TREE_FLOW_H) $(GIMPLE_H) tree-iterator.h $(TREE_PASS_H) \
40013784 3047 $(FLAGS_H) $(OPTABS_H) $(MACHMODE_H) $(EXPR_H) \
e980df8e 3048 langhooks.h $(FLAGS_H) $(DIAGNOSTIC_H) gt-tree-vect-generic.h $(GGC_H) \
0fcc85cd 3049 coretypes.h insn-codes.h $(DIAGNOSTIC_H) $(TARGET_H)
e980df8e
TT
3050df-core.o : df-core.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3051 insn-config.h $(RECOG_H) $(FUNCTION_H) $(REGS_H) alloc-pool.h \
7ee2468b 3052 hard-reg-set.h $(BASIC_BLOCK_H) $(DF_H) $(BITMAP_H) sbitmap.h \
7072a650 3053 $(TM_P_H) $(FLAGS_H) output.h $(TREE_PASS_H) $(PARAMS_H)
7ee2468b 3054df-problems.o : df-problems.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h $(TM_H) \
e980df8e 3055 $(RTL_H) insn-config.h $(RECOG_H) $(FUNCTION_H) $(REGS_H) alloc-pool.h \
e63ea00c 3056 hard-reg-set.h $(BASIC_BLOCK_H) $(DF_H) $(BITMAP_H) sbitmap.h $(TIMEVAR_H) \
9771b263 3057 $(TM_P_H) $(TARGET_H) $(FLAGS_H) $(EXCEPT_H) dce.h $(VALTRACK_H)
7ee2468b 3058df-scan.o : df-scan.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h $(TM_H) $(RTL_H) \
e980df8e 3059 insn-config.h $(RECOG_H) $(FUNCTION_H) $(REGS_H) alloc-pool.h \
7ee2468b 3060 hard-reg-set.h $(BASIC_BLOCK_H) $(DF_H) $(BITMAP_H) sbitmap.h \
be7a421e 3061 $(TM_P_H) $(FLAGS_H) $(TARGET_H) $(TARGET_DEF_H) $(TREE_H) \
7ee2468b 3062 $(EMIT_RTL_H)
e980df8e 3063regstat.o : regstat.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
be7a421e 3064 $(TM_P_H) $(FLAGS_H) $(REGS_H) $(EXCEPT_H) hard-reg-set.h \
e980df8e 3065 $(BASIC_BLOCK_H) $(TIMEVAR_H) $(DF_H)
08df6c0d
AO
3066valtrack.o : valtrack.c $(VALTRACK_H) $(CONFIG_H) $(SYSTEM_H) \
3067 coretypes.h $(TM_H) $(FUNCTION_H) $(REGS_H) $(EMIT_RTL_H)
e980df8e
TT
3068var-tracking.o : var-tracking.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3069 $(RTL_H) $(TREE_H) hard-reg-set.h insn-config.h reload.h $(FLAGS_H) \
be7a421e 3070 $(BASIC_BLOCK_H) bitmap.h alloc-pool.h $(FIBHEAP_H) $(HASHTAB_H) \
7ee2468b 3071 $(REGS_H) $(EXPR_H) $(TREE_PASS_H) $(TREE_FLOW_H) \
8cda8ad3
AO
3072 cselib.h $(TARGET_H) $(DIAGNOSTIC_CORE_H) $(PARAMS_H) $(DIAGNOSTIC_H) \
3073 pointer-set.h $(RECOG_H) $(TM_P_H) $(TREE_PRETTY_PRINT_H) $(ALIAS_H)
7ee2468b 3074profile.o : profile.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h $(TM_H) $(RTL_H) \
be7a421e 3075 $(TREE_H) $(FLAGS_H) $(REGS_H) $(EXPR_H) $(FUNCTION_H) $(BASIC_BLOCK_H) \
78bde837 3076 $(DIAGNOSTIC_CORE_H) $(COVERAGE_H) $(TREE_FLOW_H) value-prof.h \
7ee2468b
SB
3077 $(CFGLOOP_H) profile.h
3078mcf.o : mcf.c profile.h $(CONFIG_H) $(SYSTEM_H) $(TM_H) coretypes.h dumpfile.h \
be7a421e 3079 $(BASIC_BLOCK_H) langhooks.h $(GCOV_IO_H) $(TREE_H)
e980df8e 3080tree-profile.o : tree-profile.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
296f202e 3081 $(TM_H) $(TARGET_H) $(TREE_H) $(FLAGS_H) $(FUNCTION_H) \
7ee2468b
SB
3082 $(BASIC_BLOCK_H) $(DIAGNOSTIC_CORE_H) $(COVERAGE_H) $(TREE_H) value-prof.h \
3083 $(TREE_PASS_H) $(TREE_FLOW_H) gt-tree-profile.h $(CGRAPH_H)
3084value-prof.o : value-prof.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h $(TM_H) \
be7a421e 3085 $(BASIC_BLOCK_H) hard-reg-set.h profile.h value-prof.h $(EXPR_H) $(FLAGS_H) \
e980df8e
TT
3086 $(RECOG_H) insn-config.h $(OPTABS_H) $(REGS_H) $(GGC_H) $(DIAGNOSTIC_H) \
3087 $(TREE_H) $(COVERAGE_H) $(RTL_H) $(GCOV_IO_H) $(TREE_FLOW_H) \
7ee2468b 3088 tree-flow-inline.h $(TIMEVAR_H) $(DIAGNOSTIC_CORE_H) pointer-set.h \
ee666c25 3089 $(GIMPLE_PRETTY_PRINT_H)
7ee2468b 3090loop-doloop.o : loop-doloop.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h $(TM_H) \
e980df8e 3091 $(RTL_H) $(FLAGS_H) $(EXPR_H) hard-reg-set.h $(BASIC_BLOCK_H) $(TM_P_H) \
be7a421e 3092 $(DIAGNOSTIC_CORE_H) $(CFGLOOP_H) $(PARAMS_H) $(TARGET_H)
e980df8e
TT
3093alloc-pool.o : alloc-pool.c $(CONFIG_H) $(SYSTEM_H) alloc-pool.h $(HASHTAB_H)
3094auto-inc-dec.o : auto-inc-dec.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3095 $(TREE_H) $(RTL_H) $(TM_P_H) hard-reg-set.h $(BASIC_BLOCK_H) insn-config.h \
be7a421e 3096 $(REGS_H) $(FLAGS_H) $(FUNCTION_H) $(EXCEPT_H) $(DIAGNOSTIC_CORE_H) $(RECOG_H) \
7ee2468b
SB
3097 $(EXPR_H) $(TREE_PASS_H) $(DF_H) $(DBGCNT_H) $(TARGET_H)
3098cfg.o : cfg.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h $(DIAGNOSTIC_CORE_H) \
703c8606 3099 $(GGC_H) $(OBSTACK_H) alloc-pool.h $(HASH_TABLE_H) $(CFGLOOP_H) $(TREE_H) \
2eb712b4 3100 $(BASIC_BLOCK_H)
e980df8e 3101cfghooks.o: cfghooks.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
7c475d11 3102 $(TREE_H) $(BASIC_BLOCK_H) $(TREE_FLOW_H) $(TIMEVAR_H) toplev.h $(DIAGNOSTIC_CORE_H) $(CFGLOOP_H)
e980df8e 3103cfgexpand.o : cfgexpand.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
7ee2468b
SB
3104 $(RTL_H) $(TREE_H) $(TM_P_H) $(EXPR_H) $(FUNCTION_H) $(TM_H) \
3105 coretypes.h $(EXCEPT_H) langhooks.h $(TREE_PASS_H) $(RTL_H) \
7c475d11 3106 $(DIAGNOSTIC_H) toplev.h $(DIAGNOSTIC_CORE_H) $(BASIC_BLOCK_H) $(FLAGS_H) debug.h $(PARAMS_H) \
be147e84 3107 value-prof.h $(TREE_INLINE_H) $(TARGET_H) $(SSAEXPAND_H) $(REGS_H) \
ee666c25 3108 $(GIMPLE_PRETTY_PRINT_H) $(BITMAP_H) sbitmap.h \
f3ddd692 3109 $(INSN_ATTR_H) $(CFGLOOP_H) asan.h
0cbd9993 3110cfgrtl.o : cfgrtl.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_ERROR_H) \
e980df8e 3111 $(FLAGS_H) insn-config.h $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h \
be7a421e 3112 $(FUNCTION_H) $(EXCEPT_H) $(TM_P_H) $(INSN_ATTR_H) \
2a34bece 3113 insn-config.h $(EXPR_H) \
78bde837
SB
3114 $(CFGLOOP_H) $(OBSTACK_H) $(TARGET_H) $(TREE_H) \
3115 $(TREE_PASS_H) $(DF_H) $(GGC_H) $(COMMON_TARGET_H) gt-cfgrtl.h
532aafad 3116cfganal.o : cfganal.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(BASIC_BLOCK_H) \
9771b263 3117 $(TIMEVAR_H) sbitmap.h $(BITMAP_H)
e980df8e 3118cfgbuild.o : cfgbuild.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
be7a421e 3119 $(FLAGS_H) $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h $(DIAGNOSTIC_CORE_H) \
7a8cba34 3120 $(FUNCTION_H) $(EXCEPT_H) $(TIMEVAR_H) $(TREE_H) $(EXPR_H) sbitmap.h
e980df8e 3121cfgcleanup.o : cfgcleanup.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
7ee2468b 3122 $(RTL_H) hard-reg-set.h $(FLAGS_H) $(RECOG_H) \
7c475d11 3123 $(DIAGNOSTIC_CORE_H) insn-config.h cselib.h $(TARGET_H) $(TM_P_H) $(PARAMS_H) \
78bde837 3124 $(REGS_H) $(EMIT_RTL_H) $(FUNCTION_H) $(TREE_PASS_H) $(CFGLOOP_H) $(EXPR_H) \
e63ea00c 3125 $(DF_H) $(DBGCNT_H) dce.h
7ee2468b 3126cfgloop.o : cfgloop.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) coretypes.h dumpfile.h $(TM_H) \
e980df8e 3127 $(BASIC_BLOCK_H) hard-reg-set.h $(CFGLOOP_H) $(FLAGS_H) $(FUNCTION_H) \
be7a421e 3128 $(OBSTACK_H) toplev.h $(DIAGNOSTIC_CORE_H) $(TREE_FLOW_H) $(TREE_H) pointer-set.h \
e980df8e 3129 $(GGC_H)
7ee2468b
SB
3130cfgloopanal.o : cfgloopanal.c coretypes.h dumpfile.h $(CONFIG_H) $(SYSTEM_H) $(RTL_H) \
3131 $(BASIC_BLOCK_H) hard-reg-set.h $(CFGLOOP_H) $(EXPR_H) $(TM_H) \
be7a421e 3132 $(OBSTACK_H) graphds.h $(PARAMS_H)
e63ea00c 3133graphds.o : graphds.c graphds.h $(CONFIG_H) $(SYSTEM_H) $(BITMAP_H) $(OBSTACK_H) \
9771b263 3134 coretypes.h $(VEC_H)
7ee2468b
SB
3135loop-iv.o : loop-iv.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h \
3136 $(RTL_H) $(BASIC_BLOCK_H) \
3137 hard-reg-set.h $(CFGLOOP_H) $(EXPR_H) $(TM_H) $(OBSTACK_H) \
be7a421e 3138 intl.h $(DIAGNOSTIC_CORE_H) $(DF_H) $(HASHTAB_H)
7ee2468b
SB
3139loop-invariant.o : loop-invariant.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h \
3140 $(RTL_H) $(BASIC_BLOCK_H) hard-reg-set.h $(CFGLOOP_H) $(EXPR_H) $(RECOG_H) \
1a17bd35 3141 $(TM_H) $(TM_P_H) $(FUNCTION_H) $(FLAGS_H) $(DF_H) $(TARGET_H) \
be7a421e 3142 $(OBSTACK_H) $(HASHTAB_H) $(EXCEPT_H) $(PARAMS_H) $(REGS_H) ira.h
e980df8e 3143cfgloopmanip.o : cfgloopmanip.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) \
78bde837
SB
3144 $(BASIC_BLOCK_H) hard-reg-set.h $(CFGLOOP_H) \
3145 coretypes.h $(TM_H) $(OBSTACK_H) $(TREE_FLOW_H)
e980df8e 3146loop-init.o : loop-init.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(GGC_H) \
78bde837 3147 $(BASIC_BLOCK_H) hard-reg-set.h $(CFGLOOP_H) \
7ee2468b 3148 coretypes.h $(TM_H) $(OBSTACK_H) $(TREE_PASS_H) $(FLAGS_H) \
532aafad 3149 $(REGS_H) $(DF_H)
7ee2468b
SB
3150loop-unswitch.o : loop-unswitch.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h \
3151 $(RTL_H) $(TM_H) $(BASIC_BLOCK_H) hard-reg-set.h $(CFGLOOP_H) $(PARAMS_H) \
3152 $(EXPR_H) $(TM_H) $(OBSTACK_H)
3153loop-unroll.o: loop-unroll.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h \
3154 $(RTL_H) $(TM_H) $(BASIC_BLOCK_H) hard-reg-set.h $(CFGLOOP_H) $(PARAMS_H) \
3155 $(EXPR_H) $(TM_H) $(HASHTAB_H) $(RECOG_H) \
e980df8e
TT
3156 $(OBSTACK_H)
3157dominance.o : dominance.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
7c475d11 3158 hard-reg-set.h $(BASIC_BLOCK_H) et-forest.h $(OBSTACK_H) $(DIAGNOSTIC_CORE_H) \
9771b263 3159 $(TIMEVAR_H) graphds.h pointer-set.h $(BITMAP_H)
8e65c286 3160et-forest.o : et-forest.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
e980df8e
TT
3161 et-forest.h alloc-pool.h $(BASIC_BLOCK_H)
3162combine.o : combine.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3163 $(FLAGS_H) $(FUNCTION_H) insn-config.h $(INSN_ATTR_H) $(REGS_H) $(EXPR_H) \
40013784 3164 rtlhooks-def.h $(BASIC_BLOCK_H) $(RECOG_H) hard-reg-set.h \
08df6c0d
AO
3165 $(DIAGNOSTIC_CORE_H) $(TM_P_H) $(TREE_H) $(TARGET_H) \
3166 output.h $(PARAMS_H) $(OPTABS_H) \
3167 insn-codes.h $(TREE_PASS_H) $(DF_H) $(VALTRACK_H) \
9771b263 3168 $(CGRAPH_H) $(OBSTACK_H)
2af2dbdc 3169reginfo.o : reginfo.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
360d045b 3170 hard-reg-set.h $(FLAGS_H) $(BASIC_BLOCK_H) addresses.h $(REGS_H) \
7c475d11 3171 insn-config.h $(RECOG_H) reload.h $(DIAGNOSTIC_CORE_H) \
7ee2468b 3172 $(FUNCTION_H) output.h $(TM_P_H) $(EXPR_H) $(HASHTAB_H) \
7072a650 3173 $(TARGET_H) $(TREE_PASS_H) $(DF_H) ira.h
8e65c286
NF
3174bitmap.o : bitmap.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
3175 $(GGC_H) gt-bitmap.h $(BITMAP_H) $(OBSTACK_H) $(HASHTAB_H)
3e097227 3176vec.o : vec.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(VEC_H) $(GGC_H) \
6f4185d7 3177 $(DIAGNOSTIC_CORE_H) $(HASHTAB_H)
0823efed
DN
3178hash-table.o : hash-table.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
3179 $(HASHTAB_H)
0cbd9993 3180reload.o : reload.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_ERROR_H) \
a4b7d13c 3181 $(FLAGS_H) $(EXPR_H) $(OPTABS_H) reload.h $(RECOG_H) \
0cbd9993 3182 hard-reg-set.h insn-config.h $(REGS_H) $(FUNCTION_H) real.h \
c59ffc41 3183 addresses.h $(TM_P_H) $(PARAMS_H) $(TARGET_H) $(DF_H) ira.h $(DIAGNOSTIC_CORE_H)
7ee2468b
SB
3184reload1.o : reload1.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h \
3185 $(TM_H) $(RTL_ERROR_H) \
e980df8e 3186 $(EXPR_H) $(OPTABS_H) reload.h $(REGS_H) hard-reg-set.h insn-config.h \
be7a421e 3187 $(BASIC_BLOCK_H) $(RECOG_H) $(FUNCTION_H) $(TM_P_H) \
40013784 3188 addresses.h $(EXCEPT_H) $(TREE_H) $(FLAGS_H) $(MACHMODE_H) \
f6129d66 3189 $(OBSTACK_H) $(DF_H) $(TARGET_H) $(EMIT_RTL_H) ira.h
e980df8e
TT
3190rtlhooks.o : rtlhooks.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3191 rtlhooks-def.h $(EXPR_H) $(RECOG_H)
3192postreload.o : postreload.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
40013784 3193 $(RTL_H) $(FLAGS_H) $(EXPR_H) $(OPTABS_H) reload.h $(REGS_H) \
be7a421e 3194 hard-reg-set.h insn-config.h $(BASIC_BLOCK_H) $(RECOG_H) \
7c475d11 3195 $(FUNCTION_H) $(DIAGNOSTIC_CORE_H) cselib.h $(TM_P_H) $(EXCEPT_H) $(TREE_H) $(MACHMODE_H) \
7ee2468b 3196 $(OBSTACK_H) $(TARGET_H) $(TREE_PASS_H) $(DF_H) $(DBGCNT_H)
e980df8e
TT
3197postreload-gcse.o : postreload-gcse.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
3198 $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h \
be7a421e 3199 $(RECOG_H) $(EXPR_H) $(BASIC_BLOCK_H) $(FUNCTION_H) $(DIAGNOSTIC_CORE_H) \
a8da523f 3200 $(TM_P_H) $(EXCEPT_H) $(TREE_H) $(TARGET_H) $(HASHTAB_H) intl.h $(OBSTACK_H) \
7ee2468b
SB
3201 $(PARAMS_H) $(TREE_PASS_H) $(DBGCNT_H)
3202caller-save.o : caller-save.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h \
3203 $(TM_H) $(RTL_H) \
e980df8e 3204 $(FLAGS_H) $(REGS_H) hard-reg-set.h insn-config.h $(BASIC_BLOCK_H) $(FUNCTION_H) \
7c475d11 3205 addresses.h $(RECOG_H) reload.h $(EXPR_H) $(DIAGNOSTIC_CORE_H) $(TM_P_H) $(DF_H) \
be7a421e 3206 gt-caller-save.h $(GGC_H)
a8da523f 3207bt-load.o : bt-load.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(EXCEPT_H) \
be7a421e 3208 $(RTL_H) hard-reg-set.h $(REGS_H) $(TM_P_H) $(FIBHEAP_H) $(EXPR_H) \
7072a650 3209 $(TARGET_H) $(FLAGS_H) $(INSN_ATTR_H) $(FUNCTION_H) $(TREE_PASS_H) \
9771b263 3210 $(DIAGNOSTIC_CORE_H) $(DF_H) $(RECOG_H) $(CFGLOOP_H)
e980df8e
TT
3211reorg.o : reorg.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3212 conditions.h hard-reg-set.h $(BASIC_BLOCK_H) $(REGS_H) insn-config.h \
a8da523f 3213 $(INSN_ATTR_H) $(EXCEPT_H) $(RECOG_H) $(FUNCTION_H) $(FLAGS_H) output.h \
7c475d11 3214 $(EXPR_H) $(DIAGNOSTIC_CORE_H) $(PARAMS_H) $(TM_P_H) $(OBSTACK_H) $(RESOURCE_H) \
7ee2468b
SB
3215 $(TARGET_H) $(TREE_PASS_H)
3216alias.o : alias.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h $(TM_H) $(RTL_H) \
be7a421e 3217 $(FLAGS_H) hard-reg-set.h $(BASIC_BLOCK_H) $(REGS_H) $(DIAGNOSTIC_CORE_H) \
e980df8e
TT
3218 $(ALIAS_H) $(EMIT_RTL_H) $(GGC_H) $(FUNCTION_H) cselib.h $(TREE_H) $(TM_P_H) \
3219 langhooks.h $(TARGET_H) gt-alias.h $(TIMEVAR_H) $(CGRAPH_H) \
7ee2468b 3220 $(SPLAY_TREE_H) $(DF_H) \
55b34b5f 3221 tree-ssa-alias.h pointer-set.h $(TREE_FLOW_H)
e980df8e 3222stack-ptr-mod.o : stack-ptr-mod.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
7072a650 3223 $(TM_H) $(TREE_H) $(RTL_H) $(REGS_H) $(EXPR_H) $(TREE_PASS_H) \
e980df8e
TT
3224 $(BASIC_BLOCK_H) $(FLAGS_H) output.h $(DF_H)
3225init-regs.o : init-regs.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
7072a650 3226 $(TM_H) $(TREE_H) $(RTL_H) $(REGS_H) $(EXPR_H) $(TREE_PASS_H) \
e980df8e 3227 $(BASIC_BLOCK_H) $(FLAGS_H) $(DF_H)
058e97ec
VM
3228ira-build.o: ira-build.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3229 $(TARGET_H) $(RTL_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) \
7c475d11 3230 insn-config.h $(RECOG_H) $(BASIC_BLOCK_H) $(DIAGNOSTIC_CORE_H) $(TM_P_H) \
be7a421e 3231 $(PARAMS_H) $(DF_H) sparseset.h $(IRA_INT_H) reload.h
058e97ec 3232ira-costs.o: ira-costs.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
464778c0 3233 hard-reg-set.h $(RTL_H) $(EXPR_H) $(TM_P_H) $(FLAGS_H) $(BASIC_BLOCK_H) \
7c475d11 3234 $(REGS_H) addresses.h insn-config.h $(RECOG_H) $(DIAGNOSTIC_CORE_H) $(TARGET_H) \
8ff49c29 3235 $(PARAMS_H) $(IRA_INT_H) reload.h
058e97ec 3236ira-conflicts.o: ira-conflicts.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
532aafad 3237 $(TARGET_H) $(RTL_H) $(REGS_H) hard-reg-set.h $(TREE_H) $(FLAGS_H) \
7c475d11 3238 insn-config.h $(RECOG_H) $(BASIC_BLOCK_H) $(DIAGNOSTIC_CORE_H) $(TM_P_H) $(PARAMS_H) \
f2c2d5e3 3239 $(DF_H) sparseset.h addresses.h $(IRA_INT_H)
058e97ec
VM
3240ira-color.o: ira-color.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3241 $(TARGET_H) $(RTL_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) \
c59ffc41 3242 $(EXPR_H) $(BASIC_BLOCK_H) $(DIAGNOSTIC_CORE_H) $(TM_P_H) reload.h $(PARAMS_H) \
1756cb66 3243 $(DF_H) $(IRA_INT_H)
058e97ec 3244ira-emit.o: ira-emit.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
464778c0 3245 $(REGS_H) $(RTL_H) $(TM_P_H) $(TARGET_H) $(FLAGS_H) hard-reg-set.h \
7ee2468b 3246 $(BASIC_BLOCK_H) $(EXPR_H) $(RECOG_H) $(PARAMS_H) \
be7a421e 3247 $(TREE_PASS_H) reload.h $(DF_H) $(IRA_INT_H)
058e97ec 3248ira-lives.o: ira-lives.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
a8da523f 3249 $(TARGET_H) $(RTL_H) $(REGS_H) $(EXCEPT_H) hard-reg-set.h $(FLAGS_H) \
7c475d11 3250 insn-config.h $(RECOG_H) $(BASIC_BLOCK_H) $(DIAGNOSTIC_CORE_H) $(TM_P_H) $(PARAMS_H) \
058e97ec
VM
3251 $(DF_H) sparseset.h $(IRA_INT_H)
3252ira.o: ira.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
464778c0 3253 $(TM_H) $(REGS_H) $(RTL_H) $(TM_P_H) $(TARGET_H) $(FLAGS_H) $(OBSTACK_H) \
ee666c25 3254 $(BITMAP_H) hard-reg-set.h $(BASIC_BLOCK_H) $(DBGCNT_H) $(FUNCTION_H) \
7ee2468b 3255 $(EXPR_H) $(RECOG_H) $(PARAMS_H) $(TREE_PASS_H) output.h \
55a2c322
VM
3256 $(EXCEPT_H) reload.h toplev.h $(DIAGNOSTIC_CORE_H) \
3257 $(DF_H) $(GGC_H) $(IRA_INT_H) lra.h
3258lra.o : lra.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3259 $(RTL_H) $(REGS_H) insn-config.h insn-codes.h $(TIMEVAR_H) $(TREE_PASS_H) \
3260 $(DF_H) $(RECOG_H) output.h addresses.h $(REGS_H) hard-reg-set.h \
3261 $(FLAGS_H) $(FUNCTION_H) $(EXPR_H) $(BASIC_BLOCK_H) $(TM_P_H) \
3262 $(EXCEPT_H) ira.h $(LRA_INT_H)
3263lra-assigns.o : lra-assigns.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
3264 $(TM_H) $(RTL_H) $(REGS_H) insn-config.h $(DF_H) \
3265 $(RECOG_H) output.h $(REGS_H) hard-reg-set.h $(FLAGS_H) $(FUNCTION_H) \
3266 $(EXPR_H) $(BASIC_BLOCK_H) $(TM_P_H) $(EXCEPT_H) ira.h \
3267 rtl-error.h sparseset.h $(LRA_INT_H)
3268lra-coalesce.o : lra-coalesce.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
3269 $(TM_H) $(RTL_H) $(REGS_H) insn-config.h $(DF_H) \
3270 $(RECOG_H) output.h $(REGS_H) hard-reg-set.h $(FLAGS_H) $(FUNCTION_H) \
3271 $(EXPR_H) $(BASIC_BLOCK_H) $(TM_P_H) $(EXCEPT_H) ira.h \
3272 rtl-error.h ira.h $(LRA_INT_H)
3273lra-constraints.o : lra-constraints.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
3274 $(TM_H) $(RTL_H) $(REGS_H) insn-config.h insn-codes.h $(DF_H) \
3275 $(RECOG_H) output.h addresses.h $(REGS_H) hard-reg-set.h $(FLAGS_H) \
3276 $(FUNCTION_H) $(EXPR_H) $(BASIC_BLOCK_H) $(TM_P_H) $(EXCEPT_H) \
3277 ira.h rtl-error.h $(LRA_INT_H)
3278lra-eliminations.o : lra-eliminations.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
3279 $(TM_H) $(RTL_H) $(REGS_H) insn-config.h $(DF_H) \
3280 $(RECOG_H) output.h $(REGS_H) hard-reg-set.h $(FLAGS_H) $(FUNCTION_H) \
3281 $(EXPR_H) $(BASIC_BLOCK_H) $(TM_P_H) $(EXCEPT_H) ira.h \
3282 rtl-error.h $(LRA_INT_H)
3283lra-lives.o : lra-lives.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3284 $(RTL_H) $(REGS_H) insn-config.h $(DF_H) \
3285 $(RECOG_H) output.h $(REGS_H) hard-reg-set.h $(FLAGS_H) $(FUNCTION_H) \
3286 $(EXPR_H) $(BASIC_BLOCK_H) $(TM_P_H) $(EXCEPT_H) \
3287 $(LRA_INT_H)
3288lra-spills.o : lra-spills.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3289 $(RTL_H) $(REGS_H) insn-config.h $(DF_H) \
3290 $(RECOG_H) output.h $(REGS_H) hard-reg-set.h $(FLAGS_H) $(FUNCTION_H) \
3291 $(EXPR_H) $(BASIC_BLOCK_H) $(TM_P_H) $(EXCEPT_H) \
3292 ira.h $(LRA_INT_H)
e980df8e 3293regmove.o : regmove.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
7ee2468b 3294 insn-config.h $(TREE_PASS_H) $(DF_H) \
be7a421e 3295 $(RECOG_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) $(FUNCTION_H) \
7c475d11 3296 $(EXPR_H) $(BASIC_BLOCK_H) $(DIAGNOSTIC_CORE_H) $(TM_P_H) \
85194319 3297 $(EXCEPT_H) ira.h reload.h $(TARGET_H)
e980df8e 3298combine-stack-adj.o : combine-stack-adj.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
7ee2468b 3299 $(TM_H) $(RTL_H) insn-config.h $(TREE_PASS_H) \
be7a421e 3300 $(RECOG_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) $(FUNCTION_H) \
ee666c25 3301 $(EXPR_H) $(BASIC_BLOCK_H) $(TM_P_H) $(DF_H) $(EXCEPT_H) reload.h
e692f276
RH
3302compare-elim.o : compare-elim.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
3303 $(TM_H) $(RTL_H) $(TM_P_H) insn-config.h $(RECOG_H) $(FLAGS_H) \
3304 $(BASIC_BLOCK_H) $(TREE_PASS_H) $(TARGET_H) $(DF_H) domwalk.h
e980df8e 3305ddg.o : ddg.c $(DDG_H) $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TARGET_H) \
7c475d11 3306 $(DIAGNOSTIC_CORE_H) $(RTL_H) $(TM_P_H) $(REGS_H) $(FUNCTION_H) \
a8da523f 3307 $(FLAGS_H) insn-config.h $(INSN_ATTR_H) $(EXCEPT_H) $(RECOG_H) \
78bde837 3308 $(SCHED_INT_H) $(CFGLOOP_H) $(EXPR_H) $(BITMAP_H) \
e980df8e
TT
3309 hard-reg-set.h sbitmap.h $(TM_H)
3310modulo-sched.o : modulo-sched.c $(DDG_H) $(CONFIG_H) $(CONFIG_H) $(SYSTEM_H) \
7c475d11 3311 coretypes.h $(TARGET_H) $(DIAGNOSTIC_CORE_H) $(RTL_H) $(TM_P_H) $(REGS_H) $(FUNCTION_H) \
a8da523f 3312 $(FLAGS_H) insn-config.h $(INSN_ATTR_H) $(EXCEPT_H) $(RECOG_H) \
78bde837 3313 $(SCHED_INT_H) $(CFGLOOP_H) $(EXPR_H) $(PARAMS_H) \
7ee2468b 3314 $(GCOV_IO_H) hard-reg-set.h $(TM_H) $(TREE_PASS_H) \
e980df8e 3315 $(DF_H) $(DBGCNT_H)
7ee2468b
SB
3316haifa-sched.o : haifa-sched.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h \
3317 $(TM_H) $(RTL_H) \
e980df8e 3318 $(SCHED_INT_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h $(FUNCTION_H) \
be7a421e 3319 $(INSN_ATTR_H) $(DIAGNOSTIC_CORE_H) $(RECOG_H) $(EXCEPT_H) $(TM_P_H) $(TARGET_H) \
26965010
BS
3320 $(PARAMS_H) $(DBGCNT_H) $(CFGLOOP_H) ira.h $(EMIT_RTL_H) $(COMMON_TARGET_H) \
3321 $(HASHTAB_H)
e980df8e
TT
3322sched-deps.o : sched-deps.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3323 $(RTL_H) $(SCHED_INT_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h \
7c475d11 3324 $(FUNCTION_H) $(INSN_ATTR_H) $(DIAGNOSTIC_CORE_H) $(RECOG_H) $(EXCEPT_H) cselib.h \
1a83e602 3325 ira.h $(PARAMS_H) $(TM_P_H) ira.h $(TARGET_H) $(TREE_H) $(EMIT_RTL_H)
e980df8e
TT
3326sched-rgn.o : sched-rgn.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3327 $(RTL_H) $(SCHED_INT_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h \
7c475d11 3328 $(FUNCTION_H) $(INSN_ATTR_H) $(DIAGNOSTIC_CORE_H) $(RECOG_H) $(EXCEPT_H) $(PARAMS_H) \
7ee2468b 3329 $(TM_P_H) sel-sched.h $(TARGET_H) $(TREE_PASS_H) \
e855c69d 3330 $(DBGCNT_H)
e980df8e
TT
3331sched-ebb.o : sched-ebb.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3332 $(RTL_H) $(SCHED_INT_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h \
7c475d11 3333 $(FUNCTION_H) $(INSN_ATTR_H) $(DIAGNOSTIC_CORE_H) $(RECOG_H) $(EXCEPT_H) $(TM_P_H) \
78bde837 3334 $(PARAMS_H) $(TARGET_H)
7ee2468b 3335sched-vis.o : sched-vis.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h $(TM_H) \
e980df8e 3336 $(RTL_H) $(SCHED_INT_H) hard-reg-set.h $(BASIC_BLOCK_H) $(OBSTACK_H) \
7ee2468b 3337 $(INSN_ATTR_H) $(TREE_H)
e855c69d 3338sel-sched.o : sel-sched.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
0cbd9993
MLI
3339 $(RTL_ERROR_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h \
3340 $(FUNCTION_H) $(INSN_ATTR_H) $(RECOG_H) $(EXCEPT_H) $(PARAMS_H) \
7ee2468b 3341 $(TM_P_H) output.h $(TARGET_H) $(TREE_PASS_H) \
464778c0 3342 $(SCHED_INT_H) $(GGC_H) $(TREE_H) langhooks.h rtlhooks-def.h \
5936d944 3343 $(SEL_SCHED_IR_H) $(SEL_SCHED_DUMP_H) sel-sched.h $(DBGCNT_H) $(EMIT_RTL_H)
e855c69d
AB
3344sel-sched-dump.o : sel-sched-dump.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3345 $(RTL_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h \
7c475d11 3346 $(FUNCTION_H) $(INSN_ATTR_H) $(DIAGNOSTIC_CORE_H) $(RECOG_H) $(EXCEPT_H) $(PARAMS_H) \
7ee2468b 3347 $(TM_P_H) $(TARGET_H) $(TREE_PASS_H) \
464778c0 3348 $(SEL_SCHED_DUMP_H) $(GGC_H) $(TREE_H) $(LANGHOOKS_DEF_H) $(SEL_SCHED_IR_H) \
be7a421e 3349 $(BASIC_BLOCK_H) cselib.h
e855c69d
AB
3350sel-sched-ir.o : sel-sched-ir.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3351 $(RTL_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h \
7c475d11 3352 $(FUNCTION_H) $(INSN_ATTR_H) $(DIAGNOSTIC_CORE_H) $(RECOG_H) $(EXCEPT_H) $(PARAMS_H) \
7ee2468b 3353 $(TM_P_H) $(TARGET_H) $(TREE_PASS_H) $(SCHED_INT_H) $(GGC_H) \
5936d944
JH
3354 $(TREE_H) langhooks.h rtlhooks-def.h $(SEL_SCHED_IR_H) $(SEL_SCHED_DUMP_H) \
3355 $(EMIT_RTL_H)
0cbd9993 3356final.o : final.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_ERROR_H) \
e980df8e
TT
3357 $(TREE_H) $(FLAGS_H) intl.h $(REGS_H) $(RECOG_H) conditions.h \
3358 insn-config.h $(INSN_ATTR_H) $(FUNCTION_H) output.h hard-reg-set.h \
6f4185d7 3359 $(EXCEPT_H) debug.h xcoffout.h toplev.h $(DIAGNOSTIC_CORE_H) reload.h $(DWARF2OUT_H) \
7072a650 3360 $(TREE_PASS_H) $(BASIC_BLOCK_H) $(TM_P_H) $(TARGET_H) $(EXPR_H) \
7ee2468b 3361 dbxout.h $(CGRAPH_H) $(COVERAGE_H) \
9771b263 3362 $(DF_H) $(GGC_H) $(CFGLOOP_H) $(PARAMS_H) $(TREE_FLOW_H) \
6f4185d7 3363 $(TARGET_DEF_H) $(TREE_PRETTY_PRINT_H)
0cbd9993 3364recog.o : recog.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_ERROR_H) \
e980df8e 3365 $(FUNCTION_H) $(BASIC_BLOCK_H) $(REGS_H) $(RECOG_H) $(EXPR_H) \
a4b7d13c 3366 $(FLAGS_H) insn-config.h $(INSN_ATTR_H) reload.h \
7ee2468b 3367 addresses.h $(TM_P_H) $(TREE_PASS_H) hard-reg-set.h \
fcdd52b7 3368 $(DF_H) $(DBGCNT_H) $(TARGET_H) $(DIAGNOSTIC_CORE_H) insn-codes.h
e980df8e 3369reg-stack.o : reg-stack.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
0cbd9993
MLI
3370 $(RTL_ERROR_H) $(TREE_H) $(RECOG_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) \
3371 insn-config.h reload.h $(FUNCTION_H) $(TM_P_H) $(GGC_H) \
7ee2468b 3372 $(BASIC_BLOCK_H) \
9771b263 3373 $(TREE_PASS_H) $(TARGET_H) $(DF_H) $(EMIT_RTL_H)
8e65c286 3374sreal.o: sreal.c $(CONFIG_H) $(SYSTEM_H) coretypes.h sreal.h
e980df8e
TT
3375predict.o: predict.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3376 $(TREE_H) $(FLAGS_H) insn-config.h $(BASIC_BLOCK_H) $(REGS_H) \
be7a421e 3377 hard-reg-set.h $(DIAGNOSTIC_CORE_H) $(RECOG_H) $(FUNCTION_H) $(EXCEPT_H) \
e980df8e 3378 $(TM_P_H) $(PREDICT_H) sreal.h $(PARAMS_H) $(TARGET_H) $(CFGLOOP_H) \
7ee2468b 3379 $(COVERAGE_H) $(SCEV_H) $(GGC_H) predict.def \
7072a650 3380 $(TREE_FLOW_H) $(TREE_PASS_H) $(EXPR_H) pointer-set.h
7c475d11 3381lists.o: lists.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(DIAGNOSTIC_CORE_H) \
e980df8e
TT
3382 $(RTL_H) $(GGC_H) gt-lists.h
3383bb-reorder.o : bb-reorder.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
7ee2468b 3384 $(RTL_H) $(FLAGS_H) output.h $(FIBHEAP_H) \
e980df8e 3385 $(TARGET_H) $(FUNCTION_H) $(TM_P_H) $(OBSTACK_H) $(EXPR_H) $(REGS_H) \
7c475d11 3386 $(PARAMS_H) toplev.h $(DIAGNOSTIC_CORE_H) $(TREE_PASS_H) $(DF_H) \
0be7e7a6 3387 $(EXCEPT_H) bb-reorder.h
e980df8e 3388tracer.o : tracer.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
78bde837 3389 $(TREE_H) $(BASIC_BLOCK_H) hard-reg-set.h \
7ee2468b 3390 $(FLAGS_H) $(PARAMS_H) $(COVERAGE_H) $(FIBHEAP_H) \
0b9066cf 3391 $(TREE_PASS_H) $(TREE_FLOW_H) $(TREE_INLINE_H) $(CFGLOOP_H)
6f4185d7 3392timevar.o : timevar.c $(CONFIG_H) $(SYSTEM_H) $(TIMEVAR_H)
fac41238
PB
3393regcprop.o : regcprop.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3394 $(RTL_H) insn-config.h $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h \
be7a421e 3395 $(RECOG_H) $(FUNCTION_H) $(OBSTACK_H) $(FLAGS_H) $(TM_P_H) \
7ee2468b 3396 addresses.h reload.h $(DIAGNOSTIC_CORE_H) $(TREE_PASS_H) $(DF_H)
e980df8e 3397regrename.o : regrename.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
0cbd9993 3398 $(RTL_ERROR_H) insn-config.h $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h \
e980df8e 3399 output.h $(RECOG_H) $(FUNCTION_H) $(OBSTACK_H) $(FLAGS_H) $(TM_P_H) \
7ee2468b 3400 addresses.h reload.h $(TREE_PASS_H) $(DF_H) $(TARGET_H) \
1f234b83 3401 regrename.h $(EMIT_RTL_H)
e980df8e 3402ifcvt.o : ifcvt.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
c59ffc41 3403 $(REGS_H) $(DIAGNOSTIC_CORE_H) $(FLAGS_H) insn-config.h $(FUNCTION_H) $(RECOG_H) \
a8da523f 3404 $(TARGET_H) $(BASIC_BLOCK_H) $(EXPR_H) output.h $(EXCEPT_H) $(TM_P_H) \
985e963f 3405 $(OPTABS_H) $(CFGLOOP_H) hard-reg-set.h pointer-set.h \
7072a650 3406 $(TREE_PASS_H) $(DF_H) $(DBGCNT_H)
4c77620d
JM
3407params.o : params.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(COMMON_TARGET_H) \
3408 $(PARAMS_H) $(DIAGNOSTIC_CORE_H)
e980df8e
TT
3409pointer-set.o: pointer-set.c pointer-set.h $(CONFIG_H) $(SYSTEM_H)
3410hooks.o: hooks.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(HOOKS_H)
ab9b814d 3411pretty-print.o: $(CONFIG_H) $(SYSTEM_H) coretypes.h intl.h $(PRETTY_PRINT_H)
7de61209 3412errors.o : errors.c $(CONFIG_H) $(SYSTEM_H) errors.h
7ee2468b
SB
3413dbgcnt.o: dbgcnt.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h \
3414 $(DIAGNOSTIC_CORE_H) $(DBGCNT_H)
e980df8e 3415lower-subreg.o : lower-subreg.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
7ee2468b 3416 $(MACHMODE_H) $(TM_H) $(RTL_H) $(TM_P_H) $(FLAGS_H) \
e63ea00c 3417 insn-config.h $(BASIC_BLOCK_H) $(RECOG_H) $(OBSTACK_H) $(BITMAP_H) \
af4ba423
KZ
3418 $(EXPR_H) $(EXCEPT_H) $(REGS_H) $(TREE_PASS_H) $(DF_H) dce.h \
3419 lower-subreg.h
3bd36029 3420target-globals.o : target-globals.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
7c475d11 3421 $(TM_H) insn-config.h $(MACHMODE_H) $(GGC_H) toplev.h target-globals.h \
3e9c326a 3422 $(FLAGS_H) $(REGS_H) $(RTL_H) reload.h expmed.h $(EXPR_H) $(OPTABS_H) \
af4ba423
KZ
3423 $(LIBFUNCS_H) $(CFGLOOP_H) $(IRA_INT_H) builtins.h gcse.h bb-reorder.h \
3424 lower-subreg.h
7ee2468b 3425hw-doloop.o : hw-doloop.c $(CONFIG_H) $(SYSTEM_H) coretypes.h dumpfile.h $(TM_H) \
9d9c740d 3426 $(RTL_H) $(FLAGS_H) $(EXPR_H) hard-reg-set.h $(BASIC_BLOCK_H) $(TM_P_H) \
78bde837 3427 $(DF_H) $(CFGLOOP_H) $(RECOG_H) $(TARGET_H) \
9d9c740d 3428 $(REGS_H) hw-doloop.h
c2a73de2 3429file-find.o: file-find.c $(CONFIG_H) $(SYSTEM_H) file-find.h
e980df8e
TT
3430$(out_object_file): $(out_file) $(CONFIG_H) coretypes.h $(TM_H) $(TREE_H) \
3431 $(RTL_H) $(REGS_H) hard-reg-set.h insn-config.h conditions.h \
7c475d11 3432 output.h $(INSN_ATTR_H) $(SYSTEM_H) toplev.h $(DIAGNOSTIC_CORE_H) \
9f7f1892
RS
3433 $(TARGET_H) $(LIBFUNCS_H) $(TARGET_DEF_H) $(FUNCTION_H) $(SCHED_INT_H) \
3434 $(TM_P_H) $(EXPR_H) langhooks.h $(GGC_H) $(OPTABS_H) $(REAL_H) \
8076c3e3
BS
3435 tm-constrs.h $(GIMPLE_H) $(DF_H) cselib.h $(COMMON_TARGET_H) hw-doloop.h \
3436 regrename.h
7980bfb8 3437 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) \
e980df8e
TT
3438 $(out_file) $(OUTPUT_OPTION)
3439
c49a6962 3440$(common_out_object_file): $(common_out_file) $(CONFIG_H) $(SYSTEM_H) \
4c77620d 3441 coretypes.h $(COMMON_TARGET_H) $(COMMON_TARGET_DEF_H) $(PARAMS_H) \
677f3fa8 3442 $(DIAGNOSTIC_CORE_H) $(FLAGS_H) $(OPTS_H) $(TM_H) $(TM_P_H) $(MACHMODE_H)
c49a6962
JM
3443 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) \
3444 $< $(OUTPUT_OPTION)
544eb21e 3445#\f
4c457b6b 3446# Generate header and source files from the machine description,
79d8453e
RS
3447# and compile them.
3448
1b0c37d7 3449.PRECIOUS: insn-config.h insn-flags.h insn-codes.h insn-constants.h \
79d8453e 3450 insn-emit.c insn-recog.c insn-extract.c insn-output.c insn-peep.c \
41723253
SB
3451 insn-attr.h insn-attr-common.h insn-attrtab.c insn-dfatab.c \
3452 insn-latencytab.c insn-preds.c
79d8453e 3453
26be549a
RH
3454# Dependencies for the md file. The first time through, we just assume
3455# the md file itself and the generated dependency file (in order to get
3456# it built). The second time through we have the dependency file.
3457-include mddeps.mk
3458MD_DEPS = s-mddeps $(md_file) $(MD_INCLUDES)
3459
3460s-mddeps: $(md_file) $(MD_INCLUDES) build/genmddeps$(build_exeext)
3461 $(RUN_GEN) build/genmddeps$(build_exeext) $(md_file) > tmp-mddeps
3462 $(SHELL) $(srcdir)/../move-if-change tmp-mddeps mddeps.mk
3463 $(STAMP) s-mddeps
3464
e980df8e 3465# Header dependencies for generated source files.
e980df8e 3466insn-attrtab.o : insn-attrtab.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
40013784 3467 $(TM_H) $(RTL_H) $(REGS_H) output.h $(INSN_ATTR_H) \
c59ffc41 3468 insn-config.h $(DIAGNOSTIC_CORE_H) $(RECOG_H) $(TM_P_H) $(FLAGS_H)
e980df8e 3469insn-automata.o : insn-automata.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
40013784 3470 $(TM_H) $(RTL_H) $(REGS_H) output.h $(INSN_ATTR_H) \
41723253
SB
3471 insn-config.h toplev.h $(DIAGNOSTIC_CORE_H) $(RECOG_H) \
3472 $(TM_P_H) $(FLAGS_H) $(EMIT_RTL_H)
3473insn-dfatab.o : insn-dfatab.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
3474 $(TM_H) $(RTL_H) $(REGS_H) output.h $(INSN_ATTR_H) \
3475 insn-config.h $(DIAGNOSTIC_CORE_H) $(RECOG_H) $(TM_P_H) $(FLAGS_H)
e980df8e 3476insn-emit.o : insn-emit.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
40013784 3477 $(RTL_H) $(TM_P_H) $(FUNCTION_H) $(EXPR_H) $(OPTABS_H) \
e63ea00c 3478 dfp.h $(FLAGS_H) output.h insn-config.h hard-reg-set.h $(RECOG_H) \
3b1552c1 3479 $(RESOURCE_H) reload.h $(DIAGNOSTIC_CORE_H) $(REGS_H) tm-constrs.h \
6399c0ab 3480 $(GGC_H) $(BASIC_BLOCK_H) $(TARGET_H)
3341aeda 3481insn-enums.o : insn-enums.c $(CONFIG_H) $(SYSTEM_H) insn-constants.h
e980df8e 3482insn-extract.o : insn-extract.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
c59ffc41 3483 $(TM_H) $(RTL_H) $(DIAGNOSTIC_CORE_H) insn-config.h $(RECOG_H)
41723253
SB
3484insn-latencytab.o : insn-latencytab.c $(CONFIG_H) $(SYSTEM_H) \
3485 coretypes.h $(TM_H) $(RTL_H) $(REGS_H) output.h $(INSN_ATTR_H) \
3486 insn-config.h $(DIAGNOSTIC_CORE_H) $(RECOG_H) $(TM_P_H) $(FLAGS_H)
e980df8e 3487insn-modes.o : insn-modes.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
40013784 3488 $(MACHMODE_H)
e980df8e 3489insn-opinit.o : insn-opinit.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
e63ea00c 3490 $(TM_H) $(RTL_H) $(TM_P_H) insn-config.h $(FLAGS_H) $(RECOG_H) \
cd1440b1 3491 $(EXPR_H) $(OPTABS_H)
e980df8e 3492insn-output.o : insn-output.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
40013784 3493 $(TM_H) $(RTL_H) $(GGC_H) $(REGS_H) conditions.h \
e980df8e 3494 hard-reg-set.h insn-config.h $(INSN_ATTR_H) $(EXPR_H) output.h \
c59ffc41 3495 $(RECOG_H) $(FUNCTION_H) $(DIAGNOSTIC_CORE_H) $(FLAGS_H) insn-codes.h $(TM_P_H)\
e980df8e
TT
3496 $(TARGET_H) tm-constrs.h
3497insn-peep.o : insn-peep.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
40013784 3498 insn-config.h $(RTL_H) $(TM_P_H) $(REGS_H) output.h \
c59ffc41 3499 $(RECOG_H) $(EXCEPT_H) $(FUNCTION_H) $(DIAGNOSTIC_CORE_H) $(FLAGS_H) tm-constrs.h
e980df8e
TT
3500insn-preds.o : insn-preds.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
3501 $(TM_H) $(RTL_H) $(TREE_H) insn-config.h $(RECOG_H) output.h \
3502 $(FLAGS_H) $(FUNCTION_H) hard-reg-set.h $(RESOURCE_H) $(TM_P_H) \
c59ffc41 3503 $(DIAGNOSTIC_CORE_H) reload.h $(REGS_H) tm-constrs.h
e980df8e
TT
3504insn-recog.o : insn-recog.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
3505 $(TM_H) $(RTL_H) insn-config.h $(RECOG_H) output.h $(FLAGS_H) \
c59ffc41 3506 $(FUNCTION_H) hard-reg-set.h $(RESOURCE_H) $(TM_P_H) $(DIAGNOSTIC_CORE_H) \
40013784 3507 reload.h $(REGS_H) tm-constrs.h
e980df8e 3508
cbbbdc2c 3509# For each of the files generated by running a generator program over
9b68b6ea
RS
3510# the machine description, the following static pattern rules run the
3511# generator program only if the machine description has changed,
3512# but touch the target file only when its contents actually change.
3513# The "; @true" construct forces Make to recheck the timestamp on
3514# the target file.
cbbbdc2c 3515
88a00ef7
JM
3516simple_rtl_generated_h = insn-attr.h insn-attr-common.h insn-codes.h \
3517 insn-config.h insn-flags.h
cbbbdc2c 3518
41723253 3519simple_rtl_generated_c = insn-automata.c insn-emit.c \
cd1440b1 3520 insn-extract.c insn-output.c \
9b68b6ea
RS
3521 insn-peep.c insn-recog.c
3522
3523simple_generated_h = $(simple_rtl_generated_h) insn-constants.h
3524
0fe60a1b 3525simple_generated_c = $(simple_rtl_generated_c) insn-enums.c
9b68b6ea
RS
3526
3527$(simple_generated_h:insn-%.h=s-%) \
3528$(simple_generated_c:insn-%.c=s-%): s-%: $(MD_DEPS)
3529
3530$(simple_rtl_generated_h:insn-%.h=s-%) \
3531$(simple_rtl_generated_c:insn-%.c=s-%): s-%: insn-conditions.md
cbbbdc2c
ZW
3532
3533$(simple_generated_h): insn-%.h: s-%; @true
3534
9b68b6ea 3535$(simple_generated_h:insn-%.h=s-%): s-%: build/gen%$(build_exeext)
1c7352cd 3536 $(RUN_GEN) build/gen$*$(build_exeext) $(md_file) \
9b68b6ea 3537 $(filter insn-conditions.md,$^) > tmp-$*.h
cbbbdc2c
ZW
3538 $(SHELL) $(srcdir)/../move-if-change tmp-$*.h insn-$*.h
3539 $(STAMP) s-$*
3540
3541$(simple_generated_c): insn-%.c: s-%; @true
9b68b6ea 3542$(simple_generated_c:insn-%.c=s-%): s-%: build/gen%$(build_exeext)
1c7352cd 3543 $(RUN_GEN) build/gen$*$(build_exeext) $(md_file) \
9b68b6ea 3544 $(filter insn-conditions.md,$^) > tmp-$*.c
cbbbdc2c
ZW
3545 $(SHELL) $(srcdir)/../move-if-change tmp-$*.c insn-$*.c
3546 $(STAMP) s-$*
3547
3548# gencheck doesn't read the machine description, and the file produced
3549# doesn't use the insn-* convention.
3550tree-check.h: s-check ; @true
3551s-check : build/gencheck$(build_exeext)
3552 $(RUN_GEN) build/gencheck$(build_exeext) > tmp-check.h
3553 $(SHELL) $(srcdir)/../move-if-change tmp-check.h tree-check.h
3554 $(STAMP) s-check
2199e5fa 3555
41723253
SB
3556# genattrtab produces three files: tmp-{attrtab.c,dfatab.c,latencytab.c}
3557insn-attrtab.c insn-dfatab.c insn-latencytab.c: s-attrtab ; @true
3558s-attrtab : $(MD_DEPS) build/genattrtab$(build_exeext) \
3559 insn-conditions.md
3560 $(RUN_GEN) build/genattrtab$(build_exeext) $(md_file) insn-conditions.md \
3561 -Atmp-attrtab.c -Dtmp-dfatab.c -Ltmp-latencytab.c
3562 $(SHELL) $(srcdir)/../move-if-change tmp-attrtab.c insn-attrtab.c
3563 $(SHELL) $(srcdir)/../move-if-change tmp-dfatab.c insn-dfatab.c
3564 $(SHELL) $(srcdir)/../move-if-change tmp-latencytab.c insn-latencytab.c
3565 $(STAMP) s-attrtab
3566
cd1440b1
RH
3567# genopinit produces two files.
3568insn-opinit.c insn-opinit.h: s-opinit ; @true
3569s-opinit: $(MD_DEPS) build/genopinit$(build_exeext) insn-conditions.md
3570 $(RUN_GEN) build/genopinit$(build_exeext) $(md_file) \
3571 insn-conditions.md -htmp-opinit.h -ctmp-opinit.c
3572 $(SHELL) $(srcdir)/../move-if-change tmp-opinit.h insn-opinit.h
3573 $(SHELL) $(srcdir)/../move-if-change tmp-opinit.c insn-opinit.c
3574 $(STAMP) s-opinit
3575
1c7352cd 3576# gencondmd doesn't use the standard naming convention.
e980df8e 3577build/gencondmd.c: s-conditions; @true
1c7352cd
ZW
3578s-conditions: $(MD_DEPS) build/genconditions$(build_exeext)
3579 $(RUN_GEN) build/genconditions$(build_exeext) $(md_file) > tmp-condmd.c
e980df8e 3580 $(SHELL) $(srcdir)/../move-if-change tmp-condmd.c build/gencondmd.c
1c7352cd
ZW
3581 $(STAMP) s-conditions
3582
3583insn-conditions.md: s-condmd; @true
3584s-condmd: build/gencondmd$(build_exeext)
3585 $(RUN_GEN) build/gencondmd$(build_exeext) > tmp-cond.md
3586 $(SHELL) $(srcdir)/../move-if-change tmp-cond.md insn-conditions.md
3587 $(STAMP) s-condmd
3588
3589
cbbbdc2c
ZW
3590# These files are generated by running the same generator more than
3591# once with different options, so they have custom rules. The
3592# stampfile idiom is the same.
cbbbdc2c 3593genrtl.h: s-genrtl-h; @true
2199e5fa 3594
cbbbdc2c 3595s-genrtl-h: build/gengenrtl$(build_exeext)
6ac9d3a3 3596 $(RUN_GEN) build/gengenrtl$(build_exeext) > tmp-genrtl.h
cbbbdc2c
ZW
3597 $(SHELL) $(srcdir)/../move-if-change tmp-genrtl.h genrtl.h
3598 $(STAMP) s-genrtl-h
3599
3600insn-modes.c: s-modes; @true
3601insn-modes.h: s-modes-h; @true
3602min-insn-modes.c: s-modes-m; @true
0974c7d7 3603
3b620440 3604s-modes: build/genmodes$(build_exeext)
cbbbdc2c
ZW
3605 $(RUN_GEN) build/genmodes$(build_exeext) > tmp-modes.c
3606 $(SHELL) $(srcdir)/../move-if-change tmp-modes.c insn-modes.c
3607 $(STAMP) s-modes
3608
3609s-modes-h: build/genmodes$(build_exeext)
3b620440 3610 $(RUN_GEN) build/genmodes$(build_exeext) -h > tmp-modes.h
88e3a2a3 3611 $(SHELL) $(srcdir)/../move-if-change tmp-modes.h insn-modes.h
cbbbdc2c
ZW
3612 $(STAMP) s-modes-h
3613
3614s-modes-m: build/genmodes$(build_exeext)
3b620440 3615 $(RUN_GEN) build/genmodes$(build_exeext) -m > tmp-min-modes.c
88e3a2a3 3616 $(SHELL) $(srcdir)/../move-if-change tmp-min-modes.c min-insn-modes.c
cbbbdc2c 3617 $(STAMP) s-modes-m
0974c7d7 3618
cbbbdc2c
ZW
3619insn-preds.c: s-preds; @true
3620tm-preds.h: s-preds-h; @true
279bb624 3621tm-constrs.h: s-constrs-h; @true
1b0c37d7 3622
26be549a 3623s-preds: $(MD_DEPS) build/genpreds$(build_exeext)
3b620440 3624 $(RUN_GEN) build/genpreds$(build_exeext) $(md_file) > tmp-preds.c
e543e219 3625 $(SHELL) $(srcdir)/../move-if-change tmp-preds.c insn-preds.c
1b0c37d7
ZW
3626 $(STAMP) s-preds
3627
cbbbdc2c
ZW
3628s-preds-h: $(MD_DEPS) build/genpreds$(build_exeext)
3629 $(RUN_GEN) build/genpreds$(build_exeext) -h $(md_file) > tmp-preds.h
3630 $(SHELL) $(srcdir)/../move-if-change tmp-preds.h tm-preds.h
3631 $(STAMP) s-preds-h
e543e219 3632
279bb624
DE
3633s-constrs-h: $(MD_DEPS) build/genpreds$(build_exeext)
3634 $(RUN_GEN) build/genpreds$(build_exeext) -c $(md_file) > tmp-constrs.h
3635 $(SHELL) $(srcdir)/../move-if-change tmp-constrs.h tm-constrs.h
3636 $(STAMP) s-constrs-h
3637
38f8b050 3638target-hooks-def.h: s-target-hooks-def-h; @true
c18a9bc4
JR
3639# make sure that when we build info files, the used tm.texi is up to date.
3640$(srcdir)/doc/tm.texi: s-tm-texi; @true
38f8b050
JR
3641
3642s-target-hooks-def-h: build/genhooks$(build_exeext)
acce4e77
JM
3643 $(RUN_GEN) build/genhooks$(build_exeext) "Target Hook" \
3644 > tmp-target-hooks-def.h
38f8b050
JR
3645 $(SHELL) $(srcdir)/../move-if-change tmp-target-hooks-def.h \
3646 target-hooks-def.h
3647 $(STAMP) s-target-hooks-def-h
3648
acce4e77
JM
3649c-family/c-target-hooks-def.h: s-c-target-hooks-def-h; @true
3650
3651s-c-target-hooks-def-h: build/genhooks$(build_exeext)
3652 $(RUN_GEN) build/genhooks$(build_exeext) "C Target Hook" \
3653 > tmp-c-target-hooks-def.h
3654 $(SHELL) $(srcdir)/../move-if-change tmp-c-target-hooks-def.h \
3655 c-family/c-target-hooks-def.h
3656 $(STAMP) s-c-target-hooks-def-h
3657
c49a6962
JM
3658common/common-target-hooks-def.h: s-common-target-hooks-def-h; @true
3659
3660s-common-target-hooks-def-h: build/genhooks$(build_exeext)
3661 $(RUN_GEN) build/genhooks$(build_exeext) "Common Target Hook" \
3662 > tmp-common-target-hooks-def.h
3663 $(SHELL) $(srcdir)/../move-if-change tmp-common-target-hooks-def.h \
3664 common/common-target-hooks-def.h
3665 $(STAMP) s-common-target-hooks-def-h
3666
38f8b050 3667# check if someone mistakenly only changed tm.texi.
c18a9bc4
JR
3668# We use a different pathname here to avoid a circular dependency.
3669s-tm-texi: $(srcdir)/doc/../doc/tm.texi
e82a40fc 3670
459d4972
JR
3671# The tm.texi we want to compare against / check into svn should have
3672# unix-style line endings. To make this work on MinGW, remove \r.
3673# \r is not portable to Solaris tr, therefore we have a special
3674# case for ASCII. We use \r for other encodings like EBCDIC.
38f8b050 3675s-tm-texi: build/genhooks$(build_exeext) $(srcdir)/doc/tm.texi.in
acce4e77 3676 $(RUN_GEN) build/genhooks$(build_exeext) -d \
38f8b050 3677 $(srcdir)/doc/tm.texi.in > tmp-tm.texi
459d4972
JR
3678 case `echo X|tr X '\101'` in \
3679 A) tr -d '\015' < tmp-tm.texi > tmp2-tm.texi ;; \
93b39277 3680 *) tr -d '\r' < tmp-tm.texi > tmp2-tm.texi ;; \
459d4972
JR
3681 esac
3682 mv tmp2-tm.texi tmp-tm.texi
38f8b050
JR
3683 $(SHELL) $(srcdir)/../move-if-change tmp-tm.texi tm.texi
3684 @if cmp -s $(srcdir)/doc/tm.texi tm.texi; then \
3685 $(STAMP) $@; \
3686 elif test $(srcdir)/doc/tm.texi -nt $(srcdir)/doc/tm.texi.in \
acce4e77
JM
3687 && ( test $(srcdir)/doc/tm.texi -nt $(srcdir)/target.def \
3688 || test $(srcdir)/doc/tm.texi -nt $(srcdir)/c-family/c-target.def \
c49a6962 3689 || test $(srcdir)/doc/tm.texi -nt $(srcdir)/common/common-target.def \
acce4e77 3690 ); then \
38f8b050
JR
3691 echo >&2 ; \
3692 echo You should edit $(srcdir)/doc/tm.texi.in rather than $(srcdir)/doc/tm.texi . >&2 ; \
3693 false; \
3694 else \
3695 echo >&2 ; \
3696 echo Verify that you have permission to grant a GFDL license for all >&2 ; \
3697 echo new text in tm.texi, then copy it to $(srcdir)/doc/tm.texi. >&2 ; \
3698 false; \
3699 fi
3700
2d593c86
TT
3701GTFILES = $(CPP_ID_DATA_H) $(srcdir)/input.h $(srcdir)/coretypes.h \
3702 $(host_xm_file_list) \
4f4e53dd 3703 $(tm_file_list) $(HASHTAB_H) $(SPLAY_TREE_H) $(srcdir)/bitmap.h \
4862826d 3704 $(srcdir)/alias.h $(srcdir)/coverage.c $(srcdir)/rtl.h \
b6feb796 3705 $(srcdir)/optabs.h $(srcdir)/tree.h $(srcdir)/libfuncs.h $(SYMTAB_H) \
69c32ec8 3706 $(srcdir)/real.h $(srcdir)/function.h $(srcdir)/insn-addr.h $(srcdir)/hwint.h \
1e1ba002 3707 $(srcdir)/fixed-value.h \
46c30019 3708 $(srcdir)/output.h $(srcdir)/cfgloop.h \
369451ec 3709 $(srcdir)/cselib.h $(srcdir)/basic-block.h $(srcdir)/ipa-ref.h $(srcdir)/cgraph.h \
1ab24192 3710 $(srcdir)/reload.h $(srcdir)/caller-save.c $(srcdir)/symtab.c \
988d1653 3711 $(srcdir)/alias.c $(srcdir)/bitmap.c $(srcdir)/cselib.c $(srcdir)/cgraph.c \
04f92ff4 3712 $(srcdir)/ipa-prop.c $(srcdir)/ipa-cp.c \
647a1567
RH
3713 $(srcdir)/dbxout.c \
3714 $(srcdir)/dwarf2out.h \
3715 $(srcdir)/dwarf2asm.c \
3716 $(srcdir)/dwarf2cfi.c \
3717 $(srcdir)/dwarf2out.c \
726a989a 3718 $(srcdir)/tree-vect-generic.c \
11a67599 3719 $(srcdir)/dojump.c \
9994a182 3720 $(srcdir)/emit-rtl.c $(srcdir)/except.h $(srcdir)/explow.c $(srcdir)/expr.c \
aa331cc5 3721 $(srcdir)/expr.h \
9994a182 3722 $(srcdir)/function.c $(srcdir)/except.c \
c6a13190 3723 $(srcdir)/gcse.c $(srcdir)/godump.c \
6399c0ab 3724 $(srcdir)/lists.c $(srcdir)/optabs.c \
360d045b 3725 $(srcdir)/profile.c $(srcdir)/mcf.c \
78bde837 3726 $(srcdir)/reg-stack.c $(srcdir)/cfgrtl.c \
7efcb746 3727 $(srcdir)/sdbout.c $(srcdir)/stor-layout.c \
8a89dbd2 3728 $(srcdir)/stringpool.c $(srcdir)/tree.c $(srcdir)/varasm.c \
726a989a
RB
3729 $(srcdir)/gimple.h $(srcdir)/gimple.c \
3730 $(srcdir)/tree-mudflap.c $(srcdir)/tree-flow.h \
ac182688 3731 $(srcdir)/tree-ssanames.c $(srcdir)/tree-eh.c $(srcdir)/tree-ssa-address.c \
726a989a
RB
3732 $(srcdir)/tree-cfg.c \
3733 $(srcdir)/tree-dfa.c \
6de9cd9a 3734 $(srcdir)/tree-iterator.c $(srcdir)/gimplify.c \
726a989a
RB
3735 $(srcdir)/tree-chrec.h \
3736 $(srcdir)/tree-scalar-evolution.c \
456cde30 3737 $(srcdir)/tree-ssa-operands.h \
8a76829c 3738 $(srcdir)/tree-profile.c $(srcdir)/tree-nested.c \
726a989a
RB
3739 $(srcdir)/tree-parloops.c \
3740 $(srcdir)/omp-low.c \
7be82279 3741 $(srcdir)/targhooks.c $(out_file) $(srcdir)/passes.c $(srcdir)/cgraphunit.c \
66a20fc2 3742 $(srcdir)/cgraphclones.c \
726a989a
RB
3743 $(srcdir)/tree-ssa-propagate.c \
3744 $(srcdir)/tree-phinodes.c \
d7f09764 3745 $(srcdir)/lto-symtab.c \
5006671f 3746 $(srcdir)/tree-ssa-alias.h \
fb3f88cc 3747 $(srcdir)/ipa-prop.h \
0a35513e 3748 $(srcdir)/trans-mem.c \
49ba8180 3749 $(srcdir)/lto-streamer.h \
3bd36029 3750 $(srcdir)/target-globals.h \
632b4f8e 3751 $(srcdir)/ipa-inline.h \
f6d98484 3752 $(srcdir)/asan.c \
32b4b7f5 3753 $(srcdir)/tsan.c \
e2500fed
GK
3754 @all_gtfiles@
3755
8de8de02
OH
3756# Compute the list of GT header files from the corresponding C sources,
3757# possibly nested within config or language subdirectories. Match gengtype's
3758# behavior in this respect: gt-LANG-file.h for "file" anywhere within a LANG
3759# language subdir, gt-file.h otherwise (no subdir indication for config/
3760# related sources).
3761
3762GTFILES_H = $(subst /,-, \
3763 $(shell echo $(patsubst $(srcdir)/%,gt-%, \
3764 $(patsubst %.c,%.h, \
3765 $(filter %.c, $(GTFILES)))) \
5cff8550 3766 | sed -e "s|/[^ ]*/|/|g" -e "s|gt-config/|gt-|g"))
11a67599
ZW
3767
3768GTFILES_LANG_H = $(patsubst [%], gtype-%.h, $(filter [%], $(GTFILES)))
3769ALL_GTFILES_H := $(sort $(GTFILES_H) $(GTFILES_LANG_H))
3770
3771# $(GTFILES) may be too long to put on a command line, so we have to
3772# write it out to a file (taking care not to do that in a way that
3773# overflows a command line!) and then have gengtype read the file in.
2f035a33 3774
f142b5bc 3775$(ALL_GTFILES_H) gtype-desc.c gtype-desc.h gtype.state: s-gtype ; @true
11a67599 3776
92724e1d
BS
3777### Common flags to gengtype [e.g. -v or -B backupdir]
3778GENGTYPE_FLAGS=
3779
11a67599
ZW
3780gtyp-input.list: s-gtyp-input ; @true
3781s-gtyp-input: Makefile
a4e4a2d6 3782 @: $(call write_entries_to_file,$(GTFILES),tmp-gi.list)
11a67599
ZW
3783 $(SHELL) $(srcdir)/../move-if-change tmp-gi.list gtyp-input.list
3784 $(STAMP) s-gtyp-input
3785
3786s-gtype: build/gengtype$(build_exeext) $(filter-out [%], $(GTFILES)) \
3787 gtyp-input.list
92724e1d
BS
3788# First, parse all files and save a state file.
3789 $(RUN_GEN) build/gengtype$(build_exeext) $(GENGTYPE_FLAGS) \
f142b5bc 3790 -S $(srcdir) -I gtyp-input.list -w tmp-gtype.state
92724e1d
BS
3791# Second, read the state file and generate all files. This ensure that
3792# gtype.state is correctly read:
f142b5bc 3793 $(SHELL) $(srcdir)/../move-if-change tmp-gtype.state gtype.state
92724e1d
BS
3794 $(RUN_GEN) build/gengtype$(build_exeext) $(GENGTYPE_FLAGS) \
3795 -r gtype.state
e2500fed
GK
3796 $(STAMP) s-gtype
3797
39dabefd
SB
3798generated_files = config.h tm.h $(TM_P_H) $(TM_H) multilib.h \
3799 $(simple_generated_h) specs.h \
3800 tree-check.h genrtl.h insn-modes.h tm-preds.h tm-constrs.h \
3801 $(ALL_GTFILES_H) gtype-desc.c gtype-desc.h gcov-iov.h
3802
3803# In order for parallel make to really start compiling the expensive
946bdf67 3804# objects from $(OBJS) as early as possible, build all their
39dabefd
SB
3805# prerequisites strictly before all objects.
3806$(ALL_HOST_OBJS) : | $(generated_files)
3807
544eb21e 3808#\f
cbbbdc2c 3809# How to compile object files to run on the build machine.
4b09846b 3810
e980df8e 3811build/%.o : # dependencies provided by explicit rule later
7980bfb8
ILT
3812 $(COMPILER_FOR_BUILD) -c $(BUILD_COMPILERFLAGS) $(BUILD_CPPFLAGS) \
3813 -o $@ $<
e980df8e 3814
f8ed6dc5
JS
3815## build/version.o is compiled by the $(COMPILER_FOR_BUILD) but needs
3816## several C macro definitions, just like version.o
3817build/version.o: version.c version.h \
3818 $(REVISION) $(DATESTAMP) $(BASEVER) $(DEVPHASE)
3819 $(COMPILER_FOR_BUILD) -c $(BUILD_COMPILERFLAGS) $(BUILD_CPPFLAGS) \
3820 -DBASEVER=$(BASEVER_s) -DDATESTAMP=$(DATESTAMP_s) \
3821 -DREVISION=$(REVISION_s) \
3822 -DDEVPHASE=$(DEVPHASE_s) -DPKGVERSION=$(PKGVERSION_s) \
3823 -DBUGURL=$(BUGURL_s) -o $@ $<
3824
e980df8e
TT
3825# Header dependencies for the programs that generate source code.
3826# These are library modules...
3827build/errors.o : errors.c $(BCONFIG_H) $(SYSTEM_H) errors.h
3828build/gensupport.o: gensupport.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h \
3829 $(GTM_H) $(RTL_BASE_H) $(OBSTACK_H) errors.h $(HASHTAB_H) \
10692477 3830 $(READ_MD_H) gensupport.h
e980df8e
TT
3831build/ggc-none.o : ggc-none.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h \
3832 $(GGC_H)
3833build/min-insn-modes.o : min-insn-modes.c $(BCONFIG_H) $(SYSTEM_H) \
3834 $(MACHMODE_H)
3835build/print-rtl.o: print-rtl.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h \
3836 $(GTM_H) $(RTL_BASE_H)
10692477 3837build/read-md.o: read-md.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h \
bb933490 3838 $(HASHTAB_H) errors.h $(READ_MD_H)
e980df8e 3839build/read-rtl.o: read-rtl.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h \
10692477
RS
3840 $(GTM_H) $(RTL_BASE_H) $(OBSTACK_H) $(HASHTAB_H) $(READ_MD_H) \
3841 gensupport.h
e980df8e 3842build/rtl.o: rtl.c $(BCONFIG_H) coretypes.h $(GTM_H) $(SYSTEM_H) \
40013784 3843 $(RTL_H) $(GGC_H) errors.h
3e097227 3844build/vec.o : vec.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h $(VEC_H) \
7c475d11 3845 $(GGC_H) toplev.h $(DIAGNOSTIC_CORE_H)
e980df8e 3846build/gencondmd.o : build/gencondmd.c $(BCONFIG_H) $(SYSTEM_H) \
f9897dfa
L
3847 coretypes.h $(GTM_H) insn-constants.h \
3848 $(filter-out insn-flags.h, $(RTL_H) $(TM_P_H) $(FUNCTION_H) $(REGS_H) \
7c475d11 3849 $(RECOG_H) output.h $(FLAGS_H) $(RESOURCE_H) toplev.h $(DIAGNOSTIC_CORE_H) reload.h \
f9897dfa 3850 $(EXCEPT_H) tm-constrs.h)
0b50988a
EB
3851# This pulls in tm-pred.h which contains inline functions wrapping up
3852# predicates from the back-end so those functions must be discarded.
3853# No big deal since gencondmd.c is a dummy file for non-GCC compilers.
3854build/gencondmd.o : \
3855 BUILD_CFLAGS := $(filter-out -fkeep-inline-functions, $(BUILD_CFLAGS))
4977bab6 3856
e980df8e
TT
3857# ...these are the programs themselves.
3858build/genattr.o : genattr.c $(RTL_BASE_H) $(BCONFIG_H) $(SYSTEM_H) \
10692477 3859 coretypes.h $(GTM_H) errors.h $(READ_MD_H) gensupport.h
88a00ef7
JM
3860build/genattr-common.o : genattr-common.c $(RTL_BASE_H) $(BCONFIG_H) \
3861 $(SYSTEM_H) coretypes.h $(GTM_H) errors.h $(READ_MD_H) gensupport.h
e980df8e
TT
3862build/genattrtab.o : genattrtab.c $(RTL_BASE_H) $(OBSTACK_H) \
3863 $(BCONFIG_H) $(SYSTEM_H) coretypes.h $(GTM_H) errors.h $(GGC_H) \
9771b263 3864 $(READ_MD_H) gensupport.h $(FNMATCH_H)
e980df8e 3865build/genautomata.o : genautomata.c $(RTL_BASE_H) $(OBSTACK_H) \
3e097227 3866 $(BCONFIG_H) $(SYSTEM_H) coretypes.h $(GTM_H) errors.h $(VEC_H) \
f9bf5a8e 3867 $(HASHTAB_H) gensupport.h $(FNMATCH_H)
bfefafc6 3868build/gencheck.o : gencheck.c all-tree.def $(BCONFIG_H) $(GTM_H) \
16fe2c09
JJ
3869 $(SYSTEM_H) coretypes.h tree.def c-family/c-common.def \
3870 $(lang_tree_files) gimple.def
e980df8e
TT
3871build/genchecksum.o : genchecksum.c $(BCONFIG_H) $(SYSTEM_H) $(MD5_H)
3872build/gencodes.o : gencodes.c $(RTL_BASE_H) $(BCONFIG_H) $(SYSTEM_H) \
3873 coretypes.h $(GTM_H) errors.h gensupport.h
3874build/genconditions.o : genconditions.c $(RTL_BASE_H) $(BCONFIG_H) \
10692477
RS
3875 $(SYSTEM_H) coretypes.h $(GTM_H) errors.h $(HASHTAB_H) $(READ_MD_H) \
3876 gensupport.h
e980df8e
TT
3877build/genconfig.o : genconfig.c $(RTL_BASE_H) $(BCONFIG_H) $(SYSTEM_H) \
3878 coretypes.h $(GTM_H) errors.h gensupport.h
9b68b6ea
RS
3879build/genconstants.o : genconstants.c $(BCONFIG_H) $(SYSTEM_H) \
3880 coretypes.h errors.h $(READ_MD_H)
e980df8e 3881build/genemit.o : genemit.c $(RTL_BASE_H) $(BCONFIG_H) $(SYSTEM_H) \
10692477 3882 coretypes.h $(GTM_H) errors.h $(READ_MD_H) gensupport.h
0fe60a1b
RS
3883build/genenums.o : genenums.c $(BCONFIG_H) $(SYSTEM_H) \
3884 coretypes.h errors.h $(READ_MD_H)
e980df8e 3885build/genextract.o : genextract.c $(RTL_BASE_H) $(BCONFIG_H) \
9771b263 3886 $(SYSTEM_H) coretypes.h $(GTM_H) errors.h $(READ_MD_H) gensupport.h
e980df8e 3887build/genflags.o : genflags.c $(RTL_BASE_H) $(OBSTACK_H) $(BCONFIG_H) \
10692477 3888 $(SYSTEM_H) coretypes.h $(GTM_H) errors.h $(READ_MD_H) gensupport.h
e980df8e 3889build/gengenrtl.o : gengenrtl.c $(BCONFIG_H) $(SYSTEM_H) rtl.def
4a061351
SB
3890
3891# The gengtype generator program is special: Two versions are built.
3892# One is for the build machine, and one is for the host to allow
3893# plugins to define their types and generate the supporting GGC
3894# datastructures and routines with GTY markers.
3895# The host object files depend on CONFIG_H, and the build objects
3896# on BCONFIG_H. For the build objects, add -DGENERATOR_FILE manually,
3897# the build-%: rule doesn't apply to them.
3898
f142b5bc 3899gengtype-lex.o build/gengtype-lex.o : gengtype-lex.c gengtype.h $(SYSTEM_H)
c3e3d235 3900gengtype-lex.o: $(CONFIG_H) $(BCONFIG_H)
4a061351 3901CFLAGS-gengtype-lex.o += -DGENERATOR_FILE
f142b5bc 3902build/gengtype-lex.o: $(BCONFIG_H)
4a061351 3903
f142b5bc 3904gengtype-parse.o build/gengtype-parse.o : gengtype-parse.c gengtype.h \
e980df8e 3905 $(SYSTEM_H)
f142b5bc 3906gengtype-parse.o: $(CONFIG_H)
4a061351 3907CFLAGS-gengtype-parse.o += -DGENERATOR_FILE
f142b5bc 3908build/gengtype-parse.o: $(BCONFIG_H)
4a061351 3909
f142b5bc
RG
3910gengtype-state.o build/gengtype-state.o: gengtype-state.c $(SYSTEM_H) \
3911 gengtype.h errors.h double-int.h version.h $(HASHTAB_H) $(OBSTACK_H) \
3912 $(XREGEX_H)
3913gengtype-state.o: $(CONFIG_H)
4a061351 3914CFLAGS-gengtype-state.o += -DGENERATOR_FILE
f142b5bc 3915build/gengtype-state.o: $(BCONFIG_H)
4a061351 3916
f142b5bc
RG
3917gengtype.o build/gengtype.o : gengtype.c $(SYSTEM_H) gengtype.h \
3918 rtl.def insn-notes.def errors.h double-int.h version.h $(HASHTAB_H) \
81ae7e14 3919 $(OBSTACK_H) $(XREGEX_H)
f142b5bc 3920gengtype.o: $(CONFIG_H)
4a061351 3921CFLAGS-gengtype.o += -DGENERATOR_FILE
f142b5bc 3922build/gengtype.o: $(BCONFIG_H)
4a061351 3923
e980df8e 3924build/genmddeps.o: genmddeps.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h \
9b68b6ea 3925 errors.h $(READ_MD_H)
e980df8e
TT
3926build/genmodes.o : genmodes.c $(BCONFIG_H) $(SYSTEM_H) errors.h \
3927 $(HASHTAB_H) machmode.def $(extra_modes_file)
3928build/genopinit.o : genopinit.c $(RTL_BASE_H) $(BCONFIG_H) $(SYSTEM_H) \
cd1440b1 3929 coretypes.h $(GTM_H) errors.h gensupport.h optabs.def
e980df8e 3930build/genoutput.o : genoutput.c $(RTL_BASE_H) $(BCONFIG_H) $(SYSTEM_H) \
10692477 3931 coretypes.h $(GTM_H) errors.h $(READ_MD_H) gensupport.h
e980df8e 3932build/genpeep.o : genpeep.c $(RTL_BASE_H) $(BCONFIG_H) $(SYSTEM_H) \
7c475d11 3933 coretypes.h $(GTM_H) errors.h gensupport.h toplev.h $(DIAGNOSTIC_CORE_H)
e980df8e 3934build/genpreds.o : genpreds.c $(RTL_BASE_H) $(BCONFIG_H) $(SYSTEM_H) \
10692477 3935 coretypes.h $(GTM_H) errors.h $(READ_MD_H) gensupport.h $(OBSTACK_H)
e980df8e 3936build/genrecog.o : genrecog.c $(RTL_BASE_H) $(BCONFIG_H) $(SYSTEM_H) \
10692477 3937 coretypes.h $(GTM_H) errors.h $(READ_MD_H) gensupport.h
acce4e77 3938build/genhooks.o : genhooks.c $(TARGET_DEF) $(C_TARGET_DEF) \
c49a6962 3939 $(COMMON_TARGET_DEF) $(BCONFIG_H) $(SYSTEM_H) errors.h
e980df8e 3940
cbbbdc2c 3941# Compile the programs that generate insn-* from the machine description.
7980bfb8 3942# They are compiled with $(COMPILER_FOR_BUILD), and associated libraries,
cbbbdc2c
ZW
3943# since they need to run on this machine
3944# even if GCC is being compiled to run on some other machine.
1b0c37d7 3945
9b68b6ea 3946# All these programs use the RTL reader ($(BUILD_RTL)).
88a00ef7 3947genprogrtl = attr attr-common attrtab automata codes conditions config emit \
9b68b6ea
RS
3948 extract flags opinit output peep preds recog
3949$(genprogrtl:%=build/gen%$(build_exeext)): $(BUILD_RTL)
3950
3951# All these programs use the MD reader ($(BUILD_MD)).
0fe60a1b 3952genprogmd = $(genprogrtl) mddeps constants enums
9b68b6ea
RS
3953$(genprogmd:%=build/gen%$(build_exeext)): $(BUILD_MD)
3954
6ddddaed
RW
3955# All these programs need to report errors.
3956genprogerr = $(genprogmd) genrtl modes gtype hooks
3957$(genprogerr:%=build/gen%$(build_exeext)): $(BUILD_ERRORS)
3958
3959# Remaining build programs.
3960genprog = $(genprogerr) check checksum condmd
1c7352cd 3961
0b50988a 3962# These programs need libs over and above what they get from the above list.
8c94f366 3963build/genautomata$(build_exeext) : BUILD_LIBS += -lm
d5706a1e 3964
0458fe77 3965# These programs are not linked with the MD reader.
f8ed6dc5 3966build/gengtype$(build_exeext) : build/gengtype-lex.o build/gengtype-parse.o \
f142b5bc
RG
3967 build/gengtype-state.o build/version.o build/errors.o
3968
3969gengtype$(exeext) : gengtype.o gengtype-lex.o gengtype-parse.o \
3970 gengtype-state.o version.o errors.o $(LIBDEPS)
b6ee5bef
RO
3971 +$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \
3972 $(filter-out ($LIBDEPS), $^) $(LIBS)
6ddddaed
RW
3973
3974# Rule for the generator programs:
3975$(genprog:%=build/gen%$(build_exeext)): build/gen%$(build_exeext): build/gen%.o $(BUILD_LIBDEPS)
a90163e9 3976 +$(LINKER_FOR_BUILD) $(BUILD_LINKERFLAGS) $(BUILD_LDFLAGS) -o $@ \
6ddddaed 3977 $(filter-out $(BUILD_LIBDEPS), $^) $(BUILD_LIBS)
e2500fed 3978
18406601
PB
3979# Generated source files for gengtype. Prepend inclusion of
3980# bconfig.h because AIX requires _LARGE_FILES to be defined before
3981# any system header is included.
03787dfd 3982gengtype-lex.c : gengtype-lex.l
8fb15466
PB
3983 -$(FLEX) $(FLEXFLAGS) -o$@ $< && { \
3984 echo '#include "bconfig.h"' > $@.tmp; \
3985 cat $@ >> $@.tmp; \
3986 mv $@.tmp $@; \
3987 }
fae15c93 3988
e980df8e
TT
3989#\f
3990# Remake internationalization support.
c5bc3df6 3991CFLAGS-intl.o += -DLOCALEDIR=\"$(localedir)\"
a878b2d7 3992intl.o: intl.c $(CONFIG_H) $(SYSTEM_H) coretypes.h intl.h Makefile
e980df8e 3993
544eb21e 3994#\f
52c0e446 3995# Remake cpp.
79d8453e 3996
d059a239
FF
3997PREPROCESSOR_DEFINES = \
3998 -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
f686ec05 3999 -DFIXED_INCLUDE_DIR=\"$(libsubdir)/include-fixed\" \
d059a239 4000 -DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \
17719d09 4001 -DGPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT=$(gcc_gxx_include_dir_add_sysroot) \
caa55b1e 4002 -DGPLUSPLUS_TOOL_INCLUDE_DIR=\"$(gcc_gxx_include_dir)/$(target_noncanonical)\" \
98c2359b 4003 -DGPLUSPLUS_BACKWARD_INCLUDE_DIR=\"$(gcc_gxx_include_dir)/backward\" \
793e9558 4004 -DLOCAL_INCLUDE_DIR=\"$(local_includedir)\" \
4977bab6 4005 -DCROSS_INCLUDE_DIR=\"$(CROSS_SYSTEM_HEADER_DIR)\" \
047d636f 4006 -DTOOL_INCLUDE_DIR=\"$(gcc_tooldir)/include\" \
08b2bad2 4007 -DNATIVE_SYSTEM_HEADER_DIR=\"$(NATIVE_SYSTEM_HEADER_DIR)\" \
925af765
RS
4008 -DPREFIX=\"$(prefix)/\" \
4009 -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc/\" \
047d636f 4010 @TARGET_SYSTEM_ROOT_DEFINE@
79d8453e 4011
c5bc3df6 4012CFLAGS-cppbuiltin.o += $(PREPROCESSOR_DEFINES) -DBASEVER=$(BASEVER_s)
82a1c2fe 4013cppbuiltin.o: cppbuiltin.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
ee666c25
SB
4014 $(TARGET_H) $(TARGET_DEF) $(TREE_H) $(CPP_ID_DATA_H) \
4015 cppbuiltin.h version.h Makefile
82a1c2fe 4016
c5bc3df6 4017CFLAGS-cppdefault.o += $(PREPROCESSOR_DEFINES)
e980df8e
TT
4018cppdefault.o: cppdefault.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
4019 cppdefault.h Makefile
e980df8e 4020
7bd95cc1
BK
4021# Note for the stamp targets, we run the program `true' instead of
4022# having an empty command (nothing following the semicolon).
4023
e980df8e
TT
4024# gcov-iov.c is run on the build machine to generate gcov-iov.h from version.c
4025build/gcov-iov.o: gcov-iov.c $(BCONFIG_H) coretypes.h $(GTM_H) \
4026 $(SYSTEM_H) coretypes.h $(TM_H)
4027
3b620440 4028build/gcov-iov$(build_exeext): build/gcov-iov.o
a90163e9 4029 +$(LINKER_FOR_BUILD) $(BUILD_LINKERFLAGS) $(BUILD_LDFLAGS) \
7980bfb8 4030 build/gcov-iov.o -o $@
3b620440 4031
28068c2c 4032gcov-iov.h: s-iov
a1286ef5
ZW
4033s-iov: build/gcov-iov$(build_exeext) $(BASEVER) $(DEVPHASE)
4034 build/gcov-iov$(build_exeext) '$(BASEVER_c)' '$(DEVPHASE_c)' \
4035 > tmp-gcov-iov.h
88e3a2a3 4036 $(SHELL) $(srcdir)/../move-if-change tmp-gcov-iov.h gcov-iov.h
28068c2c 4037 $(STAMP) s-iov
4977bab6 4038
e980df8e 4039gcov.o: gcov.c gcov-io.c $(GCOV_IO_H) intl.h $(SYSTEM_H) coretypes.h $(TM_H) \
2691e6d7 4040 $(CONFIG_H) version.h $(DIAGNOSTIC_H)
e980df8e 4041gcov-dump.o: gcov-dump.c gcov-io.c $(GCOV_IO_H) $(SYSTEM_H) coretypes.h \
2691e6d7 4042 $(TM_H) $(CONFIG_H) version.h intl.h $(DIAGNOSTIC_H)
e980df8e 4043
2691e6d7 4044GCOV_OBJS = gcov.o
ab87f8c8 4045gcov$(exeext): $(GCOV_OBJS) $(LIBDEPS)
a90163e9 4046 +$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) $(GCOV_OBJS) $(LIBS) -o $@
2691e6d7 4047GCOV_DUMP_OBJS = gcov-dump.o
4977bab6 4048gcov-dump$(exeext): $(GCOV_DUMP_OBJS) $(LIBDEPS)
a90163e9 4049 +$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) $(GCOV_DUMP_OBJS) \
7980bfb8 4050 $(LIBS) -o $@
544eb21e 4051#\f
f686ec05 4052# Build the include directories. The stamp files are stmp-* rather than
e5e809f4 4053# s-* so that mostlyclean does not force the include directory to
ba1811f1
ILT
4054# be rebuilt.
4055
f686ec05 4056# Build the include directories.
201cdb74 4057stmp-int-hdrs: $(STMP_FIXINC) $(USER_H) fixinc_list
ba1811f1 4058# Copy in the headers provided with gcc.
8294b6fe 4059#
ba1811f1
ILT
4060# The sed command gets just the last file name component;
4061# this is necessary because VPATH could add a dirname.
4062# Using basename would be simpler, but some systems don't have it.
8294b6fe 4063#
c85f7c16 4064# The touch command is here to workaround an AIX/Linux NFS bug.
8294b6fe
OH
4065#
4066# The move-if-change + cp -p twists for limits.h are intended to preserve
4067# the time stamp when we regenerate, to prevent pointless rebuilds during
4068# e.g. install-no-fixedincludes.
7bfe3c97 4069 -if [ -d include ] ; then true; else mkdir include; chmod a+rx include; fi
f686ec05 4070 -if [ -d include-fixed ] ; then true; else mkdir include-fixed; chmod a+rx include-fixed; fi
d7371761
RK
4071 for file in .. $(USER_H); do \
4072 if [ X$$file != X.. ]; then \
4073 realfile=`echo $$file | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
d9835ae8 4074 $(STAMP) include/$$realfile; \
ae678a13
JW
4075 rm -f include/$$realfile; \
4076 cp $$file include; \
4077 chmod a+r include/$$realfile; \
d7371761 4078 fi; \
ba1811f1 4079 done
9b91e436
KT
4080 for file in .. $(USER_H_INC_NEXT_PRE); do \
4081 if [ X$$file != X.. ]; then \
4082 mv include/$$file include/x_$$file; \
4083 echo "#include_next <$$file>" >include/$$file; \
4084 cat include/x_$$file >>include/$$file; \
4085 rm -f include/x_$$file; \
4086 chmod a+r include/$$file; \
4087 fi; \
4088 done
4089 for file in .. $(USER_H_INC_NEXT_POST); do \
4090 if [ X$$file != X.. ]; then \
4091 echo "#include_next <$$file>" >>include/$$file; \
4092 chmod a+r include/$$file; \
4093 fi; \
4094 done
207bf79d
JM
4095 rm -f include/stdint.h
4096 if [ $(USE_GCC_STDINT) = wrap ]; then \
4097 rm -f include/stdint-gcc.h; \
4098 cp $(srcdir)/ginclude/stdint-gcc.h include/stdint-gcc.h; \
1d9edd01 4099 chmod a+r include/stdint-gcc.h; \
207bf79d 4100 cp $(srcdir)/ginclude/stdint-wrap.h include/stdint.h; \
c8c520dd 4101 chmod a+r include/stdint.h; \
207bf79d
JM
4102 elif [ $(USE_GCC_STDINT) = provide ]; then \
4103 cp $(srcdir)/ginclude/stdint-gcc.h include/stdint.h; \
c8c520dd 4104 chmod a+r include/stdint.h; \
207bf79d 4105 fi
14da6073
JM
4106 set -e; for ml in `cat fixinc_list`; do \
4107 sysroot_headers_suffix=`echo $${ml} | sed -e 's/;.*$$//'`; \
4108 multi_dir=`echo $${ml} | sed -e 's/^[^;]*;//'`; \
4109 fix_dir=include-fixed$${multi_dir}; \
4110 if $(LIMITS_H_TEST) ; then \
4111 cat $(srcdir)/limitx.h $(srcdir)/glimits.h $(srcdir)/limity.h > tmp-xlimits.h; \
4112 else \
4113 cat $(srcdir)/glimits.h > tmp-xlimits.h; \
4114 fi; \
4115 $(mkinstalldirs) $${fix_dir}; \
4116 chmod a+rx $${fix_dir} || true; \
8294b6fe
OH
4117 $(SHELL) $(srcdir)/../move-if-change \
4118 tmp-xlimits.h tmp-limits.h; \
14da6073 4119 rm -f $${fix_dir}/limits.h; \
8294b6fe 4120 cp -p tmp-limits.h $${fix_dir}/limits.h; \
14da6073
JM
4121 chmod a+r $${fix_dir}/limits.h; \
4122 done
e7f62ad3 4123# Install the README
f686ec05
JM
4124 rm -f include-fixed/README
4125 cp $(srcdir)/../fixincludes/README-fixinc include-fixed/README
4126 chmod a+r include-fixed/README
d9835ae8 4127 $(STAMP) $@
e7f62ad3 4128
4977bab6
ZW
4129.PHONY: install-gcc-tooldir
4130install-gcc-tooldir:
947c6b00 4131 $(mkinstalldirs) $(DESTDIR)$(gcc_tooldir)
4977bab6 4132
5cd37749 4133macro_list: s-macro_list; @true
d3dc619d 4134s-macro_list : $(GCC_PASSES)
53c7ffe7 4135 echo | $(GCC_FOR_TARGET) -E -dM - | \
8160ab35
MK
4136 sed -n -e 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p' \
4137 -e 's/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
5cd37749
JG
4138 sort -u > tmp-macro_list
4139 $(SHELL) $(srcdir)/../move-if-change tmp-macro_list macro_list
4140 $(STAMP) s-macro_list
53c7ffe7 4141
14da6073
JM
4142fixinc_list: s-fixinc_list; @true
4143s-fixinc_list : $(GCC_PASSES)
4144# Build up a list of multilib directories and corresponding sysroot
4145# suffixes, in form sysroot;multilib.
4146 if $(GCC_FOR_TARGET) -print-sysroot-headers-suffix > /dev/null 2>&1; then \
4147 set -e; for ml in `$(GCC_FOR_TARGET) -print-multi-lib`; do \
4148 multi_dir=`echo $${ml} | sed -e 's/;.*$$//'`; \
4149 flags=`echo $${ml} | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
4150 sfx=`$(GCC_FOR_TARGET) $${flags} -print-sysroot-headers-suffix`; \
4151 if [ "$${multi_dir}" = "." ]; \
4152 then multi_dir=""; \
4153 else \
4154 multi_dir=/$${multi_dir}; \
4155 fi; \
4156 echo "$${sfx};$${multi_dir}"; \
4157 done; \
4158 else \
4159 echo ";"; \
4160 fi > tmp-fixinc_list
4161 $(SHELL) $(srcdir)/../move-if-change tmp-fixinc_list fixinc_list
4162 $(STAMP) s-fixinc_list
4163
144023ad
AO
4164# The line below is supposed to avoid accidentally matching the
4165# built-in suffix rule `.o:' to build fixincl out of fixincl.o. You'd
4166# expect fixincl to be newer than fixincl.o, such that this situation
4167# would never come up. As it turns out, if you use ccache with
4168# CCACHE_HARDLINK enabled, the compiler doesn't embed the current
4169# working directory in object files (-g absent, or -fno-working-dir
4170# present), and build and host are the same, fixincl for the host will
4171# build after fixincl for the build machine, getting a cache hit,
a4d05547 4172# thereby updating the timestamp of fixincl.o in the host tree.
144023ad
AO
4173# Because of CCACHE_HARDLINK, this will also update the timestamp in
4174# the build tree, and so fixincl in the build tree will appear to be
4175# out of date. Yuck.
4176../$(build_subdir)/fixincludes/fixincl: ; @ :
4177
ba1811f1 4178# Build fixed copies of system files.
be448346
BS
4179# Abort if no system headers available, unless building a crosscompiler.
4180# FIXME: abort unless building --without-headers would be more accurate and less ugly
14da6073 4181stmp-fixinc: gsyslimits.h macro_list fixinc_list \
215c351a
PB
4182 $(build_objdir)/fixincludes/fixincl \
4183 $(build_objdir)/fixincludes/fixinc.sh
f686ec05
JM
4184 rm -rf include-fixed; mkdir include-fixed
4185 -chmod a+rx include-fixed
cc11cc9b
PB
4186 if [ -d ../prev-gcc ]; then \
4187 cd ../prev-gcc && \
9fb03bd8 4188 $(MAKE) real-$(INSTALL_HEADERS_DIR) DESTDIR=`pwd`/../gcc/ \
cc11cc9b 4189 libsubdir=. ; \
3dc4a939 4190 else \
14da6073
JM
4191 set -e; for ml in `cat fixinc_list`; do \
4192 sysroot_headers_suffix=`echo $${ml} | sed -e 's/;.*$$//'`; \
4193 multi_dir=`echo $${ml} | sed -e 's/^[^;]*;//'`; \
4194 fix_dir=include-fixed$${multi_dir}; \
4195 if ! $(inhibit_libc) && test ! -d ${SYSTEM_HEADER_DIR}; then \
4196 echo The directory that should contain system headers does not exist: >&2 ; \
4197 echo " ${SYSTEM_HEADER_DIR}" >&2 ; \
4198 tooldir_sysinc=`echo "${gcc_tooldir}/sys-include" | sed -e :a -e "s,[^/]*/\.\.\/,," -e ta`; \
4199 if test "x${SYSTEM_HEADER_DIR}" = "x$${tooldir_sysinc}"; \
4200 then sleep 1; else exit 1; fi; \
4201 fi; \
4202 $(mkinstalldirs) $${fix_dir}; \
4203 chmod a+rx $${fix_dir} || true; \
4204 (TARGET_MACHINE='$(target)'; srcdir=`cd $(srcdir); ${PWD_COMMAND}`; \
4205 SHELL='$(SHELL)'; MACRO_LIST=`${PWD_COMMAND}`/macro_list ; \
1d93c860 4206 gcc_dir=`${PWD_COMMAND}` ; \
14da6073
JM
4207 export TARGET_MACHINE srcdir SHELL MACRO_LIST && \
4208 cd $(build_objdir)/fixincludes && \
1d93c860 4209 $(SHELL) ./fixinc.sh "$${gcc_dir}/$${fix_dir}" \
14da6073
JM
4210 $(SYSTEM_HEADER_DIR) $(OTHER_FIXINCLUDES_DIRS) ); \
4211 rm -f $${fix_dir}/syslimits.h; \
4212 if [ -f $${fix_dir}/limits.h ]; then \
4213 mv $${fix_dir}/limits.h $${fix_dir}/syslimits.h; \
4214 else \
4215 cp $(srcdir)/gsyslimits.h $${fix_dir}/syslimits.h; \
4216 fi; \
4217 chmod a+r $${fix_dir}/syslimits.h; \
4218 done; \
53c7ffe7 4219 fi
d9835ae8 4220 $(STAMP) stmp-fixinc
544eb21e 4221#\f
8294b6fe
OH
4222
4223# Install with the gcc headers files, not the fixed include files, which we
4224# are typically not allowed to distribute. The general idea is to:
4225# - Get to "install" with a bare set of internal headers, not the
4226# fixed system ones,
4227# - Prevent rebuilds of what normally depends on the headers, which is
4228# useless for installation purposes and would rely on improper headers.
4229# - Restore as much of the original state as possible.
4230
4231.PHONY: install-no-fixedincludes
4232
4233install-no-fixedincludes:
4234 # Stash the current set of headers away, save stamps we're going to
4235 # alter explicitly, and arrange for fixincludes not to run next time
4236 # we trigger a headers rebuild.
4237 -rm -rf tmp-include
4238 -mv include tmp-include 2>/dev/null
4239 -mv include-fixed tmp-include-fixed 2>/dev/null
4240 -mv stmp-int-hdrs tmp-stmp-int-hdrs 2>/dev/null
4241 -mv stmp-fixinc tmp-stmp-fixinc 2>/dev/null
4242 -mkdir include
4243 -cp -p $(srcdir)/gsyslimits.h include/syslimits.h
4244 -touch stmp-fixinc
4245
4246 # Rebuild our internal headers, restore the original stamps so that
4247 # "install" doesn't trigger pointless rebuilds because of that update,
4248 # then do install
4249 $(MAKE) $(FLAGS_TO_PASS) stmp-int-hdrs
4250 -mv tmp-stmp-int-hdrs stmp-int-hdrs 2>/dev/null
4251 -mv tmp-stmp-fixinc stmp-fixinc 2>/dev/null
4252 $(MAKE) $(FLAGS_TO_PASS) install
4253
4254 # Restore the original set of maybe-fixed headers
4255 -rm -rf include; mv tmp-include include 2>/dev/null
4256 -rm -rf include-fixed; mv tmp-include-fixed include-fixed 2>/dev/null
4257
79d8453e
RS
4258# Remake the info files.
4259
fda9c731 4260doc: $(BUILD_INFO) $(GENERATED_MANPAGES)
a541f69d
KC
4261
4262INFOFILES = doc/cpp.info doc/gcc.info doc/gccint.info \
4263 doc/gccinstall.info doc/cppinternals.info
4264
4265info: $(INFOFILES) lang.info @GENINSRC@ srcinfo lang.srcinfo
4266
4267srcinfo: $(INFOFILES)
4268 -cp -p $^ $(srcdir)/doc
65455962 4269
a1286ef5
ZW
4270TEXI_CPP_FILES = cpp.texi fdl.texi cppenv.texi cppopts.texi \
4271 gcc-common.texi gcc-vers.texi
65455962 4272
a1286ef5
ZW
4273TEXI_GCC_FILES = gcc.texi gcc-common.texi gcc-vers.texi frontends.texi \
4274 standards.texi invoke.texi extend.texi md.texi objc.texi \
4275 gcov.texi trouble.texi bugreport.texi service.texi \
7f9766e4 4276 contribute.texi compat.texi funding.texi gnu.texi gpl_v3.texi \
04d170d2 4277 fdl.texi contrib.texi cppenv.texi cppopts.texi avr-mmcu.texi \
c32097d8 4278 implement-c.texi implement-cxx.texi arm-neon-intrinsics.texi
65455962 4279
c18a9bc4
JR
4280# we explicitly use $(srcdir)/doc/tm.texi here to avoid confusion with
4281# the generated tm.texi; the latter might have a more recent timestamp,
4282# but we don't want to rebuild the info files unless the contents of
4283# the *.texi files have changed.
a1286ef5
ZW
4284TEXI_GCCINT_FILES = gccint.texi gcc-common.texi gcc-vers.texi \
4285 contribute.texi makefile.texi configterms.texi options.texi \
c18a9bc4
JR
4286 portability.texi interface.texi passes.texi rtl.texi md.texi \
4287 $(srcdir)/doc/tm.texi hostconfig.texi fragments.texi \
a1286ef5 4288 configfiles.texi collect2.texi headerdirs.texi funding.texi \
7f9766e4 4289 gnu.texi gpl_v3.texi fdl.texi contrib.texi languages.texi \
01e0ef5a 4290 sourcebuild.texi gty.texi libgcc.texi cfg.texi tree-ssa.texi \
fb201767 4291 loop.texi generic.texi gimple.texi plugins.texi
65455962 4292
e5fc6da8 4293TEXI_GCCINSTALL_FILES = install.texi install-old.texi fdl.texi \
3b4ed48b 4294 gcc-common.texi gcc-vers.texi
65455962 4295
a1286ef5
ZW
4296TEXI_CPPINT_FILES = cppinternals.texi gcc-common.texi gcc-vers.texi
4297
4298# gcc-vers.texi is generated from the version files.
4299gcc-vers.texi: $(BASEVER) $(DEVPHASE)
4300 (echo "@set version-GCC $(BASEVER_c)"; \
4301 if [ "$(DEVPHASE_c)" = "experimental" ]; \
4302 then echo "@set DEVELOPMENT"; \
4303 else echo "@clear DEVELOPMENT"; \
4304 fi) > $@T
a0e527e3 4305 $(build_file_translate) echo @set srcdir $(abs_srcdir) >> $@T
2f41c1d6
PB
4306 if [ -n "$(PKGVERSION)" ]; then \
4307 echo "@set VERSION_PACKAGE $(PKGVERSION)" >> $@T; \
4308 fi
4309 echo "@set BUGURL $(BUGURL_TEXI)" >> $@T; \
a1286ef5
ZW
4310 mv -f $@T $@
4311
65455962 4312
b5422ad7 4313# The *.1, *.7, *.info, *.dvi, and *.pdf files are being generated from implicit
cb7c0b5a 4314# patterns. To use them, put each of the specific targets with its
65455962 4315# specific dependencies but no build commands.
e2500fed 4316
a541f69d
KC
4317doc/cpp.info: $(TEXI_CPP_FILES)
4318doc/gcc.info: $(TEXI_GCC_FILES)
4319doc/gccint.info: $(TEXI_GCCINT_FILES)
4320doc/cppinternals.info: $(TEXI_CPPINT_FILES)
d7f8491b 4321
a541f69d 4322doc/%.info: %.texi
1f9b3087 4323 if [ x$(BUILD_INFO) = xinfo ]; then \
ad3a7ce3
CD
4324 $(MAKEINFO) $(MAKEINFOFLAGS) -I . -I $(gcc_docdir) \
4325 -I $(gcc_docdir)/include -o $@ $<; \
1f9b3087 4326 fi
23de1fbf 4327
63069342 4328# Duplicate entry to handle renaming of gccinstall.info
a541f69d 4329doc/gccinstall.info: $(TEXI_GCCINSTALL_FILES)
63069342 4330 if [ x$(BUILD_INFO) = xinfo ]; then \
ad3a7ce3
CD
4331 $(MAKEINFO) $(MAKEINFOFLAGS) -I $(gcc_docdir) \
4332 -I $(gcc_docdir)/include -o $@ $<; \
63069342
KC
4333 fi
4334
a541f69d
KC
4335doc/cpp.dvi: $(TEXI_CPP_FILES)
4336doc/gcc.dvi: $(TEXI_GCC_FILES)
4337doc/gccint.dvi: $(TEXI_GCCINT_FILES)
4338doc/cppinternals.dvi: $(TEXI_CPPINT_FILES)
63069342 4339
b5422ad7
BM
4340doc/cpp.pdf: $(TEXI_CPP_FILES)
4341doc/gcc.pdf: $(TEXI_GCC_FILES)
4342doc/gccint.pdf: $(TEXI_GCCINT_FILES)
4343doc/cppinternals.pdf: $(TEXI_CPPINT_FILES)
4344
22482f74
MS
4345$(build_htmldir)/cpp/index.html: $(TEXI_CPP_FILES)
4346$(build_htmldir)/gcc/index.html: $(TEXI_GCC_FILES)
4347$(build_htmldir)/gccint/index.html: $(TEXI_GCCINT_FILES)
4348$(build_htmldir)/cppinternals/index.html: $(TEXI_CPPINT_FILES)
9d65c5cb 4349
a541f69d 4350dvi:: doc/gcc.dvi doc/gccint.dvi doc/gccinstall.dvi doc/cpp.dvi \
dedfa466 4351 doc/cppinternals.dvi lang.dvi
8dbda01e 4352
a541f69d 4353doc/%.dvi: %.texi
a1286ef5 4354 $(TEXI2DVI) -I . -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $<
95e30ecc 4355
63069342 4356# Duplicate entry to handle renaming of gccinstall.dvi
a541f69d 4357doc/gccinstall.dvi: $(TEXI_GCCINSTALL_FILES)
a1286ef5 4358 $(TEXI2DVI) -I . -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $<
d7f8491b 4359
bcc3d150
BM
4360PDFFILES = doc/gcc.pdf doc/gccint.pdf doc/gccinstall.pdf doc/cpp.pdf \
4361 doc/cppinternals.pdf
4362
4363pdf:: $(PDFFILES) lang.pdf
b5422ad7
BM
4364
4365doc/%.pdf: %.texi
4366 $(TEXI2PDF) -I . -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $<
4367
4368# Duplicate entry to handle renaming of gccinstall.pdf
4369doc/gccinstall.pdf: $(TEXI_GCCINSTALL_FILES)
4370 $(TEXI2PDF) -I . -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $<
4371
9288b845
CD
4372# List the directories or single hmtl files which are installed by
4373# install-html. The lang.html file triggers language fragments to build
55bcd32b 4374# html documentation.
9288b845
CD
4375HTMLS_INSTALL=$(build_htmldir)/cpp $(build_htmldir)/gcc \
4376 $(build_htmldir)/gccinstall $(build_htmldir)/gccint \
4377 $(build_htmldir)/cppinternals
4378
4379# List the html file targets.
4380HTMLS_BUILD=$(build_htmldir)/cpp/index.html $(build_htmldir)/gcc/index.html \
22482f74
MS
4381 $(build_htmldir)/gccinstall/index.html $(build_htmldir)/gccint/index.html \
4382 $(build_htmldir)/cppinternals/index.html lang.html
9d65c5cb 4383
9288b845 4384html:: $(HTMLS_BUILD)
22482f74
MS
4385
4386$(build_htmldir)/%/index.html: %.texi
9d65c5cb
MS
4387 $(mkinstalldirs) $(@D)
4388 rm -f $(@D)/*
4389 $(TEXI2HTML) -I $(abs_docdir) -I $(abs_docdir)/include -o $(@D) $<
4390
4391# Duplicate entry to handle renaming of gccinstall
22482f74 4392$(build_htmldir)/gccinstall/index.html: $(TEXI_GCCINSTALL_FILES)
9d65c5cb
MS
4393 $(mkinstalldirs) $(@D)
4394 echo rm -f $(@D)/*
a1e6d1ce
MLI
4395 SOURCEDIR=$(abs_docdir) \
4396 DESTDIR=$(@D) \
4397 $(SHELL) $(srcdir)/doc/install.texi2html
9d65c5cb 4398
a541f69d
KC
4399MANFILES = doc/gcov.1 doc/cpp.1 doc/gcc.1 doc/gfdl.7 doc/gpl.7 doc/fsf-funding.7
4400
5340bbea 4401generated-manpages: man
ce5c1cf3
KC
4402
4403man: $(MANFILES) lang.man @GENINSRC@ srcman lang.srcman
a541f69d
KC
4404
4405srcman: $(MANFILES)
4406 -cp -p $^ $(srcdir)/doc
c01a508e 4407
a541f69d 4408doc/%.1: %.pod
6280c439 4409 $(STAMP) $@
65455962 4410 -($(POD2MAN) --section=1 $< > $(@).T$$$$ && \
6280c439
MM
4411 mv -f $(@).T$$$$ $@) || \
4412 (rm -f $(@).T$$$$ && exit 1)
6280c439 4413
a541f69d 4414doc/%.7: %.pod
6280c439 4415 $(STAMP) $@
65455962 4416 -($(POD2MAN) --section=7 $< > $(@).T$$$$ && \
6280c439
MM
4417 mv -f $(@).T$$$$ $@) || \
4418 (rm -f $(@).T$$$$ && exit 1)
65455962
KC
4419
4420%.pod: %.texi
4421 $(STAMP) $@
2f41c1d6 4422 -$(TEXI2POD) -DBUGURL="$(BUGURL_TEXI)" $< > $@
65455962
KC
4423
4424.INTERMEDIATE: cpp.pod gcc.pod gfdl.pod fsf-funding.pod
4425cpp.pod: cpp.texi cppenv.texi cppopts.texi
4426
4427# These next rules exist because the output name is not the same as
cb7c0b5a 4428# the input name, so our implicit %.pod rule will not work.
65455962 4429
4db19cc7 4430gcc.pod: invoke.texi cppenv.texi cppopts.texi gcc-vers.texi
65455962
KC
4431 $(STAMP) $@
4432 -$(TEXI2POD) $< > $@
4433gfdl.pod: fdl.texi
4434 $(STAMP) $@
4435 -$(TEXI2POD) $< > $@
4436fsf-funding.pod: funding.texi
4437 $(STAMP) $@
4438 -$(TEXI2POD) $< > $@
7f9766e4
JM
4439gpl.pod: gpl_v3.texi
4440 $(STAMP) $@
4441 -$(TEXI2POD) $< > $@
77bd67cb 4442
544eb21e 4443#\f
79d8453e
RS
4444# Deletion of files made during compilation.
4445# There are four levels of this:
f1908d70 4446# `mostlyclean', `clean', `distclean' and `maintainer-clean'.
79d8453e 4447# `mostlyclean' is useful while working on a particular type of machine.
2e494f70 4448# It deletes most, but not all, of the files made by compilation.
79d8453e 4449# It does not delete libgcc.a or its parts, so it won't have to be recompiled.
2e494f70 4450# `clean' deletes everything made by running `make all'.
47547081 4451# `distclean' also deletes the files made by config.
f1908d70 4452# `maintainer-clean' also deletes everything that could be regenerated
63d9b81c
RK
4453# automatically, except for `configure'.
4454# We remove as much from the language subdirectories as we can
013a2ee0 4455# (less duplicated code).
79d8453e 4456
6eb95e99 4457mostlyclean: lang.mostlyclean
8b1f719a 4458 -rm -f $(MOSTLYCLEANFILES)
66a82a79 4459 -rm -f *$(objext)
22aa533e 4460 -rm -f *$(coverageexts)
3b620440
KC
4461# Delete build programs
4462 -rm -f build/*
26be549a 4463 -rm -f mddeps.mk
e5e809f4 4464# Delete other built files.
57dfdff0 4465 -rm -f specs.h options.c options.h options-save.c
e5e809f4
JL
4466# Delete the stamp and temporary files.
4467 -rm -f s-* tmp-* stamp-* stmp-*
013a2ee0 4468 -rm -f */stamp-* */tmp-*
2e494f70 4469# Delete debugging dump files.
61098249 4470 -rm -f *.[0-9][0-9].* */*.[0-9][0-9].*
2e494f70 4471# Delete some files made during installation.
52c0e446 4472 -rm -f specs $(SPECS)
b548dffb 4473 -rm -f collect collect2 mips-tfile mips-tdump
2e494f70
RS
4474# Delete unwanted output files from TeX.
4475 -rm -f *.toc *.log *.vr *.fn *.cp *.tp *.ky *.pg
013a2ee0 4476 -rm -f */*.toc */*.log */*.vr */*.fn */*.cp */*.tp */*.ky */*.pg
47547081
RS
4477# Delete sorted indices we don't actually use.
4478 -rm -f gcc.vrs gcc.kys gcc.tps gcc.pgs gcc.fns
2e494f70 4479# Delete core dumps.
013a2ee0 4480 -rm -f core */core
11a67599
ZW
4481# Delete file generated for gengtype
4482 -rm -f gtyp-input.list
92724e1d 4483# Delete files generated by gengtype
8ac9d31f
TJ
4484 -rm -f gtype-*
4485 -rm -f gt-*
92724e1d 4486 -rm -f gtype.state
3fd30b88
GK
4487# Delete genchecksum outputs
4488 -rm -f *-checksum.c
79d8453e 4489
47547081
RS
4490# Delete all files made by compilation
4491# that don't exist in the distribution.
6eb95e99 4492clean: mostlyclean lang.clean
23af32e6 4493 -rm -f libgcc.a libgcc_eh.a libgcov.a
3b415018 4494 -rm -f libgcc_s*
443728bb 4495 -rm -f libunwind*
852b75ed 4496 -rm -f config.h tconfig.h bconfig.h tm_p.h tm.h
776dc15d 4497 -rm -f options.c options.h optionlist
11642c3a 4498 -rm -f cs-*
a541f69d 4499 -rm -f doc/*.dvi
b5422ad7 4500 -rm -f doc/*.pdf
14da6073
JM
4501# Delete the include directories.
4502 -rm -rf include include-fixed
75ed5d8b 4503# Delete files used by the "multilib" facility (including libgcc subdirs).
f6cdc7ea 4504 -rm -f multilib.h tmpmultilib*
75ed5d8b
DE
4505 -if [ "x$(MULTILIB_DIRNAMES)" != x ] ; then \
4506 rm -rf $(MULTILIB_DIRNAMES); \
4507 else if [ "x$(MULTILIB_OPTIONS)" != x ] ; then \
4508 rm -rf `echo $(MULTILIB_OPTIONS) | sed -e 's/\// /g'`; \
4509 fi ; fi
79d8453e 4510
47547081
RS
4511# Delete all files that users would normally create
4512# while building and installing GCC.
6eb95e99 4513distclean: clean lang.distclean
11642c3a 4514 -rm -f auto-host.h auto-build.h
d1209685 4515 -rm -f cstamp-h
63d9b81c 4516 -rm -f config.status config.run config.cache config.bak
d232dfa4 4517 -rm -f Make-lang Make-hooks Make-host Make-target
ad854f24 4518 -rm -f Makefile *.oaux
f24af81b 4519 -rm -f gthr-default.h
27bf414c 4520 -rm -f TAGS */TAGS
338023d4 4521 -rm -f *.asm
a051ad3a 4522 -rm -f site.exp site.bak testsuite/site.exp testsuite/site.bak
ad854f24 4523 -rm -f testsuite/*.log testsuite/*.sum
1bb1f121 4524 -cd testsuite && rm -f x *.x *.x? *.exe *.rpo *.o *.s *.S *.c
4977bab6 4525 -cd testsuite && rm -f *.out *.gcov *$(coverageexts)
f362c762 4526 -rm -rf ${QMTEST_DIR} stamp-qmtest
06f0b04c 4527 -rm -f cxxmain.c
fda9c731 4528 -rm -f .gdbinit configargs.h
c01a508e 4529 -rm -f gcov.pod
ad854f24
ZW
4530# Delete po/*.gmo only if we are not building in the source directory.
4531 -if [ ! -f po/exgettext ]; then rm -f po/*.gmo; fi
4adbd5dd 4532 -rmdir ada cp f java objc intl po testsuite plugin 2>/dev/null
2e494f70 4533
63d9b81c 4534# Get rid of every file that's generated from some other file, except for `configure'.
79d8453e 4535# Most of these files ARE PRESENT in the GCC distribution.
63d9b81c
RK
4536maintainer-clean:
4537 @echo 'This command is intended for maintainers to use; it'
4538 @echo 'deletes files that may need special tools to rebuild.'
6eb95e99 4539 $(MAKE) lang.maintainer-clean distclean
17db6582
JM
4540 -rm -f cpp.??s cpp.*aux
4541 -rm -f gcc.??s gcc.*aux
b5422ad7 4542 -rm -f $(gcc_docdir)/*.info $(gcc_docdir)/*.1 $(gcc_docdir)/*.7 $(gcc_docdir)/*.dvi $(gcc_docdir)/*.pdf
544eb21e 4543#\f
455c8f48 4544# Entry points `install', `install-strip', and `uninstall'.
2e494f70 4545# Also use `install-collect2' to install collect2 when the config files don't.
79d8453e 4546
ba1811f1 4547# Copy the compiler files into directories where they will be run.
aab26e16
RK
4548# Install the driver last so that the window when things are
4549# broken is small.
fa958513 4550install: install-common $(INSTALL_HEADERS) \
6eb95e99 4551 install-cpp install-man install-info install-@POSUB@ \
b6b89215 4552 install-driver install-lto-wrapper install-gcc-ar
79d8453e 4553
bf016de8
RAE
4554ifeq ($(enable_plugin),yes)
4555install: install-plugin
4556endif
4557
455c8f48
RW
4558install-strip: override INSTALL_PROGRAM = $(INSTALL_STRIP_PROGRAM)
4559ifneq ($(STRIP),)
4560install-strip: STRIPPROG = $(STRIP)
4561export STRIPPROG
4562endif
4563install-strip: install
4564
587a4ba6 4565# Handle cpp installation.
47b528da 4566install-cpp: installdirs cpp$(exeext)
439020ec
KC
4567 -rm -f $(DESTDIR)$(bindir)/$(CPP_INSTALL_NAME)$(exeext)
4568 -$(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(DESTDIR)$(bindir)/$(CPP_INSTALL_NAME)$(exeext)
4569 -if [ x$(cpp_install_dir) != x ]; then \
4570 rm -f $(DESTDIR)$(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
4571 $(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(DESTDIR)$(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
4572 else true; fi
587a4ba6 4573
69cbb85a 4574# Create the installation directories.
a8ee6e2d 4575# $(libdir)/gcc/include isn't currently searched by cpp.
69cbb85a 4576installdirs:
947c6b00
NN
4577 $(mkinstalldirs) $(DESTDIR)$(libsubdir)
4578 $(mkinstalldirs) $(DESTDIR)$(libexecsubdir)
4579 $(mkinstalldirs) $(DESTDIR)$(bindir)
4580 $(mkinstalldirs) $(DESTDIR)$(includedir)
4581 $(mkinstalldirs) $(DESTDIR)$(infodir)
947c6b00
NN
4582 $(mkinstalldirs) $(DESTDIR)$(man1dir)
4583 $(mkinstalldirs) $(DESTDIR)$(man7dir)
79d8453e 4584
bf016de8 4585PLUGIN_HEADERS = $(TREE_H) $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
7c475d11 4586 toplev.h $(DIAGNOSTIC_CORE_H) $(BASIC_BLOCK_H) $(GIMPLE_H) $(TREE_PASS_H) $(GCC_PLUGIN_H) \
ee666c25 4587 $(GGC_H) $(TREE_DUMP_H) $(PRETTY_PRINT_H) $(OPTS_H) $(PARAMS_H) \
cac1b0ee
BS
4588 $(tm_file_list) $(tm_include_list) $(tm_p_file_list) $(tm_p_include_list) \
4589 $(host_xm_file_list) $(host_xm_include_list) $(xm_include_list) \
f895fc2a 4590 intl.h $(PLUGIN_VERSION_H) $(DIAGNOSTIC_H) ${C_TREE_H} \
61d3ce20 4591 $(C_COMMON_H) c-family/c-objc.h $(C_PRETTY_PRINT_H) \
2ab43a52 4592 tree-iterator.h $(PLUGIN_H) $(TREE_FLOW_H) langhooks.h incpath.h debug.h \
3b06d379 4593 $(EXCEPT_H) tree-ssa-sccvn.h real.h output.h $(IPA_UTILS_H) \
33887751 4594 $(C_PRAGMA_H) $(CPPLIB_H) $(FUNCTION_H) \
2a5e9d16 4595 cppdefault.h flags.h $(MD5_H) params.def params.h prefix.h tree-inline.h \
ee666c25 4596 $(GIMPLE_PRETTY_PRINT_H) realmpfr.h \
01094033 4597 $(IPA_PROP_H) $(RTL_H) $(TM_P_H) $(CFGLOOP_H) $(EMIT_RTL_H) version.h
bf016de8 4598
090fa0ab
GF
4599# generate the 'build fragment' b-header-vars
4600s-header-vars: Makefile
4601 rm -f tmp-header-vars
af0a7a92
OH
4602# The first sed gets the list "header variables" as the list variables
4603# assigned in Makefile and having _H at the end of the name. "sed -n" proved
4604# more portable than a trailing "-e d" to filter out the uninteresting lines,
4605# in particular on ia64-hpux where "s/.../p" only prints if -n was requested
4606# as well.
4607 $(foreach header_var,$(shell sed < Makefile -n -e 's/^\([A-Z0-9_]*_H\)[ ]*=.*/\1/p'),echo $(header_var)=$(shell echo $($(header_var):$(srcdir)/%=.../%) | sed -e 's~\.\.\./config/~config/~' -e 's~\.\.\..*/~~') >> tmp-header-vars;) \
090fa0ab
GF
4608 $(SHELL) $(srcdir)/../move-if-change tmp-header-vars b-header-vars
4609 $(STAMP) s-header-vars
4610
f142b5bc
RG
4611# Install gengtype
4612install-gengtype: installdirs gengtype$(exeext) gtype.state
4613 $(mkinstalldirs) $(DESTDIR)$(plugin_resourcesdir)
4614 $(INSTALL_DATA) gtype.state $(DESTDIR)$(plugin_resourcesdir)/gtype.state
4615 $(mkinstalldirs) $(DESTDIR)$(plugin_bindir)
4616 $(INSTALL_PROGRAM) gengtype$(exeext) $(DESTDIR)$(plugin_bindir)/gengtype$(exeext)
4617
bf016de8 4618# Install the headers needed to build a plugin.
f142b5bc 4619install-plugin: installdirs lang.install-plugin s-header-vars install-gengtype
1baae426
RG
4620# We keep the directory structure for files in config or c-family and .def
4621# files. All other files are flattened to a single directory.
bf016de8 4622 $(mkinstalldirs) $(DESTDIR)$(plugin_includedir)
2fdb618d 4623 headers=`echo $(PLUGIN_HEADERS) | tr ' ' '\012' | sort -u`; \
3b3e44eb 4624 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`; \
bf016de8
RAE
4625 for file in $$headers; do \
4626 if [ -f $$file ] ; then \
4627 path=$$file; \
4628 elif [ -f $(srcdir)/$$file ]; then \
4629 path=$(srcdir)/$$file; \
4630 else continue; \
4631 fi; \
4632 case $$path in \
1baae426 4633 "$(srcdir)"/config/* | "$(srcdir)"/c-family/* | "$(srcdir)"/*.def ) \
9419a9fd 4634 base=`echo "$$path" | sed -e "s|$$srcdirstrip/||"`;; \
bf016de8
RAE
4635 *) base=`basename $$path` ;; \
4636 esac; \
4637 dest=$(plugin_includedir)/$$base; \
86e3c83a 4638 echo $(INSTALL_DATA) $$path $(DESTDIR)$$dest; \
bf016de8 4639 dir=`dirname $$dest`; \
86e3c83a
MK
4640 $(mkinstalldirs) $(DESTDIR)$$dir; \
4641 $(INSTALL_DATA) $$path $(DESTDIR)$$dest; \
bf016de8 4642 done
090fa0ab 4643 $(INSTALL_DATA) b-header-vars $(DESTDIR)$(plugin_includedir)/b-header-vars
bf016de8 4644
79d8453e 4645# Install the compiler executables built during cross compilation.
fa958513 4646install-common: native lang.install-common installdirs
79d8453e
RS
4647 for file in $(COMPILERS); do \
4648 if [ -f $$file ] ; then \
a8ee6e2d
GK
4649 rm -f $(DESTDIR)$(libexecsubdir)/$$file; \
4650 $(INSTALL_PROGRAM) $$file $(DESTDIR)$(libexecsubdir)/$$file; \
79d8453e
RS
4651 else true; \
4652 fi; \
4653 done
d82c57a8 4654 for file in $(EXTRA_PROGRAMS) $(COLLECT2) ..; do \
79d8453e 4655 if [ x"$$file" != x.. ]; then \
a8ee6e2d
GK
4656 rm -f $(DESTDIR)$(libexecsubdir)/$$file; \
4657 $(INSTALL_PROGRAM) $$file $(DESTDIR)$(libexecsubdir)/$$file; \
79d8453e
RS
4658 else true; fi; \
4659 done
e90f1b9d
MM
4660# We no longer install the specs file because its presence makes the
4661# driver slower, and because people who need it can recreate it by
4662# using -dumpspecs. We remove any old version because it would
4663# otherwise override the specs built into the driver.
8ff61ea7 4664 rm -f $(DESTDIR)$(libsubdir)/specs
ca363bb6 4665# Install gcov if it was compiled.
59a64126
DE
4666 -if [ -f gcov$(exeext) ]; \
4667 then \
3743ea05 4668 rm -f $(DESTDIR)$(bindir)/$(GCOV_INSTALL_NAME)$(exeext); \
90961eff 4669 $(INSTALL_PROGRAM) gcov$(exeext) $(DESTDIR)$(bindir)/$(GCOV_INSTALL_NAME)$(exeext); \
59a64126 4670 fi
aab26e16 4671
5340bbea 4672# Install the driver program as $(target_noncanonical)-gcc,
caa55b1e 4673# $(target_noncanonical)-gcc-$(version)
91c7bd9b 4674# and also as either gcc (if native) or $(gcc_tooldir)/bin/gcc.
e658449e 4675install-driver: installdirs xgcc$(exeext)
439020ec
KC
4676 -rm -f $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext)
4677 -$(INSTALL_PROGRAM) xgcc$(exeext) $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext)
f03668f6 4678 -rm -f $(DESTDIR)$(bindir)/$(target_noncanonical)-gcc-$(version)$(exeext)
439020ec 4679 -( cd $(DESTDIR)$(bindir) && \
f03668f6 4680 $(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_noncanonical)-gcc-$(version)$(exeext) )
173712fb 4681 -if [ -f gcc-cross$(exeext) ] ; then \
90961eff
AJ
4682 if [ -d $(DESTDIR)$(gcc_tooldir)/bin/. ] ; then \
4683 rm -f $(DESTDIR)$(gcc_tooldir)/bin/gcc$(exeext); \
4684 $(INSTALL_PROGRAM) gcc-cross$(exeext) $(DESTDIR)$(gcc_tooldir)/bin/gcc$(exeext); \
79d8453e
RS
4685 else true; fi; \
4686 else \
caa55b1e 4687 rm -f $(DESTDIR)$(bindir)/$(target_noncanonical)-gcc-tmp$(exeext); \
90961eff 4688 ( cd $(DESTDIR)$(bindir) && \
caa55b1e
NN
4689 $(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_noncanonical)-gcc-tmp$(exeext) && \
4690 mv -f $(target_noncanonical)-gcc-tmp$(exeext) $(GCC_TARGET_INSTALL_NAME)$(exeext) ); \
79d8453e 4691 fi
79d8453e 4692
0b2fbcb2 4693# Install the info files.
feb9ea1a 4694# $(INSTALL_DATA) might be a relative pathname, so we can't cd into srcdir
ee5b121e 4695# to do the install.
97ae108d
MM
4696install-info:: doc installdirs \
4697 $(DESTDIR)$(infodir)/cpp.info \
4698 $(DESTDIR)$(infodir)/gcc.info \
4699 $(DESTDIR)$(infodir)/cppinternals.info \
ee312cd0 4700 $(DESTDIR)$(infodir)/gccinstall.info \
dedfa466
PB
4701 $(DESTDIR)$(infodir)/gccint.info \
4702 lang.install-info
97ae108d 4703
a541f69d 4704$(DESTDIR)$(infodir)/%.info: doc/%.info installdirs
97ae108d
MM
4705 rm -f $@
4706 if [ -f $< ]; then \
4707 for f in $(<)*; do \
17db6582 4708 realfile=`echo $$f | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
90961eff 4709 $(INSTALL_DATA) $$f $(DESTDIR)$(infodir)/$$realfile; \
3d56d025 4710 chmod a-x $(DESTDIR)$(infodir)/$$realfile; \
17db6582
JM
4711 done; \
4712 else true; fi
ee5b121e 4713 -if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
a89f5df3
JM
4714 if [ -f $@ ]; then \
4715 install-info --dir-file=$(DESTDIR)$(infodir)/dir $@; \
f8c86b58 4716 else true; fi; \
265ce5bb 4717 else true; fi;
0b2fbcb2 4718
bcc3d150
BM
4719pdf__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
4720
4721install-pdf: $(PDFFILES) lang.install-pdf
4722 @$(NORMAL_INSTALL)
4723 test -z "$(pdfdir)/gcc" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)/gcc"
4724 @list='$(PDFFILES)'; for p in $$list; do \
4725 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
4726 f=$(pdf__strip_dir) \
4727 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/gcc/$$f'"; \
4728 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/gcc/$$f"; \
4729 done
4730
9288b845 4731html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
d3dc619d 4732
55bcd32b 4733install-html: $(HTMLS_BUILD) lang.install-html
9288b845 4734 @$(NORMAL_INSTALL)
ab7efd91 4735 test -z "$(htmldir)" || $(mkinstalldirs) "$(DESTDIR)$(htmldir)"
9288b845
CD
4736 @list='$(HTMLS_INSTALL)'; for p in $$list; do \
4737 if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \
4738 f=$(html__strip_dir) \
4739 if test -d "$$d$$p"; then \
ab7efd91
CD
4740 echo " $(mkinstalldirs) '$(DESTDIR)$(htmldir)/$$f'"; \
4741 $(mkinstalldirs) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
9288b845
CD
4742 echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
4743 $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
4744 else \
4745 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
4746 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
4747 fi; \
4748 done
4749
79d8453e 4750# Install the man pages.
7bfb5ccc 4751install-man: lang.install-man \
a541f69d 4752 $(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext) \
52ccb3d2
GK
4753 $(DESTDIR)$(man1dir)/$(CPP_INSTALL_NAME)$(man1ext) \
4754 $(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext) \
a541f69d
KC
4755 $(DESTDIR)$(man7dir)/fsf-funding$(man7ext) \
4756 $(DESTDIR)$(man7dir)/gfdl$(man7ext) \
4757 $(DESTDIR)$(man7dir)/gpl$(man7ext)
4758
7bfb5ccc 4759$(DESTDIR)$(man7dir)/%$(man7ext): doc/%.7 installdirs
a541f69d
KC
4760 -rm -f $@
4761 -$(INSTALL_DATA) $< $@
4762 -chmod a-x $@
4763
7bfb5ccc 4764$(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext): doc/gcc.1 installdirs
a541f69d 4765 -rm -f $@
5340bbea 4766 -$(INSTALL_DATA) $< $@
a541f69d
KC
4767 -chmod a-x $@
4768
7bfb5ccc 4769$(DESTDIR)$(man1dir)/$(CPP_INSTALL_NAME)$(man1ext): doc/cpp.1 installdirs
52ccb3d2 4770 -rm -f $@
5340bbea 4771 -$(INSTALL_DATA) $< $@
52ccb3d2
GK
4772 -chmod a-x $@
4773
7bfb5ccc 4774$(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext): doc/gcov.1 installdirs
a541f69d 4775 -rm -f $@
5340bbea 4776 -$(INSTALL_DATA) $< $@
a541f69d 4777 -chmod a-x $@
79d8453e 4778
ba1811f1 4779# Install all the header files built in the include subdirectory.
fecd6201 4780install-headers: $(INSTALL_HEADERS_DIR)
ba1811f1
ILT
4781# Fix symlinks to absolute paths in the installed include directory to
4782# point to the installed directory, not the build directory.
ac64120e 4783# Don't need to use LN_S here since we really do need ln -s and no substitutes.
f686ec05 4784 -files=`cd $(DESTDIR)$(libsubdir)/include-fixed; find . -type l -print 2>/dev/null`; \
ba1811f1 4785 if [ $$? -eq 0 ]; then \
f686ec05 4786 dir=`cd include-fixed; ${PWD_COMMAND}`; \
ba1811f1 4787 for i in $$files; do \
f686ec05 4788 dest=`ls -ld $(DESTDIR)$(libsubdir)/include-fixed/$$i | sed -n 's/.*-> //p'`; \
ba1811f1 4789 if expr "$$dest" : "$$dir.*" > /dev/null; then \
f686ec05
JM
4790 rm -f $(DESTDIR)$(libsubdir)/include-fixed/$$i; \
4791 ln -s `echo $$i | sed "s|/[^/]*|/..|g" | sed 's|/..$$||'``echo "$$dest" | sed "s|$$dir||"` $(DESTDIR)$(libsubdir)/include-fixed/$$i; \
ba1811f1
ILT
4792 fi; \
4793 done; \
4794 fi
79d8453e 4795
ba1811f1 4796# Create or recreate the gcc private include file directory.
69cbb85a 4797install-include-dir: installdirs
d3dc619d 4798 $(mkinstalldirs) $(DESTDIR)$(libsubdir)/include
f686ec05 4799 -rm -rf $(DESTDIR)$(libsubdir)/include-fixed
f686ec05 4800 mkdir $(DESTDIR)$(libsubdir)/include-fixed
f686ec05 4801 -chmod a+rx $(DESTDIR)$(libsubdir)/include-fixed
ba1811f1 4802
f08dd1f8
ZW
4803# Create or recreate the install-tools include file directory.
4804itoolsdir = $(libexecsubdir)/install-tools
4805itoolsdatadir = $(libsubdir)/install-tools
4806install-itoolsdirs: installdirs
4807 $(mkinstalldirs) $(DESTDIR)$(itoolsdatadir)/include
4808 $(mkinstalldirs) $(DESTDIR)$(itoolsdir)
4809
ba1811f1 4810# Install the include directory using tar.
52c0e446 4811install-headers-tar: stmp-int-hdrs install-include-dir
965c3f43
AO
4812# We use `pwd`/include instead of just include to problems with CDPATH
4813# Unless a full pathname is provided, some shells would print the new CWD,
4814# found in CDPATH, corrupting the output. We could just redirect the
4815# output of `cd', but some shells lose on redirection within `()'s
8c90b13a 4816 (cd `${PWD_COMMAND}`/include ; \
90961eff 4817 tar -cf - .; exit 0) | (cd $(DESTDIR)$(libsubdir)/include; tar xpf - )
f686ec05
JM
4818 (cd `${PWD_COMMAND}`/include-fixed ; \
4819 tar -cf - .; exit 0) | (cd $(DESTDIR)$(libsubdir)/include-fixed; tar xpf - )
e6431ec5
RS
4820# /bin/sh on some systems returns the status of the first tar,
4821# and that can lose with GNU tar which always writes a full block.
4822# So use `exit 0' to ignore its exit status.
ba1811f1
ILT
4823
4824# Install the include directory using cpio.
52c0e446 4825install-headers-cpio: stmp-int-hdrs install-include-dir
965c3f43 4826# See discussion about the use of `pwd` above
8c90b13a 4827 cd `${PWD_COMMAND}`/include ; \
90961eff 4828 find . -print | cpio -pdum $(DESTDIR)$(libsubdir)/include
f686ec05
JM
4829 cd `${PWD_COMMAND}`/include-fixed ; \
4830 find . -print | cpio -pdum $(DESTDIR)$(libsubdir)/include-fixed
79d8453e 4831
ff3aaf17 4832# Install the include directory using cp.
52c0e446 4833install-headers-cp: stmp-int-hdrs install-include-dir
90961eff 4834 cp -p -r include $(DESTDIR)$(libsubdir)
f686ec05 4835 cp -p -r include-fixed $(DESTDIR)$(libsubdir)
ff3aaf17 4836
9fb03bd8
DJ
4837# Targets without dependencies, for use in prev-gcc during bootstrap.
4838real-install-headers-tar:
f686ec05
JM
4839 (cd `${PWD_COMMAND}`/include-fixed ; \
4840 tar -cf - .; exit 0) | (cd $(DESTDIR)$(libsubdir)/include-fixed; tar xpf - )
9fb03bd8
DJ
4841
4842real-install-headers-cpio:
f686ec05
JM
4843 cd `${PWD_COMMAND}`/include-fixed ; \
4844 find . -print | cpio -pdum $(DESTDIR)$(libsubdir)/include-fixed
9fb03bd8
DJ
4845
4846real-install-headers-cp:
f686ec05 4847 cp -p -r include-fixed $(DESTDIR)$(libsubdir)
9fb03bd8 4848
53c7ffe7 4849# Install supporting files for fixincludes to be run later.
52c0e446 4850install-mkheaders: stmp-int-hdrs install-itoolsdirs \
14da6073 4851 macro_list fixinc_list
53c7ffe7
GK
4852 $(INSTALL_DATA) $(srcdir)/gsyslimits.h \
4853 $(DESTDIR)$(itoolsdatadir)/gsyslimits.h
4854 $(INSTALL_DATA) macro_list $(DESTDIR)$(itoolsdatadir)/macro_list
14da6073
JM
4855 $(INSTALL_DATA) fixinc_list $(DESTDIR)$(itoolsdatadir)/fixinc_list
4856 set -e; for ml in `cat fixinc_list`; do \
4857 multi_dir=`echo $${ml} | sed -e 's/^[^;]*;//'`; \
4858 $(mkinstalldirs) $(DESTDIR)$(itoolsdatadir)/include$${multi_dir}; \
4859 $(INSTALL_DATA) include-fixed$${multidir}/limits.h $(DESTDIR)$(itoolsdatadir)/include$${multi_dir}/limits.h; \
4860 done
4861 $(INSTALL_SCRIPT) $(srcdir)/../mkinstalldirs \
90961eff 4862 $(DESTDIR)$(itoolsdir)/mkinstalldirs ; \
14da6073
JM
4863 sysroot_headers_suffix='$${sysroot_headers_suffix}'; \
4864 echo 'SYSTEM_HEADER_DIR="'"$(SYSTEM_HEADER_DIR)"'"' \
a8ee6e2d 4865 > $(DESTDIR)$(itoolsdatadir)/mkheaders.conf
e34a3d31 4866 echo 'OTHER_FIXINCLUDES_DIRS="$(OTHER_FIXINCLUDES_DIRS)"' \
a8ee6e2d 4867 >> $(DESTDIR)$(itoolsdatadir)/mkheaders.conf
a8ee6e2d
GK
4868 echo 'STMP_FIXINC="$(STMP_FIXINC)"' \
4869 >> $(DESTDIR)$(itoolsdatadir)/mkheaders.conf
e34a3d31 4870
10da1131 4871# Use this target to install the program `collect2' under the name `collect2'.
69cbb85a 4872install-collect2: collect2 installdirs
a8ee6e2d 4873 $(INSTALL_PROGRAM) collect2$(exeext) $(DESTDIR)$(libexecsubdir)/collect2$(exeext)
2e494f70 4874# Install the driver program as $(libsubdir)/gcc for collect2.
a8ee6e2d 4875 $(INSTALL_PROGRAM) xgcc$(exeext) $(DESTDIR)$(libexecsubdir)/gcc$(exeext)
2e494f70 4876
d7f09764
DN
4877# Install lto-wrapper.
4878install-lto-wrapper: lto-wrapper$(exeext)
4879 $(INSTALL_PROGRAM) lto-wrapper$(exeext) $(DESTDIR)$(libexecsubdir)/lto-wrapper$(exeext)
7ac8318c 4880
d6baa446
RC
4881install-gcc-ar: installdirs gcc-ar$(exeext) gcc-nm$(exeext) gcc-ranlib$(exeext)
4882 for i in gcc-ar gcc-nm gcc-ranlib; do \
4883 install_name=`echo $$i|sed '$(program_transform_name)'` ;\
4884 target_install_name=$(target_noncanonical)-`echo $$i|sed '$(program_transform_name)'` ; \
4885 rm -f $(DESTDIR)$(bindir)/$$install_name$(exeext) ; \
4886 $(INSTALL_PROGRAM) $$i$(exeext) $(DESTDIR)$(bindir)/$$install_name$(exeext) ;\
4887 if test -f gcc-cross$(exeext); then \
b6b89215
AK
4888 :; \
4889 else \
d6baa446 4890 rm -f $(DESTDIR)$(bindir)/$$target_install_name$(exeext); \
b6b89215 4891 ( cd $(DESTDIR)$(bindir) && \
d6baa446 4892 $(LN) $$install_name$(exeext) $$target_install_name$(exeext) ) ; \
b6b89215
AK
4893 fi ; \
4894 done
4895
79d8453e 4896# Cancel installation by deleting the installed files.
6eb95e99 4897uninstall: lang.uninstall
90961eff 4898 -rm -rf $(DESTDIR)$(libsubdir)
a8ee6e2d 4899 -rm -rf $(DESTDIR)$(libexecsubdir)
90961eff 4900 -rm -rf $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext)
90961eff 4901 -rm -f $(DESTDIR)$(bindir)/$(CPP_INSTALL_NAME)$(exeext)
1e730c5c 4902 -if [ x$(cpp_install_dir) != x ]; then \
90961eff 4903 rm -f $(DESTDIR)$(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
1e730c5c 4904 else true; fi
90961eff
AJ
4905 -rm -rf $(DESTDIR)$(bindir)/$(GCOV_INSTALL_NAME)$(exeext)
4906 -rm -rf $(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext)
90961eff 4907 -rm -rf $(DESTDIR)$(man1dir)/cpp$(man1ext)
90961eff
AJ
4908 -rm -f $(DESTDIR)$(infodir)/cpp.info* $(DESTDIR)$(infodir)/gcc.info*
4909 -rm -f $(DESTDIR)$(infodir)/cppinternals.info* $(DESTDIR)$(infodir)/gccint.info*
b6b89215
AK
4910 for i in ar nm ranlib ; do \
4911 install_name=`echo gcc-$$i|sed '$(program_transform_name)'`$(exeext) ;\
4912 target_install_name=$(target_noncanonical)-`echo gcc-$$i|sed '$(program_transform_name)'`$(exeext) ; \
4913 rm -f $(DESTDIR)$(bindir)/$$install_name ; \
4914 rm -f $(DESTDIR)$(bindir)/$$target_install_name ; \
4915 done
544eb21e 4916#\f
4c457b6b 4917# These targets are for the dejagnu testsuites. The file site.exp
e933cbe0
JL
4918# contains global variables that all the testsuites will use.
4919
e933cbe0
JL
4920target_subdir = @target_subdir@
4921
4922site.exp: ./config.status Makefile
4923 @echo "Making a new config file..."
f103fa7a 4924 -@rm -f ./site.tmp
d9835ae8 4925 @$(STAMP) site.exp
e933cbe0 4926 -@mv site.exp site.bak
f103fa7a
RG
4927 @echo "## these variables are automatically generated by make ##" > ./site.tmp
4928 @echo "# Do not edit here. If you wish to override these values" >> ./site.tmp
4929 @echo "# add them to the last section" >> ./site.tmp
4930 @echo "set rootme \"`${PWD_COMMAND}`\"" >> ./site.tmp
4931 @echo "set srcdir \"`cd ${srcdir}; ${PWD_COMMAND}`\"" >> ./site.tmp
4932 @echo "set host_triplet $(host)" >> ./site.tmp
4933 @echo "set build_triplet $(build)" >> ./site.tmp
4934 @echo "set target_triplet $(target)" >> ./site.tmp
4935 @echo "set target_alias $(target_noncanonical)" >> ./site.tmp
4936 @echo "set libiconv \"$(LIBICONV)\"" >> ./site.tmp
e933cbe0 4937# CFLAGS is set even though it's empty to show we reserve the right to set it.
f103fa7a
RG
4938 @echo "set CFLAGS \"\"" >> ./site.tmp
4939 @echo "set CXXFLAGS \"\"" >> ./site.tmp
4940 @echo "set HOSTCC \"$(CC)\"" >> ./site.tmp
4941 @echo "set HOSTCFLAGS \"$(CFLAGS)\"" >> ./site.tmp
c875f596
DN
4942# TEST_ALWAYS_FLAGS are flags that should be passed to every compilation.
4943# They are passed first to allow individual tests to override them.
4944 @echo "set TEST_ALWAYS_FLAGS \"$(SYSROOT_CFLAGS_FOR_TARGET)\"" >> ./site.tmp
4d936aca
JJ
4945# When running the tests we set GCC_EXEC_PREFIX to the install tree so that
4946# files that have already been installed there will be found. The -B option
4947# overrides it, so use of GCC_EXEC_PREFIX will not result in using GCC files
4948# from the install tree.
f103fa7a
RG
4949 @echo "set TEST_GCC_EXEC_PREFIX \"$(libdir)/gcc/\"" >> ./site.tmp
4950 @echo "set TESTING_IN_BUILD_TREE 1" >> ./site.tmp
4951 @echo "set HAVE_LIBSTDCXX_V3 1" >> ./site.tmp
68a607d8 4952 @if test "@enable_plugin@" = "yes" ; then \
f103fa7a
RG
4953 echo "set ENABLE_PLUGIN 1" >> ./site.tmp; \
4954 echo "set PLUGINCC \"$(PLUGINCC)\"" >> ./site.tmp; \
4955 echo "set PLUGINCFLAGS \"$(PLUGINCFLAGS)\"" >> ./site.tmp; \
4956 echo "set GMPINC \"$(GMPINC)\"" >> ./site.tmp; \
68a607d8 4957 fi
d7f09764 4958 @if test "@enable_lto@" = "yes" ; then \
f103fa7a 4959 echo "set ENABLE_LTO 1" >> ./site.tmp; \
d7f09764 4960 fi
e933cbe0
JL
4961# If newlib has been configured, we need to pass -B to gcc so it can find
4962# newlib's crt0.o if it exists. This will cause a "path prefix not used"
4963# message if it doesn't, but the testsuite is supposed to ignore the message -
4964# it's too difficult to tell when to and when not to pass -B (not all targets
4965# have crt0's). We could only add the -B if ../newlib/crt0.o exists, but that
4966# seems like too selective a test.
4967# ??? Another way to solve this might be to rely on linker scripts. Then
4968# theoretically the -B won't be needed.
4969# We also need to pass -L ../ld so that the linker can find ldscripts.
6a1b7268 4970 @if [ -d $(objdir)/../$(target_subdir)/newlib ] \
4665e56c 4971 && [ "${host}" != "${target}" ]; then \
f103fa7a
RG
4972 echo "set newlib_cflags \"-I$(objdir)/../$(target_subdir)/newlib/targ-include -I\$$srcdir/../newlib/libc/include\"" >> ./site.tmp; \
4973 echo "set newlib_ldflags \"-B$(objdir)/../$(target_subdir)/newlib/\"" >> ./site.tmp; \
4974 echo "append CFLAGS \" \$$newlib_cflags\"" >> ./site.tmp; \
4975 echo "append CXXFLAGS \" \$$newlib_cflags\"" >> ./site.tmp; \
4976 echo "append LDFLAGS \" \$$newlib_ldflags\"" >> ./site.tmp; \
e933cbe0
JL
4977 else true; \
4978 fi
4979 @if [ -d $(objdir)/../ld ] ; then \
f103fa7a 4980 echo "append LDFLAGS \" -L$(objdir)/../ld\"" >> ./site.tmp; \
e933cbe0
JL
4981 else true; \
4982 fi
f103fa7a
RG
4983 echo "set tmpdir $(objdir)/testsuite" >> ./site.tmp
4984 @echo "set srcdir \"\$${srcdir}/testsuite\"" >> ./site.tmp
6ccfe27c 4985 @if [ "X$(ALT_CC_UNDER_TEST)" != "X" ] ; then \
f103fa7a 4986 echo "set ALT_CC_UNDER_TEST \"$(ALT_CC_UNDER_TEST)\"" >> ./site.tmp; \
6ccfe27c
JJ
4987 else true; \
4988 fi
fa870451 4989 @if [ "X$(ALT_CXX_UNDER_TEST)" != "X" ] ; then \
f103fa7a 4990 echo "set ALT_CXX_UNDER_TEST \"$(ALT_CXX_UNDER_TEST)\"" >> ./site.tmp; \
fa870451
JJ
4991 else true; \
4992 fi
4993 @if [ "X$(COMPAT_OPTIONS)" != "X" ] ; then \
f103fa7a 4994 echo "set COMPAT_OPTIONS \"$(COMPAT_OPTIONS)\"" >> ./site.tmp; \
fa870451
JJ
4995 else true; \
4996 fi
f103fa7a
RG
4997 @echo "## All variables above are generated by configure. Do Not Edit ##" >> ./site.tmp
4998 @cat ./site.tmp > site.exp
e933cbe0
JL
4999 @cat site.bak | sed \
5000 -e '1,/^## All variables above are.*##/ d' >> site.exp
f103fa7a 5001 -@rm -f ./site.tmp
e933cbe0 5002
d4a10d0a 5003CHECK_TARGETS = @check_languages@
cbc59f01 5004
e933cbe0
JL
5005check: $(CHECK_TARGETS)
5006
7134e605
JJ
5007check-subtargets: $(patsubst %,%-subtargets,$(CHECK_TARGETS))
5008
a738a85c 5009# The idea is to parallelize testing of multilibs, for example:
7dd232a8 5010# make -j3 check-gcc//sh-hms-sim/{-m1,-m2,-m3,-m3e,-m4}/{,-nofpu}
a738a85c
AO
5011# will run 3 concurrent sessions of check-gcc, eventually testing
5012# all 10 combinations. GNU make is required, as is a shell that expands
5013# alternations within braces.
49a41726
JM
5014lang_checks_parallel = $(lang_checks:=//%)
5015$(lang_checks_parallel): site.exp
7dd232a8
AO
5016 target=`echo "$@" | sed 's,//.*,,'`; \
5017 variant=`echo "$@" | sed 's,^[^/]*//,,'`; \
a738a85c
AO
5018 vardots=`echo "$$variant" | sed 's,/,.,g'`; \
5019 $(MAKE) TESTSUITEDIR="testsuite.$$vardots" \
8207e1fb 5020 RUNTESTFLAGS="--target_board=$$variant $(RUNTESTFLAGS)" \
a738a85c
AO
5021 "$$target"
5022
5023TESTSUITEDIR = testsuite
5024
5025$(TESTSUITEDIR)/site.exp: site.exp
577092ba 5026 -test -d $(TESTSUITEDIR) || mkdir $(TESTSUITEDIR)
a738a85c 5027 -rm -f $@
453897b4 5028 sed '/set tmpdir/ s|testsuite$$|$(TESTSUITEDIR)|' < site.exp > $@
a738a85c 5029
7134e605
JJ
5030# This is only used for check-% targets that aren't parallelized.
5031$(filter-out $(lang_checks_parallelized),$(lang_checks)): check-% : site.exp
4adbd5dd 5032 -test -d plugin || mkdir plugin
577092ba 5033 -test -d $(TESTSUITEDIR) || mkdir $(TESTSUITEDIR)
fea4cfe0 5034 test -d $(TESTSUITEDIR)/$* || mkdir $(TESTSUITEDIR)/$*
8c90b13a
L
5035 -(rootme=`${PWD_COMMAND}`; export rootme; \
5036 srcdir=`cd ${srcdir}; ${PWD_COMMAND}` ; export srcdir ; \
fea4cfe0
L
5037 cd $(TESTSUITEDIR)/$*; \
5038 rm -f tmp-site.exp; \
453897b4 5039 sed '/set tmpdir/ s|testsuite$$|$(TESTSUITEDIR)/$*|' \
fea4cfe0 5040 < ../../site.exp > tmp-site.exp; \
88405bd3 5041 $(SHELL) $${srcdir}/../move-if-change tmp-site.exp site.exp; \
d8bb17c8
OP
5042 EXPECT=${EXPECT} ; export EXPECT ; \
5043 if [ -f $${rootme}/../expect/expect ] ; then \
88405bd3 5044 TCL_LIBRARY=`cd .. ; cd $${srcdir}/../tcl/library ; ${PWD_COMMAND}` ; \
d8bb17c8 5045 export TCL_LIBRARY ; fi ; \
4b09846b 5046 $(RUNTEST) --tool $* $(RUNTESTFLAGS))
d8bb17c8 5047
7134e605
JJ
5048$(patsubst %,%-subtargets,$(filter-out $(lang_checks_parallelized),$(lang_checks))): check-%-subtargets:
5049 @echo check-$*
5050
5051check_p_tool=$(firstword $(subst _, ,$*))
5052check_p_vars=$(check_$(check_p_tool)_parallelize)
5053check_p_subno=$(word 2,$(subst _, ,$*))
5054check_p_comma=,
5055check_p_subwork=$(subst $(check_p_comma), ,$(if $(check_p_subno),$(word $(check_p_subno),$(check_p_vars))))
5056check_p_numbers=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
5057check_p_subdir=$(subst _,,$*)
5058check_p_subdirs=$(wordlist 1,$(words $(check_$*_parallelize)),$(check_p_numbers))
5059
5060# For parallelized check-% targets, this decides whether parallelization
5061# is desirable (if -jN is used and RUNTESTFLAGS doesn't contain anything
6feeed06 5062# but optional --target_board or --extra_opts arguments). If desirable,
7134e605
JJ
5063# recursive make is run with check-parallel-$lang{,1,2,3,4,5} etc. goals,
5064# which can be executed in parallel, as they are run in separate directories.
5065# check-parallel-$lang{1,2,3,4,5} etc. goals invoke runtest with the longest
5066# running *.exp files from the testsuite, as determined by check_$lang_parallelize
5067# variable. The check-parallel-$lang goal in that case invokes runtest with
5068# all the remaining *.exp files not handled by the separate goals.
5069# Afterwards contrib/dg-extract-results.sh is used to merge the sum and log
5070# files. If parallelization isn't desirable, only one recursive make
5071# is run with check-parallel-$lang goal and check_$lang_parallelize variable
5072# cleared to say that no additional arguments beyond $(RUNTESTFLAGS)
5073# should be passed to runtest.
5074#
5075# To parallelize some language check, add the corresponding check-$lang
5076# to lang_checks_parallelized variable and define check_$lang_parallelize
5077# variable (see above check_gcc_parallelize description).
5078$(lang_checks_parallelized): check-% : site.exp
6feeed06 5079 @if [ -z "$(filter-out --target_board=%,$(filter-out --extra_opts%,$(RUNTESTFLAGS)))" ] \
7134e605 5080 && [ "$(filter -j, $(MFLAGS))" = "-j" ]; then \
8207e1fb 5081 $(MAKE) TESTSUITEDIR="$(TESTSUITEDIR)" RUNTESTFLAGS="$(RUNTESTFLAGS)" \
7134e605
JJ
5082 check-parallel-$* \
5083 $(patsubst %,check-parallel-$*_%, $(check_p_subdirs)); \
5084 for file in $(TESTSUITEDIR)/$*/$* \
5085 $(patsubst %,$(TESTSUITEDIR)/$*%/$*,$(check_p_subdirs));\
5086 do \
5087 mv -f $$file.sum $$file.sum.sep; mv -f $$file.log $$file.log.sep; \
5088 done; \
5089 $(SHELL) $(srcdir)/../contrib/dg-extract-results.sh \
5090 $(TESTSUITEDIR)/$*/$*.sum.sep \
5091 $(patsubst %,$(TESTSUITEDIR)/$*%/$*.sum.sep,$(check_p_subdirs)) \
5092 > $(TESTSUITEDIR)/$*/$*.sum; \
5093 $(SHELL) $(srcdir)/../contrib/dg-extract-results.sh -L \
5094 $(TESTSUITEDIR)/$*/$*.log.sep \
5095 $(patsubst %,$(TESTSUITEDIR)/$*%/$*.log.sep,$(check_p_subdirs)) \
5096 > $(TESTSUITEDIR)/$*/$*.log; \
5097 else \
8207e1fb 5098 $(MAKE) TESTSUITEDIR="$(TESTSUITEDIR)" RUNTESTFLAGS="$(RUNTESTFLAGS)" \
7134e605
JJ
5099 check_$*_parallelize= check-parallel-$*; \
5100 fi
5101
5102# Just print the parallelized subtargets for those that want to split
5103# the testing across machines.
5104$(patsubst %,%-subtargets,$(lang_checks_parallelized)): check-%-subtargets:
5105 @echo check-parallel-$* \
5106 $(patsubst %,check-parallel-$*_%, $(check_p_subdirs))
5107
5108# In the if [ -n "$(check_p_subno)" ] case runtest should be given the name of
5109# the given *.exp file(s). See comment above check_gcc_parallelize variable
5110# for details on the content of these variables.
5111#
5112# In the elif [ -n "$(check_p_vars)" ] case runtest should be given
5113# names of all the *.exp files for this tool that aren't already handled by
5114# other goals. First it finds all the *.exp files for this tool, then
5115# prunes those already specified in check_$lang_parallelize or duplicates.
5116#
5117# Otherwise check-$lang isn't parallelized and runtest is invoked just with
5118# the $(RUNTESTFLAGS) arguments.
5119check-parallel-% : site.exp
4adbd5dd 5120 -test -d plugin || mkdir plugin
7134e605
JJ
5121 -test -d $(TESTSUITEDIR) || mkdir $(TESTSUITEDIR)
5122 test -d $(TESTSUITEDIR)/$(check_p_subdir) || mkdir $(TESTSUITEDIR)/$(check_p_subdir)
5123 -(rootme=`${PWD_COMMAND}`; export rootme; \
5124 srcdir=`cd ${srcdir}; ${PWD_COMMAND}` ; export srcdir ; \
5125 cd $(TESTSUITEDIR)/$(check_p_subdir); \
5126 rm -f tmp-site.exp; \
453897b4 5127 sed '/set tmpdir/ s|testsuite$$|$(TESTSUITEDIR)/$(check_p_subdir)|' \
7134e605
JJ
5128 < ../../site.exp > tmp-site.exp; \
5129 $(SHELL) $${srcdir}/../move-if-change tmp-site.exp site.exp; \
5130 EXPECT=${EXPECT} ; export EXPECT ; \
5131 if [ -f $${rootme}/../expect/expect ] ; then \
5132 TCL_LIBRARY=`cd .. ; cd $${srcdir}/../tcl/library ; ${PWD_COMMAND}` ; \
5133 export TCL_LIBRARY ; fi ; \
7134e605
JJ
5134 runtestflags= ; \
5135 if [ -n "$(check_p_subno)" ] ; then \
5136 runtestflags="$(check_p_subwork)"; \
5137 elif [ -n "$(check_p_vars)" ] ; then \
5138 parts="`echo ' $(strip $(subst $(check_p_comma), ,$(check_p_vars))) ' \
5139 | sed 's/=[^ ]* / /g'`"; \
5140 for part in `find $$srcdir/testsuite/$(check_p_tool)* -name \*.exp` ; do \
5141 part=`basename $$part` ; \
5142 case " $$parts $$runtestflags " in \
5143 *" $$part "*) ;; \
5144 *) runtestflags="$$runtestflags $$part" ;; \
5145 esac ; \
5146 done ; \
5147 fi ; \
5148 $(RUNTEST) --tool $(check_p_tool) $(RUNTESTFLAGS) $$runtestflags)
5149
f362c762
MM
5150# QMTest targets
5151
5152# The path to qmtest.
5153QMTEST_PATH=qmtest
5154
5155# The flags to pass to qmtest.
5156QMTESTFLAGS=
5157
5158# The flags to pass to "qmtest run".
d7068b3d 5159QMTESTRUNFLAGS=-f none --result-stream dejagnu_stream.DejaGNUStream
f362c762
MM
5160
5161# The command to use to invoke qmtest.
5162QMTEST=${QMTEST_PATH} ${QMTESTFLAGS}
5163
5164# The tests (or suites) to run.
d7068b3d 5165QMTEST_GPP_TESTS=g++
f362c762
MM
5166
5167# The subdirectory of the OBJDIR that will be used to store the QMTest
5168# test database configuration and that will be used for temporary
5169# scratch space during QMTest's execution.
62363d99 5170QMTEST_DIR=qmtestsuite
f362c762
MM
5171
5172# Create the QMTest database configuration.
5173${QMTEST_DIR} stamp-qmtest:
d7068b3d
MM
5174 ${QMTEST} -D ${QMTEST_DIR} create-tdb \
5175 -c gcc_database.GCCDatabase \
7134e605 5176 -a srcdir=`cd ${srcdir}/testsuite && ${PWD_COMMAND}` && \
d7068b3d 5177 $(STAMP) stamp-qmtest
f362c762
MM
5178
5179# Create the QMTest context file.
5180${QMTEST_DIR}/context: stamp-qmtest
d7068b3d
MM
5181 rm -f $@
5182 echo "CompilerTable.languages=c cplusplus" >> $@
5183 echo "CompilerTable.c_kind=GCC" >> $@
5184 echo "CompilerTable.c_path=${objdir}/xgcc" >> $@
5185 echo "CompilerTable.c_options=-B${objdir}/" >> $@
5186 echo "CompilerTable.cplusplus_kind=GCC" >> $@
5187 echo "CompilerTable.cplusplus_path=${objdir}/g++" >> $@
5188 echo "CompilerTable.cplusplus_options=-B${objdir}/" >> $@
caa55b1e 5189 echo "DejaGNUTest.target=${target_noncanonical}" >> $@
f362c762
MM
5190
5191# Run the G++ testsuite using QMTest.
d7068b3d 5192qmtest-g++: ${QMTEST_DIR}/context
f362c762 5193 cd ${QMTEST_DIR} && ${QMTEST} run ${QMTESTRUNFLAGS} -C context \
d7068b3d 5194 -o g++.qmr ${QMTEST_GPP_TESTS}
f362c762
MM
5195
5196# Use the QMTest GUI.
5197qmtest-gui: ${QMTEST_DIR}/context
5198 cd ${QMTEST_DIR} && ${QMTEST} gui -C context
5199
f362c762
MM
5200.PHONY: qmtest-g++
5201
efdc7e19
RH
5202# Run Paranoia on real.c.
5203
40013784 5204paranoia.o: $(srcdir)/../contrib/paranoia.cc $(CONFIG_H) $(SYSTEM_H) $(TREE_H)
3a6ebcdc 5205 g++ -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $< $(OUTPUT_OPTION)
efdc7e19
RH
5206
5207paranoia: paranoia.o real.o $(LIBIBERTY)
5208 g++ -o $@ paranoia.o real.o $(LIBIBERTY)
5209
79d8453e
RS
5210# These exist for maintenance purposes.
5211
5212# Update the tags table.
65ebbf81 5213TAGS: lang.tags
7d60db05
JM
5214 (cd $(srcdir); \
5215 incs= ; \
5216 list='$(SUBDIRS)'; for dir in $$list; do \
5217 if test -f $$dir/TAGS; then \
5218 incs="$$incs --include $$dir/TAGS.sub"; \
5219 fi; \
5220 done; \
8d681dbf 5221 etags -o TAGS.sub c-family/*.h c-family/*.c *.h *.c; \
7d60db05 5222 etags --include TAGS.sub $$incs)
79d8453e 5223
39e73137 5224# -----------------------------------------------------
5b7874aa
ZW
5225# Rules for generating translated message descriptions.
5226# Disabled by autoconf if the tools are not available.
39e73137 5227# -----------------------------------------------------
5b7874aa
ZW
5228
5229XGETTEXT = @XGETTEXT@
5230GMSGFMT = @GMSGFMT@
5231MSGMERGE = msgmerge
5c3c3683 5232CATALOGS = $(patsubst %,po/%,@CATALOGS@)
5b7874aa 5233
0f81faf6 5234.PHONY: build- install- build-po install-po update-po
5b7874aa
ZW
5235
5236# Dummy rules to deal with dependencies produced by use of
5237# "build-@POSUB@" and "install-@POSUB@" above, when NLS is disabled.
5238build-: ; @true
5239install-: ; @true
5240
5241build-po: $(CATALOGS)
5242
5243# This notation should be acceptable to all Make implementations used
5244# by people who are interested in updating .po files.
5245update-po: $(CATALOGS:.gmo=.pox)
5246
9f6682b7
ZW
5247# N.B. We do not attempt to copy these into $(srcdir). The snapshot
5248# script does that.
5b7874aa 5249.po.gmo:
fc0cd180 5250 $(mkinstalldirs) po
bc524dd0 5251 $(GMSGFMT) --statistics -o $@ $<
5b7874aa 5252
9f6682b7
ZW
5253# The new .po has to be gone over by hand, so we deposit it into
5254# build/po with a different extension.
a1286ef5 5255# If build/po/gcc.pot exists, use it (it was just created),
359cd11e 5256# else use the one in srcdir.
5b7874aa 5257.po.pox:
fc0cd180 5258 $(mkinstalldirs) po
a1286ef5
ZW
5259 $(MSGMERGE) $< `if test -f po/gcc.pot; \
5260 then echo po/gcc.pot; \
5261 else echo $(srcdir)/po/gcc.pot; fi` -o $@
5b7874aa 5262
9f6682b7
ZW
5263# This rule has to look for .gmo modules in both srcdir and
5264# the cwd, and has to check that we actually have a catalog
5265# for each language, in case they weren't built or included
5266# with the distribution.
5b7874aa 5267install-po:
947c6b00 5268 $(mkinstalldirs) $(DESTDIR)$(datadir)
318b7749 5269 cats="$(CATALOGS)"; for cat in $$cats; do \
9f6682b7
ZW
5270 lang=`basename $$cat | sed 's/\.gmo$$//'`; \
5271 if [ -f $$cat ]; then :; \
5272 elif [ -f $(srcdir)/$$cat ]; then cat=$(srcdir)/$$cat; \
5273 else continue; \
5274 fi; \
5b7874aa 5275 dir=$(localedir)/$$lang/LC_MESSAGES; \
947c6b00
NN
5276 echo $(mkinstalldirs) $(DESTDIR)$$dir; \
5277 $(mkinstalldirs) $(DESTDIR)$$dir || exit 1; \
a1286ef5
ZW
5278 echo $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/gcc.mo; \
5279 $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/gcc.mo; \
5b7874aa
ZW
5280 done
5281
5282# Rule for regenerating the message template (gcc.pot).
5283# Instead of forcing everyone to edit POTFILES.in, which proved impractical,
5284# this rule has no dependencies and always regenerates gcc.pot. This is
5285# relatively harmless since the .po files do not directly depend on it.
5286# Note that exgettext has an awk script embedded in it which requires a
5287# fairly modern (POSIX-compliant) awk.
359cd11e 5288# The .pot file is left in the build directory.
a1286ef5 5289gcc.pot: po/gcc.pot
fb72a0a3 5290po/gcc.pot: force
fc0cd180 5291 $(mkinstalldirs) po
02ba6b22 5292 $(MAKE) srcextra
5b7874aa 5293 AWK=$(AWK) $(SHELL) $(srcdir)/po/exgettext \
a1286ef5 5294 $(XGETTEXT) gcc $(srcdir)
This page took 5.094575 seconds and 5 git commands to generate.