Commit Graph

30758 Commits

Author SHA1 Message Date
marco
47e90bbdf3 * typo corrected as per #14578
git-svn-id: trunk@13707 -
2009-09-13 20:20:02 +00:00
Jonas Maebe
dac2903107 * prefetch next items in TLinkedList.clear, removes most l2 cache misses
git-svn-id: trunk@13706 -
2009-09-13 15:30:53 +00:00
marco
abda06eb20 * enabled gmp for Linux,FreeBSD and Darwin (Mischi tested)
git-svn-id: trunk@13704 -
2009-09-13 14:00:06 +00:00
Jonas Maebe
92ff07deaf * several fixes by Pierre Pede (parts of his patch to mantis #12492)
o fixed gprof under linux/i386
    o fixed pic-compilation of the linux/i386 rtl
    o initialisation of linux shared libraries is now possible with pic-code

git-svn-id: trunk@13703 -
2009-09-12 21:57:41 +00:00
Jonas Maebe
cc5aeb09de * fixed handling the result value of functions where the result type is
forced to something else by the compiler (internal rtl functions etc),
    necessary for the objc branch
  * fixed adding all used function result registers to the list of
    registers that may need to be saved before a function call

git-svn-id: trunk@13695 -
2009-09-12 12:21:34 +00:00
marco
66240c1204 * fixes that I though were committed
git-svn-id: trunk@13694 -
2009-09-12 11:13:19 +00:00
Jonas Maebe
1aa1686778 * fixed varbyref in variant conversion helpers (patch+test by Paul Ishenin,
mantis #14536)

git-svn-id: trunk@13687 -
2009-09-10 16:57:06 +00:00
marco
0e2f080f07 * binary toc on by default
git-svn-id: trunk@13682 -
2009-09-08 19:11:40 +00:00
joost
2f7875fb12 * Place stride in subrange-entry of array
git-svn-id: trunk@13680 -
2009-09-08 17:00:55 +00:00
Vincent Snijders
d0c608609e * fixed linking with libcairo on darwin in a similar way as done in r13674
git-svn-id: trunk@13675 -
2009-09-08 10:06:56 +00:00
paul
f9d5d01ab4 gtk2: fix compilation on OS X (by Vincent Snijders, issue #0014533)
git-svn-id: trunk@13674 -
2009-09-08 04:54:24 +00:00
andrew
76769d8e18 * Added reading and writing binary TOC for chms.
* Fixed a small bug in chmwriter where strings could have been written across blocks.
* Added a methon to TChmReader to get the toc sitemap. Will use binary toc first if available then text if not.

git-svn-id: trunk@13673 -
2009-09-08 02:35:27 +00:00
Jonas Maebe
40c5ed111c * copy/paste errors for building units shared fixed (patch by Pierre Pede,
part of mantis #12492)

git-svn-id: trunk@13672 -
2009-09-07 19:47:13 +00:00
marco
da9458587d * GMP initial version.
git-svn-id: trunk@13667 -
2009-09-07 13:50:31 +00:00
Jonas Maebe
1f6b55290e * fixed fpsignal for linux/x86_64 and possibly some other platforms as well
(patch by Nikolay Nikolov, mantis #14514)

git-svn-id: trunk@13666 -
2009-09-06 20:03:09 +00:00
Jonas Maebe
e8216ff397 * changed error about unsupported -Xr option into a warning, because the
Makefiles automatically pass it when cross compiling (mantis #14527)

git-svn-id: trunk@13665 -
2009-09-06 18:50:11 +00:00
Legolas
00a3dae729 * Enabled -Xm switch for NDS and GBA and switched from abi_default to abi_eabi
* Fixed NDS libfat linking

git-svn-id: trunk@13664 -
2009-09-06 18:47:22 +00:00
marco
1e5b89049a * Fix several minor html canonicalization problems. FB's chm still gpf's in the index load.
git-svn-id: trunk@13660 -
2009-09-06 17:06:36 +00:00
Jonas Maebe
9da0729d7c * fixed copy/paste error in r13645: fallback to /usr/lib/dylib1.o rather
than /usr/lib/bundle1.o when dylib1.o is not found

git-svn-id: trunk@13658 -
2009-09-06 09:38:19 +00:00
Jonas Maebe
8eb3a34633 * increased length of GCSectionsStr so it can contain the full new
smart linking string for Darwin
  * removed another -no_dead_strip_inits_and_terms that was hardcoded in all
    situations

git-svn-id: trunk@13657 -
2009-09-06 09:35:03 +00:00
marco
f60a4e31a2 * Two demoes for htmlhelp header.
git-svn-id: trunk@13656 -
2009-09-05 23:36:19 +00:00
Jonas Maebe
1503890756 * don't always pass -no_dead_strip_inits_and_terms, because it automatically
turns on dead code stripping (smart linking). Do specify it when smart
    linking is enabled though.

git-svn-id: trunk@13653 -
2009-09-05 20:19:12 +00:00
florian
1b04684d78 o more MingW support, see also discussion of #7412:
+ automatic detection of MingW libgdb
  + additional libraries

git-svn-id: trunk@13652 -
2009-09-05 17:05:26 +00:00
florian
a023c165da o patch by Nikolay Nikolov to make the text mode IDE look pretty under
modern Linuxes by a patch for UTF-8 console output. 
  Previously, only BeOS used UTF-8. Tested with:
   - the linux console
   - xterm
   - gnome-terminal
   - konsole
   - rxvt-unicode
  using Fedora 11.
  Tested with
   - gnome-terminal
   - xterm
   - konsole
  using Ubuntu 9.04
Known "features": 
  * high intensity colours were actually normal intensity, with a bold attribute set. 
    This worked fine under gnome-terminal, but xterm didn't have bold versions of all cp437 characters, 
    which screwed up the window borders in the IDE. And although konsole had them, I didn't like the font - 
    it converted all the double window borders to a very thick single-line border. 
    So I disabled the bolding of high intensity colours in all X11 terminals (TERM=xterm) 
    and replaced it with another ANSI attribute, that actually sets high intensity 
    colours, but is not (in theory) supported by all terminals. The linux console doesn't 
    support it - it actually wants a bold attribute, to set high intensity, 
    so that's why I enabled it only for X11 terminals. All the ones, 
    that I tried, worked fine (xterm, gnome-terminal, 
    konsole, rxvt-unicode, also the plain old rxvt, with a non-UTF-8 locale).
  * Fedora 11 by default uses a 512-characters font, called latarcyrheb-sun16 
    for the linux text mode console, which disables the high intensity colours, 
    effectively reducing the set of available colours to only 8. 
    This is a hardware limitation of the VGA hardware and can be avoided by 
    using a 256-character font. It does not need to be cp437, 
    but it has to have an unicode mapping.
  * I haven't tried other linux distros (and unix-like OSes, i.e. FreeBSD and Mac OS X) - 
    although they should work in theory, they might look bad, due to different fonts, etc. 

git-svn-id: trunk@13651 -
2009-09-05 14:54:22 +00:00
Jonas Maebe
eb84d329d4 * fixed incompatibility of resource strings with the data reordering done by
the Mac OS X 10.6 linker

git-svn-id: trunk@13650 -
2009-09-05 14:40:27 +00:00
florian
2f8e263560 * allow only one thread at a time to attach on a dll so the tls slot is allocated properly, resolves #12987
git-svn-id: trunk@13648 -
2009-09-05 13:41:09 +00:00
Jonas Maebe
621ebe240e * fixed another case where safecall was not ignored for targets<>windows
git-svn-id: trunk@13647 -
2009-09-05 12:53:42 +00:00
marco
32c6253c07 * Last commit broke helpfile/doc compilation. Items should be within description,
not after.

git-svn-id: trunk@13646 -
2009-09-05 12:12:31 +00:00
Jonas Maebe
6d0eda6e4a * used ld directly rather than libtool to link dynamic libraries, because
libtool from Xcode 3.2 (Mac OS X 10.6) does not support all new linker
    options (in particular -no_order_inits and -no_order_data, both of
    which must be specified when compiling dynamic libraries with FPC and
    Xcode 3.2)

git-svn-id: trunk@13645 -
2009-09-05 10:30:11 +00:00
olivier
7616e9e50e * Harmonize kbAltUp, kbAltDown and kbAltRight declarations for xterm
terminals with kbAltLeft. Only applied to Haiku to stay on the safe side. 
  Fix use of up, down and right arrow keys in fpide under Haiku 
  (mantis #14491) 

git-svn-id: trunk@13644 -
2009-09-04 21:29:25 +00:00
Jonas Maebe
196e9f74e4 * freetype and cairo building for BeOS and Haiku (patch from Olivier,
mantis #14490)

git-svn-id: trunk@13643 -
2009-09-04 08:16:39 +00:00
florian
cf215d5097 o patch by Michael V. Denisenko to handle case <string> of (see also #13700)
+ compiler implementation
  + tests

git-svn-id: trunk@13642 -
2009-09-03 20:21:30 +00:00
Jonas Maebe
eb12fdb617 * give an error for -Xr on platforms where this parameter is ignored
git-svn-id: trunk@13640 -
2009-09-03 12:48:06 +00:00
marco
fe20d5546e * initial ms-its: cross chm linking support.
git-svn-id: trunk@13638 -
2009-09-02 20:54:06 +00:00
Jonas Maebe
b93ff4c71c * tests should fail (see added comment)
git-svn-id: trunk@13637 -
2009-09-01 22:22:41 +00:00
Jonas Maebe
1f4bb21c6e - reverted r13629-r13630, because dbf actually should support big endian
systems nowadays

git-svn-id: trunk@13631 -
2009-08-31 12:59:25 +00:00
Jonas Maebe
3cbad406b5 * forgot to move src/export (which depends on src/dbase) also to the
little endian targets for Linux in r13629

git-svn-id: trunk@13630 -
2009-08-31 12:20:22 +00:00
Jonas Maebe
26b296a6ba - disabled dbase/dbf for big endian targets, because it's apparently known
to not work there and it frustrates people who are not aware of that:
    http://forum.lazarus.freepascal.org/index.php/topic,7356.msg34782.html#msg34782

git-svn-id: trunk@13629 -
2009-08-31 12:11:32 +00:00
Jonas Maebe
099eb19ac9 * fixed luaL_error declaration after r13618
git-svn-id: trunk@13628 -
2009-08-31 08:55:09 +00:00
sergei
425170167d * Base units of the package now can be compiled also with Delphi, patch from Dariusz Mazur (with some modifications).
git-svn-id: trunk@13627 -
2009-08-30 21:01:08 +00:00
Jonas Maebe
ceb547d027 * only allow cdecl "array of const" parameters for procvars and for external
routines (just like "varargs"), because if implemented in Pascal then
    on the callee side this array of const parameter is treated as a Pascal-
    style array of const
  * don't give the "cdecl'ared functions have no high parameter" warning for
    array of const parameters for cdecl external routines and procvars

git-svn-id: trunk@13618 -
2009-08-30 08:52:38 +00:00
Jonas Maebe
ae6200ce72 + tests forgotten to commit as part of r13334
git-svn-id: trunk@13617 -
2009-08-30 08:37:53 +00:00
Jonas Maebe
1b6657cf21 * make test fail if the wrong method is called
git-svn-id: trunk@13616 -
2009-08-30 08:33:43 +00:00
florian
e8dff46f8e * several small bugs in the handling of implements fixed, resolves #14418
git-svn-id: trunk@13615 -
2009-08-30 08:01:10 +00:00
florian
a8c6d9ec3a * partially reverted 13571, I didn't get it work on W7 x64 in win32 mode
* use $ffffffff to signal an unsed TLSKey, 0 is a valid TLSKey and could be returned by Windows in theory

git-svn-id: trunk@13608 -
2009-08-29 20:46:06 +00:00
sergei
e9e6439345 * dom.pp: fixed one possible reason of crashing in Delphi 2009
* xmlutils.pp: clean up

git-svn-id: trunk@13604 -
2009-08-29 18:11:08 +00:00
michael
f853ac4c63 * Undid previous patch, because not all compiles
git-svn-id: trunk@13603 -
2009-08-27 20:10:54 +00:00
michael
612d58c80f * Patch from Dariusz Mazur to fix compilation with Delphi
git-svn-id: trunk@13602 -
2009-08-27 18:40:17 +00:00
Jonas Maebe
ec8364904c * set the size of the (invalid) page at address zero to 64kb for 32 bit
Darwin platforms, so that no data can be placed below that address.
    This fixes the strange Windows-compatible resource API, which
    assumes that addresses <64kb do not exist.

git-svn-id: trunk@13600 -
2009-08-26 21:18:53 +00:00
marco
1399b7f8fb * open chm in nonexclusive mode. Could cause problems on Windows Vista where filelocks last even longer after closing.
git-svn-id: trunk@13599 -
2009-08-26 20:13:55 +00:00