Commit Graph

32752 Commits

Author SHA1 Message Date
florian
f90acc40d9 * made GetMemory, FreeMemory, ReallocMemory delphi compatible, resolves #17530
git-svn-id: trunk@16075 -
2010-10-02 19:15:58 +00:00
Jonas Maebe
eda7a8d672 * replaced the "quick exit" instruction sequences from the syscall variants
lacking "nostackframe" with branches to an exit label, because in that
    case the compiler-generated exit code must be executed to balance the
    stack (only done for EABI; should probably also be done for OABI, but
    I can't test that)

git-svn-id: trunk@16073 -
2010-10-01 15:06:57 +00:00
sergei
594919cc70 * dom.pp, fixed TDOMText.SplitText() to use custom allocation, so newly created node won't leak if initial node has no parent .
git-svn-id: trunk@16072 -
2010-10-01 11:05:30 +00:00
Jonas Maebe
d1206c6279 * also set the persistent typedef of simplified ordconstn type conversions
(related to mantis #17458)

git-svn-id: trunk@16071 -
2010-09-30 20:45:31 +00:00
sergei
fd892533c3 * xmlread.pp, a bit better separation of DOM-specific and DOM-independent code in ParseComment() and ParsePI().
git-svn-id: trunk@16070 -
2010-09-30 15:30:49 +00:00
michael
54411b9180 * improved session management:
- GlobalSessionDir is now always used, even when creating descendents of TWebIniSession. 
  - Explicitly Free session. (Prepares for persistent session info for fastcgi apps)

git-svn-id: trunk@16069 -
2010-09-30 08:54:19 +00:00
michael
a2a493a60e * RegenerateParams was not called in all cases
git-svn-id: trunk@16068 -
2010-09-30 08:50:14 +00:00
pierre
23ff1e0681 * fix error in cfidwarf rev 16062 for non-windows systems
git-svn-id: trunk@16067 -
2010-09-30 07:41:19 +00:00
sergei
5808fd23c9 * dom.pp, moved remaining TDOMAttr-specific code from TDOMNamedNodeMap to TAttributeMap.
git-svn-id: trunk@16066 -
2010-09-29 23:10:58 +00:00
Jonas Maebe
8b0301409a + i386/iphonesim target for the new iPhoneSimulator in Xcode 3.2.4 and
later: the same as i386/darwin, except
      a) uses the non-fragile Objective-C ABI/runtime
      b) does not require stubs for direct calls/jumps (not required for
         i386/darwin under 10.6 and later either, but still generated
         there for backwards compatibility)
      c) only the same packages are enabled as for ARM/Darwin
      d) MacOSAll is compiled specifically for the iPhoneSimulator SDK
    This target also defines the symbol "darwin" apart from the target
    name "iphonesim" for source code compatibility reasons.

git-svn-id: trunk@16065 -
2010-09-29 21:56:47 +00:00
Jonas Maebe
15cce57139 + added package names so Makefile (re)generation works
git-svn-id: trunk@16064 -
2010-09-29 21:45:02 +00:00
Jonas Maebe
d5b556ba40 * reverted n<>nil -> assigned(n) change from r15971 because of this is
no longer required after r15976

git-svn-id: trunk@16063 -
2010-09-29 21:39:07 +00:00
pierre
fa4b4906e6 * ogcoff.pas: Add support for RELOC_SECREL32.
* cfidwarf.pas: Fix CIE pointer inside dwarf-FDE entry which must be
    a section relative offset.

git-svn-id: trunk@16062 -
2010-09-29 12:58:21 +00:00
Jonas Maebe
bd0567563c * don't crash in {$x-} mode if a call cannot be resolved due to an error
in the expression (mantis #17455)

git-svn-id: trunk@16061 -
2010-09-29 12:11:22 +00:00
sergei
03b06dc7a1 * dom.pp, moved default attribute handling code from TDOMNamedNodeMap to TAttributeMap.
git-svn-id: trunk@16060 -
2010-09-28 22:46:05 +00:00
mazen
6863b0ab46 * Removed svn:executable property from source files.
git-svn-id: trunk@16059 -
2010-09-28 21:40:50 +00:00
marco
6ebda8f2cc * D2009 compat: TStringList.OwnsObjects
git-svn-id: trunk@16058 -
2010-09-28 14:52:44 +00:00
pierre
19e037dde7 * Try to improve directory handling of program
git-svn-id: trunk@16057 -
2010-09-28 10:21:51 +00:00
pierre
7c04d8d13b From patch submitted by Willibald Krenn in Bug Report 17500.
* assemble.pas (TInternalAssembler.WriteStab): Use RELOC_ABSOLUTE32 for
   32-bit stab entry.
 * ogcoff.pas: Add check for correct generated reloc section size.
 * systems/t_win.pas: Use 0x400000 image base for x86_64 programs using
   stabs debug information format.

git-svn-id: trunk@16056 -
2010-09-28 10:06:54 +00:00
florian
7199ac4ad7 + apply cse on load parent frame pointer nodes
git-svn-id: trunk@16055 -
2010-09-27 20:54:34 +00:00
florian
e9550c62bf * inline original windows macros
git-svn-id: trunk@16054 -
2010-09-27 18:51:10 +00:00
Jonas Maebe
e6c09430cb * fixed inverted condition in r16052 that could cause superfluous parameter
copies (and missing parameter copies, although that was less likely)

git-svn-id: trunk@16053 -
2010-09-27 14:23:08 +00:00
Jonas Maebe
6094cb79dc * fixed internalerrors on non-use_fixed_stack platforms after r16050:
stack parameters can also be split over multiple locations

git-svn-id: trunk@16052 -
2010-09-27 09:52:47 +00:00
Jonas Maebe
92901a0619 - removed unused local variable after r16050
git-svn-id: trunk@16051 -
2010-09-27 09:51:40 +00:00
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