From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 717 invoked by alias); 5 May 2002 18:14:24 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 709 invoked from network); 5 May 2002 18:14:24 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 5 May 2002 18:14:24 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 0A7583DAA; Sun, 5 May 2002 14:14:28 -0400 (EDT) Message-ID: <3CD57683.9000506@cygnus.com> Date: Sun, 05 May 2002 11:14:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0rc1) Gecko/20020429 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alexandre Oliva Cc: gdb-patches@sources.redhat.com, insight@sources.redhat.cmo Subject: Re: multi-arched alpha won't build with OSF1 4.0d's cc References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-05/txt/msg00122.txt.bz2 > OSF1 4.0d's cc complains when a non-constant value is used as the > array size of a formal parameter. The first patch below fixes the > problem without removing the documentation value of the array size at > that point. I wonder if just commenting out the (variable) array size > would be a better choice. > > It also rightfully refuses to compile functions containing automatic > arrays of non-constant sizes. The second patch below fixes this > problem. > > With these two patches, GDB mainline builds on this platform again, > using this picky/dumb compiler. > > Ok to install? > Yes (if you haven't already). I'll add '\[MAX_REGISTER_{RAW,VIRTUAL}_SIZE\]' to the ARI. Andrew