blob: 7bcd9c65986ae9fb941d623a53f913277e07a11c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
|
include $(top_srcdir)/Makefile.tool.am
noinst_PROGRAMS =
if VGP_X86_LINUX
noinst_PROGRAMS += drd-x86-linux vgpreload_drd-x86-linux.so
endif
if VGP_AMD64_LINUX
noinst_PROGRAMS += drd-amd64-linux vgpreload_drd-amd64-linux.so
endif
if VGP_PPC32_LINUX
noinst_PROGRAMS += drd-ppc32-linux vgpreload_drd-ppc32-linux.so
endif
if VGP_PPC64_LINUX
noinst_PROGRAMS += drd-ppc64-linux vgpreload_drd-ppc64-linux.so
endif
if VGP_PPC32_AIX5
noinst_PROGRAMS += drd-ppc32-aix5 vgpreload_drd-ppc32-aix5.so
endif
if VGP_PPC64_AIX5
noinst_PROGRAMS += drd-ppc64-aix5 vgpreload_drd-ppc64-aix5.so
endif
VGPRELOAD_DRD_SOURCES = \
drd_gomp_intercepts.c \
drd_pthread_intercepts.c \
drd_qtcore_intercepts.c \
drd_strmem_intercepts.c
DRD_CFLAGS = \
@FLAG_UNLIMITED_INLINE_UNIT_GROWTH@ \
-O2 \
@FLAG_W_EXTRA@ \
-Wformat-nonliteral \
-Wno-inline \
-Wno-unused-parameter
AM_CFLAGS_X86_LINUX += $(DRD_CFLAGS)
AM_CFLAGS_AMD64_LINUX += $(DRD_CFLAGS)
AM_CFLAGS_PPC32_LINUX += $(DRD_CFLAGS)
AM_CFLAGS_PPC64_LINUX += $(DRD_CFLAGS)
AM_CFLAGS_PPC32_AIX5 += $(DRD_CFLAGS)
AM_CFLAGS_PPC64_AIX5 += $(DRD_CFLAGS)
vgpreload_drd_x86_linux_so_SOURCES = $(VGPRELOAD_DRD_SOURCES)
vgpreload_drd_x86_linux_so_CPPFLAGS = $(AM_CPPFLAGS_X86_LINUX)
vgpreload_drd_x86_linux_so_CFLAGS = $(AM_CFLAGS_X86_LINUX) $(AM_CFLAGS_PIC)
vgpreload_drd_x86_linux_so_CCASFLAGS = $(AM_CCASFLAGS_X86_LINUX)
vgpreload_drd_x86_linux_so_DEPENDENCIES = $(LIBREPLACEMALLOC_X86_LINUX)
vgpreload_drd_x86_linux_so_LDFLAGS = $(PRELOAD_LDFLAGS_X86_LINUX)\
$(LIBREPLACEMALLOC_LDFLAGS_X86_LINUX)
vgpreload_drd_amd64_linux_so_SOURCES = $(VGPRELOAD_DRD_SOURCES)
vgpreload_drd_amd64_linux_so_CPPFLAGS = $(AM_CPPFLAGS_AMD64_LINUX)
vgpreload_drd_amd64_linux_so_CFLAGS = $(AM_CFLAGS_AMD64_LINUX) $(AM_CFLAGS_PIC)
vgpreload_drd_amd64_linux_so_CCASFLAGS = $(AM_CCASFLAGS_AMD64_LINUX)
vgpreload_drd_amd64_linux_so_DEPENDENCIES =
vgpreload_drd_amd64_linux_so_LDFLAGS = $(PRELOAD_LDFLAGS_AMD64_LINUX)\
$(LIBREPLACEMALLOC_LDFLAGS_AMD64_LINUX)
vgpreload_drd_ppc32_linux_so_SOURCES = $(VGPRELOAD_DRD_SOURCES)
vgpreload_drd_ppc32_linux_so_CPPFLAGS = $(AM_CPPFLAGS_PPC32_LINUX)
vgpreload_drd_ppc32_linux_so_CFLAGS = $(AM_CFLAGS_PPC32_LINUX) $(AM_CFLAGS_PIC)
vgpreload_drd_ppc32_linux_so_CCASFLAGS = $(AM_CCASFLAGS_PPC32_LINUX)
vgpreload_drd_ppc32_linux_so_DEPENDENCIES =
vgpreload_drd_ppc32_linux_so_LDFLAGS = $(PRELOAD_LDFLAGS_PPC32_LINUX)\
$(LIBREPLACEMALLOC_LDFLAGS_PPC32_LINUX)
vgpreload_drd_ppc64_linux_so_SOURCES = $(VGPRELOAD_DRD_SOURCES)
vgpreload_drd_ppc64_linux_so_CPPFLAGS = $(AM_CPPFLAGS_PPC64_LINUX)
vgpreload_drd_ppc64_linux_so_CFLAGS = $(AM_CFLAGS_PPC64_LINUX) $(AM_CFLAGS_PIC)
vgpreload_drd_ppc64_linux_so_CCASFLAGS = $(AM_CCASFLAGS_PPC64_LINUX)
vgpreload_drd_ppc64_linux_so_DEPENDENCIES =
vgpreload_drd_ppc64_linux_so_LDFLAGS = $(PRELOAD_LDFLAGS_PPC64_LINUX)\
$(LIBREPLACEMALLOC_LDFLAGS_PPC64_LINUX)
vgpreload_drd_ppc32_aix5_so_SOURCES = $(VGPRELOAD_DRD_SOURCES)
vgpreload_drd_ppc32_aix5_so_CPPFLAGS = $(AM_CPPFLAGS_PPC32_AIX5)
vgpreload_drd_ppc32_aix5_so_CFLAGS = $(AM_CFLAGS_PPC32_AIX5) $(AM_CFLAGS_PIC)
vgpreload_drd_ppc32_aix5_so_CCASFLAGS = $(AM_CCASFLAGS_PPC32_AIX5)
vgpreload_drd_ppc32_aix5_so_DEPENDENCIES =
vgpreload_drd_ppc32_aix5_so_LDFLAGS = $(PRELOAD_LDFLAGS_PPC32_AIX5)\
$(LIBREPLACEMALLOC_LDFLAGS_PPC32_AIX5)
vgpreload_drd_ppc64_aix5_so_SOURCES = $(VGPRELOAD_DRD_SOURCES)
vgpreload_drd_ppc64_aix5_so_CPPFLAGS = $(AM_CPPFLAGS_PPC64_AIX5)
vgpreload_drd_ppc64_aix5_so_CFLAGS = $(AM_CFLAGS_PPC64_AIX5) $(AM_CFLAGS_PIC)
vgpreload_drd_ppc64_aix5_so_CCASFLAGS = $(AM_CCASFLAGS_PPC64_AIX5)
vgpreload_drd_ppc64_aix5_so_DEPENDENCIES =
vgpreload_drd_ppc64_aix5_so_LDFLAGS = $(PRELOAD_LDFLAGS_PPC64_AIX5)\
$(LIBREPLACEMALLOC_LDFLAGS_PPC64_AIX5)
DRD_SOURCES = \
drd_barrier.c \
drd_clientobj.c \
drd_clientreq.c \
drd_cond.c \
drd_error.c \
drd_main.c \
drd_malloc_wrappers.c \
drd_mutex.c \
drd_rwlock.c \
drd_semaphore.c \
drd_suppression.c
drdincludedir = $(includedir)/valgrind
drdinclude_HEADERS = drd.h
noinst_HEADERS = \
drd_barrier.h \
drd_bitmap.c \
drd_bitmap.h \
drd_clientobj.h \
drd_clientreq.h \
drd_cond.h \
drd_error.h \
drd_malloc_wrappers.h \
drd_mutex.h \
drd_rwlock.h \
drd_segment.c \
drd_segment.h \
drd_semaphore.h \
drd_suppression.h \
drd_thread.c \
drd_thread.h \
drd_thread_bitmap.h \
drd_track.h \
drd_vc.c \
drd_vc.h \
pub_drd_bitmap.h
drd_x86_linux_SOURCES = $(DRD_SOURCES)
drd_x86_linux_CPPFLAGS = $(AM_CPPFLAGS_X86_LINUX)
drd_x86_linux_CFLAGS = $(AM_CFLAGS_X86_LINUX)
drd_x86_linux_DEPENDENCIES = $(COREGRIND_LIBS_X86_LINUX)
drd_x86_linux_LDADD = $(TOOL_LDADD_X86_LINUX)
drd_x86_linux_LDFLAGS = $(TOOL_LDFLAGS_X86_LINUX)
drd_amd64_linux_SOURCES = $(DRD_SOURCES)
drd_amd64_linux_CPPFLAGS = $(AM_CPPFLAGS_AMD64_LINUX)
drd_amd64_linux_CFLAGS = $(AM_CFLAGS_AMD64_LINUX)
drd_amd64_linux_DEPENDENCIES = $(COREGRIND_LIBS_AMD64_LINUX)
drd_amd64_linux_LDADD = $(TOOL_LDADD_AMD64_LINUX)
drd_amd64_linux_LDFLAGS = $(TOOL_LDFLAGS_AMD64_LINUX)
drd_ppc32_linux_SOURCES = $(DRD_SOURCES)
drd_ppc32_linux_CPPFLAGS = $(AM_CPPFLAGS_PPC32_LINUX)
drd_ppc32_linux_CFLAGS = $(AM_CFLAGS_PPC32_LINUX)
drd_ppc32_linux_DEPENDENCIES = $(COREGRIND_LIBS_PPC32_LINUX)
drd_ppc32_linux_LDADD = $(TOOL_LDADD_PPC32_LINUX)
drd_ppc32_linux_LDFLAGS = $(TOOL_LDFLAGS_PPC32_LINUX)
drd_ppc64_linux_SOURCES = $(DRD_SOURCES)
drd_ppc64_linux_CPPFLAGS = $(AM_CPPFLAGS_PPC64_LINUX)
drd_ppc64_linux_CFLAGS = $(AM_CFLAGS_PPC64_LINUX)
drd_ppc64_linux_DEPENDENCIES = $(COREGRIND_LIBS_PPC64_LINUX)
drd_ppc64_linux_LDADD = $(TOOL_LDADD_PPC64_LINUX)
drd_ppc64_linux_LDFLAGS = $(TOOL_LDFLAGS_PPC64_LINUX)
drd_ppc32_aix5_SOURCES = $(DRD_SOURCES)
drd_ppc32_aix5_CPPFLAGS = $(AM_CPPFLAGS_PPC32_AIX5)
drd_ppc32_aix5_CFLAGS = $(AM_CFLAGS_PPC32_AIX5)
drd_ppc32_aix5_DEPENDENCIES = $(COREGRIND_LIBS_PPC32_AIX5)
drd_ppc32_aix5_LDADD = $(TOOL_LDADD_PPC32_AIX5)
drd_ppc32_aix5_LDFLAGS = $(TOOL_LDFLAGS_PPC32_AIX5)
drd_ppc64_aix5_SOURCES = $(DRD_SOURCES)
drd_ppc64_aix5_CPPFLAGS = $(AM_CPPFLAGS_PPC64_AIX5)
drd_ppc64_aix5_CFLAGS = $(AM_CFLAGS_PPC64_AIX5)
drd_ppc64_aix5_DEPENDENCIES = $(COREGRIND_LIBS_PPC64_AIX5)
drd_ppc64_aix5_LDADD = $(TOOL_LDADD_PPC64_AIX5)
drd_ppc64_aix5_LDFLAGS = $(TOOL_LDFLAGS_PPC64_AIX5)
|