This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch testsuite]: gcc.dg/20020919-1.c pointer cast fix
- From: Kai Tietz <Kai dot Tietz at onevision dot com>
- To: "Richard Guenther" <richard dot guenther at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 22 Apr 2008 15:44:30 +0200
- Subject: Re: [patch testsuite]: gcc.dg/20020919-1.c pointer cast fix
"Richard Guenther" <richard.guenther@gmail.com> wrote on 22.04.2008
15:40:20:
> On Tue, Apr 22, 2008 at 3:36 PM, Kai Tietz <Kai.Tietz@onevision.com>
wrote:
> > Hi,
> >
> > this patch fixes an obvious pointer cast problem in this testcase for
> > x86_64-pc-mingw32 target. It assumed that a cast of a pointer to type
long
> > produce no warning. I patched this by defining a specifc loc_size_t
type
> > and use it.
> >
> > ChangeLog
> >
> > 2008-04-22 Kai Tietz <kai.tietz@onevision.com>
> >
> > * gcc.dg/20020919-1.c (loc_size_t): New type.
> > (_dl_stat): Use loc_size_t to cast pointers.
> >
> > Is this patch ok for apply?
>
> Doesn't __SIZE_TYPE__ work always?
Not with all c90 for example. Because x86_64-pc-mingw32 uses normally the
'long long' type for pointers, which isn't support by some ISO styles.
Regards,
i.A. Kai Tietz
| (\_/) This is Bunny. Copy and paste Bunny
| (='.'=) into your signature to help him gain
| (")_(") world domination.