|
From: <sv...@va...> - 2012-05-06 03:37:33
|
florian 2012-05-06 04:37:25 +0100 (Sun, 06 May 2012)
New Revision: 12555
Log:
Require automake-1.10 for proper handling of include file dependencies
in .S files. Also included here is some cleanup, including a reversion
of r10378. Fixes bugzilla #197914.
Modified files:
trunk/Makefile.all.am
trunk/Makefile.am
trunk/NEWS
trunk/cachegrind/tests/Makefile.am
trunk/exp-sgcheck/tests/Makefile.am
Modified: trunk/cachegrind/tests/Makefile.am (+0 -1)
===================================================================
--- trunk/cachegrind/tests/Makefile.am 2012-05-05 23:18:24 +01:00 (rev 12554)
+++ trunk/cachegrind/tests/Makefile.am 2012-05-06 04:37:25 +01:00 (rev 12555)
@@ -30,5 +30,4 @@
else
myprint_so_LDFLAGS = $(AM_CFLAGS) -shared -fPIC
endif
-myprint_so_SOURCES = myprint.c # Only needed for automake-1.7.
myprint_so_CFLAGS = $(AM_CFLAGS) -fPIC
Modified: trunk/Makefile.all.am (+9 -17)
===================================================================
--- trunk/Makefile.all.am 2012-05-05 23:18:24 +01:00 (rev 12554)
+++ trunk/Makefile.all.am 2012-05-06 04:37:25 +01:00 (rev 12555)
@@ -112,14 +112,6 @@
#
# Nb: the AM_CPPFLAGS_* values are suitable for building tools and auxprogs.
# For building the core, coregrind/Makefile.am files add some extra things.
-#
-# Also: in newer versions of automake (1.10 onwards?) asm files ending with
-# '.S' are considered "pre-processed" (as opposed to those ending in '.s')
-# and so the CPPFLAGS are passed to the assembler. But this is not true for
-# older automakes (e.g. 1.8.5, 1.9.6), sigh. So we include
-# AM_CPPFLAGS_<PLATFORM> in each AM_CCASFLAGS_<PLATFORM> variable. This
-# means some of the flags are duplicated on systems with newer versions of
-# automake, but this does not really matter and seems hard to avoid.
AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@ = \
-I$(top_srcdir) \
@@ -143,25 +135,25 @@
AM_FLAG_M3264_X86_LINUX = @FLAG_M32@
AM_CFLAGS_X86_LINUX = @FLAG_M32@ @PREFERRED_STACK_BOUNDARY@ \
$(AM_CFLAGS_BASE)
-AM_CCASFLAGS_X86_LINUX = $(AM_CPPFLAGS_X86_LINUX) @FLAG_M32@ -g
+AM_CCASFLAGS_X86_LINUX = @FLAG_M32@ -g
AM_FLAG_M3264_AMD64_LINUX = @FLAG_M64@
AM_CFLAGS_AMD64_LINUX = @FLAG_M64@ -fomit-frame-pointer \
@PREFERRED_STACK_BOUNDARY@ $(AM_CFLAGS_BASE)
-AM_CCASFLAGS_AMD64_LINUX = $(AM_CPPFLAGS_AMD64_LINUX) @FLAG_M64@ -g
+AM_CCASFLAGS_AMD64_LINUX = @FLAG_M64@ -g
AM_FLAG_M3264_PPC32_LINUX = @FLAG_M32@
AM_CFLAGS_PPC32_LINUX = @FLAG_M32@ $(AM_CFLAGS_BASE)
-AM_CCASFLAGS_PPC32_LINUX = $(AM_CPPFLAGS_PPC32_LINUX) @FLAG_M32@ -g
+AM_CCASFLAGS_PPC32_LINUX = @FLAG_M32@ -g
AM_FLAG_M3264_PPC64_LINUX = @FLAG_M64@
AM_CFLAGS_PPC64_LINUX = @FLAG_M64@ $(AM_CFLAGS_BASE)
-AM_CCASFLAGS_PPC64_LINUX = $(AM_CPPFLAGS_PPC64_LINUX) @FLAG_M64@ -g
+AM_CCASFLAGS_PPC64_LINUX = @FLAG_M64@ -g
AM_FLAG_M3264_ARM_LINUX = @FLAG_M32@
AM_CFLAGS_ARM_LINUX = @FLAG_M32@ @PREFERRED_STACK_BOUNDARY@ \
$(AM_CFLAGS_BASE) -marm -mcpu=cortex-a8
-AM_CCASFLAGS_ARM_LINUX = $(AM_CPPFLAGS_ARM_LINUX) @FLAG_M32@ \
+AM_CCASFLAGS_ARM_LINUX = @FLAG_M32@ \
-marm -mcpu=cortex-a8 -g
AM_FLAG_M3264_X86_DARWIN = -arch i386
@@ -169,18 +161,18 @@
-mmacosx-version-min=10.5 \
-fno-stack-protector -fno-pic -fno-PIC
-AM_CCASFLAGS_X86_DARWIN = $(AM_CPPFLAGS_X86_DARWIN) -arch i386 -g
+AM_CCASFLAGS_X86_DARWIN = -arch i386 -g
AM_FLAG_M3264_AMD64_DARWIN = -arch x86_64
AM_CFLAGS_AMD64_DARWIN = $(WERROR) -arch x86_64 $(AM_CFLAGS_BASE) \
-mmacosx-version-min=10.5 -fno-stack-protector
-AM_CCASFLAGS_AMD64_DARWIN = $(AM_CPPFLAGS_AMD64_DARWIN) -arch x86_64 -g
+AM_CCASFLAGS_AMD64_DARWIN = -arch x86_64 -g
AM_FLAG_M3264_S390X_LINUX = @FLAG_M64@
AM_CFLAGS_S390X_LINUX = @FLAG_M64@ $(AM_CFLAGS_BASE)
-AM_CCASFLAGS_S390X_LINUX = $(AM_CPPFLAGS_S390X_LINUX) -mzarch -march=z900 \
- @FLAG_M64@ -g
+AM_CCASFLAGS_S390X_LINUX = @FLAG_M64@ -g -mzarch -march=z900
+
# Flags for the primary target. These must be used to build the
# regtests and performance tests. In fact, these must be used to
# build anything which is built only once on a dual-arch build.
Modified: trunk/NEWS (+1 -0)
===================================================================
--- trunk/NEWS 2012-05-05 23:18:24 +01:00 (rev 12554)
+++ trunk/NEWS 2012-05-06 04:37:25 +01:00 (rev 12555)
@@ -55,6 +55,7 @@
https://bugs.kde.org/show_bug.cgi?id=XXXXXX
where XXXXXX is the bug number as listed below.
+197914 Building valgrind from svn now requires automake-1.10
247386 make perf does not run all performance tests
270006 Valgrind scheduler unfair
270796 s390x: Removed broken support for the TS insn
Modified: trunk/exp-sgcheck/tests/Makefile.am (+0 -1)
===================================================================
--- trunk/exp-sgcheck/tests/Makefile.am 2012-05-05 23:18:24 +01:00 (rev 12554)
+++ trunk/exp-sgcheck/tests/Makefile.am 2012-05-06 04:37:25 +01:00 (rev 12555)
@@ -56,7 +56,6 @@
-Wl,-rpath,$(top_builddir)/memcheck/tests
endif
-preen_invars_so_so_SOURCES = preen_invars_so.c # For automake-1.7.
preen_invars_so_so_CFLAGS = $(AM_CFLAGS) -fpic
if VGCONF_OS_IS_DARWIN
preen_invars_so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
Modified: trunk/Makefile.am (+1 -1)
===================================================================
--- trunk/Makefile.am 2012-05-05 23:18:24 +01:00 (rev 12554)
+++ trunk/Makefile.am 2012-05-06 04:37:25 +01:00 (rev 12555)
@@ -1,5 +1,5 @@
-AUTOMAKE_OPTIONS = foreign 1.7 dist-bzip2
+AUTOMAKE_OPTIONS = foreign 1.10 dist-bzip2
include $(top_srcdir)/Makefile.all.am
|