OpenCores

The openrisc bugtracker has been moved to: bugzilla.opencores.org. This page is read-only

GCC 4.2.2 assumes no hardware multiplication

Back to bugtracker overview.

Information:
Type :: BUG
Status :: CLOSED
Assigned to :: Jeremy, Bennett

Description:
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.

Comments:

Bennett, Jeremy Sep 5, 2010

This bug was introduced by accident, due to a change in internal GCC interfaces. It is fixed in GCC 4.5.1 in SVN.

Jeremy

Marking closed.

Jeremy

--
Tel: +44 (1590) 610184
Cell: +44 (7970) 676050
SkypeID: jeremybennett
Email: jeremy.bennett@embecosm.com
Web: www.embecosm.com

Post a comment:
Login to post comments!

Back to bugtracker overview.

© copyright 1999-2012 OpenCores.org, equivalent to ORSoC AB, all rights reserved. OpenCores®, registered trademark.