aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2014-09-20 04:59:51 +0800
committerjkim <jkim@FreeBSD.org>2014-09-20 04:59:51 +0800
commitbbd3fdb9bc09a1ddc706a036d3ef9215e55c9df3 (patch)
tree24c49c0f1467128a8d6cdb4870f31287c885ec72 /sysutils
parent33528494c656fd3051d07768c2f7264f2b96fbea (diff)
downloadfreebsd-ports-gnome-bbd3fdb9bc09a1ddc706a036d3ef9215e55c9df3.tar.gz
freebsd-ports-gnome-bbd3fdb9bc09a1ddc706a036d3ef9215e55c9df3.tar.zst
freebsd-ports-gnome-bbd3fdb9bc09a1ddc706a036d3ef9215e55c9df3.zip
Work around GCC 4.2 bugs to fix build.
Reported by: antoine
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/acpica-tools/files/patch-source__compiler__dtcompile.c20
-rw-r--r--sysutils/acpica-tools/files/patch-source__compiler__dtsubtable.c19
2 files changed, 39 insertions, 0 deletions
diff --git a/sysutils/acpica-tools/files/patch-source__compiler__dtcompile.c b/sysutils/acpica-tools/files/patch-source__compiler__dtcompile.c
new file mode 100644
index 000000000000..e960f79f2e22
--- /dev/null
+++ b/sysutils/acpica-tools/files/patch-source__compiler__dtcompile.c
@@ -0,0 +1,20 @@
+--- ../../source/compiler/dtcompile.c 2014-08-28 13:10:01.000000000 -0400
++++ ../../source/compiler/dtcompile.c 2014-09-19 16:32:31.000000000 -0400
+@@ -438,6 +438,7 @@
+ UINT8 *Buffer;
+ UINT8 *FlagBuffer = NULL;
+ UINT32 CurrentFlagByteOffset = 0;
++ char *String;
+ ACPI_STATUS Status;
+
+
+@@ -465,7 +466,8 @@
+
+ if (Length > 0)
+ {
+- Subtable->Buffer = ACPI_CAST_PTR (UINT8, UtStringCacheCalloc (Length));
++ String = UtStringCacheCalloc (Length);
++ Subtable->Buffer = ACPI_CAST_PTR (UINT8, String);
+ }
+ Subtable->Length = Length;
+ Subtable->TotalLength = Length;
diff --git a/sysutils/acpica-tools/files/patch-source__compiler__dtsubtable.c b/sysutils/acpica-tools/files/patch-source__compiler__dtsubtable.c
new file mode 100644
index 000000000000..31e2bfa6bf60
--- /dev/null
+++ b/sysutils/acpica-tools/files/patch-source__compiler__dtsubtable.c
@@ -0,0 +1,19 @@
+--- ../../source/compiler/dtsubtable.c 2014-08-28 13:10:01.000000000 -0400
++++ ../../source/compiler/dtsubtable.c 2014-09-19 16:47:23.000000000 -0400
+@@ -73,13 +73,15 @@
+ DT_SUBTABLE **RetSubtable)
+ {
+ DT_SUBTABLE *Subtable;
++ char *String;
+
+
+ Subtable = UtSubtableCacheCalloc ();
+
+ /* Create a new buffer for the subtable data */
+
+- Subtable->Buffer = ACPI_CAST_PTR (UINT8, UtStringCacheCalloc (Length));
++ String = UtStringCacheCalloc (Length);
++ Subtable->Buffer = ACPI_CAST_PTR (UINT8, String);
+ ACPI_MEMCPY (Subtable->Buffer, Buffer, Length);
+
+ Subtable->Length = Length;