Commit Graph

30123 Commits

Author SHA1 Message Date
Jonas Maebe
624a7be9b1 * fixed internal error when a subscripted object is used in a property
(mantis #12756)

git-svn-id: trunk@12956 -
2009-03-22 16:21:06 +00:00
Jonas Maebe
6f4637b32a * do not do anything when writing to a t(custom)memorystream if the current
position is negative (patch by Collin Western, mantis #13318)

git-svn-id: trunk@12955 -
2009-03-22 15:53:16 +00:00
Jonas Maebe
5cf4ab7642 * always initialize/finalize global refcounted variables in units, also
when they are not used in the unit where they are defined (since they
    may be used elsewhere, discovered while analyzing mantis #13345)

git-svn-id: trunk@12954 -
2009-03-22 15:41:13 +00:00
michael
647fe5f237 * Fixed visibility of TDaemonDefs.FOwner
git-svn-id: trunk@12953 -
2009-03-22 12:27:59 +00:00
joost
ad7f4a1f24 * Use ExeSearch instead of FileSearch to find compiler/command executable
git-svn-id: trunk@12952 -
2009-03-22 10:08:24 +00:00
joost
0721235ab3 * Use ExeSearch instead of FileSearch to find process executable
git-svn-id: trunk@12951 -
2009-03-22 10:05:25 +00:00
joost
c1a83273f7 * Use ExeSearch instead of FileSearch to find command executable
git-svn-id: trunk@12950 -
2009-03-22 10:04:46 +00:00
joost
d4d733b173 * Use ExeSearch instead of FileSearch to find fpc executable
git-svn-id: trunk@12949 -
2009-03-22 10:04:04 +00:00
joost
d4c2a35c75 * Use ExeSearch instead of FileSearch to find compiler executable
git-svn-id: trunk@12948 -
2009-03-22 10:03:03 +00:00
joost
51b49d324e * Implemented function ExeSearch
git-svn-id: trunk@12947 -
2009-03-22 10:02:24 +00:00
joost
2c7d05d210 * Added ImplicitCurrentDir : Boolean = True parameter to FileSearch
git-svn-id: trunk@12946 -
2009-03-22 09:35:48 +00:00
joost
bfae5e097d * When IsSuperUser is true, use the GlobalUnitDir instead of the
LocalUnitDir. Just like that the GlobalInstallDir is passed to fpmake.

git-svn-id: trunk@12945 -
2009-03-22 09:21:42 +00:00
Jonas Maebe
a7e02c7948 * check validity of calling conventions specified using {$calling x}
(previously, this was only checked for calling conventions specified
     as a procedure directive)

git-svn-id: trunk@12944 -
2009-03-21 21:21:45 +00:00
Jonas Maebe
0d219154f3 * FPCMacOSAll -> MacOSAll
git-svn-id: trunk@12943 -
2009-03-21 21:20:29 +00:00
Jonas Maebe
0e6f9dc688 * only use calling conventions supported on all platforms
git-svn-id: trunk@12942 -
2009-03-21 20:56:28 +00:00
joost
4cc2015f8b * Fixed a security issue. Do not try to run an executable named fpc in the current directory, but only search for it in the path
git-svn-id: trunk@12941 -
2009-03-21 17:36:35 +00:00
Jonas Maebe
d61a09debf * assigment -> assignment in explanation of warning about uninitialized
variables

git-svn-id: trunk@12940 -
2009-03-21 16:15:20 +00:00
Jonas Maebe
b5494c534c * handle EsockEINTR for fpaccept and fpconnect
git-svn-id: trunk@12939 -
2009-03-21 16:11:08 +00:00
marco
9f3adee38e * lockcount property exposes flocks, Delphi compatibility verified. Mantis 8380
git-svn-id: trunk@12938 -
2009-03-21 12:16:05 +00:00
ivost
819e7d0913 fixed bug: xsdTryNextString returned allways true
git-svn-id: trunk@12937 -
2009-03-21 11:34:44 +00:00
ivost
e9928658b5 * added namespace testing function
git-svn-id: trunk@12936 -
2009-03-21 11:06:07 +00:00
michael
2abc422035 * ValidateContainer should call ValidateInsert
git-svn-id: trunk@12935 -
2009-03-21 09:26:48 +00:00
michael
8cf5d9abf2 * Patch from Sergei Gorelkin
* TXPathUnionNode.Evaluate: fixed two crashes. The object returned by
    TXPathVariable.AsNodeSet is owned by that TXPathVariable and should
    not be explicitly destroyed. Also TXPathVariable should not be
    released if its AsNodeSet result will be used later.

  * TXPathLocationPathNode.Evaluate/EvaluateStep:

    - fixed crash in axisFollowing case branch (caused by wrong variable
      being used in the loop).
    - rewrote axisPreceding branch so it builds the result node list in
      correct (document) order.
    - Fixed predicate match condition that was always evaluating as True.

  * TXPathScanner.ParseLocationPath: modified so it never returns nil.
    This fixes crash in cases when '/' or '//' are used otherwise than
    the whole expression (e.g. 'string(/)').

  * Replaced manual searching in TList by calls to IndexOf() in two
    places.

git-svn-id: trunk@12934 -
2009-03-20 20:09:55 +00:00
Jonas Maebe
36668a6ec5 * don't emit "include file search paths" for stabs since they don't exist
(and hence those directories were interpreted as source files themselves)
  + added -gostabsabsincludes option to make the compiler store absolute
    paths to include files in Stabs debugging information (since no
    search paths are used). This is not the default because it breaks
    when only the base path of an entire source tree changes (relative
    paths, which are the previous behaviour and the current default,
    work fine, but the absolute paths don't anymore; this can happen
    with shared network drives, and possibly with distros shipping
    external .dbg files)

git-svn-id: trunk@12933 -
2009-03-20 18:35:17 +00:00
Jonas Maebe
bf7c9361f6 * delay effect of {$calling x} until switches are flushed (mantis #12985)
git-svn-id: trunk@12932 -
2009-03-20 16:27:56 +00:00
Jonas Maebe
c04e9e36f7 * set alignment for 0-byte sized entities to 1 instead of to 0
git-svn-id: trunk@12931 -
2009-03-20 16:26:06 +00:00
Jonas Maebe
fe773871d6 * EINTR handling...
git-svn-id: trunk@12930 -
2009-03-20 13:03:14 +00:00
Jonas Maebe
803e78ff8c * and more ESysEINTR and fpwaitpid fixing
git-svn-id: trunk@12929 -
2009-03-19 22:51:41 +00:00
Jonas Maebe
590f4d2efc - deleted (old 1.0.x compatibility file)
git-svn-id: trunk@12928 -
2009-03-19 22:38:05 +00:00
Jonas Maebe
d79161a01a * and yet more ESysEINTR handling
git-svn-id: trunk@12927 -
2009-03-19 22:20:39 +00:00
Jonas Maebe
483b3b4a30 * more ESysEINTR handling
git-svn-id: trunk@12926 -
2009-03-19 22:01:09 +00:00
Jonas Maebe
08865be30e * fixed a bunch of cases where ESysEINTR wasn't handled
* call fpexit instead of halt when fpexec fails (the (v)forked child
    would otherwise close down a bunch of resources of the parent)
  * use vfork instead of fork on Darwin and Solaris (faster)
  * fixed indentation (use "svn diff -x -w" to see the important
    differences)

git-svn-id: trunk@12925 -
2009-03-19 21:53:54 +00:00
Jonas Maebe
8b53f8c41a * fixed a bunch of cases where ESysEINTR wasn't handled
git-svn-id: trunk@12924 -
2009-03-19 21:46:12 +00:00
Jonas Maebe
7fa0b94f36 * fixed unix version of tprocess.waitonexit (use unix.waitprocess so all
corner cases are properly handled) (mantis #11797)

git-svn-id: trunk@12923 -
2009-03-19 20:14:57 +00:00
Jonas Maebe
3844b9b325 + univint dependencies on Darwin for packages using custapp after r12921
git-svn-id: trunk@12922 -
2009-03-19 17:33:30 +00:00
Jonas Maebe
477b4d1f8b * implemented TApplication.GetExename() using CoreFoundation api's
for 32 bit Darwin platforms (we don't have a 64 bit clean interface
    for CoreFoundation yet) instead of using the (unreliable) paramstr(0)
    (mantis #13327)

git-svn-id: trunk@12921 -
2009-03-19 17:32:06 +00:00
Jonas Maebe
c548ce30ba * replaced old DWARF CFI section notation for Darwin with new one (more
changes are required before it works for Darwin)

git-svn-id: trunk@12920 -
2009-03-19 14:22:26 +00:00
Jonas Maebe
d8aa5a1ff8 * set the node complexity of realconstn to 1 instead of the default (maximum)
git-svn-id: trunk@12919 -
2009-03-19 14:20:51 +00:00
Jonas Maebe
e9dedb7377 * disabled generation of DW_AT_low_pc/DW_AT_high_pc compilation unit
information for Win32, as it doesn't work there due to the way we
    name sections on that platform
   (http://lists.freepascal.org/lists/fpc-devel/2009-March/016591.html)

git-svn-id: trunk@12918 -
2009-03-19 10:02:09 +00:00
Jonas Maebe
41dcda600c * disabled the internal linker when using DWARF debug info (it doesn't
work correctly with DWARF)
  * only force the internal linker for STABS when generating relocatable
    output (rather than for all debugging formats)

git-svn-id: trunk@12917 -
2009-03-19 09:01:29 +00:00
Jonas Maebe
630aa5c493 * do not use voidtype for temporary parameter/result locations when
inlining, because that results in alignment settings of "0"
    (voidtype.savesize = 0 -> size2align(0) = 0), which is interpreted
    by the code generators as unaligned (and is actually even invalid
    nowadays). This caused errors on NDS when writing to memory mapped
    I/O devices (mantis #13343)

git-svn-id: trunk@12916 -
2009-03-18 22:25:06 +00:00
Jonas Maebe
f70db9cc93 * fcl-db depends on fcl-xml (xmldatapacketreader uses dom)
git-svn-id: trunk@12915 -
2009-03-18 21:49:13 +00:00
Jonas Maebe
3d739f7a80 * fixed test for non-i386 platforms after r12913
git-svn-id: trunk@12914 -
2009-03-18 20:05:15 +00:00
Jonas Maebe
9ab03e72f3 * mark class and interface parameters as pfAddress (further fix for
mantis #12038) + test

git-svn-id: trunk@12913 -
2009-03-17 20:37:11 +00:00
tom_at_work
ebe8c60813 * also compile lnfodwrf on win32 by default
git-svn-id: trunk@12912 -
2009-03-17 19:17:22 +00:00
Jonas Maebe
c90ecac667 - disabled CFI again for Darwin, it doesn't work there yet
git-svn-id: trunk@12911 -
2009-03-17 19:03:33 +00:00
Jonas Maebe
173ca78a68 * removed superfluous "end of debug info" marker (zero-byte), about
which objdump complained

git-svn-id: trunk@12910 -
2009-03-17 18:42:00 +00:00
Jonas Maebe
c9af7d6476 * added tf_dwarf_only_local_labels for Windows (should make DWARF usable
on Windows, although there are still some warnings)

git-svn-id: trunk@12909 -
2009-03-17 17:07:17 +00:00
florian
b4953e3a50 * ignore $CONTROLLERTPYES marco on non-AVR/ARM platforms in msg files
git-svn-id: trunk@12908 -
2009-03-17 13:55:52 +00:00
florian
6e8a6790d1 + FPC_ARMEB and CPUARMEB similiar to FPC_ARMEL and CPUARMEL
git-svn-id: trunk@12907 -
2009-03-17 13:43:24 +00:00