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]
Other format: [Raw text]

Re: [expand PATCH] PR/40597 part 2: fix powerpc bootstrap



Reduced C testcase attached. The conversion in emit_store_flag_1

	  convert_move (target, tem,
			0 == (STORE_FLAG_VALUE
			&  ((HOST_WIDE_INT) 1
				<<  (GET_MODE_BITSIZE (word_mode) -1))));

is performed unsigned, while it would need to be signed.

Thanks. The testcase didn't abort for me, but with the attached patch GCC uses the right flavor of shift. Bootstrapped/regtested with Ada included on x86_64-pc-linux-gnu.


Ok?

Paolo

Attachment: gcc-ada.patch
Description: Text document


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