[Bug c/11270] [tree-ssa] Strange warning with -Wunreachable-code.

pinskia at physics dot uc dot edu gcc-bugzilla@gcc.gnu.org
Fri Jun 20 19:12:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From pinskia at physics dot uc dot edu  2003-06-20 19:09 -------
Created an attachment (id=4258)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4258&action=view)
rtl on powerpc-apple-darwin6.6

The warning is in a difference place for powerpc-apple-darwin6.6:
pr11270.c: In function `foo':
pr11270.c:5: warning: will never be executed

The rtl loos like (on powerpc-apple-darwin6.6 with tree-ssa branch on
20030617):
  r118 = i
  r119 = r118 == 0
  if (r119==0) jmp label_ref10;
  jmp label_ref16
label_ref10:
  jmp label_ref21
label_ref16:
label_ref21:


Looks like a back-end bug rather than one caused by the trees.



More information about the Gcc-bugs mailing list