Commit Graph

54006 Commits

Author SHA1 Message Date
florian
44150f43ac * RISC-V 32 compilation fixed
+ lazarus project file for the compiler added

git-svn-id: branches/laksen/riscv_new@39511 -
2018-07-26 19:18:47 +00:00
florian
14bfcbb0da * compiled the calling convention test files by riscv64-linux-gnu-gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0
with -O3

git-svn-id: branches/laksen/riscv_new@39508 -
2018-07-24 21:11:52 +00:00
Jeppe Johansen
d32d158b4d Regenerated utils makefiles.
git-svn-id: branches/laksen/riscv_new@39496 -
2018-07-23 12:25:52 +00:00
Jeppe Johansen
49dae7e900 Fixed the elfreader, so it correctly reads the riscv type.
Set the default machineflag to rvc+rvf+rvd.

git-svn-id: branches/laksen/riscv_new@39495 -
2018-07-23 12:18:33 +00:00
Jeppe Johansen
27ab039366 Fixed _fini and _init references in cprt0.as
Add RiscV to fcl-res and fpcres.
Check that constant is a valid imm12 when doing overflow checking.

git-svn-id: branches/laksen/riscv_new@39494 -
2018-07-23 11:40:55 +00:00
Jeppe Johansen
a8c82856b1 Fixed missing maybeadjust calls after not operation.
git-svn-id: branches/laksen/riscv_new@39493 -
2018-07-23 10:20:32 +00:00
Jeppe Johansen
b98eb3daa9 Changed order in stack unravelling RTL code, to match the most common cases.
Fixed unsigned conditions for branch conditions.
Added some additional const loading cases.
Changed the temporary register used during calls because it could otherwise clash with the argument passing registers.

git-svn-id: branches/laksen/riscv_new@39492 -
2018-07-23 01:11:31 +00:00
florian
f3b7e3281a * fix int to real for non-register locations
git-svn-id: branches/laksen/riscv_new@39491 -
2018-07-22 20:48:15 +00:00
florian
f48203b66f * generate no uleb with differences for line information
git-svn-id: branches/laksen/riscv_new@39490 -
2018-07-22 19:43:47 +00:00
Jeppe Johansen
c6b27bc225 Fix shift operations on 32bit operands.
git-svn-id: branches/laksen/riscv_new@39489 -
2018-07-22 19:25:46 +00:00
florian
269069f5db * empty dummy object files
git-svn-id: branches/laksen/riscv_new@39488 -
2018-07-22 18:43:07 +00:00
Jeppe Johansen
6d9a0fdc73 Added implementation of InstructionLoadsFromReg.
Fixed spilling_get_operation_type_ref, no mem operation modifies ref registers.

git-svn-id: branches/laksen/riscv_new@39487 -
2018-07-22 18:38:07 +00:00
Jeppe Johansen
a906feb05e Fixed bug in peephole optimizer.
git-svn-id: branches/laksen/riscv_new@39486 -
2018-07-22 16:58:10 +00:00
Jeppe Johansen
2499129ba5 Pass aggregates larger than 2*XLEN as a reference.
Fix load_reg_reg and make it do proper type conversions.
Added maybeadjust to tcgrv.

git-svn-id: branches/laksen/riscv_new@39485 -
2018-07-22 14:15:29 +00:00
florian
9776ea2afe * SLTIU -> SLTU
git-svn-id: branches/laksen/riscv_new@39484 -
2018-07-22 13:55:53 +00:00
florian
32a58ba7d1 * might_have_sideeffects gets flags: if mhs_exceptions is passed, nodes which might cause an exception are considered as having a side effect
git-svn-id: branches/laksen/riscv_new@39483 -
2018-07-22 13:11:21 +00:00
florian
65a415c13e * fix assembling with official binutils
* fix compilation on 32 bit hosts
+ compile with -Sew

git-svn-id: branches/laksen/riscv_new@39482 -
2018-07-22 13:10:24 +00:00
Jeppe Johansen
054bf32f1f Add RV64GC cpu type.
Fix float loading.
Fix a number of small issues with wrong operand sizes.
Fixed concatcopy code generation.
Align jump table for case statements.

git-svn-id: branches/laksen/riscv_new@39481 -
2018-07-21 22:34:42 +00:00
Jeppe Johansen
768fc2ea4b Added overflow checking in for add instructions.
git-svn-id: branches/laksen/riscv_new@39479 -
2018-07-20 15:34:22 +00:00
Jeppe Johansen
dcb0f4fdb5 Fixed setjmp that overwrote a callee save register.
Disable relaxation for the gp load part of the prt0 code.
Fixed up some syscall definitions.

git-svn-id: branches/laksen/riscv_new@39478 -
2018-07-20 15:00:14 +00:00
Jeppe Johansen
2aaf481d89 Regenerated makefiles.
git-svn-id: branches/laksen/riscv_new@39476 -
2018-07-20 10:40:57 +00:00
Jeppe Johansen
6352328f3a Update packages with information about RiscV.
Fix g_external_wrapper, since it uses a register.
Fixed calling of gas.
Ported cprt0.

git-svn-id: branches/laksen/riscv_new@39475 -
2018-07-20 10:40:28 +00:00
Jeppe Johansen
ceb38833f2 Added RiscV32/64 target, from a cleaned up version of branches/laksen/riscv/trunk.
git-svn-id: branches/laksen/riscv_new@39474 -
2018-07-20 08:21:15 +00:00
Jeppe Johansen
2b663392f0 New branch for RiscV work.
git-svn-id: branches/laksen/riscv_new@39473 -
2018-07-20 06:41:37 +00:00
nickysn
42432d4ef3 * use sizeuinttype, instead of ptruinttype for the indexdef conversion in
tcgvecnode.pass_generate_code. This avoids a meaningless conversion to 32-bit
  (and using the cwd instruction) on i8086 in the far data memory models.

git-svn-id: trunk@39472 -
2018-07-19 15:27:14 +00:00
michael
0e6b9951ee * Fix bug ID , wrong firstrecord when a data link is destroyed and buffercount changed.
git-svn-id: trunk@39471 -
2018-07-18 12:57:00 +00:00
michael
270cf0ed06 * Fix bug , using improved patch of Laco
git-svn-id: trunk@39470 -
2018-07-18 12:23:04 +00:00
michael
3acdf481c2 * Fix bug : wrong stream length for compressed text
git-svn-id: trunk@39469 -
2018-07-18 12:10:23 +00:00
michael
2cf8a9661f * Additional fixes for strikethrough/linecap, plus example
git-svn-id: trunk@39468 -
2018-07-18 12:03:07 +00:00
michael
a113501901 * Patch from Petr-K to fix underline and strikethrough (Bug ID 34000)
git-svn-id: trunk@39467 -
2018-07-18 11:50:35 +00:00
michael
e54474dd28 * Patch from Petr-K to allow setting line cap style (bug ID 33999)
git-svn-id: trunk@39466 -
2018-07-18 11:46:10 +00:00
svenbarth
38c30a557d * deprecate MaxGListSize; it's no longer used by the generic types
git-svn-id: trunk@39465 -
2018-07-17 19:30:29 +00:00
svenbarth
2ec7a5acff * change declaration of TTypeList from a static array to a pointer to T as the static array might breach the
limits for static arrays if the used type is too large (especially on 32-bit systems); as FPC supports indexing
of typed pointers like arrays this should be mostly backwards compatible

git-svn-id: trunk@39464 -
2018-07-17 19:30:26 +00:00
Mattias Gaertner
4976f55aa4 pastojs: version 0.9.32
git-svn-id: trunk@39463 -
2018-07-17 07:17:05 +00:00
Mattias Gaertner
acea898d9c pastojs: fixed mem leak
git-svn-id: trunk@39462 -
2018-07-17 07:10:15 +00:00
Mattias Gaertner
4b973bf22d fcl-passrc: fixed double free
git-svn-id: trunk@39461 -
2018-07-17 07:10:04 +00:00
Mattias Gaertner
61c36a008a fcl-passrc: fixed mem leaks
git-svn-id: trunk@39460 -
2018-07-17 05:33:11 +00:00
Mattias Gaertner
14af86bd1c pastojs: fixed mem leaks
git-svn-id: trunk@39459 -
2018-07-17 04:46:35 +00:00
Mattias Gaertner
1a9c7021e4 pastojs: fixed mem leaks
git-svn-id: trunk@39458 -
2018-07-16 21:48:43 +00:00
Mattias Gaertner
013e75408a fcl-passrc: fixed mem leaks and double releases
git-svn-id: trunk@39456 -
2018-07-16 15:51:35 +00:00
Mattias Gaertner
6d9cac3d1c pastojs: clean up
git-svn-id: trunk@39454 -
2018-07-15 22:27:49 +00:00
Mattias Gaertner
127c3eccb8 fcl-passrc: fixed some mem leaks
git-svn-id: trunk@39453 -
2018-07-15 22:27:23 +00:00
michael
53e10c99d4 * Fix bug , fix for correct string definition in unicodestringreplace
git-svn-id: trunk@39452 -
2018-07-14 16:27:52 +00:00
michael
b5aa9fd20a * Remove BOM marker, it confuses fpdoc
git-svn-id: trunk@39451 -
2018-07-14 16:22:50 +00:00
michael
b417ab799d * Simplifications and slight enhancements, as suggested by AlexeyT (bug ID 33981)
git-svn-id: trunk@39450 -
2018-07-14 08:26:46 +00:00
michael
f6867cbd63 * Patch by Cyrax to allow creating map file on linux (bug ID 33982)
git-svn-id: trunk@39449 -
2018-07-14 08:12:38 +00:00
florian
6a150cdd75 * disable optimizations for proper warning
git-svn-id: trunk@39448 -
2018-07-13 21:00:34 +00:00
florian
93c5eae528 * accept dereferences in generics definitions, resolves properly
git-svn-id: trunk@39447 -
2018-07-13 21:00:33 +00:00
florian
52846df241 * fixed condition in getbestreal
git-svn-id: trunk@39446 -
2018-07-13 19:53:47 +00:00
michael
7d0fc1cbc9 * Test bug , change button to menu item
git-svn-id: trunk@39445 -
2018-07-13 07:31:20 +00:00