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 host endianess issue in lto streamer (PR lto/47274)


On Thu, Feb 03, 2011 at 12:24:19AM +0000, Dave Korn wrote:
> On 02/02/2011 23:22, Jakub Jelinek wrote:
> 
> > Both kind and visibility are enum vars, i.e. 32-bit on practically all
> > hosts, but lto_output_data_stream (stream, &kind, 1); writes first
> > byte from it (which is the right thing on little endian hosts, but always
> > writes 0 on big endian).
> > I haven't found where this section is actually read (somewhere in lto
> > plugin, somewhere else?)
> 
>   As you say; see parse_table_entry() in lto-plugin.c

Ah, the confusing thing was that it uses LDP{K,V}_* constants it defines
instead of GCCP{K,V}_* that the streamer uses.

	Jakub


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