Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2012-06

jvmbackend merge

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jonas Maebe
to leledumbo
leledumbo wrote
I saw a big commit merging jvmbackend branch into the main branch. Is it stable already?

It's as stable as the jvmbackend branch was (with even already some extra fixes in the mean time), so there's no problem with deleting your checkout of the jvmbackend branch.

Jonas

Reply by email

leledumbo
to Jonas Maebe

I tried building the compiler, it passes but I have to do some changes. The make process fails after compiling the compiler ended with some warnings regarding constructing a class with abstract method in compiler/jvm/hlcgcpu.pas. The compiler seems to return exit code 1 on warnings and that's the cause of the failure. For the workaround, I've added these methods (with empty body implementation) to thlcgjvm class:

procedure a_bit_scan_reg_reg(list: TAsmList; reverse: boolean; size: tdef;
src, dst: tregister); override;
      procedure a_loadmm_loc_reg(list: TAsmList; fromsize, tosize: tcgsize;
const loc: tlocation; const reg: tregister;shuffle : pmmshuffle);override;
      procedure g_copyvariant(list : TAsmList;const source,dest :
treference;vardef:tvariantdef);override;
      procedure g_overflowcheck(list: TAsmList; const Loc:tlocation;
def:tdef); override;
      procedure g_overflowCheck_loc(List:TAsmList;const
Loc:TLocation;def:TDef;var ovloc : tlocation);override;
      procedure g_stackpointer_alloc(list : TAsmList;size : longint);
override;
      procedure g_intf_wrapper(list: TAsmList; procdef: tprocdef; const
labelname: string; ioffset: longint);override;
      procedure g_adjust_self_value(list:TAsmList;procdef: tprocdef;ioffset:
aint);override;
      procedure g_local_unwind(list: TAsmList; l: TAsmLabel);override;
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/jvmbackend-merge-tp5709941p5709947.html Sent from the Free Pascal - General mailing list .

Reply by email

Sven Barth
to leledumbo
leledumbo wrote 6 lines
I tried building the compiler, it passes but I have to do some changes. The make process fails after compiling the compiler ended with some warnings regarding constructing a class with abstract method in compiler/jvm/hlcgcpu.pas. The compiler seems to return exit code 1 on warnings and that's the cause of the failure. For the workaround, I've added these methods (with empty body implementation) to thlcgjvm class:

You currently need to compile with "ALLOW_WARNINGS=1" when compiling the JVM compiler.

Regards,
Sven

Reply by email