From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 305 invoked by alias); 6 Aug 2003 21:13:53 -0000 Mailing-List: contact cgen-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sources.redhat.com Received: (qmail 32763 invoked from network); 6 Aug 2003 21:13:52 -0000 Received: from unknown (HELO neon-gw.transmeta.com) (63.209.4.196) by sources.redhat.com with SMTP; 6 Aug 2003 21:13:52 -0000 Received: (from root@localhost) by neon-gw.transmeta.com (8.9.3/8.9.3) id OAA18884; Wed, 6 Aug 2003 14:13:47 -0700 Received: from mailhost.transmeta.com(10.1.1.15) by neon-gw.transmeta.com via smap (V2.1) id xma018840; Wed, 6 Aug 03 14:13:25 -0700 Received: from casey.transmeta.com (casey.transmeta.com [10.10.25.22]) by deepthought.transmeta.com (8.11.6/8.11.6) with ESMTP id h76LDT329275; Wed, 6 Aug 2003 14:13:29 -0700 (PDT) Received: (from dje@localhost) by casey.transmeta.com (8.9.3/8.7.3) id OAA01368; Wed, 6 Aug 2003 14:13:29 -0700 From: Doug Evans MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16177.28537.748274.480707@casey.transmeta.com> Date: Thu, 07 Aug 2003 00:10:00 -0000 To: Michael Meissner Cc: cgen@sources.redhat.com Subject: Eliminate compiler warnings in initializing CGEN_OPINST tables In-Reply-To: <20030806205233.GA30369@tiktok.the-meissners.org> References: <20030806205233.GA30369@tiktok.the-meissners.org> X-SW-Source: 2003-q3/txt/msg00032.txt.bz2 Michael Meissner writes: > The default warning level now complains if fields are only partially > initialized. This means a lot of warnings for the lines of the form: > > { END } > > generated by opc-opinst.scm. This patch fixes that. This is also fixed in my constant-beyond-base patch I just tabled. It can certainly go in. > 2003-08-06 Michael Meissner > > * opc-opinst.scm (-gen-operand-instance-table): Initialize all of > the elements for the END record of CGEN_OPINST, silencing > warnings. > > *** cgen/opc-opinst.scm.~1.3.~ 2003-05-15 03:25:02.000000000 -0400 > --- cgen/opc-opinst.scm 2003-08-06 16:38:08.000000000 -0400 > *************** > *** 54,60 **** > ins) > (string-map (lambda (op) (-gen-operand-instance op "OUTPUT")) > outs) > ! " { END }\n};\n\n"))) > ) > > (define (-gen-operand-instance-tables) > --- 54,60 ---- > ins) > (string-map (lambda (op) (-gen-operand-instance op "OUTPUT")) > outs) > ! " { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 }\n};\n\n"))) > ) > > (define (-gen-operand-instance-tables)