Commit Graph

12778 Commits

Author SHA1 Message Date
pierre
5d6a7dc03d + TExternalLinker.CatFileContent method and tf_no_backquote_support tsystemflags enum value
git-svn-id: trunk@19648 -
2011-11-18 21:32:25 +00:00
pierre
8e843bc892 Regenerate msg include files
git-svn-id: trunk@19647 -
2011-11-18 21:29:40 +00:00
pierre
8f7ea8718b + Add message for TExternalLinker.CatFileContent method
git-svn-id: trunk@19646 -
2011-11-18 21:28:46 +00:00
pierre
85862e476b Fix for test tw19368
git-svn-id: trunk@19643 -
2011-11-16 22:04:28 +00:00
paul
7f7c665e64 compiler: push nested class hierarchy for parsing nested procedures arguments and results (mantis #0020690, mantis #0020038)
git-svn-id: trunk@19641 -
2011-11-16 03:41:56 +00:00
sergei
c56ef119a1 * tcgguidconstnode: create a new object section before emitting data, otherwise data ends up in arbitrary section, causing e.g. IE 200602289 if it happens to be .bss.
git-svn-id: trunk@19640 -
2011-11-16 02:21:10 +00:00
sergei
8c9ad67682 + tcgexitnode,tcgbreaknode,tcgcontinuenode: added possibility to generate specialized code for leaving unwind-protected regions.
git-svn-id: trunk@19636 -
2011-11-14 22:47:37 +00:00
florian
c12a4989d0 + use cpurox define in the compiler for CPUs having internal ror/rol support
+ optimize (i shl x) or (i shr (bitsizeof(i)-x)) and friends into rol/ror(x,i)

git-svn-id: trunk@19635 -
2011-11-13 18:40:34 +00:00
sergei
ce3f850a68 * x86_64, use rip-relative references when taking address of local code labels, fixes test/library/tlib1a.pp for Linux and FreeBSD and passing exception address to FPC_RAISEEXCEPTION on Darwin.
git-svn-id: trunk@19616 -
2011-11-09 05:12:59 +00:00
paul
a1e0b833b2 compiler: fix ppu read/write of property parameters symtable (bug #0020454)
- add new property option ppo_overrides for property which overrides parent class properties
  - write overriddenpropsymderef only in case if property has ppo_overrides flag
  - save/load parameters symtable only in case if property has ppo_parameters flag and has not ppo_overrides flag
  - in case if property is overrides and has parameters copy original symtable

git-svn-id: trunk@19615 -
2011-11-09 03:35:55 +00:00
pierre
98c7a5e4b0 * Enable internal elf writer for freebsd x86_64 target
git-svn-id: trunk@19608 -
2011-11-08 14:05:57 +00:00
pierre
04138bb4a3 + Add reg_exes target to recompile all *reg.pp sources
git-svn-id: trunk@19607 -
2011-11-08 13:53:32 +00:00
pierre
dd266f262c * Remove obsolete mips files
git-svn-id: trunk@19606 -
2011-11-08 13:48:19 +00:00
paul
2146d8a8ec compiler: allow CASE record block after the methods and other record elements (issue #0020638)
git-svn-id: trunk@19605 -
2011-11-08 02:16:04 +00:00
paul
91294c64de compiler: forgotten message files
git-svn-id: trunk@19604 -
2011-11-08 02:15:09 +00:00
Jonas Maebe
84c23f6b42 * fixed range check warning when doing a native ppc64 compile
git-svn-id: trunk@19595 -
2011-11-04 22:49:04 +00:00
pierre
7f5f552e4a * Fix compilation by disabling warnings for unsupported MIN/MAXSTACKSIZE
git-svn-id: trunk@19591 -
2011-11-03 13:22:53 +00:00
pierre
12d611e255 * Fix compilation by disabling -Sew for 2.4.X compiler versions
git-svn-id: trunk@19590 -
2011-11-03 13:21:57 +00:00
pierre
43abca844f Add missing mode objfpc needed for out parameter type
git-svn-id: trunk@19589 -
2011-11-03 11:46:52 +00:00
pierre
9598baa179 Use out untyped parameter to avoid warnings
git-svn-id: trunk@19588 -
2011-11-03 11:44:01 +00:00
pierre
b1975eb088 Use out untyped parameter to avoid warnings
git-svn-id: trunk@19587 -
2011-11-03 11:43:29 +00:00
pierre
019ecd53fe Use out parameter type for tppufile.getXXX methods
git-svn-id: trunk@19586 -
2011-11-03 11:09:34 +00:00
pierre
362a3c8beb Enable -Sew by default, set ALLOW_WARNINGS to 1 to disable
git-svn-id: trunk@19585 -
2011-11-03 10:27:58 +00:00
pierre
b6de7f0d6b * Suppress Comaprison might be always false if first_mm_imreg is zero
git-svn-id: trunk@19584 -
2011-11-03 10:13:26 +00:00
pierre
97559ea92a * Define MAX_OPER_X to avoid warnings about array index past maximum value
git-svn-id: trunk@19583 -
2011-11-03 10:12:31 +00:00
pierre
531d3808fc Override abstract method to abvoid warning at compilation time
git-svn-id: trunk@19582 -
2011-11-03 10:10:40 +00:00
pierre
8319972722 Override abstract method to abvoid warning at compilation time and suppress warning about macos_direct_globals constant
git-svn-id: trunk@19581 -
2011-11-03 10:10:11 +00:00
pierre
695556fe23 * Avoid warnings about use_PR constant boolean
git-svn-id: trunk@19580 -
2011-11-03 10:09:20 +00:00
pierre
44f8bb35b7 Override abstract method to abvoid warning at compilation time
git-svn-id: trunk@19579 -
2011-11-03 10:08:37 +00:00
pierre
42c98f3cd5 Override abstract method to abvoid warning at compilation time
git-svn-id: trunk@19578 -
2011-11-03 10:08:12 +00:00
pierre
fc9dd61f03 Avoid warning about missing fields in embedded_controllers array
git-svn-id: trunk@19577 -
2011-11-03 10:07:35 +00:00
pierre
3a7af29d3a Use aint type local variable in read_index_shift to avoid wrong typecast
git-svn-id: trunk@19576 -
2011-11-03 10:06:36 +00:00
pierre
33800a0b59 * Avoid warnings and add create_varargs_paraloc_info method
git-svn-id: trunk@19575 -
2011-11-03 10:04:54 +00:00
paul
26f66897cd compiler:
- warn if compiler finds implicit or explicit string type conversion from a form of ansi string to a form of unicode string and vice versa
  - mark explicit warnings as OFF by default
  - warn if compiler finds an assignment of an unicode char const to ansi string or char type (warn for assignment of unicode string const to be implemented)
  - revert a piece of code from r19457 regards shortstring handling because shortstring handling should not differ from ansistring in this paticular case

git-svn-id: trunk@19574 -
2011-11-03 00:39:22 +00:00
pierre
2b4e2dc164 * Fix ChangeMessageVerbosity by adingd a recordpendingmessagestate call
git-svn-id: trunk@19573 -
2011-11-02 22:08:14 +00:00
pierre
da62249d6b * Fix code to avoid use of unitialized rv local variable in tmoddivnode.simplify method
git-svn-id: trunk@19571 -
2011-11-02 11:22:45 +00:00
paul
aba10cd184 compiler:
- allow turning some messages off by default by prefixing verbosity type with '-' sign (in error.msg)
  - interpret -vm- as a switch which changes message verbosity to *on* by default
  * appropriate error.msg file changes will come later

git-svn-id: trunk@19570 -
2011-11-02 09:20:59 +00:00
paul
435b72bcb1 compiler: check left node to be ord const diring widechar/unicodechar to shortstring before executing the code related to tordconstn()
git-svn-id: trunk@19566 -
2011-10-31 07:00:38 +00:00
paul
b8589d98cc compiler: Don't allow duplicate property/procedure identifiers inside object declaration. The code which allowed this for delphi mode was initially written based on invalid test from mantis #0009176. Fixes bug #0020580.
git-svn-id: trunk@19564 -
2011-10-31 05:35:40 +00:00
paul
f685d67647 compiler: correctly traverse record fields while generating record constant (bug #0020594)
git-svn-id: trunk@19563 -
2011-10-31 02:54:19 +00:00
florian
6b4a5c3cf6 * default arm-linux to linux eabi, oabi is basically dead
git-svn-id: trunk@19562 -
2011-10-30 21:33:21 +00:00
florian
5d4607f65a * ignore errors in setlength parsing inside a generic functin, resolves #20557
git-svn-id: trunk@19561 -
2011-10-30 19:22:55 +00:00
florian
5fd5770059 * load/write loadnodeflags from/to ppu
git-svn-id: trunk@19559 -
2011-10-30 16:15:54 +00:00
florian
6ec0f2549a * factored load node flags out of node flags to gain space
+ implemented iso mode mod, resolves #17685

git-svn-id: trunk@19558 -
2011-10-30 15:14:21 +00:00
paul
62b4ef3d1a compiler: don't create a parasymtable for property if property has no parameters
git-svn-id: trunk@19550 -
2011-10-28 01:38:55 +00:00
sergei
6a3fe72de9 + Support .rva directive in AT&T reader. Put it into base class because it generally applies to all targets with COFF output, but enabled for Windows targets only (others need additional testing).
+ Support .seh_handlerdata directive in Win64.

git-svn-id: trunk@19546 -
2011-10-25 15:18:47 +00:00
paul
e46e2c3ebd compiler, rtl: extend TextRec record with CodePage field
git-svn-id: trunk@19540 -
2011-10-25 02:09:57 +00:00
Jonas Maebe
a228b211c4 * allow local type definitions for "file of xx" component types
(mantis #20527)

git-svn-id: trunk@19524 -
2011-10-21 15:00:21 +00:00
paul
110119e398 compiler: use globalsymtable for units to store ansistring replacement def (fixes bug #0020529)
git-svn-id: trunk@19523 -
2011-10-21 06:09:24 +00:00
paul
c1866d5c17 compiler:
- don't pass CP_NONE encoding to internal functions. They handled it as 0 encoding. This will optimize the generated code a bit.
  - convert all king of string/char/pchar constants to local ansistring def if they needs to be passed to rawbytestring type. They should not get a CP_NONE codepage (delphi compatible)
  - don't convert left and right arguments of string concatenation to ansistring type if they are already ansistrings but with different codepage - RTL already handles different codepages in concat routine
  - fix resultdef for ansistring concatenations inside assignments - return def of left assignment operand if it is already ansistring - this reduces amount of unneeded condepage conversions since concat functions can return result in any desired codepage
rtl: remove CP_NONE comparisions from most of RTL functions, replace 0 constant with CP_ACP
tests: add test to check various conversions to RawByteString type

git-svn-id: trunk@19519 -
2011-10-20 09:25:51 +00:00