This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: Suspected bug lshift_value (expmed.c) and its patch
# need_64bit_hwint Set to yes if HOST_WIDE_INT must be 64 bits wide
# for this target. This is true iff this target
# supports "long" or "wchar_t" wider than 32 bits.
# The setting made here must match the one made in
# other locations such as libcpp/configure.ac
#
Thanks. Maybe this description needs some modifications. It doesn't mention
need_64bit_hwint has to true if target is 64-bit machine.
"long" type on our target is 32-bit indeed.
Bingfeng
> -----Original Message-----
> From: Jakub Jelinek [mailto:jakub@redhat.com]
> Sent: 19 March 2009 15:37
> To: Bingfeng Mei
> Cc: Michael Meissner; Dave Korn; Eric Botcazou;
> gcc-patches@gcc.gnu.org; Richard Guenther
> Subject: Re: Suspected bug lshift_value (expmed.c) and its patch
>
> On Thu, Mar 19, 2009 at 08:31:56AM -0700, Bingfeng Mei wrote:
> > Then come back to my orginal mail.
> >
> > I use gcc with -m32 to build my cross-compiler, it supports
> long long.
> > My target is 64-bit.
> > need_64bit_hwint is NOT set.
> >
> > Is this combination allowed or not?
>
> Not allowed. For all 64-bit targets you need need_64bit_hwint.
> See e.g. need_64bit_hwint description in gcc/config.gcc.
>
> Jakub
>
>