Commit Graph

43222 Commits

Author SHA1 Message Date
marco
b7aff4eae0 * flush output on halt. Patch by Mattias mantis #26225
git-svn-id: trunk@27835 -
2014-05-31 15:06:42 +00:00
marco
0a0739b916 * improved winexec comment, updated copyright year and add minor comment to gettickcount64
Mantis #26238

git-svn-id: trunk@27834 -
2014-05-31 14:47:31 +00:00
sergei
a8bc2085e8 - Delete strpas.inc files, no longer used, their contents has been merged into corresponding $(CPU).inc.
git-svn-id: trunk@27833 -
2014-05-31 00:49:40 +00:00
sergei
e5f6f9c3a1 - powerpc and powerpc64: cleaned out code corresponding to FPC_STRTOSHORTSTRINGPROC not defined (obsolete and removed from other targets long ago). Also merged strpas.inc files into powerpc*.inc, because by now they are included only once and therefore don't need to be separate files.
git-svn-id: trunk@27832 -
2014-05-31 00:45:21 +00:00
sergei
a94187c79b - ARM: cleaned out code corresponding to FPC_STRTOSHORTSTRINGPROC not defined (obsolete and removed from other targets long ago).
git-svn-id: trunk@27831 -
2014-05-31 00:38:01 +00:00
reiniero
e8a3715afd * fcl-db: limit blob memory usage when using unidirectional datasets. Patch by Laco. Issue #24509
git-svn-id: trunk@27830 -
2014-05-30 11:07:53 +00:00
Jonas Maebe
19c310f5d3 * fixed unit name
git-svn-id: trunk@27829 -
2014-05-30 07:25:04 +00:00
Károly Balogh
f3bbad26c3 m68k: use MOVEA without size to load values to address regs. use a_op_const_reg in a_op_const_ref for smarter const loading when necessary
git-svn-id: trunk@27828 -
2014-05-30 05:29:22 +00:00
nickysn
47a7a9835a * added hack to support stack exceeding 32kb in size in the i8086 far data
memory models

git-svn-id: trunk@27827 -
2014-05-29 17:07:01 +00:00
svenbarth
2c6d3f1428 Read the deref of the fieldvarsym into the correct variable. I wonder how this ever went past the test suite O.o
symsym.pas, tstaticvarsym.ppuload:
  * read the deref of the fieldvarsym into fieldvarsymderef, not defaultconstsymderef

git-svn-id: trunk@27826 -
2014-05-29 16:24:47 +00:00
nickysn
e9cb275f66 * put the i8086-msdos stack segment in a separate object file
git-svn-id: trunk@27825 -
2014-05-29 16:04:15 +00:00
nickysn
d4565aeec2 * in i8086 far data memory models add reference to the beginning of stack from
the startup code, so the object module, containing the stack segment doesn't
  get smartlinked away

git-svn-id: trunk@27824 -
2014-05-29 14:57:48 +00:00
Jonas Maebe
03ef4b6477 + test for mantis #26226 (already works with FPC 2.7.1)
git-svn-id: trunk@27823 -
2014-05-29 12:19:27 +00:00
nickysn
daf71e6d88 * fixed multiplication by 64-bit constants on x86_64, mantis #26230
git-svn-id: trunk@27822 -
2014-05-28 22:52:08 +00:00
Károly Balogh
2936335f68 removed silly ancient writeln debug from me...
git-svn-id: trunk@27821 -
2014-05-28 18:36:58 +00:00
nickysn
3cc8ff11e3 + generate the stack segment for i8086 far data memory models from within fpc
itself (instead of having a fixed 16k stack in the startup code). This allows
  setting the stack size in these models with the -Cs option.

git-svn-id: trunk@27820 -
2014-05-27 23:29:50 +00:00
sergei
3c1368903f * Updated header: this file is in cp866 encoding.
git-svn-id: trunk@27819 -
2014-05-27 22:45:04 +00:00
sergei
743326dc70 * abs(): when translated to generic fpc_abs_real() helper, typecast result back to original precision, similar to how it is done for sqr and sqrt. Fixes compilation on m68k after r27808 (m86k looks like the only target still needing this generic handling).
git-svn-id: trunk@27818 -
2014-05-25 11:55:55 +00:00
Károly Balogh
28323135f8 m68k: minor optimizations to g_proc_exit() - use LEA for stackpointer math which is better than ADDing large constants, also only modify the SP reg once
git-svn-id: trunk@27817 -
2014-05-25 01:34:00 +00:00
nickysn
02dff17ae0 * taddrnode: fixed getting the address of nested procs in tp mode in i8086 far
data memory models

git-svn-id: trunk@27816 -
2014-05-23 22:38:07 +00:00
sergei
37625211f5 * Fixed sqrt procedure selection on arm-wince after r27809.
git-svn-id: trunk@27815 -
2014-05-23 21:58:23 +00:00
nickysn
cb05907e18 * fixed the global function to nested procvar conversion in the i8086 far data
memory models

git-svn-id: trunk@27814 -
2014-05-23 20:59:07 +00:00
marco
46486a9e63 * add comments wrt TIFF magic numbers, mantis #26210
git-svn-id: trunk@27813 -
2014-05-23 18:46:55 +00:00
nickysn
24fcac9f87 + added support for nested procvars in the i8086 far data memory models
git-svn-id: trunk@27812 -
2014-05-22 23:44:09 +00:00
yury
f526f39f8f * pas2jni: Always specify unit prefix for types in the generated bridge code.
git-svn-id: trunk@27811 -
2014-05-22 13:47:46 +00:00
sergei
1c7a5d5adc * x86: fix spilling of sqrtss and sqrtsd instructions, they cannot have memory as destination.
git-svn-id: trunk@27810 -
2014-05-22 07:19:13 +00:00
sergei
22e099d000 * sqrt(real): for targets with emulated floating point, invoke float64_sqrt or float32_sqrt from softfpu code. Testing on ARM CPU shows that float64_sqrt executes about twice faster and offers better accuracy than fpc_sqrt_real from genmath.inc.
* softfpu.pp: changed float64_sqrt into a function, so it is consistent with other compiler-invoked routines.

git-svn-id: trunk@27809 -
2014-05-21 15:07:13 +00:00
sergei
fc5f45f65c * sqr(real) and sqrt(real): remove typeconv node inserted by initial call processing (see explanation in comments), allowing these functions to be evaluated using precision of argument. In particular, sqrt(single) and sqrt(double) now emit 'sqrtss' and 'sqrtsd' instructions on x86 targets with -Cfsse3. Non-x86 targets already have the necessary support in code generators.
* abs(real): handle the same way as sqrt and sqr, i.e. without casting to bestreal and back.

git-svn-id: trunk@27808 -
2014-05-21 14:53:47 +00:00
nickysn
feb840b47f * support reg=NR_NO in thlcgcpu.reference_reset_base on i8086. This fixes test
webtbs/tw26162.pp in the i8086 far data memory models.

git-svn-id: trunk@27807 -
2014-05-21 13:26:02 +00:00
lacak
590f5791d5 fcl-db: tests: cosmetic
git-svn-id: trunk@27806 -
2014-05-20 07:06:03 +00:00
nickysn
683478f00c + added a proper far pointer inc/dec implementation (operating only on the offset,
without touching the segment)

git-svn-id: trunk@27805 -
2014-05-19 16:24:25 +00:00
Tomas Hajny
cedf009d3c * fix for SIGSEGV in Exec without command line parameters revealed in discussion for #26160
git-svn-id: trunk@27804 -
2014-05-18 20:37:40 +00:00
Tomas Hajny
bb0a670e9e * fix for bug #26160
git-svn-id: trunk@27803 -
2014-05-18 20:02:10 +00:00
michael
6fcff07e50 * SizeInt -> SizeUInt for strPLCopy (Bug ID 26156)
git-svn-id: trunk@27802 -
2014-05-18 07:35:33 +00:00
michael
046b7626dd * Reworked patch from Werner Pamler (bug ID 26168) to add support for periods
git-svn-id: trunk@27801 -
2014-05-18 07:24:59 +00:00
michael
036c208426 * Patch from Laco to improve checkequals for floats (bug ID 26172)
git-svn-id: trunk@27800 -
2014-05-18 07:21:04 +00:00
Tomas Hajny
9b7fdfa8b0 * add possibility of overriding the disabled VESA driver using /VESA
git-svn-id: trunk@27799 -
2014-05-17 16:31:51 +00:00
Tomas Hajny
9f56c6ec11 * disable the VESA features by default if running under MS WinNT and above
git-svn-id: trunk@27798 -
2014-05-17 16:30:52 +00:00
sergei
7e1c370c17 * Write RTTI for function arguments as children of function RTTI, resolves #24540,#25002,#25128 (bugs are basically duplicate, so adding only first of them to the testsuite).
git-svn-id: trunk@27797 -
2014-05-16 20:09:32 +00:00
michael
9916cd839b * Changed SaveAs to SaveToFile
git-svn-id: trunk@27796 -
2014-05-16 06:39:23 +00:00
sergei
3eec9996bc * Moved method check_hints from tmodule to tused_unit and modified it so warning messages are output with position info from associated unitsym. Resolves #25057.
git-svn-id: trunk@27795 -
2014-05-15 21:16:36 +00:00
mazen
141ead4e62 fcl-xml: Added new property to XmlConf to allow opening file in read only mode. Added also a save as method.
git-svn-id: trunk@27794 -
2014-05-15 19:23:44 +00:00
sergei
2f8a1706e6 * x86_64-*bsd: cleaned out handwritten assembler threadvar access from syscall code.
git-svn-id: trunk@27793 -
2014-05-15 16:29:50 +00:00
Jonas Maebe
5e76203bc3 * don't hard-code size of linebuf entries
* use reallocmem when growing linebuf instead of getmem+move

git-svn-id: trunk@27792 -
2014-05-15 09:08:05 +00:00
mazen
656ba70fd8 fcl-sound: Allow opening audio file with fpwavereader even if it is being read by an other process.
git-svn-id: trunk@27791 -
2014-05-14 20:51:10 +00:00
michael
3a3e64e6df * Allow creating a custom version of the event log class
git-svn-id: trunk@27790 -
2014-05-14 18:10:10 +00:00
florian
417d444376 * do not crash with an internal error if an indexed access is done on a constant pointer node
git-svn-id: trunk@27789 -
2014-05-14 17:35:09 +00:00
pierre
cda643cea4 add run time option -novesa for go32v2 os target
git-svn-id: trunk@27787 -
2014-05-14 13:44:11 +00:00
Jonas Maebe
ee2242c407 * fixed Haiku compilation after r26426, always uses libc (patch by Olivier
Coursiere, mantis #26150)

git-svn-id: trunk@27786 -
2014-05-14 13:06:34 +00:00
Jonas Maebe
3e9c9f2f90 * re-enable/fix Haiku gpm support after r26372 (patch by Olivier Coursiere,
mantis #26149)

git-svn-id: trunk@27785 -
2014-05-14 13:06:29 +00:00