summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-02-25 23:52:27 +0100
committerDavid Seifert <soap@gentoo.org>2020-02-25 23:52:27 +0100
commitdadf5340788610052aeb2f4c5232fb744a8bd9f5 (patch)
tree07aa7a303ac5d3a8b0c8e0fe44fb4a08360816b8 /sys-power/iasl/files/iasl-20190703-gcc10-fno-common.patch
parentepunt-cxx.eclass: Remove last-rited eclass (diff)
downloadgentoo-dadf5340788610052aeb2f4c5232fb744a8bd9f5.tar.gz
gentoo-dadf5340788610052aeb2f4c5232fb744a8bd9f5.tar.bz2
gentoo-dadf5340788610052aeb2f4c5232fb744a8bd9f5.zip
sys-power/iasl: Revbump for fixes
* Use correct BDEPEND * Respect CC/CPPFLAGS/CFLAGS * verbose logging * fix linking order * GCC 10 -fno-common Bug: https://bugs.gentoo.org/557880 Bug: https://bugs.gentoo.org/706672 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sys-power/iasl/files/iasl-20190703-gcc10-fno-common.patch')
-rw-r--r--sys-power/iasl/files/iasl-20190703-gcc10-fno-common.patch64
1 files changed, 64 insertions, 0 deletions
diff --git a/sys-power/iasl/files/iasl-20190703-gcc10-fno-common.patch b/sys-power/iasl/files/iasl-20190703-gcc10-fno-common.patch
new file mode 100644
index 00000000000..d6b8fd83cf0
--- /dev/null
+++ b/sys-power/iasl/files/iasl-20190703-gcc10-fno-common.patch
@@ -0,0 +1,64 @@
+--- a/source/compiler/aslcompiler.l
++++ b/source/compiler/aslcompiler.l
+@@ -156,7 +156,7 @@
+
+ #include <stdlib.h>
+ #include <string.h>
+-YYSTYPE AslCompilerlval;
++#define YYSTYPE AslCompilerlval;
+
+ /*
+ * Generation: Use the following command line:
+--- a/source/compiler/dtparser.l
++++ b/source/compiler/dtparser.l
+@@ -208,7 +208,7 @@
+ /*
+ * Local support functions
+ */
+-YY_BUFFER_STATE LexBuffer;
++static YY_BUFFER_STATE LexBuffer;
+
+ /******************************************************************************
+ *
+--- a/source/compiler/prparser.l
++++ b/source/compiler/prparser.l
+@@ -224,7 +224,7 @@
+ /*
+ * Local support functions
+ */
+-YY_BUFFER_STATE LexBuffer;
++static YY_BUFFER_STATE LexBuffer;
+
+
+ /******************************************************************************
+--- a/source/include/acglobal.h
++++ b/source/include/acglobal.h
+@@ -438,7 +438,6 @@
+ ACPI_INIT_GLOBAL (ACPI_THREAD_ID, AcpiGbl_DbThreadId, ACPI_INVALID_THREAD_ID);
+
+ ACPI_GLOBAL (BOOLEAN, AcpiGbl_DbOpt_NoIniMethods);
+-ACPI_GLOBAL (BOOLEAN, AcpiGbl_DbOpt_NoRegionSupport);
+ ACPI_GLOBAL (BOOLEAN, AcpiGbl_DbOutputToFile);
+ ACPI_GLOBAL (char *, AcpiGbl_DbBuffer);
+ ACPI_GLOBAL (char *, AcpiGbl_DbFilename);
+--- a/source/include/acpixf.h
++++ b/source/include/acpixf.h
+@@ -231,6 +231,8 @@
+ *
+ ****************************************************************************/
+
++ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_DbOpt_NoRegionSupport, FALSE);
++
+ /*
+ * Enable "slack mode" of the AML interpreter? Default is FALSE, and the
+ * interpreter strictly follows the ACPI specification. Setting to TRUE
+--- a/source/tools/acpiexec/aemain.c
++++ b/source/tools/acpiexec/aemain.c
+@@ -192,7 +192,6 @@
+ UINT8 AcpiGbl_RegionFillValue = 0;
+ BOOLEAN AcpiGbl_IgnoreErrors = FALSE;
+ BOOLEAN AcpiGbl_AbortLoopOnTimeout = FALSE;
+-BOOLEAN AcpiGbl_DbOpt_NoRegionSupport = FALSE;
+ UINT8 AcpiGbl_UseHwReducedFadt = FALSE;
+ BOOLEAN AcpiGbl_DoInterfaceTests = FALSE;
+ BOOLEAN AcpiGbl_LoadTestTables = FALSE;