This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On Sat, Mar 14, 2009 at 12:13 PM, O.Sezer <sezeroz@gmail.com> wrote: > in function hash_pointer(), libiberty/hashtab.c casts its pointer argument > to long, probably with the assumption that long is 64 bits on all 64 bit > systems, which isn't true for win64: it must cast to intptr_t, instead. > here is the warning: > ../../../gcc-svn/libiberty/hashtab.c: In function 'hash_pointer': > ../../../gcc-svn/libiberty/hashtab.c:199: warning: cast from pointer to integer > of different size > > the attached trivial patch fixes it. (remember to regenerate config.h.in > and configure.) > > -- > Ozkan > > PS: this was previously entered as an entry in the gcc bugzilla (39065). > New version of the patch with config.h.in and configure regenerated using autoconf-2.59 is attached. -- Ozkan
Attachment:
libiberty-hashtab-intptr.patch
Description: Binary data
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |