Commit Graph

34406 Commits

Author SHA1 Message Date
sergei
ef48f93d85 * win/systhrd.inc: modified ThreadMain so it initializes RTL if not already done, allowing TLS callbacks to be optional.
* win/syswin.inc: added a workaround for buggy ld on win64, see comments in source for details.

git-svn-id: trunk@18019 -
2011-07-25 07:41:32 +00:00
sergei
24c3a43b35 * Call SysFlushStdio from FlushThread, instead of duplicating its functionality.
* Don't call FlushThread from EndThread, since r17798 it is called from DoneThread.

git-svn-id: trunk@18018 -
2011-07-25 06:03:40 +00:00
sergei
4d0e8ca896 * Fixed compilation of the test after r16326
git-svn-id: trunk@18017 -
2011-07-25 05:29:51 +00:00
Jonas Maebe
cb1da8de85 * fixed getcopy order for ttempcreatenode in case it has tempinitcode
(this tempinitcode contains a reference to the tempcreatenode itself
     -> hookoncopy must be set before copying the tempinitnode)

git-svn-id: trunk@18016 -
2011-07-18 00:38:47 +00:00
florian
95ad75c7bf * hack to set stack top for atmega128
* default output for avr-embedded is .hex

git-svn-id: trunk@18015 -
2011-07-17 20:46:05 +00:00
florian
57613d1bb9 + add avr-embedded to systems_embedded
git-svn-id: trunk@18014 -
2011-07-17 20:44:43 +00:00
florian
5c9e0a7a1b + V is avr help screen option
git-svn-id: trunk@18013 -
2011-07-17 20:44:10 +00:00
florian
57cdf34a6b * put -Wpxxxx switch on the help screen
git-svn-id: trunk@18012 -
2011-07-17 20:42:56 +00:00
florian
ecb04d1620 * use tcgint instead of aint in ttempcreatenode
git-svn-id: trunk@18011 -
2011-07-17 20:10:05 +00:00
florian
aae20fd488 * enable loading of the stack pointer
git-svn-id: trunk@18010 -
2011-07-17 17:14:06 +00:00
florian
98d3007580 + support to parse hi8/lo8(...) in inline assembler
git-svn-id: trunk@18009 -
2011-07-17 16:26:57 +00:00
Mattias Gaertner
e18d5e1f61 avltree: made nodemgr protected
git-svn-id: trunk@18008 -
2011-07-17 09:54:14 +00:00
florian
04e2321724 * avr cpuflags renames
+ cpuflagsstr

git-svn-id: trunk@18007 -
2011-07-17 08:55:16 +00:00
florian
ac17ee8acb * fix compilation of atmega128 startup code, not working yet
git-svn-id: trunk@18006 -
2011-07-17 08:54:24 +00:00
michael
840b158eb8 * Fixed DeleteKey. Deleting the last key does not delete the section (Delphi/Windows compatible)
git-svn-id: trunk@18000 -
2011-07-16 14:11:30 +00:00
michael
066a001afe * Fixed WriteString to be Windows/Delphi compatible. Writing an empty value does not delete the value
git-svn-id: trunk@17994 -
2011-07-16 14:05:42 +00:00
Jonas Maebe
d85ccd7418 * fixed compilation on targets where tthreadid is not an integer type after
r17992

git-svn-id: trunk@17993 -
2011-07-16 12:03:35 +00:00
sergei
5c3aca5148 * thread.inc, DoneThread: allow CurrentTM.ReleaseThreadVars to be unassigned and reset ThreadID (in preparation to support Windows native threadvars)
* win/systhrd.inc: added error checking in several places. Fail with code 226 if resources cannot be allocated, as Delphi does.
* win/syswin.inc, Dll_entry: Don't call DoneThread in PROCESS_DETACH callback, it is redundant because the main thread is finalized by FPC_DO_EXIT. SysReleaseThreadVars is still necessary. Also removed redundant assignments to return value.

git-svn-id: trunk@17992 -
2011-07-15 23:57:23 +00:00
sekelsenmat
e21749d6d4 fpvectorial: Finishes fixing the colors in the PostScript reader
git-svn-id: trunk@17991 -
2011-07-15 11:12:51 +00:00
sekelsenmat
d37d0ae1a4 fpvectorial: Fixes some bugs in the PostScript interpreter, previously it didnt run some procedures, and adds more commands to it
git-svn-id: trunk@17990 -
2011-07-15 10:19:21 +00:00
sergei
ae4cdf25f8 + aggas.pas: Write section attributes when long section names are used for smart linking (enabled for win32 and win64). It is needed because GAS does not understand that '.text.something' is part of '.text' and assigns default attributes (writable data) to all such sections, which is not the desired behavior.
git-svn-id: trunk@17989 -
2011-07-13 23:45:28 +00:00
sergei
35a2ed9a6c - Removed unused variable
- Removed inline directive (formal arguments are unsupported and only cause compiler noise)

git-svn-id: trunk@17988 -
2011-07-13 22:14:39 +00:00
joost
b156dc5ad9 * Use new fpmake distclean command. After all targets are cleaned by fpmake distclean, cleanup the fpmake executable
git-svn-id: trunk@17987 -
2011-07-13 21:07:23 +00:00
joost
08ee418513 * Reverted r17969, now fpmake distclean is implemented
git-svn-id: trunk@17986 -
2011-07-13 20:25:02 +00:00
joost
25a9052ced * Implemented distclean command, which cleans up all targets
git-svn-id: trunk@17985 -
2011-07-12 20:45:52 +00:00
sergei
e32317bca4 * Fixed x86_64 compilation further (rev. 17940 was not enough).
git-svn-id: trunk@17983 -
2011-07-12 13:42:27 +00:00
marco
ad60e9a467 * some notes I had in an old checkout.
git-svn-id: trunk@17982 -
2011-07-12 09:50:04 +00:00
marco
d2ccb1f564 * added fpvectorial -> fcl-base -j 2 deps, and regenned packages/ and fpvectorial makefile with up to date fpcmake
fpvectorial makefile had deps on fcl-process instead of fcl-base?

git-svn-id: trunk@17981 -
2011-07-12 09:34:31 +00:00
joost
c0d54a0fb2 * Added fcl-base dependency (epsvectorialreader.pas depends on contnrs)
git-svn-id: trunk@17980 -
2011-07-12 07:31:00 +00:00
marco
1e9733d2d7 * several virtual* and heap* functions checked for 64-bit issues.
git-svn-id: trunk@17979 -
2011-07-11 20:38:37 +00:00
joost
584ac69bff * Several fpmake-file updates
git-svn-id: trunk@17976 -
2011-07-11 19:24:28 +00:00
sergei
02a5efc619 * win/systhrd.inc, clean up:
- removed assembler from SysRelocateThreadVars: never actually worked, and this file is shared between different CPUs - not a proper place for assembler anyway.
- Obtain handle of kernel32.dll using GetModuleHandle, allows to get rid of UnloadLibrary call.

git-svn-id: trunk@17975 -
2011-07-11 17:18:48 +00:00
florian
b0cef1693a * compilation of system unit was broken
git-svn-id: trunk@17972 -
2011-07-10 21:03:55 +00:00
florian
f276177c44 + build atmega128 mcu unit
git-svn-id: trunk@17971 -
2011-07-10 21:03:05 +00:00
florian
4f08d148ea * unique internal errors
git-svn-id: trunk@17970 -
2011-07-10 20:54:48 +00:00
joost
595eadccb6 * Do not cleanup fpmake executable on distclean anymore. To make it possible
to cleanup more than one target using distclean.
 * Added new fpmakeclean target to makefiles which does a cleanall and clears
the fpmake executables

git-svn-id: trunk@17969 -
2011-07-10 14:27:49 +00:00
sergei
6a2e87121b * ogcoff.pas: sort all objsections having '$' in the name, not just .idata$*. This is a documented PECOFF feature and it is required for tls callback stuff to link correctly regardless of the order of declarations in source files.
git-svn-id: trunk@17968 -
2011-07-10 12:24:35 +00:00
joost
eae9ef6529 * Do not mark packages as installed, if they are compiled within this fpmake
git-svn-id: trunk@17967 -
2011-07-10 09:08:59 +00:00
marco
4163c8fb51 * assume callback is cdecl
git-svn-id: trunk@17966 -
2011-07-09 21:34:32 +00:00
joost
28fb5b21a3 * Always add -n when compiling fpmake when not cross-compiling
git-svn-id: trunk@17965 -
2011-07-09 16:08:06 +00:00
Mattias Gaertner
5ca0871033 instantfpc: example for mode directive
git-svn-id: trunk@17964 -
2011-07-09 08:40:27 +00:00
sergei
50952945e1 * Moved WideString-related code, which is identical for Win32 and Win64, into syswin.inc
* Defined HAS_WIDESTRINGMANAGER for Win32 and Win64, this allows to smartlink away part of generic widestring routines.

git-svn-id: trunk@17963 -
2011-07-08 20:07:51 +00:00
pierre
5a2d6c0429 Fix constant pointer reading for 64 bit CPU
git-svn-id: trunk@17962 -
2011-07-08 16:28:24 +00:00
pierre
0ca127b97e * Fix length size for non-short string types
git-svn-id: trunk@17961 -
2011-07-08 16:21:28 +00:00
pierre
f23b265ce1 + Add global testppudump rule
git-svn-id: trunk@17960 -
2011-07-08 16:01:28 +00:00
pierre
efb0193cb2 Add ./utils/ppudump prerequisite to log-ppu files
git-svn-id: trunk@17959 -
2011-07-08 15:57:27 +00:00
pierre
d4372a7ac5 * Add ppudump testing rules
git-svn-id: trunk@17958 -
2011-07-08 15:47:27 +00:00
pierre
b94cdd4881 * Handled real constants of different size
git-svn-id: trunk@17957 -
2011-07-08 15:39:04 +00:00
pierre
322e3f8a16 * More fixes for ppudump use
git-svn-id: trunk@17956 -
2011-07-08 15:38:14 +00:00
pierre
3017132268 * Remove triple sources
git-svn-id: trunk@17955 -
2011-07-08 15:37:23 +00:00