From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8606 invoked by alias); 13 Jun 2002 08:16:05 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 8543 invoked by uid 71); 13 Jun 2002 08:16:01 -0000 Resent-Date: 13 Jun 2002 08:16:01 -0000 Resent-Message-ID: <20020613081601.8540.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, martin.kahlert@infineon.com Received: (qmail 31901 invoked from network); 13 Jun 2002 08:06:45 -0000 Received: from unknown (HELO thoth.sbs.de) (192.35.17.2) by sources.redhat.com with SMTP; 13 Jun 2002 08:06:45 -0000 Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14]) by thoth.sbs.de (8.11.6/8.11.6) with ESMTP id g5D86iq24272 for ; Thu, 13 Jun 2002 10:06:44 +0200 (MEST) Received: from mail-l.muc.infineon.com (mail-l.muc.infineon.com [172.29.174.210]) by mail3.siemens.de (8.11.6/8.11.6) with ESMTP id g5D86h015960 for ; Thu, 13 Jun 2002 10:06:43 +0200 (MEST) Received: from keksy.muc.infineon.com (keksy [172.29.174.218]) by mail-l.muc.infineon.com with ESMTP id g5D86hGk007443 for ; Thu, 13 Jun 2002 10:06:43 +0200 (MET DST) Received: (from kahlert@localhost) by keksy.muc.infineon.com (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) id g5D86gL26548; Thu, 13 Jun 2002 10:06:42 +0200 Message-Id: <200206130806.g5D86gL26548@keksy.muc.infineon.com> Date: Thu, 13 Jun 2002 01:16:00 -0000 From: Martin Kahlert Reply-To: martin.kahlert@infineon.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: 3.113 Subject: c/7010: Bug in 3.1 with inline memcpy X-SW-Source: 2002-06/txt/msg00290.txt.bz2 List-Id: >Number: 7010 >Category: c >Synopsis: Bug in 3.1 with inline memcpy >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: wrong-code >Submitter-Id: net >Arrival-Date: Thu Jun 13 01:16:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Martin Kahlert >Release: 3.1.1 20020610 (prerelease) >Organization: Infineon AG >Environment: System: Linux keksy 2.4.18 #9 SMP Thu Mar 14 17:35:28 MET 2002 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: ../gcc-20020610/configure --prefix=/sw/snapshots --enable-languages=f77,c++,java --disable-threads --enable-shared=libstdc++ >Description: -minline-all-stringops has a problem with memcpy (SegFault). >How-To-Repeat: # cat bug.c #include int main() { char dst[16]; char src[16]; int tocopy = 5; memcpy (dst+5, src, tocopy); return 0; } $ gcc -O -minline-all-stringops -o bug bug.c $ ./bug >Fix: Omit -minline-all-stringops from command line. >Release-Note: >Audit-Trail: >Unformatted: