Commit Graph

45789 Commits

Author SHA1 Message Date
florian
f95d5e0de6 + support 8 locations in gen_load_cgpara_loc
git-svn-id: trunk@30534 -
2015-04-10 20:33:11 +00:00
florian
6c19c18bc9 + support 8 locations in splitparaloc64
git-svn-id: trunk@30533 -
2015-04-10 20:32:22 +00:00
lacak
b5bac61409 fcl-db: sdfdataset: fix seting null value to Field, Buffer=nil
git-svn-id: trunk@30532 -
2015-04-10 07:04:53 +00:00
lacak
c8f610282d fcl-db: sdfdataset: fix seting/geting calculated fields. Offset is calculated using DataSize not Size and they should be stored in internal representation used by TField
git-svn-id: trunk@30531 -
2015-04-10 06:51:40 +00:00
lacak
2afe3138ff fcl-db: sdfdataset: fix Append vs. Insert + test
git-svn-id: trunk@30530 -
2015-04-10 06:11:23 +00:00
lacak
e846457d38 fcl-db: sdfdataset: fix RecordCount for closed dataset with headers + test
git-svn-id: trunk@30529 -
2015-04-10 05:33:13 +00:00
nickysn
3dd914a7b9 + write the proper external symbol index in the omf FIXUPP records. WLink no
longer crashes when processing our obj files :)

git-svn-id: trunk@30528 -
2015-04-09 23:33:22 +00:00
nickysn
d8f04418be + write EXTDEF records in the omf output file
git-svn-id: trunk@30527 -
2015-04-09 23:27:45 +00:00
nickysn
fd9e0d7266 * i8086 binary writer fixes for asm codes 0320..0322
git-svn-id: trunk@30526 -
2015-04-09 23:10:47 +00:00
nickysn
db5276af61 * i8086 binary writer fixes for asm codes 0300..0302
git-svn-id: trunk@30525 -
2015-04-09 22:56:47 +00:00
nickysn
0aa8e9d829 + i8086 fixes in the binary writer for asm codes 0310 and 0311
git-svn-id: trunk@30524 -
2015-04-09 22:47:21 +00:00
nickysn
8597208ed9 * fixed emitting a 66h prefix for push/pop of segment registers on i8086 in the internal asm writer
git-svn-id: trunk@30523 -
2015-04-09 22:01:24 +00:00
florian
a4c7103033 * remove useless mov instructions
git-svn-id: trunk@30522 -
2015-04-09 21:57:02 +00:00
nickysn
ff20a3c7bc + support 16-bit addresses for codes 36..38 in the internal asm writer on i8086
git-svn-id: trunk@30521 -
2015-04-09 21:16:22 +00:00
florian
ef2e2c5033 * assign registers for parameters correctly, resolves #27804
git-svn-id: trunk@30520 -
2015-04-09 20:39:18 +00:00
florian
6a032bee1b * improved code generation for a_load_const_reg and a_op_const_reg
git-svn-id: trunk@30519 -
2015-04-09 20:38:19 +00:00
florian
061a1aacf3 * named class properly
git-svn-id: trunk@30518 -
2015-04-09 20:36:47 +00:00
florian
9af36c2257 * several fixes for spilling_get_operation_type
git-svn-id: trunk@30517 -
2015-04-09 20:33:40 +00:00
nickysn
8a831f4c7f * always clear segments and groups in the beginning of TOmfObjOutput.writeData, because the same objects is used for creating multiple object files
git-svn-id: trunk@30516 -
2015-04-09 15:42:29 +00:00
nickysn
f66d8cfb7f * create normal object files, instead of using the internal "ar" writer in TInternalAssembler.writetreesmart in case the af_needar flag is set on an internal assembler
git-svn-id: trunk@30515 -
2015-04-09 14:50:22 +00:00
nickysn
7ecb7f83e9 + create omf fixups for external symbols (external symbol index not set yet)
git-svn-id: trunk@30514 -
2015-04-09 13:56:55 +00:00
lacak
5ba4a65fe3 fcl-db: sdfdataset: better RecNo testing.
git-svn-id: trunk@30513 -
2015-04-09 13:56:53 +00:00
nickysn
e1ae2d9387 + create a symbol relocation for external symbols in TOmfObjData.writeReloc
git-svn-id: trunk@30512 -
2015-04-09 13:48:56 +00:00
nickysn
fb234e2149 + check record type in TOmfRecord_COMENT.DecodeFrom
git-svn-id: trunk@30511 -
2015-04-09 13:08:45 +00:00
nickysn
713f12f3f3 + implemented TOmfRecord_GRPDEF.DecodeFrom
git-svn-id: trunk@30510 -
2015-04-09 12:45:47 +00:00
lacak
ab689edadb fcl-db: sdfdataset: SetRecNo should take into account FDataOffset (aka FirstLineAsSchema). Revealed by TestSetRecNo.
git-svn-id: trunk@30509 -
2015-04-09 11:38:40 +00:00
lacak
db4d95be64 fcl-db: sdfdataset: InternalPost should call inherited InternalPost, not UpdateRecord
git-svn-id: trunk@30508 -
2015-04-09 09:05:00 +00:00
lacak
befb6ae1ea fcl-db: sdfdataset: fix false negative test TestInsertOnEmptyDataset. By signal in previous test, that test dataset is changed, so it can be restored to original state after test completion (ResetNDatasets).
git-svn-id: trunk@30507 -
2015-04-09 08:25:53 +00:00
Jonas Maebe
8fc562a2f8 * fixed def used for saving the result of fpc_setjmp() after r30497, fixes
cycle for x86-86 (mantis #27812)

git-svn-id: trunk@30506 -
2015-04-09 07:36:45 +00:00
lacak
9568f728f7 fcl-db: sdfdataset: implement BookmarkValid; revealed by test TestBookmarkValid
git-svn-id: trunk@30505 -
2015-04-09 07:17:23 +00:00
lacak
8098612ffc fcl-db: sdfdataset: remove unused Bookmark offset variable
git-svn-id: trunk@30504 -
2015-04-09 07:06:09 +00:00
lacak
0dd93f2384 fcl-db: sdfdataset: RecNo should return nonzero value for State=dsEdit if there is valid record; Compatible with other datasets + test
git-svn-id: trunk@30503 -
2015-04-09 05:16:37 +00:00
Jonas Maebe
9079227c56 * don't give an internalerror when trying to prefetch a regvar or even
something without a location at all; it's a hint/optional operation,
    so if there's nothing to prefetch just don't do anything
    (mantis #27811)

git-svn-id: trunk@30502 -
2015-04-08 20:35:13 +00:00
Jonas Maebe
a8db5e3dfb * fixed alignment of widestring on win64 after llvm branch merge (should use
packrecords 4) (mantis #27806)

git-svn-id: trunk@30501 -
2015-04-08 19:08:43 +00:00
Jonas Maebe
6391794958 * fixed -Oodfa warnings
git-svn-id: trunk@30500 -
2015-04-08 19:08:39 +00:00
Jonas Maebe
af61923dc3 * don't write parameter attributes in procvardefs
git-svn-id: trunk@30499 -
2015-04-08 19:08:36 +00:00
Jonas Maebe
a8cefa8fcd - removed aggas.pas leftovers
git-svn-id: trunk@30498 -
2015-04-08 19:08:33 +00:00
Jonas Maebe
a674804869 * made fpc_setjmp() code generic and fixed it for llvm
git-svn-id: trunk@30497 -
2015-04-08 19:08:30 +00:00
nickysn
23b95cc291 + added classes for writing EXTDEF omf records
git-svn-id: trunk@30496 -
2015-04-08 14:13:35 +00:00
nickysn
470fb65e80 + implemented aasmcpu.process_ea for i8086
git-svn-id: trunk@30495 -
2015-04-08 12:54:09 +00:00
lacak
b8f8e61957 fcl-db: sqldb: keep in synchro Database/Transaction when changing Database/Transaction, but only when NEW Database.Transaction or Transaction.Database is assigned. After discussion in DB-Core modifies rev. 30483. Bug #27805
git-svn-id: trunk@30494 -
2015-04-08 08:06:59 +00:00
lacak
63caee1cae fcl-db: sqldb: cosmetic
git-svn-id: trunk@30493 -
2015-04-08 06:10:06 +00:00
nickysn
76da1db832 + write all the public symbols in a PUBDEF record in the omf obj writer
git-svn-id: trunk@30492 -
2015-04-07 23:03:48 +00:00
nickysn
fb45d5e11b * fixed some off-by-1 errors in TOmfRecord_PUBDEF.EncodeTo
git-svn-id: trunk@30491 -
2015-04-07 23:02:32 +00:00
nickysn
c4a8f22bc9 + added classes for writing PUBDEF omf records
git-svn-id: trunk@30490 -
2015-04-07 22:18:46 +00:00
nickysn
35e008e44b * TOmfRelocation modified to build the omf FIXUP subrecord later, during
writeData, when the ObjSection indexes are available; now we fill the proper
  section/segment indexes, instead of hardcoded values.

git-svn-id: trunk@30489 -
2015-04-07 20:40:40 +00:00
nickysn
9e701454c6 + add group "dgroup", this time built from the ObjSectionList, instead of hardcoded
git-svn-id: trunk@30488 -
2015-04-07 19:53:08 +00:00
Jonas Maebe
67be73afa5 * fixed type of size parameter of strn(case)cmp
git-svn-id: trunk@30487 -
2015-04-07 19:35:28 +00:00
Jonas Maebe
101fc3d4ec * translate formaldef into "i8*", as intended, instead of "i8**" due to
the fact that this type is always passed by reference

git-svn-id: trunk@30486 -
2015-04-07 19:35:22 +00:00
Jonas Maebe
f94f9f44e4 * convert all arguments to integers in case of comparisons of pointers with
constants on llvm, as you can only compare with "null" in that case
  * convert all arguments to integers in case of pointer subtractions,
    as pointer subtractions are not supported by llvm

git-svn-id: trunk@30485 -
2015-04-07 19:35:08 +00:00