From owner-svn-ports-all@FreeBSD.ORG Fri Sep 19 20:59:52 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CF31ACF0; Fri, 19 Sep 2014 20:59:52 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A0A30A58; Fri, 19 Sep 2014 20:59:52 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s8JKxq4s037457; Fri, 19 Sep 2014 20:59:52 GMT (envelope-from jkim@FreeBSD.org) Received: (from jkim@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s8JKxqlD037455; Fri, 19 Sep 2014 20:59:52 GMT (envelope-from jkim@FreeBSD.org) Message-Id: <201409192059.s8JKxqlD037455@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: jkim set sender to jkim@FreeBSD.org using -f From: Jung-uk Kim Date: Fri, 19 Sep 2014 20:59:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r368597 - head/sysutils/acpica-tools/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Sep 2014 20:59:52 -0000 Author: jkim Date: Fri Sep 19 20:59:51 2014 New Revision: 368597 URL: http://svnweb.freebsd.org/changeset/ports/368597 QAT: https://qat.redports.org/buildarchive/r368597/ Log: Work around GCC 4.2 bugs to fix build. Reported by: antoine Added: head/sysutils/acpica-tools/files/patch-source__compiler__dtcompile.c (contents, props changed) head/sysutils/acpica-tools/files/patch-source__compiler__dtsubtable.c (contents, props changed) Added: head/sysutils/acpica-tools/files/patch-source__compiler__dtcompile.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/acpica-tools/files/patch-source__compiler__dtcompile.c Fri Sep 19 20:59:51 2014 (r368597) @@ -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; Added: head/sysutils/acpica-tools/files/patch-source__compiler__dtsubtable.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/acpica-tools/files/patch-source__compiler__dtsubtable.c Fri Sep 19 20:59:51 2014 (r368597) @@ -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;