Commit Graph

195 Commits

Author SHA1 Message Date
peter
2f0ce31751 * string concat changed from function to procedure to
allow runtime optimization if the destination is the
    same as a source parameter
  * tassignmentnode now sets aktassignmentnode global that can be used
    to use the left node as a destination parameter and
    skip the assignment
  * disabled all cpu specific shortstr concat/append

git-svn-id: trunk@4770 -
2006-10-02 20:00:06 +00:00
tom_at_work
aa8d214759 * 2.0.4 fix: fixed move()/fillchar() for linux, avoiding use of dcbz which causes crashes on G5
git-svn-id: trunk@4137 -
2006-07-09 18:25:41 +00:00
Jonas Maebe
bf1e95e024 + InterlockedCompareExchange (+ changed line endings from dos to unix)
git-svn-id: trunk@3945 -
2006-06-25 18:16:32 +00:00
peter
4c065bce45 * move InterLocked functions to system unit
git-svn-id: trunk@3933 -
2006-06-25 09:26:23 +00:00
Jonas Maebe
35fe1b27cd * GetExceptionMask returned inverted result for exInvalidOp
git-svn-id: trunk@3148 -
2006-04-05 07:46:18 +00:00
Jonas Maebe
0517ce08e2 * fixed ppc fpu exception mask stuff in math unit
+ added test for this functionality

git-svn-id: trunk@3136 -
2006-04-03 11:29:37 +00:00
Jonas Maebe
76857dbca9 * set result of SetPrecisionMode()
git-svn-id: trunk@2055 -
2005-12-26 15:52:57 +00:00
Jonas Maebe
5b9f58ef73 * reverted r2037 because of braindead "out" semantics for refcounted
types

git-svn-id: trunk@2045 -
2005-12-24 01:06:05 +00:00
Jonas Maebe
84aab46550 * changed formal "var" paramters of move, movechar0 and fill* into
"out" parameters to avoid wrong "uninitialized" warnings

git-svn-id: trunk@2037 -
2005-12-23 20:59:08 +00:00
tom_at_work
174297c4cf * ppc32: added FPU configuration code in math unit (fixes tw3161)
git-svn-id: trunk@1787 -
2005-11-20 01:21:55 +00:00
tom_at_work
9e7d550455 * fixed last commit (1337) which broke some files in the repository
git-svn-id: trunk@1338 -
2005-10-08 17:23:44 +00:00
tom_at_work
f7f0f9c426 * makefile adaption to be able to cycle compiler and RTL on PowerPC64 target
* some fixes for PowerPC64 target in the code generator and the RTL
* stabs generation for PowerPC64 is okay now (untested)

git-svn-id: trunk@1337 -
2005-10-08 15:48:39 +00:00
Károly Balogh
ccc29a13f3 * added SysResetFPU, which is required for MorphOS
git-svn-id: trunk@1279 -
2005-10-03 22:49:44 +00:00
Jonas Maebe
4292e7f939 - removed obsolete FPC_MTFSB0_CORRECTED macro
git-svn-id: trunk@487 -
2005-06-24 18:34:58 +00:00
michael
3a2eaa94b1 + Removed INTERNCONSTINTF define
git-svn-id: trunk@267 -
2005-06-07 22:04:18 +00:00
michael
93ba0409be + Removed HASCOMPILERPROC define
git-svn-id: trunk@265 -
2005-06-07 21:41:02 +00:00
michael
db5d9d75aa + Removed INTERNCOPY define
git-svn-id: trunk@259 -
2005-06-07 21:11:49 +00:00
peter
4ace790492 * remove $Log
git-svn-id: trunk@231 -
2005-06-07 09:47:55 +00:00
fpc
790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00
fpc
50778076c3 initial import
git-svn-id: trunk@1 -
2005-05-16 18:37:41 +00:00
olle
381f243243 * Fixed bug in stack crawling routines for macos 2005-04-28 18:29:01 +00:00
olle
eb96e72bdc * Fixed loding of magic constant for macos 2005-04-28 18:22:34 +00:00
Jonas Maebe
8306e44f45 * mini scheduling optimization 2005-03-11 12:41:41 +00:00
Jonas Maebe
4b6030beb9 * fixed overflow detection, + some small optimizations 2005-02-19 14:16:02 +00:00
peter
e417e34496 * truncate log 2005-02-14 17:13:06 +00:00
olle
beecc57e21 * Fixed stack frame access for macos 2005-01-31 20:57:41 +00:00
Jonas Maebe
b6a6e78db1 * fixed remaining compilation problems 2004-11-21 16:14:59 +00:00
peter
4d8460ec2f * float routines all use internproc and compilerproc helpers 2004-11-21 15:35:23 +00:00
Jonas Maebe
cfeaa8aa65 * some compilation fixes for powerpc after all the internconst and
internproc changes, still crashes with internalerror(88) for ppc1
    on real2str.inc(193,39)
2004-11-20 15:49:21 +00:00
Jonas Maebe
42b6daebee * use "round to nearest" rounding mode again, just like C (affects
results of divisions as well)
2004-11-08 08:54:51 +00:00
Jonas Maebe
edbec6f2b4 * use generic round, the ppc-specific one is buggy 2004-11-07 19:09:02 +00:00
Jonas Maebe
94caa0761e * fixed redzone usage in fillchar 2004-10-24 14:43:26 +00:00
Jonas Maebe
296013d111 * fixed default rounding mode 2004-10-24 14:20:21 +00:00
Jonas Maebe
fb693982b1 + "nostackframe" modifier, because the automatic detection in the
compiler to determine that a stack frame is not needed no longer works
2004-10-19 18:51:15 +00:00
Jonas Maebe
0f26252376 + cgenmath with libc math functions. Faster than the routines in genmath
and also have full double support (exp() only has support for values in
    the single range in genmath, for example). Used in FPC_USE_LIBC is
    defined
  * several fixes to allow compilation with -dHASINLINE, but internalerrors
    because of missing support for inlining assembler code
2004-10-09 21:00:46 +00:00
olle
0c65f27b35 * bugfix 2004-08-17 13:34:15 +00:00
Jonas Maebe
38a5902dfd * fixed stricomp() and strlicomp() 2004-08-09 16:43:33 +00:00
Jonas Maebe
9696691c8c * fixed overflow checking for qword multiplication 2004-05-29 21:35:54 +00:00
Jonas Maebe
f1fcf6dc6e * use some more string routines from libc if FPC_USE_LIBC is used 2004-05-01 17:02:37 +00:00
peter
269d24955a * inclocked_longint ifdef fixed 2004-04-29 20:00:47 +00:00
marco
e546db7a23 * interlocked* changed to longints, including winapi. (which was a bug) 2004-03-05 12:17:50 +00:00
olle
4372f8ef91 * fixed global variable access in asm 2004-02-09 20:21:06 +00:00
Jonas Maebe
ec84cc8788 + assembler FPC_MUL_QWORD routine 2004-01-12 21:35:51 +00:00
Jonas Maebe
1ac45ffc2c * use volatile instead of non-volatile registers 2004-01-12 18:37:10 +00:00
Jonas Maebe
0acd012715 + ppc implemetnation of fpc_mod/div_qword (from ppc compiler writers guide) 2004-01-12 18:03:30 +00:00
Jonas Maebe
5439babeb5 + cgeneric.inc: implementations of rtl routines based on libc
* system.inc: include cgeneric.inc before powerpc.inc/i386.inc/... if
    FPC_USE_LIBC is defined
  * powerpc.inc, i386.inc: check whether the routines they implement aren't
    implemented yet in another include file (cgeneric.inc)
2004-01-11 11:10:07 +00:00
Jonas Maebe
4c7c8b9c3a * fixed mtfsb0 instruction for assembler reader/writer
* fixed initialisation of fpscr register to avoid spurious SIGPFE's
    (uses mtfsb0 instruction, so added extra define in options.pas to avoid
    requiring to start with a cross compiler)
2004-01-10 00:16:20 +00:00
Jonas Maebe
f1f2523085 * renamed "r0" usages as base register to 0 2004-01-04 20:09:36 +00:00
Jonas Maebe
14670f4065 * fixed syntax error caught by Mac OS X' as :) 2004-01-03 19:46:29 +00:00
Jonas Maebe
6bd3eccdac + fpc_cpuinit procedure to allow cpu/fpu initialisation before any unit
initialises
  + fpu exceptions for invalid operations and division by zero enabled for
    ppc
2004-01-02 17:21:50 +00:00