Commit Graph

465 Commits

Author SHA1 Message Date
joost
f1e4de764a * Write a warning to stderr that this utility is deprecated
git-svn-id: trunk@15213 -
2010-05-03 14:02:22 +00:00
joost
3759ad8963 * Moved fpcmkcfg from compiler/utils to utils/fpcmkcfg
git-svn-id: trunk@15189 -
2010-04-27 07:59:20 +00:00
paul
d6c514b6db compiler: apply patch of Sven Barth to add nativent-i386 and linux-mips to the ppudump (issue #0016266)
git-svn-id: trunk@15146 -
2010-04-15 13:06:53 +00:00
paul
24d8a7d833 compiler: start implementation of class constructors/destructors: parsing is ready but at the moment neither class constructors nor destructors are called - this is to be implemented
git-svn-id: trunk@15109 -
2010-04-03 09:14:12 +00:00
paul
1ef53ca590 compiler: remove unused variables (reduce hints)
git-svn-id: trunk@15093 -
2010-03-30 04:30:41 +00:00
Jonas Maebe
635bf9fb7a + support for "univ" parameter modifier added in r15010
git-svn-id: trunk@15016 -
2010-03-14 12:26:01 +00:00
florian
b8e58428ed * don't search use extrapath for searching ppc* if extrapath is empty because this might find undesired compilers in the current directory
git-svn-id: trunk@14835 -
2010-01-31 16:48:18 +00:00
florian
e7bff9f5c1 * fixed reading of constants from token streams
git-svn-id: trunk@14792 -
2010-01-24 12:35:03 +00:00
paul
1b55473ad5 utils: implement module options for ppudump
git-svn-id: trunk@14768 -
2010-01-22 09:29:50 +00:00
paul
77a2c316dd compiler: use sp_internal instead of vo_is_internal for internal symbols used for static fields, remove vo_is_internal
git-svn-id: trunk@14631 -
2010-01-14 03:50:01 +00:00
Jonas Maebe
2c5ed92a4b * fixed search path for httpd units in fpc.cft & fpccfg.inc
(mantis #15501)
  - removed "include path search paths" from default configs, since they
    don't make sense anymore nowadays

git-svn-id: trunk@14630 -
2010-01-12 20:25:28 +00:00
paul
c9987c296e compiler: don't show notes for symbols which are created by static class fields, update ppudump and ppu version
git-svn-id: trunk@14608 -
2010-01-11 06:38:40 +00:00
paul
8166148a37 compiler: 'static' keyword:
- deprecate -St compiler switch
  - remove $STATIC directive
  - unconditionally enable 'static' keyword usage
  - adopt tests, samplecfg, fpc.cft, error messages

git-svn-id: trunk@14569 -
2010-01-07 19:02:09 +00:00
Jonas Maebe
407d60f8a4 * fixed in case fpc is installed under a path containing spaces
git-svn-id: trunk@14524 -
2010-01-02 17:27:03 +00:00
Jonas Maebe
1743c6f1a8 * also recompile a unit if class/object definitions in indirectly used
units have changed, because these can influence the code of the
    current unit in case method signatures changed (mantis #13840)
    + manual test
  * fixed some recompilation crashes related to WPO info
  * clarified the unit_u_add_depend_to message

git-svn-id: trunk@14503 -
2009-12-30 14:03:31 +00:00
Jonas Maebe
d219109b16 * fixed dumping objectdefs after r14185
+ dump wpo info

git-svn-id: trunk@14484 -
2009-12-27 14:26:37 +00:00
florian
092823308a + mips(el) support in the compiler makefile
* regenerated some makefiles to support mipsel-linux

git-svn-id: trunk@14371 -
2009-12-08 19:57:16 +00:00
Jonas Maebe
d1538ab023 o added ARM VPFv2/VFPv3 support:
+ RTL support:
      o VFP exceptions are disabled by default on Darwin,
        because they cause kernel panics on iPhoneOS 2.2.1 at least
      o all denormals are truncated to 0 on Darwin, because disabling
        that also causes kernel panics on iPhoneOS 2.2.1 (probably
        because otherwise denormals can also cause exceptions)
    * set softfloat rounding mode correctly for non-wince/darwin/vfp
      targets
    + compiler support: only half the number of single precision
      registers is available due to limitations of the register
      allocator
    + added a number of comments about why the stackframe on ARM is
      set up the way it is by the compiler
    + added regtype and subregtype info to regsets, because they're
      also used for VFP registers (+ support in assembler reader)
    + various generic support routines for dealing with floating point
      values located in integer registers that have to be transferred to
      mm registers (needed for VFP)
    * renamed use_sse() to use_vectorfpu() and also use it for
      ARM/vfp support
    o only superficially tested for Linux (compiler compiled with -Cpvfpv6
      -Cfvfpv2 works on a Cortex-A8, no testsuite run performed -- at least
      the fpu exception handler still needs to be implemented), Darwin has
      been tested more thoroughly
  + added ARMv6 cpu type and made it default for Darwin/ARM
  + ARMv6+ implementations of atomic operations using ldrex/strex
  * don't use r9 on Darwin/ARM, as it's reserved under certain
    circumstances (don't know yet which ones)
  * changed C-test object files for ARM/Darwin to ARMv6 versions
  * check in assembler reader that regsets are not empty, because
    instructions with a regset operand have undefined behaviour in that
    case
  * fixed resultdef of tarmtypeconvnode.first_int_to_real in case of
    int64->single type conversion
  * fixed constant pool locations in case 64 bit constants are generated,
    and/or when vfp instructions with limited reach are present

  WARNING: when using VFP on an ARMv6 or later cpu, you *must* compile all
    code with -Cparmv6 (or higher), or you will get crashes. The reason is
    that storing/restoring multiple VFP registers must happen using
    different instructions on pre/post-ARMv6.

git-svn-id: trunk@14317 -
2009-12-03 22:46:30 +00:00
marco
b3ec68e2e1 * when "all" target is not used, unit dir was not created.
Added a msg2inc$(exeext) target that forces unitdir creation
	mantis 15116

git-svn-id: trunk@14253 -
2009-11-22 11:36:36 +00:00
Jonas Maebe
2ef18ba527 * use pipes instead of temporary files by default for assembling under
Darwin

git-svn-id: trunk@14227 -
2009-11-20 13:20:01 +00:00
Jonas Maebe
e244acad77 * set default cpu type to pentiumm for darwin/i386 (since the first Macs
with an Intel cpu had a Core Solo)

git-svn-id: trunk@14226 -
2009-11-20 13:07:45 +00:00
pierre
a93c468518 * Revert wrong commit for fpcfg.inc
git-svn-id: trunk@14225 -
2009-11-20 11:09:19 +00:00
pierre
0687f16a04 * Accept weak for Solaris targets
git-svn-id: trunk@14224 -
2009-11-20 11:06:50 +00:00
pierre
57b0a1b0da + Add target_x86_64_solaris constant
git-svn-id: trunk@14221 -
2009-11-20 10:51:02 +00:00
Jonas Maebe
f8754d8fab + Objective-C category support (old and new ABI, both external and
implemented in Pascal). See
    http://wiki.freepascal.org/FPC_PasCocoa#Category_declaration for syntax
    details

git-svn-id: trunk@14196 -
2009-11-16 00:12:08 +00:00
pierre
d12c36ee32 * add to missing CPUs
git-svn-id: trunk@14090 -
2009-11-07 00:23:04 +00:00
Jonas Maebe
a60869fe64 + support for Objective-C classes/protols/options
git-svn-id: branches/objc@14050 -
2009-11-04 16:45:14 +00:00
paul
aa5a5e79ce merge revisions: 13909,13923,13924,13934,13935,13942,13943,13944,13946,13948,13950,13951,13952,13983,13994:
rtl: add enumerators to the basic classes
tests: add enumerators test which compiles and work both by fpc and dcc
compiler: 
  + start for-in loop implementation: implement for-in loop for types (enumerations and ranges), strings, arrays and sets. todo: perform type checking, optimize array and string loops - use temp for expression, implement for-in loop for classes
test:
  + add a simple test for the 'for-in' loop
compiler: fix string for-in loop. now it uses a temp variable to store string expression result
complier: fix for-in array loop. use a temp variable for the loop expression only if loop is not an open array loop
complier: continue enumerator implementation:
  + add operator enumerator which give an ability to add enumerator for an existent type (for example to override builtin string enumerator)
  + add class enumerator support via delphi compatible GetEnumerator method + enumerator class/object template (function MoveNext: Boolean; property Current)
  + tests
compiler: fix for-in loop for arrays. delphi does not copy arrays to a temp variable and it is possible to change array during loop. + test
compiler: add reference for the enumerator operator when it is used + another test for operator enumerator for a class
compiler: add reference for the enumerator operator when it is used + another test for operator enumerator for a class
compiler: enumerator directive support:
  + allow to mark methods and properties by 'enumerator MoveNext' and 'enumerator Current' modifiers. Parser checks return types and duplicates.
  + prefer *marked* by enumerator directive methods and properties than GetEnumerator and Current builtin symbols
  + increase ppu version
  + test
rtl: add IEnumerator and IEnumerable interfaces declarations
tests: for-in loop tests:
  + add small comment at the top of test program
compiler: allow 'enumerator MoveNext' for the interface function declaration + test
compiler: move all for-in loop helpers to the nflw unit
compiler: don't allow the compiler to choose the non-valid enumerator operator for the for-in loop

git-svn-id: trunk@14008 -
2009-11-02 03:24:48 +00:00
paul
e784ec1079 merge revisions 13898-13899:
- compiler: allow message after the *deprecated* keyword
 - compiler: raise an internal error if deprecated message is trying to set to a non clear string pointer

git-svn-id: trunk@13997 -
2009-11-01 14:06:30 +00:00
florian
ea00759588 + final modifier support for methods by Paul Ishenin
-- Zusammenführen von r13887 in ».«:
A    tests/test/tfinal1.pp
U    compiler/msgtxt.inc
U    compiler/msgidx.inc
U    compiler/pdecsub.pas
U    compiler/tokens.pas
U    compiler/symconst.pas
U    compiler/msg/errore.msg
U    compiler/utils/ppudump.pp
-- Zusammenführen von r13890 in ».«:
G    compiler/msgtxt.inc
G    compiler/msgidx.inc
U    compiler/nobj.pas
G    compiler/msg/errore.msg
-- Zusammenführen von r13891 in ».«:
A    tests/test/tfinal2.pp

git-svn-id: trunk@13938 -
2009-10-24 11:48:52 +00:00
florian
eb433d1bdd * merged sealed and abstract support by Paul Ishenin
-- Zusammenführen von r13884 in ».«:
U    compiler/msgtxt.inc
U    compiler/msgidx.inc
U    compiler/pdecsub.pas
U    compiler/pdecobj.pas
U    compiler/tokens.pas
U    compiler/ppu.pas
U    compiler/symconst.pas
U    compiler/msg/errore.msg
U    compiler/utils/ppudump.pp
-- Zusammenführen von r13885 in ».«:
A    tests/test/tsealed1.pp
A    tests/test/tabstract1.pp
A    tests/test/tsealed2.pp
-- Zusammenführen von r13893 in ».«:
A    tests/test/tsealed3.pp
A    tests/test/tsealed4.pp

git-svn-id: trunk@13908 -
2009-10-18 20:05:29 +00:00
Jonas Maebe
e246cac3ac * regenerated using latest fpcmake
git-svn-id: trunk@13487 -
2009-08-02 18:40:14 +00:00
joost
d4c2a35c75 * Use ExeSearch instead of FileSearch to find compiler executable
git-svn-id: trunk@12948 -
2009-03-22 10:03:03 +00:00
Jonas Maebe
4bf254bc32 * added .txt extensions to all README, TODO and COPYING files
(mantis #12358)

git-svn-id: trunk@12825 -
2009-02-28 17:34:08 +00:00
Jonas Maebe
eb40758e9c * updated target list (arm-darwin)
+ added support for ibresources, ibwpofile, ibmainname, iblinkotherframeworks
  * fixed reading of tobjectdef since we started storing the vmt entries as
    part of the objectdef, and since the addition of df_copied_def and 
    po_dispid
  * fixed/completed various copies of enums in symconst/globtype
  + added note to "uses" clause about why we don't just use those units
    (to save people from making the same mistake as me, realising it, and
     having to change everything back)

git-svn-id: trunk@12803 -
2009-02-26 22:50:22 +00:00
Tomas Hajny
7bb670800d * -Ratt removed from default fp.cfg - it is not necessary and makes troubles under sparc
git-svn-id: trunk@12714 -
2009-02-08 01:00:02 +00:00
Jonas Maebe
1bda0686d9 * fixed paths to http units (mantis #13065)
git-svn-id: trunk@12625 -
2009-01-29 10:10:18 +00:00
florian
bd0aa27a14 + build instruction table generators
git-svn-id: trunk@12610 -
2009-01-26 14:20:49 +00:00
Tomas Hajny
c75c2e06e1 * additional safeguards - double quotes around environment variables plus avoid checking for $fpcfgfile and $fpinifile if no $FPBIN found
git-svn-id: trunk@12554 -
2009-01-17 09:55:25 +00:00
joost
9506c91614 * Fixed script
git-svn-id: trunk@12552 -
2009-01-16 16:53:27 +00:00
Tomas Hajny
d8827829d6 * fix for potential security issue with ~/.fp directory owned by root
git-svn-id: trunk@12536 -
2009-01-10 23:42:03 +00:00
joost
73f31da836 * Use a single = to compare string values
git-svn-id: trunk@12490 -
2009-01-03 17:27:47 +00:00
joost
d97232c2b1 * Use version number without rc-suffix in the fp base dir
git-svn-id: trunk@12476 -
2009-01-02 20:54:13 +00:00
joost
5ef8122b16 * Removed Oppentium3 compiler flag from default ide configuration files because the flag is not valid on all platforms
git-svn-id: trunk@12468 -
2009-01-02 10:36:42 +00:00
joost
c031a1fcde * If the local-configuration directory is used and does not exist, attempt to create it
* Removed a hard-coded reference to the fpcdir

git-svn-id: trunk@12465 -
2009-01-01 23:46:43 +00:00
Tomas Hajny
4e2676ca13 + samplecfg able to create default configuration for IDE now
git-svn-id: trunk@12457 -
2008-12-30 02:05:07 +00:00
Jonas Maebe
b25b406b56 Merged revisions 11894,12317 via svnmerge from
svn+ssh://jonas@svn.freepascal.org/FPC/svn/fpc/branches/wpo

........
r11894 | jonas | 2008-10-13 00:13:19 +0200 (Mon, 13 Oct 2008) | 3 lines

  * fixed error that only really caused progblems if the total size
    of the messages text is a multiple of 240

........
r12317 | jonas | 2008-12-08 20:03:53 +0100 (Mon, 08 Dec 2008) | 3 lines

  * fixed error in fix committed r11894 (we don't write out the last new
    line, but we have to reserve memory for the terminating #0)

........

git-svn-id: trunk@12333 -
2008-12-10 21:33:53 +00:00
michael
73c40daa30 * Better TeX escape character checking
git-svn-id: trunk@12321 -
2008-12-10 19:03:36 +00:00
peter
a3a66ba74d * split tvisibility from tsymoptions
* replace current_object_option with symtable.currentvisibility

git-svn-id: trunk@12048 -
2008-11-11 09:05:39 +00:00
marco
e5db5e4aa8 * regened makefiles to propagate makefile versions
git-svn-id: trunk@11947 -
2008-10-22 17:32:15 +00:00