Date: Thu, 14 Mar 2002 08:05:53 -0800 (PST) From: "J. Mallett" <jmallett@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: obrien@FreeBSD.org Subject: gnu/35892: GCC dies allocating arrays of (LONG_MAX/2)-1 size Message-ID: <200203141605.g2EG5r236563@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <URL:http://www.gnu.org/software/gcc/bugs.html> 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 <machine/limits.h> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203141605.g2EG5r236563>
