From owner-cvs-all@FreeBSD.ORG Sun Jul 3 01:11:55 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A6EDF16AA41; Sun, 3 Jul 2005 00:58:47 +0000 (GMT) (envelope-from ps@mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3699B43FF7; Sun, 3 Jul 2005 00:43:49 +0000 (GMT) (envelope-from ps@mu.org) Received: by elvis.mu.org (Postfix, from userid 1000) id 60EF06DDD1; Sat, 2 Jul 2005 17:38:23 -0700 (PDT) X-Original-To: ps@mu.org Delivered-To: ps@mu.org Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119]) by elvis.mu.org (Postfix) with ESMTP id 4AEE65C773 for ; Thu, 27 Jan 2005 18:59:07 -0800 (PST) Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id AA3CA566C1 for ; Fri, 28 Jan 2005 02:58:40 +0000 (GMT) (envelope-from owner-src-committers@FreeBSD.org) Received: by hub.freebsd.org (Postfix) id B4D6416A52C; Fri, 28 Jan 2005 02:58:37 +0000 (GMT) Delivered-To: ps@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 538) id 0BA9D16A4D0; Fri, 28 Jan 2005 02:58:35 +0000 (GMT) Delivered-To: src-committers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 727BA16A4CE; Fri, 28 Jan 2005 02:58:33 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45F3643D1F; Fri, 28 Jan 2005 02:58:33 +0000 (GMT) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j0S2wXnd081404; Fri, 28 Jan 2005 02:58:33 GMT (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j0S2wXlZ081403; Fri, 28 Jan 2005 02:58:33 GMT (envelope-from marcel) Message-Id: <200501280258.j0S2wXlZ081403@repoman.freebsd.org> From: Marcel Moolenaar To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Sender: owner-src-committers@FreeBSD.org Precedence: bulk X-Loop: FreeBSD.ORG X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on elvis.mu.org X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.1 X-Spam-Level: Cc: Subject: cvs commit: src/tools/regression/ia64/unaligned test.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Sun, 03 Jul 2005 01:11:55 -0000 X-Original-Date: Fri, 28 Jan 2005 02:58:32 +0000 (UTC) X-List-Received-Date: Sun, 03 Jul 2005 01:11:55 -0000 marcel 2005-01-28 02:58:32 UTC FreeBSD src repository Modified files: tools/regression/ia64/unaligned test.c Log: Wrap calls to memcpy(3) in a function called block_copy(). This way, and as long as we're not compiling with IPA, gcc(1) won't optimize the call away. The whole purpose of using memcpy(3) is to avoid misaligned loads and stores when we need to read or write the value in the unaligned memory location. But if gcc(1) optimizes the call to memcpy(3) away, it will typically introduce misaligned loads and stores. In this context that's not a good idea. Revision Changes Path 1.5 +9 -2 src/tools/regression/ia64/unaligned/test.c