This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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]

Re: Patch: -Wunreachable-bytecode


Tom Tromey wrote:
"Per" == Per Bothner <per@bothner.com> writes:
Per> Why do we want to supress it?  Is it unreachable bytecode in
Per> .class files generated by gcj?

Yes.  The appended file causes gcj to emit an unused instruction.
The "unreachable bytecode" contains a single goto.  I'm guessing this
is a side effect of your recent goto-to-goto optimization.  I.e.

 47: goto 52
 50: iconst_0
 51: ireturn
 52: goto 69

got optimized to:

 47: goto 69
 50: iconst_0
 51: ireturn
 52: goto 69

and now instruction 52 is unreachable.

One solution may be reference counting the blocks.
--
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/


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