This is the mail archive of the gcc-bugs@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]

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


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66620

            Bug ID: 66620
           Summary: bfin: bfin.c: (hwloop_optimize): gcc_assert (JUMP_P
                    (insn)) fails.
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          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 *next_pnode_to_dirty(struct ubifs_nnode *nnode)
{
 int iip;

 while (nnode->level > 1) {
  for (iip = 0; iip < 4; iip++) {
   if (nnode->nbranch[iip])
    break;
  }
  nnode = nnode + iip;
 }

 for (iip = 0; iip < 4; iip++)
  if (nnode->nbranch[iip])
   break;

 return nnode + iip;
}


[root@localhost gcc]# /upstream/build-gcc-blackfin/gcc/cc1 -Os
-fno-reorder-blocks lpt_commit.i
 next_pnode_to_dirty
Analyzing compilation unit
Performing interprocedural optimizations
 <*free_lang_data> <visibility> <build_ssa_passes> <opt_local_passes>
<free-inline-summary> <emutls> <whole-program> <profile_estimate> <icf>
<devirt> <cp> <inline> <pure-const> <static-var> <single-use>
<comdats>Assembling functions:
 next_pnode_to_dirty
lpt_commit.i: In function 'next_pnode_to_dirty':
lpt_commit.i:24:1: internal compiler error: in hwloop_optimize, at
config/bfin/bfin.c:3523
 }
 ^
0xd9c8eb hwloop_optimize
        ../../gcc/gcc/config/bfin/bfin.c:3523
0xe3b0cb optimize_loop
        ../../gcc/gcc/hw-doloop.c:610
0xe3cb1e reorg_loops(bool, hw_doloop_hooks*)
        ../../gcc/gcc/hw-doloop.c:674
0xda055f bfin_reorg_loops
        ../../gcc/gcc/config/bfin/bfin.c:3908
0xda055f bfin_reorg
        ../../gcc/gcc/config/bfin/bfin.c:4650
0xa3a169 execute
        ../../gcc/gcc/reorg.c:4030
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


[root@localhost gcc]# /upstream/build-gcc-blackfin/gcc/xgcc -v
Using built-in specs.
COLLECT_GCC=/upstream/build-gcc-blackfin/gcc/xgcc
Target: bfin-gchen-elf
Configured with: ../gcc/configure --target=bfin-gchen-elf --disable-nls
--disable-threads --disable-shared --disable-libssp --disable-libquadmath
--disable-libgomp --disable-libatomic --prefix=/upstream/release-blackfin
--without-headers --enable-languages=c,lto
Thread model: single
gcc version 6.0.0 20150620 (experimental) (GCC)


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