Commit Graph

34525 Commits

Author SHA1 Message Date
pierre
29ca78c6e3 * Check that two $WARN are OK
git-svn-id: trunk@17869 -
2011-06-29 14:31:10 +00:00
pierre
9ec1213be1 * Reorganize code to avoid warnings about unreachable code
git-svn-id: trunk@17868 -
2011-06-29 09:59:06 +00:00
pierre
5148cb6ca8 * make sure pmessage field is aligned
git-svn-id: trunk@17867 -
2011-06-29 09:57:32 +00:00
pierre
1a262bee80 * $WARN $PUSH/$POP support
git-svn-id: trunk@17866 -
2011-06-29 09:57:02 +00:00
pierre
ffbf1a7331 * Avoid pointer typecast warning
git-svn-id: trunk@17865 -
2011-06-29 09:54:46 +00:00
pierre
d707d38ea1 * Fix double WARN infinite loop
git-svn-id: trunk@17864 -
2011-06-29 09:52:03 +00:00
pierre
a347381066 * Allow direct executable rule by adding $(COMPILER_UNITTARGETDIR) and $(COMPILER_TARGETDIR) dependencies
git-svn-id: trunk@17863 -
2011-06-29 07:05:27 +00:00
pierre
446c128e71 * Double LONG (-1) and LONG (0) for x86_64 linker script
git-svn-id: trunk@17862 -
2011-06-28 20:41:05 +00:00
pierre
c07bcefb6b * Fix anumval wrong overwriting as found out by Sergey
git-svn-id: trunk@17861 -
2011-06-28 20:39:53 +00:00
marco
4f12937bb3 * small checks added to avoid accessing potentially unalloced mem.
git-svn-id: trunk@17860 -
2011-06-28 20:34:33 +00:00
marco
765a792599 * another fix for custcgi, bug #19646, hopefully fixes wince building
git-svn-id: trunk@17858 -
2011-06-28 18:59:20 +00:00
florian
01e9eacf5c * merge changes committed to the wrong branch
git-svn-id: trunk@17857 -
2011-06-28 18:23:02 +00:00
sekelsenmat
e050c87391 fpvectorial: Vast improvements to the PostScript interpreter, fixes running procedures
git-svn-id: trunk@17856 -
2011-06-28 15:55:35 +00:00
marco
d9a8a029c9 * changed windows pipe implementation to win32/win64 only. Wince status now unsure, but at least compiling.
Mantis #17646

git-svn-id: trunk@17854 -
2011-06-28 11:31:49 +00:00
pierre
b78e0db500 + Also look for gdb if gdbpas is not found.
+ AdaptToGDB procedure to convert filenames with dirtectories
  to the format GDB expects.

git-svn-id: trunk@17853 -
2011-06-28 10:12:19 +00:00
pierre
d09389ac79 Implement support for $WARN XXX ON/OFF/ERROR
* globtype.pas:
  tmsgstate updated (ms_on/off/error_global variants added).
  ms_local_mask, ms_global_mask : new constants.
  tmessagestaterecord: new record, use to list chains
  of local changes to warnings by $WARN directive.
  pmessagestaterecord: new pointer to tmessagestaterecord.

  * globals.pas:
    tsettings record:
    new field: pmessage of type pmessagestaterecord;

  * cmsgs.pas:
  TMessage class:
  New method: ResetStates; Called on unit parsing changes
  New Method: SetVerbosity(nr:longint;newstate:tmsgstate):boolean;
  Remember global state in
  replacing ClearVerbosity method.
  New boolean field:  has_local_changes
  set if a call to SetVerbosity makes a local change that must be
  reset when changing unit.

  * verbose.pas:
  New functions/procedures:
  function  SetMessageVerbosity(v:longint;state:tmsgstate):boolean;
  for changes caused by $WARN or option
  procedure RestoreLocalVerbosity(pstate : pmessagestaterecord);
  procedure FreeLocalVerbosity(var fstate : pmessagestaterecord);
  function ChangeMessageVerbosity(s: string; var i: integer;state:tmsgstate): boolean;

  * switches.pas:
  Implement recordpendingmessagestate
  flushpendingswitchesstate: Handle new pmessage field of
  current_settings record.

  * parser.pas:
  Handle pmessage field of current_settings.

  * scandir.pas:

  Handle also integer constants in $WARN.

git-svn-id: trunk@17852 -
2011-06-28 10:03:07 +00:00
pierre
3fd3cc8099 * Avoid warning for i386 cpu
git-svn-id: trunk@17851 -
2011-06-28 08:02:35 +00:00
pierre
47ff755068 symdef.pas New make_dllmangledname function
used both in pdecvar and pdecsub units to generate a mangled name
  for externals imported from a dynamic library.

git-svn-id: trunk@17850 -
2011-06-28 05:38:05 +00:00
michael
2a3180c3d1 * Fix for non-i386 platforms
git-svn-id: trunk@17849 -
2011-06-27 21:50:05 +00:00
pierre
311d99b416 Avoid line > 255 chars and range check error on THandle type
git-svn-id: trunk@17848 -
2011-06-27 20:58:02 +00:00
florian
26850e3425 * fix full cycle after adding new boolean types
git-svn-id: branches/pasboolxx@17847 -
2011-06-27 20:11:08 +00:00
florian
3938f5e0b9 + merge support for boolean16, boolean32 and boolean64 into trunk
git-svn-id: trunk@17846 -
2011-06-27 19:21:07 +00:00
michael
0d14fc2851 * Second patch from Mattias Gaertner (bug 19623, should fix 19633 as well)
git-svn-id: trunk@17845 -
2011-06-27 18:34:25 +00:00
pierre
548ee755b1 * Use crc for special dllnames in proc_get_importname
git-svn-id: trunk@17844 -
2011-06-27 16:23:33 +00:00
Legolas
2503ac1d97 * Updated nds to devkitARM r33
git-svn-id: trunk@17843 -
2011-06-27 12:22:46 +00:00
michael
b98270d27c * Undo 17822 - causes resource compilation errors in lazarus
git-svn-id: trunk@17842 -
2011-06-27 08:18:30 +00:00
florian
990add9272 * fixed non short boolean evaluation of <64 bit bool> and/or <64 bit bool> on non-64 bit cpus
* extended test for new pas boolean types

git-svn-id: branches/pasboolxx@17841 -
2011-06-26 21:01:59 +00:00
florian
c186e5bf1b * fixed make all
git-svn-id: branches/pasboolxx@17840 -
2011-06-26 20:54:39 +00:00
marco
93049cead0 * Fixes Mantis #19635, various small issues reported by A. Klenin.
Slightly different than the patch though (commenting/ifdefing instead of removal)

git-svn-id: trunk@17839 -
2011-06-26 20:20:01 +00:00
marco
a59fa38434 * Fix from A. Klenin wrt out of bounds in ipfisn, mantis #19634
git-svn-id: trunk@17838 -
2011-06-26 20:14:13 +00:00
florian
d35d1ed357 + initial support for pascal booleans with sizes 2, 4 and 8
git-svn-id: branches/pasboolxx@17836 -
2011-06-26 15:02:37 +00:00
florian
e08e7e986f + branch for pascal booleans with sizes 2,4 and 8
git-svn-id: branches/pasboolxx@17835 -
2011-06-26 15:00:01 +00:00
florian
589d061c3d * when comparing overridden methods, ignore hidden parameters because overridden methods does not
need to repeat a calling convention specifier so if the calling convention specifier 
  influences the hidden parameters, the methods are not considered equal, resolves #19159

git-svn-id: trunk@17832 -
2011-06-26 12:34:59 +00:00
joost
23363f3158 * Added FmtBCD support to Firebird
git-svn-id: trunk@17830 -
2011-06-25 21:31:41 +00:00
florian
6e1d5e0aa0 * handle pointer+type param. correctly, resolves #19548
* convert exit(x) into result:=x; exit;, enables further optimizations in the future

git-svn-id: trunk@17829 -
2011-06-25 18:05:49 +00:00
michael
a2d007dfa3 * Applied patch from Mattias Gaertner to fix parse buffer not always being loaded (bug 19623)
git-svn-id: trunk@17823 -
2011-06-25 10:58:34 +00:00
joost
46aa4bfc0f * Test for r17704
git-svn-id: trunk@17822 -
2011-06-25 00:09:30 +00:00
joost
a532182917 * Use AsCurrency for currencies instead of float
git-svn-id: trunk@17821 -
2011-06-24 23:25:04 +00:00
joost
18e17afc47 * Raise exception when PostgreSQL library is already loaded from a different file
* Checked typo in error-message and converted it to a resourcestring

git-svn-id: trunk@17820 -
2011-06-24 22:22:10 +00:00
joost
79e000d04e * Changed DefaultSQLFormatSettings into a constant, because changing this will lead to chaos in the locale-support
git-svn-id: trunk@17819 -
2011-06-24 22:00:10 +00:00
pierre
11b154b5d9 * Also for -Cg use for x86_64 solaris
git-svn-id: trunk@17818 -
2011-06-24 13:52:37 +00:00
pierre
405655ba60 + Skip library tests for go32v2 target
git-svn-id: trunk@17817 -
2011-06-24 10:11:19 +00:00
sergei
7d99f95c45 * Always create a section before emitting data to current_asmdata.asmlists[al_typedconsts]. Without it, such data ends up in sections created elsewhere, creating very non-obvious dependencies on other parts of compiler.
git-svn-id: trunk@17816 -
2011-06-24 02:05:56 +00:00
joost
4e4b494b52 * Removed Lazarus specific code, bug #19574
git-svn-id: trunk@17815 -
2011-06-23 21:38:36 +00:00
florian
a6b2fcfe22 * fixes breakage of r17766, should resolve #19598
git-svn-id: trunk@17814 -
2011-06-23 21:30:40 +00:00
Legolas
d530b4fce7 * Some work on sysutils.pp about file I/O
git-svn-id: trunk@17813 -
2011-06-23 21:15:19 +00:00
pierre
a0f7356edc * New DLL overloading tests
git-svn-id: trunk@17812 -
2011-06-23 21:14:01 +00:00
florian
01f07ae466 + forgotten test for r17808
git-svn-id: trunk@17811 -
2011-06-23 21:03:17 +00:00
florian
8e7f39f176 * constant evaluation of ror/rol if they are internally handled, resolves #6300
* renamed rox_x_x to rox_x_y

git-svn-id: trunk@17810 -
2011-06-23 20:54:08 +00:00
joost
9b1129cf5b * Install and clean smartlink-library files
git-svn-id: trunk@17809 -
2011-06-23 20:50:53 +00:00