Commit Graph

32728 Commits

Author SHA1 Message Date
Jonas Maebe
f13f6627c4 * moved use_fixed_stack from cgutils to a method in paramgr so it can
be used outside the code generator
  * renamed tabstractprocdef.requiredargarea into callerargareasize,
    and also added calleeargareasize field; added init_paraloc_info(side)
    method to init the parameter locations and init those size fields and
    replaced all "if not procdef.has_paraloc_info then ..." blocks with
    procdef.init_paraloc_info(callersize)"
  * moved detection of stack tainting parameters from psub to
    symdef/tabstractprocdef
  + added tcallparanode.contains_stack_tainting_call(), which detects
    whether a parameter contains a call that makes use of stack paramters
  * record for each parameter whether or not any following parameter
    contains a call with stack parameters; if not, in case the current
    parameter itself is a stack parameter immediately place it in its
    final location also for use_fixed_stack platforms rather than
    first putting it in a temporary location (part of mantis #17442)
  * on use_fixed_stack platforms, always first evaluate parameters
    containing a stack tainting call, since those force any preceding
    stack parameters of the current call to be stored in a temp location
    and copied to the final location afterwards

git-svn-id: trunk@16050 -
2010-09-26 21:24:14 +00:00
sergei
27948a5f06 sax_xml.pp: cleanup:
- remove duplicated code from constructor
- use CreateXXXBuf to create DOM nodes, eliminates temporary string vars.

git-svn-id: trunk@16049 -
2010-09-26 19:54:20 +00:00
sergei
3648247faf XML reader, forgot to pass current settings to the nested reader (although it doesn't seem to change test suite behavior).
git-svn-id: trunk@16048 -
2010-09-26 19:50:37 +00:00
michael
f3713b9f5e * my_init is now weak, seems no longer to be there in 5.5 (bug ID 17490)
git-svn-id: trunk@16047 -
2010-09-26 08:45:33 +00:00
sergei
347267dfe6 XML reader:
* Parse entities by creating another instance of TXMLReader. This is much more straightforward than saving/restoring context of the existing reader.
* Fixed version setting logic so that ReadXMLFragment procedures are now suitable to read entities:
 accept streams conforming to extParsedEnt [78], correctly read fragments into documents having version=1.1.

git-svn-id: trunk@16046 -
2010-09-26 04:50:55 +00:00
joost
b5fadc3414 * Added --cpu and --os command-line options
git-svn-id: trunk@16045 -
2010-09-25 20:03:05 +00:00
joost
3fc7ec92b2 * Set fpmake dependencies
git-svn-id: trunk@16044 -
2010-09-25 19:45:25 +00:00
joost
7dd0487a2c * Set fpmake dependencies
git-svn-id: trunk@16043 -
2010-09-25 19:41:22 +00:00
joost
d850791041 * Fixed compilation
git-svn-id: trunk@16042 -
2010-09-25 19:40:46 +00:00
marco
bb7d254843 * renamed nb30 header to lowercase and added makefiles.
git-svn-id: trunk@16041 -
2010-09-25 12:57:33 +00:00
marco
08abc28141 * first draft of nb30.
git-svn-id: trunk@16040 -
2010-09-25 12:48:11 +00:00
Jonas Maebe
92a53a9cf1 * moved initialisation of overridesclasshelper "out" parameter to correct
place (was in a nested procedure instead of in the main one, fix for
    r16035)

git-svn-id: trunk@16039 -
2010-09-24 23:48:14 +00:00
joost
819b0a0f0a * Regenerated and added comment how to re-generate
git-svn-id: trunk@16038 -
2010-09-23 19:14:43 +00:00
joost
3024947d5f * Override virtual constructor instead of adding a static one so that it is actually called. Fixes problems on non-Windows
git-svn-id: trunk@16037 -
2010-09-23 19:07:35 +00:00
Jonas Maebe
1633341906 * treat methods added via an objccategory to an objcclass in exactly the
same way as regular methods as far as overriding is concerned ("override"
    is now allowed, and even required, to override them in a descendent class;
    and similarly, "reintroduce" must be used if a category wants to replace
    a method in a child class if that method was  added by another category in
    a parent class)
  * print the name of owning objcclass/category of the original method in case
    override/reintroduce is missing for objc methods, since this is no longer
    always the parent class

git-svn-id: trunk@16035 -
2010-09-22 21:26:58 +00:00
nickysn
15ab85fee5 + enabled build of ptcgraph on win64
git-svn-id: trunk@16034 -
2010-09-20 22:31:30 +00:00
joost
b9b0eb1152 * Hopefully finally fixed the --options option after r16007,r16016
git-svn-id: trunk@16033 -
2010-09-20 21:33:36 +00:00
marco
a2415854b4 * integer->longint, $mode is not set for this unit mantis 17449
git-svn-id: trunk@16032 -
2010-09-20 17:50:41 +00:00
Jonas Maebe
e5f4990f07 r330 | jonas | 2010-09-20 18:09:58 +0200 (Mon, 20 Sep 2010) | 2 lines
* SecTrust is only for TARGET_OS_MAC (mantis #17427)

git-svn-id: trunk@16031 -
2010-09-20 16:10:23 +00:00
nickysn
9e0e05c098 + enabled build of ptcgraph on win32
git-svn-id: trunk@16030 -
2010-09-20 13:45:19 +00:00
nickysn
090dd86ce3 * enabled ptc build on win32 and win64
git-svn-id: trunk@16029 -
2010-09-20 12:58:20 +00:00
nickysn
20baea1bee * fixed ptc build on win32 and win64
git-svn-id: trunk@16028 -
2010-09-20 12:53:24 +00:00
nickysn
0f4fa650ca * fixed path to include file x8616lut.as in hermes i386 loader x86p_16.as (fixes hermes build on i386)
git-svn-id: trunk@16027 -
2010-09-20 12:51:50 +00:00
michael
b93ab63038 * Fixed IntToHex in case of (0,0)
git-svn-id: trunk@16026 -
2010-09-20 07:46:04 +00:00
nickysn
22bb35813e * added -dI386_ASSEMBLER for the platforms, which have the i386 loaders enabled
git-svn-id: trunk@16025 -
2010-09-20 00:44:53 +00:00
nickysn
3ec0102148 * disabled the i386 loaders by default, unless -dI386_ASSEMBLER compiler option is specified
git-svn-id: trunk@16024 -
2010-09-20 00:36:50 +00:00
Jonas Maebe
cf0ce3519f - disabled assembler loaders for Darwin/i386 because they require a GNU
binutils assembler to be installed (and they don't respect the Darwin/i386
    ABI). Also disabled for a few other (seldom used) i386 platforms since
    they have to be enabled per platform.

git-svn-id: trunk@16023 -
2010-09-19 23:35:20 +00:00
nickysn
ebaa77f9c3 * added missing target unit ptceventqueue to ptc makefiles
git-svn-id: trunk@16022 -
2010-09-19 23:29:19 +00:00
Jonas Maebe
f4756b8cc1 * enabled node cse with -O2 for ppc32
* enabled tail recursion with -O2 for ppc64

git-svn-id: trunk@16021 -
2010-09-19 23:27:01 +00:00
nickysn
341ffdaa79 * enabled build of ptc and ptcgraph on linux; hermes enabled on all platforms
git-svn-id: trunk@16020 -
2010-09-19 22:55:47 +00:00
nickysn
7bbb0817d3 * updated ptcgraph and added ptccrt
git-svn-id: trunk@16019 -
2010-09-19 22:44:57 +00:00
nickysn
b1ffb01b42 * updated ptc
git-svn-id: trunk@16018 -
2010-09-19 22:10:28 +00:00
nickysn
fc8d088308 * updated hermes to latest version from trunk
git-svn-id: trunk@16017 -
2010-09-19 20:38:50 +00:00
joost
ff4614177b * Fixed exception while parsing the -o option for the second time
git-svn-id: trunk@16016 -
2010-09-19 20:06:37 +00:00
joost
ed985423ac * Do not use -c command line parameter for the compiler executable, it is already used for the compiler config file
git-svn-id: trunk@16015 -
2010-09-19 18:23:12 +00:00
sergei
1d3a1e6691 * dom.pp, removed TDOMAttr.FOwnerElement field, storing owner element in FParentNode. This reduces memory requirements.
git-svn-id: trunk@16014 -
2010-09-19 16:46:35 +00:00
Jonas Maebe
1c9fed7ae3 * resolve anonymous external objcclass definitions to the real type also when
a) defining a child class
     b) checking for type conversion compatibility

git-svn-id: trunk@16013 -
2010-09-19 16:05:32 +00:00
nickysn
f88efa2072 * added SetBkColor and GetBkColor for Hercules
git-svn-id: trunk@16012 -
2010-09-19 15:41:56 +00:00
Jonas Maebe
d628276c98 r329 | jonas | 2010-09-19 17:17:21 +0200 (Sun, 19 Sep 2010) | 3 lines
+ translation of IOSurface.framework and some IOKit and mach headers
    it depends on (for new Cocoa headers)

git-svn-id: trunk@16011 -
2010-09-19 15:18:03 +00:00
sergei
2786259d77 dom.pp:
* r15443 changed the node class with biggest instance size from TDOMAttr to TDOMEntity. Changed that in TDOMDocument constructor, too. Otherwise nodes created with TDOMEntity.CloneNode will leak (they cannot be inserted into tree).
* Do not restore default attributes during document destruction.
* Also added a general check that raises exception if someone tries to allocate from node pool during destruction.
* Fixed replaceChild() method: it was deleting node if that node was replaced by itself.
+ Test for replaceChild.

git-svn-id: trunk@16010 -
2010-09-19 14:11:20 +00:00
joost
f6ced54fb4 * Parse command-line options twice, so they can override values from the configuration files
* Added --prefix command-line option
 * Added -n command-line option to skip reading of configuration files
 * Added --compiler option to set compiler-executable
 * When the compiler version, target os or cpu is not given in the configuration files, obtain them from the compiler-executable 

git-svn-id: trunk@16007 -
2010-09-19 11:05:45 +00:00
joost
21c81ee3fd * Session-info removed from Lazarus project-file
git-svn-id: trunk@16006 -
2010-09-19 10:39:49 +00:00
nickysn
d975466171 * implemented SetBkColor and GetBkColor for mode MCGAHi (640x480x2)
git-svn-id: trunk@16005 -
2010-09-18 22:23:59 +00:00
nickysn
263fc7b6ff * fixed memory leak in DrawTest, when running more than one test
git-svn-id: trunk@16004 -
2010-09-18 13:19:58 +00:00
nickysn
22954b48ad + new graph unit test DrawTest for PutPixel, GetPixel, HLine, VLine and write modes
git-svn-id: trunk@16003 -
2010-09-18 12:53:49 +00:00
Jonas Maebe
ef4f0639c0 + added GPCStrings to implicitunits so it gets cleaned/installed
* merged:

r328 | jonas | 2010-09-17 15:16:21 +0200 (Fri, 17 Sep 2010) | 3 lines
Changed paths:
   M /trunk/MPPInterfaces/SecTrust.pas

  - {$align power}
  + translation credit

...
r327 | jonas | 2010-09-17 15:09:54 +0200 (Fri, 17 Sep 2010) | 2 lines
Changed paths:
   M /trunk/MPPInterfaces/cssmapple.pas

  - removed superfluous MW/GPC macro definitions from the implemenation

...
r326 | jonas | 2010-09-17 00:14:28 +0200 (Fri, 17 Sep 2010) | 6 lines
Changed paths:
   M /trunk/MPPInterfaces/MacTypes.pas
   A /trunk/MPPInterfaces/SecTrust.pas
   A /trunk/MPPInterfaces/certextensions.pas
   A /trunk/MPPInterfaces/cssmapple.pas
   A /trunk/MPPInterfaces/cssmconfig.pas
   A /trunk/MPPInterfaces/cssmerr.pas
   A /trunk/MPPInterfaces/cssmkrapi.pas
   A /trunk/MPPInterfaces/cssmtype.pas
   A /trunk/MPPInterfaces/x509defs.pas
   M /trunk/Scripts/Convert.pl

  + a bunch of Security.Framework headers, required by new Cocoa header
    translations
  + added a number of NULL-macros appearing in those headers to convert.pl
  + added UInt32_fix type to MacTypes because one of those headers contains
    a field with the name "Uint32" whose type is also UInt32.

...
r325 | jonas | 2010-09-17 00:10:14 +0200 (Fri, 17 Sep 2010) | 2 lines
Changed paths:
   M /trunk/MPPInterfaces/ColorSyncDeprecated.pas

  * added (hopefully correct) setting for packrecords C for GPC
...
r324 | jonas | 2010-09-17 00:05:41 +0200 (Fri, 17 Sep 2010) | 2 lines
Changed paths:
   M /trunk/MPPInterfaces/CFStringTokenizer.pas

  * fixed compilation with GPC

...
r323 | jonas | 2010-09-09 20:31:47 +0200 (Thu, 09 Sep 2010) | 2 lines
Changed paths:
   A /trunk/MPPInterfaces/CFStringTokenizer.pas

  + translation of CoreFoundation/CFStringTokenizer.h

git-svn-id: trunk@16002 -
2010-09-17 20:21:25 +00:00
Jonas Maebe
242016312f * immediately fail when trying to allocate a memory block whose size falls
in the range high(ptruint)-$fffe .. high(ptruint), because all large
    allocations are rounded up to the next multiple of 64kb, which is 0 in
    that case (mantis #17430)

git-svn-id: trunk@16001 -
2010-09-17 14:05:06 +00:00
Jonas Maebe
bd69be344c * replaced -O2 with -Ootailrec, because that's the optimization that has
to be active (apparently -Ootailrec is currently not enabled for ppc64
    with -O2)

git-svn-id: trunk@16000 -
2010-09-17 09:13:39 +00:00
Jonas Maebe
4bd21b327b * patch by zeljko to make the test independent of the locale, and fix a
a problem when NegCurrFormat > 10 (from
    http://lists.freepascal.org/lists/fpc-devel/2010-September/021865.html)

git-svn-id: trunk@15999 -
2010-09-16 20:58:34 +00:00
florian
3041bbab27 * fixes overflowing internalerror number
git-svn-id: trunk@15998 -
2010-09-16 20:46:11 +00:00