On Apr 11, 2005, at 3:55 PM, Alexandre Oliva wrote:

Index: varasm.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/varasm.c,v
retrieving revision 1.495
diff -u -p -d -u -p -d -u -p -r1.495 varasm.c
--- varasm.c    9 Apr 2005 20:41:49 -0000       1.495
+++ varasm.c    11 Apr 2005 19:55:05 -0000
@@ -307,7 +307,7 @@ in_unlikely_text_section (void)
       cfun = DECL_STRUCT_FUNCTION (current_function_decl);

       ret_val = ((in_section == in_unlikely_executed_text)
-                || (in_section == in_named
+                || (in_section == in_named && cfun
                     && cfun->unlikely_text_section_name
                     && strcmp (in_named_name,
                                cfun->unlikely_text_section_name) == 0));

Also note Caroline is testing a patch to fix this and the other fall out due to her hot/cold patch.

Thanks,
Andrew Pinski



Reply via email to