From: Doug Evans <dje@transmeta.com>
To: Michael Meissner <cgen-mail@the-meissners.org>
Cc: cgen@sources.redhat.com
Subject: Eliminate compiler warnings in initializing CGEN_OPINST tables
Date: Thu, 07 Aug 2003 00:10:00 -0000 [thread overview]
Message-ID: <16177.28537.748274.480707@casey.transmeta.com> (raw)
In-Reply-To: <20030806205233.GA30369@tiktok.the-meissners.org>
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 <gnu@the-meissners.org>
>
> * 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)
prev parent reply other threads:[~2003-08-06 21:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-06 21:04 Michael Meissner
2003-08-07 0:10 ` Doug Evans [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16177.28537.748274.480707@casey.transmeta.com \
--to=dje@transmeta.com \
--cc=cgen-mail@the-meissners.org \
--cc=cgen@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).