Commit Graph

44544 Commits

Author SHA1 Message Date
Jonas Maebe
dc172ef55b * disabled blocks tests for Darwin/ppc(64), as the blocks runtime is only
only shipped with Mac OS X 10.6 and later (and the last version supporting
    ppc was 10.5)

git-svn-id: trunk@29522 -
2015-01-22 19:56:34 +00:00
pierre
ce20dcf7a6 * Add code to try old GNU emulation if new names are not recognized
* Add support for map file
  * Add -lc (for libc library) two times instead of only at the end.

git-svn-id: trunk@29521 -
2015-01-22 16:45:52 +00:00
pierre
aebebe4f04 i386-solaris target: Add flags for pic code uses GOT and library requires pic
git-svn-id: trunk@29520 -
2015-01-22 15:14:35 +00:00
pierre
e8d836f74c Activate gdbint package for solaris target OS
git-svn-id: trunk@29519 -
2015-01-22 15:12:14 +00:00
Károly Balogh
37cf157d7d initialize pd to fix a warning with O3+
git-svn-id: trunk@29518 -
2015-01-22 12:07:50 +00:00
Jonas Maebe
2f40fa7b33 * reintegrated "blocks" branch. Adds support for calling C-style blocks with
global procedures and Object Pascal methods on Darwin platforms. Support
    for nested procedures will be added later on. For the syntax, see
    tests/test/tblock*.pp

git-svn-id: trunk@29517 -
2015-01-21 23:38:50 +00:00
Jonas Maebe
146e3bcb9e * synchronised with trunk till r29513
git-svn-id: branches/blocks@29516 -
2015-01-21 23:28:34 +00:00
Jonas Maebe
e97f31541e - reverted partial commit of merge
git-svn-id: branches/blocks@29515 -
2015-01-21 23:24:37 +00:00
Jonas Maebe
a76bbf363d * synchronised with trunk r29513
git-svn-id: branches/blocks@29514 -
2015-01-21 23:18:29 +00:00
sergei
6708b83a16 * Refactor tasmlisttypedconstbuilder so it emits string/PChar data, if any, into a second asmlist, instead of appending it directly to global asmlist.
git-svn-id: trunk@29513 -
2015-01-20 15:14:38 +00:00
sergei
ed4e876f4f * Generate exception filters data on i386-win32 and x86_64-win64 without using global labels.
git-svn-id: trunk@29512 -
2015-01-20 13:52:19 +00:00
sergei
a67478e033 * Simplified, removed redundant asmlist and duplicate call to maybe_new_object_file.
git-svn-id: trunk@29509 -
2015-01-20 07:52:11 +00:00
Tomas Hajny
fdbd928453 * utils package still stay as standalone zip for smaller utilities in the main directory, but the source file name is one character longer than before now
git-svn-id: trunk@29508 -
2015-01-19 21:39:54 +00:00
lacak
d8ce1caea3 fcl-db: postgresql: Fix AV in UnprepareStatement (TPQCursor.tr is nil).
Revealed by TTestTSQLQuery.TestKeepOpenOnCommit.
Commit destroys TPQTrans object, which in destructor sets tr:=nil for all registered cursors. So attempt to Close TSQLQuery after Commit has leading to AV.

git-svn-id: trunk@29507 -
2015-01-19 13:01:51 +00:00
sergei
d24382e8f8 * x86 AT&T writer: never ever drop "@GOTPCREL" relocation, because it results in corrupted code (at least, "mov foo@GOTPCREL(%rip),%reg" must change to "lea foo(%rip),%reg" to remain equivalent, but this must be handled elsewhere anyway. Assembler writer should just write generated code as is).
* Added internal errors on some impossible types of references.

git-svn-id: trunk@29506 -
2015-01-18 17:04:53 +00:00
sergei
26cd3dc58a * %OS -> %target, the former is invalid and breaks the entire run.
git-svn-id: trunk@29504 -
2015-01-18 16:09:45 +00:00
florian
8d4b7f8b97 * search directory given by FPCDIR for the *.cod files as well as /usr/local/lib/fpc/lexyacc/ and /usr/lib/fpc/lexyacc/ on unix (despite current dir), resolves #27326
git-svn-id: trunk@29503 -
2015-01-18 13:11:38 +00:00
florian
0b3130ad20 * "backported" changes from pyacc.pas to pyacc.y: pyacc.pas is generated actually from pyacc.y by pyacc
git-svn-id: trunk@29502 -
2015-01-18 13:09:35 +00:00
florian
2c7f1c73ac * pass -m elf_i386_sol2 to gld on i386-solaris as well, patch by H.Hartl, resolves #27265
git-svn-id: trunk@29501 -
2015-01-18 11:19:42 +00:00
florian
94a51e26a0 + support of winapi directive
git-svn-id: trunk@29500 -
2015-01-18 10:50:53 +00:00
Tomas Hajny
dbb999c4dd * change unit names in the uses clause to completely lowercase to avoid issues with case sensitive file systems
git-svn-id: trunk@29499 -
2015-01-17 16:04:33 +00:00
Jonas Maebe
8fe981cccb * also give a warning when a field masks an identifier from a category
* also give a warning when a field/parameter/local variable masks an
    identifier from a class helper that's in scope

git-svn-id: trunk@29498 -
2015-01-17 15:38:29 +00:00
Jonas Maebe
990e47f2d3 * give a warning instead of an error if a parameter or local variable in a
an Objective-C method masks an identifier from a category, because due
    to the fact that all standard categories are imported at the same time via
    the CocoaAll unit, this can often happen with categories you don't know/
    care about. These errors also didn't happen in 2.6.x

git-svn-id: trunk@29497 -
2015-01-17 15:27:42 +00:00
florian
d25dbec070 * allow the varargs directive in combination with stdcall as well, resolves #27299
git-svn-id: trunk@29496 -
2015-01-17 14:23:38 +00:00
florian
681c1afe6c * limit inlined expansion and exponential code grow, resolves #23862
git-svn-id: trunk@29495 -
2015-01-17 13:52:41 +00:00
florian
a825a0f3ff * patch by Cyrax to fix building, resolves #27323
git-svn-id: trunk@29494 -
2015-01-17 12:30:18 +00:00
sergei
d4969ca2ee * Fixed subscripting records of size OS_PAIR on big endian targets and enabled placing such records into registers. Tested and shows no regressions on mips-linux.
git-svn-id: trunk@29493 -
2015-01-17 11:30:19 +00:00
Tomas Hajny
284074c4e8 * OS/2 UnicodeStringManager functions finished (except for CharLengthPChar and CodePointLength which only make sense after they get a codepage parameter as discussed with Jonas); fix for #6295
git-svn-id: trunk@29492 -
2015-01-17 01:32:20 +00:00
Tomas Hajny
4cf24d98cb * updated configuration file template (aligned to fpcmkcfg/fpc.cft where appropriate)
git-svn-id: trunk@29491 -
2015-01-16 23:06:16 +00:00
Tomas Hajny
2da5e0b65c + new tool mkinsadd included into the standard building
git-svn-id: trunk@29490 -
2015-01-16 22:36:20 +00:00
Tomas Hajny
11d99d3208 + new tool for simple post-processing of packages listings created by fpmake for easy merging into install.dat file used by the text-mode installer
git-svn-id: trunk@29489 -
2015-01-16 22:35:11 +00:00
Jonas Maebe
02c445fb29 * fixed test compilation after r29388
git-svn-id: trunk@29488 -
2015-01-16 20:08:52 +00:00
Jonas Maebe
697552b9f1 * disabled hints/warnings about changed symbol visibility by default, use
-dextdebug to see them. This fixes 4 tests.

git-svn-id: trunk@29487 -
2015-01-16 20:08:48 +00:00
svenbarth
0d1d3d8e72 Fix for Mantis #25917. With this change the visibility of type parameters is changed from public to strict private as otherwise unexpected (and "unworkaroundable") errors might occur (like the one in the mentioned bug report).
pgenutil.pas:
  * parse_generic_parameters & insert_generic_parameter_types: create the type parameter symbols as strict private instead of public (which is the default visiblity)

* adjusted two tests which relied on this behavior (that's why I fixed the type aliases previously)
+ added test

git-svn-id: trunk@29486 -
2015-01-16 17:02:02 +00:00
svenbarth
a4e8f00399 Allow the usage of type aliases of generic type parameters outside of the generic. Besides being useful by itself it will also be needed in the future when the visibility of the type parameters is changed from public to strict private.
ptype.pas, id_type:
  * don't generate an error if the undefineddef typesym is an explicit rename that belongs to a generic

+ added test

git-svn-id: trunk@29485 -
2015-01-16 16:38:51 +00:00
svenbarth
5115c3e680 Fix for Mantis #26481. This is a regression.
nutils.pas, handle_staticfield_access:
  * generics don't have staticvarsyms for their static fieldvarsyms so we need to simulate a non-static access to avoid 1) an exception and 2) incorrect errors that instance methods can't be accessed

+ added tests

git-svn-id: trunk@29484 -
2015-01-16 16:05:53 +00:00
svenbarth
5fd47d5e00 Fix for Mantis #26483. This regression was introduced by famous revision 27861 which introduced partial specializations (and thus that specializations can be part of local- and parasymtables as well).
symtable.pas, is_visible_for_object:
  * if the symtable belongs to a specialization we need to ignore any owning local- or parasymtable as well to determine which unit it belongs to

+ added test

git-svn-id: trunk@29482 -
2015-01-16 14:23:49 +00:00
nickysn
7cb38e1ce9 * removed the msdos binutils prefix, so that we can switch more easily to using a default watcom install (in case we decide we don't want to ship watcom binutils binaries due to license issues)
git-svn-id: trunk@29481 -
2015-01-16 13:37:10 +00:00
lacak
2175dd1403 fcl-db: tests: cosmetic
git-svn-id: trunk@29480 -
2015-01-16 13:17:36 +00:00
lacak
aa7dfdff96 fcl-db: postgresql: cosmetic
git-svn-id: trunk@29479 -
2015-01-16 08:59:50 +00:00
Tomas Hajny
36ff4c5d26 * support for OS/2 DLL names used in the latest OpenSSL port updates
git-svn-id: trunk@29478 -
2015-01-15 23:35:41 +00:00
marco
bc35a48d65 * __error in cprt0.as
git-svn-id: trunk@29477 -
2015-01-15 20:40:33 +00:00
pierre
c9f73354af Avoid CopyFile over itself fp.cfg after copying fp.ini, thus avoiding misleading ErrorBox
git-svn-id: trunk@29476 -
2015-01-15 16:53:58 +00:00
Tomas Hajny
b1e51054cb * add information about -vz to the help pages
git-svn-id: trunk@29475 -
2015-01-14 17:08:26 +00:00
marco
a6f88e3c1f * fpmkunit makefile fix for dragonfly BSD, mantis #27309
git-svn-id: trunk@29473 -
2015-01-14 15:50:00 +00:00
pierre
32cdcb8930 Remove wrong error message, Pascal Didier
git-svn-id: trunk@29472 -
2015-01-14 15:46:29 +00:00
pierre
ea3bc10fd1 Change ReplaceForbiddenAsmSymbolChars to use ansistrings to avoid shortstring overflow
git-svn-id: trunk@29471 -
2015-01-14 13:43:14 +00:00
marco
0abb3f3e02 * fixed capitalization Int64 and added qword
git-svn-id: trunk@29470 -
2015-01-13 17:18:29 +00:00
marco
db43ec946f * definition of internal type int64 for documentation purposes.
git-svn-id: trunk@29469 -
2015-01-13 17:14:51 +00:00
marco
bb4adddd2c * fix for compilation error when building with buildunit instead of fppkg?
git-svn-id: trunk@29468 -
2015-01-13 16:27:37 +00:00