1 |
commit: 01fd5d7f44dee4836111388a119aad4b5b3b232c |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 2 17:06:56 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 2 17:07:27 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=01fd5d7f |
7 |
|
8 |
13: drop upstreamed 12_all_disable-systemtap-switch.patch |
9 |
|
10 |
Bug: https://bugs.gentoo.org/879049 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
.../gentoo/12_all_disable-systemtap-switch.patch | 122 --------------------- |
14 |
1 file changed, 122 deletions(-) |
15 |
|
16 |
diff --git a/13.1.0/gentoo/12_all_disable-systemtap-switch.patch b/13.1.0/gentoo/12_all_disable-systemtap-switch.patch |
17 |
deleted file mode 100644 |
18 |
index 4d69141..0000000 |
19 |
--- a/13.1.0/gentoo/12_all_disable-systemtap-switch.patch |
20 |
+++ /dev/null |
21 |
@@ -1,122 +0,0 @@ |
22 |
-From bb510ed7ea82093c924b027489db6f92250a85b3 Mon Sep 17 00:00:00 2001 |
23 |
-From: Sergei Trofimovich <slyfox@g.o> |
24 |
-Date: Sat, 12 May 2018 12:56:46 +0100 |
25 |
-Subject: [PATCH] gcc/configure.ac: add --disable-systemtap switch |
26 |
- |
27 |
-Before the change systemtap probes were enabled |
28 |
-if target headers had sys/sdt.h at ./configure time. |
29 |
- |
30 |
-After the change explicitly ask to enable or disable |
31 |
-for probe support and not rely on automagic dependency |
32 |
-discovery. |
33 |
- |
34 |
-Bug: https://bugs.gentoo.org/654748 |
35 |
-Bug: https://gcc.gnu.org/bugzilla/PR61257 |
36 |
-Signed-off-by: Sergei Trofimovich <slyfox@g.o> |
37 |
---- |
38 |
- gcc/configure | 34 ++++++++++++++++++++++++++-------- |
39 |
- gcc/configure.ac | 30 ++++++++++++++++++++++-------- |
40 |
- 2 files changed, 48 insertions(+), 16 deletions(-) |
41 |
- |
42 |
-diff --git a/gcc/configure b/gcc/configure |
43 |
-index 3dcf7752b..c2049f117 100755 |
44 |
---- a/gcc/configure |
45 |
-+++ b/gcc/configure |
46 |
-@@ -1015,6 +1015,7 @@ enable_gnu_unique_object |
47 |
- enable_linker_build_id |
48 |
- enable_libssp |
49 |
- enable_default_ssp |
50 |
-+enable_systemtap |
51 |
- with_long_double_128 |
52 |
- with_long_double_format |
53 |
- with_gc |
54 |
-@@ -1773,6 +1774,7 @@ Optional Features: |
55 |
- compiler will always pass --build-id to linker |
56 |
- --enable-libssp enable linking against libssp |
57 |
- --enable-default-ssp enable Stack Smashing Protection as default |
58 |
-+ --disable-systemtap enable systemtap static probe points [default=auto] |
59 |
- --enable-maintainer-mode |
60 |
- enable make rules and dependencies not useful (and |
61 |
- sometimes confusing) to the casual installer |
62 |
-@@ -31387,17 +31389,33 @@ fi |
63 |
- |
64 |
- # Test for <sys/sdt.h> on the target. |
65 |
- |
66 |
--{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5 |
67 |
-+ |
68 |
-+# Check whether --enable-systemtap was given. |
69 |
-+if test "${enable_systemtap+set}" = set; then : |
70 |
-+ enableval=$enable_systemtap; enable_systemtap=$enableval |
71 |
-+else |
72 |
-+ enable_systemtap=auto |
73 |
-+fi |
74 |
-+ |
75 |
-+ |
76 |
-+if test x$enable_systemtap != xno; then |
77 |
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5 |
78 |
- $as_echo_n "checking sys/sdt.h in the target C library... " >&6; } |
79 |
--have_sys_sdt_h=no |
80 |
--if test -f $target_header_dir/sys/sdt.h; then |
81 |
-- have_sys_sdt_h=yes |
82 |
-+ have_sys_sdt_h=no |
83 |
-+ if test -f $target_header_dir/sys/sdt.h ; then |
84 |
-+ have_sys_sdt_h=yes |
85 |
- |
86 |
- $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h |
87 |
- |
88 |
--fi |
89 |
--{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5 |
90 |
-+ fi |
91 |
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5 |
92 |
- $as_echo "$have_sys_sdt_h" >&6; } |
93 |
-+ if test x$enable_systemtap = xyes ; then |
94 |
-+ if test x$have_sys_sdt_h = xno ; then |
95 |
-+ as_fn_error $? "sys/sdt.h was not found" "$LINENO" 5 |
96 |
-+ fi |
97 |
-+ fi |
98 |
-+fi |
99 |
- |
100 |
- # Check if TFmode long double should be used by default or not. |
101 |
- # Some glibc targets used DFmode long double, but with glibc 2.4 |
102 |
---- a/gcc/configure.ac |
103 |
-+++ b/gcc/configure.ac |
104 |
-@@ -6904,14 +6904,28 @@ AC_SUBST([enable_default_ssp]) |
105 |
- |
106 |
- # Test for <sys/sdt.h> on the target. |
107 |
- GCC_TARGET_TEMPLATE([HAVE_SYS_SDT_H]) |
108 |
--AC_MSG_CHECKING(sys/sdt.h in the target C library) |
109 |
--have_sys_sdt_h=no |
110 |
--if test -f $target_header_dir/sys/sdt.h; then |
111 |
-- have_sys_sdt_h=yes |
112 |
-- AC_DEFINE(HAVE_SYS_SDT_H, 1, |
113 |
-- [Define if your target C library provides sys/sdt.h]) |
114 |
--fi |
115 |
--AC_MSG_RESULT($have_sys_sdt_h) |
116 |
-+ |
117 |
-+AC_ARG_ENABLE(systemtap, |
118 |
-+[AS_HELP_STRING([--disable-systemtap], |
119 |
-+ [enable systemtap static probe points [default=auto]])], |
120 |
-+ enable_systemtap=$enableval, |
121 |
-+ enable_systemtap=auto) |
122 |
-+ |
123 |
-+if test x$enable_systemtap != xno; then |
124 |
-+ AC_MSG_CHECKING(sys/sdt.h in the target C library) |
125 |
-+ have_sys_sdt_h=no |
126 |
-+ if test -f $target_header_dir/sys/sdt.h ; then |
127 |
-+ have_sys_sdt_h=yes |
128 |
-+ AC_DEFINE(HAVE_SYS_SDT_H, 1, |
129 |
-+ [Define if your target C library provides sys/sdt.h]) |
130 |
-+ fi |
131 |
-+ AC_MSG_RESULT($have_sys_sdt_h) |
132 |
-+ if test x$enable_systemtap = xyes ; then |
133 |
-+ if test x$have_sys_sdt_h = xno ; then |
134 |
-+ AC_MSG_ERROR([sys/sdt.h was not found]) |
135 |
-+ fi |
136 |
-+ fi |
137 |
-+fi |
138 |
- |
139 |
- # Check if TFmode long double should be used by default or not. |
140 |
- # Some glibc targets used DFmode long double, but with glibc 2.4 |
141 |
--- |
142 |
-2.17.0 |
143 |
- |