https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81874
--- Comment #6 from zwzhangwen.zhang at huawei dot com ---
I think this bug exists and hides.The reason is that trunc_int_for_mode will
check newval replacing oldval with CONST_INT in combine pass, but for
0x8000,the result of
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: zwzhangwen.zhang at huawei dot com
Target Milestone: ---
mips-sde-elf-gcc -O2 -w test.i -S
test.i: In function 'func_1':
test.i:2438:1: internal compiler error: in do
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: zwzhangwen.zhang at huawei dot com
Target Milestone: ---
When compiling union var using -O0/-O2, elf print different results.
Command line:
mips-linux-gnueabi-gcc -w -march=34kc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81874
--- Comment #4 from zwzhangwen.zhang at huawei dot com ---
I have checked it can be hidden or fixed in gcc.gnu.org/svn/gcc/trunk@239421
But it fixed PR71654 and it affected comparision expr?
oduct: gcc
Version: 6.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: zwzhangwen.zhang at huawei dot com
Target Milestone: ---
Created attachment 41355
--> https:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81874
--- Comment #5 from zwzhangwen.zhang at huawei dot com ---
(In reply to zwzhangwen.zhang from comment #4)
> I have checked it can be hidden or fixed in gcc.gnu.org/svn/gcc/trunk@239421
> But it fixed PR71654 and it affected comparisio
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82820
--- Comment #2 from zwzhangwen.zhang at huawei dot com ---
Hi,
I have a testcase for example:
typedef struct structA{
int a;
int b;
int c;
}A;
typedef struct structB{
int iData;
A a;
}B;
int test(A aa)
{
aa.a = 123
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: zwzhangwen.zhang at huawei dot com
Target Milestone: ---