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/65048] New: [5 Regression] ICE in add_phi_args_after_copy_edge, at tree-cfg.c on arm-linux-gnueabihf


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

            Bug ID: 65048
           Summary: [5 Regression] ICE in add_phi_args_after_copy_edge, at
                    tree-cfg.c on arm-linux-gnueabihf
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org

seen with 20150205 on arm-linux-gnueabihf, configured with --with-arch=armv7-a
--with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb

$ gcc -c -g -O3 -Wno-implicit-int -Wno-implicit-function-declaration
translate.i 
translate.i:1:1: warning: data definition has no type or storage class
 a, b, c, d;
 ^
translate.i: In function 'fn2':
translate.i:11:1: internal compiler error: in add_phi_args_after_copy_edge, at
tree-cfg.c:5913
 fn2() {
 ^
Please submit a full bug report,
with preprocessed source if appropriate.

$ cat translate.i 
a, b, c, d;
fn1(p1) {
  switch (p1) {
  case 'A':
    return 'T';
  case 'U':
    return 'A';
  }
}

fn2() {
  for (;;) {
    b = fn1();
    a = fn1();
    fn3(b, a);
  }
}

fn3(p1, p2) {
  switch (c)
  case 'U':
  switch (p1) {
  default:
    fn4();
  case 'G':
    switch (p2)
    case 'A':
    d = 7;
  }
}


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