Skip to content
Snippets Groups Projects
Commit e6620e86 authored by Kazu Hirata's avatar Kazu Hirata Committed by Kazu Hirata
Browse files

re PR c/19606 (wrong code for arith.expr: (((unsigned int)(signed int) a ) /...

re PR c/19606 (wrong code for arith.expr: (((unsigned int)(signed int) a ) / 2LL) with signed char a=-4)

gcc/
	PR c/19606.
	* c-typeck.c (build_binary_op): Perform implicit casts of
	operands before shortening them.

gcc/testsuite/
	PR c/19606.
	* gcc.c-torture/execute/pr19606.c: New.

From-SVN: r110321
parent dadd8a3f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment