Re: [C patch] PR49551

2015-06-02 Thread Joseph Myers
On Sun, 31 May 2015, Prathamesh Kulkarni wrote: > However DECL_COMMON (olddecl) is still incorrectly set to 1 after the > call to memcpy(), while DECL_COMMON (olddecl) should be 0 for the > above test-case. This patch tries to correctly adjust DECL_COMMON > (newdecl) before it is copied into oldde

[C patch] PR49551

2015-05-31 Thread Prathamesh Kulkarni
Hi, The attached patch tries to fix PR49551. For following test-case: int x = 1; int x; Passing -O -fdata-sections causes ICE for target arm-linux-gnueabihf. The bug is latent on trunk, after r221297. Reverting r221297 reproduces ICE. Before r221297: ICE was caused in get_variable_section becaus