On 12/16/2011 03:16 AM, Chung-Lin Tang wrote:
> Hi, under powerpc targets, using -mrelocatable under some cases triggers
> an error during final assembly generation: rs6000_assemble_integer()
> calls varasm.c:unlikely_text_section_p(), and the call chain eventually
> gets to where the section htab is queried for ".text.unlikely", and
> fails because of mismatched section flags: "error: foo causes a section
> type conflict"
> 
> This seems to happen after rev.167085, 4.6 branch is also affected.
> 
> The flag mismatch seems quite straightforward: current_function_decl is
> passed in as the decl here, and as it's final assembly now, it is
> NULL_TREE. varasm.c:default_section_type_flags() adds SECTION_WRITE to
> its return value, and things get borked.

I don't understand what was put into .text.unlikely that was not a
function in the first place?  Did we try to put data there somewhere?


r~

Reply via email to