[lto] Fix memory access
Diego Novillo
dnovillo@google.com
Tue Feb 17 13:42:00 GMT 2009
On Mon, Feb 16, 2009 at 12:16, Rafael Espindola <espindola@google.com> wrote:
> /* Read the string at LOC from the string table in DATA_IN. */
>
> -static const char *
> -input_string_internal (struct data_in *data_in, unsigned int loc,
> +static const char *
> +input_string_internal (struct data_in *data_in, struct lto_input_block *ib,
> unsigned int *rlen)
Comment needs updating.
> /* Read a STRING_CST at LOC from the string table in DATA_IN. */
>
> static tree
> -input_string (struct data_in *data_in, unsigned int loc)
> +input_string_cst (struct data_in *data_in, struct lto_input_block *ib)
Likewise.
>
> +static tree
> +input_identifier (struct data_in *data_in, struct lto_input_block *ib)
> +{
Needs comment.
> +
> +static const char *
> +input_string (struct data_in *data_in, struct lto_input_block *ib)
> +{
Needs comment.
OK with those changes.
Diego.
More information about the Gcc-patches
mailing list