[Bug c/28901] -Wunused-variable ignores unused const initialised variables

2016-01-28 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28901 --- Comment #22 from Chen Gang --- (In reply to Mark Wielaard from comment #21) [...] > Although in C a static const is not really like a #define I suspect that > there are cases where they are used as such in header files. If that is the > maj

[Bug testsuite/69573] FAIL: gcc.dg/pr61053.c (test for excess errors)

2016-02-07 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69573 --- Comment #3 from Chen Gang --- Created attachment 37625 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37625&action=edit Under my Darwin mac book OS X Yosemite 10.10.4, it looks short wide alignas for long wide type will cause issue. Un

[Bug testsuite/69573] FAIL: gcc.dg/pr61053.c (test for excess errors)

2016-02-09 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69573 --- Comment #4 from Chen Gang --- (In reply to Chen Gang from comment #3) > Created attachment 37625 [details] > Under my Darwin mac book OS X Yosemite 10.10.4, it looks short wide alignas > for long wide type will cause issue. Oh, sorry, it is

[Bug testsuite/69573] FAIL: gcc.dg/pr61053.c (test for excess errors)

2016-02-09 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69573 --- Comment #5 from Chen Gang --- (In reply to Martin Sebor from comment #2) > Patch posted for review: > https://gcc.gnu.org/ml/gcc-patches/2016-01/msg02372.html I do not known why let __SIZEOF_LONG_DOUBLE__ == 12 ? I guess we need use __SIZEO

[Bug testsuite/69573] FAIL: gcc.dg/pr61053.c (test for excess errors)

2016-02-09 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69573 --- Comment #6 from Chen Gang --- (In reply to Chen Gang from comment #5) > > I guess we need use __SIZEOF_LONG_DOUBLE__ != 4 instead of. > Oh, sorry again, the above is incorrect. Under my x86_64 Darwin, for m32, __SIZEOF_LONG_DOUBLE__ is 16.

[Bug testsuite/69573] FAIL: gcc.dg/pr61053.c (test for excess errors)

2016-02-09 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69573 --- Comment #7 from Chen Gang --- Can we check __APPLE_CC__ instead of __SIZEOF_LONG_DOUBLE__ ?

[Bug c/61053] [4.9/5/6 Regression] _Alignas(long long) reduces alignment of long long

2016-02-09 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61053 --- Comment #11 from Chen Gang --- (In reply to Martin Sebor from comment #10) > On second thought, since the test isn't failing because _Alignas isn't > working but rather because the DejaGnu directive in it is wrong, it this bug > can be resolv

[Bug testsuite/69573] FAIL: gcc.dg/pr61053.c (test for excess errors)

2016-02-10 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69573 --- Comment #14 from Chen Gang --- (In reply to Martin Sebor from comment #2) > Patch posted for review: > https://gcc.gnu.org/ml/gcc-patches/2016-01/msg02372.html For your original patch, my test result is below (only compare 5 result files, be

[Bug testsuite/69573] FAIL: gcc.dg/pr61053.c (test for excess errors)

2016-02-10 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69573 --- Comment #15 from Chen Gang --- (In reply to Martin Sebor from comment #9) > I built the x86_64-apple-darwin15.3.0 cross-compiler to better understand > what the problem is but I don't see it. The cross compiler says the size > and alignment

[Bug testsuite/69573] FAIL: gcc.dg/pr61053.c (test for excess errors)

2016-02-21 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69573 --- Comment #18 from Chen Gang --- (In reply to Martin Sebor from comment #17) > Patch committed in r233564. Sorry for replying late (I am in holiday during these days, and no any x86 environments). Your patch is OK to me. But I guess, providing

[Bug target/71331] New: target-tilegx: nested-function-4.c: r10 is conflict which is both in function frame and in parameter.

2016-05-29 Thread gang.chen.5i5j at gmail dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: gang.chen.5i5j at gmail dot com Target Milestone: --- Created attachment 38591 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38591&

[Bug target/71331] target-tilegx: nested-function-4.c: r10 is conflict which is both in function frame and in parameter.

2016-05-29 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71331 --- Comment #1 from Chen Gang --- Oh, lucky enough! The diff below should be OK for this issue. diff --git a/gcc/config/tilegx/tilegx.c b/gcc/config/tilegx/tilegx.c index 06c832c..bc41105 100644 --- a/gcc/config/tilegx/tilegx.c +++ b/gcc/config

[Bug target/78222] target-tilegx: Incorrect bundle: let addli in y pipe

2016-12-10 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78222 --- Comment #1 from Chen Gang --- The root cause is: in tilegx_gen_bundle, gcc will lose prev insn when it deletes useless insns. The related insns before tilegx_gen_bbundle (it is correct). 249 (insn:TI 71 68 75 4 (set (mem:DI (reg/f:DI 10 r10

[Bug target/78222] New: target-tilegx: Incorrect bundle: let addli in y pipe

2016-11-06 Thread gang.chen.5i5j at gmail dot com
Component: target Assignee: unassigned at gcc dot gnu.org Reporter: gang.chen.5i5j at gmail dot com Target Milestone: --- Host: chroot ubuntu 15.10 under Android 5.1 x86_64 Target: tilegx Build: Just building, use the latest version 1. Version

[Bug target/65510] New: target-tic6x: unrecognizable insn with -O(1,2,3,s).

2015-03-22 Thread gang.chen.5i5j at gmail dot com
: target Assignee: unassigned at gcc dot gnu.org Reporter: gang.chen.5i5j at gmail dot com [root@localhost c6x]# cat test.i int oxu_driver_init(void) { *(volatile unsigned int *)(-1) = *(unsigned int *)(-1); } [root@localhost c6x]# /upstream/release-c6x/libexec/gcc/tic6x

[Bug target/65510] target-tic6x: unrecognizable insn with -O(1,2,3,s).

2015-03-22 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65510 Chen Gang changed: What|Removed |Added CC||gang.chen.5i5j at gmail dot com --- Comment

[Bug target/65510] target-tic6x: unrecognizable insn with -O(1,2,3,s).

2015-03-22 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65510 --- Comment #2 from Chen Gang --- For test.i: int oxu_driver_init(void) { *(volatile unsigned int *)(-1) = *(unsigned int *)(-1); } If test.i use a valid number (>= 0x10) or normal variable instead of "-1", it will be OK (the insns are almost

[Bug target/65510] target-tic6x: unrecognizable insn with -O(1,2,3,s).

2015-03-25 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65510 --- Comment #3 from Chen Gang --- (In reply to Chen Gang from comment #2) > For test.i: > > int oxu_driver_init(void) > { > *(volatile unsigned int *)(-1) = *(unsigned int *)(-1); > } > > If test.i use a valid number (>= 0x10) or normal variab

[Bug target/65510] target-tic6x: unrecognizable insn with -O(1,2,3,s).

2015-03-26 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65510 --- Comment #4 from Chen Gang --- In gcc/config/c6x/c6x.md, if we remove (clober ...) for movmisalign_store, it will be OK (just symmetric with movmisalign_load which is OK). (define_insn_and_split "movmisalign_store" [(set (match_operand

[Bug target/65510] target-tic6x: unrecognizable insn with -O(1,2,3,s).

2015-03-26 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65510 --- Comment #5 from Chen Gang --- After remove clobber (match_scratch ...), it will generate the correct assembly code (I guess it is): .file "test.i" .c6xabi_attribute Tag_ABI_array_object_alignment, 0 .c6xabi_attribut

[Bug target/65803] New: blackfin: internal compiler error: segment fault linux kernel

2015-04-18 Thread gang.chen.5i5j at gmail dot com
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: gang.chen.5i5j at gmail dot com The code: [root@localhost gcc]# cat lbalance.i struct a { short count; }; struct reiserfs_de_head { unsigned short deh_location

[Bug target/65804] New: blackfin: Not support global frame pointer with -fno-omit-frame-pointer

2015-04-18 Thread gang.chen.5i5j at gmail dot com
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: gang.chen.5i5j at gmail dot com The code: [root@localhost gcc]# cat stacktrace.i register unsigned long current_frame_pointer asm("FP"); void save_stack_

[Bug target/66620] bfin: bfin.c: (hwloop_optimize): gcc_assert (JUMP_P (insn)) fails.

2015-09-02 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66620 Chen Gang changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/65804] blackfin: Not support global frame pointer with -fno-omit-frame-pointer

2015-09-02 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65804 Chen Gang changed: What|Removed |Added CC||gang.chen.5i5j at gmail dot com --- Comment

[Bug middle-end/63510] Wrong line number in Wstrict-overflow message

2015-09-03 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63510 --- Comment #12 from Chen Gang --- The patch passes "make check". I guess, it should be OK.

[Bug target/65804] blackfin: Not support global frame pointer with -fno-omit-frame-pointer

2015-09-04 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65804 --- Comment #2 from Chen Gang --- It is about git commit "e52beba PR debug/54694". I am just consulting about it in gcc-help mailing list.

[Bug debug/54694] [4.7/4.8 Regression] internal compiler error: in dwarf2out_frame_debug_expr, at dwarf2out.c:2387

2015-09-04 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54694 Chen Gang changed: What|Removed |Added CC||gang.chen.5i5j at gmail dot com --- Comment

[Bug middle-end/63510] Wrong line number in Wstrict-overflow message

2015-10-24 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63510 --- Comment #13 from Chen Gang --- gcc version 6.0.0 20151023 (experimental) (GCC) has no this issue (I guess, the reason is that it calls gimple_simplify instead of fold_binary). For me, this issue can be closed. Thanks.

[Bug c/63326] whether a #pragma is a statement depends on the type of pragma

2015-11-21 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63326 --- Comment #14 from Chen Gang --- For gcc version 6.0.0 20151121 (experimental) (GCC), this issue is still existant. I shall try to fix it within this month (2015-11-30). Hope I can succeed.

[Bug c/63326] whether a #pragma is a statement depends on the type of pragma

2015-11-21 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63326 --- Comment #15 from Chen Gang --- For me, comment #9 is the reasonable fixing way. In real world, C/C++ programmers will/should not use #pragma in this way (use #pragma in place of the statement following an if, while, do, switch, or label). An

[Bug c/42979] OpenMP #pragma omp taskwait after a label is not permitted - should fail at compile time

2015-11-21 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42979 --- Comment #3 from Chen Gang --- For "The taskwait directive may not be used in place of the statement following an if, while, do, switch, or label." if "if, while, do, switch, or label" is just flowed with a code block which let "#pragma omp t

[Bug c/63326] whether a #pragma is a statement depends on the type of pragma

2015-11-21 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63326 --- Comment #16 from Chen Gang --- Our C++ has no this issue. For precisely saying: cc1 has the issue, but cc1plus has no the issue (if use g++ build c programs, it has no issue; if use gcc build c++ programs, it has no issue, either). But still

[Bug c/63326] whether a #pragma is a statement depends on the type of pragma

2015-11-22 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63326 --- Comment #17 from Chen Gang --- I guess the diff below should be OK, I shall give a make check test. diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c index 7b10764..257 100644 --- a/gcc/c/c-parser.c +++ b/gcc/c/c-parser.c @@ -5170,7 +5170

[Bug c/63326] whether a #pragma is a statement depends on the type of pragma

2015-11-23 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63326 --- Comment #19 from Chen Gang --- (In reply to Andrew Pinski from comment #18) > (In reply to Chen Gang from comment #17) > > I guess the diff below should be OK, I shall give a make check test. > > I would rather have the C front-end behavior

[Bug c/63326] whether a #pragma is a statement depends on the type of pragma

2015-11-23 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63326 --- Comment #20 from Chen Gang --- (In reply to Andrew Pinski from comment #18) > (In reply to Chen Gang from comment #17) > > I guess the diff below should be OK, I shall give a make check test. > > I would rather have the C front-end behavior

[Bug middle-end/63510] Wrong line number in Wstrict-overflow message

2015-01-07 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63510 --- Comment #3 from Chen Gang --- It still exists in gcc version 5.0.0 20141109 (experimental) (GCC), I shall try to solve it. Hope I can finish within 2 months.

[Bug middle-end/63510] Wrong line number in Wstrict-overflow message

2015-01-09 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63510 --- Comment #4 from Chen Gang --- For gcc version 5.0.0 20150109 (experimental) (GCC), can not find this warnings again. So at present, for me, this bug can be closed.

[Bug target/58256] gcc for h8300 internal compiler error: in maybe_record_trace_start

2015-01-11 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58256 --- Comment #13 from Chen Gang --- For gcc version 5.0.0 20150109 (experimental) (GCC), can not find this issue again. So at present, we can close it.

[Bug target/58256] gcc for h8300 internal compiler error: in maybe_record_trace_start

2015-01-11 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58256 Chen Gang changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/58400] gcc for h8300 internal compiler error: insn does not satisfy its constraints at fs/ext4/mballoc.c: In function 'mb_free_blocks':

2015-01-21 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58400 --- Comment #9 from Chen Gang --- (In reply to Jorn Wolfgang Rennecke from comment #8) > Created attachment 32285 [details] > patch made as an example how to debug gcc > > here is a patch - not regtested. > you might also consider to put the thr

[Bug target/58400] gcc for h8300 internal compiler error: insn does not satisfy its constraints at fs/ext4/mballoc.c: In function 'mb_free_blocks':

2015-02-01 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58400 Chen Gang changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/58400] gcc for h8300 internal compiler error: insn does not satisfy its constraints at fs/ext4/mballoc.c: In function 'mb_free_blocks':

2015-02-02 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58400 --- Comment #13 from Chen Gang --- (In reply to Jeffrey A. Law from comment #12) > Please leave the bug open until a fix is committed to the trunk. OK, thanks. Could any members help to commit the related patch to the trunk? I guess, I am not t

[Bug target/58400] gcc for h8300 internal compiler error: insn does not satisfy its constraints at fs/ext4/mballoc.c: In function 'mb_free_blocks':

2015-02-03 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58400 --- Comment #16 from Chen Gang --- (In reply to Jeffrey A. Law from comment #15) > The patch needs to be reviewed. It's been a long time since I thought about > the _STRICT variants of the REG_OK_ macros and how all that's supposed to > work. I

[Bug c/65117] New: xtensa: With -Os, invalid parameter c1 for reg_class_subset_p() to cause segment fault.

2015-02-19 Thread gang.chen.5i5j at gmail dot com
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gang.chen.5i5j at gmail dot com The related source file: # cat r100.i #pragma pack() struct r100_cs_cube_info { char a[17]; unsigned int width; unsigned int height

[Bug c/65117] xtensa: With -Os, invalid parameter c1 for reg_class_subset_p() to cause segment fault.

2015-02-22 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65117 --- Comment #1 from Chen Gang --- The root cause is in function 'find_reload' (at least it should be a real cause): - 'this_alternative_match_win' is not initialized before use it -- for the first looping 0, it initializes 'this_alternative_matc

[Bug target/65117] xtensa: With -Os, invalid parameter c1 for reg_class_subset_p() to cause segment fault.

2015-02-22 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65117 --- Comment #2 from Chen Gang --- Oh, sorry, one typo issue: 'this_alternative_match_win' is incorrect, it should be 'this_alternative_win'.

[Bug c/63326] whether a #pragma is a statement depends on the type of pragma

2015-11-27 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63326 --- Comment #22 from Chen Gang --- (In reply to Jakub Jelinek from comment #21) > Author: jakub > Date: Fri Nov 27 08:59:55 2015 > New Revision: 230999 > > URL: https://gcc.gnu.org/viewcvs?rev=230999&root=gcc&view=rev This way looks OK to me.

[Bug c/68917] New: test suite failure for builtin-bitops-1.c

2015-12-15 Thread gang.chen.5i5j at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: gang.chen.5i5j at gmail dot com Target Milestone: --- The latest gcc version introduce a new issue which has no issue before (e.g. for gcc_5_3_0_release branch, it has no this issue). The related file is gcc/testsuite/gcc.c-torture

[Bug testsuite/68917] test suite failure for builtin-bitops-1.c

2015-12-21 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68917 --- Comment #2 from Chen Gang --- (In reply to Bernd Edlinger from comment #1) > does something like this help? > Oh, sorry for replying late. I shall try to give a test within this month. Thanks. :-) > Index: tilegx.md > ==

[Bug testsuite/68917] test suite failure for builtin-bitops-1.c

2015-12-22 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68917 --- Comment #4 from Chen Gang --- (In reply to Bernd Edlinger from comment #3) > by the way, did you have also trouble to build the > libgcc multilib configuration or did you --disable-multilib? > this seems completely broken too... Yes, I did.

[Bug testsuite/68917] test suite failure for builtin-bitops-1.c

2015-12-25 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68917 --- Comment #5 from Chen Gang --- (In reply to Bernd Edlinger from comment #1) > does something like this help? > OK, it has effect, :-) And pass gcc testsuite. The related result is below: [root@localhost contrib]# ./compare_tests ../../buil

[Bug c/28901] -Wunused-variable ignores unused const initialised variables

2016-01-26 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28901 --- Comment #19 from Chen Gang --- I build linux kernel with allyesconfig under x86_64 for linux-next tree 20160122. I can find some related cases for BUG28901 (but they are not quite much), one case is below: CC drivers/acpi/sbshc.o In f

[Bug c/28901] -Wunused-variable ignores unused const initialised variables

2016-01-26 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28901 --- Comment #20 from Chen Gang --- (In reply to Chen Gang from comment #19) > I build linux kernel with allyesconfig under x86_64 for linux-next tree > 20160122. I can find some related cases for BUG28901 (but they are not quite > much), one case

[Bug target/65803] blackfin: internal compiler error: segment fault linux kernel

2015-06-20 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65803 --- Comment #3 from Chen Gang --- It is about JUMP_LABEL, gcc should set the JUMP_LABEL before use it. If we set the label as soon as it is generated, it can build the issue code successfully. diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bf

[Bug target/65803] blackfin: internal compiler error: segment fault linux kernel

2015-06-20 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65803 --- Comment #4 from Chen Gang --- Reference to gccint.pdf Page 268 for jump_isn, we know that JUMP_LABLE() must be defined after optimization completed. In our case, we are just doing optimization, and is almost finished, so we need set JUMP_LABL

[Bug target/66620] New: bfin: bfin.c: (hwloop_optimize): gcc_assert (JUMP_P (insn)) fails.

2015-06-21 Thread gang.chen.5i5j at gmail dot com
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: gang.chen.5i5j at gmail dot com Target Milestone: --- [root@localhost gcc]# cat lpt_commit.i struct ubifs_nnode { int iip; int level; int nbranch[4]; }; struct ubifs_nnode

[Bug target/66620] bfin: bfin.c: (hwloop_optimize): gcc_assert (JUMP_P (insn)) fails.

2015-06-26 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66620 --- Comment #2 from Chen Gang --- (In reply to Mikhail Maltsev from comment #1) > Started with r208165. OK, thanks. Really it is, it is valuable to me (it can generate the correct insns for comparing). And also if remove "-fno-reorder-blocks", i

[Bug target/66620] bfin: bfin.c: (hwloop_optimize): gcc_assert (JUMP_P (insn)) fails.

2015-06-26 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66620 --- Comment #3 from Chen Gang --- Created attachment 35862 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35862&action=edit The insns for our issue.

[Bug target/66620] bfin: bfin.c: (hwloop_optimize): gcc_assert (JUMP_P (insn)) fails.

2015-06-26 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66620 --- Comment #4 from Chen Gang --- Created attachment 35863 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35863&action=edit The correct insns without -fno-reorder-blocks

[Bug target/66620] bfin: bfin.c: (hwloop_optimize): gcc_assert (JUMP_P (insn)) fails.

2015-06-26 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66620 --- Comment #5 from Chen Gang --- Created attachment 35864 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35864&action=edit The correct insns should be with -fno-reorder-blocks

[Bug target/66620] bfin: bfin.c: (hwloop_optimize): gcc_assert (JUMP_P (insn)) fails.

2015-06-27 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66620 --- Comment #6 from Chen Gang --- 1st call in hwloop_optimize() in gcc/config/bfin/bfin.c, the input insns are correct (just the same as insns-should_be.log), but the output insns are incorrect (just the same as insns-issue.log). Then 2nd call i

[Bug target/66620] bfin: bfin.c: (hwloop_optimize): gcc_assert (JUMP_P (insn)) fails.

2015-06-28 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66620 --- Comment #7 from Chen Gang --- (In reply to Chen Gang from comment #2) > (In reply to Mikhail Maltsev from comment #1) > > Started with r208165. > > OK, thanks. Really it is, it is valuable to me (it can generate the correct > insns for compa

[Bug target/66620] bfin: bfin.c: (hwloop_optimize): gcc_assert (JUMP_P (insn)) fails.

2015-06-28 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66620 --- Comment #8 from Chen Gang --- Created attachment 35866 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35866&action=edit Full insns for without "-fno-reorder-blocks".

[Bug target/66620] bfin: bfin.c: (hwloop_optimize): gcc_assert (JUMP_P (insn)) fails.

2015-06-28 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66620 --- Comment #9 from Chen Gang --- After check the assembly result for the without "-fno-reorder-block", it is OK. It is for lsetup optimization. And for having "-fno-reorder-block", the insns are also correct, and after skip the related assert()

[Bug target/66620] bfin: bfin.c: (hwloop_optimize): gcc_assert (JUMP_P (insn)) fails.

2015-06-28 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66620 --- Comment #10 from Chen Gang --- Created attachment 35867 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35867&action=edit The result after skip the assert() for having "-fno-reorder-block"

[Bug target/66620] bfin: bfin.c: (hwloop_optimize): gcc_assert (JUMP_P (insn)) fails.

2015-06-28 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66620 --- Comment #11 from Chen Gang --- Created attachment 35868 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35868&action=edit The result when without "-fno-reorder-block"

[Bug target/66620] bfin: bfin.c: (hwloop_optimize): gcc_assert (JUMP_P (insn)) fails.

2015-06-28 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66620 --- Comment #12 from Chen Gang --- Created attachment 35869 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35869&action=edit The result before lsetup optimization The lsetup information is below: lsetup (loop_begin, loop_end) count. R0 w

[Bug middle-end/63510] Wrong line number in Wstrict-overflow message

2015-08-25 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63510 --- Comment #8 from Chen Gang --- For the latest gcc, it still has this issue, I shall try to fix it during these days (hope can fix it within this month). Thanks.

[Bug middle-end/63510] Wrong line number in Wstrict-overflow message

2015-08-27 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63510 --- Comment #9 from Chen Gang --- We need call warning_at() instead of warnings() in fold_overflow_warning() in gcc/fold-const.c. The related location parameter of warning_at() should be calculated, just like another gcc files has done: e.g. gcc

[Bug middle-end/63510] Wrong line number in Wstrict-overflow message

2015-08-28 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63510 --- Comment #10 from Chen Gang --- Need use gimple_location(stmt) for it. The stmt is the variable in gcc/tree-ssa-sccvn.c before call fold_binary(). But unlucky, it is not passed into fold_binary(), we can not get it directly. After try a tempo

[Bug middle-end/63510] Wrong line number in Wstrict-overflow message

2015-08-29 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63510 --- Comment #11 from Chen Gang --- Created attachment 36267 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36267&action=edit The related fix patch for it. The related fix patch for it: current input_location isn't precise for reporting war