* [commit] gnu-v3-abi.c:430: warning: assignment from incompatible pointer type
@ 2004-09-16 18:15 Andrew Cagney
2004-09-16 18:39 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Cagney @ 2004-09-16 18:15 UTC (permalink / raw)
To: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 501 bytes --]
Hello,
Using FC3's GCC 3.4, I'm seeing the warning:
/home/cygnus/cagney/GDB/src/gdb/gnu-v3-abi.c: In function `init_gnuv3_ops':
/home/cygnus/cagney/GDB/src/gdb/gnu-v3-abi.c:430: warning: assignment
from incom
patible pointer type
/home/cygnus/cagney/GDB/src/gdb/gnu-v3-abi.c:431: warning: assignment
from incom
patible pointer type
I'm not sure how it should be fixed (it's messy, see patch for
description) - suggestions? For the moment I've disabled -Werror on
that file.
committed,
Andrew
[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 1073 bytes --]
2004-09-16 Andrew Cagney <cagney@gnu.org>
* Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
problem.
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.619
diff -p -u -r1.619 Makefile.in
--- Makefile.in 13 Sep 2004 20:55:36 -0000 1.619
+++ Makefile.in 16 Sep 2004 18:11:47 -0000
@@ -1432,6 +1432,14 @@ main.o: main.c
$(CC) -c $(INTERNAL_CFLAGS) $(TARGET_SYSTEM_ROOT_DEFINE) \
-DBINDIR=\"$(bindir)\" $(srcdir)/main.c
+# FIXME: cagney/2004-09-16: "gnu-v3-abi.c", with a GCC 3.4 compiler,
+# gets a "assignment from incompatible pointer type" warning. The
+# return types - "enum gnu_v3_dtor_kinds" vs "enum ctor_kinds" -
+# conflict.
+gnu-v3-abi.o: $(srcdir)/gnu-v3-abi.c
+ $(CC) -c $(INTERNAL_WARN_CFLAGS) $(NO_WERROR_CFLAGS) \
+ $(srcdir)/gnu-v3-abi.c
+
# FIXME: cagney/2003-08-10: "monitor.c" gets -Wformat-nonliteral
# errors. It turns out that that is the least of monitor.c's
# problems. The function print_vsprintf appears to be using
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [commit] gnu-v3-abi.c:430: warning: assignment from incompatible pointer type
2004-09-16 18:15 [commit] gnu-v3-abi.c:430: warning: assignment from incompatible pointer type Andrew Cagney
@ 2004-09-16 18:39 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2004-09-16 18:39 UTC (permalink / raw)
To: Andrew Cagney; +Cc: gdb-patches
On Thu, Sep 16, 2004 at 02:12:53PM -0400, Andrew Cagney wrote:
> Hello,
>
> Using FC3's GCC 3.4, I'm seeing the warning:
>
> /home/cygnus/cagney/GDB/src/gdb/gnu-v3-abi.c: In function `init_gnuv3_ops':
> /home/cygnus/cagney/GDB/src/gdb/gnu-v3-abi.c:430: warning: assignment
> from incom
> patible pointer type
> /home/cygnus/cagney/GDB/src/gdb/gnu-v3-abi.c:431: warning: assignment
> from incom
> patible pointer type
>
> I'm not sure how it should be fixed (it's messy, see patch for
> description) - suggestions? For the moment I've disabled -Werror on
> that file.
We could remove the ctor_kinds/dtor_kinds types from the header and use
the gnu_v3 enums provided by the demangler. They're misnamed for our
purposes, but they're also a superset of what's available in other ABIs
we currently support.
--
Daniel Jacobowitz
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-09-16 18:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-16 18:15 [commit] gnu-v3-abi.c:430: warning: assignment from incompatible pointer type Andrew Cagney
2004-09-16 18:39 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox