This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATH] Fix make profiledbootstrap
- From: Jan Hubicka <jh at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org, rth at redhat dot com
- Date: Mon, 29 Sep 2003 23:29:10 +0200
- Subject: [PATH] Fix make profiledbootstrap
Hi,
current make profilebootstrap after my fix to profile code terminates on
warning about missing profile file on file never linked into the
binarry. This is valid and we must arrange -Werror to not be passed.
OK?
Mon Sep 29 23:26:41 CEST 2003 Jan Hubicka <jh@suse.cz>
* Makefile.in (STRICT2_WARN): Remove -Werror from here.
(POSTSTAGE1_FAGS_TO_PASS): Add WERROR variable.
(STAGE2_FLAGS, STAGEPROFILE_FLAGS): Pass it.
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.1162
diff -c -3 -p -r1.1162 Makefile.in
*** Makefile.in 25 Sep 2003 07:33:38 -0000 1.1162
--- Makefile.in 29 Sep 2003 21:26:18 -0000
*************** coverageexts = .{gcda,gcno}
*** 141,147 ****
# stage1, as not all versions of gcc understand -Wno-long-long.
LOOSE_WARN = -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
STRICT_WARN = @strict1_warn@
! STRICT2_WARN = -pedantic -Wno-long-long @WERROR@
# This is set by --enable-checking. The idea is to catch forgotten
# "extern" tags in header files.
--- 141,147 ----
# stage1, as not all versions of gcc understand -Wno-long-long.
LOOSE_WARN = -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
STRICT_WARN = @strict1_warn@
! STRICT2_WARN = -pedantic -Wno-long-long
# This is set by --enable-checking. The idea is to catch forgotten
# "extern" tags in header files.
*************** POSTSTAGE1_FLAGS_TO_PASS = \
*** 3323,3329 ****
CFLAGS="$(BOOT_CFLAGS)" \
LDFLAGS="$(BOOT_LDFLAGS)" \
WARN_CFLAGS="\$$(GCC_WARN_CFLAGS)" \
! STRICT_WARN="$(STRICT2_WARN)" \
libdir=$(libdir) \
LANGUAGES="$(LANGUAGES)" \
MAKEOVERRIDES= \
--- 3323,3329 ----
CFLAGS="$(BOOT_CFLAGS)" \
LDFLAGS="$(BOOT_LDFLAGS)" \
WARN_CFLAGS="\$$(GCC_WARN_CFLAGS)" \
! STRICT_WARN="$(STRICT2_WARN) $(WERROR)" \
libdir=$(libdir) \
LANGUAGES="$(LANGUAGES)" \
MAKEOVERRIDES= \
*************** POSTSTAGE1_FLAGS_TO_PASS = \
*** 3331,3345 ****
STAGE2_FLAGS_TO_PASS = \
CFLAGS="$(BOOT_CFLAGS)" \
! WERROR="@WERROR@" \
STAGEPROFILE_FLAGS_TO_PASS = \
! CFLAGS="$(BOOT_CFLAGS) -fprofile-arcs"
# Files never linked into the final executable produces warnings about missing
# profile.
STAGEFEEDBACK_FLAGS_TO_PASS = \
! CFLAGS="$(BOOT_CFLAGS) -fbranch-probabilities"
# Only build the C compiler for stage1, because that is the only one that
# we can guarantee will build with the native compiler, and also it is the
--- 3331,3346 ----
STAGE2_FLAGS_TO_PASS = \
CFLAGS="$(BOOT_CFLAGS)" \
! WERROR="@WERROR@"
STAGEPROFILE_FLAGS_TO_PASS = \
! CFLAGS="$(BOOT_CFLAGS) -fprofile-arcs" \
! WERROR="@WERROR@"
# Files never linked into the final executable produces warnings about missing
# profile.
STAGEFEEDBACK_FLAGS_TO_PASS = \
! CFLAGS="$(BOOT_CFLAGS) -fbranch-probabilities"
# Only build the C compiler for stage1, because that is the only one that
# we can guarantee will build with the native compiler, and also it is the