On 12/17/2011 10:36 PM, Chung-Lin Tang wrote: > I don't think it's that kind of problem; the powerpc backend uses > unlikely_text_section_p(), which compares the passed in argument section > and the value of function_section_1(current_function_decl,true).
I think this might be the real bug, or something related. > Since current_function_decl is NULL at assembly phase, it retrieves > ".text.unlikely" to test for equality. It's the retrieving/lookup that > fails here, because the default looked-up section flags set when decl == > NULL does not really seem to make sense (adds SECTION_WRITE). current_function_decl is only null when we're not inside a function. One possible fix is to test for current_function_section inside unlikely_text_section_p. However, I think that begs the question of what in the world is actually going on in rs6000_assemble_integer. Why are we testing for emitting data in text sections?