Tomas Hajny
db3067b9de
* short name fits 8.3 now
...
git-svn-id: trunk@29618 -
2015-02-04 00:01:09 +00:00
Tomas Hajny
dbc50980d1
* fixed OS/2 compilation after dynlibs manager implementation
...
git-svn-id: trunk@29617 -
2015-02-03 23:56:12 +00:00
florian
42020c8bb8
* when passing a parameter by var/out, its address leaves the current scope so the compiler has to take care of this
...
* when getting rid of temps. of inline parameters, take care if somewhere an alias of the variable might exist, resolves #24796 and #26534
git-svn-id: trunk@29616 -
2015-02-03 21:05:39 +00:00
michael
c754846815
* Initial support for inline comment documentation
...
git-svn-id: trunk@29615 -
2015-02-03 21:05:05 +00:00
florian
97a6c92ea8
* fixes for makes 3.82
...
git-svn-id: trunk@29614 -
2015-02-03 20:05:15 +00:00
svenbarth
2d454dc8fa
Move DynLibs support to System unit using a manager approach like for Threads, WideStrings, etc.. This is needed so that we can support features like "delayed" and loading of dynamic packages.
...
Each port that allows the usage of dynamic libraries should call InitSystemDynLibs during initialization of the System unit.
The DynLibs unit has been adjusted to be a forwarder for the functions that now reside in the System unit (for backwards compatiblity just in case). Additionally the unit will register the DynLibsManager if it doesn't reside in the System unit anyway.
Currently only the Windows targets (Win32, Win64 and WinCE) implement the DynLibsManager inside the System unit. For other systems using the LoadLibrary, etc. functions will lead to a run error/exception.
If a port wants to implement its own DynLibsManager then it needs to define DISABLE_NO_DYNLIBS_MANAGER. TLibHandle, NilHandle and optionally TOrdinalEntry (it's set to SizeUInt otherwise) should be defined in sysdlh.inc which needs to be enabled using the define FPC_SYSTEM_HAS_SYSDLH (because there are targets which have FEATURE_DYNLIBS enabled, but don't support them... e.g. powerpc-wii -.-).
The DynLibsManager contains methods for loading a library based on a RawByteString and based on a UnicodeString. BOTH should be implemented, but internally one can forward to the other.
The loading by ordinal *can* be be implemented. If it is set to Nil then the implementation of GetProcAddress(lib,ordinal) will return Nil.
+ new functions SetDynLibsManager and GetDynLibsManager to set and retrieve the current DynLibsManager
* provide interface of DynLibs unit in unit System
git-svn-id: trunk@29613 -
2015-02-03 20:00:00 +00:00
Jeppe Johansen
1aeb07c835
Fixed more small bugs in the embedded heapmgr. Some changes copied from tinyheap.
...
git-svn-id: trunk@29612 -
2015-02-03 19:37:29 +00:00
Jeppe Johansen
85c5e7330a
Make HeapMgr.GetAlignedMem public. This function is useful for embedded targets where alignment > 32(or sizeof(pointer)) bytes is required.
...
Fix RegisterHeapBlock. Calling FreeMem requires the heap manager to be installed, plus it requires the size of the segment to be stored in front of the pointer. Instead use InternalFreeMem
git-svn-id: trunk@29611 -
2015-02-03 00:24:51 +00:00
Jeppe Johansen
7a826cc481
Fix compilation of i386-embedded target.
...
git-svn-id: trunk@29610 -
2015-02-03 00:22:51 +00:00
pierre
488024ea5c
Fix for failures on FileNameCaseSensitive systems
...
git-svn-id: trunk@29609 -
2015-02-02 21:49:36 +00:00
Marc Weustink
7001a02ac6
Initializa function result of FindValueKey when current element is nil
...
git-svn-id: trunk@29607 -
2015-02-02 20:24:34 +00:00
Károly Balogh
05d38053f7
m68k: optimize a few more trivial cases
...
git-svn-id: trunk@29606 -
2015-02-02 08:52:19 +00:00
Károly Balogh
9d6f763d4f
m68k: small helpers to determine a given int value fits into a certain size or instruction argument
...
git-svn-id: trunk@29605 -
2015-02-02 08:25:01 +00:00
florian
f0c5074e34
+ recurse into atari sub-directory
...
git-svn-id: trunk@29604 -
2015-02-01 21:26:57 +00:00
florian
88b35ecf5d
* fixes for make 3.82
...
git-svn-id: trunk@29603 -
2015-02-01 21:26:36 +00:00
florian
ce69827880
* disable dyn. linking of gd for arm-gba as proposed by Karl-Michael Schindler, resolves #27218
...
git-svn-id: trunk@29602 -
2015-02-01 21:23:22 +00:00
florian
f0ca432476
* disabled sdl for arm-gba as recommended by Karl-Michael Schindler, resolves #27219
...
git-svn-id: trunk@29601 -
2015-02-01 21:21:30 +00:00
florian
7746826b7f
* fixes for make 3.82
...
git-svn-id: trunk@29600 -
2015-02-01 21:08:54 +00:00
florian
872d317c98
* updated for make 3.82
...
git-svn-id: trunk@29599 -
2015-02-01 19:24:41 +00:00
florian
461821d1a5
* read array initializations in generic subroutines without fixed limits, resolves #25602
...
git-svn-id: trunk@29598 -
2015-02-01 17:09:00 +00:00
Károly Balogh
3c2031c9c6
m68k: added RegModifiedByInstruction implementation, enabled RefsHaveScale define
...
git-svn-id: trunk@29597 -
2015-02-01 16:33:26 +00:00
florian
0d944c8b1d
* update of german message files by Karl-Michael Schindler, resolves #27342
...
git-svn-id: trunk@29595 -
2015-02-01 16:24:23 +00:00
Jonas Maebe
5d4837329b
* changed {$modeswitch blocks} to {$modeswitch cblocks} to avoid confusion
...
with the Pascal meaning of the term "block"
git-svn-id: trunk@29594 -
2015-02-01 15:50:06 +00:00
Károly Balogh
460c4acaee
m68k: implement taicpu.spilling_get_operation_type_ref, supports predecrement/postincrement addressing
...
git-svn-id: trunk@29593 -
2015-02-01 15:28:54 +00:00
florian
a436dafd68
* better error message if a procedure declaration is closed by a colon, resolves #27388
...
git-svn-id: trunk@29592 -
2015-02-01 15:27:20 +00:00
sergei
adeb8c93e9
* Set pi_do_call flag explicitly when procedure has a parameter or local var that require finalization. Normally it is set by implicit try..finally node, but this node is absent when compiling in {$implicitexceptions off} mode. This may cause internal errors in pass 2 if pi_do_call has not been set by other means.
...
Fixes IE when compiling Lazarus for MIPS target.
+ Test.
git-svn-id: trunk@29590 -
2015-01-31 13:33:36 +00:00
florian
c1091e1724
* added more asmmode directives to make compilation more robust in case the asmmode is changed by configuration files, resolves #27255
...
git-svn-id: trunk@29589 -
2015-01-31 10:37:48 +00:00
sergei
9cc0bdd6b9
+ Missing part of internal ARM assembler, Mantis #26588 . I'm not setting it as default for arm-wince yet, because testing reveals several points in generic code that need adjustments.
...
git-svn-id: trunk@29588 -
2015-01-30 22:45:05 +00:00
Jonas Maebe
2c3aa7cee0
* give an internal error in second_int_to_bool() if left.expectloc was not
...
in [LOC_FLAGS,LOC_JUMP], but it's actual location is one of those
git-svn-id: trunk@29587 -
2015-01-30 19:31:31 +00:00
Jonas Maebe
ff25f5c923
* set DYLD_LIBRARY_PATH instead of LD_LIBRARY_PATH on Darwin
...
git-svn-id: trunk@29586 -
2015-01-30 19:31:28 +00:00
Jonas Maebe
16183bebfe
* libc's open() function is a varargs function
...
git-svn-id: trunk@29585 -
2015-01-30 19:31:25 +00:00
Jonas Maebe
eb419b58c5
- disable inlining of routines that contain a call to a C-style varargs
...
function, as we don't save/restore the synthetic paravarsyms that
are created for this
git-svn-id: trunk@29584 -
2015-01-30 19:31:22 +00:00
Jonas Maebe
fde6448063
* don't directly add something to ref.index in get_bit_reg_ref_sref, as it
...
may be scaled
git-svn-id: trunk@29583 -
2015-01-30 19:31:18 +00:00
Jonas Maebe
9f929695cf
* fixed tcgshlshrnode.pass_generate_code for 64 bit targets
...
o also removed 16 bit ifdefs, replacing them with regular
if's
git-svn-id: trunk@29582 -
2015-01-30 19:31:15 +00:00
sergei
472310d83f
* ARM: Fixed interface wrapper generation after r28542 for targets without BX instruction.
...
git-svn-id: trunk@29580 -
2015-01-30 15:00:28 +00:00
svenbarth
ba75fd62f0
Fix for Mantis #27348 . Applied patch by Do-wan Kim plus comments for the reason.
...
symdef.pas:
* tprocdef.defaultmangledname: add some kind of differentiator to the result def, so that x(integer;integer) and x(integer):integer generate different mangled names
* make_mangledname: also use the returndef instead of a potentially uninitialized variable like was done for tprocdef.defaultmangledname and also add a prefix (so that the two are compatible)
+ added test
git-svn-id: trunk@29579 -
2015-01-30 13:49:25 +00:00
sergei
50639d89e7
* x86_64-linux startup: use ABI tag from abitag.o, cleaned out inlined versions.
...
git-svn-id: trunk@29578 -
2015-01-29 17:07:45 +00:00
pierre
d939a163f7
Fix errors and improve ouput of ppudump
...
git-svn-id: trunk@29577 -
2015-01-29 16:37:21 +00:00
pierre
c5de263637
Set default assembler to elf64 writer for x86_64-solaris target
...
git-svn-id: trunk@29575 -
2015-01-29 07:40:30 +00:00
pierre
c7e939b243
Add x86_64-solaris to the list of supported targetss for as_x86_64_elf64 binary writer
...
git-svn-id: trunk@29574 -
2015-01-28 22:52:01 +00:00
Tomas Hajny
608b14ab4e
* make sure that the stack size passed to emxbind is valid (override the value passed using $M if necessary)
...
git-svn-id: trunk@29573 -
2015-01-28 08:00:01 +00:00
Tomas Hajny
4cced1186d
* use the default locale for current country as the first fallback before using the 'Universal' locale if the locale set in LANG is not recognized/supported by OS/2
...
git-svn-id: trunk@29572 -
2015-01-28 02:29:39 +00:00
Tomas Hajny
919e58fc99
* try a fallback to 'Universal' locale if the locale set in LANG is not recognized/supported by OS/2
...
git-svn-id: trunk@29571 -
2015-01-28 00:30:38 +00:00
pierre
56f53176e7
Add freebsd, openbsd and OS2 to the list of i386 targets handling records with only one float as normal float
...
git-svn-id: trunk@29570 -
2015-01-27 22:52:00 +00:00
florian
69ac7dd7ef
* limit initialization to register variables which really need to be initialized
...
git-svn-id: trunk@29569 -
2015-01-27 21:51:29 +00:00
Tomas Hajny
0f83e24145
* Unicode utilities now built for targets OS/2 and EMX too
...
git-svn-id: trunk@29568 -
2015-01-27 17:37:53 +00:00
Tomas Hajny
6230131a4d
* include OS/2 and EMX in CollationOSes
...
git-svn-id: trunk@29567 -
2015-01-27 17:23:01 +00:00
Tomas Hajny
caa749f6a0
* UTF-8 may not be the system codepage on OS/2 - skipped
...
git-svn-id: trunk@29566 -
2015-01-27 16:47:40 +00:00
Tomas Hajny
693a239842
* information about GCC version used for compiling the OS/2 object files added
...
git-svn-id: trunk@29565 -
2015-01-27 16:24:24 +00:00
pierre
84bb209ce8
Add some missing C compiler information found inside C objects
...
git-svn-id: trunk@29564 -
2015-01-27 13:48:44 +00:00