This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: ldlang won't compile with latest gcc


>../../src/ld/ldlang.c:1043: warning: dereferencing type-punned pointer
>will break strict-aliasing rules

Your patch only gets rid of this warning, it doesn't actually stop the
type-punned pointer from being derefenced.  You need to do something
like to avoid the type-punning:

	lang_statement_union_type *temp;
	lang_statement_append (..., &temp);
	lookup->next = (lang_output_section_statement_type *) temp;

						Ross Ridge

-- 
 l/  //	  Ross Ridge -- The Great HTMU
[oo][oo]  rridge@csclub.uwaterloo.ca
-()-/()/  http://www.csclub.uwaterloo.ca/u/rridge/ 
 db  //	  


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