]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove .PHONY targets when building .fda files during autoprofiledbootstrap
authorEugene Rozenfeld <erozen@microsoft.com>
Sat, 16 Sep 2023 01:32:10 +0000 (18:32 -0700)
committerEugene Rozenfeld <erozen@microsoft.com>
Sat, 30 Sep 2023 01:13:03 +0000 (18:13 -0700)
These .PHONY targets are always executed and were breaking `make install`
for autoprofiledbootstrap build.

Tested on x86_64-pc-linux-gnu.

gcc/c/ChangeLog:
* Make-lang.in: Make create_fdas_for_cc1 target not .PHONY

gcc/cp/ChangeLog:
* Make-lang.in: Make create_fdas_for_cc1plus target not .PHONY

gcc/lto/ChangeLog:
* Make-lang.in: Make create_fdas_for_lto1 target not .PHONY

gcc/c/Make-lang.in
gcc/cp/Make-lang.in
gcc/lto/Make-lang.in

index 79bc0dfd1cf60cd3683c1a65b58fe469640ff924..3ef8a6749715abfed2a063f6d201e7c02626aaf2 100644 (file)
@@ -91,8 +91,6 @@ cc1$(exeext): $(C_OBJS) cc1-checksum.o $(BACKEND) $(LIBDEPS)
 components_in_prev = "bfd opcodes binutils fixincludes gas gcc gmp mpfr mpc isl gold intl ld libbacktrace libcpp libcody libdecnumber libiberty libiberty-linker-plugin libiconv zlib lto-plugin libctf libsframe"
 components_in_prev_target = "libstdc++-v3 libsanitizer libvtv libgcc libbacktrace libphobos zlib libgomp libatomic"
 
-.PHONY: create_fdas_for_cc1
-
 cc1.fda: create_fdas_for_cc1
        $(PROFILE_MERGER) $(shell ls -ha cc1_*.fda) --output_file cc1.fda -gcov_version 2
 
@@ -116,6 +114,8 @@ create_fdas_for_cc1: ../stage1-gcc/cc1$(exeext) ../prev-gcc/$(PERF_DATA)
            $(CREATE_GCOV) -binary ../prev-gcc/cc1$(exeext) -gcov $$profile_name -profile $$perf_path -gcov_version 2; \
          fi; \
        done;
+
+       $(STAMP) $@
 #
 # Build hooks:
 
index ba5e8766e9907a59a56dbe73347df219bad22eef..2727fb7f8cc8afa801994b4adbb04f518f6a624a 100644 (file)
@@ -189,8 +189,6 @@ cp/name-lookup.o: $(srcdir)/cp/std-name-hint.h
 components_in_prev = "bfd opcodes binutils fixincludes gas gcc gmp mpfr mpc isl gold intl ld libbacktrace libcpp libcody libdecnumber libiberty libiberty-linker-plugin libiconv zlib lto-plugin libctf libsframe"
 components_in_prev_target = "libstdc++-v3 libsanitizer libvtv libgcc libbacktrace libphobos zlib libgomp libatomic"
 
-.PHONY: create_fdas_for_cc1plus
-
 cc1plus.fda: create_fdas_for_cc1plus
        $(PROFILE_MERGER) $(shell ls -ha cc1plus_*.fda) --output_file cc1plus.fda -gcov_version 2
 
@@ -214,6 +212,8 @@ create_fdas_for_cc1plus: ../stage1-gcc/cc1plus$(exeext) ../prev-gcc/$(PERF_DATA)
            $(CREATE_GCOV) -binary ../prev-gcc/cc1plus$(exeext) -gcov $$profile_name -profile $$perf_path -gcov_version 2; \
          fi; \
        done;
+
+       $(STAMP) $@
 #
 # Build hooks:
 
index 98aa9f4cc39a1541ea98c89bb837964fe476de29..7dc0a9fef4246472a165670d74103a6868aca989 100644 (file)
@@ -108,8 +108,6 @@ lto/lto-dump.o: $(LTO_OBJS)
 components_in_prev = "bfd opcodes binutils fixincludes gas gcc gmp mpfr mpc isl gold intl ld libbacktrace libcpp libcody libdecnumber libiberty libiberty-linker-plugin libiconv zlib lto-plugin libctf libsframe"
 components_in_prev_target = "libstdc++-v3 libsanitizer libvtv libgcc libbacktrace libphobos zlib libgomp libatomic"
 
-.PHONY: create_fdas_for_lto1
-
 lto1.fda: create_fdas_for_lto1
        $(PROFILE_MERGER) $(shell ls -ha lto1_*.fda) --output_file lto1.fda -gcov_version 2
 
@@ -134,6 +132,8 @@ create_fdas_for_lto1: ../stage1-gcc/lto1$(exeext) ../prev-gcc/$(PERF_DATA)
          fi; \
        done;
 
+       $(STAMP) $@
+
 # LTO testing is done as part of C/C++/Fortran etc. testing.
 check-lto: