* Eliminate compiler warnings in initializing CGEN_OPINST tables
@ 2003-08-06 21:04 Michael Meissner
2003-08-07 0:10 ` Doug Evans
0 siblings, 1 reply; 2+ messages in thread
From: Michael Meissner @ 2003-08-06 21:04 UTC (permalink / raw)
To: cgen
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.
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)
--
Michael Meissner
email: gnu@the-meissners.org
http://www.the-meissners.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* Eliminate compiler warnings in initializing CGEN_OPINST tables
2003-08-06 21:04 Eliminate compiler warnings in initializing CGEN_OPINST tables Michael Meissner
@ 2003-08-07 0:10 ` Doug Evans
0 siblings, 0 replies; 2+ messages in thread
From: Doug Evans @ 2003-08-07 0:10 UTC (permalink / raw)
To: Michael Meissner; +Cc: cgen
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)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-08-06 21:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-06 21:04 Eliminate compiler warnings in initializing CGEN_OPINST tables Michael Meissner
2003-08-07 0:10 ` Doug Evans
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).