From: "Eli Zaretskii" <eliz@gnu.org>
To: Andrew Cagney <cagney@gnu.org>
Cc: mark.kettenis@xs4all.nl, gdb-patches@sources.redhat.com
Subject: Re: [commit] Use bfd_byte in value.h
Date: Fri, 29 Apr 2005 07:15:00 -0000 [thread overview]
Message-ID: <01c54c8a$Blat.v2.4$ffbe8140@zahav.net.il> (raw)
In-Reply-To: <42715EE8.5070704@gnu.org> (message from Andrew Cagney on Thu, 28 Apr 2005 18:08:40 -0400)
> Date: Thu, 28 Apr 2005 18:08:40 -0400
> From: Andrew Cagney <cagney@gnu.org>
> CC: gdb-patches@sources.redhat.com
>
> Like I mentioned on gdb@, these are for warnings you get when building
> with GCC 4 (or for that matter, any modern compiler). vis:
>
> cagney@tornado$ cat -n s.c
> 1 char *c;
> 2 signed char *s;
> 3 unsigned char *u;
> 4
> 5 void foo (void)
> 6 {
> 7 c = s;
> 8 c = u;
> 9 s = u;
> 10 }
> $ gcc --version
> gcc (GCC) 4.0.0 20050412 (Red Hat 4.0.0-0.42)
> ...
> $ gcc -c s.c
> s.c: In function foo:
> s.c:7: warning: pointer targets in assignment differ in signedness
> s.c:8: warning: pointer targets in assignment differ in signedness
> s.c:9: warning: pointer targets in assignment differ in signedness
But why should we solve this with bfd_byte? Why not introduce GDB's
own data type, like gdb_byte or some such?
BFD is just a library; there's no need to pollute our name space with
BFD's. It's IMHO unclean.
But I already said this, and was already ignored when I did, sigh...
next prev parent reply other threads:[~2005-04-29 7:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-28 16:27 Andrew Cagney
2005-04-28 19:19 ` Mark Kettenis
2005-04-28 19:21 ` Daniel Jacobowitz
2005-04-28 22:12 ` Andrew Cagney
2005-04-29 7:15 ` Eli Zaretskii [this message]
2005-05-01 20:19 ` Andrew Cagney
2005-05-01 20:41 ` Mark Kettenis
2005-05-01 21:13 ` Eli Zaretskii
2005-05-01 23:04 ` Andrew Cagney
2005-05-02 19:12 ` Eli Zaretskii
2005-05-03 14:43 ` Andrew Cagney
2005-05-03 19:55 ` Eli Zaretskii
2005-05-03 20:01 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='01c54c8a$Blat.v2.4$ffbe8140@zahav.net.il' \
--to=eliz@gnu.org \
--cc=cagney@gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=mark.kettenis@xs4all.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox