On 11/24/2018 02:10 AM, Jeff Law wrote:
On 11/23/18 3:04 PM, Vladimir Makarov wrote:
The following patch fixes
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88157
The patch was successfully bootstrapped on x86 and x86-64 with GO and D.
Committed as rev. 266422.
pr88157.patch
Index: ChangeLog
===================================================================
--- ChangeLog (revision 266421)
+++ ChangeLog (working copy)
@@ -1,3 +1,9 @@
+2018-11-23 Vladimir Makarov <vmaka...@redhat.com>
+
+ PR bootstrap/88157
+ * ira-costs.c (record_operand_costs): Use bigger hard reg class if
+ its mode does not fit to the original class.
We're still having problems in this code. I've got about a half-dozen
targets failing.
Try an nds32be-elf cross compiler with the attached testcase. -O2
-mcmodel=small
It should be failing just below when we try to access
ira_register_move_cost[mode][hard_reg_class][rclass]
Thanks for testing, Jeff. I've just committed a patch which should fix
the problems.