This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
> > Digital (Compaq) errors comparing a function pointer with
> another with
>
> Can you expand this one a bit more. Are the consequence
> ``bad'' or just
> that DEC is being pedantic? :-)
I think it is only pedantry - it does fail to compile
cc: Error: ../../gdb-19991116/gdb/target.c, line 2840: In this statement, "current_target.to_rcmd" and "(void ...)tcomplain" cannot be compared for equality or inequality. (noequality)
if ((current_target.to_rcmd == (void*) tcomplain)
-------^
cc: Error: ../../gdb-19991116/gdb/target.c, line 2842: In this statement, "debug_target.to_rcmd" and "(void ...)tcomplain" cannot be compared for equality or inequality. (noequality)
&& (debug_target.to_rcmd == (void*) tcomplain)))
--------------^
> I ask as GDB currently contains many casts using (make_cleanup_func).
> The code has been identified as something that violates the ANSI spec
> but, fortunatly, works. If Alphas really do have a technical problem
> with that cast/compare then there could easily be the same problem in
> make_cleanups().
If make_cleanups was already present in 19991116, then it has already compiled
without erroring out, otherwise I'll find out when I build the new snapshot
on the alpha.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |