From owner-freebsd-bugs Thu Mar 14 8:10: 7 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2ADFA37B404 for ; Thu, 14 Mar 2002 08:10:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2EGA1w37507; Thu, 14 Mar 2002 08:10:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3189537B402; Thu, 14 Mar 2002 08:05:54 -0800 (PST) Received: (from jmallett@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2EG5r236563; Thu, 14 Mar 2002 08:05:53 -0800 (PST) (envelope-from jmallett) Message-Id: <200203141605.g2EG5r236563@freefall.freebsd.org> Date: Thu, 14 Mar 2002 08:05:53 -0800 (PST) From: "J. Mallett" Reply-To: "J. Mallett" To: FreeBSD-gnats-submit@FreeBSD.org Cc: obrien@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: gnu/35892: GCC dies allocating arrays of (LONG_MAX/2)-1 size Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 35892 >Category: gnu >Synopsis: GCC dies allocating arrays of (LONG_MAX/2)-1 size >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Mar 14 08:10:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: J. Mallett >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD Aphex.NewGold.NET 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Tue Mar 12 10:09:28 GMT 2002 jmallett@Aphex.NewGold.NET:/vmunix.build i386 GCC: gcc version 2.95.3 20010315 (release) >Description: When trying to allocate an array of longs on the stack of size (LONG_MAX/2)-1 [and indeed several other smaller sizes, I haven't tried to see the minimum to trigger the ice], GCC errors in the function assign_stack_temp_for_type. Here is the error: bar.c: In function `main': bar.c:6: Internal compiler error in `assign_stack_temp_for_type', at function.c:940 Please submit a full bug report. See for instructions. Note that I decided to send-pr here first, as I am unable to check right now whether this is FreeBSD-specific. >How-To-Repeat: cat > foo.c <<_EOF_ #include int main(int argc, char *argv[]) { long array[(LONG_MAX/2)-1]; return (0); } _EOF_ cc foo.c >Fix: Unaware of one at present. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message