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]

Re: [PATCH] Fix inconsistent use of integer types in gcc/lto-streamer-out.c


On 11/16/2015 09:22 AM, Andris Pavenis wrote:
On 11/16/2015 01:12 PM, Richard Biener wrote:
On Sun, Nov 15, 2015 at 9:21 AM, Andris Pavenis
<andris.pavenis@iki.fi> wrote:
This fixes use of pointers different unsigned integer types as function
parameter.
Function prototype is (see gcc/tree-streamer.h):

bool streamer_tree_cache_lookup (struct streamer_tree_cache_d *, tree,
                  unsigned *);

gcc/lto-streamer-out.c passes uint32_t int * as parameter to this
method in
2 places.
Current type unisgned is used elsewhere in the same file.

uint32_t is not guaranteed to be the same as unsigned (for DJGPP
uint32_t is
actually
unsigned long). That causes compile failure for DJGPP native build.
Ok.

Thanks,
Richard.

Could somebody apply it as I do not have SVN write access.
Done.
jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]