https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80715

            Bug ID: 80715
           Summary: NULL pointer dereferenced in find_costs_and_classes,
                    at ira-costs.c
           Product: gcc
           Version: 7.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com
  Target Milestone: ---

This seems to be linked to 78650

/*NULL pointer dereferenced in find_costs_and_classes, at ira-costs.c:1748 */
/* must be compiled with options "-O2 -flive-range-shrinkage" */
/* double checked with ira_assert and ENABLE_IRA_CHECKING */
/*/home/vitti/f95/cc/gccerr55.c: In function ‘f’:
/home/vitti/f95/cc/gccerr55.c:27:1: internal compiler error: in
find_costs_and_classes, at ira-costs.c:1748
 }
 ^
0x863be3 find_costs_and_classes
        ../../gcc/gcc/ira-costs.c:1748
0x864959 ira_costs()
        ../../gcc/gcc/ira-costs.c:2261
0x85e356 ira_build()
        ../../gcc/gcc/ira-build.c:3420
0x855ccb ira
        ../../gcc/gcc/ira.c:5302
0x855ccb execute
        ../../gcc/gcc/ira.c:5613
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
*/
//ira-costs.c:1748 ira_assert(cost_classes_ptr);/*!vz pr60268.c -O2
-flive-range-shrinkage*/
//1749          enum reg_class *cost_classes = cost_classes_ptr->classes;
void f()
{
}

Reply via email to