aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/Make-lang.in
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-06-28 10:38:38 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2016-06-28 10:38:38 +0200
commite9ac1f86bf70e0ca794fed6ba3b8fe3026da063e (patch)
tree2bedfb424030617a17ede914a140ee57eb523853 /gcc/cp/Make-lang.in
parent35ca24a2d13feb005610c6d56637fff5d1a19e0b (diff)
downloadgcc-e9ac1f86bf70e0ca794fed6ba3b8fe3026da063e.zip
gcc-e9ac1f86bf70e0ca794fed6ba3b8fe3026da063e.tar.gz
gcc-e9ac1f86bf70e0ca794fed6ba3b8fe3026da063e.tar.bz2
Makefile.in: Don't cat ../stage_current if it does not exist.
* Makefile.in: Don't cat ../stage_current if it does not exist. c/ * Make-lang.in: Don't cat ../stage_current if it does not exist. cp/ * Make-lang.in: Don't cat ../stage_current if it does not exist. lto/ * Make-lang.in: Don't cat ../stage_current if it does not exist. From-SVN: r237817
Diffstat (limited to 'gcc/cp/Make-lang.in')
-rw-r--r--gcc/cp/Make-lang.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in
index c1f26ea..cc3337d 100644
--- a/gcc/cp/Make-lang.in
+++ b/gcc/cp/Make-lang.in
@@ -81,7 +81,8 @@ CXX_AND_OBJCXX_OBJS = cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o \
cp/vtable-class-hierarchy.o cp/constexpr.o cp/cp-ubsan.o \
cp/constraint.o cp/logic.o $(CXX_C_OBJS)
-ifeq ($(shell cat ../stage_current),stageautofeedback)
+ifeq ($(if $(wildcard ../stage_current),$(shell cat \
+ ../stage_current)),stageautofeedback)
$(CXX_AND_OBJCXX_OBJS): CFLAGS += -fauto-profile=cc1plus.fda
$(CXX_AND_OBJCXX_OBJS): cc1plus.fda
endif