diff options
author | Michael Mair-Keimberger <m.mairkeimberger@gmail.com> | 2020-07-02 19:38:09 +0200 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-07-03 19:40:30 +0100 |
commit | bbf337adae3e140ffb6450c57ef363f57a379e31 (patch) | |
tree | efa92911d92fae89d67d0b7be43be5b6bd5e08e7 /sys-devel/sparse | |
parent | sys-fs/hfsutils: remove unused patch (diff) | |
download | gentoo-bbf337adae3e140ffb6450c57ef363f57a379e31.tar.gz gentoo-bbf337adae3e140ffb6450c57ef363f57a379e31.tar.bz2 gentoo-bbf337adae3e140ffb6450c57ef363f57a379e31.zip |
sys-devel/sparse: remove unused patch(es)
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/16544
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'sys-devel/sparse')
-rw-r--r-- | sys-devel/sparse/files/sparse-0.5.1-cmdline-include.patch | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/sys-devel/sparse/files/sparse-0.5.1-cmdline-include.patch b/sys-devel/sparse/files/sparse-0.5.1-cmdline-include.patch deleted file mode 100644 index 5ea763001a05..000000000000 --- a/sys-devel/sparse/files/sparse-0.5.1-cmdline-include.patch +++ /dev/null @@ -1,66 +0,0 @@ -diff --git a/validation/include-eval.c b/validation/include-eval.c -new file mode 100644 -index 000000000..bf9bf63fe ---- /dev/null -+++ b/validation/include-eval.c -@@ -0,0 +1,7 @@ -+/* nothing */ -+ -+/* -+ * check-name: include-eval.c -+ * check-command: sparse -include ./include-eval.inc $file -+ * check-known-to-fail -+ */ -diff --git a/validation/include-eval.inc b/validation/include-eval.inc -new file mode 100644 -index 000000000..e2561ca41 ---- /dev/null -+++ b/validation/include-eval.inc -@@ -0,0 +1,12 @@ -+typedef unsigned long long_t; -+ -+inline -+static unsigned int ok(void) -+{ -+ return sizeof(long_t); -+} -+ -+static unsigned int ko(void) -+{ -+ return sizeof(long_t); -+} -diff --git a/lib.c b/lib.c -index 4602cf85d..b255fec14 100644 ---- a/lib.c -+++ b/lib.c -@@ -1351,6 +1351,20 @@ struct symbol_list *sparse_initialize(int argc, char **argv, struct string_list - */ - protect_token_alloc(); - } -+ /* -+ * Evaluate the complete symbol list -+ * Note: This is not needed for normal cases. -+ * These symbols should only be predefined defines and -+ * declaratons which will be evaluated later, when needed. -+ * This is also the case when a file is directly included via -+ * '-include <file>' on the command line *AND* the file only -+ * contains defines, declarations and inline definitions. -+ * However, in the rare cases where the given file should -+ * contain some definitions, these will never be evaluated -+ * and thus won't be able to be linearized correctly. -+ * Hence the evaluate_symbol_list() here under. -+ */ -+ evaluate_symbol_list(list); - return list; - } - -diff --git a/validation/include-eval.c b/validation/include-eval.c -index bf9bf63fe..1a91dab84 100644 ---- a/validation/include-eval.c -+++ b/validation/include-eval.c -@@ -3,5 +3,4 @@ - /* - * check-name: include-eval.c - * check-command: sparse -include ./include-eval.inc $file -- * check-known-to-fail - */ |