This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH: simplify-rtx.c problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]