Commit Graph

494 Commits

Author SHA1 Message Date
daniel
21293f5818 + Add common type integer promotion.
- {$intpromotion common_type} or -CIcommon_type switches to common type promotion.
    - {$intpromotion native_integer} or -CIcommon_type switches to current behaviour.
    - Default in tp mode is common_type, native_integer in other modes
    - Compiler can cycle with -CIcommon_type
    - Still needs checking on other architectures than i386

git-svn-id: trunk@8118 -
2007-07-21 19:16:24 +00:00
florian
fa2a2b0bd0 * generics without specialization can't be used as a type, resolves #9225
git-svn-id: trunk@8116 -
2007-07-21 17:39:49 +00:00
michael
61dae2cf4f * Patch from Ido Kanner to update translations
git-svn-id: trunk@8098 -
2007-07-18 21:12:15 +00:00
florian
fe59d1fe9e * updates from Karl-Michael Schindler
git-svn-id: trunk@7916 -
2007-07-01 21:04:33 +00:00
Jonas Maebe
c6ffa724f3 * clarified pointer->integer warning
git-svn-id: trunk@7907 -
2007-07-01 15:27:21 +00:00
daniel
4ea8448c6d + Warn when converting pointers to signed types.
git-svn-id: trunk@7884 -
2007-07-01 09:05:11 +00:00
daniel
45832d4314 + New hint; for exmaple int64:=longint+longint says "Converting the operands to
int64 before addition could prevent an overflow error."

git-svn-id: trunk@7817 -
2007-06-26 07:52:04 +00:00
florian
078f6e05fa * typos corrected
git-svn-id: trunk@7653 -
2007-06-13 20:49:09 +00:00
daniel
b15740c0e5 - Remove -Mgpc from command line options.
git-svn-id: trunk@7637 -
2007-06-13 06:13:51 +00:00
florian
c7100799ed + forbid usage of $E on targets supporting no fpu emulation
- disabled -Cfsoft on i386

git-svn-id: trunk@7625 -
2007-06-10 17:03:26 +00:00
Jonas Maebe
20b99dade3 - reverted r7600, see additional comments in mantis #9027
git-svn-id: trunk@7606 -
2007-06-09 17:14:28 +00:00
Jonas Maebe
5a8679131f + support for new/dispose with extra size parameter in macpas mode
(mantis #9027)

git-svn-id: trunk@7600 -
2007-06-08 18:02:31 +00:00
florian
af352cda24 Merged revisions 7586 via svnmerge from
http://svn.freepascal.org/svn/fpc/branches/ssa/compiler

........
  r7586 | florian | 2007-06-05 20:19:26 +0200 (Di, 05 Jun 2007) | 1 line
  
  * updates from Karl-Michael Schindler
........

git-svn-id: trunk@7587 -
2007-06-05 18:22:54 +00:00
florian
7b519c1ce3 * prevent usage of units being compiled with different fpu emulation state
git-svn-id: trunk@7501 -
2007-05-28 16:18:35 +00:00
michael
001ba5de84 * Applied patch from Ido Kanner
git-svn-id: trunk@7446 -
2007-05-24 07:42:39 +00:00
peter
b29e4ad12f * add used by unit to can't find unit message
git-svn-id: trunk@7430 -
2007-05-23 13:40:27 +00:00
florian
9f56a89617 + added cyrillic code page tables
+ support -Fm<x> to load unicode tables from rtl/ucmaps, they must be in the same dir as the compiler though

git-svn-id: trunk@7420 -
2007-05-22 19:38:39 +00:00
florian
85406e8a15 * updates from Karl-Michael Schindler
git-svn-id: trunk@7295 -
2007-05-07 12:02:32 +00:00
Jonas Maebe
de1af478c3 * do not allow passing properties as var parameters (mantis #8777)
* do not allow assignments to fields of structured properties (e.g.
    property prop: trec read frec; ... instance.prop.frec.a:=5) 
  * clarified some related error messages
  + several extra tests for the above and related things

git-svn-id: trunk@7250 -
2007-05-03 14:08:03 +00:00
Tomas Hajny
81a711881d * added missing word in message explanation
git-svn-id: trunk@7186 -
2007-04-29 09:48:53 +00:00
florian
2eb40fc025 * forbid file types as function results
git-svn-id: trunk@7180 -
2007-04-28 18:32:03 +00:00
Jonas Maebe
6b414c3e89 * "too much registers" -> "too many registers"
git-svn-id: trunk@7014 -
2007-03-28 13:17:38 +00:00
Jonas Maebe
96d1a246ee * fixed typos (MacOS -> Mac OS)
git-svn-id: trunk@6932 -
2007-03-19 13:45:16 +00:00
florian
173e023e22 * german and english error file updates from Karl-Michael Schindler
git-svn-id: trunk@6862 -
2007-03-14 21:13:31 +00:00
Tomas Hajny
a62c2da154 * updates from Ido Kanner - synchronized with errore.msg r6685
git-svn-id: trunk@6707 -
2007-03-03 22:13:42 +00:00
Tomas Hajny
b512e234c9 * updates from Ido Kanner - synchronized with errore.msg r6685
git-svn-id: trunk@6706 -
2007-03-03 22:13:29 +00:00
michael
6397ad6909 * Proper LaTeX environment ending
git-svn-id: trunk@6685 -
2007-02-28 21:29:45 +00:00
florian
fd392dc2b6 * allow inherited; calling abstract methods in delphi mode, resolves #5896
git-svn-id: trunk@6651 -
2007-02-25 18:46:10 +00:00
peter
bb33395686 * support public also for initialized variables
git-svn-id: trunk@6650 -
2007-02-25 17:51:28 +00:00
Tomas Hajny
b130d4f30e * final period removed from -gp message
git-svn-id: trunk@6647 -
2007-02-25 16:55:34 +00:00
Jonas Maebe
358546ec2f * optimisatie/optimizatie/optimalizatie -> optimalisatie
* synchronised info regarding optimization switches with English version

git-svn-id: trunk@6640 -
2007-02-25 14:34:37 +00:00
daniel
4fc3703900 * Spelling improved.
git-svn-id: trunk@6638 -
2007-02-25 09:23:05 +00:00
florian
301be02148 * forbid anonymous generic specializations
git-svn-id: trunk@6627 -
2007-02-24 10:06:53 +00:00
michael
651c5c3b8c * Applied patch to preserve case in stabs info (-gp)
git-svn-id: trunk@6612 -
2007-02-23 10:43:42 +00:00
florian
247a8b2698 * indoniesan language update by Zaenal Mutaqin
git-svn-id: trunk@6364 -
2007-02-07 20:28:54 +00:00
michael
644795c316 * Improved hebrew translations from Ido Kanner
git-svn-id: trunk@6326 -
2007-02-03 19:53:26 +00:00
pierre
b172694e82 + new warning for assembler that does not support debug information
git-svn-id: trunk@6194 -
2007-01-26 05:04:07 +00:00
Jonas Maebe
c866400823 + support for VMTOFFSET in assembler readers to get VMT offset of virtual
methods (mantis #8153)

git-svn-id: trunk@6168 -
2007-01-24 18:26:23 +00:00
Jonas Maebe
1fb6bc1cba * updated copyright message for 2007
git-svn-id: trunk@6059 -
2007-01-18 21:51:54 +00:00
florian
ad7e261a04 * forbid to take the address of a label defined outside of the current procedure
git-svn-id: trunk@5974 -
2007-01-14 19:21:37 +00:00
Jonas Maebe
c0eb91ffc8 * fixed error message for trying to assign to formal parameters and
to open arrays (mantis #8111)

git-svn-id: trunk@5950 -
2007-01-13 18:20:06 +00:00
florian
76dc5ab588 + support of -fPIC (is equivalent to -Cg) so people won't be confused if ld tells them to recompile their code with -fPIC
git-svn-id: trunk@5934 -
2007-01-12 22:27:20 +00:00
peter
1b4775d46c * more tex fixes
git-svn-id: trunk@5851 -
2007-01-08 17:00:38 +00:00
peter
b5252ef8ba * fix description end
git-svn-id: trunk@5850 -
2007-01-08 16:35:44 +00:00
Jonas Maebe
4003047c42 * recommanded -> recommended
git-svn-id: trunk@5846 -
2007-01-08 13:38:35 +00:00
florian
2ccba3604c * fixed generation of constants containing a vmt
* better error message if such a construct is used in fpc where it isn't allowed

git-svn-id: trunk@5838 -
2007-01-07 10:39:06 +00:00
Jonas Maebe
efd1e86418 * give a verbose fatal error instead of an internalerror when a required
system unit type is not found

git-svn-id: trunk@5820 -
2007-01-05 19:43:28 +00:00
florian
a2ec2e72b6 * better hint about abstract methods (fixes 5098)
+ code generation for invoking dispinterface methods
* small dispinterface problems fixed

git-svn-id: trunk@5798 -
2007-01-03 19:14:31 +00:00
florian
c4d96ec538 * only non generic types can be used when specializing generics, fixes 7735
git-svn-id: trunk@5754 -
2006-12-30 21:51:24 +00:00
pierre
fc66d46beb + added several warnings about use of references
involving (%ebp) or (%esp) in assembler code.
   Useful to track code that might suffer from regcall
   convention.

git-svn-id: trunk@5736 -
2006-12-29 09:37:15 +00:00
Jonas Maebe
f308bfb45c * fixed mantis 6686 ("function a;" without prior definition of "a"
accepted in Delphi mode + extra test case where something similar
    has to succeed)

git-svn-id: trunk@5698 -
2006-12-24 10:48:49 +00:00
tom_at_work
949aa60805 * DWARF debug lineinfo reader
git-svn-id: trunk@5632 -
2006-12-17 23:11:25 +00:00
Jonas Maebe
9e60d6791d * show name of procedure/function called with too few parameters
git-svn-id: trunk@5522 -
2006-12-01 20:15:57 +00:00
Tomas Hajny
eb46534f92 * update by Ido Kanner - 3 messages were excluded from docs, fixed
git-svn-id: trunk@5498 -
2006-11-26 18:56:43 +00:00
Tomas Hajny
8966d54b4b * updates by Ido Kanner - errore.msg rev. 5473
git-svn-id: trunk@5497 -
2006-11-26 18:55:55 +00:00
florian
d47dc38f2c * ignore PIC directive on windows and warn about it
git-svn-id: trunk@5479 -
2006-11-25 22:58:52 +00:00
florian
f8072062bc * update german error files by Karl-Michael Schindler
git-svn-id: trunk@5478 -
2006-11-25 21:49:13 +00:00
florian
43ba7cfe6f * correct name of set packing directive is PACKSET
git-svn-id: trunk@5313 -
2006-11-10 19:56:19 +00:00
florian
667baf433d + new switch -CPSETALLOC=<y> to influence set sizes
git-svn-id: trunk@5299 -
2006-11-09 20:41:33 +00:00
florian
c947295cb8 + ttertiarynode
* traise node refactored using tertiarynode
* more dipatch stuff

git-svn-id: trunk@5215 -
2006-11-03 23:03:31 +00:00
florian
4c76107b98 * limited generics to records, classes, objects and interfaces
git-svn-id: trunk@5171 -
2006-11-02 09:48:17 +00:00
florian
1275e7d109 * forbid usage of TYPE and VAR inside of common classes/objects
git-svn-id: trunk@5170 -
2006-11-02 09:12:59 +00:00
Jonas Maebe
36c6879581 + -Sx command line switch to turn on exception keywords in non-Delphi/ObjFPC
modes (mainly for MacPas, to replace nested gotos with exceptions)

git-svn-id: trunk@4984 -
2006-10-20 12:54:47 +00:00
florian
9a1b9071a5 * implemented kylix like local directive, fixes #7242
git-svn-id: trunk@4982 -
2006-10-19 20:26:14 +00:00
Jonas Maebe
593f74d155 + full support for varargs-related functionality for "mwpascal; external;"
functions

git-svn-id: trunk@4910 -
2006-10-14 17:56:42 +00:00
micha
dfd3b2503e add message for {$T+} unportability
git-svn-id: trunk@4821 -
2006-10-07 19:21:32 +00:00
micha
a3c1250cd3 do not search for sources of released ppu files
git-svn-id: trunk@4818 -
2006-10-07 09:45:40 +00:00
peter
5de217f04c * movzx reference size fallback to byte for delphi mode
git-svn-id: trunk@4768 -
2006-10-02 17:33:52 +00:00
florian
274c1ca74e * updates from Karl-Michael Schindler
git-svn-id: trunk@4738 -
2006-09-27 12:00:02 +00:00
florian
d9d6ca15e1 * misplaced messages fixed
git-svn-id: trunk@4737 -
2006-09-27 11:59:46 +00:00
Tomas Hajny
7c86c5abec * updates by Ido Kanner - on par with errore.msg r4710
git-svn-id: trunk@4723 -
2006-09-25 20:14:07 +00:00
florian
569c4871fc + first batch of varset support, as long as packset isn't changed, it doesn't change anything
git-svn-id: trunk@4710 -
2006-09-24 14:40:11 +00:00
Tomas Hajny
c4d5e5d2bb * updates by Ido Kanner - on par with errore.msg r4577
git-svn-id: trunk@4620 -
2006-09-14 20:26:01 +00:00
Jonas Maebe
3a54183ce8 * clarified errors regarding invalid uses of packed array/record fields
git-svn-id: trunk@4577 -
2006-09-09 08:17:37 +00:00
Jonas Maebe
758a1ab5b0 * allow taking the address of packed array elements if the element size
is a multiple of 8 bits

git-svn-id: trunk@4576 -
2006-09-09 07:49:43 +00:00
peter
d1e7a68289 * include para number in call by var error
git-svn-id: trunk@4557 -
2006-09-04 21:14:22 +00:00
florian
8fc17f4d7d * updates from Karl-Michael Schindler
+ utf-8 version

git-svn-id: trunk@4523 -
2006-08-31 15:04:39 +00:00
Tomas Hajny
e63fae2de1 * updates corresponding to errore.msg r4489
git-svn-id: trunk@4497 -
2006-08-23 22:28:22 +00:00
Tomas Hajny
580749cd45 * previous wrong commit fixed
git-svn-id: trunk@4495 -
2006-08-23 22:21:54 +00:00
Jonas Maebe
1f42ee201b + support for bitpacked records, except for:
* rtti
    * typed constants

git-svn-id: trunk@4489 -
2006-08-23 15:44:13 +00:00
Jonas Maebe
eccbc78e04 + support for bitpacked arrays:
+ use {$bitpacking on/+} to change the meaning of "packed"
      into "bitpacked" for arrays. This is the default for MacPas.
      You can also define individual arrays as "bitpacked", but
      this is not encouraged since this keyword is not known by
      other compilers and therefore makes your code unportable.
    + pack(unpackedarray,index,packedarray) to pack
      length(packedarray) elements starting at
      unpackedarray[index] into packedarray.
    + unpack(packedarray,unpackedarray,index) to unpack
      packedarray into unpackedarray, with the first
      element being stored at unpackedarray[index]
  * todo:
    * "open packed arrays" and rtti for packed arrays are not
      yet supported
    * gdb does not properly support bitpacked arrays

git-svn-id: trunk@4449 -
2006-08-19 12:54:12 +00:00
Tomas Hajny
e27023c716 * one more cosmetic change (blank line removed)
git-svn-id: trunk@4446 -
2006-08-19 12:19:54 +00:00
Tomas Hajny
a994daf17f * slight change of the Hebrew translation
git-svn-id: trunk@4445 -
2006-08-19 11:25:33 +00:00
Tomas Hajny
bcf5490dfb * the Hebrew translation by Ido Kanner finished
git-svn-id: trunk@4436 -
2006-08-18 20:03:38 +00:00
Tomas Hajny
0d98f6fde3 * typo in description fixed
git-svn-id: trunk@4406 -
2006-08-11 20:48:17 +00:00
Tomas Hajny
2dc06c2657 + UTF-8 version of Hebrew translation by Ido Kanner
git-svn-id: trunk@4402 -
2006-08-11 20:09:29 +00:00
Tomas Hajny
aa6137b12b * next part of translation by Ido Kanner
git-svn-id: trunk@4400 -
2006-08-10 06:03:30 +00:00
Tomas Hajny
0171c4c804 * typo fixed (committes -> committed)
git-svn-id: trunk@4394 -
2006-08-08 20:54:28 +00:00
Jonas Maebe
6fd4c50f0a * give proper error message when upper or lower bound of array type is out
of range (bounds error instead of "upper bound lower than lower bound")

git-svn-id: trunk@4383 -
2006-08-07 14:42:21 +00:00
Tomas Hajny
e5dc751f95 * another bunch of updates from Ido Kanner
git-svn-id: trunk@4380 -
2006-08-06 21:03:55 +00:00
Tomas Hajny
590ad5b516 * the last forgotten Mircosoft ;-)
git-svn-id: trunk@4367 -
2006-08-06 09:44:43 +00:00
Tomas Hajny
56b8f5fa15 * descriptions newly added to errore.msg 'merged'
git-svn-id: trunk@4366 -
2006-08-06 09:22:03 +00:00
Tomas Hajny
b9d4463c81 * missing pieces (especially for help pages) added
git-svn-id: trunk@4365 -
2006-08-06 09:20:48 +00:00
Tomas Hajny
0199113303 * corrected spelling in description - 'is redefine.'
git-svn-id: trunk@4364 -
2006-08-06 09:13:37 +00:00
Jonas Maebe
5f699c7838 + -gt, -gtt, -gttt and -gtttt switches to trash local variables with
different values (resp. $55, $AA, $EF and $00) in function/procedure
    prologs to help find uninitialized uses. Should still be extended
    for "out" parameters.

git-svn-id: trunk@4271 -
2006-07-20 22:54:23 +00:00
Tomas Hajny
58cbcae50b * translation of next part by Ido Kanner
git-svn-id: trunk@4262 -
2006-07-19 22:17:24 +00:00
Tomas Hajny
0e0a86428e * spelling mistake corrected by Ido Kanner
git-svn-id: trunk@4261 -
2006-07-19 22:06:08 +00:00
Tomas Hajny
1acce9da8f * updates by Ido Kanner
git-svn-id: trunk@4251 -
2006-07-18 19:00:15 +00:00
michael
576c6a3cbb + Fixed a LaTeX error
git-svn-id: trunk@4237 -
2006-07-16 21:01:06 +00:00
Tomas Hajny
99e0c62cc7 * eternal -> external
git-svn-id: trunk@4215 -
2006-07-15 20:18:40 +00:00
michael
48d24a6a05 + Documented a lot of messages
git-svn-id: trunk@4214 -
2006-07-15 18:44:12 +00:00
florian
57f097a710 * made dir_warn code more clear, no implementation yet
git-svn-id: trunk@4200 -
2006-07-14 21:45:21 +00:00
Tomas Hajny
fefc80431a + French message file in ISO 8859-1
git-svn-id: trunk@4170 -
2006-07-13 23:47:13 +00:00
Tomas Hajny
33215508c1 * e-mail address for bugs corrected
git-svn-id: trunk@4168 -
2006-07-13 23:28:20 +00:00
Tomas Hajny
419ab6aeac + allow output of full version in QuickInfo
git-svn-id: trunk@4165 -
2006-07-13 23:06:46 +00:00
chrivers
ca37943c16 Added "based on" info
git-svn-id: trunk@4132 -
2006-07-09 00:10:36 +00:00
chrivers
cff92951c2 Fixed a FIXME in the danish translation
git-svn-id: trunk@4131 -
2006-07-09 00:07:08 +00:00
Tomas Hajny
7d10f5aec3 * $FPCVER->$FPCVERSION, $FPCFULLVERSION in logo, copyright
git-svn-id: trunk@4124 -
2006-07-08 14:11:42 +00:00
chrivers
72a6566069 Recoded ISO8859-1 => UTF-8, added codepage comment in header
git-svn-id: trunk@4088 -
2006-07-03 12:47:15 +00:00
chrivers
a4ea0726ef First version of the danish language file
git-svn-id: trunk@4084 -
2006-07-02 20:06:26 +00:00
Tomas Hajny
6e1cf50d94 * $FPCVER -> $FPCFULLVERSION/$FPCVERSION, formatting of help and year 2006
git-svn-id: trunk@4056 -
2006-07-01 23:28:13 +00:00
Tomas Hajny
12c8ab60e0 * 11018 and 11019 are warnings now
git-svn-id: trunk@4054 -
2006-07-01 23:27:33 +00:00
Tomas Hajny
8feb7f9fef * $FPCVER -> $FPCFULLVERSION/$FPCVERSION
git-svn-id: trunk@4052 -
2006-07-01 22:52:03 +00:00
Tomas Hajny
64b08bf468 * $FPCVERSION -> $FPCFULLVERSION
git-svn-id: trunk@4051 -
2006-07-01 22:45:08 +00:00
Tomas Hajny
6e81f1adc5 * note about used codepage added
git-svn-id: trunk@4042 -
2006-07-01 21:11:14 +00:00
Tomas Hajny
bccee05a0d * another fix for issues with file exported from online translation module
git-svn-id: trunk@4041 -
2006-07-01 20:41:34 +00:00
Tomas Hajny
5bd5e4789a * fixes for issues with file exported from online translation module (&nbsp;)
git-svn-id: trunk@4036 -
2006-07-01 14:54:56 +00:00
Tomas Hajny
a577392fd8 * Updates from Matthijs Willemstein
git-svn-id: trunk@4035 -
2006-07-01 13:27:06 +00:00
Tomas Hajny
021a627cd5 * Updates from Ido Kanner
git-svn-id: trunk@4026 -
2006-06-30 21:11:29 +00:00
Tomas Hajny
14c14d052f * spelling correction by Ido/ik
git-svn-id: trunk@4025 -
2006-06-30 21:07:03 +00:00
Tomas Hajny
c88b2e8369 * Updates from Zaenal Mutaqin
git-svn-id: trunk@4021 -
2006-06-30 20:26:42 +00:00
Tomas Hajny
5270b9fa7d * information about errore.msg revision
git-svn-id: trunk@4020 -
2006-06-30 20:24:03 +00:00
Tomas Hajny
49f059f576 * Updates from Ari Ricardo Ody
git-svn-id: trunk@3984 -
2006-06-27 21:52:13 +00:00
Tomas Hajny
f2ac8b64d9 * bugrep -> bugs
git-svn-id: trunk@3983 -
2006-06-27 21:49:32 +00:00
Tomas Hajny
98721d30f4 * bugrep -> bugs
git-svn-id: trunk@3982 -
2006-06-27 21:46:06 +00:00
florian
ac8170006e * latest updates from Karl-Michael Schindler
git-svn-id: trunk@3978 -
2006-06-27 13:55:30 +00:00
florian
dc2bef3875 + implemented directives $setpeflags, $maxstacksize, $minstacksize and $imagebase, fixes #6349 and #6714
git-svn-id: trunk@3935 -
2006-06-25 10:22:42 +00:00
Tomas Hajny
50a8ef63a8 * contact information for contributors/maintainers added
git-svn-id: trunk@3929 -
2006-06-24 17:53:22 +00:00
florian
03a0a4ca71 * updates from Karl-Michael Schindler
git-svn-id: trunk@3805 -
2006-06-05 13:42:17 +00:00
florian
daeda1b9e0 * fixed error msg (that->this)
* array properties can be published in delphi mode though it makes no sense to publish them because they can't be streamed

git-svn-id: trunk@3694 -
2006-05-27 15:24:55 +00:00
florian
d4848169e1 * as operator isn't allowed for non com interfaces
git-svn-id: trunk@3646 -
2006-05-23 18:52:56 +00:00
peter
4790838455 * add -Xi and -Xe
git-svn-id: trunk@3621 -
2006-05-21 20:18:50 +00:00
florian
1928cd1e60 + Indonesian message file from Zaenal Mutaqin
git-svn-id: trunk@3497 -
2006-05-13 18:19:14 +00:00
florian
10520ba9a7 * updates from Karl-Michael Schindler
git-svn-id: trunk@3492 -
2006-05-13 15:51:34 +00:00
florian
c6787b52a7 + compile the svn revision into the compiler, to do so, a file compiler/revision.inc must exist which is updated then
git-svn-id: trunk@3491 -
2006-05-13 15:25:36 +00:00
florian
06e7d4be7a + dispid parsing
git-svn-id: trunk@3378 -
2006-04-30 08:25:36 +00:00
Jonas Maebe
608f7de834 * fixed typo in comments
git-svn-id: trunk@3205 -
2006-04-14 09:16:43 +00:00
Jonas Maebe
05540cad44 * give an error for {$calling } (i.e., when a procedure directive is
missing)

git-svn-id: trunk@3193 -
2006-04-12 07:58:25 +00:00
Tomas Hajny
c17b57db07 + Statistics of warnings, hints and notes - (modified/fixed) patch from Naj Kejah, part of wishlist item 4897, plus hardcoded text moved to message file
git-svn-id: trunk@3181 -
2006-04-09 11:54:09 +00:00
florian
061162d9da + new messages from Karl-Michael Schindler
git-svn-id: trunk@3000 -
2006-03-21 13:23:46 +00:00
florian
5bb20f65bd * error corrections from Karl-Michael Schindler
git-svn-id: trunk@2999 -
2006-03-21 13:21:23 +00:00
Jonas Maebe
4db6e1ddb8 * moved type conversion of C varargs from tcallnode to
tarrayconstructornode.inset_typeconvs() and fixed them:
    * integers < 32 bit are converted to 32 bit (this was previously
      done in the code generator for some targets, and not for others)
    * currency is also converted to double for targets where currency = int64
    * single is converted to double, except for x86_64 (is at least
      necessary on darwin/ppc, darwin/i386 and linux/i386)
    * enums are converted to 32 bit ints
    * procvars are converted to pointers
    * proper errors are given for various unsupported types
   NOTE: in C, floating point constants are by default double, while in
    FPC they are of type extended. On platforms where extended <> double,
    such constants when passed to C varargs are automatically converted
    to double by default (gives warning). If you want to pass them as
    single or extended or get rid of the warning, use an explicit typecast
  * increased ppu version because of introduction of new node flag
    (nf_cvarargs for tarrayconstructornode)
  * fixed tests/test/cg/tprintf
  * changed tests/test/cg/cdecl/taoc5 to use explicit typecasts for
    floating point constants passed to C varargs functions.

git-svn-id: trunk@2949 -
2006-03-17 22:26:48 +00:00
peter
eb725d4e44 Merged revisions 2908,2911,2913-2917 via svnmerge from
http://svn.freepascal.org/svn/fpc/branches/linker/compiler

........
r2908 | peter | 2006-03-13 13:35:48 +0100 (Mon, 13 Mar 2006) | 2 lines

  * merge trunk upto r2907

........
r2911 | peter | 2006-03-13 18:08:00 +0100 (Mon, 13 Mar 2006) | 2 lines

  * rename values to make room for operand size codes

........
........
........
r2915 | peter | 2006-03-14 13:51:35 +0100 (Tue, 14 Mar 2006) | 2 lines

  * check aktcputype

........
r2916 | peter | 2006-03-14 15:06:32 +0100 (Tue, 14 Mar 2006) | 3 lines

  * merge 300 opcodes
  * more 64bit versions of opcodes

........
r2917 | peter | 2006-03-14 17:34:03 +0100 (Tue, 14 Mar 2006) | 3 lines

  * x86_64 tables
  * convert movq with normal registers to mov

........

git-svn-id: trunk@2931 -
2006-03-16 08:09:28 +00:00
peter
2888a21593 * list supported optimization options in -i
* support $OPTIMIZATION and $O+

git-svn-id: trunk@2904 -
2006-03-13 11:17:56 +00:00
peter
b6e35a200e * rewrite of optimizer options
git-svn-id: trunk@2901 -
2006-03-13 09:05:50 +00:00
florian
5ece7cbc2f * first part of x86-64 assembler
git-svn-id: trunk@2824 -
2006-03-09 22:05:16 +00:00
peter
785550d7e3 Merged revisions 2669,2673,2677,2683,2696,2699-2702,2704,2708,2712-2715,2718,2722-2723,2728-2730,2740,2769 via svnmerge from
svn+ssh://peter@www.freepascal.org/FPC/svn/fpc/branches/linker/compiler

........
r2669 | peter | 2006-02-23 09:31:21 +0100 (Thu, 23 Feb 2006) | 2 lines

  * add compiler dir

........
r2673 | peter | 2006-02-23 17:08:56 +0100 (Thu, 23 Feb 2006) | 2 lines

  * enabled more code

........
r2677 | peter | 2006-02-24 17:46:29 +0100 (Fri, 24 Feb 2006) | 2 lines

  * pe stub and headers

........
r2683 | peter | 2006-02-25 23:13:24 +0100 (Sat, 25 Feb 2006) | 2 lines

  * section options cleanup

........
r2696 | peter | 2006-02-26 20:27:41 +0100 (Sun, 26 Feb 2006) | 2 lines

  * fixed typecasts

........
r2699 | peter | 2006-02-26 23:04:32 +0100 (Sun, 26 Feb 2006) | 2 lines

  * simple linking works

........
r2700 | peter | 2006-02-27 09:44:50 +0100 (Mon, 27 Feb 2006) | 2 lines

  * internal linker script

........
r2701 | peter | 2006-02-27 12:05:12 +0100 (Mon, 27 Feb 2006) | 2 lines

  * make elf working again

........
r2702 | peter | 2006-02-27 14:04:43 +0100 (Mon, 27 Feb 2006) | 3 lines

  * disable dwarf for smartlinking with .a
  * fix section start in new .a file

........
r2704 | peter | 2006-02-27 18:30:43 +0100 (Mon, 27 Feb 2006) | 2 lines

  * stab section fixes

........
r2708 | peter | 2006-02-28 19:29:17 +0100 (Tue, 28 Feb 2006) | 2 lines

  * basic work to merge stabs sections

........
r2712 | peter | 2006-02-28 23:17:48 +0100 (Tue, 28 Feb 2006) | 2 lines

  * unload tmodules before linking

........
r2713 | peter | 2006-02-28 23:18:51 +0100 (Tue, 28 Feb 2006) | 2 lines

  * fixed stabs linking

........
r2714 | peter | 2006-02-28 23:19:19 +0100 (Tue, 28 Feb 2006) | 2 lines

  * show code and data size

........
r2715 | peter | 2006-02-28 23:25:35 +0100 (Tue, 28 Feb 2006) | 2 lines

  * unload .stabs from objdata after it is merged

........
r2718 | peter | 2006-03-01 12:24:38 +0100 (Wed, 01 Mar 2006) | 3 lines

  * memsize/datasize cleanup
  * check for exports/resources when adding module to linker

........
r2722 | peter | 2006-03-03 09:12:20 +0100 (Fri, 03 Mar 2006) | 2 lines

  * new TObjSymbol splitted from TAsmSymbol

........
r2723 | peter | 2006-03-03 14:08:55 +0100 (Fri, 03 Mar 2006) | 2 lines

  * coff fixes after recent objsymbol changes

........
r2728 | peter | 2006-03-03 22:43:04 +0100 (Fri, 03 Mar 2006) | 2 lines

  * fixed coff writer

........
r2729 | peter | 2006-03-04 01:10:32 +0100 (Sat, 04 Mar 2006) | 2 lines

  * fix read-only opening

........
r2730 | peter | 2006-03-04 01:11:16 +0100 (Sat, 04 Mar 2006) | 2 lines

  * Read edata from DLLs, basic work

........
r2740 | peter | 2006-03-04 21:13:43 +0100 (Sat, 04 Mar 2006) | 3 lines

  * deletedef added
  * don't remove defs from index when we are already clearing everything

........
r2769 | peter | 2006-03-05 21:42:33 +0100 (Sun, 05 Mar 2006) | 4 lines

  * moved TObj classes to ogbase
  * ObjSection.SymbolRefs and SymbolDefines list
  * DLL importing

........

git-svn-id: trunk@2771 -
2006-03-05 21:10:37 +00:00
Jonas Maebe
2c01a6f77a + added extra info about when parser_e_illegal_assignment_to_count_var
can happen

git-svn-id: trunk@2724 -
2006-03-03 19:29:07 +00:00
Jonas Maebe
c15b500e32 + warn if a static variable is read but not assigned (tw4781*)
git-svn-id: trunk@2472 -
2006-02-07 21:23:02 +00:00
florian
844e78b401 * error corrections for message files from Karl-Michael Schindler
git-svn-id: trunk@2217 -
2006-01-08 09:18:08 +00:00
Károly Balogh
cd38c236a0 + made the compiler to know about PowerPC AmigaOS
git-svn-id: trunk@2201 -
2006-01-07 04:46:27 +00:00
Jonas Maebe
cbaa100654 * "fixed" web bugs 3183 and 4403 by breaking the parser in
Delphi mode so that you can change the return type of
    overriding interface methods into anything you want.
    You will get a nasty warning though.

git-svn-id: trunk@2168 -
2006-01-04 22:21:05 +00:00
florian
629b765688 * updated message file from Karl-Michael Schindler
git-svn-id: trunk@2151 -
2006-01-04 10:00:07 +00:00
florian
3ccec3fbdd * proper error if a directory is passed as configuration file
git-svn-id: trunk@2134 -
2006-01-02 21:07:15 +00:00
Jonas Maebe
cd69c36f17 * commited -> committed (fix for web bug #4642, by Vincent Snijders)
git-svn-id: trunk@2099 -
2005-12-31 17:30:22 +00:00
Jonas Maebe
021dabc37e * also honour vsf_use_hints for uninitialised warnings for the
function result variable

git-svn-id: trunk@2052 -
2005-12-26 14:44:03 +00:00
florian
1e4e857719 * apptype causes only a note on system not supporting apptype
git-svn-id: trunk@1827 -
2005-11-26 21:54:15 +00:00
Tomas Hajny
9032cdafbe * fix of buggy output for -? with path containing underscore
git-svn-id: trunk@1772 -
2005-11-16 19:00:21 +00:00
Tomas Hajny
50f03555bd * fix of buggy output for -? with path containing underscore
git-svn-id: trunk@1771 -
2005-11-16 18:59:57 +00:00
Tomas Hajny
55c67978a3 * fix of buggy output for -? with path containing underscore
git-svn-id: trunk@1770 -
2005-11-16 18:59:33 +00:00
Tomas Hajny
b94665c39f * fix of buggy output for -? with path containing underscore
git-svn-id: trunk@1769 -
2005-11-16 18:47:52 +00:00
Tomas Hajny
614b6a3816 * fix of buggy output for -? with path containing underscore
git-svn-id: trunk@1768 -
2005-11-16 18:47:29 +00:00
Tomas Hajny
20ca9f5fac * fix of buggy output for -? with path containing underscore
git-svn-id: trunk@1767 -
2005-11-16 18:46:15 +00:00
Tomas Hajny
f3c9fb62fa * fix of buggy output for -? with path containing underscore
git-svn-id: trunk@1766 -
2005-11-16 18:44:13 +00:00
Tomas Hajny
c513dbcd03 * fix of buggy output for -? with path containing underscore
git-svn-id: trunk@1765 -
2005-11-16 18:43:48 +00:00
Tomas Hajny
198e0db5a1 * mistyping fixed - trac_e_able
git-svn-id: trunk@1684 -
2005-11-06 23:12:36 +00:00
florian
18622259ac * fixed -Nu option on help screen
git-svn-id: trunk@1646 -
2005-11-04 21:35:07 +00:00
florian
5387ffc536 + alignment setting
git-svn-id: trunk@1561 -
2005-10-22 15:17:33 +00:00
florian
e7b9c58e2c * update errord.msg from Karl-Michael Schindler
git-svn-id: trunk@1560 -
2005-10-22 15:12:15 +00:00
florian
9a1c731bfb + basic dispinterface parsing stuff
git-svn-id: trunk@1445 -
2005-10-17 20:28:50 +00:00
florian
71b90d4d00 + slice implemented
git-svn-id: trunk@1384 -
2005-10-15 16:48:27 +00:00
michael
dcd346f0bb + Portugese Translation by Ari Ricardo Ody
git-svn-id: trunk@1217 -
2005-09-28 16:53:19 +00:00
florian
1908ba2206 + -vb: writes compiler messages with full path instead of the file name only
git-svn-id: trunk@1114 -
2005-09-18 18:09:19 +00:00
florian
21cc9597f2 + fpcylix unit
+ -Sk option

git-svn-id: trunk@1106 -
2005-09-18 08:34:51 +00:00
florian
4e01edc8a1 * updated errord.msg from Karl-Michael Schindler
git-svn-id: trunk@1090 -
2005-09-16 09:13:26 +00:00
michael
62e90ec0fa + Dutch message file brought up-to-date
git-svn-id: trunk@1045 -
2005-09-03 21:41:17 +00:00
michael
2455153216 + More fixes to be able to create docs
git-svn-id: trunk@1044 -
2005-09-03 17:53:10 +00:00
michael
0b0c7581f6 + Fixed 2 messages
git-svn-id: trunk@1042 -
2005-09-03 17:40:03 +00:00
michael
14a9ee8bd3 + more typos fixed
git-svn-id: trunk@1022 -
2005-09-02 08:35:23 +00:00
michael
6af1b74202 + Fixed two typos reported by Arí Ricardo Ody
git-svn-id: trunk@993 -
2005-08-31 16:21:14 +00:00
florian
a53c9e2666 * fixed stupid copy/paste which turned softfloat always off
* fixed wince softfloat compiler proc. to be correctly named also when used outside the system unit

git-svn-id: trunk@966 -
2005-08-28 21:08:23 +00:00
michael
ad9a77a704 + Some typos fixed, based on remarks of Arí Ricardo Ody
git-svn-id: trunk@955 -
2005-08-28 09:34:49 +00:00
florian
57e373a4d3 * update polish language files from Wojciech Malinowski
git-svn-id: trunk@951 -
2005-08-27 13:19:31 +00:00
florian
c66e3ba47b * updated version from Karl-Michael Schindler
git-svn-id: trunk@949 -
2005-08-27 13:05:52 +00:00
florian
5e8db3eb5a * better error message if a compiler can't find a compilerproc
git-svn-id: trunk@943 -
2005-08-25 20:21:06 +00:00
florian
602c93d460 * updated german translation from Karl-Michael Schindler
git-svn-id: trunk@938 -
2005-08-24 20:25:14 +00:00
olle
e40c2fd8b0 + compile time expression type checking
* fixed bug in $DEFINE under macpas

git-svn-id: trunk@919 -
2005-08-22 19:09:41 +00:00
florian
e36bb224ae * typo fixed
git-svn-id: trunk@858 -
2005-08-13 21:36:50 +00:00
florian
9a624dd82f * proper displaying of arm targets
git-svn-id: trunk@853 -
2005-08-13 16:57:06 +00:00
florian
469f2d1020 * windres isn't called anymore with an empty include parameter, fixes 4205
* -vd prints windres command line

git-svn-id: trunk@781 -
2005-08-02 21:05:36 +00:00
florian
abed18e3bd * the utf-8 encoded espanol file is no errorues.msg
* errores.msg is iso-8859-15 encoded

git-svn-id: trunk@735 -
2005-07-24 10:36:45 +00:00
olle
438f229f52 * changed unknown align/enum warings into errors and also improved them
git-svn-id: trunk@582 -
2005-07-04 19:28:42 +00:00
Jonas Maebe
43e4571fe9 + help for -Xm and -XM (forgot to commit last time)
git-svn-id: trunk@513 -
2005-06-28 19:26:28 +00:00
florian
abbc85bb78 + strict protected and strict private support
git-svn-id: trunk@512 -
2005-06-28 19:23:39 +00:00
florian
0772a35e70 + description of -WB as option to create a relocatable image added, fixes bug #3965
git-svn-id: trunk@509 -
2005-06-26 21:28:01 +00:00
peter
ee6cab2022 * set props
git-svn-id: trunk@454 -
2005-06-20 06:37:12 +00:00
florian
11fe93f3b8 + -Nu to help screen added
git-svn-id: trunk@452 -
2005-06-19 21:29:53 +00:00
florian
ec6d5ff211 + utf-8 support for string constants added
git-svn-id: trunk@428 -
2005-06-16 20:16:37 +00:00
peter
bc347c23a8 * change error: compilation aborted to fatal
git-svn-id: trunk@394 -
2005-06-13 07:01:49 +00:00
peter
4ace790492 * remove $Log
git-svn-id: trunk@231 -
2005-06-07 09:47:55 +00:00