From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14529 invoked by alias); 8 Oct 2002 00:56:02 -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 14508 invoked by uid 71); 8 Oct 2002 00:56:01 -0000 Resent-Date: 8 Oct 2002 00:56:01 -0000 Resent-Message-ID: <20021008005601.14507.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, glen@imodulo.com Received: (qmail 14449 invoked by uid 61); 8 Oct 2002 00:55:07 -0000 Message-Id: <20021008005507.14448.qmail@sources.redhat.com> Date: Mon, 07 Oct 2002 17:56:00 -0000 From: glen@imodulo.com Reply-To: glen@imodulo.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: optimization/8165: builtin string functions SEGV on alpha-pc-linux-gnu at -O2 X-SW-Source: 2002-10/txt/msg00272.txt.bz2 List-Id: >Number: 8165 >Category: optimization >Synopsis: builtin string functions SEGV on alpha-pc-linux-gnu at -O2 >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon Oct 07 17:56:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Glen Nakamura >Release: gcc version 3.3 20021006 (experimental) >Organization: >Environment: alpha-pc-linux-gnu >Description: The testcase results in SEGV when compiled at -O2. >How-To-Repeat: gcc -O2 testcase.c ./a.out >Fix: I'll send a proposed patch in a bit... >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="testcase.c" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="testcase.c" ZXh0ZXJuIHZvaWQgYWJvcnQgKHZvaWQpOwoKY2hhciBidWZbNjRdOwoKaW50Cm1haW4gKHZvaWQp CnsKICBpbnQgaTsKCiAgX19idWlsdGluX3N0cmNweSAoYnVmLCAibXlzdHJpbmciKTsKICBpZiAo X19idWlsdGluX3N0cmNtcCAoYnVmLCAibXlzdHJpbmciKSAhPSAwKQogICAgYWJvcnQgKCk7Cgog IGZvciAoaSA9IDA7IGkgPCAxNjsgKytpKQogICAgewogICAgICBfX2J1aWx0aW5fc3RyY3B5IChi dWYgKyBpLCAibXlzdHJpbmciKTsKICAgICAgaWYgKF9fYnVpbHRpbl9zdHJjbXAgKGJ1ZiArIGks ICJteXN0cmluZyIpICE9IDApCglhYm9ydCAoKTsKICAgIH0KCiAgcmV0dXJuIDA7Cn0K