This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/80715] NULL pointer dereferenced in find_costs_and_classes, at ira-costs.c
- From: "zeccav at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 12 May 2017 16:02:56 +0000
- Subject: [Bug rtl-optimization/80715] NULL pointer dereferenced in find_costs_and_classes, at ira-costs.c
- Auto-submitted: auto-generated
- References: <bug-80715-4@http.gcc.gnu.org/bugzilla/>
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