This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 0/4] bitpos expansion summary reloaded
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Siddhesh Poyarekar <siddhesh at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 7 Nov 2012 14:47:42 +0100
- Subject: Re: [PATCH 0/4] bitpos expansion summary reloaded
- References: <20120929173938.GA2987@host2.jankratochvil.net> <20120929181141.GA4009@host2.jankratochvil.net> <20120930065211.GA21118@host2.jankratochvil.net> <20121003184155.03dceed4@spoyarek> <20121003195627.GA17283@host2.jankratochvil.net> <20121004071314.GA4292@host2.jankratochvil.net> <20121021130546.02ea680c@spoyarek> <20121025155412.GA16619@host2.jankratochvil.net> <20121025222123.68c7b118@spoyarek> <20121106200117.GA4110@host2.jankratochvil.net>
On Tue, 06 Nov 2012 21:01:17 +0100, Jan Kratochvil wrote:
> start just normally fixing all the warnings for -Wconversion
other possibility is just to target the 64-bit offsets avoid the -Wconversion
fixes mostly unrelated to it.
This is a repeating issue like the checked-in cu_offset vs. sect_offset,
therefore to use something like:
typedef struct
{
int64_t x;
} ssize64_type;
(There was some complain on reversed *_t types, therefore I used _type.))))
I will yet see how beneficial are the -Wconversion fixes, I believe not much
so the ssize64_type way may be at least easier to implement.
BTW it would be all sure much easier with C++ and its operator overloading.
Regards,
Jan