OpenCores
Issue List
GCC 4.2.2 assumes no hardware multiplication #57
Closed jeremybennett opened this issue over 15 years ago
jeremybennett commented over 15 years ago

The old GCC 3.4.4. for OpenRISC assumed the availability of hardware multiplication, but not hardware division by default (i.e. -mhard-mul, -msoft-div), which was consistent with the default Verilog configuration. The current GCC 4.2.2 appears to assume neither hardware multiplication nor hardware division are present (i.e. -msoft-mul, -msoft-div).

The old behavior can be restored by using -mhard-div on the GCC command line of in the CFLAGS within Makefiles. However it would be better to restore the defaults, for consistency with Verilog.

This is based on a preliminary analysis of the problem, which needs verifying.

jeremybennett commented about 14 years ago
<p> This bug was introduced by accident, due to a change in internal GCC interfaces. It is fixed in GCC 4.5.1 in SVN. </p> <p> Jeremy </p> <p> Marking closed. </p> <p> Jeremy </p> <p> -- <br /> Tel: +44 (1590) 610184<br /> Cell: +44 (7970) 676050<br /> SkypeID: jeremybennett<br /> Email: <a href="mailto:jeremy.bennett@embecosm.com">jeremy.bennett@embecosm.com</a><br /> Web: <a href="http://www.embecosm.com">www.embecosm.com</a> </p>
jeremybennett was assigned about 14 years ago
jeremybennett closed this about 14 years ago

Assignee
jeremybennett
Labels
Bug