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/14327] [3.3/3.4/3.5 Regression] -O0 -fdefer-pop generates wrong code


------- Additional Comments From jfran at clip dot dia dot fi dot upm dot es  2004-02-28 01:28 -------
Maybe that helps to solve the bug... the code seems to be correct if a 
dummy normal goto is placed before every the computed goto:

void bar(int *pc) {
  static const void *l[] = {&&lab0, &&end};
                                                                              
  foo(0);
  goto a0; a0: goto *l[*pc];
 lab0:
  foo(0);
  pc++;
  goto a1; a1: goto *l[*pc];
 end:
  return;
}



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14327


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