This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug rtl-optimization/80715] NULL pointer dereferenced in find_costs_and_classes, at ira-costs.c


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

--- Comment #4 from Vittorio Zecca <zeccav at gmail dot com> ---
I see the ICE on trunk 247930.

To reproduce it you need ira_assert working,
definining  ENABLE_IRA_CHECKING implied by CHECKING_P,
best way to make it happen is configuring gcc with --enable-checking=yes
option.
Have the following lines:

ira_assert(cost_classes_ptr);/*!vz my addition pr60268.c -O2
-flive-range-shrinkage*/
enum reg_class *cost_classes = cost_classes_ptr->classes;

and compile with both options  -O2 -flive-range-shrinkage

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