Comment 3 for bug 1008996

Revision history for this message
David Lichteblau (david-lichteblau) wrote :

Please try the attached patch before I push it.

The change is not extraordinarily pretty though. Can compiler backend fans please review it?

As indicated in the commit message, SPARC has an implicit restriction on number of code constants. Arguably, it's okay to have such restrictions (even though the error message could be better), and other platforms (PowerPC in particular) have similar restrictions. However, SPARCs limit of 13-bit immediates (i.e. 2^10 constants) seems particularly stringent: PowerPC has 16-bit immediates (2^13 constants). So I suggest fixing it.