xref: /netbsd-src/external/gpl3/gcc.old/dist/gcc/Makefile.in (revision d11b170b9000ada93db553723522a63d5deac310)
1# Makefile for GNU Compiler Collection
2# Run 'configure' to generate Makefile from Makefile.in
3
4# Copyright (C) 1987, 1988, 1990, 1991, 1992, 1993, 1994, 1995, 1996,
5# 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
6# 2008, 2009, 2010 Free Software Foundation, Inc.
7
8#This file is part of GCC.
9
10#GCC is free software; you can redistribute it and/or modify
11#it under the terms of the GNU General Public License as published by
12#the Free Software Foundation; either version 3, or (at your option)
13#any later version.
14
15#GCC is distributed in the hope that it will be useful,
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
21#along with GCC; see the file COPYING3.  If not see
22#<http://www.gnu.org/licenses/>.
23
24# The targets for external use include:
25# all, doc, install, install-cross, install-cross-rest,
26# uninstall, TAGS, mostlyclean, clean, distclean, maintainer-clean.
27
28# This is the default target.
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 =
42
43# Suppress smart makes who think they know how to automake yacc and flex file
44.y.c:
45.l.c:
46
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
59build=@build@
60host=@host@
61target=@target@
62target_noncanonical:=@target_noncanonical@
63
64# Sed command to transform gcc to installed name.
65program_transform_name := @program_transform_name@
66
67# -----------------------------
68# Directories used during build
69# -----------------------------
70
71# Directory where sources are, from where we are.
72srcdir = @srcdir@
73gcc_docdir = @srcdir@/doc
74
75# Directory where sources are, absolute.
76abs_srcdir = @abs_srcdir@
77abs_docdir = @abs_srcdir@/doc
78
79# Top build directory for this package, relative to here.
80top_builddir = .
81
82# The absolute path to the current directory.
83objdir := $(shell pwd)
84
85host_subdir=@host_subdir@
86build_subdir=@build_subdir@
87target_subdir=@target_subdir@
88build_libsubdir=@build_libsubdir@
89
90# Top build directory for the "Cygnus tree", relative to $(top_builddir).
91ifeq ($(host_subdir),.)
92toplevel_builddir := ..
93else
94toplevel_builddir := ../..
95endif
96
97build_objdir := $(toplevel_builddir)/$(build_subdir)
98build_libobjdir := $(toplevel_builddir)/$(build_libsubdir)
99target_objdir := $(toplevel_builddir)/$(target_subdir)
100
101# --------
102# Defined vpaths
103# --------
104
105# Directory where sources are, from where we are.
106VPATH = @srcdir@
107
108# We define a vpath for the sources of the .texi files here because they
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
113vpath %.texi $(gcc_docdir)
114vpath %.texi $(gcc_docdir)/include
115
116# --------
117# UNSORTED
118# --------
119
120# Variables that exist for you to override.
121# See below for how to change them for certain systems.
122
123# List of language subdirectories.
124SUBDIRS =@subdirs@ build
125
126# Selection of languages to be made.
127CONFIG_LANGUAGES = @all_selected_languages@
128LANGUAGES = c gcov$(exeext) gcov-dump$(exeext) $(CONFIG_LANGUAGES)
129
130# Default values for variables overridden in Makefile fragments.
131# CFLAGS is for the user to override to, e.g., do a cross build with -O2.
132# TCFLAGS is used for compilations with the GCC just built.
133# T_CFLAGS is used for all compilations and is overridden by t-* files.
134T_CFLAGS =
135TCFLAGS =
136CFLAGS = @CFLAGS@
137CXXFLAGS = @CXXFLAGS@
138LDFLAGS = @LDFLAGS@
139
140# Flags to determine code coverage. When coverage is disabled, this will
141# contain the optimization flags, as you normally want code coverage
142# without optimization.
143COVERAGE_FLAGS = @coverage_flags@
144coverageexts = .{gcda,gcno}
145
146# The warning flags are separate from CFLAGS because people tend to
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.
151# LOOSE_WARN are the warning flags to use when compiling something
152# which is only compiled with gcc, such as libgcc.
153# C_LOOSE_WARN is similar, but with C-only warnings.
154# STRICT_WARN are the additional warning flags to
155# apply to the back end and some front ends, which may be compiled
156# with other compilers.
157# C_STRICT_WARN is similar, with C-only warnings.
158LOOSE_WARN = @loose_warn@
159C_LOOSE_WARN = @c_loose_warn@
160STRICT_WARN = @strict_warn@
161C_STRICT_WARN = @c_strict_warn@
162
163# This is set by --enable-checking.  The idea is to catch forgotten
164# "extern" tags in header files.
165NOCOMMON_FLAG = @nocommon_flag@
166
167# This is set by --disable-maintainer-mode (default) to "#"
168MAINT := @MAINT@
169
170# These are set by --enable-checking=valgrind.
171RUN_GEN = @valgrind_command@
172VALGRIND_DRIVER_DEFINES = @valgrind_path_defines@
173
174# This is how we control whether or not the additional warnings are applied.
175.-warn = $(STRICT_WARN)
176build-warn = $(STRICT_WARN)
177GCC_WARN_CFLAGS = $(LOOSE_WARN) $(C_LOOSE_WARN) $($(@D)-warn) $(if $(filter-out $(STRICT_WARN),$($(@D)-warn)),,$(C_STRICT_WARN)) $(NOCOMMON_FLAG) $($@-warn)
178GCC_WARN_CXXFLAGS = $(LOOSE_WARN) $($(@D)-warn) $(NOCOMMON_FLAG) $($@-warn)
179
180# These files are to have specific diagnostics suppressed, or are not to
181# be subject to -Werror:
182# flex output may yield harmless "no previous prototype" warnings
183build/gengtype-lex.o-warn = -Wno-error
184# mips-tfile.c contains -Wcast-qual warnings.
185mips-tfile.o-warn = -Wno-error
186
187# All warnings have to be shut off in stage1 if the compiler used then
188# isn't gcc; configure determines that.  WARN_CFLAGS will be either
189# $(GCC_WARN_CFLAGS), or nothing.  Similarly, WARN_CXXFLAGS will be
190# either $(GCC_WARN_CXXFLAGS), or nothing.
191WARN_CFLAGS = @warn_cflags@
192WARN_CXXFLAGS = @warn_cxxflags@
193
194CPPFLAGS = @CPPFLAGS@
195
196AWK = @AWK@
197CC = @CC@
198CXX = @CXX@
199BISON = @BISON@
200BISONFLAGS =
201FLEX = @FLEX@
202FLEXFLAGS =
203AR = @AR@
204AR_FLAGS = rc
205NM = @NM@
206RANLIB = @RANLIB@
207RANLIB_FLAGS = @ranlib_flags@
208
209# Libraries to use on the host.
210HOST_LIBS = @HOST_LIBS@
211
212# The name of the compiler to use.
213ENABLE_BUILD_WITH_CXX = @ENABLE_BUILD_WITH_CXX@
214ifneq ($(ENABLE_BUILD_WITH_CXX),yes)
215COMPILER = $(CC)
216COMPILER_FLAGS = $(CFLAGS)
217LINKER = $(CC)
218LINKER_FLAGS = $(CFLAGS)
219else
220COMPILER = $(CXX)
221COMPILER_FLAGS = $(CXXFLAGS)
222# If HOST_LIBS is set, then the user is controlling the libraries to
223# link against.  In that case, link with $(CC) so that the -lstdc++
224# library is not introduced.  If HOST_LIBS is not set, link with
225# $(CXX) to pick up -lstdc++.
226ifeq ($(HOST_LIBS),)
227LINKER = $(CXX)
228LINKER_FLAGS = $(CXXFLAGS)
229else
230LINKER = $(CC)
231LINKER_FLAGS = $(CFLAGS)
232endif
233endif
234
235# -------------------------------------------
236# Programs which operate on the build machine
237# -------------------------------------------
238
239SHELL = @SHELL@
240# pwd command to use.  Allow user to override default by setting PWDCMD in
241# the environment to account for automounters.  The make variable must not
242# be called PWDCMD, otherwise the value set here is passed to make
243# subprocesses and overrides the setting from the user's environment.
244# Don't use PWD since it is a common shell environment variable and we
245# don't want to corrupt it.
246PWD_COMMAND = $${PWDCMD-pwd}
247# on sysV, define this as cp.
248INSTALL = @INSTALL@
249# Some systems may be missing symbolic links, regular links, or both.
250# Allow configure to check this and use "ln -s", "ln", or "cp" as appropriate.
251LN=@LN@
252LN_S=@LN_S@
253# These permit overriding just for certain files.
254INSTALL_PROGRAM = @INSTALL_PROGRAM@
255INSTALL_DATA = @INSTALL_DATA@
256INSTALL_SCRIPT = @INSTALL@
257MAKEINFO = @MAKEINFO@
258MAKEINFOFLAGS = --no-split
259TEXI2DVI = texi2dvi
260TEXI2PDF = texi2pdf
261TEXI2HTML = $(MAKEINFO) --html
262TEXI2POD = perl $(srcdir)/../contrib/texi2pod.pl
263POD2MAN = pod2man --center="GNU" --release="gcc-$(version)"
264# Some versions of `touch' (such as the version on Solaris 2.8)
265# do not correctly set the timestamp due to buggy versions of `utime'
266# in the kernel.  So, we use `echo' instead.
267STAMP = echo timestamp >
268# If necessary (e.g., when using the MSYS shell on Microsoft Windows)
269# translate the shell's notion of absolute pathnames to the native
270# spelling.
271build_file_translate = @build_file_translate@
272
273# Make sure the $(MAKE) variable is defined.
274@SET_MAKE@
275
276# Locate mkinstalldirs.
277mkinstalldirs=$(SHELL) $(srcdir)/../mkinstalldirs
278
279# write_entries_to_file - writes each entry in a list
280# to the specified file.  Entries are written in chunks of
281# $(write_entries_to_file_split) to accomodate systems with
282# severe command-line-length limitations.
283# Parameters:
284# $(1): variable containing entries to iterate over
285# $(2): output file
286write_entries_to_file_split = 50
287write_entries_to_file = $(shell rm -f $(2) || :) $(shell touch $(2)) \
288	$(foreach range, \
289	  $(shell i=1; while test $$i -le $(words $(1)); do \
290	     echo $$i; i=`expr $$i + $(write_entries_to_file_split)`; done), \
291	  $(shell echo "$(wordlist $(range), \
292			  $(shell expr $(range) + $(write_entries_to_file_split) - 1), $(1))" \
293	     | tr ' ' '\012' >> $(2)))
294
295# --------
296# UNSORTED
297# --------
298
299# Some compilers can't handle cc -c blah.c -o foo/blah.o.
300# In stage2 and beyond, we force this to "-o $@" since we know we're using gcc.
301OUTPUT_OPTION = @OUTPUT_OPTION@
302
303# This is where we get zlib from.  zlibdir is -L../zlib and zlibinc is
304# -I../zlib, unless we were configured with --with-system-zlib, in which
305# case both are empty.
306ZLIB = @zlibdir@ -lz
307ZLIBINC = @zlibinc@
308
309# How to find GMP
310GMPLIBS = @GMPLIBS@
311GMPINC = @GMPINC@
312
313# How to find PPL
314PPLLIBS = @PPLLIBS@
315PPLINC = @PPLINC@
316
317# How to find CLOOG
318CLOOGLIBS = @CLOOGLIBS@
319CLOOGINC = @CLOOGINC@
320
321# How to find libelf
322LIBELFLIBS = @LIBELFLIBS@
323LIBELFINC = @LIBELFINC@
324
325# Set to 'yes' if the LTO front end is enabled.
326enable_lto = @enable_lto@
327
328# Set according to LTO object file format.
329LTO_BINARY_READER = @LTO_BINARY_READER@
330LTO_USE_LIBELF = @LTO_USE_LIBELF@
331
332# Compiler needed for plugin support
333PLUGINCC = @CC@
334
335# Flags needed for plugin support
336PLUGINCFLAGS = @CFLAGS@
337
338# Libs and linker options needed for plugin support
339PLUGINLIBS = @pluginlibs@
340
341enable_plugin = @enable_plugin@
342
343CPPLIB = ../libcpp/libcpp.a
344CPPINC = -I$(srcdir)/../libcpp/include
345
346# Where to find decNumber
347enable_decimal_float = @enable_decimal_float@
348DECNUM = $(srcdir)/../libdecnumber
349DECNUMFMT = $(srcdir)/../libdecnumber/$(enable_decimal_float)
350DECNUMINC = -I$(DECNUM) -I$(DECNUMFMT) -I../libdecnumber
351LIBDECNUMBER = ../libdecnumber/libdecnumber.a
352
353# Target to use when installing include directory.  Either
354# install-headers-tar, install-headers-cpio or install-headers-cp.
355INSTALL_HEADERS_DIR = @build_install_headers_dir@
356
357# Header files that are made available under the same name
358# to programs compiled with GCC.
359USER_H = $(srcdir)/ginclude/float.h \
360	 $(srcdir)/ginclude/iso646.h \
361	 $(srcdir)/ginclude/stdarg.h \
362	 $(srcdir)/ginclude/stdbool.h \
363	 $(srcdir)/ginclude/stddef.h \
364	 $(srcdir)/ginclude/varargs.h \
365	 $(srcdir)/ginclude/stdfix.h \
366	 $(EXTRA_HEADERS)
367
368UNWIND_H = $(srcdir)/unwind-generic.h
369
370# The GCC to use for compiling crt*.o.
371# Usually the one we just built.
372# Don't use this as a dependency--use $(GCC_PASSES).
373GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) ./xgcc -B./ -B$(build_tooldir)/bin/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include -L$(objdir)/../ld
374
375# This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
376# It specifies -B./.
377# It also specifies -isystem ./include to find, e.g., stddef.h.
378GCC_CFLAGS=$(CFLAGS_FOR_TARGET) $(INTERNAL_CFLAGS) $(T_CFLAGS) $(LOOSE_WARN) $(C_LOOSE_WARN) -Wold-style-definition $($@-warn) -isystem ./include $(TCFLAGS)
379
380# ---------------------------------------------------
381# Programs which produce files for the target machine
382# ---------------------------------------------------
383
384AR_FOR_TARGET := $(shell \
385  if [ -f $(objdir)/../binutils/ar ] ; then \
386    echo $(objdir)/../binutils/ar ; \
387  else \
388    if [ "$(host)" = "$(target)" ] ; then \
389      echo $(AR); \
390    else \
391       t='$(program_transform_name)'; echo ar | sed -e $$t ; \
392    fi; \
393  fi)
394AR_FLAGS_FOR_TARGET =
395AR_CREATE_FOR_TARGET = $(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) rc
396AR_EXTRACT_FOR_TARGET = $(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) x
397LIPO_FOR_TARGET = lipo
398ORIGINAL_AS_FOR_TARGET = @ORIGINAL_AS_FOR_TARGET@
399RANLIB_FOR_TARGET := $(shell \
400  if [ -f $(objdir)/../binutils/ranlib ] ; then \
401    echo $(objdir)/../binutils/ranlib ; \
402  else \
403    if [ "$(host)" = "$(target)" ] ; then \
404      echo $(RANLIB); \
405    else \
406       t='$(program_transform_name)'; echo ranlib | sed -e $$t ; \
407    fi; \
408  fi)
409ORIGINAL_LD_FOR_TARGET = @ORIGINAL_LD_FOR_TARGET@
410ORIGINAL_NM_FOR_TARGET = @ORIGINAL_NM_FOR_TARGET@
411NM_FOR_TARGET = ./nm
412STRIP_FOR_TARGET := $(shell \
413  if [ -f $(objdir)/../binutils/strip ] ; then \
414    echo $(objdir)/../binutils/strip ; \
415  else \
416    if [ "$(host)" = "$(target)" ] ; then \
417      echo strip; \
418    else \
419       t='$(program_transform_name)'; echo strip | sed -e $$t ; \
420    fi; \
421  fi)
422
423# --------
424# UNSORTED
425# --------
426
427# Where to find some libiberty headers.
428HASHTAB_H   = $(srcdir)/../include/hashtab.h
429OBSTACK_H   = $(srcdir)/../include/obstack.h
430SPLAY_TREE_H= $(srcdir)/../include/splay-tree.h
431FIBHEAP_H   = $(srcdir)/../include/fibheap.h
432PARTITION_H = $(srcdir)/../include/partition.h
433MD5_H	    = $(srcdir)/../include/md5.h
434DWARF2_H    = $(srcdir)/../include/dwarf2.h
435
436# Linker plugin API headers
437LINKER_PLUGIN_API_H = $(srcdir)/../include/plugin-api.h
438LTO_SYMTAB_H = $(srcdir)/../include/lto-symtab.h
439
440# Default native SYSTEM_HEADER_DIR, to be overridden by targets.
441NATIVE_SYSTEM_HEADER_DIR = /usr/include
442# Default cross SYSTEM_HEADER_DIR, to be overridden by targets.
443CROSS_SYSTEM_HEADER_DIR = @CROSS_SYSTEM_HEADER_DIR@
444
445# autoconf sets SYSTEM_HEADER_DIR to one of the above.
446# Purge it of unneccessary internal relative paths
447# to directories that might not exist yet.
448# The sed idiom for this is to repeat the search-and-replace until it doesn't match, using :a ... ta.
449# Use single quotes here to avoid nested double- and backquotes, this
450# macro is also used in a double-quoted context.
451SYSTEM_HEADER_DIR = `echo @SYSTEM_HEADER_DIR@ | sed -e :a -e 's,[^/]*/\.\.\/,,' -e ta`
452
453# Control whether to run fixincludes.
454STMP_FIXINC = @STMP_FIXINC@
455
456# Test to see whether <limits.h> exists in the system header files.
457LIMITS_H_TEST = [ -f $(SYSTEM_HEADER_DIR)/limits.h ]
458
459# Directory for prefix to system directories, for
460# each of $(system_prefix)/usr/include, $(system_prefix)/usr/lib, etc.
461TARGET_SYSTEM_ROOT = @TARGET_SYSTEM_ROOT@
462
463xmake_file=@xmake_file@
464tmake_file=@tmake_file@
465TM_ENDIAN_CONFIG=@TM_ENDIAN_CONFIG@
466TM_MULTILIB_CONFIG=@TM_MULTILIB_CONFIG@
467TM_MULTILIB_EXCEPTIONS_CONFIG=@TM_MULTILIB_EXCEPTIONS_CONFIG@
468out_file=$(srcdir)/config/@out_file@
469out_object_file=@out_object_file@
470md_file=$(srcdir)/config/@md_file@
471tm_file_list=@tm_file_list@
472tm_include_list=@tm_include_list@
473tm_defines=@tm_defines@
474tm_p_file_list=@tm_p_file_list@
475tm_p_include_list=@tm_p_include_list@
476build_xm_file_list=@build_xm_file_list@
477build_xm_include_list=@build_xm_include_list@
478build_xm_defines=@build_xm_defines@
479host_xm_file_list=@host_xm_file_list@
480host_xm_include_list=@host_xm_include_list@
481host_xm_defines=@host_xm_defines@
482xm_file_list=@xm_file_list@
483xm_include_list=@xm_include_list@
484xm_defines=@xm_defines@
485lang_checks=check-gcc
486lang_checks_parallelized=check-gcc
487# This lists a couple of test files that take most time during check-gcc.
488# When doing parallelized check-gcc, these can run in parallel with the
489# remaining tests.  Each word in this variable stands for work for one
490# make goal and one extra make goal is added to handle all the *.exp
491# files not handled explicitly already.  If multiple *.exp files
492# should be run in the same runtest invocation (usually if they aren't
493# very long running, but still should be split of from the check-parallel-$lang
494# remaining tests runtest invocation), they should be concatenated with commas.
495# Note that [a-zA-Z] wildcards need to have []s prefixed with \ (needed
496# by tcl) and as the *.exp arguments are mached both as is and with
497# */ prefixed to it in runtest_file_p, it is usually desirable to include
498# a subdirectory name.
499check_gcc_parallelize=execute.exp=execute/2* \
500		      execute.exp=execute/\[013-9a-zA-Z\]* \
501		      compile.exp dg.exp \
502		      dg-torture.exp,builtins.exp \
503		      struct-layout-1.exp,unsorted.exp,stackalign.exp,i386.exp
504lang_opt_files=@lang_opt_files@ $(srcdir)/c.opt $(srcdir)/common.opt
505lang_specs_files=@lang_specs_files@
506lang_tree_files=@lang_tree_files@
507target_cpu_default=@target_cpu_default@
508GCC_THREAD_FILE=@thread_file@
509OBJC_BOEHM_GC=@objc_boehm_gc@
510GTHREAD_FLAGS=@gthread_flags@
511extra_modes_file=@extra_modes_file@
512extra_opt_files=@extra_opt_files@
513host_hook_obj=@out_host_hook_obj@
514
515# ------------------------
516# Installation directories
517# ------------------------
518
519# Common prefix for installation directories.
520# NOTE: This directory must exist when you start installation.
521prefix = @prefix@
522# Directory in which to put localized header files. On the systems with
523# gcc as the native cc, `local_prefix' may not be `prefix' which is
524# `/usr'.
525# NOTE: local_prefix *should not* default from prefix.
526local_prefix = @local_prefix@
527# Directory in which to put host dependent programs and libraries
528exec_prefix = @exec_prefix@
529# Directory in which to put the executable for the command `gcc'
530bindir = @bindir@
531# Directory in which to put the directories used by the compiler.
532libdir = @libdir@
533# Directory in which GCC puts its executables.
534libexecdir = @libexecdir@
535
536# --------
537# UNSORTED
538# --------
539
540# Directory in which the compiler finds libraries etc.
541libsubdir = $(libdir)/gcc/$(target_noncanonical)/$(version)
542# Directory in which the compiler finds executables
543libexecsubdir = $(libexecdir)/gcc/$(target_noncanonical)/$(version)
544# Directory in which plugin headers are installed
545plugin_includedir = $(libsubdir)/plugin/include
546# Used to produce a relative $(gcc_tooldir) in gcc.o
547unlibsubdir = ../../..
548# $(prefix), expressed as a path relative to $(libsubdir).
549#
550# An explanation of the sed strings:
551#  -e 's|^$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
552#  -e 's|/$$||'          match a trailing forward slash and eliminates it
553#  -e 's|^[^/]|/|'       forces the string to start with a forward slash (*)
554#  -e 's|/[^/]*|../|g'   replaces each occurrence of /<directory> with ../
555#
556# (*) Note this pattern overwrites the first character of the string
557# with a forward slash if one is not already present.  This is not a
558# problem because the exact names of the sub-directories concerned is
559# unimportant, just the number of them matters.
560#
561# The practical upshot of these patterns is like this:
562#
563#  prefix     exec_prefix        result
564#  ------     -----------        ------
565#   /foo        /foo/bar          ../
566#   /foo/       /foo/bar          ../
567#   /foo        /foo/bar/         ../
568#   /foo/       /foo/bar/         ../
569#   /foo        /foo/bar/ugg      ../../
570libsubdir_to_prefix := \
571  $(unlibsubdir)/$(shell echo "$(libdir)" | \
572    sed -e 's|^$(prefix)||' -e 's|/$$||' -e 's|^[^/]|/|' \
573        -e 's|/[^/]*|../|g')
574# $(exec_prefix), expressed as a path relative to $(prefix).
575prefix_to_exec_prefix := \
576  $(shell echo "$(exec_prefix)" | \
577    sed -e 's|^$(prefix)||' -e 's|^/||' -e '/./s|$$|/|')
578# Directory in which to find other cross-compilation tools and headers.
579dollar = @dollar@
580# Used in install-cross.
581gcc_tooldir = @gcc_tooldir@
582# Used to install the shared libgcc.
583slibdir = @slibdir@
584# Since gcc_tooldir does not exist at build-time, use -B$(build_tooldir)/bin/
585build_tooldir = $(exec_prefix)/$(target_noncanonical)
586# Directory in which the compiler finds target-independent g++ includes.
587gcc_gxx_include_dir = @gcc_gxx_include_dir@
588# Directory to search for site-specific includes.
589local_includedir = $(local_prefix)/include
590includedir = $(prefix)/include
591# where the info files go
592infodir = @infodir@
593# Where cpp should go besides $prefix/bin if necessary
594cpp_install_dir = @cpp_install_dir@
595# where the locale files go
596datadir = @datadir@
597localedir = $(datadir)/locale
598# Extension (if any) to put in installed man-page filename.
599man1ext = .1
600man7ext = .7
601objext = .o
602exeext = @host_exeext@
603build_exeext = @build_exeext@
604
605# NetBSD mknative-gcc addition
606ENABLE_SHARED = @enable_shared@
607
608# Directory in which to put man pages.
609mandir = @mandir@
610man1dir = $(mandir)/man1
611man7dir = $(mandir)/man7
612# Dir for temp files.
613tmpdir = /tmp
614
615datarootdir = @datarootdir@
616docdir = @docdir@
617# Directory in which to build HTML
618build_htmldir = $(objdir)/HTML/gcc-$(version)
619# Directory in which to put HTML
620htmldir = @htmldir@
621
622# Whether we were configured with NLS.
623USE_NLS = @USE_NLS@
624
625# Internationalization library.
626LIBINTL = @LIBINTL@
627LIBINTL_DEP = @LIBINTL_DEP@
628
629# Character encoding conversion library.
630LIBICONV = @LIBICONV@
631LIBICONV_DEP = @LIBICONV_DEP@
632
633# The GC method to be used on this system.
634GGC=@GGC@.o
635
636# If a supplementary library is being used for the GC.
637GGC_LIB=
638
639# "true" if the target C library headers are unavailable; "false"
640# otherwise.
641inhibit_libc = @inhibit_libc@
642ifeq ($(inhibit_libc),true)
643INHIBIT_LIBC_CFLAGS = -Dinhibit_libc
644endif
645
646# Options to use when compiling libgcc2.a.
647#
648LIBGCC2_DEBUG_CFLAGS = -g
649LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) $(TARGET_LIBGCC2_CFLAGS) \
650		 $(LIBGCC2_DEBUG_CFLAGS) $(GTHREAD_FLAGS) \
651		 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED \
652		 $(INHIBIT_LIBC_CFLAGS)
653
654# Additional options to use when compiling libgcc2.a.
655# Some targets override this to -isystem include
656LIBGCC2_INCLUDES =
657
658# Additional target-dependent options for compiling libgcc2.a.
659TARGET_LIBGCC2_CFLAGS =
660
661# Options to use when compiling crtbegin/end.
662CRTSTUFF_CFLAGS = -O2 $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -g0 \
663  -finhibit-size-directive -fno-inline -fno-exceptions \
664  -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize \
665  $(INHIBIT_LIBC_CFLAGS)
666
667# Additional sources to handle exceptions; overridden by targets as needed.
668LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \
669   $(srcdir)/unwind-sjlj.c $(srcdir)/gthr-gnat.c $(srcdir)/unwind-c.c
670LIB2ADDEHSTATIC = $(LIB2ADDEH)
671LIB2ADDEHSHARED = $(LIB2ADDEH)
672LIB2ADDEHDEP = $(UNWIND_H) unwind-pe.h unwind.inc unwind-dw2-fde.h unwind-dw2.h
673
674# Don't build libunwind by default.
675LIBUNWIND =
676LIBUNWINDDEP =
677SHLIBUNWIND_LINK =
678SHLIBUNWIND_INSTALL =
679
680# nm flags to list global symbols in libgcc object files.
681SHLIB_NM_FLAGS = -pg
682
683# List of extra executables that should be compiled for this target machine
684# that are used for compiling from source code to object code.
685# The rules for compiling them should be in the t-* file for the machine.
686EXTRA_PASSES =@extra_passes@
687
688# Like EXTRA_PASSES, but these are used when linking.
689EXTRA_PROGRAMS = @extra_programs@
690
691# List of extra object files that should be compiled for this target machine.
692# The rules for compiling them should be in the t-* file for the machine.
693EXTRA_PARTS = @extra_parts@
694
695# List of extra object files that should be compiled and linked with
696# compiler proper (cc1, cc1obj, cc1plus).
697EXTRA_OBJS = @extra_objs@
698
699# List of extra object files that should be compiled and linked with
700# the gcc driver.
701EXTRA_GCC_OBJS =@extra_gcc_objs@
702
703# List of additional header files to install.
704EXTRA_HEADERS =@extra_headers_list@
705
706# How to handle <stdint.h>.
707USE_GCC_STDINT = @use_gcc_stdint@
708
709# The configure script will set this to collect2$(exeext), except on a
710# (non-Unix) host which can not build collect2, for which it will be
711# set to empty.
712COLLECT2 = @collect2@
713
714# List of extra C and assembler files to add to static and shared libgcc2.
715# Assembler files should have names ending in `.asm'.
716LIB2FUNCS_EXTRA =
717
718# List of extra C and assembler files to add to static libgcc2.
719# Assembler files should have names ending in `.asm'.
720LIB2FUNCS_STATIC_EXTRA =
721
722# List of functions not to build from libgcc2.c.
723LIB2FUNCS_EXCLUDE =
724
725# Target sfp-machine.h file.
726SFP_MACHINE =
727
728# Program to convert libraries.
729LIBCONVERT =
730
731# Control whether header files are installed.
732INSTALL_HEADERS=install-headers install-mkheaders
733INSTALL_HEADERS=install-headers
734
735# Control whether Info documentation is built and installed.
736BUILD_INFO = @BUILD_INFO@
737
738# Control whether manpages generated by texi2pod.pl can be rebuilt.
739GENERATED_MANPAGES = @GENERATED_MANPAGES@
740
741# Additional directories of header files to run fixincludes on.
742# These should be directories searched automatically by default
743# just as /usr/include is.
744# *Do not* use this for directories that happen to contain
745# header files, but are not searched automatically by default.
746# On most systems, this is empty.
747OTHER_FIXINCLUDES_DIRS=
748
749# A list of all the language-specific executables.
750COMPILERS = cc1$(exeext) @all_compilers@
751
752# List of things which should already be built whenever we try to use xgcc
753# to compile anything (without linking).
754GCC_PASSES=xgcc$(exeext) cc1$(exeext) specs $(EXTRA_PASSES)
755
756# Directory to link to, when using the target `maketest'.
757DIR = ../gcc
758
759# Native compiler for the build machine and its switches.
760CC_FOR_BUILD = @CC_FOR_BUILD@
761BUILD_CFLAGS= @BUILD_CFLAGS@ -DGENERATOR_FILE
762
763# Native compiler that we use.  This may be C++ some day.
764COMPILER_FOR_BUILD = $(CC_FOR_BUILD)
765BUILD_COMPILERFLAGS = $(BUILD_CFLAGS)
766
767# Native linker that we use.
768LINKER_FOR_BUILD = $(CC_FOR_BUILD)
769BUILD_LINKERFLAGS = $(BUILD_CFLAGS)
770
771# Native linker and preprocessor flags.  For x-fragment overrides.
772BUILD_LDFLAGS=@BUILD_LDFLAGS@
773BUILD_CPPFLAGS=$(BALL_CPPFLAGS)
774
775# Actual name to use when installing a native compiler.
776GCC_INSTALL_NAME := $(shell echo gcc|sed '$(program_transform_name)')
777GCC_TARGET_INSTALL_NAME := $(target_noncanonical)-$(shell echo gcc|sed '$(program_transform_name)')
778CPP_INSTALL_NAME := $(shell echo cpp|sed '$(program_transform_name)')
779GCOV_INSTALL_NAME := $(shell echo gcov|sed '$(program_transform_name)')
780GCCBUG_INSTALL_NAME := $(shell echo gccbug|sed '$(program_transform_name)')
781
782# Setup the testing framework, if you have one
783EXPECT = `if [ -f $${rootme}/../expect/expect ] ; then \
784            echo $${rootme}/../expect/expect ; \
785          else echo expect ; fi`
786
787RUNTEST = `if [ -f $${srcdir}/../dejagnu/runtest ] ; then \
788	       echo $${srcdir}/../dejagnu/runtest ; \
789	    else echo runtest; fi`
790RUNTESTFLAGS =
791
792# Extra flags to use when compiling crt{begin,end}.o.
793CRTSTUFF_T_CFLAGS =
794
795# Extra flags to use when compiling [m]crt0.o.
796CRT0STUFF_T_CFLAGS =
797
798# "t" or nothing, for building multilibbed versions of, say, crtbegin.o.
799T =
800
801# Should T contain a `=', libgcc/Makefile will make T_TARGET, setting
802# $(T_TARGET) to the name of the actual target filename.
803T_TARGET =
804T_TARGET : $(T_TARGET)
805
806# This should name the specs file that we're going to install.  Target
807# Makefiles may override it and name another file to be generated from
808# the built-in specs and installed as the default spec, as long as
809# they also introduce a rule to generate a file name specs, to be used
810# at build time.
811SPECS = specs
812
813# End of variables for you to override.
814
815# GTM_H lists the config files that the generator files depend on,
816# while TM_H lists the ones ordinary gcc files depend on, which
817# includes several files generated by those generators.
818BCONFIG_H = bconfig.h $(build_xm_file_list)
819CONFIG_H  = config.h  $(host_xm_file_list)
820TCONFIG_H = tconfig.h $(xm_file_list)
821TM_P_H    = tm_p.h    $(tm_p_file_list)
822GTM_H     = tm.h      $(tm_file_list)
823TM_H      = $(GTM_H) insn-constants.h insn-flags.h options.h
824
825# Variables for version information.
826BASEVER     := $(srcdir)/BASE-VER  # 4.x.y
827DEVPHASE    := $(srcdir)/DEV-PHASE # experimental, prerelease, ""
828DATESTAMP   := $(srcdir)/DATESTAMP # YYYYMMDD or empty
829REVISION    := $(srcdir)/REVISION  # [BRANCH revision XXXXXX]
830
831BASEVER_c   := $(shell cat $(BASEVER))
832DEVPHASE_c  := $(shell cat $(DEVPHASE))
833DATESTAMP_c := $(shell cat $(DATESTAMP))
834
835ifeq (,$(wildcard $(REVISION)))
836REVISION_c  :=
837else
838REVISION_c  := $(shell cat $(REVISION))
839endif
840
841version     := $(BASEVER_c)
842
843# For use in version.c - double quoted strings, with appropriate
844# surrounding punctuation and spaces, and with the datestamp and
845# development phase collapsed to the empty string in release mode
846# (i.e. if DEVPHASE_c is empty).  The space immediately after the
847# comma in the $(if ...) constructs is significant - do not remove it.
848BASEVER_s   := "\"$(BASEVER_c)\""
849DEVPHASE_s  := "\"$(if $(DEVPHASE_c), ($(DEVPHASE_c)))\""
850DATESTAMP_s := "\"$(if $(DEVPHASE_c), $(DATESTAMP_c))\""
851PKGVERSION_s:= "\"@PKGVERSION@\""
852BUGURL_s    := "\"@REPORT_BUGS_TO@\""
853
854PKGVERSION  := @PKGVERSION@
855BUGURL_TEXI := @REPORT_BUGS_TEXI@
856
857ifdef REVISION_c
858REVISION_s  := "\"$(if $(DEVPHASE_c), $(REVISION_c))\""
859else
860REVISION_s  := "\"\""
861endif
862
863# Shorthand variables for dependency lists.
864EXCEPT_H = except.h sbitmap.h vecprim.h
865TOPLEV_H = toplev.h $(INPUT_H) bversion.h
866TARGET_H = $(TM_H) target.h insn-modes.h
867MACHMODE_H = machmode.h mode-classes.def insn-modes.h
868HOOKS_H = hooks.h $(MACHMODE_H)
869HOSTHOOKS_DEF_H = hosthooks-def.h $(HOOKS_H)
870LANGHOOKS_DEF_H = langhooks-def.h $(HOOKS_H)
871TARGET_DEF_H = target-def.h $(HOOKS_H) targhooks.h
872RTL_BASE_H = rtl.h rtl.def $(MACHMODE_H) reg-notes.def insn-notes.def \
873  $(INPUT_H) $(REAL_H) statistics.h vec.h $(FIXED_VALUE_H) alias.h
874FIXED_VALUE_H = fixed-value.h $(MACHMODE_H) double-int.h
875RTL_H = $(RTL_BASE_H) genrtl.h
876PARAMS_H = params.h params.def
877BUILTINS_DEF = builtins.def sync-builtins.def omp-builtins.def
878TREE_H = tree.h all-tree.def tree.def c-common.def $(lang_tree_files) \
879          $(MACHMODE_H) tree-check.h $(BUILTINS_DEF) \
880          $(INPUT_H) statistics.h vec.h treestruct.def $(HASHTAB_H) \
881          double-int.h alias.h $(SYMTAB_H) options.h
882BASIC_BLOCK_H = basic-block.h $(BITMAP_H) sbitmap.h varray.h $(PARTITION_H) \
883          hard-reg-set.h $(PREDICT_H) vec.h $(FUNCTION_H) \
884          cfghooks.h $(OBSTACK_H)
885GIMPLE_H = gimple.h gimple.def gsstruct.def pointer-set.h vec.h \
886	$(GGC_H) $(BASIC_BLOCK_H) $(TM_H) $(TARGET_H) tree-ssa-operands.h
887GCOV_IO_H = gcov-io.h gcov-iov.h auto-host.h
888COVERAGE_H = coverage.h $(GCOV_IO_H)
889DEMANGLE_H = $(srcdir)/../include/demangle.h
890RECOG_H = recog.h
891ALIAS_H = alias.h coretypes.h
892EMIT_RTL_H = emit-rtl.h
893FLAGS_H = flags.h coretypes.h options.h
894FUNCTION_H = function.h $(TREE_H) $(HASHTAB_H) vecprim.h
895EXPR_H = expr.h insn-config.h $(FUNCTION_H) $(RTL_H) $(FLAGS_H) $(TREE_H) $(MACHMODE_H) $(EMIT_RTL_H)
896OPTABS_H = optabs.h insn-codes.h
897REGS_H = regs.h varray.h $(MACHMODE_H) $(OBSTACK_H) $(BASIC_BLOCK_H) $(FUNCTION_H)
898RESOURCE_H = resource.h hard-reg-set.h
899SCHED_INT_H = sched-int.h $(INSN_ATTR_H) $(BASIC_BLOCK_H) $(RTL_H) $(DF_H) vecprim.h
900SEL_SCHED_IR_H = sel-sched-ir.h $(INSN_ATTR_H) $(BASIC_BLOCK_H) $(RTL_H) \
901	$(GGC_H) $(BITMAP_H) vecprim.h $(SCHED_INT_H) $(CFGLOOP_H)
902SEL_SCHED_DUMP_H = sel-sched-dump.h $(SEL_SCHED_IR_H)
903INTEGRATE_H = integrate.h $(VARRAY_H)
904CFGLAYOUT_H = cfglayout.h $(BASIC_BLOCK_H)
905CFGLOOP_H = cfgloop.h $(BASIC_BLOCK_H) $(RTL_H) vecprim.h double-int.h
906IPA_UTILS_H = ipa-utils.h $(TREE_H) $(CGRAPH_H)
907IPA_REFERENCE_H = ipa-reference.h $(BITMAP_H) $(TREE_H)
908IPA_TYPE_ESCAPE_H = ipa-type-escape.h $(TREE_H)
909CGRAPH_H = cgraph.h $(TREE_H) $(BASIC_BLOCK_H) cif-code.def
910DF_H = df.h $(BITMAP_H) $(BASIC_BLOCK_H) alloc-pool.h $(TIMEVAR_H)
911RESOURCE_H = resource.h hard-reg-set.h $(DF_H)
912DDG_H = ddg.h sbitmap.h $(DF_H)
913GCC_H = gcc.h version.h
914GGC_H = ggc.h gtype-desc.h statistics.h
915TIMEVAR_H = timevar.h timevar.def
916INSN_ATTR_H = insn-attr.h $(INSN_ADDR_H) $(srcdir)/varray.h
917INSN_ADDR_H = $(srcdir)/insn-addr.h vecprim.h
918C_COMMON_H = c-common.h $(SPLAY_TREE_H) $(CPPLIB_H) $(GGC_H)
919C_PRAGMA_H = c-pragma.h $(CPPLIB_H)
920C_TREE_H = c-tree.h $(C_COMMON_H) $(TOPLEV_H) $(DIAGNOSTIC_H)
921SYSTEM_H = system.h hwint.h $(srcdir)/../include/libiberty.h \
922	$(srcdir)/../include/safe-ctype.h $(srcdir)/../include/filenames.h
923PREDICT_H = predict.h predict.def
924CPPLIB_H = $(srcdir)/../libcpp/include/line-map.h \
925	$(srcdir)/../libcpp/include/cpplib.h
926INPUT_H = $(srcdir)/../libcpp/include/line-map.h input.h
927DECNUM_H = $(DECNUM)/decContext.h $(DECNUM)/decDPD.h $(DECNUM)/decNumber.h \
928	$(DECNUMFMT)/decimal32.h $(DECNUMFMT)/decimal64.h \
929	$(DECNUMFMT)/decimal128.h $(DECNUMFMT)/decimal128Local.h
930MKDEPS_H = $(srcdir)/../libcpp/include/mkdeps.h
931SYMTAB_H = $(srcdir)/../libcpp/include/symtab.h $(OBSTACK_H)
932CPP_ID_DATA_H = $(CPPLIB_H) $(srcdir)/../libcpp/include/cpp-id-data.h
933CPP_INTERNAL_H = $(srcdir)/../libcpp/internal.h $(CPP_ID_DATA_H)
934TREE_PASS_H = tree-pass.h $(TIMEVAR_H)
935TREE_DUMP_H = tree-dump.h $(SPLAY_TREE_H) $(TREE_PASS_H)
936TREE_FLOW_H = tree-flow.h tree-flow-inline.h tree-ssa-operands.h \
937		$(BITMAP_H) $(BASIC_BLOCK_H) hard-reg-set.h $(GIMPLE_H) \
938		$(HASHTAB_H) $(CGRAPH_H) $(IPA_REFERENCE_H) \
939		tree-ssa-alias.h
940TREE_SSA_LIVE_H = tree-ssa-live.h $(PARTITION_H) vecprim.h
941TREE_VECTORIZER_H = tree-vectorizer.h $(TREE_DATA_REF_H)
942SSAEXPAND_H = ssaexpand.h $(TREE_SSA_LIVE_H)
943PRETTY_PRINT_H = pretty-print.h $(INPUT_H) $(OBSTACK_H)
944DIAGNOSTIC_H = diagnostic.h diagnostic.def $(PRETTY_PRINT_H) options.h
945C_PRETTY_PRINT_H = c-pretty-print.h $(PRETTY_PRINT_H) $(C_COMMON_H) $(TREE_H)
946SCEV_H = tree-scalar-evolution.h $(GGC_H) tree-chrec.h $(PARAMS_H)
947LAMBDA_H = lambda.h $(TREE_H) vec.h $(GGC_H)
948TREE_DATA_REF_H = tree-data-ref.h $(LAMBDA_H) omega.h graphds.h $(SCEV_H)
949VARRAY_H = varray.h $(MACHMODE_H) $(SYSTEM_H) coretypes.h $(TM_H)
950TREE_INLINE_H = tree-inline.h $(GIMPLE_H)
951REAL_H = real.h $(MACHMODE_H)
952IRA_INT_H = ira.h ira-int.h $(CFGLOOP_H) alloc-pool.h
953DBGCNT_H = dbgcnt.h dbgcnt.def
954EBITMAP_H = ebitmap.h sbitmap.h
955LTO_STREAMER_H = lto-streamer.h $(LINKER_PLUGIN_API_H) $(TARGET_H) \
956		$(CGRAPH_H) vec.h vecprim.h $(TREE_H) $(GIMPLE_H)
957TREE_VECTORIZER_H = tree-vectorizer.h $(TREE_DATA_REF_H)
958IPA_PROP_H = ipa-prop.h $(TREE_H) vec.h $(CGRAPH_H)
959GSTAB_H = gstab.h stab.def
960BITMAP_H = bitmap.h $(HASHTAB_H) statistics.h
961GCC_PLUGIN_H = gcc-plugin.h highlev-plugin-common.h $(CONFIG_H) $(SYSTEM_H) \
962		$(HASHTAB_H)
963PLUGIN_H = plugin.h $(GCC_PLUGIN_H)
964PLUGIN_VERSION_H = plugin-version.h configargs.h
965
966#
967# Now figure out from those variables how to compile and link.
968
969# IN_GCC distinguishes between code compiled into GCC itself and other
970# programs built during a bootstrap.
971# autoconf inserts -DCROSS_DIRECTORY_STRUCTURE if we are building a
972# cross compiler which does not use the native headers and libraries.
973INTERNAL_CFLAGS = -DIN_GCC @CROSS@
974
975# This is the variable actually used when we compile. If you change this,
976# you probably want to update BUILD_CFLAGS in configure.ac
977ALL_CFLAGS = $(T_CFLAGS) \
978  $(CFLAGS) $(INTERNAL_CFLAGS) $(COVERAGE_FLAGS) $(WARN_CFLAGS) @DEFS@
979
980# The C++ version.
981ALL_CXXFLAGS = $(T_CFLAGS) $(CXXFLAGS) $(INTERNAL_CFLAGS) \
982  $(COVERAGE_FLAGS) $(WARN_CXXFLAGS) @DEFS@
983
984# Likewise.  Put INCLUDES at the beginning: this way, if some autoconf macro
985# puts -I options in CPPFLAGS, our include files in the srcdir will always
986# win against random include files in /usr/include.
987ALL_CPPFLAGS = $(INCLUDES) $(CPPFLAGS)
988BALL_CPPFLAGS = $(BINCLUDES) $(CPPFLAGS)
989
990# This is the variable to use when using $(COMPILER).
991ifneq ($(ENABLE_BUILD_WITH_CXX),yes)
992ALL_COMPILERFLAGS = $(ALL_CFLAGS)
993else
994ALL_COMPILERFLAGS = $(ALL_CXXFLAGS)
995endif
996
997# This is the variable to use when using $(LINKER).
998ifneq ($(ENABLE_BUILD_WITH_CXX),yes)
999ALL_LINKERFLAGS = $(ALL_CFLAGS)
1000else
1001ALL_LINKERFLAGS = $(ALL_CXXFLAGS)
1002endif
1003
1004# Build and host support libraries.
1005LIBIBERTY = ../libiberty/libiberty.a
1006BUILD_LIBIBERTY = $(build_libobjdir)/libiberty/libiberty.a
1007
1008# Dependencies on the intl and portability libraries.
1009LIBDEPS= $(CPPLIB) $(LIBIBERTY) $(LIBINTL_DEP) $(LIBICONV_DEP) $(LIBDECNUMBER)
1010
1011# Likewise, for use in the tools that must run on this machine
1012# even if we are cross-building GCC.
1013BUILD_LIBDEPS= $(BUILD_LIBIBERTY)
1014
1015# How to link with both our special library facilities
1016# and the system's installed libraries.
1017LIBS = @LIBS@ $(CPPLIB) $(LIBINTL) $(LIBICONV) $(LIBIBERTY) $(LIBDECNUMBER) \
1018	$(HOST_LIBS)
1019BACKENDLIBS = $(CLOOGLIBS) $(PPLLIBS) $(GMPLIBS) $(PLUGINLIBS) $(HOST_LIBS) \
1020	$(ZLIB) $(LIBELFLIBS)
1021# Any system libraries needed just for GNAT.
1022SYSLIBS = @GNAT_LIBEXC@
1023
1024# Used from ada/Make-lang.in
1025GNATBIND = @GNATBIND@
1026GNATMAKE = @GNATMAKE@
1027
1028# Libs needed (at present) just for jcf-dump.
1029LDEXP_LIB = @LDEXP_LIB@
1030
1031# Likewise, for use in the tools that must run on this machine
1032# even if we are cross-building GCC.
1033BUILD_LIBS = $(BUILD_LIBIBERTY)
1034
1035BUILD_RTL = build/rtl.o build/read-rtl.o build/ggc-none.o build/vec.o \
1036	    build/min-insn-modes.o build/gensupport.o build/print-rtl.o
1037BUILD_ERRORS = build/errors.o
1038
1039# Specify the directories to be searched for header files.
1040# Both . and srcdir are used, in that order,
1041# so that *config.h will be found in the compilation
1042# subdirectory rather than in the source directory.
1043# -I$(@D) and -I$(srcdir)/$(@D) cause the subdirectory of the file
1044# currently being compiled, in both source trees, to be examined as well.
1045# libintl.h will be found in ../intl if we are using the included libintl.
1046INCLUDES = -I. -I$(@D) -I$(srcdir) -I$(srcdir)/$(@D) \
1047	   -I$(srcdir)/../include @INCINTL@ \
1048	   $(CPPINC) $(GMPINC) $(DECNUMINC) \
1049	   $(PPLINC) $(CLOOGINC) $(LIBELFINC)
1050BINCLUDES = -I. -I$(@D) -I$(srcdir) -I$(srcdir)/$(@D) \
1051	   -I$(srcdir)/../include @INCINTL@ \
1052	   $(CPPINC) $(DECNUMINC) \
1053	   $(PPLINC) $(CLOOGINC) $(LIBELFINC)
1054
1055.c.o:
1056	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $< $(OUTPUT_OPTION)
1057
1058#
1059# Support for additional languages (other than C).
1060# C can be supported this way too (leave for later).
1061
1062LANG_MAKEFRAGS = @all_lang_makefrags@
1063LANG_MAKEFILES = @all_lang_makefiles@
1064
1065# Flags to pass to recursive makes.
1066# CC is set by configure.
1067# ??? The choices here will need some experimenting with.
1068
1069export AR_FOR_TARGET
1070export AR_CREATE_FOR_TARGET
1071export AR_FLAGS_FOR_TARGET
1072export AR_EXTRACT_FOR_TARGET
1073export AWK
1074export DESTDIR
1075export GCC_FOR_TARGET
1076export INCLUDES
1077export INSTALL_DATA
1078export LIB1ASMSRC
1079export LIBGCC2_CFLAGS
1080export LIPO_FOR_TARGET
1081export MACHMODE_H
1082export NM_FOR_TARGET
1083export STRIP_FOR_TARGET
1084export RANLIB_FOR_TARGET
1085export libsubdir
1086export slibdir
1087
1088FLAGS_TO_PASS = \
1089	"ADA_CFLAGS=$(ADA_CFLAGS)" \
1090	"BISON=$(BISON)" \
1091	"BISONFLAGS=$(BISONFLAGS)" \
1092	"CFLAGS=$(CFLAGS) $(WARN_CFLAGS)" \
1093	"LDFLAGS=$(LDFLAGS)" \
1094	"FLEX=$(FLEX)" \
1095	"FLEXFLAGS=$(FLEXFLAGS)" \
1096	"LN=$(LN)" \
1097	"LN_S=$(LN_S)" \
1098	"MAKEINFO=$(MAKEINFO)" \
1099	"MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
1100	"MAKEOVERRIDES=" \
1101	"SHELL=$(SHELL)" \
1102	"exeext=$(exeext)" \
1103	"build_exeext=$(build_exeext)" \
1104	"objext=$(objext)" \
1105	"exec_prefix=$(exec_prefix)" \
1106	"prefix=$(prefix)" \
1107	"local_prefix=$(local_prefix)" \
1108	"gxx_include_dir=$(gcc_gxx_include_dir)" \
1109	"build_tooldir=$(build_tooldir)" \
1110	"gcc_tooldir=$(gcc_tooldir)" \
1111	"bindir=$(bindir)" \
1112	"libexecsubdir=$(libsubdir)" \
1113	"datarootdir=$(datarootdir)" \
1114	"datadir=$(datadir)" \
1115	"localedir=$(localedir)"
1116#
1117# Lists of files for various purposes.
1118
1119# All option source files
1120ALL_OPT_FILES=$(lang_opt_files) $(extra_opt_files)
1121
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
1128# Target specific, Fortran specific object file
1129FORTRAN_TARGET_OBJS=@fortran_target_objs@
1130
1131# Object files for gcc driver.
1132GCC_OBJS = gcc.o opts-common.o gcc-options.o
1133
1134# Language-specific object files for C and Objective C.
1135C_AND_OBJC_OBJS = attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o \
1136  c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o \
1137  c-ppoutput.o c-cppbuiltin.o \
1138  c-objc-common.o c-dump.o c-pch.o c-parser.o $(C_TARGET_OBJS) \
1139  c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o
1140
1141# Language-specific object files for C.
1142C_OBJS = c-lang.o stub-objc.o $(C_AND_OBJC_OBJS)
1143
1144# Language-independent object files.
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.
1148OBJS-common = \
1149	insn-attrtab.o \
1150	insn-automata.o \
1151	insn-emit.o \
1152	insn-extract.o \
1153	insn-modes.o \
1154	insn-opinit.o \
1155	insn-output.o \
1156	insn-peep.o \
1157	insn-preds.o \
1158	insn-recog.o \
1159	$(GGC) \
1160	alias.o \
1161	alloc-pool.o \
1162	auto-inc-dec.o \
1163	bb-reorder.o \
1164	bitmap.o \
1165	bt-load.o \
1166	builtins.o \
1167	caller-save.o \
1168	calls.o \
1169	cfg.o \
1170	cfganal.o \
1171	cfgbuild.o \
1172	cfgcleanup.o \
1173	cfgexpand.o \
1174	cfghooks.o \
1175	cfglayout.o \
1176	cfgloop.o \
1177	cfgloopanal.o \
1178	cfgloopmanip.o \
1179	cfgrtl.o \
1180	combine.o \
1181	combine-stack-adj.o \
1182	convert.o \
1183	coverage.o \
1184	cse.o \
1185	cselib.o \
1186	dbxout.o \
1187	dbgcnt.o \
1188	dce.o \
1189	ddg.o \
1190	debug.o \
1191	df-byte-scan.o \
1192	df-core.o \
1193	df-problems.o \
1194	df-scan.o \
1195	dfp.o \
1196	diagnostic.o \
1197	dojump.o \
1198	dominance.o \
1199	domwalk.o \
1200	double-int.o \
1201	dse.o \
1202	dwarf2asm.o \
1203	dwarf2out.o \
1204	ebitmap.o \
1205	emit-rtl.o \
1206	et-forest.o \
1207	except.o \
1208	explow.o \
1209	expmed.o \
1210	expr.o \
1211	final.o \
1212	fixed-value.o \
1213	fold-const.o \
1214	function.o \
1215	fwprop.o \
1216	gcse.o \
1217	genrtl.o \
1218	ggc-common.o \
1219	gimple.o \
1220	gimple-iterator.o \
1221	gimple-low.o \
1222	gimple-pretty-print.o \
1223	gimplify.o \
1224	graph.o \
1225	graphds.o \
1226	graphite.o \
1227	graphite-blocking.o \
1228	graphite-clast-to-gimple.o \
1229	graphite-dependences.o \
1230	graphite-interchange.o \
1231	graphite-poly.o \
1232	graphite-ppl.o \
1233	graphite-scop-detection.o \
1234	graphite-sese-to-poly.o \
1235	gtype-desc.o \
1236	haifa-sched.o \
1237	hooks.o \
1238	ifcvt.o \
1239	init-regs.o \
1240	integrate.o \
1241	intl.o \
1242	ira.o \
1243	ira-build.o \
1244	ira-costs.o \
1245	ira-conflicts.o \
1246	ira-color.o \
1247	ira-emit.o \
1248	ira-lives.o \
1249	jump.o \
1250	lambda-code.o \
1251	lambda-mat.o \
1252	lambda-trans.o \
1253	langhooks.o \
1254	lcm.o \
1255	lists.o \
1256	loop-doloop.o \
1257	loop-init.o \
1258	loop-invariant.o \
1259	loop-iv.o \
1260	loop-unroll.o \
1261	loop-unswitch.o \
1262	lower-subreg.o \
1263	lto-cgraph.o \
1264	lto-streamer-in.o \
1265	lto-streamer-out.o \
1266	lto-section-in.o \
1267	lto-section-out.o \
1268	lto-symtab.o \
1269	lto-opts.o \
1270	lto-streamer.o \
1271	lto-wpa-fixup.o \
1272	lto-compress.o \
1273	mcf.o \
1274	mode-switching.o \
1275	modulo-sched.o \
1276	omega.o \
1277	omp-low.o \
1278	optabs.o \
1279	options.o \
1280	opts-common.o \
1281	opts.o \
1282	params.o \
1283	passes.o \
1284	plugin.o \
1285	pointer-set.o \
1286	postreload-gcse.o \
1287	postreload.o \
1288	predict.o \
1289	pretty-print.o \
1290	print-rtl.o \
1291	print-tree.o \
1292	profile.o \
1293	real.o \
1294	recog.o \
1295	reg-stack.o \
1296	regcprop.o \
1297	reginfo.o \
1298	regmove.o \
1299	regrename.o \
1300	regstat.o \
1301	reload.o \
1302	reload1.o \
1303	reorg.o \
1304	resource.o \
1305	rtl-error.o \
1306	rtl.o \
1307	rtlanal.o \
1308	rtlhooks.o \
1309	sbitmap.o \
1310	sched-deps.o \
1311	sched-ebb.o \
1312	sched-rgn.o \
1313	sched-vis.o \
1314	sdbout.o \
1315	sel-sched-ir.o \
1316	sel-sched-dump.o \
1317	sel-sched.o \
1318	sese.o \
1319	simplify-rtx.o \
1320	sparseset.o \
1321	sreal.o \
1322	stack-ptr-mod.o \
1323	statistics.o \
1324	stmt.o \
1325	stor-layout.o \
1326	store-motion.o \
1327	stringpool.o \
1328	targhooks.o \
1329	timevar.o \
1330	toplev.o \
1331	tracer.o \
1332	tree-affine.o \
1333	tree-call-cdce.o \
1334	tree-cfg.o \
1335	tree-cfgcleanup.o \
1336	tree-chrec.o \
1337	tree-complex.o \
1338	tree-data-ref.o \
1339	tree-dfa.o \
1340	tree-dump.o \
1341	tree-eh.o \
1342	tree-if-conv.o \
1343	tree-into-ssa.o \
1344	tree-iterator.o \
1345	tree-loop-distribution.o \
1346	tree-loop-linear.o \
1347	tree-nested.o \
1348	tree-nrv.o \
1349	tree-object-size.o \
1350	tree-optimize.o \
1351	tree-outof-ssa.o \
1352	tree-parloops.o \
1353	tree-phinodes.o \
1354	tree-predcom.o \
1355	tree-pretty-print.o \
1356	tree-profile.o \
1357	tree-scalar-evolution.o \
1358	tree-sra.o \
1359	tree-switch-conversion.o \
1360	tree-ssa-address.o \
1361	tree-ssa-alias.o \
1362	tree-ssa-ccp.o \
1363	tree-ssa-coalesce.o \
1364	tree-ssa-copy.o \
1365	tree-ssa-copyrename.o \
1366	tree-ssa-dce.o \
1367	tree-ssa-dom.o \
1368	tree-ssa-dse.o \
1369	tree-ssa-forwprop.o \
1370	tree-ssa-ifcombine.o \
1371	tree-ssa-live.o \
1372	tree-ssa-loop-ch.o \
1373	tree-ssa-loop-im.o \
1374	tree-ssa-loop-ivcanon.o \
1375	tree-ssa-loop-ivopts.o \
1376	tree-ssa-loop-manip.o \
1377	tree-ssa-loop-niter.o \
1378	tree-ssa-loop-prefetch.o \
1379	tree-ssa-loop-unswitch.o \
1380	tree-ssa-loop.o \
1381	tree-ssa-math-opts.o \
1382	tree-ssa-operands.o \
1383	tree-ssa-phiopt.o \
1384	tree-ssa-phiprop.o \
1385	tree-ssa-pre.o \
1386	tree-ssa-propagate.o \
1387	tree-ssa-reassoc.o \
1388	tree-ssa-sccvn.o \
1389	tree-ssa-sink.o \
1390	tree-ssa-structalias.o \
1391	tree-ssa-ter.o \
1392	tree-ssa-threadedge.o \
1393	tree-ssa-threadupdate.o \
1394	tree-ssa-uncprop.o \
1395	tree-ssa.o \
1396	tree-ssanames.o \
1397	tree-stdarg.o \
1398	tree-tailcall.o \
1399	tree-vect-generic.o \
1400	tree-vect-patterns.o \
1401        tree-vect-data-refs.o \
1402        tree-vect-stmts.o \
1403        tree-vect-loop.o \
1404        tree-vect-loop-manip.o \
1405        tree-vect-slp.o \
1406	tree-vectorizer.o \
1407	tree-vrp.o \
1408	tree.o \
1409	value-prof.o \
1410	var-tracking.o \
1411	varasm.o \
1412	varray.o \
1413	vec.o \
1414	version.o \
1415	vmsdbgout.o \
1416	web.o \
1417	xcoffout.o
1418
1419# Target object files.
1420OBJS-md = $(out_object_file)
1421
1422# Language independent object files which are not used by all languages.
1423OBJS-archive = \
1424	$(EXTRA_OBJS) \
1425	$(host_hook_obj) \
1426	cgraph.o \
1427	cgraphbuild.o \
1428	cgraphunit.o \
1429	cppdefault.o \
1430	incpath.o \
1431	ipa-cp.o \
1432	ipa-inline.o \
1433	ipa-prop.o \
1434	ipa-pure-const.o \
1435	ipa-reference.o \
1436	ipa-struct-reorg.o \
1437	ipa-type-escape.o \
1438	ipa-utils.o \
1439	ipa.o \
1440	matrix-reorg.o \
1441	prefix.o \
1442	tree-inline.o \
1443	tree-nomudflap.o \
1444	varpool.o
1445
1446OBJS = $(OBJS-common) $(OBJS-md) $(OBJS-archive)
1447
1448OBJS-onestep = libbackend.o $(OBJS-archive)
1449
1450# This lists all host object files, whether they are included in this
1451# compilation or not.
1452ALL_HOST_OBJS = $(GCC_OBJS) $(C_OBJS) $(OBJS) libbackend.o \
1453  @TREEBROWSER@ main.o gccspec.o version.o intl.o prefix.o cppspec.o \
1454  $(foreach v,$(CONFIG_LANGUAGES),$($(v)_OBJS)) \
1455  $(COLLECT2_OBJS) $(EXTRA_GCC_OBJS) \
1456  mips-tfile.o mips-tdump.o \
1457  $(GCOV_OBJS) $(GCOV_DUMP_OBJS)
1458
1459BACKEND = main.o @TREEBROWSER@ libbackend.a $(CPPLIB) $(LIBDECNUMBER)
1460
1461MOSTLYCLEANFILES = insn-flags.h insn-config.h insn-codes.h \
1462 insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c \
1463 insn-attr.h insn-attrtab.c insn-opinit.c insn-preds.c insn-constants.h \
1464 tm-preds.h tm-constrs.h \
1465 tree-check.h min-insn-modes.c insn-modes.c insn-modes.h \
1466 genrtl.c genrtl.h gt-*.h gtype-*.h gtype-desc.c gtyp-input.list \
1467 xgcc$(exeext) cpp$(exeext) cc1$(exeext) cc1*-dummy$(exeext) $(EXTRA_PASSES) \
1468 $(EXTRA_PARTS) $(EXTRA_PROGRAMS) gcc-cross$(exeext) \
1469 $(SPECS) collect2$(exeext) lto-wrapper$(exeext) \
1470 gcov-iov$(build_exeext) gcov$(exeext) gcov-dump$(exeext) \
1471 *.[0-9][0-9].* *.[si] *-checksum.c libbackend.a libgcc.mk
1472
1473# Defined in libgcc2.c, included only in the static library.
1474LIB2FUNCS_ST = _eprintf __gcc_bcmp
1475
1476# Defined in libgcov.c, included only in gcov library
1477LIBGCOV = _gcov _gcov_merge_add _gcov_merge_single _gcov_merge_delta \
1478    _gcov_fork _gcov_execl _gcov_execlp _gcov_execle \
1479    _gcov_execv _gcov_execvp _gcov_execve \
1480    _gcov_interval_profiler _gcov_pow2_profiler _gcov_one_value_profiler \
1481    _gcov_indirect_call_profiler _gcov_average_profiler _gcov_ior_profiler \
1482    _gcov_merge_ior
1483
1484FPBIT_FUNCS = _pack_sf _unpack_sf _addsub_sf _mul_sf _div_sf \
1485    _fpcmp_parts_sf _compare_sf _eq_sf _ne_sf _gt_sf _ge_sf \
1486    _lt_sf _le_sf _unord_sf _si_to_sf _sf_to_si _negate_sf _make_sf \
1487    _sf_to_df _sf_to_tf _thenan_sf _sf_to_usi _usi_to_sf
1488
1489DPBIT_FUNCS = _pack_df _unpack_df _addsub_df _mul_df _div_df \
1490    _fpcmp_parts_df _compare_df _eq_df _ne_df _gt_df _ge_df \
1491    _lt_df _le_df _unord_df _si_to_df _df_to_si _negate_df _make_df \
1492    _df_to_sf _df_to_tf _thenan_df _df_to_usi _usi_to_df
1493
1494TPBIT_FUNCS = _pack_tf _unpack_tf _addsub_tf _mul_tf _div_tf \
1495    _fpcmp_parts_tf _compare_tf _eq_tf _ne_tf _gt_tf _ge_tf \
1496    _lt_tf _le_tf _unord_tf _si_to_tf _tf_to_si _negate_tf _make_tf \
1497    _tf_to_df _tf_to_sf _thenan_tf _tf_to_usi _usi_to_tf
1498
1499D32PBIT_FUNCS = _addsub_sd _div_sd _mul_sd _plus_sd _minus_sd \
1500	_eq_sd _ne_sd _lt_sd _gt_sd _le_sd _ge_sd \
1501	_sd_to_si _sd_to_di _sd_to_usi _sd_to_udi \
1502	_si_to_sd _di_to_sd _usi_to_sd _udi_to_sd \
1503	_sd_to_sf _sd_to_df _sd_to_xf _sd_to_tf \
1504	_sf_to_sd _df_to_sd _xf_to_sd _tf_to_sd \
1505	_sd_to_dd _sd_to_td _unord_sd _conv_sd
1506
1507D64PBIT_FUNCS = _addsub_dd _div_dd _mul_dd _plus_dd _minus_dd \
1508	_eq_dd _ne_dd _lt_dd _gt_dd _le_dd _ge_dd \
1509	_dd_to_si _dd_to_di _dd_to_usi _dd_to_udi \
1510	_si_to_dd _di_to_dd _usi_to_dd _udi_to_dd \
1511	_dd_to_sf _dd_to_df _dd_to_xf _dd_to_tf \
1512	_sf_to_dd _df_to_dd _xf_to_dd _tf_to_dd \
1513	_dd_to_sd _dd_to_td _unord_dd _conv_dd
1514
1515D128PBIT_FUNCS = _addsub_td _div_td _mul_td _plus_td _minus_td \
1516	_eq_td _ne_td _lt_td _gt_td _le_td _ge_td \
1517	_td_to_si _td_to_di _td_to_usi _td_to_udi \
1518	_si_to_td _di_to_td _usi_to_td _udi_to_td \
1519	_td_to_sf _td_to_df _td_to_xf _td_to_tf \
1520	_sf_to_td _df_to_td _xf_to_td _tf_to_td \
1521	_td_to_sd _td_to_dd _unord_td _conv_td
1522
1523# These might cause a divide overflow trap and so are compiled with
1524# unwinder info.
1525LIB2_DIVMOD_FUNCS = _divdi3 _moddi3 _udivdi3 _umoddi3 _udiv_w_sdiv _udivmoddi4
1526
1527#
1528# Language makefile fragments.
1529
1530# The following targets define the interface between us and the languages.
1531#
1532# all.cross, start.encap, rest.encap,
1533# install-common, install-info, install-man,
1534# uninstall,
1535# mostlyclean, clean, distclean, maintainer-clean,
1536#
1537# Each language is linked in with a series of hooks.  The name of each
1538# hooked is "lang.${target_name}" (eg: lang.info).  Configure computes
1539# and adds these here.  We use double-colon rules for some of the hooks;
1540# double-colon rules should be preferred for any new hooks.
1541
1542# language hooks, generated by configure
1543@language_hooks@
1544
1545# per-language makefile fragments
1546ifneq ($(LANG_MAKEFRAGS),)
1547include $(LANG_MAKEFRAGS)
1548endif
1549
1550# target and host overrides must follow the per-language makefile fragments
1551# so they can override or augment language-specific variables
1552
1553# target overrides
1554ifneq ($(tmake_file),)
1555include $(tmake_file)
1556endif
1557
1558# host overrides
1559ifneq ($(xmake_file),)
1560include $(xmake_file)
1561endif
1562
1563# all-tree.def includes all the tree.def files.
1564all-tree.def: s-alltree; @true
1565s-alltree: Makefile
1566	rm -f tmp-all-tree.def
1567	echo '#include "tree.def"' > tmp-all-tree.def
1568	echo 'END_OF_BASE_TREE_CODES' >> tmp-all-tree.def
1569	echo '#include "c-common.def"' >> tmp-all-tree.def
1570	ltf="$(lang_tree_files)"; for f in $$ltf; do \
1571	  echo "#include \"$$f\""; \
1572	done | sed 's|$(srcdir)/||' >> tmp-all-tree.def
1573	$(SHELL) $(srcdir)/../move-if-change tmp-all-tree.def all-tree.def
1574	$(STAMP) s-alltree
1575
1576#
1577
1578# -----------------------------
1579# Rebuilding this configuration
1580# -----------------------------
1581
1582# On the use of stamps:
1583# Consider the example of tree-check.h. It is constructed with build/gencheck.
1584# A simple rule to build tree-check.h would be
1585# tree-check.h: build/gencheck$(build_exeext)
1586#	$(RUN_GEN) build/gencheck$(build_exeext) > tree-check.h
1587#
1588# but tree-check.h doesn't change every time gencheck changes. It would the
1589# nice if targets that depend on tree-check.h wouldn't be rebuild
1590# unnecessarily when tree-check.h is unchanged. To make this, tree-check.h
1591# must not be overwritten with a identical copy. One solution is to use a
1592# temporary file
1593# tree-check.h: build/gencheck$(build_exeext)
1594#	$(RUN_GEN) build/gencheck$(build_exeext) > tmp-check.h
1595#	$(SHELL) $(srcdir)/../move-if-change tmp-check.h tree-check.h
1596#
1597# This solution has a different problem. Since the time stamp of tree-check.h
1598# is unchanged, make will try to update tree-check.h every time it runs.
1599# To prevent this, one can add a stamp
1600# tree-check.h: s-check
1601# s-check : build/gencheck$(build_exeext)
1602#	$(RUN_GEN) build/gencheck$(build_exeext) > tmp-check.h
1603#	$(SHELL) $(srcdir)/../move-if-change tmp-check.h tree-check.h
1604#	$(STAMP) s-check
1605#
1606# The problem with this solution is that make thinks that tree-check.h is
1607# always unchanged. Make must be deceived into thinking that tree-check.h is
1608# rebuild by the "tree-check.h: s-check" rule. To do this, add a dummy command:
1609# tree-check.h: s-check; @true
1610# s-check : build/gencheck$(build_exeext)
1611#	$(RUN_GEN) build/gencheck$(build_exeext) > tmp-check.h
1612#	$(SHELL) $(srcdir)/../move-if-change tmp-check.h tree-check.h
1613#	$(STAMP) s-check
1614#
1615# This is what is done in this makefile. Note that mkconfig.sh has a
1616# move-if-change built-in
1617
1618Makefile: config.status $(srcdir)/Makefile.in $(LANG_MAKEFRAGS)
1619	LANGUAGES="$(CONFIG_LANGUAGES)" \
1620	CONFIG_HEADERS= \
1621	CONFIG_SHELL="$(SHELL)" \
1622	CONFIG_FILES=$@ $(SHELL) config.status
1623
1624config.h: cs-config.h ; @true
1625bconfig.h: cs-bconfig.h ; @true
1626tconfig.h: cs-tconfig.h ; @true
1627tm.h: cs-tm.h ; @true
1628tm_p.h: cs-tm_p.h ; @true
1629
1630cs-config.h: Makefile
1631	TARGET_CPU_DEFAULT="" \
1632	HEADERS="$(host_xm_include_list)" DEFINES="$(host_xm_defines)" \
1633	$(SHELL) $(srcdir)/mkconfig.sh config.h
1634
1635cs-bconfig.h: Makefile
1636	TARGET_CPU_DEFAULT="" \
1637	HEADERS="$(build_xm_include_list)" DEFINES="$(build_xm_defines)" \
1638	$(SHELL) $(srcdir)/mkconfig.sh bconfig.h
1639
1640cs-tconfig.h: Makefile
1641	TARGET_CPU_DEFAULT="" \
1642	HEADERS="$(xm_include_list)" DEFINES="USED_FOR_TARGET $(xm_defines)" \
1643	$(SHELL) $(srcdir)/mkconfig.sh tconfig.h
1644
1645cs-tm.h: Makefile
1646	TARGET_CPU_DEFAULT="$(target_cpu_default)" \
1647	HEADERS="$(tm_include_list)" DEFINES="$(tm_defines)" \
1648	$(SHELL) $(srcdir)/mkconfig.sh tm.h
1649
1650cs-tm_p.h: Makefile
1651	TARGET_CPU_DEFAULT="" \
1652	HEADERS="$(tm_p_include_list)" DEFINES="" \
1653	$(SHELL) $(srcdir)/mkconfig.sh tm_p.h
1654
1655# Don't automatically run autoconf, since configure.ac might be accidentally
1656# newer than configure.  Also, this writes into the source directory which
1657# might be on a read-only file system.  If configured for maintainer mode
1658# then do allow autoconf to be run.
1659
1660AUTOCONF = autoconf
1661ACLOCAL = aclocal
1662ACLOCAL_AMFLAGS = -I ../config -I ..
1663aclocal_deps = \
1664	$(srcdir)/../libtool.m4 \
1665	$(srcdir)/../ltoptions.m4 \
1666	$(srcdir)/../ltsugar.m4 \
1667	$(srcdir)/../ltversion.m4 \
1668	$(srcdir)/../lt~obsolete.m4 \
1669	$(srcdir)/../config/acx.m4 \
1670	$(srcdir)/../config/codeset.m4 \
1671	$(srcdir)/../config/extensions.m4 \
1672	$(srcdir)/../config/gettext-sister.m4 \
1673	$(srcdir)/../config/iconv.m4 \
1674	$(srcdir)/../config/lcmessage.m4 \
1675	$(srcdir)/../config/lib-ld.m4 \
1676	$(srcdir)/../config/lib-link.m4 \
1677	$(srcdir)/../config/lib-prefix.m4 \
1678	$(srcdir)/../config/override.m4 \
1679	$(srcdir)/../config/progtest.m4 \
1680        $(srcdir)/../config/stdint.m4 \
1681	$(srcdir)/../config/unwind_ipinfo.m4 \
1682	$(srcdir)/../config/warnings.m4 \
1683	$(srcdir)/acinclude.m4
1684
1685$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/aclocal.m4
1686	(cd $(srcdir) && $(AUTOCONF))
1687
1688$(srcdir)/aclocal.m4 : @MAINT@ $(aclocal_deps)
1689	(cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS))
1690
1691gccbug:	$(srcdir)/gccbug.in
1692	CONFIG_FILES=gccbug CONFIG_HEADERS= ./config.status
1693
1694# cstamp-h.in controls rebuilding of config.in.
1695# It is named cstamp-h.in and not stamp-h.in so the mostlyclean rule doesn't
1696# delete it.  A stamp file is needed as autoheader won't update the file if
1697# nothing has changed.
1698# It remains in the source directory and is part of the distribution.
1699# This follows what is done in shellutils, fileutils, etc.
1700# "echo timestamp" is used instead of touch to be consistent with other
1701# packages that use autoconf (??? perhaps also to avoid problems with patch?).
1702# ??? Newer versions have a maintainer mode that may be useful here.
1703
1704# Don't run autoheader automatically either.
1705# Only run it if maintainer mode is enabled.
1706@MAINT@ AUTOHEADER = autoheader
1707@MAINT@ $(srcdir)/config.in: $(srcdir)/cstamp-h.in
1708@MAINT@ $(srcdir)/cstamp-h.in: $(srcdir)/configure.ac
1709@MAINT@	(cd $(srcdir) && $(AUTOHEADER))
1710@MAINT@	@rm -f $(srcdir)/cstamp-h.in
1711@MAINT@	echo timestamp > $(srcdir)/cstamp-h.in
1712auto-host.h: cstamp-h ; @true
1713cstamp-h: config.in config.status
1714	CONFIG_HEADERS=auto-host.h:config.in \
1715	CONFIG_FILES= \
1716	LANGUAGES="$(CONFIG_LANGUAGES)" $(SHELL) config.status
1717
1718# Really, really stupid make features, such as SUN's KEEP_STATE, may force
1719# a target to build even if it is up-to-date.  So we must verify that
1720# config.status does not exist before failing.
1721config.status: $(srcdir)/configure $(srcdir)/config.gcc
1722	@if [ ! -f config.status ] ; then \
1723	  echo You must configure gcc.  Look at http://gcc.gnu.org/install/ for details.; \
1724	  false; \
1725	else \
1726	  LANGUAGES="$(CONFIG_LANGUAGES)" $(SHELL) config.status --recheck; \
1727	fi
1728
1729# --------
1730# UNSORTED
1731# --------
1732
1733# Provide quickstrap as a target that people can type into the gcc directory,
1734# and that fails if you're not into it.
1735quickstrap: all
1736	cd $(toplevel_builddir) && $(MAKE) all-target-libgcc
1737
1738all.internal: start.encap rest.encap doc
1739# This is what to compile if making a cross-compiler.
1740all.cross: native gcc-cross$(exeext) cpp$(exeext) specs \
1741	libgcc-support lang.all.cross doc @GENINSRC@ srcextra
1742# This is what must be made before installing GCC and converting libraries.
1743start.encap: native xgcc$(exeext) cpp$(exeext) specs \
1744	libgcc-support lang.start.encap @GENINSRC@ srcextra
1745# These can't be made until after GCC can run.
1746rest.encap: lang.rest.encap
1747# This is what is made with the host's compiler
1748# whether making a cross compiler or not.
1749native: config.status auto-host.h build-@POSUB@ $(LANGUAGES) \
1750	$(EXTRA_PASSES) $(EXTRA_PROGRAMS) $(COLLECT2) lto-wrapper$(exeext)
1751
1752# Define the names for selecting languages in LANGUAGES.
1753c: cc1$(exeext)
1754
1755# Tell GNU make these are phony targets.
1756.PHONY: c
1757
1758# On the target machine, finish building a cross compiler.
1759# This does the things that can't be done on the host machine.
1760rest.cross: specs
1761
1762# Recompile all the language-independent object files.
1763# This is used only if the user explicitly asks for it.
1764compilations: $(BACKEND)
1765
1766# This archive is strictly for the host.
1767libbackend.a: $(OBJS@onestep@)
1768	-rm -rf libbackend.a
1769	$(AR) $(AR_FLAGS) libbackend.a $(OBJS@onestep@)
1770	-$(RANLIB) $(RANLIB_FLAGS) libbackend.a
1771
1772# We call this executable `xgcc' rather than `gcc'
1773# to avoid confusion if the current directory is in the path
1774# and CC is `gcc'.  It is renamed to `gcc' when it is installed.
1775xgcc$(exeext): $(GCC_OBJS) gccspec.o version.o intl.o prefix.o \
1776   version.o $(LIBDEPS) $(EXTRA_GCC_OBJS)
1777	$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ $(GCC_OBJS) \
1778	  gccspec.o intl.o prefix.o version.o $(EXTRA_GCC_OBJS) $(LIBS)
1779
1780# cpp is to cpp0 as gcc is to cc1.
1781# The only difference from xgcc is that it's linked with cppspec.o
1782# instead of gccspec.o.
1783cpp$(exeext): $(GCC_OBJS) cppspec.o version.o intl.o prefix.o \
1784   version.o $(LIBDEPS) $(EXTRA_GCC_OBJS)
1785	$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ $(GCC_OBJS) \
1786	  cppspec.o intl.o prefix.o version.o $(EXTRA_GCC_OBJS) $(LIBS)
1787
1788# Dump a specs file to make -B./ read these specs over installed ones.
1789$(SPECS): xgcc$(exeext)
1790	$(GCC_FOR_TARGET) -dumpspecs > tmp-specs
1791	mv tmp-specs $(SPECS)
1792
1793# We do want to create an executable named `xgcc', so we can use it to
1794# compile libgcc2.a.
1795# Also create gcc-cross, so that install-common will install properly.
1796gcc-cross$(exeext): xgcc$(exeext)
1797	cp xgcc$(exeext) gcc-cross$(exeext)
1798
1799dummy-checksum.o : dummy-checksum.c $(CONFIG_H) $(SYSTEM_H)
1800
1801cc1-dummy$(exeext): $(C_OBJS) dummy-checksum.o $(BACKEND) $(LIBDEPS)
1802	$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ $(C_OBJS) \
1803	  dummy-checksum.o $(BACKEND) $(LIBS) $(BACKENDLIBS)
1804
1805cc1-checksum.c : cc1-dummy$(exeext) build/genchecksum$(build_exeext)
1806	build/genchecksum$(build_exeext) cc1-dummy$(exeext) > $@
1807
1808cc1-checksum.o : cc1-checksum.c $(CONFIG_H) $(SYSTEM_H)
1809
1810cc1$(exeext): $(C_OBJS) cc1-checksum.o $(BACKEND) $(LIBDEPS)
1811	$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ $(C_OBJS) \
1812	  cc1-checksum.o $(BACKEND) $(LIBS) $(BACKENDLIBS)
1813
1814#
1815# Build libgcc.a.
1816
1817LIB2ADD = $(LIB2FUNCS_EXTRA)
1818LIB2ADD_ST = $(LIB2FUNCS_STATIC_EXTRA)
1819
1820# All source files for libgcc are either in the source directory (in
1821# which case they will start with $(srcdir)), or generated into the build
1822# directory (in which case they will be relative paths).
1823srcdirify = $(patsubst $(srcdir)%,$$(gcc_srcdir)%,$(filter $(srcdir)%,$(1))) \
1824            $(patsubst %,$$(gcc_objdir)/%,$(filter-out $(srcdir)%,$(1)))
1825
1826# The distinction between these two variables is no longer relevant,
1827# so we combine them.  Sort removes duplicates.
1828GCC_EXTRA_PARTS := $(sort $(EXTRA_MULTILIB_PARTS) $(EXTRA_PARTS))
1829
1830libgcc-support: libgcc.mvars stmp-int-hdrs $(TCONFIG_H) \
1831	$(MACHMODE_H) $(FPBIT) $(DPBIT) $(TPBIT) $(LIB2ADD) \
1832	$(LIB2ADD_ST) $(LIB2ADDEH) $(srcdir)/emutls.c gcov-iov.h $(SFP_MACHINE)
1833
1834libgcc.mvars: config.status Makefile
1835	: > tmp-libgcc.mvars
1836	echo LIB1ASMFUNCS = '$(LIB1ASMFUNCS)' >> tmp-libgcc.mvars
1837	echo LIB1ASMSRC = '$(LIB1ASMSRC)' >> tmp-libgcc.mvars
1838	echo LIB2FUNCS_ST = '$(LIB2FUNCS_ST)' >> tmp-libgcc.mvars
1839	echo LIB2FUNCS_EXCLUDE = '$(LIB2FUNCS_EXCLUDE)' >> tmp-libgcc.mvars
1840	echo LIBGCOV = '$(LIBGCOV)' >> tmp-libgcc.mvars
1841	echo LIB2ADD = '$(call srcdirify,$(LIB2ADD))' >> tmp-libgcc.mvars
1842	echo LIB2ADD_ST = '$(call srcdirify,$(LIB2ADD_ST))' >> tmp-libgcc.mvars
1843	echo LIB2ADDEH = '$(call srcdirify,$(LIB2ADDEH) $(srcdir)/emutls.c)' >> tmp-libgcc.mvars
1844	echo LIB2ADDEHSTATIC = '$(call srcdirify,$(LIB2ADDEHSTATIC) $(srcdir)/emutls.c)' >> tmp-libgcc.mvars
1845	echo LIB2ADDEHSHARED = '$(call srcdirify,$(LIB2ADDEHSHARED) $(srcdir)/emutls.c)' >> tmp-libgcc.mvars
1846	echo LIB2_SIDITI_CONV_FUNCS = '$(LIB2_SIDITI_CONV_FUNCS)' >> tmp-libgcc.mvars
1847	echo LIBUNWIND = '$(call srcdirify,$(LIBUNWIND))' >> tmp-libgcc.mvars
1848	echo SHLIBUNWIND_LINK = '$(SHLIBUNWIND_LINK)' >> tmp-libgcc.mvars
1849	echo SHLIBUNWIND_INSTALL = '$(SHLIBUNWIND_INSTALL)' >> tmp-libgcc.mvars
1850	echo FPBIT = '$(FPBIT)' >> tmp-libgcc.mvars
1851	echo FPBIT_FUNCS = '$(FPBIT_FUNCS)' >> tmp-libgcc.mvars
1852	echo LIB2_DIVMOD_FUNCS = '$(LIB2_DIVMOD_FUNCS)' >> tmp-libgcc.mvars
1853	echo DPBIT = '$(DPBIT)' >> tmp-libgcc.mvars
1854	echo DPBIT_FUNCS = '$(DPBIT_FUNCS)' >> tmp-libgcc.mvars
1855	echo TPBIT = '$(TPBIT)' >> tmp-libgcc.mvars
1856	echo TPBIT_FUNCS = '$(TPBIT_FUNCS)' >> tmp-libgcc.mvars
1857	echo DFP_ENABLE = '$(DFP_ENABLE)' >> tmp-libgcc.mvars
1858	echo DFP_CFLAGS='$(DFP_CFLAGS)' >> tmp-libgcc.mvars
1859	echo D32PBIT='$(D32PBIT)' >> tmp-libgcc.mvars
1860	echo D32PBIT_FUNCS='$(D32PBIT_FUNCS)' >> tmp-libgcc.mvars
1861	echo D64PBIT='$(D64PBIT)' >> tmp-libgcc.mvars
1862	echo D64PBIT_FUNCS='$(D64PBIT_FUNCS)' >> tmp-libgcc.mvars
1863	echo D128PBIT='$(D128PBIT)' >> tmp-libgcc.mvars
1864	echo D128PBIT_FUNCS='$(D128PBIT_FUNCS)' >> tmp-libgcc.mvars
1865	echo GCC_EXTRA_PARTS = '$(GCC_EXTRA_PARTS)' >> tmp-libgcc.mvars
1866	echo SHLIB_LINK = '$(subst $(GCC_FOR_TARGET),$$(GCC_FOR_TARGET),$(SHLIB_LINK))' >> tmp-libgcc.mvars
1867	echo SHLIB_INSTALL = '$(SHLIB_INSTALL)' >> tmp-libgcc.mvars
1868	echo SHLIB_EXT = '$(SHLIB_EXT)' >> tmp-libgcc.mvars
1869	echo SHLIB_MKMAP = '$(call srcdirify,$(SHLIB_MKMAP))' >> tmp-libgcc.mvars
1870	echo SHLIB_MKMAP_OPTS = '$(SHLIB_MKMAP_OPTS)' >> tmp-libgcc.mvars
1871	echo SHLIB_MAPFILES = '$(call srcdirify,$(SHLIB_MAPFILES))' >> tmp-libgcc.mvars
1872	echo SHLIB_NM_FLAGS = '$(SHLIB_NM_FLAGS)' >> tmp-libgcc.mvars
1873	echo LIBGCC2_CFLAGS = '$(LIBGCC2_CFLAGS)' >> tmp-libgcc.mvars
1874	echo TARGET_LIBGCC2_CFLAGS = '$(TARGET_LIBGCC2_CFLAGS)' >> tmp-libgcc.mvars
1875	echo LIBGCC_SYNC = '$(LIBGCC_SYNC)' >> tmp-libgcc.mvars
1876	echo LIBGCC_SYNC_CFLAGS = '$(LIBGCC_SYNC_CFLAGS)' >> tmp-libgcc.mvars
1877	echo CRTSTUFF_CFLAGS = '$(CRTSTUFF_CFLAGS)' >> tmp-libgcc.mvars
1878	echo CRTSTUFF_T_CFLAGS = '$(CRTSTUFF_T_CFLAGS)' >> tmp-libgcc.mvars
1879	echo CRTSTUFF_T_CFLAGS_S = '$(CRTSTUFF_T_CFLAGS_S)' >> tmp-libgcc.mvars
1880	echo TARGET_SYSTEM_ROOT = '$(TARGET_SYSTEM_ROOT)' >> tmp-libgcc.mvars
1881
1882	mv tmp-libgcc.mvars libgcc.mvars
1883
1884# Use the genmultilib shell script to generate the information the gcc
1885# driver program needs to select the library directory based on the
1886# switches.
1887multilib.h: s-mlib; @true
1888s-mlib: $(srcdir)/genmultilib Makefile
1889	if test @enable_multilib@ = yes \
1890	   || test -n "$(MULTILIB_OSDIRNAMES)"; then \
1891	  CONFIG_SHELL="$(SHELL)" \
1892	  $(SHELL) $(srcdir)/genmultilib \
1893	    "$(MULTILIB_OPTIONS)" \
1894	    "$(MULTILIB_DIRNAMES)" \
1895	    "$(MULTILIB_MATCHES)" \
1896	    "$(MULTILIB_EXCEPTIONS)" \
1897	    "$(MULTILIB_EXTRA_OPTS)" \
1898	    "$(MULTILIB_EXCLUSIONS)" \
1899	    "$(MULTILIB_OSDIRNAMES)" \
1900	    "@enable_multilib@" \
1901	    > tmp-mlib.h; \
1902	else \
1903	  $(SHELL) $(srcdir)/genmultilib '' '' '' '' '' '' '' no \
1904	    > tmp-mlib.h; \
1905	fi
1906	$(SHELL) $(srcdir)/../move-if-change tmp-mlib.h multilib.h
1907	$(STAMP) s-mlib
1908
1909# Compile two additional files that are linked with every program
1910# linked using GCC on systems using COFF or ELF, for the sake of C++
1911# constructors.
1912$(T)crtbegin.o: crtstuff.c $(GCC_PASSES) $(TCONFIG_H) auto-host.h \
1913  gbl-ctors.h stmp-int-hdrs tsystem.h coretypes.h $(TM_H)
1914	$(GCC_FOR_TARGET) $(CRTSTUFF_CFLAGS) $(CRTSTUFF_T_CFLAGS) \
1915	  -c $(srcdir)/crtstuff.c -DCRT_BEGIN \
1916	  -o $(T)crtbegin$(objext)
1917
1918$(T)crtend.o: crtstuff.c $(GCC_PASSES) $(TCONFIG_H) auto-host.h \
1919  gbl-ctors.h stmp-int-hdrs tsystem.h coretypes.h $(TM_H)
1920	$(GCC_FOR_TARGET) $(CRTSTUFF_CFLAGS) $(CRTSTUFF_T_CFLAGS) \
1921	  -c $(srcdir)/crtstuff.c -DCRT_END \
1922	  -o $(T)crtend$(objext)
1923
1924# These are versions of crtbegin and crtend for shared libraries.
1925$(T)crtbeginS.o: crtstuff.c $(GCC_PASSES) $(TCONFIG_H) auto-host.h \
1926  gbl-ctors.h stmp-int-hdrs tsystem.h coretypes.h $(TM_H)
1927	$(GCC_FOR_TARGET) $(CRTSTUFF_CFLAGS) $(CRTSTUFF_T_CFLAGS_S) \
1928	  -c $(srcdir)/crtstuff.c -DCRT_BEGIN -DCRTSTUFFS_O \
1929	  -o $(T)crtbeginS$(objext)
1930
1931$(T)crtendS.o: crtstuff.c $(GCC_PASSES) $(TCONFIG_H) auto-host.h \
1932  gbl-ctors.h stmp-int-hdrs tsystem.h coretypes.h $(TM_H)
1933	$(GCC_FOR_TARGET) $(CRTSTUFF_CFLAGS) $(CRTSTUFF_T_CFLAGS_S) \
1934	  -c $(srcdir)/crtstuff.c -DCRT_END -DCRTSTUFFS_O \
1935	  -o $(T)crtendS$(objext)
1936
1937# This is a version of crtbegin for -static links.
1938$(T)crtbeginT.o: crtstuff.c $(GCC_PASSES) $(TCONFIG_H) auto-host.h \
1939  gbl-ctors.h stmp-int-hdrs tsystem.h coretypes.h $(TM_H)
1940	$(GCC_FOR_TARGET) $(CRTSTUFF_CFLAGS) $(CRTSTUFF_T_CFLAGS) \
1941	  -c $(srcdir)/crtstuff.c -DCRT_BEGIN -DCRTSTUFFT_O \
1942	  -o $(T)crtbeginT$(objext)
1943
1944# Compile the start modules crt0.o and mcrt0.o that are linked with
1945# every program
1946$(T)crt0.o: s-crt0 ; @true
1947$(T)mcrt0.o: s-crt0; @true
1948
1949s-crt0:	$(CRT0_S) $(MCRT0_S) $(GCC_PASSES) $(CONFIG_H)
1950	$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(CRT0STUFF_T_CFLAGS) \
1951	  -o $(T)crt0.o -c $(CRT0_S)
1952	$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(CRT0STUFF_T_CFLAGS) \
1953	  -o $(T)mcrt0.o -c $(MCRT0_S)
1954	$(STAMP) s-crt0
1955#
1956# Compiling object files from source files.
1957
1958# Note that dependencies on obstack.h are not written
1959# because that file is not part of GCC.
1960
1961# C language specific files.
1962
1963c-errors.o: c-errors.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
1964    $(C_TREE_H) $(FLAGS_H) $(DIAGNOSTIC_H) $(TM_P_H)
1965c-parser.o : c-parser.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
1966    $(GGC_H) $(TIMEVAR_H) $(C_TREE_H) $(INPUT_H) $(FLAGS_H) $(TOPLEV_H) output.h \
1967    $(CPPLIB_H) gt-c-parser.h $(RTL_H) langhooks.h $(C_COMMON_H) $(C_PRAGMA_H) \
1968    vec.h $(TARGET_H) $(CGRAPH_H) $(PLUGIN_H) $(EXCEPT_H)
1969
1970srcextra: gcc.srcextra lang.srcextra
1971
1972gcc.srcextra: gengtype-lex.c
1973	-cp -p $^ $(srcdir)
1974
1975incpath.o: incpath.c incpath.h $(CONFIG_H) $(SYSTEM_H) $(CPPLIB_H) \
1976		intl.h prefix.h coretypes.h $(TM_H) cppdefault.h $(TARGET_H) \
1977		$(MACHMODE_H)
1978
1979c-decl.o : c-decl.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
1980    $(RTL_H) $(C_TREE_H) $(GGC_H) $(TARGET_H) $(FLAGS_H) $(FUNCTION_H) output.h \
1981    $(EXPR_H) debug.h $(TOPLEV_H) intl.h $(TM_P_H) $(TREE_INLINE_H) $(TIMEVAR_H) \
1982    opts.h $(C_PRAGMA_H) gt-c-decl.h $(CGRAPH_H) $(HASHTAB_H) libfuncs.h \
1983    $(EXCEPT_H) $(LANGHOOKS_DEF_H) $(TREE_DUMP_H) $(C_COMMON_H) $(CPPLIB_H) \
1984    $(DIAGNOSTIC_H) $(INPUT_H) langhooks.h $(GIMPLE_H) tree-mudflap.h  \
1985    pointer-set.h $(BASIC_BLOCK_H) $(GIMPLE_H) tree-iterator.h c-lang.h $(PLUGIN_H)
1986c-typeck.o : c-typeck.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
1987    $(TREE_H) $(C_TREE_H) $(TARGET_H) $(FLAGS_H) intl.h output.h $(EXPR_H) \
1988    $(RTL_H) $(TOPLEV_H) $(TM_P_H) langhooks.h $(GGC_H) $(TREE_FLOW_H) \
1989    $(GIMPLE_H) tree-iterator.h c-lang.h
1990c-lang.o : c-lang.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
1991    $(C_TREE_H) $(DIAGNOSTIC_H) \
1992    $(GGC_H) langhooks.h $(LANGHOOKS_DEF_H) $(C_COMMON_H) gtype-c.h \
1993    c-objc-common.h $(C_PRAGMA_H) c-common.def $(TREE_INLINE_H)
1994stub-objc.o : stub-objc.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TREE_H) \
1995    $(C_COMMON_H)
1996c-lex.o : c-lex.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
1997    $(RTL_H) debug.h $(C_TREE_H) $(C_COMMON_H) $(REAL_H) $(SPLAY_TREE_H) \
1998    $(C_PRAGMA_H) $(INPUT_H) intl.h $(FLAGS_H) $(TOPLEV_H) output.h \
1999    $(CPPLIB_H) $(TARGET_H) $(TIMEVAR_H) $(TM_P_H)
2000c-ppoutput.o : c-ppoutput.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2001    $(C_COMMON_H) $(TREE_H) $(CPPLIB_H) $(CPP_INTERNAL_H) $(C_PRAGMA_H)
2002c-objc-common.o : c-objc-common.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2003    $(TM_H) $(TREE_H) $(C_TREE_H) $(RTL_H) insn-config.h $(INTEGRATE_H) \
2004    $(FUNCTION_H) $(FLAGS_H) $(TOPLEV_H) $(TREE_INLINE_H) $(DIAGNOSTIC_H) $(VARRAY_H) \
2005    langhooks.h $(GGC_H) $(TARGET_H) $(C_PRETTY_PRINT_H) c-objc-common.h \
2006    tree-mudflap.h intl.h
2007c-aux-info.o : c-aux-info.c  $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
2008    $(C_TREE_H) $(FLAGS_H) $(TOPLEV_H)
2009c-convert.o : c-convert.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2010    $(TREE_H) $(FLAGS_H) $(TOPLEV_H) $(C_COMMON_H) convert.h $(C_TREE_H) \
2011    langhooks.h $(TARGET_H)
2012c-pragma.o: c-pragma.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2013    $(TREE_H) $(FUNCTION_H) $(C_PRAGMA_H) $(TOPLEV_H) output.h $(GGC_H) $(TM_P_H) \
2014    $(C_COMMON_H) $(TARGET_H) gt-c-pragma.h $(CPPLIB_H) $(FLAGS_H) $(DIAGNOSTIC_H) \
2015    opts.h $(PLUGINS_H)
2016graph.o: graph.c $(SYSTEM_H) coretypes.h $(TM_H) $(TOPLEV_H) $(FLAGS_H) output.h \
2017    $(RTL_H) $(FUNCTION_H) hard-reg-set.h $(BASIC_BLOCK_H) graph.h $(OBSTACK_H) \
2018    $(CONFIG_H)
2019sbitmap.o: sbitmap.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2020    $(FLAGS_H) hard-reg-set.h $(BASIC_BLOCK_H) $(OBSTACK_H)
2021ebitmap.o: ebitmap.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2022	$(EBITMAP_H) $(RTL_H) $(FLAGS_H) $(OBSTACK_H)
2023sparseset.o: sparseset.c $(SYSTEM_H) sparseset.h $(CONFIG_H)
2024
2025COLLECT2_OBJS = collect2.o collect2-aix.o tlink.o intl.o version.o
2026COLLECT2_LIBS = @COLLECT2_LIBS@
2027collect2$(exeext): $(COLLECT2_OBJS) $(LIBDEPS)
2028# Don't try modifying collect2 (aka ld) in place--it might be linking this.
2029	$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o T$@ \
2030		$(COLLECT2_OBJS) $(LIBS) $(COLLECT2_LIBS)
2031	mv -f T$@ $@
2032
2033collect2.o : collect2.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) intl.h \
2034	$(OBSTACK_H) $(DEMANGLE_H) collect2.h collect2-aix.h version.h
2035	$(COMPILER) $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS)  \
2036	-DTARGET_MACHINE=\"$(target_noncanonical)\" \
2037	-c $(srcdir)/collect2.c $(OUTPUT_OPTION) @TARGET_SYSTEM_ROOT_DEFINE@
2038
2039collect2-aix.o : collect2-aix.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2040    collect2-aix.h
2041
2042tlink.o: tlink.c $(DEMANGLE_H) $(HASHTAB_H) $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2043    $(OBSTACK_H) collect2.h intl.h
2044
2045lto-wrapper$(exeext): lto-wrapper.o intl.o $(LIBDEPS)
2046	$(COMPILER) $(ALL_COMPILERFLAGS) $(LDFLAGS) -o T$@ lto-wrapper.o intl.o $(LIBS)
2047	mv -f T$@ $@
2048
2049lto-wrapper.o: lto-wrapper.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) intl.h
2050
2051# A file used by all variants of C.
2052
2053c-common.o : c-common.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
2054	$(OBSTACK_H) $(C_COMMON_H) $(FLAGS_H) $(TOPLEV_H) output.h $(C_PRAGMA_H) \
2055	$(GGC_H) $(EXPR_H) $(TM_P_H) builtin-types.def builtin-attrs.def \
2056	$(DIAGNOSTIC_H) gt-c-common.h langhooks.h $(VARRAY_H) $(RTL_H) \
2057	$(TARGET_H) $(C_TREE_H) tree-iterator.h langhooks.h tree-mudflap.h \
2058	intl.h opts.h $(REAL_H) $(CPPLIB_H) $(TREE_INLINE_H) $(HASHTAB_H) \
2059	$(BUILTINS_DEF) $(CGRAPH_H) $(BASIC_BLOCK_H) $(TARGET_DEF_H) \
2060	$(GIMPLE_H) libfuncs.h
2061
2062c-pretty-print.o : c-pretty-print.c $(C_PRETTY_PRINT_H) \
2063	$(C_TREE_H) $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(REAL_H) \
2064	$(DIAGNOSTIC_H) tree-iterator.h fixed-value.h intl.h
2065
2066c-opts.o : c-opts.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H)		\
2067        $(TREE_H) $(C_PRAGMA_H) $(FLAGS_H) $(TOPLEV_H) langhooks.h		\
2068        $(TREE_INLINE_H) $(DIAGNOSTIC_H) intl.h debug.h $(C_COMMON_H)	\
2069        opts.h options.h $(MKDEPS_H) incpath.h cppdefault.h $(TARGET_H) \
2070	$(TM_P_H) $(VARRAY_H) $(C_TREE_H)
2071	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) \
2072		$< $(OUTPUT_OPTION) @TARGET_SYSTEM_ROOT_DEFINE@
2073
2074c-cppbuiltin.o : c-cppbuiltin.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2075	$(TREE_H) version.h $(C_COMMON_H) $(C_PRAGMA_H) $(FLAGS_H) \
2076	$(TOPLEV_H) output.h $(EXCEPT_H) $(REAL_H) $(TARGET_H) $(TM_P_H) \
2077	$(BASEVER) debug.h
2078	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) \
2079		-DBASEVER=$(BASEVER_s) $< $(OUTPUT_OPTION)
2080
2081# A file used by all variants of C and some other languages.
2082
2083attribs.o : attribs.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
2084	$(FLAGS_H) $(TOPLEV_H) output.h $(RTL_H) $(GGC_H) $(TM_P_H) \
2085	$(TARGET_H) langhooks.h $(CPPLIB_H) $(PLUGIN_H)
2086
2087c-format.o : c-format.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) langhooks.h \
2088	$(C_COMMON_H) $(FLAGS_H) $(TOPLEV_H) intl.h $(DIAGNOSTIC_H) alloc-pool.h \
2089	c-format.h
2090
2091c-semantics.o : c-semantics.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2092	$(TREE_H) $(FLAGS_H) $(TOPLEV_H) output.h $(RTL_H) $(GGC_H) \
2093	$(PREDICT_H) $(TREE_INLINE_H) $(C_COMMON_H) $(EXCEPT_H) $(FUNCTION_H) \
2094	langhooks.h $(SPLAY_TREE_H) $(TIMEVAR_H) $(GIMPLE_H) \
2095	$(VARRAY_H) tree-iterator.h
2096
2097c-dump.o : c-dump.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
2098	$(C_TREE_H) $(TREE_DUMP_H)
2099
2100c-pch.o : c-pch.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(CPPLIB_H) $(TREE_H) \
2101	$(C_COMMON_H) output.h $(TOPLEV_H) $(C_PRAGMA_H) $(GGC_H) debug.h \
2102	langhooks.h $(FLAGS_H) hosthooks.h version.h $(TARGET_H) opts.h
2103	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) \
2104	  -DHOST_MACHINE=\"$(host)\" -DTARGET_MACHINE=\"$(target)\" \
2105	  $< $(OUTPUT_OPTION)
2106
2107c-omp.o : c-omp.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
2108	$(FUNCTION_H) $(C_COMMON_H) $(TOPLEV_H) $(GIMPLE_H) $(BITMAP_H) \
2109	langhooks.h
2110
2111# Language-independent files.
2112
2113DRIVER_DEFINES = \
2114  -DSTANDARD_STARTFILE_PREFIX=\"$(unlibsubdir)/\" \
2115  -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc/\" \
2116  -DSTANDARD_LIBEXEC_PREFIX=\"$(libexecdir)/gcc/\" \
2117  -DDEFAULT_TARGET_VERSION=\"$(version)\" \
2118  -DDEFAULT_TARGET_MACHINE=\"$(target_noncanonical)\" \
2119  -DSTANDARD_BINDIR_PREFIX=\"$(bindir)/\" \
2120  -DTOOLDIR_BASE_PREFIX=\"$(libsubdir_to_prefix)$(prefix_to_exec_prefix)\" \
2121  @TARGET_SYSTEM_ROOT_DEFINE@ \
2122  $(VALGRIND_DRIVER_DEFINES) \
2123  `test "X$${SHLIB_LINK}" = "X" || test "@enable_shared@" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` \
2124  -DCONFIGURE_SPECS="\"@CONFIGURE_SPECS@\""
2125
2126gcc.o: gcc.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) intl.h multilib.h \
2127    Makefile $(lang_specs_files) specs.h prefix.h $(GCC_H) $(FLAGS_H) \
2128    configargs.h $(OBSTACK_H) opts.h
2129	(SHLIB_LINK='$(SHLIB_LINK)'; \
2130	$(COMPILER) $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) \
2131  $(DRIVER_DEFINES) \
2132  -c $(srcdir)/gcc.c $(OUTPUT_OPTION))
2133
2134gccspec.o: gccspec.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(GCC_H)
2135	(SHLIB_LINK='$(SHLIB_LINK)'; \
2136	$(COMPILER) $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) \
2137  $(DRIVER_DEFINES) \
2138  -c $(srcdir)/gccspec.c $(OUTPUT_OPTION))
2139
2140cppspec.o: cppspec.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(GCC_H)
2141
2142specs.h : s-specs ; @true
2143s-specs : Makefile
2144	lsf="$(lang_specs_files)"; for f in $$lsf; do \
2145	    echo "#include \"$$f\""; \
2146	done | sed 's|$(srcdir)/||' > tmp-specs.h
2147	$(SHELL) $(srcdir)/../move-if-change tmp-specs.h specs.h
2148	$(STAMP) s-specs
2149
2150optionlist: s-options ; @true
2151s-options: $(ALL_OPT_FILES) Makefile $(srcdir)/opt-gather.awk
2152	$(AWK) -f $(srcdir)/opt-gather.awk $(ALL_OPT_FILES) > tmp-optionlist
2153	$(SHELL) $(srcdir)/../move-if-change tmp-optionlist optionlist
2154	$(STAMP) s-options
2155
2156options.c: optionlist $(srcdir)/opt-functions.awk $(srcdir)/optc-gen.awk
2157	$(AWK) -f $(srcdir)/opt-functions.awk -f $(srcdir)/optc-gen.awk \
2158	       -v header_name="config.h system.h coretypes.h tm.h" < $< > $@
2159
2160options.h: s-options-h ; @true
2161s-options-h: optionlist $(srcdir)/opt-functions.awk $(srcdir)/opth-gen.awk
2162	$(AWK) -f $(srcdir)/opt-functions.awk -f $(srcdir)/opth-gen.awk \
2163	       < $< > tmp-options.h
2164	$(SHELL) $(srcdir)/../move-if-change tmp-options.h options.h
2165	$(STAMP) $@
2166
2167options.o: options.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TARGET_H) $(FLAGS_H) \
2168	$(TM_H) opts.h intl.h
2169
2170gcc-options.o: options.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) opts.h intl.h
2171	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(OUTPUT_OPTION) \
2172		-DGCC_DRIVER options.c
2173
2174dumpvers: dumpvers.c
2175
2176ifdef REVISION_c
2177version.o: version.c version.h $(REVISION) $(DATESTAMP) $(BASEVER) $(DEVPHASE)
2178else
2179version.o: version.c version.h $(DATESTAMP) $(BASEVER) $(DEVPHASE)
2180endif
2181	$(COMPILER) $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) \
2182	-DBASEVER=$(BASEVER_s) -DDATESTAMP=$(DATESTAMP_s) \
2183	-DREVISION=$(REVISION_s) \
2184	-DDEVPHASE=$(DEVPHASE_s) -DPKGVERSION=$(PKGVERSION_s) \
2185	-DBUGURL=$(BUGURL_s) -c $(srcdir)/version.c $(OUTPUT_OPTION)
2186
2187gtype-desc.o: gtype-desc.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2188	$(VARRAY_H) $(HASHTAB_H) $(SPLAY_TREE_H) $(OBSTACK_H) $(BITMAP_H) \
2189	$(INPUT_H) $(TREE_H) $(RTL_H) $(FUNCTION_H) insn-config.h $(EXPR_H) \
2190	hard-reg-set.h $(BASIC_BLOCK_H) cselib.h $(INSN_ADDR_H) $(OPTABS_H) \
2191	libfuncs.h debug.h $(GGC_H) $(CGRAPH_H) $(TREE_FLOW_H) reload.h \
2192	$(CPP_ID_DATA_H) tree-chrec.h $(CFGLAYOUT_H) $(EXCEPT_H) output.h \
2193	$(CFGLOOP_H) $(TARGET_H)
2194
2195ggc-common.o: ggc-common.c $(CONFIG_H) $(SYSTEM_H) coretypes.h		\
2196	$(GGC_H) $(HASHTAB_H) $(TOPLEV_H) $(PARAMS_H) hosthooks.h	\
2197	$(HOSTHOOKS_DEF_H) vec.h $(PLUGIN_H)
2198
2199ggc-page.o: ggc-page.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(TREE_H) \
2200	$(FLAGS_H) $(TOPLEV_H) $(GGC_H) $(TIMEVAR_H) $(TM_P_H) $(PARAMS_H) $(TREE_FLOW_H) $(PLUGIN_H)
2201
2202ggc-zone.o: ggc-zone.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2203	$(TREE_H) $(FLAGS_H) $(TOPLEV_H) $(GGC_H) $(TIMEVAR_H) $(TM_P_H) \
2204	$(PARAMS_H) $(BITMAP_H) $(VARRAY_H) $(PLUGIN_H)
2205
2206ggc-none.o: ggc-none.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(GGC_H) \
2207	$(BCONFIG_H)
2208
2209stringpool.o: stringpool.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2210	$(TREE_H) $(GGC_H) gt-stringpool.h $(CPPLIB_H) $(SYMTAB_H)
2211
2212prefix.o: prefix.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) prefix.h \
2213	Makefile $(BASEVER)
2214	$(COMPILER) $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) \
2215	-DPREFIX=\"$(prefix)\" -DBASEVER=$(BASEVER_s) \
2216	  -c $(srcdir)/prefix.c $(OUTPUT_OPTION)
2217
2218convert.o: convert.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
2219   $(FLAGS_H) convert.h $(TOPLEV_H) langhooks.h $(REAL_H) fixed-value.h
2220
2221double-int.o: double-int.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H)
2222
2223# lto-compress.o needs $(ZLIBINC) added to the include flags.
2224lto-compress.o: lto-compress.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2225	$(TREE_H) langhooks.h $(LTO_HEADER_H) $(LTO_SECTION_H) \
2226	lto-compress.h $(DIAGNOSTIC_H) errors.h
2227	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(ZLIBINC) $< $(OUTPUT_OPTION)
2228
2229lto-cgraph.o: lto-cgraph.c $(CONFIG_H) $(SYSTEM_H) coretypes.h   \
2230   $(TM_H) $(TOPLEV_H) $(EXPR_H) $(FLAGS_H) $(PARAMS_H) input.h \
2231   $(VARRAY_H) $(HASHTAB_H) langhooks.h $(BASIC_BLOCK_H) \
2232   $(TREE_FLOW_H) $(CGRAPH_H) $(FUNCTION_H) $(GGC_H) $(DIAGNOSTIC_H) \
2233   except.h $(TIMEVAR_H) output.h pointer-set.h $(LTO_STREAMER_H) $(GCOV_IO_H)
2234lto-streamer-in.o: lto-streamer-in.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2235   $(TM_H) $(TOPLEV_H) $(EXPR_H) $(FLAGS_H) $(PARAMS_H) input.h $(VARRAY_H) \
2236   $(HASHTAB_H) $(BASIC_BLOCK_H) $(TREE_FLOW_H) $(TREE_PASS_H) $(CGRAPH_H) \
2237   $(FUNCTION_H) $(GGC_H) $(DIAGNOSTIC_H) libfuncs.h $(EXCEPT_H) debug.h \
2238   $(TIMEVAR_H) output.h $(IPA_UTILS_H) $(LTO_STREAMER_H)
2239lto-streamer-out.o : lto-streamer-out.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2240   $(TM_H) $(TOPLEV_H) $(TREE_H) $(EXPR_H) $(FLAGS_H) $(PARAMS_H) input.h \
2241   $(VARRAY_H) $(HASHTAB_H) $(BASIC_BLOCK_H) tree-iterator.h \
2242   $(TREE_FLOW_H) $(TREE_PASS_H) $(CGRAPH_H) $(FUNCTION_H) $(GGC_H) \
2243   $(DIAGNOSTIC_H) except.h $(LTO_STREAMER_H) errors.h
2244lto-section-in.o: lto-section-in.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2245   $(TOPLEV_H) $(EXPR_H) $(FLAGS_H) $(PARAMS_H) input.h $(VARRAY_H) \
2246   $(HASHTAB_H) $(BASIC_BLOCK_H) $(TREE_FLOW_H) $(CGRAPH_H) $(FUNCTION_H) \
2247   $(GGC_H) $(DIAGNOSTIC_H) except.h $(TIMEVAR_H) output.h \
2248   $(LTO_STREAMER_H) lto-compress.h
2249lto-section-out.o : lto-section-out.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2250   $(TM_H) $(TOPLEV_H) $(TREE_H) $(EXPR_H) $(PARAMS_H) input.h \
2251   $(VARRAY_H) $(HASHTAB_H) $(BASIC_BLOCK_H) $(TREE_FLOW_H) $(TREE_PASS_H) \
2252   $(CGRAPH_H) $(FUNCTION_H) $(GGC_H) except.h pointer-set.h \
2253   $(BITMAP_H) langhooks.h $(LTO_STREAMER_H) lto-compress.h
2254lto-symtab.o: lto-symtab.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2255   toplev.h $(TREE_H) $(GIMPLE_H) $(GGC_H) $(LAMBDA_H) $(HASHTAB_H) \
2256   $(LTO_STREAMER_H) $(LINKER_PLUGIN_API_H) gt-lto-symtab.h
2257lto-opts.o: lto-opts.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TREE_H) \
2258   $(HASHTAB_H) $(GGC_H) $(BITMAP_H) $(FLAGS_H) opts.h options.h \
2259   $(TARGET_H) $(TOPLEV_H) $(LTO_STREAMER_H)
2260lto-streamer.o: lto-streamer.c $(CONFIG_H) $(SYSTEM_H) coretypes.h   \
2261   $(TM_H) $(TREE_H) $(GIMPLE_H) $(BITMAP_H) $(LTO_STREAMER_H) $(FLAGS_H) \
2262   $(TREE_FLOW_H) $(DIAGNOSTIC_H) $(LTO_SYMTAB_H) $(TOPLEV_H)
2263lto-wpa-fixup.o: lto-wpa-fixup.c $(CONFIG_H) $(SYSTEM_H) coretypes.h   \
2264   $(TM_H) $(TOPLEV_H) $(TREE_H) $(EXPR_H) $(FLAGS_H) $(CGRAPH_H) \
2265   $(FUNCTION_H) $(DIAGNOSTIC_H) $(BITMAP_H) $(TIMEVAR_H) \
2266   $(TREE_FLOW_H) $(TREE_PASS_H) $(LTO_STREAMER_H)
2267langhooks.o : langhooks.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2268   $(TREE_H) $(TOPLEV_H) $(TREE_INLINE_H) $(RTL_H) insn-config.h $(INTEGRATE_H) \
2269   langhooks.h $(TARGET_H) $(LANGHOOKS_DEF_H) $(FLAGS_H) $(GGC_H) $(DIAGNOSTIC_H) \
2270   intl.h $(GIMPLE_H) $(CGRAPH_H) output.h
2271tree.o : tree.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
2272   all-tree.def $(FLAGS_H) $(FUNCTION_H) $(PARAMS_H) \
2273   $(TOPLEV_H) $(GGC_H) $(HASHTAB_H) $(TARGET_H) output.h $(TM_P_H) \
2274   langhooks.h $(REAL_H) gt-tree.h $(TREE_INLINE_H) tree-iterator.h \
2275   $(BASIC_BLOCK_H) $(TREE_FLOW_H) $(OBSTACK_H) pointer-set.h fixed-value.h \
2276   tree-pass.h $(LANGHOOKS_DEF_H) $(DIAGNOSTIC_H) $(CGRAPH_H) $(TIMEVAR_H) \
2277   $(EXCEPT_H) debug.h intl.h
2278tree-dump.o: tree-dump.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2279   $(TREE_H) langhooks.h $(TOPLEV_H) $(SPLAY_TREE_H) $(TREE_DUMP_H) \
2280   tree-iterator.h $(TREE_PASS_H) $(DIAGNOSTIC_H) $(REAL_H) fixed-value.h
2281tree-inline.o : tree-inline.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2282   $(TREE_H) $(RTL_H) $(EXPR_H) $(FLAGS_H) $(PARAMS_H) $(INPUT_H) insn-config.h \
2283   $(HASHTAB_H) $(TOPLEV_H) langhooks.h $(TREE_INLINE_H) $(CGRAPH_H) \
2284   intl.h $(FUNCTION_H) $(GGC_H) $(GIMPLE_H) \
2285   debug.h $(DIAGNOSTIC_H) $(EXCEPT_H) $(TREE_FLOW_H) tree-iterator.h tree-mudflap.h \
2286   $(IPA_PROP_H) value-prof.h $(TREE_PASS_H) $(TARGET_H) $(INTEGRATE_H)
2287print-tree.o : print-tree.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
2288   $(GGC_H) langhooks.h $(REAL_H) tree-iterator.h fixed-value.h \
2289   $(DIAGNOSTIC_H) $(TREE_FLOW_H) $(TREE_PASS_H)
2290stor-layout.o : stor-layout.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2291   $(TREE_H) $(PARAMS_H) $(FLAGS_H) $(FUNCTION_H) $(EXPR_H) output.h $(RTL_H) \
2292   $(GGC_H) $(TM_P_H) $(TARGET_H) langhooks.h $(REGS_H) gt-stor-layout.h \
2293   $(TOPLEV_H) $(CGRAPH_H) $(TREE_INLINE_H) $(TREE_DUMP_H) $(GIMPLE_H)
2294tree-ssa-structalias.o: tree-ssa-structalias.c \
2295   $(SYSTEM_H) $(CONFIG_H) coretypes.h $(TM_H) $(GGC_H) $(OBSTACK_H) $(BITMAP_H) \
2296   $(FLAGS_H) $(RTL_H) $(TM_P_H) hard-reg-set.h $(BASIC_BLOCK_H) output.h \
2297   $(DIAGNOSTIC_H) $(TOPLEV_H) $(TREE_H) $(TREE_FLOW_H) $(TREE_INLINE_H) varray.h \
2298   $(GIMPLE_H) $(HASHTAB_H) $(FUNCTION_H) $(CGRAPH_H) \
2299   $(TREE_PASS_H) $(TIMEVAR_H) alloc-pool.h $(SPLAY_TREE_H) $(PARAMS_H) \
2300   gt-tree-ssa-structalias.h $(CGRAPH_H) $(ALIAS_H) pointer-set.h
2301tree-ssa.o : tree-ssa.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
2302   $(RTL_H) $(TREE_H) $(TM_P_H) $(EXPR_H) output.h $(DIAGNOSTIC_H) \
2303   $(TOPLEV_H) $(FUNCTION_H) $(TIMEVAR_H) $(TM_H) coretypes.h \
2304   $(TREE_DUMP_H) langhooks.h $(TREE_PASS_H) $(BASIC_BLOCK_H) $(BITMAP_H) \
2305   $(FLAGS_H) $(GGC_H) hard-reg-set.h $(HASHTAB_H) pointer-set.h \
2306   $(GIMPLE_H) $(TREE_INLINE_H) $(VARRAY_H) $(TARGET_H)
2307tree-into-ssa.o : tree-into-ssa.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
2308   $(RTL_H) $(TREE_H) $(TM_P_H) $(EXPR_H) output.h $(DIAGNOSTIC_H) \
2309   $(FUNCTION_H) $(TIMEVAR_H) $(TM_H) coretypes.h $(TREE_DUMP_H) \
2310   langhooks.h domwalk.h $(TREE_PASS_H) $(GGC_H) $(PARAMS_H) $(BASIC_BLOCK_H) \
2311   $(BITMAP_H) $(CFGLOOP_H) $(FLAGS_H) hard-reg-set.h $(HASHTAB_H) \
2312   $(GIMPLE_H) $(TREE_INLINE_H) $(VARRAY_H) vecprim.h
2313tree-ssa-ter.o : tree-ssa-ter.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
2314   $(TREE_H) $(DIAGNOSTIC_H) $(TM_H) coretypes.h $(TREE_DUMP_H) \
2315   $(TREE_SSA_LIVE_H) $(BITMAP_H) $(FLAGS_H)
2316tree-ssa-coalesce.o : tree-ssa-coalesce.c $(TREE_FLOW_H) $(CONFIG_H) \
2317   $(SYSTEM_H) $(TREE_H) $(DIAGNOSTIC_H) $(TM_H) coretypes.h $(TREE_DUMP_H) \
2318   $(TREE_SSA_LIVE_H) $(BITMAP_H) $(FLAGS_H) $(HASHTAB_H) $(TOPLEV_H)
2319tree-outof-ssa.o : tree-outof-ssa.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
2320   $(TREE_H) $(DIAGNOSTIC_H) $(TIMEVAR_H) $(TM_H) coretypes.h $(TREE_DUMP_H) \
2321   $(TREE_PASS_H) $(TREE_SSA_LIVE_H) $(BASIC_BLOCK_H) $(BITMAP_H) $(GGC_H) \
2322   $(TOPLEV_H) $(EXPR_H) $(SSAEXPAND_H)
2323tree-ssa-dse.o : tree-ssa-dse.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2324   $(TM_H) $(GGC_H) $(TREE_H) $(RTL_H) $(TM_P_H) $(BASIC_BLOCK_H) \
2325   $(TREE_FLOW_H) $(TREE_PASS_H) $(TREE_DUMP_H) domwalk.h $(FLAGS_H) \
2326   $(DIAGNOSTIC_H) $(TIMEVAR_H) langhooks.h
2327tree-ssa-forwprop.o : tree-ssa-forwprop.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2328   $(TM_H) $(GGC_H) $(TREE_H) $(RTL_H) $(TM_P_H) $(BASIC_BLOCK_H) \
2329   $(TREE_FLOW_H) $(TREE_PASS_H) $(TREE_DUMP_H) $(DIAGNOSTIC_H) $(TIMEVAR_H) \
2330   langhooks.h $(FLAGS_H) $(GIMPLE_H)
2331tree-ssa-phiprop.o : tree-ssa-phiprop.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2332   $(TM_H) $(GGC_H) $(TREE_H) $(RTL_H) $(TM_P_H) $(BASIC_BLOCK_H) \
2333   $(TREE_FLOW_H) $(TREE_PASS_H) $(TREE_DUMP_H) $(DIAGNOSTIC_H) $(TIMEVAR_H) \
2334   langhooks.h $(FLAGS_H)
2335tree-ssa-ifcombine.o : tree-ssa-ifcombine.c $(CONFIG_H) $(SYSTEM_H) \
2336   coretypes.h $(TM_H) $(TREE_H) $(BASIC_BLOCK_H) \
2337   $(TREE_FLOW_H) $(TREE_PASS_H) $(TREE_DUMP_H) $(DIAGNOSTIC_H) $(TIMEVAR_H)
2338tree-ssa-phiopt.o : tree-ssa-phiopt.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2339   $(TM_H) $(GGC_H) $(TREE_H) $(RTL_H) $(TM_P_H) $(BASIC_BLOCK_H) \
2340   $(TREE_FLOW_H) $(TREE_PASS_H) $(TREE_DUMP_H) langhooks.h $(FLAGS_H) \
2341   $(DIAGNOSTIC_H) $(TIMEVAR_H) pointer-set.h domwalk.h
2342tree-nrv.o : tree-nrv.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2343   $(TM_H) $(TREE_H) $(RTL_H) $(FUNCTION_H) $(BASIC_BLOCK_H) $(EXPR_H) \
2344   $(DIAGNOSTIC_H) $(TREE_FLOW_H) $(TIMEVAR_H) $(TREE_DUMP_H) $(TREE_PASS_H) \
2345   langhooks.h
2346tree-ssa-copy.o : tree-ssa-copy.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
2347   $(RTL_H) $(TREE_H) $(TM_P_H) $(EXPR_H) $(GGC_H) output.h $(DIAGNOSTIC_H) \
2348   $(FUNCTION_H) $(TIMEVAR_H) $(TM_H) coretypes.h $(TREE_DUMP_H) \
2349   $(BASIC_BLOCK_H) $(TREE_PASS_H) langhooks.h tree-ssa-propagate.h \
2350   $(FLAGS_H) $(CFGLOOP_H)
2351tree-ssa-propagate.o : tree-ssa-propagate.c $(TREE_FLOW_H) $(CONFIG_H) \
2352   $(SYSTEM_H) $(RTL_H) $(TREE_H) $(TM_P_H) $(EXPR_H) $(GGC_H) output.h \
2353   $(DIAGNOSTIC_H) $(FUNCTION_H) $(TIMEVAR_H) $(TM_H) coretypes.h \
2354   $(TREE_DUMP_H) $(BASIC_BLOCK_H) $(TREE_PASS_H) langhooks.h \
2355   tree-ssa-propagate.h vec.h value-prof.h gt-tree-ssa-propagate.h $(FLAGS_H) \
2356   $(VARRAY_H) $(GIMPLE_H)
2357tree-ssa-dom.o : tree-ssa-dom.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
2358   $(RTL_H) $(TREE_H) $(TM_P_H) $(EXPR_H) $(GGC_H) output.h $(DIAGNOSTIC_H) \
2359   $(FUNCTION_H) $(TIMEVAR_H) $(TM_H) coretypes.h $(TREE_DUMP_H) \
2360   $(BASIC_BLOCK_H) domwalk.h $(TREE_PASS_H) $(FLAGS_H) langhooks.h \
2361   tree-ssa-propagate.h $(CFGLOOP_H) $(PARAMS_H) $(REAL_H)
2362tree-ssa-uncprop.o : tree-ssa-uncprop.c $(TREE_FLOW_H) $(CONFIG_H) \
2363   $(SYSTEM_H) $(RTL_H) $(TREE_H) $(TM_P_H) $(EXPR_H) $(GGC_H) output.h \
2364   $(DIAGNOSTIC_H) $(FUNCTION_H) $(TIMEVAR_H) $(TM_H) coretypes.h \
2365   $(TREE_DUMP_H) $(BASIC_BLOCK_H) domwalk.h $(TREE_PASS_H) $(FLAGS_H) \
2366   langhooks.h tree-ssa-propagate.h $(REAL_H)
2367tree-ssa-threadedge.o : tree-ssa-threadedge.c $(TREE_FLOW_H) $(CONFIG_H) \
2368   $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(FLAGS_H) $(RTL_H) $(TM_P_H) $(GGC_H) \
2369   $(BASIC_BLOCK_H) $(CFGLOOP_H) output.h $(EXPR_H) \
2370   $(FUNCTION_H) $(DIAGNOSTIC_H) $(TIMEVAR_H) $(TREE_DUMP_H) $(TREE_FLOW_H) \
2371   $(REAL_H) $(TREE_PASS_H) tree-ssa-propagate.h langhooks.h \
2372   $(PARAMS_H)
2373tree-ssa-threadupdate.o : tree-ssa-threadupdate.c $(TREE_FLOW_H) $(CONFIG_H) \
2374   $(SYSTEM_H) $(RTL_H) $(TREE_H) $(TM_P_H) $(EXPR_H) $(GGC_H) output.h \
2375   $(DIAGNOSTIC_H) $(FUNCTION_H) $(TM_H) coretypes.h $(TREE_DUMP_H) \
2376   $(BASIC_BLOCK_H) $(FLAGS_H) $(TREE_PASS_H) $(CFGLOOP_H)
2377tree-ssanames.o : tree-ssanames.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2378   $(TM_H) $(TREE_H) $(VARRAY_H) $(GGC_H) $(TREE_FLOW_H) $(TREE_PASS_H)
2379tree-phinodes.o : tree-phinodes.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2380   $(TM_H) $(TREE_H) $(VARRAY_H) $(GGC_H) $(BASIC_BLOCK_H) $(TREE_FLOW_H) \
2381   gt-tree-phinodes.h $(RTL_H) $(TOPLEV_H)  $(GIMPLE_H)
2382domwalk.o : domwalk.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2383   $(BASIC_BLOCK_H) domwalk.h $(GGC_H)
2384tree-ssa-live.o : tree-ssa-live.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
2385   $(TREE_H) $(DIAGNOSTIC_H) $(TM_H) coretypes.h $(TREE_DUMP_H) \
2386   $(TREE_SSA_LIVE_H) $(BITMAP_H) $(TOPLEV_H) debug.h $(FLAGS_H)
2387tree-ssa-copyrename.o : tree-ssa-copyrename.c $(TREE_FLOW_H) $(CONFIG_H) \
2388   $(SYSTEM_H) $(TREE_H) $(DIAGNOSTIC_H) $(FUNCTION_H) $(TIMEVAR_H) \
2389   $(TREE_PASS_H) $(TM_H) coretypes.h $(TREE_DUMP_H) $(TREE_SSA_LIVE_H) \
2390   $(BASIC_BLOCK_H) $(BITMAP_H) $(FLAGS_H) $(HASHTAB_H) langhooks.h \
2391   $(GIMPLE_H) $(TREE_INLINE_H) $(GIMPLE_H)
2392tree-ssa-pre.o : tree-ssa-pre.c $(TREE_FLOW_H) $(CONFIG_H) \
2393   $(SYSTEM_H) $(TREE_H) $(GGC_H) $(DIAGNOSTIC_H) $(TIMEVAR_H) $(FIBHEAP_H) \
2394   $(TM_H) coretypes.h $(TREE_DUMP_H) $(TREE_PASS_H) $(FLAGS_H) langhooks.h \
2395   $(CFGLOOP_H) alloc-pool.h $(BASIC_BLOCK_H) $(BITMAP_H) $(HASHTAB_H) \
2396   $(GIMPLE_H) $(TREE_INLINE_H) tree-iterator.h tree-ssa-sccvn.h $(PARAMS_H) \
2397   $(DBGCNT_H) tree-scalar-evolution.h
2398tree-ssa-sccvn.o : tree-ssa-sccvn.c $(TREE_FLOW_H) $(CONFIG_H) \
2399   $(SYSTEM_H) $(TREE_H) $(GGC_H) $(DIAGNOSTIC_H) $(TIMEVAR_H) $(FIBHEAP_H) \
2400   $(TM_H) coretypes.h $(TREE_DUMP_H) $(TREE_PASS_H) $(FLAGS_H) $(CFGLOOP_H) \
2401   alloc-pool.h $(BASIC_BLOCK_H) $(BITMAP_H) langhooks.h $(HASHTAB_H) $(GIMPLE_H) \
2402   $(TREE_INLINE_H) tree-iterator.h tree-ssa-propagate.h tree-ssa-sccvn.h \
2403   $(PARAMS_H)
2404tree-vrp.o : tree-vrp.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
2405   $(TREE_FLOW_H) $(TREE_PASS_H) $(TREE_DUMP_H) $(DIAGNOSTIC_H) $(GGC_H) \
2406   $(BASIC_BLOCK_H) tree-ssa-propagate.h $(FLAGS_H) $(TREE_DUMP_H) \
2407   $(CFGLOOP_H) $(SCEV_H) $(TIMEVAR_H) $(TOPLEV_H) intl.h
2408tree-cfg.o : tree-cfg.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
2409   $(RTL_H) $(TREE_H) $(TM_P_H) $(EXPR_H) $(GGC_H) $(FLAGS_H) output.h \
2410   $(DIAGNOSTIC_H) $(FUNCTION_H) $(TIMEVAR_H) $(TM_H) coretypes.h \
2411   $(TREE_DUMP_H) $(EXCEPT_H) langhooks.h $(CFGLOOP_H) $(TREE_PASS_H) \
2412   $(CFGLAYOUT_H) $(BASIC_BLOCK_H) hard-reg-set.h $(TOPLEV_H) \
2413   value-prof.h tree-ssa-propagate.h $(TREE_INLINE_H)
2414tree-cfgcleanup.o : tree-cfgcleanup.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
2415   $(RTL_H) $(TREE_H) $(TM_P_H) $(EXPR_H) $(GGC_H) $(FLAGS_H) output.h \
2416   $(DIAGNOSTIC_H) $(TOPLEV_H) $(FUNCTION_H) $(TIMEVAR_H) $(TM_H) coretypes.h \
2417   $(TREE_DUMP_H) $(EXCEPT_H) langhooks.h $(CFGLOOP_H) $(TREE_PASS_H) \
2418   $(CFGLAYOUT_H) $(BASIC_BLOCK_H) hard-reg-set.h $(HASHTAB_H) $(TOPLEV_H) \
2419   tree-ssa-propagate.h $(SCEV_H)
2420tree-tailcall.o : tree-tailcall.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
2421   $(RTL_H) $(TREE_H) $(TM_P_H) $(FUNCTION_H) $(TM_H) coretypes.h \
2422   $(TREE_DUMP_H) $(DIAGNOSTIC_H) $(EXCEPT_H) $(TREE_PASS_H) $(FLAGS_H) langhooks.h \
2423   $(BASIC_BLOCK_H) hard-reg-set.h $(DBGCNT_H)
2424tree-ssa-sink.o : tree-ssa-sink.c $(TREE_FLOW_H) $(CONFIG_H) \
2425   $(SYSTEM_H) $(TREE_H) $(GGC_H) $(DIAGNOSTIC_H) $(TIMEVAR_H) \
2426   $(TM_H) coretypes.h $(TREE_DUMP_H) $(TREE_PASS_H) $(FLAGS_H) alloc-pool.h \
2427   $(BASIC_BLOCK_H) $(BITMAP_H) $(CFGLOOP_H) $(FIBHEAP_H) $(HASHTAB_H) \
2428   langhooks.h $(REAL_H) $(GIMPLE_H) $(TREE_INLINE_H) tree-iterator.h
2429tree-nested.o: tree-nested.c $(CONFIG_H) $(SYSTEM_H) $(TM_H) $(TREE_H) \
2430   $(RTL_H) $(TM_P_H) $(FUNCTION_H) $(TREE_DUMP_H) $(TREE_INLINE_H) \
2431   tree-iterator.h $(GIMPLE_H) $(CGRAPH_H) $(EXPR_H) langhooks.h \
2432   $(GGC_H) gt-tree-nested.h coretypes.h $(TREE_FLOW_H) pointer-set.h
2433tree-if-conv.o: tree-if-conv.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2434   $(TREE_H) $(FLAGS_H) $(TIMEVAR_H) $(BASIC_BLOCK_H) $(TREE_FLOW_H) \
2435   $(CFGLOOP_H) $(RTL_H) $(TREE_DATA_REF_H) $(TREE_PASS_H) $(DIAGNOSTIC_H) \
2436   $(TARGET_H) $(TREE_DUMP_H) $(VARRAY_H)
2437tree-iterator.o : tree-iterator.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) \
2438   coretypes.h $(GGC_H) tree-iterator.h $(GIMPLE_H) gt-tree-iterator.h
2439tree-dfa.o : tree-dfa.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
2440   $(RTL_H) $(TREE_H) $(TM_P_H) $(EXPR_H) $(GGC_H) output.h $(DIAGNOSTIC_H) \
2441   $(TREE_INLINE_H) $(HASHTAB_H) pointer-set.h $(FLAGS_H) $(FUNCTION_H) \
2442   $(TIMEVAR_H) convert.h $(TM_H) coretypes.h langhooks.h $(TREE_DUMP_H) \
2443   $(TREE_PASS_H) $(PARAMS_H) $(CGRAPH_H) $(BASIC_BLOCK_H) hard-reg-set.h \
2444   $(GIMPLE_H)
2445tree-ssa-operands.o : tree-ssa-operands.c $(TREE_FLOW_H) $(CONFIG_H) \
2446   $(SYSTEM_H) $(TREE_H) $(GGC_H) $(DIAGNOSTIC_H) $(TREE_INLINE_H) \
2447   $(FLAGS_H) $(FUNCTION_H) $(TM_H) $(TIMEVAR_H) $(TREE_PASS_H) $(TOPLEV_H) \
2448   coretypes.h langhooks.h $(IPA_REFERENCE_H)
2449tree-eh.o : tree-eh.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
2450   $(RTL_H) $(TREE_H) $(TM_H) $(FLAGS_H) $(FUNCTION_H) $(EXCEPT_H) langhooks.h \
2451   $(GGC_H) $(TREE_PASS_H) coretypes.h $(TIMEVAR_H) $(TM_P_H) pointer-set.h \
2452   $(TREE_DUMP_H) $(TREE_INLINE_H) tree-iterator.h $(TOPLEV_H)
2453tree-ssa-loop.o : tree-ssa-loop.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2454   $(TREE_H) $(RTL_H) $(TM_P_H) hard-reg-set.h $(BASIC_BLOCK_H) output.h \
2455   $(DIAGNOSTIC_H) $(TREE_FLOW_H) $(TREE_DUMP_H) $(TREE_PASS_H) $(TIMEVAR_H) \
2456   $(CFGLOOP_H) $(FLAGS_H) $(TREE_INLINE_H) $(SCEV_H) $(TOPLEV_H) $(TREE_VECTORIZER_H)
2457tree-ssa-loop-unswitch.o : tree-ssa-loop-unswitch.c $(TREE_FLOW_H) \
2458   $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) $(TM_P_H) $(CFGLOOP_H) \
2459   $(PARAMS_H) output.h $(DIAGNOSTIC_H) $(TIMEVAR_H) $(TM_H) \
2460   coretypes.h $(TREE_DUMP_H) $(TREE_PASS_H) $(BASIC_BLOCK_H) hard-reg-set.h \
2461    $(TREE_INLINE_H)
2462tree-ssa-address.o : tree-ssa-address.c $(TREE_FLOW_H) $(CONFIG_H) \
2463   $(SYSTEM_H) $(RTL_H) $(TREE_H) $(TM_P_H) \
2464   output.h $(DIAGNOSTIC_H) $(TIMEVAR_H) $(TM_H) coretypes.h $(TREE_DUMP_H) \
2465   $(TREE_PASS_H) $(FLAGS_H) $(TREE_INLINE_H) $(RECOG_H) insn-config.h \
2466   $(EXPR_H) gt-tree-ssa-address.h $(GGC_H) tree-affine.h $(TARGET_H)
2467tree-ssa-loop-niter.o : tree-ssa-loop-niter.c $(TREE_FLOW_H) $(CONFIG_H) \
2468   $(SYSTEM_H) $(RTL_H) $(TREE_H) $(TM_P_H) $(CFGLOOP_H) $(PARAMS_H) \
2469   $(TREE_INLINE_H) output.h $(DIAGNOSTIC_H) $(TM_H) coretypes.h $(TREE_DUMP_H) \
2470   $(TOPLEV_H) $(FLAGS_H) $(TREE_PASS_H) $(TREE_DATA_REF_H) \
2471   $(BASIC_BLOCK_H) $(GGC_H) hard-reg-set.h intl.h
2472tree-ssa-loop-ivcanon.o : tree-ssa-loop-ivcanon.c $(TREE_FLOW_H) $(CONFIG_H) \
2473   $(SYSTEM_H) $(RTL_H) $(TREE_H) $(TM_P_H) $(CFGLOOP_H) $(PARAMS_H) \
2474   $(TREE_INLINE_H) output.h $(DIAGNOSTIC_H) $(TM_H) coretypes.h $(TREE_DUMP_H) \
2475   $(FLAGS_H) $(TREE_PASS_H) $(SCEV_H) $(BASIC_BLOCK_H) $(GGC_H) \
2476   hard-reg-set.h $(TARGET_H)
2477tree-ssa-loop-ch.o : tree-ssa-loop-ch.c $(TREE_FLOW_H) $(CONFIG_H) \
2478   $(SYSTEM_H) $(RTL_H) $(TREE_H) $(TM_P_H) $(CFGLOOP_H) $(TREE_INLINE_H) \
2479   output.h $(DIAGNOSTIC_H) $(TIMEVAR_H) $(TM_H) coretypes.h $(TREE_DUMP_H) \
2480   $(TREE_PASS_H) $(FLAGS_H) $(BASIC_BLOCK_H) hard-reg-set.h
2481tree-ssa-loop-prefetch.o: tree-ssa-loop-prefetch.c $(TREE_FLOW_H) $(CONFIG_H) \
2482   $(SYSTEM_H) $(RTL_H) $(TREE_H) $(TM_P_H) $(CFGLOOP_H) $(EXPR_H) \
2483   output.h $(DIAGNOSTIC_H) $(TIMEVAR_H) $(TM_H) coretypes.h $(TREE_DUMP_H) \
2484   $(TREE_PASS_H) $(GGC_H) $(RECOG_H) insn-config.h $(HASHTAB_H) \
2485   $(CFGLOOP_H) $(PARAMS_H) langhooks.h $(BASIC_BLOCK_H) hard-reg-set.h \
2486   $(TOPLEV_H) langhooks.h $(TREE_INLINE_H) $(TREE_DATA_REF_H) \
2487   $(OPTABS_H)
2488tree-predcom.o: tree-predcom.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(TM_P_H) \
2489   $(CFGLOOP_H) $(TREE_FLOW_H) $(GGC_H) $(TREE_DATA_REF_H) \
2490   $(PARAMS_H) $(DIAGNOSTIC_H) $(TREE_PASS_H) $(TM_H) coretypes.h \
2491   tree-affine.h $(TREE_INLINE_H)
2492tree-ssa-loop-ivopts.o : tree-ssa-loop-ivopts.c $(TREE_FLOW_H) $(CONFIG_H) \
2493   $(SYSTEM_H) $(RTL_H) $(TREE_H) $(TM_P_H) $(CFGLOOP_H) $(EXPR_H) \
2494   output.h $(DIAGNOSTIC_H) $(TIMEVAR_H) $(TM_H) coretypes.h $(TREE_DUMP_H) \
2495   $(TREE_PASS_H) $(GGC_H) $(RECOG_H) insn-config.h $(HASHTAB_H) $(SCEV_H) \
2496   $(CFGLOOP_H) $(PARAMS_H) langhooks.h $(BASIC_BLOCK_H) hard-reg-set.h \
2497   $(VARRAY_H) tree-affine.h pointer-set.h $(TARGET_H)
2498tree-affine.o : tree-affine.c tree-affine.h $(CONFIG_H) pointer-set.h \
2499   $(SYSTEM_H) $(RTL_H) $(TREE_H) $(TM_P_H) hard-reg-set.h $(GIMPLE_H) \
2500   output.h $(DIAGNOSTIC_H) $(TM_H) coretypes.h $(TREE_DUMP_H) $(FLAGS_H)
2501tree-ssa-loop-manip.o : tree-ssa-loop-manip.c $(TREE_FLOW_H) $(CONFIG_H) \
2502   $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) $(TM_P_H) hard-reg-set.h \
2503   $(BASIC_BLOCK_H) output.h $(DIAGNOSTIC_H) $(TREE_FLOW_H) $(TREE_DUMP_H) \
2504   $(TIMEVAR_H) $(CFGLOOP_H) $(TREE_PASS_H) $(CFGLAYOUT_H) \
2505   $(SCEV_H) $(PARAMS_H) $(TREE_INLINE_H) langhooks.h
2506tree-ssa-loop-im.o : tree-ssa-loop-im.c $(TREE_FLOW_H) $(CONFIG_H) \
2507   $(SYSTEM_H) $(RTL_H) $(TREE_H) $(TM_P_H) $(CFGLOOP_H) domwalk.h \
2508   $(PARAMS_H) output.h $(DIAGNOSTIC_H) $(TIMEVAR_H) $(TM_H) coretypes.h \
2509   $(TREE_DUMP_H) $(TREE_PASS_H) $(FLAGS_H) $(REAL_H) $(BASIC_BLOCK_H) \
2510   hard-reg-set.h pointer-set.h tree-affine.h tree-ssa-propagate.h
2511tree-ssa-math-opts.o : tree-ssa-math-opts.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2512   $(TM_H) $(FLAGS_H) $(TREE_H) $(TREE_FLOW_H) $(REAL_H) $(TIMEVAR_H) \
2513   $(TREE_PASS_H) alloc-pool.h $(BASIC_BLOCK_H) $(TARGET_H) \
2514   $(DIAGNOSTIC_H) $(RTL_H) $(EXPR_H) $(OPTABS_H)
2515tree-ssa-alias.o : tree-ssa-alias.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
2516   $(RTL_H) $(TREE_H) $(TM_P_H) $(EXPR_H) $(GGC_H) $(TREE_INLINE_H) $(FLAGS_H) \
2517   $(FUNCTION_H) $(TIMEVAR_H) convert.h $(TM_H) coretypes.h langhooks.h \
2518   $(TREE_DUMP_H) $(TREE_PASS_H) $(PARAMS_H) $(BASIC_BLOCK_H) $(DIAGNOSTIC_H) \
2519   hard-reg-set.h $(GIMPLE_H) vec.h \
2520   $(IPA_TYPE_ESCAPE_H) vecprim.h pointer-set.h alloc-pool.h
2521tree-ssa-reassoc.o : tree-ssa-reassoc.c $(TREE_FLOW_H) $(CONFIG_H) \
2522   $(SYSTEM_H) $(TREE_H) $(GGC_H) $(DIAGNOSTIC_H) $(TIMEVAR_H) \
2523   $(TM_H) coretypes.h $(TREE_DUMP_H) $(TREE_PASS_H) $(FLAGS_H) \
2524   tree-iterator.h $(REAL_H) $(BASIC_BLOCK_H) $(GIMPLE_H) $(TREE_INLINE_H) \
2525   vec.h langhooks.h alloc-pool.h pointer-set.h $(CFGLOOP_H)
2526tree-optimize.o : tree-optimize.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
2527   $(RTL_H) $(TREE_H) $(TM_P_H) hard-reg-set.h $(EXPR_H) $(GGC_H) output.h \
2528   $(DIAGNOSTIC_H) $(BASIC_BLOCK_H) $(FLAGS_H) $(TIMEVAR_H) $(TM_H) \
2529   coretypes.h $(TREE_DUMP_H) $(TOPLEV_H) $(FUNCTION_H) langhooks.h \
2530   $(FLAGS_H) $(CGRAPH_H) $(PLUGIN_H) \
2531   $(TREE_INLINE_H) tree-mudflap.h $(GGC_H) graph.h $(CGRAPH_H) \
2532   $(TREE_PASS_H) $(CFGLOOP_H) $(EXCEPT_H)
2533
2534c-gimplify.o : c-gimplify.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) \
2535   $(C_TREE_H) $(C_COMMON_H) $(DIAGNOSTIC_H) $(GIMPLE_H) $(VARRAY_H) \
2536   $(FLAGS_H) langhooks.h $(TOPLEV_H) $(RTL_H) $(TREE_FLOW_H) $(LANGHOOKS_DEF_H) \
2537   $(TM_H) coretypes.h $(C_PRETTY_PRINT_H) $(CGRAPH_H) $(BASIC_BLOCK_H) \
2538   hard-reg-set.h $(TREE_DUMP_H) $(TREE_INLINE_H)
2539gimplify.o : gimplify.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(GIMPLE_H) \
2540   $(DIAGNOSTIC_H) $(GIMPLE_H) $(TREE_INLINE_H) $(VARRAY_H) langhooks.h \
2541   $(LANGHOOKS_DEF_H) $(TREE_FLOW_H) $(CGRAPH_H) $(TIMEVAR_H) $(TM_H) \
2542   coretypes.h $(EXCEPT_H) $(FLAGS_H) $(RTL_H) $(FUNCTION_H) $(EXPR_H) output.h \
2543   $(GGC_H) gt-gimplify.h $(HASHTAB_H) $(TARGET_H) $(TOPLEV_H) $(OPTABS_H) \
2544   $(REAL_H) $(SPLAY_TREE_H) vec.h tree-iterator.h tree-pass.h
2545gimple-iterator.o : gimple-iterator.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2546   $(TREE_H) $(GIMPLE_H) $(TREE_FLOW_H) value-prof.h
2547gimple-low.o : gimple-low.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) \
2548   $(DIAGNOSTIC_H) $(GIMPLE_H) $(TREE_INLINE_H) $(VARRAY_H) langhooks.h \
2549   $(LANGHOOKS_DEF_H) $(TREE_FLOW_H) $(TIMEVAR_H) $(TM_H) coretypes.h \
2550   $(EXCEPT_H) $(FLAGS_H) $(RTL_H) $(FUNCTION_H) $(EXPR_H) $(TREE_PASS_H) \
2551   $(HASHTAB_H) $(TOPLEV_H) tree-iterator.h
2552omp-low.o : omp-low.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
2553   $(RTL_H) $(GIMPLE_H) $(TREE_INLINE_H) langhooks.h $(DIAGNOSTIC_H) \
2554   $(TREE_FLOW_H) $(TIMEVAR_H) $(FLAGS_H) $(EXPR_H) $(TOPLEV_H) \
2555   $(TREE_PASS_H) $(GGC_H) $(EXCEPT_H) $(SPLAY_TREE_H) $(OPTABS_H) \
2556   $(CFGLOOP_H) tree-iterator.h gt-omp-low.h
2557tree-browser.o : tree-browser.c tree-browser.def $(CONFIG_H) $(SYSTEM_H) \
2558   $(TREE_H) $(TREE_INLINE_H) $(DIAGNOSTIC_H) $(HASHTAB_H) \
2559   $(TM_H) coretypes.h
2560omega.o : omega.c omega.h $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2561   $(GGC_H) $(TREE_H) $(DIAGNOSTIC_H) varray.h $(TREE_PASS_H) $(PARAMS_H)
2562tree-chrec.o: tree-chrec.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2563   $(GGC_H) $(TREE_H) $(REAL_H) $(SCEV_H) $(TREE_PASS_H) $(PARAMS_H) \
2564   $(DIAGNOSTIC_H) $(CFGLOOP_H) $(TREE_FLOW_H) $(FLAGS_H)
2565tree-scalar-evolution.o: tree-scalar-evolution.c $(CONFIG_H) $(SYSTEM_H) \
2566   coretypes.h $(TM_H) $(GGC_H) $(TREE_H) $(REAL_H) $(RTL_H) \
2567   $(BASIC_BLOCK_H) $(DIAGNOSTIC_H) $(TREE_FLOW_H) $(TREE_DUMP_H) \
2568   $(TIMEVAR_H) $(CFGLOOP_H) $(SCEV_H) $(TREE_PASS_H) $(FLAGS_H) \
2569   gt-tree-scalar-evolution.h
2570tree-data-ref.o: tree-data-ref.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2571   $(GGC_H) $(FLAGS_H) $(TREE_H) $(RTL_H) $(BASIC_BLOCK_H) $(DIAGNOSTIC_H) \
2572   $(TREE_FLOW_H) $(TREE_DUMP_H) $(TIMEVAR_H) $(CFGLOOP_H) \
2573   $(TREE_DATA_REF_H) $(TREE_PASS_H) langhooks.h
2574sese.o: sese.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2575   $(GGC_H) $(TREE_H) $(RTL_H) $(BASIC_BLOCK_H) $(DIAGNOSTIC_H) $(TOPLEV_H) \
2576   $(TREE_FLOW_H) $(TREE_DUMP_H) $(TIMEVAR_H) $(CFGLOOP_H) tree-chrec.h \
2577   $(TREE_DATA_REF_H) tree-scalar-evolution.h tree-pass.h domwalk.h value-prof.h \
2578   pointer-set.h $(GIMPLE_H) sese.h
2579graphite.o: graphite.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2580   $(GGC_H) $(TREE_H) $(RTL_H) $(BASIC_BLOCK_H) $(DIAGNOSTIC_H) $(TOPLEV_H) \
2581   $(TREE_FLOW_H) $(TREE_DUMP_H) $(TIMEVAR_H) $(CFGLOOP_H) $(GIMPLE_H) \
2582   $(PREDICT_H) $(TREE_DATA_REF_H) tree-pass.h graphite.h \
2583   pointer-set.h value-prof.h graphite-ppl.h sese.h \
2584   graphite-scop-detection.h graphite-clast-to-gimple.h \
2585   graphite-poly.h graphite-sese-to-poly.h
2586graphite-blocking.o: graphite-blocking.c $(CONFIG_H) $(SYSTEM_H) \
2587   coretypes.h \
2588   $(TM_H) $(GGC_H) $(TREE_H) $(RTL_H) output.h $(BASIC_BLOCK_H) $(DIAGNOSTIC_H) \
2589   $(TOPLEV_H) $(TREE_FLOW_H) $(TREE_DUMP_H) $(TIMEVAR_H) $(CFGLOOP_H) \
2590   $(GIMPLE_H) $(TREE_DATA_REF_H) tree-pass.h domwalk.h value-prof.h \
2591   graphite.h graphite-poly.h graphite-ppl.h
2592graphite-clast-to-gimple.o: graphite-clast-to-gimple.c $(CONFIG_H) \
2593   $(SYSTEM_H) coretypes.h $(TM_H) \
2594   $(GGC_H) $(TREE_H) $(RTL_H) $(BASIC_BLOCK_H) $(DIAGNOSTIC_H) $(TOPLEV_H) \
2595   $(TREE_FLOW_H) $(TREE_DUMP_H) $(TIMEVAR_H) $(CFGLOOP_H) $(GIMPLE_H) \
2596   $(TREE_DATA_REF_H) tree-pass.h domwalk.h graphite.h \
2597   pointer-set.h value-prof.h graphite-ppl.h sese.h \
2598   graphite-scop-detection.h graphite-clast-to-gimple.h graphite-poly.h \
2599   graphite-dependences.h
2600graphite-dependences.o: graphite-dependences.c $(CONFIG_H) $(SYSTEM_H) \
2601   coretypes.h \
2602   $(TM_H) $(GGC_H) $(TREE_H) $(RTL_H) $(BASIC_BLOCK_H) $(DIAGNOSTIC_H) \
2603   $(TOPLEV_H) $(TREE_FLOW_H) $(TREE_DUMP_H) $(TIMEVAR_H) $(CFGLOOP_H) \
2604   $(GIMPLE_H) $(TREE_DATA_REF_H) tree-pass.h domwalk.h \
2605   graphite.h graphite-poly.h graphite-ppl.h graphite-dependences.h
2606graphite-interchange.o: graphite-interchange.c $(CONFIG_H) $(SYSTEM_H) \
2607   coretypes.h \
2608   $(TM_H) $(GGC_H) $(TREE_H) $(RTL_H) output.h $(BASIC_BLOCK_H) $(DIAGNOSTIC_H) \
2609   $(TOPLEV_H) $(TREE_FLOW_H) $(TREE_DUMP_H) $(TIMEVAR_H) $(CFGLOOP_H) \
2610   $(GIMPLE_H) $(TREE_DATA_REF_H) tree-pass.h domwalk.h value-prof.h \
2611   graphite.h graphite-poly.h graphite-ppl.h
2612graphite-poly.o: graphite-poly.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2613   $(GGC_H) $(TREE_H) $(RTL_H) $(BASIC_BLOCK_H) $(DIAGNOSTIC_H) $(TOPLEV_H) \
2614   $(TREE_FLOW_H) $(TREE_DUMP_H) $(TIMEVAR_H) $(CFGLOOP_H) $(GIMPLE_H) \
2615   $(TREE_DATA_REF_H) tree-pass.h domwalk.h graphite.h graphite-dependences.h \
2616   pointer-set.h value-prof.h graphite-ppl.h sese.h output.h graphite-poly.h
2617graphite-ppl.o: graphite-ppl.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2618   $(GGC_H) graphite-ppl.h
2619graphite-scop-detection.o: graphite-scop-detection.c $(CONFIG_H) $(SYSTEM_H) \
2620   $(GGC_H) $(TREE_H) $(RTL_H) $(BASIC_BLOCK_H) $(DIAGNOSTIC_H) $(TOPLEV_H) \
2621   $(TREE_FLOW_H) $(TREE_DUMP_H) $(TIMEVAR_H) $(CFGLOOP_H) $(GIMPLE_H) \
2622   $(TREE_DATA_REF_H) tree-pass.h domwalk.h graphite.h $(TM_H) \
2623   value-prof.h graphite-ppl.h sese.h pointer-set.h coretypes.h \
2624   graphite-scop-detection.h graphite-poly.h
2625graphite-sese-to-poly.o: graphite-sese-to-poly.c $(CONFIG_H) \
2626   $(SYSTEM_H) coretypes.h $(TM_H) \
2627   $(GGC_H) $(TREE_H) $(RTL_H) $(BASIC_BLOCK_H) $(DIAGNOSTIC_H) $(TOPLEV_H) \
2628   $(TREE_FLOW_H) $(TREE_DUMP_H) $(TIMEVAR_H) $(CFGLOOP_H) $(GIMPLE_H) \
2629   $(TREE_DATA_REF_H) tree-pass.h domwalk.h graphite.h \
2630   pointer-set.h value-prof.h graphite-ppl.h sese.h \
2631   graphite-scop-detection.h graphite-sese-to-poly.h $(PARAMS_H) \
2632   graphite-clast-to-gimple.h graphite-poly.h
2633tree-vect-loop.o: tree-vect-loop.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2634   $(TM_H) $(GGC_H) $(TREE_H) $(BASIC_BLOCK_H) $(DIAGNOSTIC_H) $(TREE_FLOW_H) \
2635   $(TREE_DUMP_H) $(CFGLOOP_H) $(CFGLAYOUT_H) $(EXPR_H) $(RECOG_H) $(OPTABS_H) \
2636   $(TOPLEV_H) $(SCEV_H) $(TREE_VECTORIZER_H)
2637tree-vect-loop-manip.o: tree-vect-loop-manip.c $(CONFIG_H) $(SYSTEM_H) \
2638   coretypes.h $(TM_H) $(GGC_H) $(TREE_H) $(BASIC_BLOCK_H) $(DIAGNOSTIC_H) \
2639   $(TREE_FLOW_H) $(TREE_DUMP_H) $(CFGLOOP_H) $(CFGLAYOUT_H) $(EXPR_H) $(TOPLEV_H) \
2640   $(SCEV_H) $(TREE_VECTORIZER_H) langhooks.h
2641tree-vect-patterns.o: tree-vect-patterns.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2642   $(TM_H) $(GGC_H) $(TREE_H) $(TARGET_H) $(BASIC_BLOCK_H) $(DIAGNOSTIC_H) \
2643   $(TREE_FLOW_H) $(TREE_DUMP_H) $(CFGLOOP_H) $(EXPR_H) $(OPTABS_H) $(PARAMS_H) \
2644   $(TREE_DATA_REF_H) $(TREE_VECTORIZER_H) $(RECOG_H) $(TOPLEV_H)
2645tree-vect-slp.o: tree-vect-slp.c $(CONFIG_H) $(SYSTEM_H) \
2646   coretypes.h $(TM_H) $(GGC_H) $(TREE_H) $(TARGET_H) $(BASIC_BLOCK_H) \
2647   $(DIAGNOSTIC_H) $(TREE_FLOW_H) $(TREE_DUMP_H) $(CFGLOOP_H) $(CFGLAYOUT_H) \
2648   $(EXPR_H) $(RECOG_H) $(OPTABS_H) $(TREE_VECTORIZER_H)
2649tree-vect-stmts.o: tree-vect-stmts.c $(CONFIG_H) $(SYSTEM_H) \
2650   coretypes.h $(TM_H) $(GGC_H) $(TREE_H) $(TARGET_H) $(BASIC_BLOCK_H) \
2651   $(DIAGNOSTIC_H) $(TREE_FLOW_H) $(TREE_DUMP_H) $(CFGLOOP_H) $(CFGLAYOUT_H) \
2652   $(EXPR_H) $(RECOG_H) $(OPTABS_H) $(TOPLEV_H) $(TREE_VECTORIZER_H) langhooks.h
2653tree-vect-data-refs.o: tree-vect-data-refs.c $(CONFIG_H) $(SYSTEM_H) \
2654   coretypes.h $(TM_H) $(GGC_H) $(TREE_H) $(TARGET_H) $(BASIC_BLOCK_H) \
2655   $(DIAGNOSTIC_H) $(TREE_FLOW_H) $(TREE_DUMP_H) $(CFGLOOP_H) \
2656   $(EXPR_H) $(OPTABS_H) $(SCEV_H) $(TREE_VECTORIZER_H) $(TOPLEV_H)
2657tree-vectorizer.o: tree-vectorizer.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2658   $(TM_H) $(GGC_H) $(TREE_H) $(DIAGNOSTIC_H) $(TREE_FLOW_H) $(TREE_DUMP_H) \
2659   $(CFGLOOP_H) $(TREE_PASS_H) $(TREE_VECTORIZER_H) $(TIMEVAR_H)
2660tree-loop-linear.o: tree-loop-linear.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2661   $(TM_H) $(GGC_H) $(OPTABS_H) $(TREE_H) $(RTL_H) $(BASIC_BLOCK_H) \
2662   $(DIAGNOSTIC_H) $(TREE_FLOW_H) $(TREE_DUMP_H) $(TIMEVAR_H) $(CFGLOOP_H) \
2663   $(TREE_PASS_H) $(TREE_DATA_REF_H) $(EXPR_H) $(LAMBDA_H) \
2664   $(TARGET_H) $(OBSTACK_H)
2665tree-loop-distribution.o: tree-loop-distribution.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2666   $(TM_H) $(GGC_H) $(OPTABS_H) $(TREE_H) $(RTL_H) $(BASIC_BLOCK_H) \
2667   $(DIAGNOSTIC_H) $(TREE_FLOW_H) $(TREE_DUMP_H) $(TIMEVAR_H) $(CFGLOOP_H) \
2668   $(TREE_PASS_H) $(TREE_DATA_REF_H) $(EXPR_H) \
2669   $(TARGET_H) langhooks.h $(TREE_VECTORIZER_H)
2670tree-parloops.o: tree-parloops.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2671   $(TREE_FLOW_H) $(TREE_H) $(RTL_H) $(CFGLOOP_H) $(TREE_DATA_REF_H) $(GGC_H) \
2672   $(DIAGNOSTIC_H) $(TREE_PASS_H) langhooks.h gt-tree-parloops.h \
2673   $(TREE_VECTORIZER_H)
2674tree-stdarg.o: tree-stdarg.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2675   $(TREE_H) $(FUNCTION_H) $(DIAGNOSTIC_H) $(TREE_FLOW_H) $(TREE_PASS_H) \
2676   tree-stdarg.h $(TARGET_H) langhooks.h
2677tree-object-size.o: tree-object-size.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2678   $(TM_H) $(TREE_H) $(TOPLEV_H) $(DIAGNOSTIC_H) $(TREE_FLOW_H) \
2679   $(TREE_PASS_H) tree-ssa-propagate.h
2680gimple.o : gimple.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TREE_H) \
2681   $(GGC_H) $(GIMPLE_H) $(TOPLEV_H) $(DIAGNOSTIC_H) gt-gimple.h \
2682   $(TREE_FLOW_H) value-prof.h $(FLAGS_H) $(DEMANGLE_H) \
2683   $(TARGET_H) $(ALIAS_H)
2684gimple-pretty-print.o : gimple-pretty-print.c $(CONFIG_H) $(SYSTEM_H) \
2685   $(TREE_H) $(DIAGNOSTIC_H) $(REAL_H) $(HASHTAB_H) $(TREE_FLOW_H) \
2686   $(TM_H) coretypes.h $(TREE_PASS_H) $(GIMPLE_H) value-prof.h
2687tree-mudflap.o : $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(TREE_INLINE_H) \
2688   $(GIMPLE_H) $(DIAGNOSTIC_H) $(DEMANGLE_H) $(HASHTAB_H) langhooks.h tree-mudflap.h \
2689   $(TM_H) coretypes.h $(TREE_DUMP_H) $(TREE_PASS_H) $(CGRAPH_H) $(GGC_H) \
2690   gt-tree-mudflap.h $(BASIC_BLOCK_H) $(FLAGS_H) $(FUNCTION_H) hard-reg-set.h \
2691   $(RTL_H) $(TM_P_H) $(TREE_FLOW_H) $(TOPLEV_H) $(GIMPLE_H) tree-iterator.h
2692tree-nomudflap.o : $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(TREE_INLINE_H) \
2693   $(C_TREE_H) $(C_COMMON_H) $(GIMPLE_H) $(DIAGNOSTIC_H) $(HASHTAB_H) \
2694   output.h $(VARRAY_H) langhooks.h tree-mudflap.h $(TM_H) coretypes.h \
2695   $(GGC_H) gt-tree-mudflap.h $(TREE_PASS_H) $(TOPLEV_H)
2696tree-pretty-print.o : tree-pretty-print.c $(CONFIG_H) $(SYSTEM_H) \
2697   $(TREE_H) $(DIAGNOSTIC_H) $(REAL_H) $(HASHTAB_H) $(TREE_FLOW_H) \
2698   $(TM_H) coretypes.h tree-iterator.h $(SCEV_H) langhooks.h \
2699   $(TREE_PASS_H) value-prof.h fixed-value.h output.h
2700fold-const.o : fold-const.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2701   $(TREE_H) $(FLAGS_H) $(REAL_H) $(TOPLEV_H) $(HASHTAB_H) $(EXPR_H) $(RTL_H) \
2702   $(GGC_H) $(TM_P_H) langhooks.h $(MD5_H) intl.h fixed-value.h $(TARGET_H) \
2703   $(GIMPLE_H)
2704diagnostic.o : diagnostic.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2705   $(TREE_H) version.h $(TM_P_H) $(FLAGS_H) $(INPUT_H) $(TOPLEV_H) intl.h \
2706   $(DIAGNOSTIC_H) langhooks.h $(LANGHOOKS_DEF_H) diagnostic.def opts.h \
2707   $(PLUGIN_H)
2708opts.o : opts.c opts.h options.h $(TOPLEV_H) $(CONFIG_H) $(SYSTEM_H) \
2709   coretypes.h $(TREE_H) $(TM_H) langhooks.h $(GGC_H) $(EXPR_H) $(RTL_H) \
2710   output.h $(DIAGNOSTIC_H) $(TM_P_H) $(INSN_ATTR_H) intl.h $(TARGET_H) \
2711   $(FLAGS_H) $(PARAMS_H) $(TREE_PASS_H) $(DBGCNT_H) debug.h varray.h \
2712   $(PLUGIN_H) $(EXCEPT_H) $(LTO_STREAMER_H)
2713opts-common.o : opts-common.c opts.h $(CONFIG_H) $(SYSTEM_H) \
2714   coretypes.h intl.h
2715targhooks.o : targhooks.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TREE_H) \
2716   $(EXPR_H) $(TM_H) $(RTL_H) $(TM_P_H) $(FUNCTION_H) output.h $(TOPLEV_H) \
2717   $(MACHMODE_H) $(TARGET_DEF_H) $(TARGET_H) $(GGC_H) gt-targhooks.h \
2718   $(OPTABS_H) $(RECOG_H) reload.h hard-reg-set.h
2719
2720bversion.h: s-bversion; @true
2721s-bversion: BASE-VER
2722	echo "#define BUILDING_GCC_MAJOR `echo $(BASEVER_c) | sed -e 's/^\([0-9]*\).*$$/\1/'`" > bversion.h
2723	echo "#define BUILDING_GCC_MINOR `echo $(BASEVER_c) | sed -e 's/^[0-9]*\.\([0-9]*\).*$$/\1/'`" >> bversion.h
2724	echo "#define BUILDING_GCC_PATCHLEVEL `echo $(BASEVER_c) | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$$/\1/'`" >> bversion.h
2725	echo "#define BUILDING_GCC_VERSION (BUILDING_GCC_MAJOR * 1000 + BUILDING_GCC_MINOR)" >> bversion.h
2726	$(STAMP) s-bversion
2727
2728toplev.o : toplev.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
2729   version.h $(RTL_H) $(FUNCTION_H) $(FLAGS_H) xcoffout.h $(INPUT_H) \
2730   $(INSN_ATTR_H) output.h $(DIAGNOSTIC_H) debug.h insn-config.h intl.h \
2731   $(RECOG_H) Makefile $(TOPLEV_H) dwarf2out.h sdbout.h dbxout.h $(EXPR_H) \
2732   hard-reg-set.h $(BASIC_BLOCK_H) graph.h $(EXCEPT_H) $(REGS_H) $(TIMEVAR_H) \
2733   value-prof.h $(PARAMS_H) $(TM_P_H) reload.h ira.h dwarf2asm.h $(TARGET_H) \
2734   langhooks.h insn-flags.h $(CFGLAYOUT_H) $(CFGLOOP_H) hosthooks.h \
2735   $(CGRAPH_H) $(COVERAGE_H) alloc-pool.h $(GGC_H) $(INTEGRATE_H) \
2736   opts.h params.def tree-mudflap.h $(REAL_H) $(TREE_PASS_H) $(GIMPLE_H) \
2737   tree-ssa-alias.h $(PLUGIN_H)
2738	$(COMPILER) $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) \
2739	  -DTARGET_NAME=\"$(target_noncanonical)\" \
2740	  -c $(srcdir)/toplev.c $(OUTPUT_OPTION)
2741
2742passes.o : passes.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
2743   $(RTL_H) $(FUNCTION_H) $(FLAGS_H) xcoffout.h $(INPUT_H) $(INSN_ATTR_H) output.h \
2744   $(DIAGNOSTIC_H) debug.h insn-config.h intl.h $(RECOG_H) $(TOPLEV_H) \
2745   dwarf2out.h sdbout.h dbxout.h $(EXPR_H) hard-reg-set.h $(BASIC_BLOCK_H) \
2746   graph.h $(EXCEPT_H) $(REGS_H) $(TIMEVAR_H) value-prof.h \
2747   $(PARAMS_H) $(TM_P_H) reload.h dwarf2asm.h $(TARGET_H) \
2748   langhooks.h insn-flags.h $(CFGLAYOUT_H) $(REAL_H) $(CFGLOOP_H) \
2749   hosthooks.h $(CGRAPH_H) $(COVERAGE_H) $(TREE_PASS_H) $(TREE_DUMP_H) \
2750   $(GGC_H) $(INTEGRATE_H) $(CPPLIB_H) opts.h $(TREE_FLOW_H) $(TREE_INLINE_H) \
2751   gt-passes.h $(DF_H) $(PREDICT_H) $(LTO_HEADER_H) $(LTO_SECTION_OUT_H) \
2752   $(PLUGIN_H)
2753
2754plugin.o : plugin.c $(PLUGIN_H) $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2755   $(TOPLEV_H) $(TREE_H) $(TREE_PASS_H) intl.h $(PLUGIN_VERSION_H) $(GGC_H)
2756
2757main.o : main.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TOPLEV_H)
2758
2759host-default.o : host-default.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2760   hosthooks.h $(HOSTHOOKS_DEF_H)
2761
2762rtl-error.o: rtl-error.c $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2763   $(INSN_ATTR_H) insn-config.h $(INPUT_H) $(TOPLEV_H) intl.h $(DIAGNOSTIC_H) \
2764   $(CONFIG_H) varray.h
2765
2766rtl.o : rtl.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2767  $(GGC_H) $(BCONFIG_H) insn-notes.def reg-notes.def $(TOPLEV_H) $(REAL_H)
2768
2769print-rtl.o : print-rtl.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2770    $(RTL_H) $(TREE_H) hard-reg-set.h $(BASIC_BLOCK_H) $(FLAGS_H) \
2771    $(BCONFIG_H) $(REAL_H) $(DIAGNOSTIC_H) cselib.h $(TREE_PASS_H)
2772rtlanal.o : rtlanal.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TOPLEV_H) \
2773   $(RTL_H) hard-reg-set.h $(TM_P_H) insn-config.h $(RECOG_H) $(REAL_H) \
2774   $(FLAGS_H) $(REGS_H) output.h $(TARGET_H) $(FUNCTION_H) $(TREE_H) \
2775   $(DF_H)
2776
2777varasm.o : varasm.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
2778   $(RTL_H) $(FLAGS_H) $(FUNCTION_H) $(EXPR_H) hard-reg-set.h $(REGS_H) \
2779   output.h $(TOPLEV_H) xcoffout.h debug.h $(GGC_H) $(TM_P_H) \
2780   $(HASHTAB_H) $(TARGET_H) langhooks.h gt-varasm.h $(BASIC_BLOCK_H) \
2781   $(CFGLAYOUT_H) $(CGRAPH_H) targhooks.h tree-mudflap.h $(REAL_H) \
2782   tree-iterator.h
2783function.o : function.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2784   $(TREE_H) $(CFGLAYOUT_H) $(GIMPLE_H) $(FLAGS_H) $(FUNCTION_H) $(EXPR_H) \
2785   $(OPTABS_H) libfuncs.h $(REGS_H) hard-reg-set.h insn-config.h $(RECOG_H) \
2786   output.h $(TOPLEV_H) $(EXCEPT_H) $(HASHTAB_H) $(GGC_H) $(TM_P_H) langhooks.h \
2787   gt-function.h $(TARGET_H) $(BASIC_BLOCK_H) $(INTEGRATE_H) $(PREDICT_H) \
2788   $(TREE_PASS_H) $(DF_H) $(TIMEVAR_H) vecprim.h
2789statistics.o : statistics.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2790   $(TREE_PASS_H) $(TREE_DUMP_H) $(HASHTAB_H) statistics.h $(TM_H) $(FUNCTION_H)
2791stmt.o : stmt.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2792   $(TREE_H) $(FLAGS_H) $(FUNCTION_H) insn-config.h hard-reg-set.h $(EXPR_H) \
2793   libfuncs.h $(EXCEPT_H) $(RECOG_H) $(TOPLEV_H) output.h $(GGC_H) $(TM_P_H) \
2794   langhooks.h $(PREDICT_H) $(OPTABS_H) $(TARGET_H) $(GIMPLE_H) $(MACHMODE_H) \
2795   $(REGS_H) alloc-pool.h $(PRETTY_PRINT_H)
2796except.o : except.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2797   $(TREE_H) $(FLAGS_H) $(EXCEPT_H) $(FUNCTION_H) $(EXPR_H) libfuncs.h \
2798   langhooks.h insn-config.h hard-reg-set.h $(BASIC_BLOCK_H) output.h \
2799   dwarf2asm.h dwarf2out.h $(TOPLEV_H) $(HASHTAB_H) intl.h $(GGC_H) \
2800   gt-except.h $(CGRAPH_H) $(INTEGRATE_H) $(DIAGNOSTIC_H) $(DWARF2_H) \
2801   $(TARGET_H) $(TM_P_H) $(TREE_PASS_H) $(TIMEVAR_H) $(TREE_FLOW_H)
2802expr.o : expr.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2803   $(TREE_H) $(FLAGS_H) $(FUNCTION_H) $(REGS_H) $(EXPR_H) $(OPTABS_H) \
2804   libfuncs.h $(INSN_ATTR_H) insn-config.h $(RECOG_H) output.h \
2805   typeclass.h hard-reg-set.h $(TOPLEV_H) hard-reg-set.h $(EXCEPT_H) reload.h \
2806   $(GGC_H) langhooks.h intl.h $(TM_P_H) $(REAL_H) $(TARGET_H) \
2807   tree-iterator.h gt-expr.h $(MACHMODE_H) $(TIMEVAR_H) $(TREE_FLOW_H) \
2808   $(TREE_PASS_H) $(DF_H) $(DIAGNOSTIC_H) vecprim.h $(SSAEXPAND_H)
2809dojump.o : dojump.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(TREE_H) \
2810   $(FLAGS_H) $(FUNCTION_H) $(EXPR_H) $(OPTABS_H) $(INSN_ATTR_H) insn-config.h \
2811   langhooks.h $(GGC_H) gt-dojump.h vecprim.h $(BASIC_BLOCK_H) output.h
2812builtins.o : builtins.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2813   $(TREE_H) $(GIMPLE_H) $(FLAGS_H) $(TARGET_H) $(FUNCTION_H) $(REGS_H) \
2814   $(EXPR_H) $(OPTABS_H) insn-config.h $(RECOG_H) output.h typeclass.h \
2815   hard-reg-set.h $(TOPLEV_H) hard-reg-set.h $(EXCEPT_H) $(TM_P_H) $(PREDICT_H) \
2816   libfuncs.h $(REAL_H) langhooks.h $(BASIC_BLOCK_H) tree-mudflap.h \
2817   $(BUILTINS_DEF) $(MACHMODE_H) $(DIAGNOSTIC_H) $(TREE_FLOW_H) value-prof.h
2818calls.o : calls.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2819   $(TREE_H) $(FLAGS_H) $(EXPR_H) $(OPTABS_H) langhooks.h $(TARGET_H) \
2820   libfuncs.h $(REGS_H) $(TOPLEV_H) output.h $(FUNCTION_H) $(TIMEVAR_H) $(TM_P_H) \
2821   $(CGRAPH_H) $(EXCEPT_H) sbitmap.h $(DBGCNT_H) $(TREE_FLOW_H)
2822expmed.o : expmed.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(TREE_H) \
2823   $(FLAGS_H) insn-config.h $(EXPR_H) $(OPTABS_H) $(RECOG_H) $(REAL_H) \
2824   $(TOPLEV_H) $(TM_P_H) langhooks.h $(DF_H) $(TARGET_H)
2825explow.o : explow.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(TREE_H) \
2826   $(FLAGS_H) hard-reg-set.h insn-config.h $(EXPR_H) $(OPTABS_H) $(RECOG_H) \
2827   $(TOPLEV_H) $(EXCEPT_H) $(FUNCTION_H) $(GGC_H) $(TM_P_H) langhooks.h gt-explow.h \
2828   $(TARGET_H) output.h
2829optabs.o : optabs.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2830   $(TREE_H) $(FLAGS_H) insn-config.h $(EXPR_H) $(OPTABS_H) libfuncs.h \
2831   $(RECOG_H) reload.h $(TOPLEV_H) $(GGC_H) $(REAL_H) $(TM_P_H) $(EXCEPT_H) \
2832   gt-optabs.h $(BASIC_BLOCK_H) $(TARGET_H) $(FUNCTION_H)
2833dbxout.o : dbxout.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
2834   $(RTL_H) $(FLAGS_H) $(REGS_H) debug.h $(TM_P_H) $(TARGET_H) $(FUNCTION_H) \
2835   langhooks.h insn-config.h reload.h $(GSTAB_H) xcoffout.h output.h dbxout.h \
2836   $(TOPLEV_H) $(GGC_H) $(OBSTACK_H) $(EXPR_H) gt-dbxout.h
2837debug.o : debug.c debug.h $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H)
2838sdbout.o : sdbout.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) debug.h \
2839   $(TREE_H) $(GGC_H) $(RTL_H) $(REGS_H) $(FLAGS_H) insn-config.h \
2840   output.h $(TOPLEV_H) $(TM_P_H) gsyms.h langhooks.h $(TARGET_H) sdbout.h \
2841   gt-sdbout.h reload.h $(VARRAY_H)
2842dwarf2out.o : dwarf2out.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2843   $(TREE_H) version.h $(RTL_H) $(DWARF2_H) debug.h $(FLAGS_H) insn-config.h \
2844   output.h $(DIAGNOSTIC_H) $(REAL_H) hard-reg-set.h $(REGS_H) $(EXPR_H) \
2845   libfuncs.h $(TOPLEV_H) dwarf2out.h reload.h $(GGC_H) $(EXCEPT_H) dwarf2asm.h \
2846   $(TM_P_H) langhooks.h $(HASHTAB_H) gt-dwarf2out.h $(TARGET_H) $(CGRAPH_H) \
2847   $(MD5_H) $(INPUT_H) $(FUNCTION_H) $(VARRAY_H) $(GIMPLE_H) $(TREE_PASS_H)
2848dwarf2asm.o : dwarf2asm.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2849   $(FLAGS_H) $(RTL_H) $(TREE_H) output.h dwarf2asm.h $(TM_P_H) $(GGC_H) \
2850   gt-dwarf2asm.h $(DWARF2_H) $(SPLAY_TREE_H) $(TARGET_H)
2851vmsdbgout.o : vmsdbgout.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) version.h \
2852   $(FLAGS_H) $(RTL_H) output.h vmsdbg.h debug.h langhooks.h $(FUNCTION_H) $(TARGET_H)
2853xcoffout.o : xcoffout.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2854   $(TREE_H) $(RTL_H) xcoffout.h $(FLAGS_H) $(TOPLEV_H) output.h dbxout.h \
2855   $(GGC_H) $(TARGET_H) debug.h $(GSTAB_H) xcoff.h
2856emit-rtl.o : emit-rtl.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2857   $(TREE_H) $(FLAGS_H) $(FUNCTION_H) $(REGS_H) insn-config.h $(RECOG_H) \
2858   $(GGC_H) $(EXPR_H) hard-reg-set.h $(BITMAP_H) $(TOPLEV_H) $(BASIC_BLOCK_H) \
2859   $(HASHTAB_H) $(TM_P_H) debug.h langhooks.h $(TREE_PASS_H) gt-emit-rtl.h \
2860   $(REAL_H) $(DF_H) $(PARAMS_H) $(TARGET_H)
2861real.o : real.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
2862   $(TOPLEV_H) $(TM_P_H) $(REAL_H) dfp.h
2863dfp.o : dfp.c dfp.h $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H)	$(TREE_H) \
2864   $(TOPLEV_H) $(TM_P_H) $(REAL_H) $(DECNUM_H)
2865fixed-value.o: fixed-value.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2866   $(TREE_H) fixed-value.h $(REAL_H) $(TOPLEV_H)
2867integrate.o : integrate.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2868   $(RTL_H) $(TREE_H) $(FLAGS_H) debug.h $(INTEGRATE_H) insn-config.h \
2869   $(EXPR_H) $(REAL_H) $(REGS_H) intl.h $(FUNCTION_H) output.h $(RECOG_H) \
2870   $(EXCEPT_H) $(TOPLEV_H) $(PARAMS_H) $(TM_P_H) $(TARGET_H) langhooks.h \
2871   gt-integrate.h $(GGC_H) $(TREE_PASS_H) $(DF_H)
2872jump.o : jump.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2873   $(FLAGS_H) hard-reg-set.h $(REGS_H) insn-config.h $(RECOG_H) $(EXPR_H) \
2874   $(REAL_H) $(EXCEPT_H) $(FUNCTION_H) $(TREE_PASS_H) $(DIAGNOSTIC_H) \
2875   $(TOPLEV_H) $(INSN_ATTR_H) $(TM_P_H) reload.h $(PREDICT_H) \
2876   $(TIMEVAR_H) $(TARGET_H)
2877simplify-rtx.o : simplify-rtx.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2878   $(RTL_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) $(REAL_H) insn-config.h \
2879   $(RECOG_H) $(EXPR_H) $(TOPLEV_H) output.h $(FUNCTION_H) $(GGC_H) $(TM_P_H) \
2880   $(TREE_H) $(TARGET_H)
2881cgraph.o : cgraph.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
2882   langhooks.h $(TOPLEV_H) $(FLAGS_H) $(GGC_H) $(TARGET_H) $(CGRAPH_H) \
2883   gt-cgraph.h output.h intl.h $(BASIC_BLOCK_H) debug.h $(HASHTAB_H) \
2884   $(TREE_INLINE_H) $(TREE_DUMP_H) $(TREE_FLOW_H) cif-code.def \
2885   value-prof.h $(EXCEPT_H)
2886cgraphunit.o : cgraphunit.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2887   $(TREE_H) langhooks.h $(TREE_INLINE_H) $(TOPLEV_H) $(FLAGS_H) $(GGC_H) \
2888   $(TARGET_H) $(CGRAPH_H) intl.h pointer-set.h $(FUNCTION_H) $(GIMPLE_H) \
2889   $(TREE_FLOW_H) $(TREE_PASS_H) debug.h $(DIAGNOSTIC_H) \
2890   $(FIBHEAP_H) output.h $(PARAMS_H) $(RTL_H) $(TIMEVAR_H) $(IPA_PROP_H) \
2891   gt-cgraphunit.h tree-iterator.h $(COVERAGE_H) $(TREE_DUMP_H)
2892cgraphbuild.o : cgraphbuild.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2893   $(TREE_H) langhooks.h $(CGRAPH_H) intl.h pointer-set.h $(GIMPLE_H) \
2894   $(TREE_FLOW_H) $(TREE_PASS_H)
2895varpool.o : varpool.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2896   $(TREE_H) $(CGRAPH_H) langhooks.h $(DIAGNOSTIC_H) $(HASHTAB_H) \
2897   $(GGC_H) $(TIMEVAR_H) debug.h $(TARGET_H) output.h $(GIMPLE_H) \
2898   $(TREE_FLOW_H) gt-varpool.h
2899ipa.o : ipa.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(CGRAPH_H) \
2900   $(TREE_PASS_H) $(TIMEVAR_H) $(GIMPLE_H) $(GGC_H)
2901ipa-prop.o : ipa-prop.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2902   langhooks.h $(GGC_H) $(TARGET_H) $(CGRAPH_H) $(IPA_PROP_H) $(DIAGNOSTIC_H) \
2903   $(TREE_FLOW_H) $(TM_H) $(TREE_PASS_H) $(FLAGS_H) $(TREE_H) \
2904   $(TREE_INLINE_H) $(TIMEVAR_H)
2905ipa-cp.o : ipa-cp.c $(CONFIG_H) $(SYSTEM_H) coretypes.h  \
2906   $(TREE_H) $(TARGET_H) $(CGRAPH_H) $(IPA_PROP_H) $(TREE_FLOW_H) \
2907   $(TREE_PASS_H) $(FLAGS_H) $(TIMEVAR_H) $(DIAGNOSTIC_H) $(TREE_DUMP_H) \
2908   $(TREE_INLINE_H) $(FIBHEAP_H) $(PARAMS_H)
2909matrix-reorg.o : matrix-reorg.c $(CONFIG_H) $(SYSTEM_H) coretypes.h  \
2910   $(TM_H) $(TREE_H) $(RTL_H) $(TREE_INLINE_H) $(TREE_FLOW_H) \
2911   tree-flow-inline.h langhooks.h $(HASHTAB_H) $(TOPLEV_H) $(FLAGS_H) $(GGC_H) \
2912   debug.h $(TARGET_H) $(CGRAPH_H) $(DIAGNOSTIC_H) $(TIMEVAR_H) $(PARAMS_H) \
2913   $(FIBHEAP_H) intl.h $(FUNCTION_H) $(BASIC_BLOCK_H) $(CFGLOOP_H) \
2914   tree-iterator.h $(TREE_PASS_H) opts.h $(TREE_DATA_REF_H) tree-ssa-sccvn.h
2915ipa-inline.o : ipa-inline.c gt-ipa-inline.h $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
2916   $(TREE_H) langhooks.h $(TREE_INLINE_H) $(FLAGS_H) $(CGRAPH_H) intl.h \
2917   $(DIAGNOSTIC_H) $(FIBHEAP_H) $(PARAMS_H) $(TIMEVAR_H) $(TREE_PASS_H) \
2918   $(HASHTAB_H) $(COVERAGE_H) $(GGC_H) $(TREE_FLOW_H) $(RTL_H) $(IPA_PROP_H) $(EXCEPT_H)
2919ipa-utils.o : ipa-utils.c $(IPA_UTILS_H) $(CONFIG_H) $(SYSTEM_H) \
2920   coretypes.h $(TM_H) $(TREE_H) $(TREE_FLOW_H) $(TREE_INLINE_H) langhooks.h \
2921   pointer-set.h $(GGC_H) $(GIMPLE_H) $(SPLAY_TREE_H) \
2922   $(CGRAPH_H) output.h $(FLAGS_H) $(TREE_PASS_H) $(TIMEVAR_H) $(DIAGNOSTIC_H)
2923ipa-reference.o : ipa-reference.c $(CONFIG_H) $(SYSTEM_H) \
2924   coretypes.h $(TM_H) $(TREE_H) $(TREE_FLOW_H) $(TREE_INLINE_H) langhooks.h \
2925   pointer-set.h $(GGC_H) $(IPA_REFERENCE_H) $(IPA_UTILS_H) $(SPLAY_TREE_H) \
2926   $(GIMPLE_H) $(CGRAPH_H) output.h $(FLAGS_H) $(TREE_PASS_H) \
2927   $(TIMEVAR_H) $(DIAGNOSTIC_H) $(FUNCTION_H) gt-ipa-reference.h \
2928   $(LTO_STREAMER_H)
2929ipa-pure-const.o : ipa-pure-const.c $(CONFIG_H) $(SYSTEM_H) \
2930   coretypes.h $(TM_H) $(TREE_H) $(TREE_FLOW_H) $(TREE_INLINE_H) langhooks.h \
2931   pointer-set.h $(GGC_H) $(IPA_UTILS_H) $(TARGET_H) \
2932   $(GIMPLE_H) $(CGRAPH_H) output.h $(FLAGS_H) $(TREE_PASS_H) $(TIMEVAR_H) \
2933   $(DIAGNOSTIC_H) $(CFGLOOP_H) $(SCEV_H) $(LTO_STREAMER_H)
2934ipa-type-escape.o : ipa-type-escape.c $(CONFIG_H) $(SYSTEM_H) \
2935   coretypes.h $(TM_H) $(TREE_H) $(TREE_FLOW_H) $(TREE_INLINE_H) langhooks.h \
2936   pointer-set.h $(GGC_H) $(IPA_TYPE_ESCAPE_H) $(IPA_UTILS_H) $(SPLAY_TREE_H) \
2937   $(GIMPLE_H) $(CGRAPH_H) output.h $(FLAGS_H) $(TREE_PASS_H) \
2938   $(TIMEVAR_H) $(DIAGNOSTIC_H) $(FUNCTION_H)
2939ipa-struct-reorg.o: ipa-struct-reorg.c ipa-struct-reorg.h $(CONFIG_H) $(SYSTEM_H) \
2940   coretypes.h $(TM_H) $(GGC_H) $(TREE_H) $(RTL_H) $(GIMPLE_H) tree-inline.h \
2941   $(TREE_FLOW_H) langhooks.h pointer-set.h $(HASHTAB_H) $(TOPLEV_H) \
2942   $(FLAGS_H) debug.h $(TARGET_H) $(CGRAPH_H) $(DIAGNOSTIC_H) $(TIMEVAR_H) \
2943   $(PARAMS_H) $(FIBHEAP_H) intl.h $(FUNCTION_H) $(BASIC_BLOCK_H) tree-iterator.h \
2944   $(TREE_PASS_H) opts.h $(IPA_TYPE_ESCAPE_H) $(TREE_DUMP_H) \
2945   $(GIMPLE_H)
2946
2947coverage.o : coverage.c $(GCOV_IO_H) $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2948   $(TM_H) $(RTL_H) $(TREE_H) $(FLAGS_H) output.h $(REGS_H) $(EXPR_H) \
2949   $(FUNCTION_H) $(TOPLEV_H) $(GGC_H) langhooks.h $(COVERAGE_H) gt-coverage.h \
2950   $(HASHTAB_H) tree-iterator.h $(CGRAPH_H) $(TREE_PASS_H) gcov-io.c $(TM_P_H)
2951cselib.o : cselib.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2952   $(REGS_H) hard-reg-set.h $(FLAGS_H) $(REAL_H) insn-config.h $(RECOG_H) \
2953   $(EMIT_RTL_H) $(TOPLEV_H) output.h $(FUNCTION_H) $(TREE_PASS_H) \
2954   cselib.h gt-cselib.h $(GGC_H) $(TM_P_H) $(PARAMS_H) alloc-pool.h \
2955   $(HASHTAB_H) $(TARGET_H)
2956cse.o : cse.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(REGS_H) \
2957   hard-reg-set.h $(FLAGS_H) insn-config.h $(RECOG_H) $(EXPR_H) $(TOPLEV_H) \
2958   output.h $(FUNCTION_H) $(BASIC_BLOCK_H) $(GGC_H) $(TM_P_H) $(TIMEVAR_H) \
2959   $(EXCEPT_H) $(TARGET_H) $(PARAMS_H) rtlhooks-def.h $(TREE_PASS_H) \
2960   $(REAL_H) $(DF_H) $(DBGCNT_H)
2961dce.o : dce.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2962   $(TREE_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) $(EXCEPT_H) $(DF_H) cselib.h \
2963   $(DBGCNT_H) dce.h $(TIMEVAR_H) $(TREE_PASS_H) $(DBGCNT_H) $(TM_P_H)
2964dse.o : dse.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2965   $(TREE_H) $(TM_P_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h \
2966   $(RECOG_H) $(EXPR_H) $(DF_H) cselib.h $(DBGCNT_H) $(TIMEVAR_H) \
2967   $(TREE_PASS_H) alloc-pool.h $(ALIAS_H) dse.h $(OPTABS_H) $(TARGET_H)
2968fwprop.o : fwprop.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2969   $(TOPLEV_H) insn-config.h $(RECOG_H) $(FLAGS_H) $(OBSTACK_H) $(BASIC_BLOCK_H) \
2970   output.h $(DF_H) alloc-pool.h $(TIMEVAR_H) $(TREE_PASS_H) $(TARGET_H) \
2971   $(TM_P_H) $(CFGLOOP_H) $(EMIT_RTL_H) domwalk.h
2972web.o : web.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2973   hard-reg-set.h $(FLAGS_H) $(BASIC_BLOCK_H) $(FUNCTION_H) output.h $(TOPLEV_H) \
2974   $(DF_H) $(OBSTACK_H) $(TIMEVAR_H) $(TREE_PASS_H)
2975gcse.o : gcse.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2976   $(REGS_H) hard-reg-set.h $(FLAGS_H) $(REAL_H) insn-config.h $(GGC_H) \
2977   $(RECOG_H) $(EXPR_H) $(BASIC_BLOCK_H) $(FUNCTION_H) output.h $(TOPLEV_H) \
2978   $(TM_P_H) $(PARAMS_H) cselib.h $(EXCEPT_H) gt-gcse.h $(TREE_H) $(TIMEVAR_H) \
2979   intl.h $(OBSTACK_H) $(TREE_PASS_H) $(DF_H) $(DBGCNT_H) $(TARGET_H)
2980store-motion.o : store-motion.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
2981   $(REGS_H) hard-reg-set.h $(FLAGS_H) $(REAL_H) insn-config.h $(GGC_H) \
2982   $(RECOG_H) $(EXPR_H) $(BASIC_BLOCK_H) $(FUNCTION_H) output.h $(TOPLEV_H) \
2983   $(TM_P_H) $(EXCEPT_H) $(TREE_H) $(TIMEVAR_H) \
2984   intl.h $(OBSTACK_H) $(TREE_PASS_H) $(DF_H) $(DBGCNT_H)
2985resource.o : resource.c $(CONFIG_H) $(RTL_H) hard-reg-set.h $(SYSTEM_H) \
2986   coretypes.h $(TM_H) $(REGS_H) $(FLAGS_H) output.h $(RESOURCE_H) $(DF_H) \
2987   $(FUNCTION_H) $(TOPLEV_H) $(INSN_ATTR_H) $(EXCEPT_H) $(PARAMS_H) $(TM_P_H)
2988lcm.o : lcm.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(REGS_H) \
2989   hard-reg-set.h $(FLAGS_H) insn-config.h $(INSN_ATTR_H) $(RECOG_H) \
2990   $(BASIC_BLOCK_H) $(TM_P_H) $(FUNCTION_H) output.h $(REAL_H)
2991mode-switching.o : mode-switching.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
2992   $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h \
2993   $(INSN_ATTR_H) $(RECOG_H) $(BASIC_BLOCK_H) $(TM_P_H) $(FUNCTION_H) \
2994   output.h $(TREE_PASS_H) $(TIMEVAR_H) $(REAL_H) $(DF_H)
2995tree-ssa-dce.o : tree-ssa-dce.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) \
2996    $(RTL_H) $(TM_P_H) $(TREE_FLOW_H) $(DIAGNOSTIC_H) $(TIMEVAR_H) $(TM_H) \
2997    coretypes.h $(TREE_DUMP_H) $(TREE_PASS_H) $(FLAGS_H) $(BASIC_BLOCK_H) \
2998    $(GGC_H) hard-reg-set.h $(OBSTACK_H) $(GIMPLE_H) $(CFGLOOP_H) $(SCEV_H)
2999tree-call-cdce.o : tree-call-cdce.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) \
3000    $(RTL_H) $(TM_P_H) $(TREE_FLOW_H) $(DIAGNOSTIC_H) $(TIMEVAR_H) $(TM_H) \
3001    coretypes.h $(TREE_DUMP_H) $(TREE_PASS_H) $(FLAGS_H) $(BASIC_BLOCK_H) \
3002    $(GGC_H) hard-reg-set.h $(OBSTACK_H) $(GIMPLE_H)
3003tree-ssa-ccp.o : tree-ssa-ccp.c $(TREE_FLOW_H) $(CONFIG_H) \
3004   $(SYSTEM_H) $(RTL_H) $(TREE_H) $(TM_P_H) $(EXPR_H) $(GGC_H) output.h \
3005   $(DIAGNOSTIC_H) $(FUNCTION_H) $(TIMEVAR_H) $(TM_H) coretypes.h \
3006   $(TREE_DUMP_H) $(BASIC_BLOCK_H) $(TREE_PASS_H) langhooks.h \
3007   tree-ssa-propagate.h value-prof.h $(FLAGS_H) $(TARGET_H) $(TOPLEV_H) \
3008   $(DBGCNT_H)
3009tree-sra.o : tree-sra.c $(CONFIG_H) $(SYSTEM_H) coretypes.h alloc-pool.h \
3010   $(TM_H) $(TREE_H) $(GIMPLE_H) $(CGRAPH_H) $(TREE_FLOW_H) $(IPA_PROP_H) \
3011   $(DIAGNOSTIC_H) statistics.h $(TREE_DUMP_H) $(TIMEVAR_H) $(PARAMS_H) \
3012   $(TARGET_H) $(FLAGS_H) $(EXPR_H) $(TREE_INLINE_H)
3013tree-switch-conversion.o : tree-switch-conversion.c $(CONFIG_H) $(SYSTEM_H) \
3014    $(TREE_H) $(TM_P_H) $(TREE_FLOW_H) $(DIAGNOSTIC_H) $(TREE_INLINE_H) \
3015    $(TIMEVAR_H) $(TM_H) coretypes.h $(TREE_DUMP_H) $(GIMPLE_H) \
3016    $(TREE_PASS_H) $(FLAGS_H) $(EXPR_H) $(BASIC_BLOCK_H) output.h \
3017    $(GGC_H) $(OBSTACK_H) $(PARAMS_H) $(CPPLIB_H) $(PARAMS_H) langhooks.h
3018tree-complex.o : tree-complex.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TREE_H) \
3019    $(TM_H) $(RTL_H) $(REAL_H) $(FLAGS_H) $(TREE_FLOW_H) $(GIMPLE_H) \
3020    tree-iterator.h $(TREE_PASS_H) tree-ssa-propagate.h $(DIAGNOSTIC_H)
3021tree-vect-generic.o : tree-vect-generic.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) \
3022    $(TM_H) $(TREE_FLOW_H) $(GIMPLE_H) tree-iterator.h $(TREE_PASS_H) \
3023    $(FLAGS_H) $(OPTABS_H) $(RTL_H) $(MACHMODE_H) $(EXPR_H) \
3024    langhooks.h $(FLAGS_H) $(DIAGNOSTIC_H) gt-tree-vect-generic.h $(GGC_H) \
3025    coretypes.h insn-codes.h
3026df-core.o : df-core.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3027   insn-config.h $(RECOG_H) $(FUNCTION_H) $(REGS_H) alloc-pool.h \
3028   hard-reg-set.h $(BASIC_BLOCK_H) $(DF_H) $(BITMAP_H) sbitmap.h $(TIMEVAR_H) \
3029   $(TM_P_H) $(FLAGS_H) output.h $(TREE_PASS_H) $(PARAMS_H)
3030df-problems.o : df-problems.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3031   $(RTL_H) insn-config.h $(RECOG_H) $(FUNCTION_H) $(REGS_H) alloc-pool.h \
3032   hard-reg-set.h $(BASIC_BLOCK_H) $(DF_H) $(BITMAP_H) sbitmap.h $(TIMEVAR_H) \
3033   $(TM_P_H) $(FLAGS_H) output.h $(EXCEPT_H) dce.h vecprim.h
3034df-scan.o : df-scan.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3035   insn-config.h $(RECOG_H) $(FUNCTION_H) $(REGS_H) alloc-pool.h \
3036   hard-reg-set.h $(BASIC_BLOCK_H) $(DF_H) $(BITMAP_H) sbitmap.h $(TIMEVAR_H) \
3037   $(TM_P_H) $(FLAGS_H) $(TARGET_H) $(TARGET_DEF_H) $(TREE_H) output.h \
3038   $(TREE_PASS_H)
3039df-byte-scan.o : df-byte-scan.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3040   $(TM_P_H) $(DF_H) output.h $(DBGCNT_H)
3041regstat.o : regstat.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3042   $(TM_P_H) $(FLAGS_H) $(REGS_H) output.h $(EXCEPT_H) hard-reg-set.h \
3043   $(BASIC_BLOCK_H) $(TIMEVAR_H) $(DF_H)
3044var-tracking.o : var-tracking.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3045   $(RTL_H) $(TREE_H) hard-reg-set.h insn-config.h reload.h $(FLAGS_H) \
3046   $(BASIC_BLOCK_H) output.h sbitmap.h alloc-pool.h $(FIBHEAP_H) $(HASHTAB_H) \
3047   $(REGS_H) $(EXPR_H) $(TIMEVAR_H) $(TREE_PASS_H) $(TREE_FLOW_H) \
3048   cselib.h $(TARGET_H) $(TOPLEV_H) $(PARAMS_H) $(DIAGNOSTIC_H) pointer-set.h \
3049   $(RECOG_H)
3050profile.o : profile.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3051   $(TREE_H) $(FLAGS_H) output.h $(REGS_H) $(EXPR_H) $(FUNCTION_H) \
3052   $(TOPLEV_H) $(COVERAGE_H) $(TREE_FLOW_H) value-prof.h cfghooks.h \
3053   $(CFGLOOP_H) $(TIMEVAR_H) $(TREE_PASS_H) profile.h
3054mcf.o : mcf.c profile.h $(CONFIG_H) $(SYSTEM_H) $(TM_H) coretypes.h \
3055   $(BASIC_BLOCK_H) output.h langhooks.h $(GCOV_IO_H) $(TREE_H)
3056tree-profile.o : tree-profile.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
3057   $(TM_H) $(RTL_H) $(TREE_H) $(FLAGS_H) output.h $(REGS_H) $(EXPR_H) \
3058   $(FUNCTION_H) $(TOPLEV_H) $(COVERAGE_H) $(TREE_H) value-prof.h $(TREE_DUMP_H) \
3059   $(TREE_PASS_H) $(TREE_FLOW_H) $(TIMEVAR_H) $(GGC_H) gt-tree-profile.h $(CGRAPH_H)
3060value-prof.o : value-prof.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3061   $(BASIC_BLOCK_H) hard-reg-set.h value-prof.h $(EXPR_H) output.h $(FLAGS_H) \
3062   $(RECOG_H) insn-config.h $(OPTABS_H) $(REGS_H) $(GGC_H) $(DIAGNOSTIC_H) \
3063   $(TREE_H) $(COVERAGE_H) $(RTL_H) $(GCOV_IO_H) $(TREE_FLOW_H) \
3064   tree-flow-inline.h $(TIMEVAR_H) $(TREE_PASS_H) $(TOPLEV_H) pointer-set.h
3065loop-doloop.o : loop-doloop.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3066   $(RTL_H) $(FLAGS_H) $(EXPR_H) hard-reg-set.h $(BASIC_BLOCK_H) $(TM_P_H) \
3067   $(TOPLEV_H) $(CFGLOOP_H) output.h $(PARAMS_H) $(TARGET_H)
3068alloc-pool.o : alloc-pool.c $(CONFIG_H) $(SYSTEM_H) alloc-pool.h $(HASHTAB_H)
3069auto-inc-dec.o : auto-inc-dec.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3070   $(TREE_H) $(RTL_H) $(TM_P_H) hard-reg-set.h $(BASIC_BLOCK_H) insn-config.h \
3071   $(REGS_H) $(FLAGS_H) output.h $(FUNCTION_H) $(EXCEPT_H) $(TOPLEV_H) $(RECOG_H) \
3072   $(EXPR_H) $(TIMEVAR_H) $(TREE_PASS_H) $(DF_H) $(DBGCNT_H) $(TARGET_H)
3073cfg.o : cfg.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(FLAGS_H) \
3074   $(REGS_H) hard-reg-set.h output.h $(TOPLEV_H) $(FUNCTION_H) $(EXCEPT_H) $(GGC_H) \
3075   $(TM_P_H) $(TIMEVAR_H) $(OBSTACK_H) $(TREE_H) alloc-pool.h \
3076   $(HASHTAB_H) $(DF_H) $(CFGLOOP_H) $(TREE_FLOW_H) $(TREE_PASS_H)
3077cfghooks.o: cfghooks.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3078   $(TREE_H) $(BASIC_BLOCK_H) $(TREE_FLOW_H) $(TIMEVAR_H) $(TOPLEV_H) $(CFGLOOP_H)
3079cfgexpand.o : cfgexpand.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
3080   $(RTL_H) $(TREE_H) $(TM_P_H) $(EXPR_H) $(FUNCTION_H) $(TIMEVAR_H) $(TM_H) \
3081   coretypes.h $(TREE_DUMP_H) $(EXCEPT_H) langhooks.h $(TREE_PASS_H) $(RTL_H) \
3082   $(DIAGNOSTIC_H) $(TOPLEV_H) $(BASIC_BLOCK_H) $(FLAGS_H) debug.h $(PARAMS_H) \
3083   value-prof.h $(TREE_INLINE_H) $(TARGET_H) $(SSAEXPAND_H)
3084cfgrtl.o : cfgrtl.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3085   $(FLAGS_H) insn-config.h $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h \
3086   output.h $(TOPLEV_H) $(FUNCTION_H) $(EXCEPT_H) $(TM_P_H) $(INSN_ATTR_H) \
3087   insn-config.h $(EXPR_H) \
3088   $(CFGLAYOUT_H) $(CFGLOOP_H) $(OBSTACK_H) $(TARGET_H) $(TREE_H) \
3089   $(TREE_PASS_H) $(DF_H) $(GGC_H)
3090cfganal.o : cfganal.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3091   $(BASIC_BLOCK_H) hard-reg-set.h insn-config.h $(RECOG_H) $(TM_P_H) \
3092   $(TIMEVAR_H) $(OBSTACK_H) $(TOPLEV_H) vecprim.h
3093cfgbuild.o : cfgbuild.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3094   $(FLAGS_H) $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h output.h $(TOPLEV_H) \
3095   $(FUNCTION_H) $(EXCEPT_H) $(TIMEVAR_H) $(TREE_H) $(EXPR_H)
3096cfgcleanup.o : cfgcleanup.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3097   $(RTL_H) $(TIMEVAR_H) hard-reg-set.h output.h $(FLAGS_H) $(RECOG_H) \
3098   $(TOPLEV_H) insn-config.h cselib.h $(TARGET_H) $(TM_P_H) $(PARAMS_H) \
3099   $(REGS_H) $(EMIT_RTL_H) $(CFGLAYOUT_H) $(TREE_PASS_H) $(CFGLOOP_H) $(EXPR_H) \
3100   $(DF_H) $(DBGCNT_H) dce.h
3101cfgloop.o : cfgloop.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) coretypes.h $(TM_H) \
3102   $(BASIC_BLOCK_H) hard-reg-set.h $(CFGLOOP_H) $(FLAGS_H) $(FUNCTION_H) \
3103   $(OBSTACK_H) $(TOPLEV_H) $(TREE_FLOW_H) $(TREE_H) pointer-set.h output.h \
3104   $(GGC_H)
3105cfgloopanal.o : cfgloopanal.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) \
3106   $(BASIC_BLOCK_H) hard-reg-set.h $(CFGLOOP_H) $(EXPR_H) coretypes.h $(TM_H) \
3107   $(OBSTACK_H) output.h graphds.h $(PARAMS_H)
3108graphds.o : graphds.c graphds.h $(CONFIG_H) $(SYSTEM_H) $(BITMAP_H) $(OBSTACK_H) \
3109   coretypes.h vec.h vecprim.h
3110loop-iv.o : loop-iv.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(BASIC_BLOCK_H) \
3111   hard-reg-set.h $(CFGLOOP_H) $(EXPR_H) coretypes.h $(TM_H) $(OBSTACK_H) \
3112   output.h intl.h $(TOPLEV_H) $(DF_H) $(HASHTAB_H)
3113loop-invariant.o : loop-invariant.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) \
3114   $(BASIC_BLOCK_H) hard-reg-set.h $(CFGLOOP_H) $(EXPR_H) $(RECOG_H) \
3115   coretypes.h $(TM_H) $(TM_P_H) $(FUNCTION_H) $(FLAGS_H) $(DF_H) \
3116   $(OBSTACK_H) output.h $(HASHTAB_H) $(EXCEPT_H) $(PARAMS_H) $(REGS_H) ira.h
3117cfgloopmanip.o : cfgloopmanip.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) \
3118   $(BASIC_BLOCK_H) hard-reg-set.h $(CFGLOOP_H) $(CFGLAYOUT_H) output.h \
3119   coretypes.h $(TM_H) cfghooks.h $(OBSTACK_H) $(TREE_FLOW_H)
3120loop-init.o : loop-init.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(GGC_H) \
3121   $(BASIC_BLOCK_H) hard-reg-set.h $(CFGLOOP_H) $(CFGLAYOUT_H) \
3122   coretypes.h $(TM_H) $(OBSTACK_H) $(TREE_PASS_H) $(TIMEVAR_H) $(FLAGS_H) \
3123   $(DF_H)
3124loop-unswitch.o : loop-unswitch.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TM_H) \
3125   $(BASIC_BLOCK_H) hard-reg-set.h $(CFGLOOP_H) $(CFGLAYOUT_H) $(PARAMS_H) \
3126   output.h $(EXPR_H) coretypes.h $(TM_H) $(OBSTACK_H)
3127loop-unroll.o: loop-unroll.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TM_H) \
3128   $(BASIC_BLOCK_H) hard-reg-set.h $(CFGLOOP_H) $(CFGLAYOUT_H) $(PARAMS_H) \
3129   output.h $(EXPR_H) coretypes.h $(TM_H) $(HASHTAB_H) $(RECOG_H) \
3130   $(OBSTACK_H)
3131dominance.o : dominance.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3132   hard-reg-set.h $(BASIC_BLOCK_H) et-forest.h $(OBSTACK_H) $(TOPLEV_H) \
3133   $(TIMEVAR_H) graphds.h vecprim.h pointer-set.h
3134et-forest.o : et-forest.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3135   et-forest.h alloc-pool.h $(BASIC_BLOCK_H)
3136combine.o : combine.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3137   $(FLAGS_H) $(FUNCTION_H) insn-config.h $(INSN_ATTR_H) $(REGS_H) $(EXPR_H) \
3138   rtlhooks-def.h $(BASIC_BLOCK_H) $(RECOG_H) $(REAL_H) hard-reg-set.h \
3139   $(TOPLEV_H) $(TM_P_H) $(TREE_H) $(TARGET_H) output.h $(PARAMS_H) $(OPTABS_H) \
3140   insn-codes.h $(TIMEVAR_H) $(TREE_PASS_H) $(DF_H) vecprim.h $(CGRAPH_H)
3141reginfo.o : reginfo.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3142   hard-reg-set.h $(FLAGS_H) $(BASIC_BLOCK_H) addresses.h $(REGS_H) insn-config.h \
3143   $(RECOG_H) reload.h $(REAL_H) $(TOPLEV_H) $(FUNCTION_H) output.h $(GGC_H) \
3144   $(TM_P_H) $(EXPR_H) $(TIMEVAR_H) gt-reginfo.h $(HASHTAB_H) \
3145   $(TARGET_H) $(TREE_PASS_H) $(DF_H) ira.h
3146bitmap.o : bitmap.c $(CONFIG_H) $(SYSTEM_H)  coretypes.h $(TM_H) $(RTL_H) \
3147   $(FLAGS_H) $(GGC_H) gt-bitmap.h $(BITMAP_H) $(OBSTACK_H) $(HASHTAB_H)
3148varray.o : varray.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(GGC_H) \
3149   $(HASHTAB_H) $(BCONFIG_H) $(VARRAY_H) $(TOPLEV_H)
3150vec.o : vec.c $(CONFIG_H) $(SYSTEM_H) coretypes.h vec.h $(GGC_H) \
3151   $(TOPLEV_H) $(HASHTAB_H)
3152reload.o : reload.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3153   $(FLAGS_H) output.h $(EXPR_H) $(OPTABS_H) reload.h $(RECOG_H) \
3154   hard-reg-set.h insn-config.h $(REGS_H) $(FUNCTION_H) real.h $(TOPLEV_H) \
3155   addresses.h $(TM_P_H) $(PARAMS_H) $(TARGET_H) $(REAL_H) $(DF_H) ira.h
3156reload1.o : reload1.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3157   $(EXPR_H) $(OPTABS_H) reload.h $(REGS_H) hard-reg-set.h insn-config.h \
3158   $(BASIC_BLOCK_H) $(RECOG_H) output.h $(FUNCTION_H) $(TOPLEV_H) $(TM_P_H) \
3159   addresses.h $(EXCEPT_H) $(TREE_H) $(REAL_H) $(FLAGS_H) $(MACHMODE_H) \
3160   $(OBSTACK_H) $(DF_H) $(TARGET_H) $(EMIT_RTL_H) ira.h
3161rtlhooks.o :  rtlhooks.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3162   rtlhooks-def.h $(EXPR_H) $(RECOG_H)
3163postreload.o : postreload.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3164   $(RTL_H) $(REAL_H) $(FLAGS_H) $(EXPR_H) $(OPTABS_H) reload.h $(REGS_H) \
3165   hard-reg-set.h insn-config.h $(BASIC_BLOCK_H) $(RECOG_H) output.h \
3166   $(FUNCTION_H) $(TOPLEV_H) cselib.h $(TM_P_H) $(EXCEPT_H) $(TREE_H) $(MACHMODE_H) \
3167   $(OBSTACK_H) $(TIMEVAR_H) $(TREE_PASS_H) $(DF_H) $(DBGCNT_H)
3168postreload-gcse.o : postreload-gcse.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
3169   $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h \
3170   $(RECOG_H) $(EXPR_H) $(BASIC_BLOCK_H) $(FUNCTION_H) output.h $(TOPLEV_H) \
3171   $(TM_P_H) $(EXCEPT_H) $(TREE_H) $(TARGET_H) $(HASHTAB_H) intl.h $(OBSTACK_H) \
3172   $(PARAMS_H) $(TIMEVAR_H) $(TREE_PASS_H) $(REAL_H) $(DBGCNT_H)
3173caller-save.o : caller-save.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3174   $(FLAGS_H) $(REGS_H) hard-reg-set.h insn-config.h $(BASIC_BLOCK_H) $(FUNCTION_H) \
3175   addresses.h $(RECOG_H) reload.h $(EXPR_H) $(TOPLEV_H) $(TM_P_H) $(DF_H) \
3176   output.h gt-caller-save.h $(GGC_H)
3177bt-load.o : bt-load.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(EXCEPT_H) \
3178   $(RTL_H) hard-reg-set.h $(REGS_H) $(TM_P_H) $(FIBHEAP_H) output.h $(EXPR_H) \
3179   $(TARGET_H) $(FLAGS_H) $(INSN_ATTR_H) $(FUNCTION_H) $(TREE_PASS_H) \
3180   $(TOPLEV_H) $(DF_H) vecprim.h $(RECOG_H)
3181reorg.o : reorg.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3182   conditions.h hard-reg-set.h $(BASIC_BLOCK_H) $(REGS_H) insn-config.h \
3183   $(INSN_ATTR_H) $(EXCEPT_H) $(RECOG_H) $(FUNCTION_H) $(FLAGS_H) output.h \
3184   $(EXPR_H) $(TOPLEV_H) $(PARAMS_H) $(TM_P_H) $(OBSTACK_H) $(RESOURCE_H) \
3185   $(TIMEVAR_H) $(TARGET_H) $(TREE_PASS_H)
3186alias.o : alias.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3187   $(FLAGS_H) hard-reg-set.h $(BASIC_BLOCK_H) $(REGS_H) $(TOPLEV_H) output.h \
3188   $(ALIAS_H) $(EMIT_RTL_H) $(GGC_H) $(FUNCTION_H) cselib.h $(TREE_H) $(TM_P_H) \
3189   langhooks.h $(TARGET_H) gt-alias.h $(TIMEVAR_H) $(CGRAPH_H) \
3190   $(SPLAY_TREE_H) $(VARRAY_H) $(IPA_TYPE_ESCAPE_H) $(DF_H) $(TREE_PASS_H) \
3191   tree-ssa-alias.h pointer-set.h $(TREE_FLOW_H)
3192stack-ptr-mod.o : stack-ptr-mod.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
3193   $(TM_H) $(TREE_H) $(RTL_H) $(REGS_H) $(EXPR_H) $(TREE_PASS_H) \
3194   $(BASIC_BLOCK_H) $(FLAGS_H) output.h $(DF_H)
3195init-regs.o : init-regs.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
3196   $(TM_H) $(TREE_H) $(RTL_H) $(REGS_H) $(EXPR_H) $(TREE_PASS_H) \
3197   $(BASIC_BLOCK_H) $(FLAGS_H) $(DF_H)
3198ira-build.o: ira-build.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3199   $(TARGET_H) $(RTL_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) \
3200   insn-config.h $(RECOG_H) $(BASIC_BLOCK_H) $(TOPLEV_H) $(TM_P_H) \
3201   $(PARAMS_H) $(DF_H) sparseset.h $(IRA_INT_H) output.h reload.h
3202ira-costs.o: ira-costs.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3203   hard-reg-set.h $(RTL_H) $(EXPR_H) $(TM_P_H) $(FLAGS_H) $(BASIC_BLOCK_H) \
3204   $(REGS_H) addresses.h insn-config.h $(RECOG_H) $(TOPLEV_H) $(TARGET_H) \
3205   $(PARAMS_H) $(IRA_INT_H)
3206ira-conflicts.o: ira-conflicts.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3207   $(TARGET_H) $(RTL_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) \
3208   insn-config.h $(RECOG_H) $(BASIC_BLOCK_H) $(TOPLEV_H) $(TM_P_H) $(PARAMS_H) \
3209   $(DF_H) sparseset.h addresses.h $(IRA_INT_H)
3210ira-color.o: ira-color.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3211   $(TARGET_H) $(RTL_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) \
3212   $(EXPR_H) $(BASIC_BLOCK_H) $(TOPLEV_H) $(TM_P_H) reload.h $(PARAMS_H) \
3213   $(DF_H) $(SPLAY_TREE_H) $(IRA_INT_H)
3214ira-emit.o: ira-emit.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3215   $(REGS_H) $(RTL_H) $(TM_P_H) $(TARGET_H) $(FLAGS_H) hard-reg-set.h \
3216   $(BASIC_BLOCK_H) $(EXPR_H) $(RECOG_H) $(PARAMS_H) $(TIMEVAR_H) \
3217   $(TREE_PASS_H) output.h reload.h errors.h $(DF_H) $(IRA_INT_H)
3218ira-lives.o: ira-lives.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3219   $(TARGET_H) $(RTL_H) $(REGS_H) $(EXCEPT_H) hard-reg-set.h $(FLAGS_H) \
3220   insn-config.h $(RECOG_H) $(BASIC_BLOCK_H) $(TOPLEV_H) $(TM_P_H) $(PARAMS_H) \
3221   $(DF_H) sparseset.h $(IRA_INT_H)
3222ira.o: ira.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
3223   $(TM_H) $(REGS_H) $(RTL_H) $(TM_P_H) $(TARGET_H) $(FLAGS_H) $(OBSTACK_H) \
3224   $(BITMAP_H) hard-reg-set.h $(BASIC_BLOCK_H) \
3225   $(EXPR_H) $(RECOG_H) $(PARAMS_H) $(TIMEVAR_H) $(TREE_PASS_H) output.h \
3226   $(EXCEPT_H) reload.h errors.h $(INTEGRATE_H) $(DF_H) $(GGC_H) $(IRA_INT_H)
3227regmove.o : regmove.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3228   insn-config.h $(TIMEVAR_H) $(TREE_PASS_H) $(DF_H)\
3229   $(RECOG_H) output.h $(REGS_H) hard-reg-set.h $(FLAGS_H) $(FUNCTION_H) \
3230   $(EXPR_H) $(BASIC_BLOCK_H) $(TOPLEV_H) $(TM_P_H) $(EXCEPT_H) ira.h reload.h
3231combine-stack-adj.o : combine-stack-adj.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
3232   $(TM_H) $(RTL_H) insn-config.h $(TIMEVAR_H) $(TREE_PASS_H) \
3233   $(RECOG_H) output.h $(REGS_H) hard-reg-set.h $(FLAGS_H) $(FUNCTION_H) \
3234   $(EXPR_H) $(BASIC_BLOCK_H) $(TOPLEV_H) $(TM_P_H) $(DF_H) $(EXCEPT_H) reload.h
3235ddg.o : ddg.c $(DDG_H) $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TARGET_H) \
3236   $(TOPLEV_H) $(RTL_H) $(TM_P_H) $(REGS_H) $(FUNCTION_H) \
3237   $(FLAGS_H) insn-config.h $(INSN_ATTR_H) $(EXCEPT_H) $(RECOG_H) \
3238   $(SCHED_INT_H) $(CFGLAYOUT_H) $(CFGLOOP_H) $(EXPR_H) $(BITMAP_H) \
3239   hard-reg-set.h sbitmap.h $(TM_H)
3240modulo-sched.o : modulo-sched.c $(DDG_H) $(CONFIG_H) $(CONFIG_H) $(SYSTEM_H) \
3241   coretypes.h $(TARGET_H) $(TOPLEV_H) $(RTL_H) $(TM_P_H) $(REGS_H) $(FUNCTION_H) \
3242   $(FLAGS_H) insn-config.h $(INSN_ATTR_H) $(EXCEPT_H) $(RECOG_H) \
3243   $(SCHED_INT_H) $(CFGLAYOUT_H) $(CFGLOOP_H) $(EXPR_H) $(PARAMS_H) \
3244   cfghooks.h $(GCOV_IO_H) hard-reg-set.h $(TM_H) $(TIMEVAR_H) $(TREE_PASS_H) \
3245   $(DF_H) $(DBGCNT_H)
3246haifa-sched.o : haifa-sched.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3247   $(SCHED_INT_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h $(FUNCTION_H) \
3248   $(INSN_ATTR_H) $(TOPLEV_H) $(RECOG_H) $(EXCEPT_H) $(TM_P_H) $(TARGET_H) output.h \
3249   $(PARAMS_H) $(DBGCNT_H) $(CFGLOOP_H) ira.h
3250sched-deps.o : sched-deps.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3251   $(RTL_H) $(SCHED_INT_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h \
3252   $(FUNCTION_H) $(INSN_ATTR_H) $(TOPLEV_H) $(RECOG_H) $(EXCEPT_H) cselib.h \
3253   ira.h $(PARAMS_H) $(TM_P_H) ira.h $(TARGET_H)
3254sched-rgn.o : sched-rgn.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3255   $(RTL_H) $(SCHED_INT_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h \
3256   $(FUNCTION_H) $(INSN_ATTR_H) $(TOPLEV_H) $(RECOG_H) $(EXCEPT_H) $(PARAMS_H) \
3257   $(TM_P_H) sel-sched.h $(TARGET_H) $(CFGLAYOUT_H) $(TIMEVAR_H) $(TREE_PASS_H)  \
3258   $(DBGCNT_H)
3259sched-ebb.o : sched-ebb.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3260   $(RTL_H) $(SCHED_INT_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h \
3261   $(FUNCTION_H) $(INSN_ATTR_H) $(TOPLEV_H) $(RECOG_H) $(EXCEPT_H) $(TM_P_H) \
3262   $(PARAMS_H) $(CFGLAYOUT_H) $(TARGET_H) output.h
3263sched-vis.o : sched-vis.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3264   $(RTL_H) $(SCHED_INT_H) hard-reg-set.h $(BASIC_BLOCK_H) $(OBSTACK_H) \
3265   $(REAL_H) $(TREE_PASS_H) $(INSN_ATTR_H)
3266sel-sched.o : sel-sched.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3267   $(RTL_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h \
3268   $(FUNCTION_H) $(INSN_ATTR_H) $(TOPLEV_H) $(RECOG_H) $(EXCEPT_H) $(PARAMS_H) \
3269   $(TM_P_H) output.h $(TARGET_H) $(TIMEVAR_H) $(TREE_PASS_H)  \
3270   $(SCHED_INT_H) $(GGC_H) $(TREE_H) langhooks.h rtlhooks-def.h \
3271   $(SEL_SCHED_IR_H) $(SEL_SCHED_DUMP_H) sel-sched.h $(DBGCNT_H)
3272sel-sched-dump.o : sel-sched-dump.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3273   $(RTL_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h \
3274   $(FUNCTION_H) $(INSN_ATTR_H) $(TOPLEV_H) $(RECOG_H) $(EXCEPT_H) $(PARAMS_H) \
3275   $(TM_P_H) $(TARGET_H) $(CFGLAYOUT_H) $(TIMEVAR_H) $(TREE_PASS_H) \
3276   $(SEL_SCHED_DUMP_H) $(GGC_H) $(TREE_H) $(LANGHOOKS_DEF_H) $(SEL_SCHED_IR_H) \
3277   output.h $(BASIC_BLOCK_H) cselib.h
3278sel-sched-ir.o : sel-sched-ir.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3279   $(RTL_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h \
3280   $(FUNCTION_H) $(INSN_ATTR_H) $(TOPLEV_H) $(RECOG_H) $(EXCEPT_H) $(PARAMS_H) \
3281   $(TM_P_H) $(TARGET_H) $(TIMEVAR_H) $(TREE_PASS_H) $(SCHED_INT_H) $(GGC_H) \
3282   $(TREE_H) langhooks.h rtlhooks-def.h $(SEL_SCHED_IR_H) $(SEL_SCHED_DUMP_H)
3283final.o : final.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3284   $(TREE_H) $(FLAGS_H) intl.h $(REGS_H) $(RECOG_H) conditions.h \
3285   insn-config.h $(INSN_ATTR_H) $(FUNCTION_H) output.h hard-reg-set.h \
3286   $(EXCEPT_H) debug.h xcoffout.h $(TOPLEV_H) reload.h dwarf2out.h \
3287   $(TREE_PASS_H) $(BASIC_BLOCK_H) $(TM_P_H) $(TARGET_H) $(EXPR_H) \
3288   $(CFGLAYOUT_H) dbxout.h $(TIMEVAR_H) $(CGRAPH_H) $(COVERAGE_H) $(REAL_H) \
3289   $(DF_H) vecprim.h $(GGC_H) $(CFGLOOP_H) $(PARAMS_H) $(TREE_FLOW_H)
3290recog.o : recog.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3291   $(FUNCTION_H) $(BASIC_BLOCK_H) $(REGS_H) $(RECOG_H) $(EXPR_H) \
3292   $(FLAGS_H) insn-config.h $(INSN_ATTR_H) $(TOPLEV_H) output.h reload.h \
3293   addresses.h $(TM_P_H) $(TIMEVAR_H) $(TREE_PASS_H) hard-reg-set.h $(REAL_H) \
3294   $(DF_H) $(DBGCNT_H) $(TARGET_H)
3295reg-stack.o : reg-stack.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3296   $(RTL_H) $(TREE_H) $(RECOG_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) \
3297   insn-config.h $(TOPLEV_H) reload.h $(FUNCTION_H) $(TM_P_H) $(GGC_H) \
3298   $(BASIC_BLOCK_H) $(CFGLAYOUT_H) output.h $(VARRAY_H) $(TIMEVAR_H) \
3299   $(TREE_PASS_H) $(TARGET_H) vecprim.h $(DF_H)
3300sreal.o: sreal.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) sreal.h
3301predict.o: predict.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3302   $(TREE_H) $(FLAGS_H) insn-config.h $(BASIC_BLOCK_H) $(REGS_H) \
3303   hard-reg-set.h output.h $(TOPLEV_H) $(RECOG_H) $(FUNCTION_H) $(EXCEPT_H) \
3304   $(TM_P_H) $(PREDICT_H) sreal.h $(PARAMS_H) $(TARGET_H) $(CFGLOOP_H) \
3305   $(COVERAGE_H) $(SCEV_H) $(GGC_H) predict.def $(TIMEVAR_H) $(TREE_DUMP_H) \
3306   $(TREE_FLOW_H) $(TREE_PASS_H) $(EXPR_H) pointer-set.h
3307lists.o: lists.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TOPLEV_H) \
3308   $(RTL_H) $(GGC_H) gt-lists.h
3309bb-reorder.o : bb-reorder.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3310   $(RTL_H) $(FLAGS_H) $(TIMEVAR_H) output.h $(CFGLAYOUT_H) $(FIBHEAP_H) \
3311   $(TARGET_H) $(FUNCTION_H) $(TM_P_H) $(OBSTACK_H) $(EXPR_H) $(REGS_H) \
3312   $(PARAMS_H) $(TOPLEV_H) $(TREE_PASS_H) $(DF_H)
3313tracer.o : tracer.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3314   $(TREE_H) $(BASIC_BLOCK_H) hard-reg-set.h output.h $(CFGLAYOUT_H) \
3315   $(FLAGS_H) $(TIMEVAR_H) $(PARAMS_H) $(COVERAGE_H) $(FIBHEAP_H) \
3316   $(TREE_PASS_H) $(TREE_FLOW_H) $(TREE_INLINE_H)
3317cfglayout.o : cfglayout.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3318   $(RTL_H) $(TREE_H) insn-config.h $(BASIC_BLOCK_H) hard-reg-set.h output.h \
3319   $(FUNCTION_H) $(CFGLAYOUT_H) $(CFGLOOP_H) $(TARGET_H) gt-cfglayout.h \
3320   $(GGC_H) alloc-pool.h $(FLAGS_H) $(OBSTACK_H) $(TREE_PASS_H) vecprim.h \
3321   $(DF_H)
3322timevar.o : timevar.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3323   $(TIMEVAR_H) $(FLAGS_H) intl.h $(TOPLEV_H) $(RTL_H) timevar.def
3324regcprop.o : regcprop.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3325   $(RTL_H) insn-config.h $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h \
3326   output.h $(RECOG_H) $(FUNCTION_H) $(OBSTACK_H) $(FLAGS_H) $(TM_P_H) \
3327   addresses.h reload.h $(TOPLEV_H) $(TIMEVAR_H) $(TREE_PASS_H) $(DF_H)
3328regrename.o : regrename.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3329   $(RTL_H) insn-config.h $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h \
3330   output.h $(RECOG_H) $(FUNCTION_H) $(OBSTACK_H) $(FLAGS_H) $(TM_P_H) \
3331   addresses.h reload.h $(TOPLEV_H) $(TIMEVAR_H) $(TREE_PASS_H) $(DF_H)
3332ifcvt.o : ifcvt.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
3333   $(REGS_H) $(TOPLEV_H) $(FLAGS_H) insn-config.h $(FUNCTION_H) $(RECOG_H) \
3334   $(TARGET_H) $(BASIC_BLOCK_H) $(EXPR_H) output.h $(EXCEPT_H) $(TM_P_H) \
3335   $(REAL_H) $(OPTABS_H) $(CFGLOOP_H) hard-reg-set.h $(TIMEVAR_H) \
3336   $(TREE_PASS_H) $(DF_H) $(DBGCNT_H)
3337lambda-mat.o : lambda-mat.c $(LAMBDA_H) $(GGC_H) $(SYSTEM_H) $(CONFIG_H) \
3338   $(TM_H) coretypes.h $(TREE_H) $(TREE_FLOW_H)
3339lambda-trans.o: lambda-trans.c $(LAMBDA_H) $(GGC_H) $(SYSTEM_H) $(CONFIG_H) \
3340   $(TM_H) coretypes.h $(TARGET_H) $(TREE_H) $(TREE_FLOW_H)
3341lambda-code.o: lambda-code.c $(LAMBDA_H) $(GGC_H) $(SYSTEM_H) $(CONFIG_H) \
3342   $(TM_H) $(OPTABS_H) $(TREE_H) $(RTL_H) $(BASIC_BLOCK_H) \
3343   $(DIAGNOSTIC_H) $(TREE_FLOW_H) $(TREE_DUMP_H) $(TIMEVAR_H) $(CFGLOOP_H) \
3344   $(TREE_DATA_REF_H) $(EXPR_H) coretypes.h $(TARGET_H) \
3345   $(TREE_PASS_H) vec.h vecprim.h $(OBSTACK_H) pointer-set.h
3346params.o : params.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(PARAMS_H) \
3347   $(TOPLEV_H)
3348pointer-set.o: pointer-set.c pointer-set.h $(CONFIG_H) $(SYSTEM_H)
3349hooks.o: hooks.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(HOOKS_H)
3350pretty-print.o: $(CONFIG_H) $(SYSTEM_H) coretypes.h intl.h $(PRETTY_PRINT_H) \
3351   $(TREE_H) $(GGC_H)
3352errors.o : errors.c $(CONFIG_H) $(SYSTEM_H) errors.h $(BCONFIG_H)
3353dbgcnt.o: dbgcnt.c $(CONFIG_H) $(SYSTEM_H) coretypes.h errors.h $(DBGCNT_H) \
3354   $(TM_H) $(RTL_H) output.h
3355lower-subreg.o : lower-subreg.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
3356   $(MACHMODE_H) $(TM_H) $(RTL_H) $(TM_P_H) $(TIMEVAR_H) $(FLAGS_H) \
3357   insn-config.h $(BASIC_BLOCK_H) $(RECOG_H) $(OBSTACK_H) $(BITMAP_H) \
3358   $(EXPR_H) $(EXCEPT_H) $(REGS_H) $(TREE_PASS_H) $(DF_H)
3359
3360$(out_object_file): $(out_file) $(CONFIG_H) coretypes.h $(TM_H) $(TREE_H) \
3361   $(RTL_H) $(REGS_H) hard-reg-set.h insn-config.h conditions.h \
3362   output.h $(INSN_ATTR_H) $(SYSTEM_H) $(TOPLEV_H) $(TARGET_H) libfuncs.h \
3363   $(TARGET_DEF_H) $(FUNCTION_H) $(SCHED_INT_H) $(TM_P_H) $(EXPR_H) \
3364   langhooks.h $(GGC_H) $(OPTABS_H) $(REAL_H) tm-constrs.h $(GIMPLE_H) $(DF_H) \
3365   cselib.h
3366	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) \
3367		$(out_file) $(OUTPUT_OPTION)
3368
3369# Build auxiliary files that support ecoff format.
3370mips-tfile: mips-tfile.o version.o $(LIBDEPS)
3371	$(LINKER) $(LINKERFLAGS) $(LDFLAGS) -o $@ \
3372		mips-tfile.o version.o $(LIBS)
3373
3374mips-tfile.o : mips-tfile.c $(CONFIG_H) $(RTL_H) $(SYSTEM_H) coretypes.h \
3375   $(TM_H) version.h $(srcdir)/../include/getopt.h $(GSTAB_H) intl.h
3376
3377mips-tdump: mips-tdump.o version.o $(LIBDEPS)
3378	$(LINKER) $(LINKERFLAGS) $(LDFLAGS) -o $@ \
3379		mips-tdump.o version.o $(LIBS)
3380
3381mips-tdump.o : mips-tdump.c $(CONFIG_H) $(RTL_H) $(SYSTEM_H) coretypes.h \
3382   $(TM_H) version.h $(srcdir)/../include/getopt.h stab.def
3383
3384# FIXME: writing proper dependencies for this is a *LOT* of work.
3385libbackend.o : $(OBJS-common:.o=.c) $(out_file) \
3386  insn-config.h insn-flags.h insn-codes.h insn-constants.h \
3387  insn-attr.h  $(DATESTAMP) $(BASEVER) $(DEVPHASE) gcov-iov.h
3388	$(COMPILER) $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) \
3389	  -DTARGET_NAME=\"$(target_noncanonical)\" \
3390	  -DLOCALEDIR=\"$(localedir)\" \
3391	  -c $(filter %.c,$^) -o $@  \
3392	  -DBASEVER=$(BASEVER_s) -DDATESTAMP=$(DATESTAMP_s) \
3393	  -DREVISION=$(REVISION_s) \
3394	  -DDEVPHASE=$(DEVPHASE_s) -DPKGVERSION=$(PKGVERSION_s) \
3395	  -DBUGURL=$(BUGURL_s) -combine
3396
3397#
3398# Generate header and source files from the machine description,
3399# and compile them.
3400
3401.PRECIOUS: insn-config.h insn-flags.h insn-codes.h insn-constants.h \
3402  insn-emit.c insn-recog.c insn-extract.c insn-output.c insn-peep.c \
3403  insn-attr.h insn-attrtab.c insn-preds.c
3404
3405# Dependencies for the md file.  The first time through, we just assume
3406# the md file itself and the generated dependency file (in order to get
3407# it built).  The second time through we have the dependency file.
3408-include mddeps.mk
3409MD_DEPS = s-mddeps $(md_file) $(MD_INCLUDES)
3410
3411s-mddeps: $(md_file) $(MD_INCLUDES) build/genmddeps$(build_exeext)
3412	$(RUN_GEN) build/genmddeps$(build_exeext) $(md_file) > tmp-mddeps
3413	$(SHELL) $(srcdir)/../move-if-change tmp-mddeps mddeps.mk
3414	$(STAMP) s-mddeps
3415
3416# Header dependencies for generated source files.
3417genrtl.o : genrtl.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H)	$(RTL_H)\
3418  $(GGC_H) $(OBSTACK_H)
3419insn-attrtab.o : insn-attrtab.c $(CONFIG_H) $(SYSTEM_H) coretypes.h	\
3420  $(TM_H) $(RTL_H) $(REGS_H) $(REAL_H) output.h $(INSN_ATTR_H)		\
3421  insn-config.h $(TOPLEV_H) $(RECOG_H) $(TM_P_H) $(FLAGS_H)
3422insn-automata.o : insn-automata.c $(CONFIG_H) $(SYSTEM_H) coretypes.h	\
3423  $(TM_H) $(RTL_H) $(REGS_H) $(REAL_H) output.h $(INSN_ATTR_H)		\
3424  insn-config.h $(TOPLEV_H) $(RECOG_H) $(TM_P_H) $(FLAGS_H)
3425insn-emit.o : insn-emit.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H)	\
3426  $(RTL_H) $(TM_P_H) $(FUNCTION_H) $(EXPR_H) $(OPTABS_H) $(REAL_H)	\
3427  dfp.h $(FLAGS_H) output.h insn-config.h hard-reg-set.h $(RECOG_H)	\
3428  $(RESOURCE_H) reload.h $(TOPLEV_H) $(REGS_H) tm-constrs.h $(GGC_H)	\
3429  $(BASIC_BLOCK_H) $(INTEGRATE_H)
3430insn-extract.o : insn-extract.c $(CONFIG_H) $(SYSTEM_H) coretypes.h	\
3431  $(TM_H) $(RTL_H) $(TOPLEV_H) insn-config.h $(RECOG_H)
3432insn-modes.o : insn-modes.c $(CONFIG_H) $(SYSTEM_H) coretypes.h	$(TM_H) \
3433  $(MACHMODE_H) $(REAL_H)
3434insn-opinit.o : insn-opinit.c $(CONFIG_H) $(SYSTEM_H) coretypes.h	\
3435  $(TM_H) $(RTL_H) $(TM_P_H) insn-config.h $(FLAGS_H) $(RECOG_H)	\
3436  $(EXPR_H) $(OPTABS_H) reload.h
3437insn-output.o : insn-output.c $(CONFIG_H) $(SYSTEM_H) coretypes.h	\
3438  $(TM_H) $(RTL_H) $(GGC_H) $(REGS_H) $(REAL_H) conditions.h		\
3439  hard-reg-set.h insn-config.h $(INSN_ATTR_H) $(EXPR_H) output.h	\
3440  $(RECOG_H) $(FUNCTION_H) $(TOPLEV_H) $(FLAGS_H) insn-codes.h $(TM_P_H)	\
3441  $(TARGET_H) tm-constrs.h
3442insn-peep.o : insn-peep.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H)	\
3443  insn-config.h $(RTL_H) $(TM_P_H) $(REGS_H) output.h $(REAL_H)		\
3444  $(RECOG_H) $(EXCEPT_H) $(FUNCTION_H) $(TOPLEV_H) $(FLAGS_H) tm-constrs.h
3445insn-preds.o : insn-preds.c $(CONFIG_H) $(SYSTEM_H) coretypes.h		\
3446  $(TM_H) $(RTL_H) $(TREE_H) insn-config.h $(RECOG_H) output.h		\
3447  $(FLAGS_H) $(FUNCTION_H) hard-reg-set.h $(RESOURCE_H) $(TM_P_H)	\
3448  $(TOPLEV_H) reload.h $(REGS_H) $(REAL_H) tm-constrs.h
3449insn-recog.o : insn-recog.c $(CONFIG_H) $(SYSTEM_H) coretypes.h		\
3450  $(TM_H) $(RTL_H) insn-config.h $(RECOG_H) output.h $(FLAGS_H)		\
3451  $(FUNCTION_H) hard-reg-set.h $(RESOURCE_H) $(TM_P_H) $(TOPLEV_H)		\
3452  reload.h $(REAL_H) $(REGS_H) tm-constrs.h
3453
3454# For each of the files generated by running a generator program over
3455# the machine description, the following pair of static pattern rules
3456# runs the generator program only if the machine description has changed,
3457# but touches the target file only when its contents actually change.
3458# The "; @true" construct forces Make to recheck the timestamp on the
3459# target file.
3460
3461simple_generated_h = insn-attr.h insn-codes.h insn-config.h insn-flags.h
3462
3463simple_generated_c = insn-attrtab.c insn-automata.c insn-emit.c \
3464		     insn-extract.c insn-opinit.c insn-output.c \
3465		     insn-peep.c insn-recog.c
3466
3467$(simple_generated_h): insn-%.h: s-%; @true
3468
3469$(simple_generated_h:insn-%.h=s-%): s-%: build/gen%$(build_exeext) \
3470  $(MD_DEPS) insn-conditions.md
3471	$(RUN_GEN) build/gen$*$(build_exeext) $(md_file) \
3472	  insn-conditions.md > tmp-$*.h
3473	$(SHELL) $(srcdir)/../move-if-change tmp-$*.h insn-$*.h
3474	$(STAMP) s-$*
3475
3476$(simple_generated_c): insn-%.c: s-%; @true
3477$(simple_generated_c:insn-%.c=s-%): s-%: build/gen%$(build_exeext) \
3478  $(MD_DEPS) insn-conditions.md
3479	$(RUN_GEN) build/gen$*$(build_exeext) $(md_file) \
3480	  insn-conditions.md > tmp-$*.c
3481	$(SHELL) $(srcdir)/../move-if-change tmp-$*.c insn-$*.c
3482	$(STAMP) s-$*
3483
3484generated_files = config.h tm.h $(TM_P_H) $(TM_H) multilib.h \
3485       $(simple_generated_h) specs.h \
3486       tree-check.h genrtl.h insn-modes.h tm-preds.h tm-constrs.h \
3487       $(ALL_GTFILES_H) gtype-desc.c gtype-desc.h gcov-iov.h
3488
3489# In order for parallel make to really start compiling the expensive
3490# objects from $(OBJS-common) as early as possible, build all their
3491# prerequisites strictly before all objects.
3492$(ALL_HOST_OBJS) : | $(generated_files)
3493
3494# genconstants needs to run before insn-conditions.md is available
3495# (because the constants may be used in the conditions).
3496insn-constants.h: s-constants; @true
3497s-constants: build/genconstants$(build_exeext) $(MD_DEPS)
3498	$(RUN_GEN) build/genconstants$(build_exeext) $(md_file) \
3499	  > tmp-constants.h
3500	$(SHELL) $(srcdir)/../move-if-change tmp-constants.h insn-constants.h
3501	$(STAMP) s-constants
3502
3503# gencheck doesn't read the machine description, and the file produced
3504# doesn't use the insn-* convention.
3505tree-check.h: s-check ; @true
3506s-check : build/gencheck$(build_exeext)
3507	$(RUN_GEN) build/gencheck$(build_exeext) > tmp-check.h
3508	$(SHELL) $(srcdir)/../move-if-change tmp-check.h tree-check.h
3509	$(STAMP) s-check
3510
3511# gencondmd doesn't use the standard naming convention.
3512build/gencondmd.c: s-conditions; @true
3513s-conditions: $(MD_DEPS) build/genconditions$(build_exeext)
3514	$(RUN_GEN) build/genconditions$(build_exeext) $(md_file) > tmp-condmd.c
3515	$(SHELL) $(srcdir)/../move-if-change tmp-condmd.c build/gencondmd.c
3516	$(STAMP) s-conditions
3517
3518insn-conditions.md: s-condmd; @true
3519s-condmd: build/gencondmd$(build_exeext)
3520	$(RUN_GEN) build/gencondmd$(build_exeext) > tmp-cond.md
3521	$(SHELL) $(srcdir)/../move-if-change tmp-cond.md insn-conditions.md
3522	$(STAMP) s-condmd
3523
3524
3525# These files are generated by running the same generator more than
3526# once with different options, so they have custom rules.  The
3527# stampfile idiom is the same.
3528genrtl.c: s-genrtl; @true
3529genrtl.h: s-genrtl-h; @true
3530
3531s-genrtl: build/gengenrtl$(build_exeext)
3532	$(RUN_GEN) build/gengenrtl$(build_exeext) > tmp-genrtl.c
3533	$(SHELL) $(srcdir)/../move-if-change tmp-genrtl.c genrtl.c
3534	$(STAMP) s-genrtl
3535
3536s-genrtl-h: build/gengenrtl$(build_exeext)
3537	$(RUN_GEN) build/gengenrtl$(build_exeext) -h > tmp-genrtl.h
3538	$(SHELL) $(srcdir)/../move-if-change tmp-genrtl.h genrtl.h
3539	$(STAMP) s-genrtl-h
3540
3541insn-modes.c: s-modes; @true
3542insn-modes.h: s-modes-h; @true
3543min-insn-modes.c: s-modes-m; @true
3544
3545s-modes: build/genmodes$(build_exeext)
3546	$(RUN_GEN) build/genmodes$(build_exeext) > tmp-modes.c
3547	$(SHELL) $(srcdir)/../move-if-change tmp-modes.c insn-modes.c
3548	$(STAMP) s-modes
3549
3550s-modes-h: build/genmodes$(build_exeext)
3551	$(RUN_GEN) build/genmodes$(build_exeext) -h > tmp-modes.h
3552	$(SHELL) $(srcdir)/../move-if-change tmp-modes.h insn-modes.h
3553	$(STAMP) s-modes-h
3554
3555s-modes-m: build/genmodes$(build_exeext)
3556	$(RUN_GEN) build/genmodes$(build_exeext) -m > tmp-min-modes.c
3557	$(SHELL) $(srcdir)/../move-if-change tmp-min-modes.c min-insn-modes.c
3558	$(STAMP) s-modes-m
3559
3560insn-preds.c: s-preds; @true
3561tm-preds.h: s-preds-h; @true
3562tm-constrs.h: s-constrs-h; @true
3563
3564s-preds: $(MD_DEPS) build/genpreds$(build_exeext)
3565	$(RUN_GEN) build/genpreds$(build_exeext) $(md_file) > tmp-preds.c
3566	$(SHELL) $(srcdir)/../move-if-change tmp-preds.c insn-preds.c
3567	$(STAMP) s-preds
3568
3569s-preds-h: $(MD_DEPS) build/genpreds$(build_exeext)
3570	$(RUN_GEN) build/genpreds$(build_exeext) -h $(md_file) > tmp-preds.h
3571	$(SHELL) $(srcdir)/../move-if-change tmp-preds.h tm-preds.h
3572	$(STAMP) s-preds-h
3573
3574s-constrs-h: $(MD_DEPS) build/genpreds$(build_exeext)
3575	$(RUN_GEN) build/genpreds$(build_exeext) -c $(md_file) > tmp-constrs.h
3576	$(SHELL) $(srcdir)/../move-if-change tmp-constrs.h tm-constrs.h
3577	$(STAMP) s-constrs-h
3578
3579GTFILES = $(CPP_ID_DATA_H) $(srcdir)/input.h $(srcdir)/coretypes.h \
3580  $(host_xm_file_list) \
3581  $(tm_file_list) $(HASHTAB_H) $(SPLAY_TREE_H) $(srcdir)/bitmap.h \
3582  $(srcdir)/alias.h $(srcdir)/coverage.c $(srcdir)/rtl.h \
3583  $(srcdir)/vecprim.h \
3584  $(srcdir)/optabs.h $(srcdir)/tree.h $(srcdir)/varray.h $(srcdir)/libfuncs.h $(SYMTAB_H) \
3585  $(srcdir)/real.h $(srcdir)/function.h $(srcdir)/insn-addr.h $(srcdir)/hwint.h \
3586  $(srcdir)/fixed-value.h \
3587  $(srcdir)/ipa-reference.h $(srcdir)/output.h $(srcdir)/cfgloop.h \
3588  $(srcdir)/cselib.h $(srcdir)/basic-block.h  $(srcdir)/cgraph.h \
3589  $(srcdir)/reload.h $(srcdir)/caller-save.c \
3590  $(srcdir)/alias.c $(srcdir)/bitmap.c $(srcdir)/cselib.c $(srcdir)/cgraph.c \
3591  $(srcdir)/ipa-prop.c $(srcdir)/ipa-cp.c $(srcdir)/ipa-inline.c $(srcdir)/matrix-reorg.c \
3592  $(srcdir)/dbxout.c $(srcdir)/ipa-struct-reorg.c $(srcdir)/dwarf2out.c $(srcdir)/dwarf2asm.c \
3593  $(srcdir)/tree-vect-generic.c \
3594  $(srcdir)/dojump.c \
3595  $(srcdir)/emit-rtl.c $(srcdir)/except.h $(srcdir)/explow.c $(srcdir)/expr.c \
3596  $(srcdir)/expr.h \
3597  $(srcdir)/function.c $(srcdir)/except.c \
3598  $(srcdir)/gcse.c $(srcdir)/integrate.c $(srcdir)/lists.c $(srcdir)/optabs.c \
3599  $(srcdir)/profile.c $(srcdir)/reginfo.c $(srcdir)/mcf.c \
3600  $(srcdir)/reg-stack.c $(srcdir)/cfglayout.c $(srcdir)/cfglayout.h \
3601  $(srcdir)/sdbout.c $(srcdir)/stor-layout.c \
3602  $(srcdir)/stringpool.c $(srcdir)/tree.c $(srcdir)/varasm.c \
3603  $(srcdir)/gimple.h $(srcdir)/gimple.c \
3604  $(srcdir)/tree-mudflap.c $(srcdir)/tree-flow.h \
3605  $(srcdir)/tree-ssanames.c $(srcdir)/tree-eh.c $(srcdir)/tree-ssa-address.c \
3606  $(srcdir)/tree-cfg.c \
3607  $(srcdir)/tree-dfa.c \
3608  $(srcdir)/tree-iterator.c $(srcdir)/gimplify.c \
3609  $(srcdir)/tree-chrec.h \
3610  $(srcdir)/tree-scalar-evolution.c \
3611  $(srcdir)/tree-ssa-operands.h \
3612  $(srcdir)/tree-profile.c $(srcdir)/tree-nested.c \
3613  $(srcdir)/varpool.c \
3614  $(srcdir)/tree-parloops.c \
3615  $(srcdir)/omp-low.c \
3616  $(srcdir)/targhooks.c $(out_file) $(srcdir)/passes.c $(srcdir)/cgraphunit.c \
3617  $(srcdir)/tree-ssa-propagate.c \
3618  $(srcdir)/tree-phinodes.c \
3619  $(srcdir)/ipa-reference.c \
3620  $(srcdir)/tree-ssa-structalias.c \
3621  $(srcdir)/lto-symtab.c \
3622  $(srcdir)/tree-ssa-alias.h \
3623  $(srcdir)/ipa-prop.h \
3624  @all_gtfiles@
3625
3626# Compute the list of GT header files from the corresponding C sources,
3627# possibly nested within config or language subdirectories.  Match gengtype's
3628# behavior in this respect: gt-LANG-file.h for "file" anywhere within a LANG
3629# language subdir, gt-file.h otherwise (no subdir indication for config/
3630# related sources).
3631
3632GTFILES_H = $(subst /,-, \
3633	    $(shell echo $(patsubst $(srcdir)/%,gt-%, \
3634			   $(patsubst %.c,%.h, \
3635			     $(filter %.c, $(GTFILES)))) \
3636			| sed -e "s|/[^ ]*/|/|g" -e "s|gt-config/|gt-|g"))
3637
3638GTFILES_LANG_H = $(patsubst [%], gtype-%.h, $(filter [%], $(GTFILES)))
3639ALL_GTFILES_H := $(sort $(GTFILES_H) $(GTFILES_LANG_H))
3640
3641# $(GTFILES) may be too long to put on a command line, so we have to
3642# write it out to a file (taking care not to do that in a way that
3643# overflows a command line!) and then have gengtype read the file in.
3644
3645$(ALL_GTFILES_H) gtype-desc.c gtype-desc.h : s-gtype ; @true
3646
3647gtyp-input.list: s-gtyp-input ; @true
3648s-gtyp-input: Makefile
3649	@: $(call write_entries_to_file,$(GTFILES),tmp-gi.list)
3650	$(SHELL) $(srcdir)/../move-if-change tmp-gi.list gtyp-input.list
3651	$(STAMP) s-gtyp-input
3652
3653s-gtype: build/gengtype$(build_exeext) $(filter-out [%], $(GTFILES)) \
3654	 gtyp-input.list
3655	$(RUN_GEN) build/gengtype$(build_exeext) $(srcdir) gtyp-input.list
3656	$(STAMP) s-gtype
3657
3658#
3659# How to compile object files to run on the build machine.
3660
3661build/%.o :  # dependencies provided by explicit rule later
3662	$(COMPILER_FOR_BUILD) -c $(BUILD_COMPILERFLAGS) $(BUILD_CPPFLAGS) \
3663		-o $@ $<
3664
3665# Header dependencies for the programs that generate source code.
3666# These are library modules...
3667build/errors.o : errors.c $(BCONFIG_H) $(SYSTEM_H) errors.h
3668build/gensupport.o: gensupport.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h	\
3669  $(GTM_H) $(RTL_BASE_H) $(OBSTACK_H) errors.h $(HASHTAB_H)		\
3670  gensupport.h
3671build/ggc-none.o : ggc-none.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h 	\
3672  $(GGC_H)
3673build/min-insn-modes.o : min-insn-modes.c $(BCONFIG_H) $(SYSTEM_H)	\
3674  $(MACHMODE_H)
3675build/print-rtl.o: print-rtl.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h	\
3676  $(GTM_H) $(RTL_BASE_H)
3677build/read-rtl.o: read-rtl.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h	\
3678  $(GTM_H) $(RTL_BASE_H) $(OBSTACK_H) $(HASHTAB_H) gensupport.h
3679build/rtl.o: rtl.c $(BCONFIG_H) coretypes.h $(GTM_H) $(SYSTEM_H)	\
3680  $(RTL_H) $(REAL_H) $(GGC_H) errors.h
3681build/vec.o : vec.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h vec.h \
3682   $(GGC_H) $(TOPLEV_H)
3683build/gencondmd.o : build/gencondmd.c $(BCONFIG_H) $(SYSTEM_H)		\
3684  coretypes.h $(GTM_H) insn-constants.h $(RTL_H) $(TM_P_H)		\
3685  $(FUNCTION_H) $(REGS_H) $(RECOG_H) $(REAL_H) output.h $(FLAGS_H)	\
3686  $(RESOURCE_H) $(TOPLEV_H) reload.h $(EXCEPT_H) tm-constrs.h
3687# This pulls in tm-pred.h which contains inline functions wrapping up
3688# predicates from the back-end so those functions must be discarded.
3689# No big deal since gencondmd.c is a dummy file for non-GCC compilers.
3690build/gencondmd.o : \
3691  BUILD_CFLAGS := $(filter-out -fkeep-inline-functions, $(BUILD_CFLAGS))
3692
3693# ...these are the programs themselves.
3694build/genattr.o : genattr.c $(RTL_BASE_H) $(BCONFIG_H) $(SYSTEM_H)	\
3695  coretypes.h $(GTM_H) errors.h gensupport.h
3696build/genattrtab.o : genattrtab.c $(RTL_BASE_H) $(OBSTACK_H)		\
3697  $(BCONFIG_H) $(SYSTEM_H) coretypes.h $(GTM_H) errors.h $(GGC_H)	\
3698  gensupport.h
3699build/genautomata.o : genautomata.c $(RTL_BASE_H) $(OBSTACK_H)		\
3700  $(BCONFIG_H) $(SYSTEM_H) coretypes.h $(GTM_H) errors.h vec.h		\
3701  $(HASHTAB_H) gensupport.h
3702build/gencheck.o : gencheck.c all-tree.def $(BCONFIG_H) $(GTM_H)	\
3703	$(SYSTEM_H) coretypes.h $(lang_tree_files) gimple.def
3704build/genchecksum.o : genchecksum.c $(BCONFIG_H) $(SYSTEM_H) $(MD5_H)
3705build/gencodes.o : gencodes.c $(RTL_BASE_H) $(BCONFIG_H) $(SYSTEM_H)	\
3706  coretypes.h $(GTM_H) errors.h gensupport.h
3707build/genconditions.o : genconditions.c $(RTL_BASE_H) $(BCONFIG_H)	\
3708  $(SYSTEM_H) coretypes.h $(GTM_H) errors.h
3709build/genconfig.o : genconfig.c $(RTL_BASE_H) $(BCONFIG_H) $(SYSTEM_H)	\
3710  coretypes.h $(GTM_H) errors.h gensupport.h
3711build/genconstants.o : genconstants.c $(RTL_BASE_H) $(BCONFIG_H)	\
3712  $(SYSTEM_H) coretypes.h $(GTM_H) errors.h
3713build/genemit.o : genemit.c $(RTL_BASE_H) $(BCONFIG_H) $(SYSTEM_H)	\
3714  coretypes.h $(GTM_H) errors.h gensupport.h
3715build/genextract.o : genextract.c $(RTL_BASE_H) $(BCONFIG_H)		\
3716  $(SYSTEM_H) coretypes.h $(GTM_H) errors.h gensupport.h vecprim.h
3717build/genflags.o : genflags.c $(RTL_BASE_H) $(OBSTACK_H) $(BCONFIG_H)	\
3718  $(SYSTEM_H) coretypes.h $(GTM_H) errors.h gensupport.h
3719build/gengenrtl.o : gengenrtl.c $(BCONFIG_H) $(SYSTEM_H) rtl.def
3720build/gengtype-lex.o : gengtype-lex.c gengtype.h $(BCONFIG_H) $(SYSTEM_H)
3721build/gengtype-parse.o : gengtype-parse.c gengtype.h $(BCONFIG_H)	\
3722  $(SYSTEM_H)
3723build/gengtype.o : gengtype.c $(BCONFIG_H) $(SYSTEM_H) gengtype.h 	\
3724  rtl.def insn-notes.def errors.h double-int.h
3725build/genmddeps.o: genmddeps.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h	\
3726  $(GTM_H) $(RTL_BASE_H) errors.h gensupport.h
3727build/genmodes.o : genmodes.c $(BCONFIG_H) $(SYSTEM_H) errors.h		\
3728  $(HASHTAB_H) machmode.def $(extra_modes_file)
3729build/genopinit.o : genopinit.c $(RTL_BASE_H) $(BCONFIG_H) $(SYSTEM_H)	\
3730  coretypes.h $(GTM_H) errors.h gensupport.h
3731build/genoutput.o : genoutput.c $(RTL_BASE_H) $(BCONFIG_H) $(SYSTEM_H)	\
3732  coretypes.h $(GTM_H) errors.h gensupport.h
3733build/genpeep.o : genpeep.c $(RTL_BASE_H) $(BCONFIG_H) $(SYSTEM_H)	\
3734  coretypes.h $(GTM_H) errors.h gensupport.h $(TOPLEV_H)
3735build/genpreds.o : genpreds.c $(RTL_BASE_H) $(BCONFIG_H) $(SYSTEM_H)	\
3736  coretypes.h $(GTM_H) errors.h gensupport.h $(OBSTACK_H)
3737build/genrecog.o : genrecog.c $(RTL_BASE_H) $(BCONFIG_H) $(SYSTEM_H)	\
3738  coretypes.h $(GTM_H) errors.h gensupport.h
3739
3740# Compile the programs that generate insn-* from the machine description.
3741# They are compiled with $(COMPILER_FOR_BUILD), and associated libraries,
3742# since they need to run on this machine
3743# even if GCC is being compiled to run on some other machine.
3744
3745# As a general rule...
3746build/gen%$(build_exeext): build/gen%.o $(BUILD_LIBDEPS)
3747	$(LINKER_FOR_BUILD) $(BUILD_LINKERFLAGS) $(BUILD_LDFLAGS) -o $@ \
3748	    $(filter-out $(BUILD_LIBDEPS), $^) $(BUILD_LIBS)
3749
3750# All these programs use the MD reader ($(BUILD_RTL)).
3751genprogmd = attr attrtab automata codes conditions config constants emit \
3752	    extract flags mddeps opinit output peep preds recog
3753$(genprogmd:%=build/gen%$(build_exeext)): $(BUILD_RTL) $(BUILD_ERRORS)
3754
3755# These programs need libs over and above what they get from the above list.
3756build/genautomata$(build_exeext) : BUILD_LIBS += -lm
3757
3758# These programs are not linked with the MD reader.
3759build/gengenrtl$(build_exeext) : $(BUILD_ERRORS)
3760build/genmodes$(build_exeext) : $(BUILD_ERRORS)
3761build/gengtype$(build_exeext) : build/gengtype-lex.o build/gengtype-parse.o \
3762				$(BUILD_ERRORS)
3763
3764# Generated source files for gengtype.
3765gengtype-lex.c : gengtype-lex.l
3766	-$(FLEX) $(FLEXFLAGS) -o$@ $<
3767
3768#
3769# Remake internationalization support.
3770intl.o: intl.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) intl.h Makefile
3771	$(COMPILER) $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) \
3772	  -DLOCALEDIR=\"$(localedir)\" \
3773	  -c $(srcdir)/intl.c $(OUTPUT_OPTION)
3774
3775#
3776# Remake cpp.
3777
3778PREPROCESSOR_DEFINES = \
3779  -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
3780  -DFIXED_INCLUDE_DIR=\"$(libsubdir)/include-fixed\" \
3781  -DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \
3782  -DGPLUSPLUS_TOOL_INCLUDE_DIR=\"$(gcc_gxx_include_dir)/$(target_noncanonical)\" \
3783  -DGPLUSPLUS_BACKWARD_INCLUDE_DIR=\"$(gcc_gxx_include_dir)/backward\" \
3784  -DLOCAL_INCLUDE_DIR=\"$(local_includedir)\" \
3785  -DCROSS_INCLUDE_DIR=\"$(CROSS_SYSTEM_HEADER_DIR)\" \
3786  -DTOOL_INCLUDE_DIR=\"$(gcc_tooldir)/include\" \
3787  -DPREFIX=\"$(prefix)/\" \
3788  -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc/\" \
3789  @TARGET_SYSTEM_ROOT_DEFINE@
3790
3791cppdefault.o: cppdefault.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
3792	cppdefault.h Makefile
3793	$(COMPILER) $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) \
3794	  $(PREPROCESSOR_DEFINES) \
3795	  -c $(srcdir)/cppdefault.c $(OUTPUT_OPTION)
3796
3797# Note for the stamp targets, we run the program `true' instead of
3798# having an empty command (nothing following the semicolon).
3799
3800# gcov-iov.c is run on the build machine to generate gcov-iov.h from version.c
3801build/gcov-iov.o: gcov-iov.c $(BCONFIG_H) coretypes.h $(GTM_H) \
3802  $(SYSTEM_H) coretypes.h $(TM_H)
3803
3804build/gcov-iov$(build_exeext): build/gcov-iov.o
3805	$(LINKER_FOR_BUILD) $(BUILD_LINKERFLAGS) $(BUILD_LDFLAGS) \
3806		build/gcov-iov.o -o $@
3807
3808gcov-iov.h: s-iov
3809s-iov: build/gcov-iov$(build_exeext) $(BASEVER) $(DEVPHASE)
3810	build/gcov-iov$(build_exeext) '$(BASEVER_c)' '$(DEVPHASE_c)' \
3811	    > tmp-gcov-iov.h
3812	$(SHELL) $(srcdir)/../move-if-change tmp-gcov-iov.h gcov-iov.h
3813	$(STAMP) s-iov
3814
3815gcov.o: gcov.c gcov-io.c $(GCOV_IO_H) intl.h $(SYSTEM_H) coretypes.h $(TM_H) \
3816   $(CONFIG_H) version.h
3817gcov-dump.o: gcov-dump.c gcov-io.c $(GCOV_IO_H) $(SYSTEM_H) coretypes.h \
3818   $(TM_H) $(CONFIG_H) version.h
3819
3820GCOV_OBJS = gcov.o intl.o version.o errors.o
3821gcov$(exeext): $(GCOV_OBJS) $(LIBDEPS)
3822	$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) $(GCOV_OBJS) $(LIBS) -o $@
3823GCOV_DUMP_OBJS = gcov-dump.o version.o errors.o
3824gcov-dump$(exeext): $(GCOV_DUMP_OBJS) $(LIBDEPS)
3825	$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) $(GCOV_DUMP_OBJS) \
3826		$(LIBS) -o $@
3827#
3828# Build the include directories.  The stamp files are stmp-* rather than
3829# s-* so that mostlyclean does not force the include directory to
3830# be rebuilt.
3831
3832unwind.h: $(UNWIND_H)
3833	-if [ -d include ] ; then true; else mkdir include; chmod a+rx include; fi
3834	rm -f include/unwind.h
3835	cp $(UNWIND_H) include/unwind.h
3836	chmod a+r include/unwind.h
3837
3838# Build the include directories.
3839stmp-int-hdrs: $(STMP_FIXINC) $(USER_H) $(UNWIND_H) fixinc_list
3840# Copy in the headers provided with gcc.
3841# The sed command gets just the last file name component;
3842# this is necessary because VPATH could add a dirname.
3843# Using basename would be simpler, but some systems don't have it.
3844# The touch command is here to workaround an AIX/Linux NFS bug.
3845	-if [ -d include ] ; then true; else mkdir include; chmod a+rx include; fi
3846	-if [ -d include-fixed ] ; then true; else mkdir include-fixed; chmod a+rx include-fixed; fi
3847	if false; then \
3848	for file in .. $(USER_H); do \
3849	  if [ X$$file != X.. ]; then \
3850	    realfile=`echo $$file | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
3851	    $(STAMP) include/$$realfile; \
3852	    rm -f include/$$realfile; \
3853	    cp $$file include; \
3854	    chmod a+r include/$$realfile; \
3855	  fi; \
3856	done; \
3857	fi
3858	rm -f include/unwind.h
3859	cp $(UNWIND_H) include/unwind.h
3860	chmod a+r include/unwind.h
3861	if false; then \
3862	rm -f include/stdint.h; \
3863	if [ $(USE_GCC_STDINT) = wrap ]; then \
3864	  rm -f include/stdint-gcc.h; \
3865	  cp $(srcdir)/ginclude/stdint-gcc.h include/stdint-gcc.h; \
3866	  chmod a+r include/stdint-gcc.h; \
3867	  cp $(srcdir)/ginclude/stdint-wrap.h include/stdint.h; \
3868	  chmod a+r include/stdint.h; \
3869	elif [ $(USE_GCC_STDINT) = provide ]; then \
3870	  cp $(srcdir)/ginclude/stdint-gcc.h include/stdint.h; \
3871	  chmod a+r include/stdint.h; \
3872	fi; \
3873	set -e; for ml in `cat fixinc_list`; do \
3874	  sysroot_headers_suffix=`echo $${ml} | sed -e 's/;.*$$//'`; \
3875	  multi_dir=`echo $${ml} | sed -e 's/^[^;]*;//'`; \
3876	  fix_dir=include-fixed$${multi_dir}; \
3877	  if $(LIMITS_H_TEST) ; then \
3878	    cat $(srcdir)/limitx.h $(srcdir)/glimits.h $(srcdir)/limity.h > tmp-xlimits.h; \
3879	  else \
3880	    cat $(srcdir)/glimits.h > tmp-xlimits.h; \
3881	  fi; \
3882	  $(mkinstalldirs) $${fix_dir}; \
3883	  chmod a+rx $${fix_dir} || true; \
3884	  rm -f $${fix_dir}/limits.h; \
3885	  mv tmp-xlimits.h $${fix_dir}/limits.h; \
3886	  chmod a+r $${fix_dir}/limits.h; \
3887	done; \
3888	fi
3889# Install the README
3890	rm -f include-fixed/README
3891	cp $(srcdir)/../fixincludes/README-fixinc include-fixed/README
3892	chmod a+r include-fixed/README
3893	$(STAMP) $@
3894
3895.PHONY: install-gcc-tooldir
3896install-gcc-tooldir:
3897	$(mkinstalldirs) $(DESTDIR)$(gcc_tooldir)
3898
3899macro_list: s-macro_list; @true
3900s-macro_list : $(GCC_PASSES)
3901	echo | $(GCC_FOR_TARGET) -E -dM - | \
3902	  sed -n -e 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p' \
3903		 -e 's/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
3904	  sort -u > tmp-macro_list
3905	$(SHELL) $(srcdir)/../move-if-change tmp-macro_list macro_list
3906	$(STAMP) s-macro_list
3907
3908fixinc_list: s-fixinc_list; @true
3909s-fixinc_list : $(GCC_PASSES)
3910# Build up a list of multilib directories and corresponding sysroot
3911# suffixes, in form sysroot;multilib.
3912	if $(GCC_FOR_TARGET) -print-sysroot-headers-suffix > /dev/null 2>&1; then \
3913	  set -e; for ml in `$(GCC_FOR_TARGET) -print-multi-lib`; do \
3914	    multi_dir=`echo $${ml} | sed -e 's/;.*$$//'`; \
3915	    flags=`echo $${ml} | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
3916	    sfx=`$(GCC_FOR_TARGET) $${flags} -print-sysroot-headers-suffix`; \
3917	    if [ "$${multi_dir}" = "." ]; \
3918	      then multi_dir=""; \
3919	    else \
3920	      multi_dir=/$${multi_dir}; \
3921	    fi; \
3922	    echo "$${sfx};$${multi_dir}"; \
3923	  done; \
3924	else \
3925	  echo ";"; \
3926	fi > tmp-fixinc_list
3927	$(SHELL) $(srcdir)/../move-if-change tmp-fixinc_list fixinc_list
3928	$(STAMP) s-fixinc_list
3929
3930# The line below is supposed to avoid accidentally matching the
3931# built-in suffix rule `.o:' to build fixincl out of fixincl.o.  You'd
3932# expect fixincl to be newer than fixincl.o, such that this situation
3933# would never come up.  As it turns out, if you use ccache with
3934# CCACHE_HARDLINK enabled, the compiler doesn't embed the current
3935# working directory in object files (-g absent, or -fno-working-dir
3936# present), and build and host are the same, fixincl for the host will
3937# build after fixincl for the build machine, getting a cache hit,
3938# thereby updating the timestamp of fixincl.o in the host tree.
3939# Because of CCACHE_HARDLINK, this will also update the timestamp in
3940# the build tree, and so fixincl in the build tree will appear to be
3941# out of date.  Yuck.
3942../$(build_subdir)/fixincludes/fixincl: ; @ :
3943
3944# Build fixed copies of system files.
3945# Abort if no system headers available, unless building a crosscompiler.
3946# FIXME: abort unless building --without-headers would be more accurate and less ugly
3947stmp-fixinc: gsyslimits.h macro_list fixinc_list \
3948  $(build_objdir)/fixincludes/fixincl$(build_exeext) \
3949  $(build_objdir)/fixincludes/fixinc.sh
3950	if false; then \
3951	rm -rf include-fixed; mkdir include-fixed; \
3952	-chmod a+rx include-fixed; \
3953	if [ -d ../prev-gcc ]; then \
3954	  cd ../prev-gcc && \
3955	  $(MAKE) real-$(INSTALL_HEADERS_DIR) DESTDIR=`pwd`/../gcc/ \
3956	    libsubdir=. ; \
3957	else \
3958	  set -e; for ml in `cat fixinc_list`; do \
3959	    sysroot_headers_suffix=`echo $${ml} | sed -e 's/;.*$$//'`; \
3960	    multi_dir=`echo $${ml} | sed -e 's/^[^;]*;//'`; \
3961	    fix_dir=include-fixed$${multi_dir}; \
3962	    if ! $(inhibit_libc) && test ! -d ${SYSTEM_HEADER_DIR}; then \
3963	      echo The directory that should contain system headers does not exist: >&2 ; \
3964	      echo "  ${SYSTEM_HEADER_DIR}" >&2 ; \
3965	      tooldir_sysinc=`echo "${gcc_tooldir}/sys-include" | sed -e :a -e "s,[^/]*/\.\.\/,," -e ta`; \
3966	      if test "x${SYSTEM_HEADER_DIR}" = "x$${tooldir_sysinc}"; \
3967	      then sleep 1; else exit 1; fi; \
3968	    fi; \
3969	    $(mkinstalldirs) $${fix_dir}; \
3970	    chmod a+rx $${fix_dir} || true; \
3971	    (TARGET_MACHINE='$(target)'; srcdir=`cd $(srcdir); ${PWD_COMMAND}`; \
3972	      SHELL='$(SHELL)'; MACRO_LIST=`${PWD_COMMAND}`/macro_list ; \
3973	      gcc_dir=`${PWD_COMMAND}` ; \
3974	      export TARGET_MACHINE srcdir SHELL MACRO_LIST && \
3975	      cd $(build_objdir)/fixincludes && \
3976	      $(SHELL) ./fixinc.sh "$${gcc_dir}/$${fix_dir}" \
3977	        $(SYSTEM_HEADER_DIR) $(OTHER_FIXINCLUDES_DIRS) ); \
3978	    rm -f $${fix_dir}/syslimits.h; \
3979	    if [ -f $${fix_dir}/limits.h ]; then \
3980	      mv $${fix_dir}/limits.h $${fix_dir}/syslimits.h; \
3981	    else \
3982	      cp $(srcdir)/gsyslimits.h $${fix_dir}/syslimits.h; \
3983	    fi; \
3984	    chmod a+r $${fix_dir}/syslimits.h; \
3985	  done; \
3986	fi; \
3987	fi
3988	$(STAMP) stmp-fixinc
3989#
3990# Remake the info files.
3991
3992doc: $(BUILD_INFO) $(GENERATED_MANPAGES) gccbug
3993
3994INFOFILES = doc/cpp.info doc/gcc.info doc/gccint.info \
3995            doc/gccinstall.info doc/cppinternals.info
3996
3997info: $(INFOFILES) lang.info @GENINSRC@ srcinfo lang.srcinfo
3998
3999srcinfo: $(INFOFILES)
4000	-cp -p $^ $(srcdir)/doc
4001
4002TEXI_CPP_FILES = cpp.texi fdl.texi cppenv.texi cppopts.texi		\
4003	 gcc-common.texi gcc-vers.texi
4004
4005TEXI_GCC_FILES = gcc.texi gcc-common.texi gcc-vers.texi frontends.texi	\
4006	 standards.texi invoke.texi extend.texi md.texi objc.texi	\
4007	 gcov.texi trouble.texi bugreport.texi service.texi		\
4008	 contribute.texi compat.texi funding.texi gnu.texi gpl_v3.texi	\
4009	 fdl.texi contrib.texi cppenv.texi cppopts.texi			\
4010	 implement-c.texi implement-cxx.texi arm-neon-intrinsics.texi
4011
4012TEXI_GCCINT_FILES = gccint.texi gcc-common.texi gcc-vers.texi		\
4013	 contribute.texi makefile.texi configterms.texi options.texi	\
4014	 portability.texi interface.texi passes.texi	\
4015	 rtl.texi md.texi tm.texi hostconfig.texi fragments.texi	\
4016	 configfiles.texi collect2.texi headerdirs.texi funding.texi	\
4017	 gnu.texi gpl_v3.texi fdl.texi contrib.texi languages.texi	\
4018	 sourcebuild.texi gty.texi libgcc.texi cfg.texi tree-ssa.texi	\
4019	 loop.texi generic.texi gimple.texi plugins.texi
4020
4021TEXI_GCCINSTALL_FILES = install.texi install-old.texi fdl.texi		\
4022	 gcc-common.texi gcc-vers.texi
4023
4024TEXI_CPPINT_FILES = cppinternals.texi gcc-common.texi gcc-vers.texi
4025
4026# gcc-vers.texi is generated from the version files.
4027gcc-vers.texi: $(BASEVER) $(DEVPHASE)
4028	(echo "@set version-GCC $(BASEVER_c)"; \
4029	 if [ "$(DEVPHASE_c)" = "experimental" ]; \
4030	 then echo "@set DEVELOPMENT"; \
4031	 else echo "@clear DEVELOPMENT"; \
4032	 fi) > $@T
4033	$(build_file_translate) echo @set srcdir $(abs_srcdir) >> $@T
4034	if [ -n "$(PKGVERSION)" ]; then \
4035	  echo "@set VERSION_PACKAGE $(PKGVERSION)" >> $@T; \
4036	fi
4037	echo "@set BUGURL $(BUGURL_TEXI)" >> $@T; \
4038	mv -f $@T $@
4039
4040
4041# The *.1, *.7, *.info, *.dvi, and *.pdf files are being generated from implicit
4042# patterns.  To use them, put each of the specific targets with its
4043# specific dependencies but no build commands.
4044
4045doc/cpp.info: $(TEXI_CPP_FILES)
4046doc/gcc.info: $(TEXI_GCC_FILES)
4047doc/gccint.info: $(TEXI_GCCINT_FILES)
4048doc/cppinternals.info: $(TEXI_CPPINT_FILES)
4049
4050doc/%.info: %.texi
4051	if [ x$(BUILD_INFO) = xinfo ]; then \
4052		$(MAKEINFO) $(MAKEINFOFLAGS) -I . -I $(gcc_docdir) \
4053			-I $(gcc_docdir)/include -o $@ $<; \
4054	fi
4055
4056# Duplicate entry to handle renaming of gccinstall.info
4057doc/gccinstall.info: $(TEXI_GCCINSTALL_FILES)
4058	if [ x$(BUILD_INFO) = xinfo ]; then \
4059		$(MAKEINFO) $(MAKEINFOFLAGS) -I $(gcc_docdir) \
4060			-I $(gcc_docdir)/include -o $@ $<; \
4061	fi
4062
4063doc/cpp.dvi: $(TEXI_CPP_FILES)
4064doc/gcc.dvi: $(TEXI_GCC_FILES)
4065doc/gccint.dvi: $(TEXI_GCCINT_FILES)
4066doc/cppinternals.dvi: $(TEXI_CPPINT_FILES)
4067
4068doc/cpp.pdf: $(TEXI_CPP_FILES)
4069doc/gcc.pdf: $(TEXI_GCC_FILES)
4070doc/gccint.pdf: $(TEXI_GCCINT_FILES)
4071doc/cppinternals.pdf: $(TEXI_CPPINT_FILES)
4072
4073$(build_htmldir)/cpp/index.html: $(TEXI_CPP_FILES)
4074$(build_htmldir)/gcc/index.html: $(TEXI_GCC_FILES)
4075$(build_htmldir)/gccint/index.html: $(TEXI_GCCINT_FILES)
4076$(build_htmldir)/cppinternals/index.html: $(TEXI_CPPINT_FILES)
4077
4078dvi:: doc/gcc.dvi doc/gccint.dvi doc/gccinstall.dvi doc/cpp.dvi \
4079      doc/cppinternals.dvi lang.dvi
4080
4081doc/%.dvi: %.texi
4082	$(TEXI2DVI) -I . -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $<
4083
4084# Duplicate entry to handle renaming of gccinstall.dvi
4085doc/gccinstall.dvi: $(TEXI_GCCINSTALL_FILES)
4086	$(TEXI2DVI) -I . -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $<
4087
4088PDFFILES = doc/gcc.pdf doc/gccint.pdf doc/gccinstall.pdf doc/cpp.pdf \
4089           doc/cppinternals.pdf
4090
4091pdf:: $(PDFFILES) lang.pdf
4092
4093doc/%.pdf: %.texi
4094	$(TEXI2PDF) -I . -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $<
4095
4096# Duplicate entry to handle renaming of gccinstall.pdf
4097doc/gccinstall.pdf: $(TEXI_GCCINSTALL_FILES)
4098	$(TEXI2PDF) -I . -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $<
4099
4100# List the directories or single hmtl files which are installed by
4101# install-html. The lang.html file triggers language fragments to build
4102# html documentation.
4103HTMLS_INSTALL=$(build_htmldir)/cpp $(build_htmldir)/gcc \
4104       $(build_htmldir)/gccinstall $(build_htmldir)/gccint \
4105       $(build_htmldir)/cppinternals
4106
4107# List the html file targets.
4108HTMLS_BUILD=$(build_htmldir)/cpp/index.html $(build_htmldir)/gcc/index.html \
4109       $(build_htmldir)/gccinstall/index.html $(build_htmldir)/gccint/index.html \
4110       $(build_htmldir)/cppinternals/index.html lang.html
4111
4112html:: $(HTMLS_BUILD)
4113
4114$(build_htmldir)/%/index.html: %.texi
4115	$(mkinstalldirs) $(@D)
4116	rm -f $(@D)/*
4117	$(TEXI2HTML) -I $(abs_docdir) -I $(abs_docdir)/include -o $(@D) $<
4118
4119# Duplicate entry to handle renaming of gccinstall
4120$(build_htmldir)/gccinstall/index.html: $(TEXI_GCCINSTALL_FILES)
4121	$(mkinstalldirs) $(@D)
4122	echo rm -f $(@D)/*
4123	SOURCEDIR=$(abs_docdir) \
4124	DESTDIR=$(@D) \
4125	$(SHELL) $(srcdir)/doc/install.texi2html
4126
4127MANFILES = doc/gcov.1 doc/cpp.1 doc/gcc.1 doc/gfdl.7 doc/gpl.7 doc/fsf-funding.7
4128
4129generated-manpages: man
4130
4131man: $(MANFILES) lang.man @GENINSRC@ srcman lang.srcman
4132
4133srcman: $(MANFILES)
4134	-cp -p $^ $(srcdir)/doc
4135
4136doc/%.1: %.pod
4137	$(STAMP) $@
4138	-($(POD2MAN) --section=1 $< > $(@).T$$$$ && \
4139		mv -f $(@).T$$$$ $@) || \
4140		(rm -f $(@).T$$$$ && exit 1)
4141
4142doc/%.7: %.pod
4143	$(STAMP) $@
4144	-($(POD2MAN) --section=7 $< > $(@).T$$$$ && \
4145		mv -f $(@).T$$$$ $@) || \
4146		(rm -f $(@).T$$$$ && exit 1)
4147
4148%.pod: %.texi
4149	$(STAMP) $@
4150	-$(TEXI2POD) -DBUGURL="$(BUGURL_TEXI)" $< > $@
4151
4152.INTERMEDIATE: cpp.pod gcc.pod gfdl.pod fsf-funding.pod
4153cpp.pod: cpp.texi cppenv.texi cppopts.texi
4154
4155# These next rules exist because the output name is not the same as
4156# the input name, so our implicit %.pod rule will not work.
4157
4158gcc.pod: invoke.texi cppenv.texi cppopts.texi gcc-vers.texi
4159	$(STAMP) $@
4160	-$(TEXI2POD) $< > $@
4161gfdl.pod: fdl.texi
4162	$(STAMP) $@
4163	-$(TEXI2POD) $< > $@
4164fsf-funding.pod: funding.texi
4165	$(STAMP) $@
4166	-$(TEXI2POD) $< > $@
4167gpl.pod: gpl_v3.texi
4168	$(STAMP) $@
4169	-$(TEXI2POD) $< > $@
4170
4171#
4172# Deletion of files made during compilation.
4173# There are four levels of this:
4174#   `mostlyclean', `clean', `distclean' and `maintainer-clean'.
4175# `mostlyclean' is useful while working on a particular type of machine.
4176# It deletes most, but not all, of the files made by compilation.
4177# It does not delete libgcc.a or its parts, so it won't have to be recompiled.
4178# `clean' deletes everything made by running `make all'.
4179# `distclean' also deletes the files made by config.
4180# `maintainer-clean' also deletes everything that could be regenerated
4181# automatically, except for `configure'.
4182# We remove as much from the language subdirectories as we can
4183# (less duplicated code).
4184
4185mostlyclean: lang.mostlyclean
4186	-rm -f $(MOSTLYCLEANFILES)
4187	-rm -f *$(objext)
4188	-rm -f *$(coverageexts)
4189# Delete build programs
4190	-rm -f build/*
4191	-rm -f mddeps.mk
4192# Delete other built files.
4193	-rm -f specs.h options.c options.h
4194# Delete the stamp and temporary files.
4195	-rm -f s-* tmp-* stamp-* stmp-*
4196	-rm -f */stamp-* */tmp-*
4197# Delete debugging dump files.
4198	-rm -f *.[0-9][0-9].* */*.[0-9][0-9].*
4199# Delete some files made during installation.
4200	-rm -f specs $(SPECS)
4201	-rm -f collect collect2 mips-tfile mips-tdump
4202# Delete unwanted output files from TeX.
4203	-rm -f *.toc *.log *.vr *.fn *.cp *.tp *.ky *.pg
4204	-rm -f */*.toc */*.log */*.vr */*.fn */*.cp */*.tp */*.ky */*.pg
4205# Delete sorted indices we don't actually use.
4206	-rm -f gcc.vrs gcc.kys gcc.tps gcc.pgs gcc.fns
4207# Delete core dumps.
4208	-rm -f core */core
4209# Delete file generated for gengtype
4210	-rm -f gtyp-input.list
4211# Delete files generated by gengtype.c
4212	-rm -f gtype-*
4213	-rm -f gt-*
4214# Delete genchecksum outputs
4215	-rm -f *-checksum.c
4216
4217# Delete all files made by compilation
4218# that don't exist in the distribution.
4219clean: mostlyclean lang.clean
4220	-rm -f libgcc.a libgcc_eh.a libgcov.a
4221	-rm -f libgcc_s*
4222	-rm -f libunwind*
4223	-rm -f config.h tconfig.h bconfig.h tm_p.h tm.h
4224	-rm -f options.c options.h optionlist
4225	-rm -f cs-*
4226	-rm -f doc/*.dvi
4227	-rm -f doc/*.pdf
4228# Delete the include directories.
4229	-rm -rf include include-fixed
4230# Delete files used by the "multilib" facility (including libgcc subdirs).
4231	-rm -f multilib.h tmpmultilib*
4232	-if [ "x$(MULTILIB_DIRNAMES)" != x ] ; then \
4233	  rm -rf $(MULTILIB_DIRNAMES); \
4234	else if [ "x$(MULTILIB_OPTIONS)" != x ] ; then \
4235	  rm -rf `echo $(MULTILIB_OPTIONS) | sed -e 's/\// /g'`; \
4236	fi ; fi
4237
4238# Delete all files that users would normally create
4239# while building and installing GCC.
4240distclean: clean lang.distclean
4241	-rm -f auto-host.h auto-build.h
4242	-rm -f cstamp-h
4243	-rm -f config.status config.run config.cache config.bak
4244	-rm -f Make-lang Make-hooks Make-host Make-target
4245	-rm -f Makefile *.oaux
4246	-rm -f gthr-default.h
4247	-rm -f TAGS */TAGS
4248	-rm -f *.asm
4249	-rm -f site.exp site.bak testsuite/site.exp testsuite/site.bak
4250	-rm -f testsuite/*.log testsuite/*.sum
4251	-cd testsuite && rm -f x *.x *.x? *.exe *.rpo *.o *.s *.S *.c
4252	-cd testsuite && rm -f *.out *.gcov *$(coverageexts)
4253	-rm -rf ${QMTEST_DIR} stamp-qmtest
4254	-rm -f cxxmain.c
4255	-rm -f gccbug .gdbinit configargs.h
4256	-rm -f gcov.pod
4257# Delete po/*.gmo only if we are not building in the source directory.
4258	-if [ ! -f po/exgettext ]; then rm -f po/*.gmo; fi
4259	-rmdir ada cp f java objc intl po testsuite 2>/dev/null
4260
4261# Get rid of every file that's generated from some other file, except for `configure'.
4262# Most of these files ARE PRESENT in the GCC distribution.
4263maintainer-clean:
4264	@echo 'This command is intended for maintainers to use; it'
4265	@echo 'deletes files that may need special tools to rebuild.'
4266	$(MAKE) lang.maintainer-clean distclean
4267	-rm -f cpp.??s cpp.*aux
4268	-rm -f gcc.??s gcc.*aux
4269	-rm -f $(gcc_docdir)/*.info $(gcc_docdir)/*.1 $(gcc_docdir)/*.7 $(gcc_docdir)/*.dvi $(gcc_docdir)/*.pdf
4270#
4271# Entry points `install' and `uninstall'.
4272# Also use `install-collect2' to install collect2 when the config files don't.
4273
4274# Copy the compiler files into directories where they will be run.
4275# Install the driver last so that the window when things are
4276# broken is small.
4277install: install-common $(INSTALL_HEADERS) \
4278    install-cpp install-man install-info install-@POSUB@ \
4279    install-driver install-lto-wrapper
4280
4281ifeq ($(enable_plugin),yes)
4282install: install-plugin
4283endif
4284
4285# Handle cpp installation.
4286install-cpp: installdirs cpp$(exeext)
4287	-rm -f $(DESTDIR)$(bindir)/$(CPP_INSTALL_NAME)$(exeext)
4288	-$(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(DESTDIR)$(bindir)/$(CPP_INSTALL_NAME)$(exeext)
4289	-if [ x$(cpp_install_dir) != x ]; then \
4290	  rm -f $(DESTDIR)$(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
4291	  $(INSTALL_PROGRAM) -m 755 cpp$(exeext) $(DESTDIR)$(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
4292	else true; fi
4293
4294# Create the installation directories.
4295# $(libdir)/gcc/include isn't currently searched by cpp.
4296installdirs:
4297	$(mkinstalldirs) $(DESTDIR)$(libsubdir)
4298	$(mkinstalldirs) $(DESTDIR)$(libexecsubdir)
4299	$(mkinstalldirs) $(DESTDIR)$(bindir)
4300	$(mkinstalldirs) $(DESTDIR)$(includedir)
4301	$(mkinstalldirs) $(DESTDIR)$(infodir)
4302	$(mkinstalldirs) $(DESTDIR)$(slibdir)
4303	$(mkinstalldirs) $(DESTDIR)$(man1dir)
4304	$(mkinstalldirs) $(DESTDIR)$(man7dir)
4305
4306PLUGIN_HEADERS = $(TREE_H) $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
4307  $(TOPLEV_H) $(BASIC_BLOCK_H) $(GIMPLE_H) $(TREE_PASS_H) $(GCC_PLUGIN_H) \
4308  $(GGC_H) $(TREE_DUMP_H) $(PRETTY_PRINT_H) opts.h $(PARAMS_H) plugin.def \
4309  $(tm_file_list) $(tm_include_list) $(tm_p_file_list) $(tm_p_include_list) \
4310  $(host_xm_file_list) $(host_xm_include_list) $(xm_include_list) \
4311  intl.h $(PLUGIN_VERSION_H) $(DIAGNOSTIC_H) $(C_COMMON_H) $(C_PRETTY_PRINT_H) \
4312  tree-iterator.h $(PLUGIN_H) $(TREE_FLOW_H) langhooks.h incpath.h debug.h \
4313  except.h tree-ssa-sccvn.h real.h output.h $(IPA_UTILS_H) \
4314  $(C_PRAGMA_H)  $(CPPLIB_H)  $(FUNCTION_H) \
4315  cppdefault.h flags.h $(MD5_H) params.def params.h prefix.h tree-inline.h \
4316  $(IPA_PROP_H) $(RTL_H) $(TM_P_H) $(CFGLOOP_H) $(EMIT_RTL_H) version.h
4317
4318# generate the 'build fragment' b-header-vars
4319s-header-vars: Makefile
4320	rm -f tmp-header-vars
4321	$(foreach header_var,$(shell sed < Makefile -e 's/^\([A-Z0-9_]*_H\)[      ]*=.*/\1/p' -e d),echo $(header_var)=$(shell echo $($(header_var):$(srcdir)/%=.../%) | sed -e 's~\.\.\./config/~config/~' -e 's~\.\.\..*/~~') >> tmp-header-vars;) \
4322	$(SHELL) $(srcdir)/../move-if-change tmp-header-vars b-header-vars
4323	$(STAMP) s-header-vars
4324
4325# Install the headers needed to build a plugin.
4326install-plugin: installdirs lang.install-plugin s-header-vars
4327# We keep the directory structure for files in config and .def files. All
4328# other files are flattened to a single directory.
4329	$(mkinstalldirs) $(DESTDIR)$(plugin_includedir)
4330	headers=`echo $(PLUGIN_HEADERS) | tr ' ' '\012' | sort -u`; \
4331	srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`; \
4332	for file in $$headers; do \
4333	  if [ -f $$file ] ; then \
4334	    path=$$file; \
4335	  elif [ -f $(srcdir)/$$file ]; then \
4336	    path=$(srcdir)/$$file; \
4337	  else continue; \
4338	  fi; \
4339	  case $$path in \
4340	  "$(srcdir)"/config/* | "$(srcdir)"/*.def ) \
4341	    base=`echo "$$path" | sed -e "s|$$srcdirstrip/||"`;; \
4342	  *) base=`basename $$path` ;; \
4343	  esac; \
4344	  dest=$(plugin_includedir)/$$base; \
4345	  echo $(INSTALL_DATA) $$path $(DESTDIR)$$dest; \
4346	  dir=`dirname $$dest`; \
4347	  $(mkinstalldirs) $(DESTDIR)$$dir; \
4348	  $(INSTALL_DATA) $$path $(DESTDIR)$$dest; \
4349	done
4350	$(INSTALL_DATA) b-header-vars $(DESTDIR)$(plugin_includedir)/b-header-vars
4351
4352# Install the compiler executables built during cross compilation.
4353install-common: native lang.install-common installdirs
4354	for file in $(COMPILERS); do \
4355	  if [ -f $$file ] ; then \
4356	    rm -f $(DESTDIR)$(libexecsubdir)/$$file; \
4357	    $(INSTALL_PROGRAM) $$file $(DESTDIR)$(libexecsubdir)/$$file; \
4358	  else true; \
4359	  fi; \
4360	done
4361	for file in $(EXTRA_PASSES) $(EXTRA_PROGRAMS) $(COLLECT2) ..; do \
4362	  if [ x"$$file" != x.. ]; then \
4363	    rm -f $(DESTDIR)$(libexecsubdir)/$$file; \
4364	    $(INSTALL_PROGRAM) $$file $(DESTDIR)$(libexecsubdir)/$$file; \
4365	  else true; fi; \
4366	done
4367# We no longer install the specs file because its presence makes the
4368# driver slower, and because people who need it can recreate it by
4369# using -dumpspecs.  We remove any old version because it would
4370# otherwise override the specs built into the driver.
4371	rm -f $(DESTDIR)$(libsubdir)/specs
4372# Install gcov if it was compiled.
4373	-if [ -f gcov$(exeext) ]; \
4374	then \
4375	    rm -f $(DESTDIR)$(bindir)/$(GCOV_INSTALL_NAME)$(exeext); \
4376	    $(INSTALL_PROGRAM) gcov$(exeext) $(DESTDIR)$(bindir)/$(GCOV_INSTALL_NAME)$(exeext); \
4377	fi
4378	$(INSTALL_SCRIPT) gccbug $(DESTDIR)$(bindir)/$(GCCBUG_INSTALL_NAME)
4379
4380# Install the driver program as $(target_noncanonical)-gcc,
4381# $(target_noncanonical)-gcc-$(version)
4382# and also as either gcc (if native) or $(gcc_tooldir)/bin/gcc.
4383install-driver: installdirs xgcc$(exeext)
4384	-rm -f $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext)
4385	-$(INSTALL_PROGRAM) xgcc$(exeext) $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext)
4386	-rm -f $(DESTDIR)$(bindir)/$(target_noncanonical)-gcc-$(version)$(exeext)
4387	-( cd $(DESTDIR)$(bindir) && \
4388	   $(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_noncanonical)-gcc-$(version)$(exeext) )
4389	-if [ -f gcc-cross$(exeext) ] ; then \
4390	  if [ -d $(DESTDIR)$(gcc_tooldir)/bin/. ] ; then \
4391	    rm -f $(DESTDIR)$(gcc_tooldir)/bin/gcc$(exeext); \
4392	    $(INSTALL_PROGRAM) gcc-cross$(exeext) $(DESTDIR)$(gcc_tooldir)/bin/gcc$(exeext); \
4393	  else true; fi; \
4394	else \
4395	  rm -f $(DESTDIR)$(bindir)/$(target_noncanonical)-gcc-tmp$(exeext); \
4396	  ( cd $(DESTDIR)$(bindir) && \
4397	    $(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_noncanonical)-gcc-tmp$(exeext) && \
4398	    mv -f $(target_noncanonical)-gcc-tmp$(exeext) $(GCC_TARGET_INSTALL_NAME)$(exeext) ); \
4399	fi
4400
4401# Install the info files.
4402# $(INSTALL_DATA) might be a relative pathname, so we can't cd into srcdir
4403# to do the install.
4404install-info:: doc installdirs \
4405	$(DESTDIR)$(infodir)/cpp.info \
4406	$(DESTDIR)$(infodir)/gcc.info \
4407	$(DESTDIR)$(infodir)/cppinternals.info \
4408	$(DESTDIR)$(infodir)/gccinstall.info \
4409	$(DESTDIR)$(infodir)/gccint.info \
4410	lang.install-info
4411
4412$(DESTDIR)$(infodir)/%.info: doc/%.info installdirs
4413	@echo "NOT REBUILDING $@"
4414NetBSD_DISABLED_info:
4415	rm -f $@
4416	if [ -f $< ]; then \
4417	  for f in $(<)*; do \
4418	    realfile=`echo $$f | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
4419	    $(INSTALL_DATA) $$f $(DESTDIR)$(infodir)/$$realfile; \
4420	    chmod a-x $(DESTDIR)$(infodir)/$$realfile; \
4421	  done; \
4422	else true; fi
4423	-if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
4424	  if [ -f $@ ]; then \
4425	    install-info --dir-file=$(DESTDIR)$(infodir)/dir $@; \
4426	  else true; fi; \
4427	else true; fi;
4428
4429pdf__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
4430
4431install-pdf: $(PDFFILES) lang.install-pdf
4432	@$(NORMAL_INSTALL)
4433	test -z "$(pdfdir)/gcc" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)/gcc"
4434	@list='$(PDFFILES)'; for p in $$list; do \
4435	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
4436	  f=$(pdf__strip_dir) \
4437	  echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/gcc/$$f'"; \
4438	  $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/gcc/$$f"; \
4439	done
4440
4441html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
4442
4443install-html: $(HTMLS_BUILD) lang.install-html
4444	@$(NORMAL_INSTALL)
4445	test -z "$(htmldir)" || $(mkinstalldirs) "$(DESTDIR)$(htmldir)"
4446	@list='$(HTMLS_INSTALL)'; for p in $$list; do \
4447	  if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \
4448	  f=$(html__strip_dir) \
4449	  if test -d "$$d$$p"; then \
4450	    echo " $(mkinstalldirs) '$(DESTDIR)$(htmldir)/$$f'"; \
4451	    $(mkinstalldirs) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
4452	    echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
4453	    $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
4454	  else \
4455	    echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
4456	    $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
4457	  fi; \
4458	done
4459
4460# Install the man pages.
4461install-man: lang.install-man \
4462	$(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext) \
4463	$(DESTDIR)$(man1dir)/$(CPP_INSTALL_NAME)$(man1ext) \
4464	$(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext) \
4465	$(DESTDIR)$(man7dir)/fsf-funding$(man7ext) \
4466	$(DESTDIR)$(man7dir)/gfdl$(man7ext) \
4467	$(DESTDIR)$(man7dir)/gpl$(man7ext)
4468
4469$(DESTDIR)$(man7dir)/%$(man7ext): doc/%.7 installdirs
4470	-rm -f $@
4471	-$(INSTALL_DATA) $< $@
4472	-chmod a-x $@
4473
4474$(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext): doc/gcc.1 installdirs
4475	-rm -f $@
4476	-$(INSTALL_DATA) $< $@
4477	-chmod a-x $@
4478
4479$(DESTDIR)$(man1dir)/$(CPP_INSTALL_NAME)$(man1ext): doc/cpp.1 installdirs
4480	-rm -f $@
4481	-$(INSTALL_DATA) $< $@
4482	-chmod a-x $@
4483
4484$(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext): doc/gcov.1 installdirs
4485	-rm -f $@
4486	-$(INSTALL_DATA) $< $@
4487	-chmod a-x $@
4488
4489# Install all the header files built in the include subdirectory.
4490install-headers: $(INSTALL_HEADERS_DIR)
4491# Fix symlinks to absolute paths in the installed include directory to
4492# point to the installed directory, not the build directory.
4493# Don't need to use LN_S here since we really do need ln -s and no substitutes.
4494	-files=`cd $(DESTDIR)$(libsubdir)/include-fixed; find . -type l -print 2>/dev/null`; \
4495	if [ $$? -eq 0 ]; then \
4496	  dir=`cd include-fixed; ${PWD_COMMAND}`; \
4497	  for i in $$files; do \
4498	    dest=`ls -ld $(DESTDIR)$(libsubdir)/include-fixed/$$i | sed -n 's/.*-> //p'`; \
4499	    if expr "$$dest" : "$$dir.*" > /dev/null; then \
4500	      rm -f $(DESTDIR)$(libsubdir)/include-fixed/$$i; \
4501	      ln -s `echo $$i | sed "s|/[^/]*|/..|g" | sed 's|/..$$||'``echo "$$dest" | sed "s|$$dir||"` $(DESTDIR)$(libsubdir)/include-fixed/$$i; \
4502	    fi; \
4503	  done; \
4504	fi
4505
4506# Create or recreate the gcc private include file directory.
4507install-include-dir: installdirs
4508	$(mkinstalldirs) $(DESTDIR)$(libsubdir)/include
4509	-rm -rf $(DESTDIR)$(libsubdir)/include-fixed
4510	mkdir $(DESTDIR)$(libsubdir)/include-fixed
4511	-chmod a+rx $(DESTDIR)$(libsubdir)/include-fixed
4512
4513# Create or recreate the install-tools include file directory.
4514itoolsdir = $(libexecsubdir)/install-tools
4515itoolsdatadir = $(libsubdir)/install-tools
4516install-itoolsdirs: installdirs
4517	$(mkinstalldirs) $(DESTDIR)$(itoolsdatadir)/include
4518	$(mkinstalldirs) $(DESTDIR)$(itoolsdir)
4519
4520# Install the include directory using tar.
4521install-headers-tar: stmp-int-hdrs install-include-dir
4522# We use `pwd`/include instead of just include to problems with CDPATH
4523# Unless a full pathname is provided, some shells would print the new CWD,
4524# found in CDPATH, corrupting the output.  We could just redirect the
4525# output of `cd', but some shells lose on redirection within `()'s
4526	(cd `${PWD_COMMAND}`/include ; \
4527	 tar -cf - .; exit 0) | (cd $(DESTDIR)$(libsubdir)/include; tar xpf - )
4528	(cd `${PWD_COMMAND}`/include-fixed ; \
4529	 tar -cf - .; exit 0) | (cd $(DESTDIR)$(libsubdir)/include-fixed; tar xpf - )
4530# /bin/sh on some systems returns the status of the first tar,
4531# and that can lose with GNU tar which always writes a full block.
4532# So use `exit 0' to ignore its exit status.
4533
4534# Install the include directory using cpio.
4535install-headers-cpio: stmp-int-hdrs install-include-dir
4536# See discussion about the use of `pwd` above
4537	cd `${PWD_COMMAND}`/include ; \
4538	find . -print | cpio -pdum $(DESTDIR)$(libsubdir)/include
4539	cd `${PWD_COMMAND}`/include-fixed ; \
4540	find . -print | cpio -pdum $(DESTDIR)$(libsubdir)/include-fixed
4541
4542# Install the include directory using cp.
4543install-headers-cp: stmp-int-hdrs install-include-dir
4544	cp -p -r include $(DESTDIR)$(libsubdir)
4545	cp -p -r include-fixed $(DESTDIR)$(libsubdir)
4546
4547# Targets without dependencies, for use in prev-gcc during bootstrap.
4548real-install-headers-tar:
4549	(cd `${PWD_COMMAND}`/include-fixed ; \
4550	 tar -cf - .; exit 0) | (cd $(DESTDIR)$(libsubdir)/include-fixed; tar xpf - )
4551
4552real-install-headers-cpio:
4553	cd `${PWD_COMMAND}`/include-fixed ; \
4554	find . -print | cpio -pdum $(DESTDIR)$(libsubdir)/include-fixed
4555
4556real-install-headers-cp:
4557	cp -p -r include-fixed $(DESTDIR)$(libsubdir)
4558
4559# Install supporting files for fixincludes to be run later.
4560install-mkheaders: stmp-int-hdrs install-itoolsdirs \
4561  macro_list fixinc_list
4562	$(INSTALL_DATA) $(srcdir)/gsyslimits.h \
4563	  $(DESTDIR)$(itoolsdatadir)/gsyslimits.h
4564	$(INSTALL_DATA) macro_list $(DESTDIR)$(itoolsdatadir)/macro_list
4565	$(INSTALL_DATA) fixinc_list $(DESTDIR)$(itoolsdatadir)/fixinc_list
4566	set -e; for ml in `cat fixinc_list`; do \
4567	  multi_dir=`echo $${ml} | sed -e 's/^[^;]*;//'`; \
4568	  $(mkinstalldirs) $(DESTDIR)$(itoolsdatadir)/include$${multi_dir}; \
4569	  $(INSTALL_DATA) include-fixed$${multidir}/limits.h $(DESTDIR)$(itoolsdatadir)/include$${multi_dir}/limits.h; \
4570	done
4571	$(INSTALL_SCRIPT) $(srcdir)/../mkinstalldirs \
4572		$(DESTDIR)$(itoolsdir)/mkinstalldirs ; \
4573	sysroot_headers_suffix='$${sysroot_headers_suffix}'; \
4574		echo 'SYSTEM_HEADER_DIR="'"$(SYSTEM_HEADER_DIR)"'"' \
4575		> $(DESTDIR)$(itoolsdatadir)/mkheaders.conf
4576	echo 'OTHER_FIXINCLUDES_DIRS="$(OTHER_FIXINCLUDES_DIRS)"' \
4577		>> $(DESTDIR)$(itoolsdatadir)/mkheaders.conf
4578	echo 'STMP_FIXINC="$(STMP_FIXINC)"' \
4579		>> $(DESTDIR)$(itoolsdatadir)/mkheaders.conf
4580
4581# Use this target to install the program `collect2' under the name `collect2'.
4582install-collect2: collect2 installdirs
4583	$(INSTALL_PROGRAM) collect2$(exeext) $(DESTDIR)$(libexecsubdir)/collect2$(exeext)
4584# Install the driver program as $(libsubdir)/gcc for collect2.
4585	$(INSTALL_PROGRAM) xgcc$(exeext) $(DESTDIR)$(libexecsubdir)/gcc$(exeext)
4586
4587# Install lto-wrapper.
4588install-lto-wrapper: lto-wrapper$(exeext)
4589	$(INSTALL_PROGRAM) lto-wrapper$(exeext) $(DESTDIR)$(libexecsubdir)/lto-wrapper$(exeext)
4590
4591# Cancel installation by deleting the installed files.
4592uninstall: lang.uninstall
4593	-rm -rf $(DESTDIR)$(libsubdir)
4594	-rm -rf $(DESTDIR)$(libexecsubdir)
4595	-rm -rf $(DESTDIR)$(bindir)/$(GCC_INSTALL_NAME)$(exeext)
4596	-rm -f $(DESTDIR)$(bindir)/$(CPP_INSTALL_NAME)$(exeext)
4597	-if [ x$(cpp_install_dir) != x ]; then \
4598	  rm -f $(DESTDIR)$(prefix)/$(cpp_install_dir)/$(CPP_INSTALL_NAME)$(exeext); \
4599	else true; fi
4600	-rm -rf $(DESTDIR)$(bindir)/$(GCOV_INSTALL_NAME)$(exeext)
4601	-rm -rf $(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext)
4602	-rm -rf $(DESTDIR)$(man1dir)/cpp$(man1ext)
4603	-rm -f $(DESTDIR)$(infodir)/cpp.info* $(DESTDIR)$(infodir)/gcc.info*
4604	-rm -f $(DESTDIR)$(infodir)/cppinternals.info* $(DESTDIR)$(infodir)/gccint.info*
4605#
4606# These targets are for the dejagnu testsuites. The file site.exp
4607# contains global variables that all the testsuites will use.
4608
4609target_subdir = @target_subdir@
4610
4611site.exp: ./config.status Makefile
4612	@echo "Making a new config file..."
4613	-@rm -f ./tmp?
4614	@$(STAMP) site.exp
4615	-@mv site.exp site.bak
4616	@echo "## these variables are automatically generated by make ##" > ./tmp0
4617	@echo "# Do not edit here. If you wish to override these values" >> ./tmp0
4618	@echo "# add them to the last section" >> ./tmp0
4619	@echo "set rootme \"`${PWD_COMMAND}`\"" >> ./tmp0
4620	@echo "set srcdir \"`cd ${srcdir}; ${PWD_COMMAND}`\"" >> ./tmp0
4621	@echo "set host_triplet $(host)" >> ./tmp0
4622	@echo "set build_triplet $(build)" >> ./tmp0
4623	@echo "set target_triplet $(target)" >> ./tmp0
4624	@echo "set target_alias $(target_noncanonical)" >> ./tmp0
4625	@echo "set libiconv \"$(LIBICONV)\"" >> ./tmp0
4626# CFLAGS is set even though it's empty to show we reserve the right to set it.
4627	@echo "set CFLAGS \"\"" >> ./tmp0
4628	@echo "set CXXFLAGS \"\"" >> ./tmp0
4629	@echo "set HOSTCC \"$(CC)\"" >> ./tmp0
4630	@echo "set HOSTCFLAGS \"$(CFLAGS)\"" >> ./tmp0
4631# When running the tests we set GCC_EXEC_PREFIX to the install tree so that
4632# files that have already been installed there will be found.  The -B option
4633# overrides it, so use of GCC_EXEC_PREFIX will not result in using GCC files
4634# from the install tree.
4635	@echo "set TEST_GCC_EXEC_PREFIX \"$(libdir)/gcc/\"" >> ./tmp0
4636	@echo "set TESTING_IN_BUILD_TREE 1" >> ./tmp0
4637	@echo "set HAVE_LIBSTDCXX_V3 1" >> ./tmp0
4638	@if test "@enable_plugin@" = "yes" ; then \
4639	  echo "set ENABLE_PLUGIN 1" >> ./tmp0; \
4640	  echo "set PLUGINCC \"$(PLUGINCC)\"" >> ./tmp0; \
4641	  echo "set PLUGINCFLAGS \"$(PLUGINCFLAGS)\"" >> ./tmp0; \
4642	  echo "set GMPINC \"$(GMPINC)\"" >> ./tmp0; \
4643	fi
4644	@if test "@enable_lto@" = "yes" ; then \
4645	  echo "set ENABLE_LTO 1" >> ./tmp0; \
4646	fi
4647# If newlib has been configured, we need to pass -B to gcc so it can find
4648# newlib's crt0.o if it exists.  This will cause a "path prefix not used"
4649# message if it doesn't, but the testsuite is supposed to ignore the message -
4650# it's too difficult to tell when to and when not to pass -B (not all targets
4651# have crt0's).  We could only add the -B if ../newlib/crt0.o exists, but that
4652# seems like too selective a test.
4653# ??? Another way to solve this might be to rely on linker scripts.  Then
4654# theoretically the -B won't be needed.
4655# We also need to pass -L ../ld so that the linker can find ldscripts.
4656	@if [ -d $(objdir)/../$(target_subdir)/newlib ] \
4657	    && [ "${host}" != "${target}" ]; then \
4658	  echo "set newlib_cflags \"-I$(objdir)/../$(target_subdir)/newlib/targ-include -I\$$srcdir/../newlib/libc/include\"" >> ./tmp0; \
4659	  echo "set newlib_ldflags \"-B$(objdir)/../$(target_subdir)/newlib/\"" >> ./tmp0; \
4660	  echo "append CFLAGS \" \$$newlib_cflags\"" >> ./tmp0; \
4661	  echo "append CXXFLAGS \" \$$newlib_cflags\"" >> ./tmp0; \
4662	  echo "append LDFLAGS \" \$$newlib_ldflags\"" >> ./tmp0; \
4663	else true; \
4664	fi
4665	@if [ -d $(objdir)/../ld ] ; then \
4666	  echo "append LDFLAGS \" -L$(objdir)/../ld\"" >> ./tmp0; \
4667	else true; \
4668	fi
4669	echo "set tmpdir $(objdir)/testsuite" >> ./tmp0
4670	@echo "set srcdir \"\$${srcdir}/testsuite\"" >> ./tmp0
4671	@if [ "X$(ALT_CC_UNDER_TEST)" != "X" ] ; then \
4672	  echo "set ALT_CC_UNDER_TEST \"$(ALT_CC_UNDER_TEST)\"" >> ./tmp0; \
4673	else true; \
4674	fi
4675	@if [ "X$(ALT_CXX_UNDER_TEST)" != "X" ] ; then \
4676	  echo "set ALT_CXX_UNDER_TEST \"$(ALT_CXX_UNDER_TEST)\"" >> ./tmp0; \
4677	else true; \
4678	fi
4679	@if [ "X$(COMPAT_OPTIONS)" != "X" ] ; then \
4680	  echo "set COMPAT_OPTIONS \"$(COMPAT_OPTIONS)\"" >> ./tmp0; \
4681	else true; \
4682	fi
4683	@echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
4684	@cat ./tmp0 > site.exp
4685	@cat site.bak | sed \
4686		-e '1,/^## All variables above are.*##/ d' >> site.exp
4687	-@rm -f ./tmp?
4688
4689CHECK_TARGETS = check-gcc @check_languages@
4690
4691check: $(CHECK_TARGETS)
4692
4693check-subtargets: $(patsubst %,%-subtargets,$(CHECK_TARGETS))
4694
4695# The idea is to parallelize testing of multilibs, for example:
4696#   make -j3 check-gcc//sh-hms-sim/{-m1,-m2,-m3,-m3e,-m4}/{,-nofpu}
4697# will run 3 concurrent sessions of check-gcc, eventually testing
4698# all 10 combinations.  GNU make is required, as is a shell that expands
4699# alternations within braces.
4700lang_checks_parallel = $(lang_checks:=//%)
4701$(lang_checks_parallel): site.exp
4702	target=`echo "$@" | sed 's,//.*,,'`; \
4703	variant=`echo "$@" | sed 's,^[^/]*//,,'`; \
4704	vardots=`echo "$$variant" | sed 's,/,.,g'`; \
4705	$(MAKE) TESTSUITEDIR="testsuite.$$vardots" \
4706	  RUNTESTFLAGS="--target_board=$$variant $(RUNTESTFLAGS)" \
4707	  "$$target"
4708
4709TESTSUITEDIR = testsuite
4710
4711$(TESTSUITEDIR)/site.exp: site.exp
4712	-test -d $(TESTSUITEDIR) || mkdir $(TESTSUITEDIR)
4713	-rm -f $@
4714	sed '/set tmpdir/ s|testsuite$$|$(TESTSUITEDIR)|' < site.exp > $@
4715
4716# This is only used for check-% targets that aren't parallelized.
4717$(filter-out $(lang_checks_parallelized),$(lang_checks)): check-% : site.exp
4718	-test -d $(TESTSUITEDIR) || mkdir $(TESTSUITEDIR)
4719	test -d $(TESTSUITEDIR)/$* || mkdir $(TESTSUITEDIR)/$*
4720	-(rootme=`${PWD_COMMAND}`; export rootme; \
4721	srcdir=`cd ${srcdir}; ${PWD_COMMAND}` ; export srcdir ; \
4722	cd $(TESTSUITEDIR)/$*; \
4723	rm -f tmp-site.exp; \
4724	sed '/set tmpdir/ s|testsuite$$|$(TESTSUITEDIR)/$*|' \
4725		< ../../site.exp > tmp-site.exp; \
4726	$(SHELL) $${srcdir}/../move-if-change tmp-site.exp site.exp; \
4727	EXPECT=${EXPECT} ; export EXPECT ; \
4728	if [ -f $${rootme}/../expect/expect ] ; then  \
4729	   TCL_LIBRARY=`cd .. ; cd $${srcdir}/../tcl/library ; ${PWD_COMMAND}` ; \
4730	    export TCL_LIBRARY ; fi ; \
4731	$(RUNTEST) --tool $* $(RUNTESTFLAGS))
4732
4733$(patsubst %,%-subtargets,$(filter-out $(lang_checks_parallelized),$(lang_checks))): check-%-subtargets:
4734	@echo check-$*
4735
4736check_p_tool=$(firstword $(subst _, ,$*))
4737check_p_vars=$(check_$(check_p_tool)_parallelize)
4738check_p_subno=$(word 2,$(subst _, ,$*))
4739check_p_comma=,
4740check_p_subwork=$(subst $(check_p_comma), ,$(if $(check_p_subno),$(word $(check_p_subno),$(check_p_vars))))
4741check_p_numbers=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
4742check_p_subdir=$(subst _,,$*)
4743check_p_subdirs=$(wordlist 1,$(words $(check_$*_parallelize)),$(check_p_numbers))
4744
4745# For parallelized check-% targets, this decides whether parallelization
4746# is desirable (if -jN is used and RUNTESTFLAGS doesn't contain anything
4747# but optionally --target_board argument).  If it is desirable,
4748# recursive make is run with check-parallel-$lang{,1,2,3,4,5} etc. goals,
4749# which can be executed in parallel, as they are run in separate directories.
4750# check-parallel-$lang{1,2,3,4,5} etc. goals invoke runtest with the longest
4751# running *.exp files from the testsuite, as determined by check_$lang_parallelize
4752# variable.  The check-parallel-$lang goal in that case invokes runtest with
4753# all the remaining *.exp files not handled by the separate goals.
4754# Afterwards contrib/dg-extract-results.sh is used to merge the sum and log
4755# files.  If parallelization isn't desirable, only one recursive make
4756# is run with check-parallel-$lang goal and check_$lang_parallelize variable
4757# cleared to say that no additional arguments beyond $(RUNTESTFLAGS)
4758# should be passed to runtest.
4759#
4760# To parallelize some language check, add the corresponding check-$lang
4761# to lang_checks_parallelized variable and define check_$lang_parallelize
4762# variable (see above check_gcc_parallelize description).
4763$(lang_checks_parallelized): check-% : site.exp
4764	@if [ -z "$(filter-out --target_board=%, $(RUNTESTFLAGS))" ] \
4765	    && [ "$(filter -j, $(MFLAGS))" = "-j" ]; then \
4766	  $(MAKE) TESTSUITEDIR="$(TESTSUITEDIR)" RUNTESTFLAGS="$(RUNTESTFLAGS)" \
4767	    check-parallel-$* \
4768	    $(patsubst %,check-parallel-$*_%, $(check_p_subdirs)); \
4769	  for file in $(TESTSUITEDIR)/$*/$* \
4770		      $(patsubst %,$(TESTSUITEDIR)/$*%/$*,$(check_p_subdirs));\
4771	  do \
4772	    mv -f $$file.sum $$file.sum.sep; mv -f $$file.log $$file.log.sep; \
4773	  done; \
4774	  $(SHELL) $(srcdir)/../contrib/dg-extract-results.sh \
4775	    $(TESTSUITEDIR)/$*/$*.sum.sep \
4776	    $(patsubst %,$(TESTSUITEDIR)/$*%/$*.sum.sep,$(check_p_subdirs)) \
4777	    > $(TESTSUITEDIR)/$*/$*.sum; \
4778	  $(SHELL) $(srcdir)/../contrib/dg-extract-results.sh -L \
4779	    $(TESTSUITEDIR)/$*/$*.log.sep \
4780	    $(patsubst %,$(TESTSUITEDIR)/$*%/$*.log.sep,$(check_p_subdirs)) \
4781	    > $(TESTSUITEDIR)/$*/$*.log; \
4782	else \
4783	  $(MAKE) TESTSUITEDIR="$(TESTSUITEDIR)" RUNTESTFLAGS="$(RUNTESTFLAGS)" \
4784	    check_$*_parallelize= check-parallel-$*; \
4785	fi
4786
4787# Just print the parallelized subtargets for those that want to split
4788# the testing across machines.
4789$(patsubst %,%-subtargets,$(lang_checks_parallelized)): check-%-subtargets:
4790	@echo check-parallel-$* \
4791	  $(patsubst %,check-parallel-$*_%, $(check_p_subdirs))
4792
4793# In the if [ -n "$(check_p_subno)" ] case runtest should be given the name of
4794# the given *.exp file(s).  See comment above check_gcc_parallelize variable
4795# for details on the content of these variables.
4796#
4797# In the elif [ -n "$(check_p_vars)" ] case runtest should be given
4798# names of all the *.exp files for this tool that aren't already handled by
4799# other goals.  First it finds all the *.exp files for this tool, then
4800# prunes those already specified in check_$lang_parallelize or duplicates.
4801#
4802# Otherwise check-$lang isn't parallelized and runtest is invoked just with
4803# the $(RUNTESTFLAGS) arguments.
4804check-parallel-% : site.exp
4805	-test -d $(TESTSUITEDIR) || mkdir $(TESTSUITEDIR)
4806	test -d $(TESTSUITEDIR)/$(check_p_subdir) || mkdir $(TESTSUITEDIR)/$(check_p_subdir)
4807	-(rootme=`${PWD_COMMAND}`; export rootme; \
4808	srcdir=`cd ${srcdir}; ${PWD_COMMAND}` ; export srcdir ; \
4809	cd $(TESTSUITEDIR)/$(check_p_subdir); \
4810	rm -f tmp-site.exp; \
4811	sed '/set tmpdir/ s|testsuite$$|$(TESTSUITEDIR)/$(check_p_subdir)|' \
4812		< ../../site.exp > tmp-site.exp; \
4813	$(SHELL) $${srcdir}/../move-if-change tmp-site.exp site.exp; \
4814	EXPECT=${EXPECT} ; export EXPECT ; \
4815	if [ -f $${rootme}/../expect/expect ] ; then  \
4816	   TCL_LIBRARY=`cd .. ; cd $${srcdir}/../tcl/library ; ${PWD_COMMAND}` ; \
4817	    export TCL_LIBRARY ; fi ; \
4818	runtestflags= ; \
4819	if [ -n "$(check_p_subno)" ] ; then \
4820	  runtestflags="$(check_p_subwork)"; \
4821	elif [ -n "$(check_p_vars)" ] ; then \
4822	  parts="`echo ' $(strip $(subst $(check_p_comma), ,$(check_p_vars))) ' \
4823		  | sed 's/=[^ ]* / /g'`"; \
4824	  for part in `find $$srcdir/testsuite/$(check_p_tool)* -name \*.exp` ; do \
4825	    part=`basename $$part` ; \
4826	    case " $$parts $$runtestflags " in \
4827	      *" $$part "*) ;; \
4828	      *) runtestflags="$$runtestflags $$part" ;; \
4829	    esac ; \
4830	  done ; \
4831	fi ; \
4832	$(RUNTEST) --tool $(check_p_tool) $(RUNTESTFLAGS) $$runtestflags)
4833
4834check-consistency: testsuite/site.exp
4835	-rootme=`${PWD_COMMAND}`; export rootme; \
4836	srcdir=`cd ${srcdir}; ${PWD_COMMAND}` ; export srcdir ; \
4837	cd testsuite; \
4838	EXPECT=${EXPECT} ; export EXPECT ; \
4839	if [ -f $${rootme}/../expect/expect ] ; then  \
4840	   TCL_LIBRARY=`cd .. ; cd $${srcdir}/../tcl/library ; ${PWD_COMMAND}` ; \
4841	   export TCL_LIBRARY ; fi ; \
4842	$(RUNTEST) --tool consistency $(RUNTESTFLAGS)
4843
4844# QMTest targets
4845
4846# The path to qmtest.
4847QMTEST_PATH=qmtest
4848
4849# The flags to pass to qmtest.
4850QMTESTFLAGS=
4851
4852# The flags to pass to "qmtest run".
4853QMTESTRUNFLAGS=-f none --result-stream dejagnu_stream.DejaGNUStream
4854
4855# The command to use to invoke qmtest.
4856QMTEST=${QMTEST_PATH} ${QMTESTFLAGS}
4857
4858# The tests (or suites) to run.
4859QMTEST_GPP_TESTS=g++
4860
4861# The subdirectory of the OBJDIR that will be used to store the QMTest
4862# test database configuration and that will be used for temporary
4863# scratch space during QMTest's execution.
4864QMTEST_DIR=qmtestsuite
4865
4866# Create the QMTest database configuration.
4867${QMTEST_DIR} stamp-qmtest:
4868	${QMTEST} -D ${QMTEST_DIR} create-tdb \
4869	    -c gcc_database.GCCDatabase \
4870	    -a srcdir=`cd ${srcdir}/testsuite && ${PWD_COMMAND}` && \
4871	    $(STAMP) stamp-qmtest
4872
4873# Create the QMTest context file.
4874${QMTEST_DIR}/context: stamp-qmtest
4875	rm -f $@
4876	echo "CompilerTable.languages=c cplusplus" >> $@
4877	echo "CompilerTable.c_kind=GCC" >> $@
4878	echo "CompilerTable.c_path=${objdir}/xgcc" >> $@
4879	echo "CompilerTable.c_options=-B${objdir}/" >> $@
4880	echo "CompilerTable.cplusplus_kind=GCC" >> $@
4881	echo "CompilerTable.cplusplus_path=${objdir}/g++" >> $@
4882	echo "CompilerTable.cplusplus_options=-B${objdir}/" >> $@
4883	echo "DejaGNUTest.target=${target_noncanonical}" >> $@
4884
4885# Run the G++ testsuite using QMTest.
4886qmtest-g++: ${QMTEST_DIR}/context
4887	cd ${QMTEST_DIR} && ${QMTEST} run ${QMTESTRUNFLAGS} -C context \
4888	   -o g++.qmr ${QMTEST_GPP_TESTS}
4889
4890# Use the QMTest GUI.
4891qmtest-gui: ${QMTEST_DIR}/context
4892	cd ${QMTEST_DIR} && ${QMTEST} gui -C context
4893
4894.PHONY: qmtest-g++
4895
4896# Run Paranoia on real.c.
4897
4898paranoia.o: $(srcdir)/../contrib/paranoia.cc $(CONFIG_H) $(SYSTEM_H) \
4899  $(REAL_H) $(TREE_H)
4900	g++ -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $< $(OUTPUT_OPTION)
4901
4902paranoia: paranoia.o real.o $(LIBIBERTY)
4903	g++ -o $@ paranoia.o real.o $(LIBIBERTY)
4904
4905# These exist for maintenance purposes.
4906
4907# Update the tags table.
4908TAGS: lang.tags
4909	(cd $(srcdir);					\
4910	incs= ;						\
4911	list='$(SUBDIRS)'; for dir in $$list; do	\
4912	  if test -f $$dir/TAGS; then			\
4913	    incs="$$incs --include $$dir/TAGS.sub";	\
4914	  fi;						\
4915	done;						\
4916	etags -o TAGS.sub *.h *.c; \
4917	etags --include TAGS.sub $$incs)
4918
4919# -----------------------------------------------------
4920# Rules for generating translated message descriptions.
4921# Disabled by autoconf if the tools are not available.
4922# -----------------------------------------------------
4923
4924XGETTEXT = @XGETTEXT@
4925GMSGFMT = @GMSGFMT@
4926MSGMERGE = msgmerge
4927CATALOGS = $(patsubst %,po/%,@CATALOGS@)
4928
4929.PHONY: build- install- build-po install-po update-po
4930
4931# Dummy rules to deal with dependencies produced by use of
4932# "build-@POSUB@" and "install-@POSUB@" above, when NLS is disabled.
4933build-: ; @true
4934install-: ; @true
4935
4936build-po: $(CATALOGS)
4937
4938# This notation should be acceptable to all Make implementations used
4939# by people who are interested in updating .po files.
4940update-po: $(CATALOGS:.gmo=.pox)
4941
4942# N.B. We do not attempt to copy these into $(srcdir).  The snapshot
4943# script does that.
4944.po.gmo:
4945	$(mkinstalldirs) po
4946	$(GMSGFMT) --statistics -o $@ $<
4947
4948# The new .po has to be gone over by hand, so we deposit it into
4949# build/po with a different extension.
4950# If build/po/gcc.pot exists, use it (it was just created),
4951# else use the one in srcdir.
4952.po.pox:
4953	$(mkinstalldirs) po
4954	$(MSGMERGE) $< `if test -f po/gcc.pot; \
4955			then echo po/gcc.pot; \
4956			else echo $(srcdir)/po/gcc.pot; fi` -o $@
4957
4958# This rule has to look for .gmo modules in both srcdir and
4959# the cwd, and has to check that we actually have a catalog
4960# for each language, in case they weren't built or included
4961# with the distribution.
4962install-po:
4963	$(mkinstalldirs) $(DESTDIR)$(datadir)
4964	cats="$(CATALOGS)"; for cat in $$cats; do \
4965	  lang=`basename $$cat | sed 's/\.gmo$$//'`; \
4966	  if [ -f $$cat ]; then :; \
4967	  elif [ -f $(srcdir)/$$cat ]; then cat=$(srcdir)/$$cat; \
4968	  else continue; \
4969	  fi; \
4970	  dir=$(localedir)/$$lang/LC_MESSAGES; \
4971	  echo $(mkinstalldirs) $(DESTDIR)$$dir; \
4972	  $(mkinstalldirs) $(DESTDIR)$$dir || exit 1; \
4973	  echo $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/gcc.mo; \
4974	  $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/gcc.mo; \
4975	done
4976
4977# Rule for regenerating the message template (gcc.pot).
4978# Instead of forcing everyone to edit POTFILES.in, which proved impractical,
4979# this rule has no dependencies and always regenerates gcc.pot.  This is
4980# relatively harmless since the .po files do not directly depend on it.
4981# Note that exgettext has an awk script embedded in it which requires a
4982# fairly modern (POSIX-compliant) awk.
4983# The .pot file is left in the build directory.
4984gcc.pot: po/gcc.pot
4985po/gcc.pot: force
4986	$(mkinstalldirs) po
4987	$(MAKE) srcextra
4988	AWK=$(AWK) $(SHELL) $(srcdir)/po/exgettext \
4989		$(XGETTEXT) gcc $(srcdir)
4990