1 |
slyfox 18/05/12 14:20:05 |
2 |
|
3 |
Modified: README.history |
4 |
Added: 97_all_disable-systemtap-switch.patch |
5 |
Log: |
6 |
queue 'add --disable-systemtap switch' for next patchset |
7 |
|
8 |
Before the change systemtap probes were enabled |
9 |
if target headers had sys/sdt.h at ./configure time. |
10 |
|
11 |
After the change explicitly ask to enable or disable |
12 |
for probe support and not rely on automagic dependency |
13 |
discovery. |
14 |
|
15 |
Bug: https://bugs.gentoo.org/654748 |
16 |
Bug: https://gcc.gnu.org/bugzilla/PR61257 |
17 |
|
18 |
Revision Changes Path |
19 |
1.9 src/patchsets/gcc/8.1.0/gentoo/README.history |
20 |
|
21 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/README.history?rev=1.9&view=markup |
22 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/README.history?rev=1.9&content-type=text/plain |
23 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/README.history?r1=1.8&r2=1.9 |
24 |
|
25 |
Index: README.history |
26 |
=================================================================== |
27 |
RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/8.1.0/gentoo/README.history,v |
28 |
retrieving revision 1.8 |
29 |
retrieving revision 1.9 |
30 |
diff -u -r1.8 -r1.9 |
31 |
--- README.history 11 May 2018 21:18:15 -0000 1.8 |
32 |
+++ README.history 12 May 2018 14:20:05 -0000 1.9 |
33 |
@@ -1,6 +1,7 @@ |
34 |
1.3 TODO |
35 |
+ 95_all_ia64-TEXTREL.patch |
36 |
+ 96_all_lto-O2-PR85655.patch |
37 |
+ + 97_all_disable-systemtap-switch.patch |
38 |
1.2 06 May 2018 |
39 |
+ 93_all_arm-arch.patch |
40 |
+ 94_all_mips-o32-asan.patch |
41 |
|
42 |
|
43 |
|
44 |
1.1 src/patchsets/gcc/8.1.0/gentoo/97_all_disable-systemtap-switch.patch |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/97_all_disable-systemtap-switch.patch?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/97_all_disable-systemtap-switch.patch?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: 97_all_disable-systemtap-switch.patch |
50 |
=================================================================== |
51 |
From bb510ed7ea82093c924b027489db6f92250a85b3 Mon Sep 17 00:00:00 2001 |
52 |
From: Sergei Trofimovich <slyfox@g.o> |
53 |
Date: Sat, 12 May 2018 12:56:46 +0100 |
54 |
Subject: [PATCH] gcc/configure.ac: add --disable-systemtap switch |
55 |
|
56 |
Before the change systemtap probes were enabled |
57 |
if target headers had sys/sdt.h at ./configure time. |
58 |
|
59 |
After the change explicitly ask to enable or disable |
60 |
for probe support and not rely on automagic dependency |
61 |
discovery. |
62 |
|
63 |
Bug: https://bugs.gentoo.org/654748 |
64 |
Bug: https://gcc.gnu.org/bugzilla/PR61257 |
65 |
Signed-off-by: Sergei Trofimovich <slyfox@g.o> |
66 |
--- |
67 |
gcc/configure | 34 ++++++++++++++++++++++++++-------- |
68 |
gcc/configure.ac | 30 ++++++++++++++++++++++-------- |
69 |
2 files changed, 48 insertions(+), 16 deletions(-) |
70 |
|
71 |
diff --git a/gcc/configure b/gcc/configure |
72 |
index 7d69faf549d..5e96c4f99fc 100755 |
73 |
--- a/gcc/configure |
74 |
+++ b/gcc/configure |
75 |
@@ -946,6 +946,7 @@ enable_gnu_unique_object |
76 |
enable_linker_build_id |
77 |
enable_libssp |
78 |
enable_default_ssp |
79 |
+enable_systemtap |
80 |
with_long_double_128 |
81 |
with_long_double_format |
82 |
with_gc |
83 |
@@ -1688,6 +1689,7 @@ Optional Features: |
84 |
compiler will always pass --build-id to linker |
85 |
--enable-libssp enable linking against libssp |
86 |
--enable-default-ssp enable Stack Smashing Protection as default |
87 |
+ --disable-systemtap enable systemtap static probe points [default=auto] |
88 |
--enable-maintainer-mode |
89 |
enable make rules and dependencies not useful (and |
90 |
sometimes confusing) to the casual installer |
91 |
@@ -18448,7 +18450,7 @@ else |
92 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
93 |
lt_status=$lt_dlunknown |
94 |
cat > conftest.$ac_ext <<_LT_EOF |
95 |
-#line 18451 "configure" |
96 |
+#line 18453 "configure" |
97 |
#include "confdefs.h" |
98 |
|
99 |
#if HAVE_DLFCN_H |
100 |
@@ -18554,7 +18556,7 @@ else |
101 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
102 |
lt_status=$lt_dlunknown |
103 |
cat > conftest.$ac_ext <<_LT_EOF |
104 |
-#line 18557 "configure" |
105 |
+#line 18559 "configure" |
106 |
#include "confdefs.h" |
107 |
|
108 |
#if HAVE_DLFCN_H |
109 |
@@ -29297,17 +29299,33 @@ fi |
110 |
|
111 |
# Test for <sys/sdt.h> on the target. |
112 |
|
113 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5 |
114 |
+ |
115 |
+# Check whether --enable-systemtap was given. |
116 |
+if test "${enable_systemtap+set}" = set; then : |
117 |
+ enableval=$enable_systemtap; enable_systemtap=$enableval |
118 |
+else |
119 |
+ enable_systemtap=auto |
120 |
+fi |
121 |
+ |
122 |
+ |
123 |
+if test x$enable_systemtap != xno; then |
124 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5 |
125 |
$as_echo_n "checking sys/sdt.h in the target C library... " >&6; } |
126 |
-have_sys_sdt_h=no |
127 |
-if test -f $target_header_dir/sys/sdt.h; then |
128 |
- have_sys_sdt_h=yes |
129 |
+ have_sys_sdt_h=no |
130 |
+ if test -f $target_header_dir/sys/sdt.h ; then |
131 |
+ have_sys_sdt_h=yes |
132 |
|
133 |
$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h |
134 |
|
135 |
-fi |
136 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5 |
137 |
+ fi |
138 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5 |
139 |
$as_echo "$have_sys_sdt_h" >&6; } |
140 |
+ if test x$enable_systemtap = xyes ; then |
141 |
+ if test x$have_sys_sdt_h = xno ; then |
142 |
+ as_fn_error "sys/sdt.h was not found" "$LINENO" 5 |
143 |
+ fi |
144 |
+ fi |
145 |
+fi |
146 |
|
147 |
# Check if TFmode long double should be used by default or not. |
148 |
# Some glibc targets used DFmode long double, but with glibc 2.4 |
149 |
diff --git a/gcc/configure.ac b/gcc/configure.ac |
150 |
index 36124b8ce90..8356e579a20 100644 |
151 |
--- a/gcc/configure.ac |
152 |
+++ b/gcc/configure.ac |
153 |
@@ -5965,14 +5965,28 @@ AC_SUBST([enable_default_ssp]) |
154 |
|
155 |
# Test for <sys/sdt.h> on the target. |
156 |
GCC_TARGET_TEMPLATE([HAVE_SYS_SDT_H]) |
157 |
-AC_MSG_CHECKING(sys/sdt.h in the target C library) |
158 |
-have_sys_sdt_h=no |
159 |
-if test -f $target_header_dir/sys/sdt.h; then |
160 |
- have_sys_sdt_h=yes |
161 |
- AC_DEFINE(HAVE_SYS_SDT_H, 1, |
162 |
- [Define if your target C library provides sys/sdt.h]) |
163 |
-fi |
164 |
-AC_MSG_RESULT($have_sys_sdt_h) |
165 |
+ |
166 |
+AC_ARG_ENABLE(systemtap, |
167 |
+[AS_HELP_STRING([--disable-systemtap], |
168 |
+ [enable systemtap static probe points [default=auto]])], |
169 |
+ enable_systemtap=$enableval, |
170 |
+ enable_systemtap=auto) |
171 |
+ |
172 |
+if test x$enable_systemtap != xno; then |
173 |
+ AC_MSG_CHECKING(sys/sdt.h in the target C library) |
174 |
+ have_sys_sdt_h=no |
175 |
+ if test -f $target_header_dir/sys/sdt.h ; then |
176 |
+ have_sys_sdt_h=yes |
177 |
+ AC_DEFINE(HAVE_SYS_SDT_H, 1, |
178 |
+ [Define if your target C library provides sys/sdt.h]) |
179 |
+ fi |
180 |
+ AC_MSG_RESULT($have_sys_sdt_h) |
181 |
+ if test x$enable_systemtap = xyes ; then |
182 |
+ if test x$have_sys_sdt_h = xno ; then |
183 |
+ AC_MSG_ERROR([sys/sdt.h was not found]) |
184 |
+ fi |
185 |
+ fi |
186 |
+fi |
187 |
|
188 |
# Check if TFmode long double should be used by default or not. |
189 |
# Some glibc targets used DFmode long double, but with glibc 2.4 |
190 |
-- |
191 |
2.17.0 |