From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22921 invoked by alias); 5 Mar 2002 13:46:08 -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 22864 invoked by uid 71); 5 Mar 2002 13:46:03 -0000 Resent-Date: 5 Mar 2002 13:46:02 -0000 Resent-Message-ID: <20020305134602.22863.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, Valera.Veryazov@teokem.lu.se Received:(qmail 19119 invoked by uid 61); 5 Mar 2002 13:39:04 -0000 Message-Id:<20020305133903.19118.qmail@sources.redhat.com> Date: Tue, 05 Mar 2002 05:46:00 -0000 From: Valera.Veryazov@teokem.lu.se Reply-To: Valera.Veryazov@teokem.lu.se To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: fortran/5837: bug in loop unrolling X-SW-Source: 2002-03/txt/msg00155.txt.bz2 List-Id: >Number: 5837 >Category: fortran >Synopsis: bug in loop unrolling >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue Mar 05 05:46:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Valera.Veryazov@teokem.lu.se >Release: 3.0.4 >Organization: >Environment: Linux Mandrake 8.1. GCC/G77 compiled from the source code. >Description: The code (see attachment) produces a Segnematation fault, if flags " -O -funroll-loops" are used. Change of parameter to 12, 16 gives a correct result. Also, a change of declaration Character *64 to, say, Character*45 produces a funny number instead 0. Removing -unroll-loops flag or using unrolling by hands also 'fix' the problem. >How-To-Repeat: just compile the code with -O -funroll-loops flags. >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="main.f" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="main.f" YyAgICAgZzc3ICAtTyAgLWZ1bnJvbGwtbG9vcHMgICBtYWluLmYKICAgICAgcHJvZ3JhbSBtYWlu CiAgICAgIFBhcmFtZXRlciAobiA9IDExKSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIAogICAgICBDb21tb24gL1RULyBNTQogICAgICBDaGFyYWN0ZXIqNjQgRmxkKG4pLFN0YXQo bikgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAKICAgICAgQ29tbW9uIC9USU1DLyBGbGQsU3RhdCAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgCioKICAgICAgTU09MAogICAgICBkbyBpPTEsbgogICAgICAgIEZs ZChpKT0nICcKICAgICAgICBTdGF0KGkpPScgJwogICAgICBlbmQgZG8KICAgICAgd3JpdGUoKiwq KSBNTQogICAgICBlbmQK