From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10408 invoked by alias); 13 Mar 2013 10:27:08 -0000 Received: (qmail 10356 invoked by uid 22791); 13 Mar 2013 10:27:07 -0000 X-SWARE-Spam-Status: No, hits=-3.8 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp1.uu.se (HELO smtp1.uu.se) (130.238.7.54) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 13 Mar 2013 10:27:02 +0000 Received: from pilspetsen.it.uu.se (pilspetsen.it.uu.se [130.238.18.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by bornea.its.uu.se (Postfix) with ESMTPS id 3D9E34003B; Wed, 13 Mar 2013 11:25:29 +0100 (CET) Received: (from mikpe@localhost) by pilspetsen.it.uu.se (8.14.5+Sun/8.14.5) id r2DAPJsJ028728; Wed, 13 Mar 2013 11:25:19 +0100 (MET) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <20800.21519.527393.196910@pilspetsen.it.uu.se> Date: Wed, 13 Mar 2013 10:27:00 -0000 From: Mikael Pettersson To: Benjamin De Kosnik Cc: gcc-patches@gcc.gnu.org Subject: Re: [wwwdocs] gcc-4.8/porting_to.html In-Reply-To: <20130313022916.0728c82e@oakwood> References: <20130313022916.0728c82e@oakwood> Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2013-03/txt/msg00452.txt.bz2 Benjamin De Kosnik writes: > > Hey! Here is the first pass at the 4.8 porting documentation. .. > + memset(p1, 0, sizeof(p1)); // error, use memcopy s/memcopy/memcpy/ > + memset(p1, 0, sizeof(p1)); // error, use memcopy likewise > +

To fix, either use memcopy or dereference the last argument in the likewise /Mikael