This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: simplify-rtx.c problem
- To: Herman ten Brugge <Haj dot Ten dot Brugge at net dot HCC dot nl>
- Subject: Re: PATCH: simplify-rtx.c problem
- From: Alan Lehotsky <apl at alum dot mit dot edu>
- Date: Thu, 7 Jun 2001 14:42:51 -0400
- Cc: gcc-patches at gcc dot gnu dot org
- References: <200106071933.UAA12783@net.HCC.nl>
At 8:33 PM +0100 6/7/01, Herman ten Brugge wrote:
>Hello,
>
>I found a problem in simplify-rtx.c. The problem occurs on the c4x target.
>On the c4x target the size of a complex type (QCmode) is 2. The mode size of a
>this type is 1.
>The code that handles CONCAT in simplify_subreg does the following
>calculation (innermode = QCmode):
This same bug is causing about 50-100 tests in the c-torture suite to fail to compile
for a port I'm doing too! This machine has 32 bit chars/ints/floats (it's only word addressed).
And for a cross compiler hosted on Solaris 2.7, gcc gets an Arithmetic Exception at run time
evaluating % 0.
I suspect this may be a problem for several of the weirder target machines....
-- Al
--
------------------------------------------------------------------------
Quality Software Management
http://home.earthlink.net/users/~qsmgmt
apl@alum.mit.edu
(978)287-0435 Voice
(978)808-6836 Cell
(978)287-0436 Fax
Software Process Improvement and Management Consulting
Language Design and Compiler Implementation