I saw a big commit merging jvmbackend branch into the main branch. Is it stable already? I currently have both from svn, if it's already stable I'm planning on deleting the jvmbackend only.
Mailing lists / fpc-pascal / 2012-06
jvmbackend merge
4 messages · 3 people · –
- Lleledumbo 2
- JJonas Maebe 1
- SSven Barth 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
leledumbo wroteI 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
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;leledumbo wrote 6 lines
You currently need to compile with "ALLOW_WARNINGS=1" when compiling the JVM compiler.
Regards,
Sven
