This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcj: Is this a bug?


Alex

Alexandre Petit-Bianco wrote:
>[snip]
> Index: jcf-parse.c
> ===================================================================
> RCS file: /cvs/gcc/egcs/gcc/java/jcf-parse.c,v
> retrieving revision 1.67
> diff -u -p -r1.67 jcf-parse.c
> --- jcf-parse.c 2000/12/16 01:51:51     1.67
> +++ jcf-parse.c 2001/01/10 15:47:24
> @@ -569,7 +569,7 @@ jcf_parse_source ()
>    java_push_parser_context ();
>    BUILD_FILENAME_IDENTIFIER_NODE (file, current_jcf->filename);
>    if (wfl_operator == NULL_TREE)
> -    wfl_operator = build_expr_wfl (NULL_TREE, file, 0, 0);
> +    wfl_operator = build_expr_wfl (NULL_TREE, (const char *)file, 0, 0);
Just curious, are you sure you mean to cast file which tree node to a (const char *)
it just looks wrong to me.

At a guess shouldn't this be current_jcf->filename instead of (const char *)file?

>    else
>      EXPR_WFL_FILENAME_NODE (wfl_operator) = file;
>    input_filename = ggc_strdup (current_jcf->filename);
>[snip]

Graham

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]