typeck.c (cp_truthvalue_conversion): Add tsubst_flags_t parameter and use it in calls...
[official-gcc.git] / gcc / lto / Make-lang.in
blob46df75ab59beb54081f996dd8d5b41847d666f42
1 # Top level -*- makefile -*- fragment for LTO
2 #   Copyright (C) 2009-2019 Free Software Foundation, Inc.
4 #This file is part of GCC.
6 #GCC is free software; you can redistribute it and/or modify
7 #it under the terms of the GNU General Public License as published by
8 #the Free Software Foundation; either version 3, or (at your option)
9 #any later version.
11 #GCC is distributed in the hope that it will be useful,
12 #but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 #GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with GCC; see the file COPYING3.  If not see
18 # <http://www.gnu.org/licenses/>.
20 # Variables
22 # The name of the LTO compiler.
23 LTO_EXE = lto1$(exeext)
24 LTO_DUMP_EXE = lto-dump$(exeext)
25 LTO_DUMP_INSTALL_NAME := $(shell echo lto-dump|sed '$(program_transform_name)')
26 # The LTO-specific object files inclued in $(LTO_EXE).
27 LTO_OBJS = lto/lto-lang.o lto/lto.o lto/lto-object.o attribs.o lto/lto-partition.o lto/lto-symtab.o lto/lto-common.o
28 lto_OBJS = $(LTO_OBJS)
29 LTO_DUMP_OBJS = lto/lto-lang.o lto/lto-object.o attribs.o lto/lto-partition.o lto/lto-symtab.o lto/lto-dump.o lto/lto-common.o
30 lto_dump_OBJS = $(LTO_DUMP_OBJS)
32 # this is only useful in a LTO bootstrap, but this does not work right
33 # now. Should reenable after this is fixed, but only when LTO bootstrap
34 # is enabled.
36 #ifeq ($(if $(wildcard ../stage_current),$(shell cat \
37 #  ../stage_current)),stageautofeedback)
38 #$(LTO_OBJS): CFLAGS += -fauto-profile=lto1.fda
39 #$(LTO_OBJS): lto1.fda
40 #endif
42 # Rules
44 # These hooks are used by the main GCC Makefile.  Consult that
45 # Makefile for documentation.
46 lto.all.cross: $(LTO_EXE) $(LTO_DUMP_EXE)
47 lto.start.encap: $(LTO_EXE) $(LTO_DUMP_EXE)
48 lto.rest.encap:
49 lto.tags:
50 lto.install-common: installdirs
51         $(INSTALL_PROGRAM) $(LTO_DUMP_EXE) \
52         $(DESTDIR)$(bindir)/$(LTO_DUMP_INSTALL_NAME)$(exeext)
54 lto.install-man:
55 lto.install-info:
56 lto.dvi:
57 lto.pdf:
58 lto.install-pdf:
59 lto.html:
60 lto.install-html:
61 lto.uninstall:
62 lto.info:
63 lto.man:
64 lto.srcextra:
65 lto.srcman:
66 lto.srcinfo:
67 lto.install-plugin:
69 lto.mostlyclean:
70         rm -f $(LTO_OBJS) $(LTO_EXE) lto1.fda $(LTO_DUMP_OBJS) $(LTO_DUMP_EXE) lto-dump.fda
72 lto.clean:
73 lto.distclean:
74 lto.maintainer-clean:
75 lto.stage1:
76 lto.stage2:
77 lto.stage3:
78 lto.stage4:
79 lto.stageprofile:
80 lto.stagefeedback:
82 # LTO rules.
84 # Use strict warnings for this front end.
85 lto-warn = $(STRICT_WARN)
87 $(LTO_EXE): $(LTO_OBJS) $(BACKEND) $(LIBDEPS)
88         +$(LLINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \
89                 $(LTO_OBJS) $(BACKEND) $(BACKENDLIBS) $(LIBS)
91 $(LTO_DUMP_EXE): $(LTO_DUMP_OBJS) $(BACKEND) $(LIBDEPS)
92         +$(LLINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \
93                 $(LTO_DUMP_OBJS) $(BACKEND) $(BACKENDLIBS) $(LIBS)
95 lto/lto-dump.o: $(LTO_OBJS)
97 lto1.fda: ../prev-gcc/lto1$(exeext) ../prev-gcc/$(PERF_DATA)
98         $(CREATE_GCOV) -binary ../prev-gcc/lto1$(exeext) -gcov lto1.fda -profile ../prev-gcc/$(PERF_DATA) -gcov_version 1
100 # LTO testing is done as part of C/C++/Fortran etc. testing.
101 check-lto:
103 # No LTO-specific selftests
104 selftest-lto: