Commit Graph

38753 Commits

Author SHA1 Message Date
yury
b0b2353f58 * Fixed declaration of ITypeInfo.Invoke(). The last 3 parameters should be able accept nil values. This fixes calling late binding methods of ActiveX server implemented with FPC. Patch by Ludo Brands.
git-svn-id: trunk@22638 -
2012-10-13 17:16:23 +00:00
joost
9035d3ae5d * Clear fpmkunit bootstrap files when make (dist)clean is called from packages directory
git-svn-id: trunk@22636 -
2012-10-13 12:12:59 +00:00
Jonas Maebe
6697ee21bb * "merge" of r382-383 from macosxintf repository (383 is whitspace fix):
r382 | jonas | 2012-10-13 13:27:03 +0200 (Sat, 13 Oct 2012) | 2 lines

  * "bool" is only 32 bit on Darwin/ppc, it's 8 bit on all other platforms

git-svn-id: trunk@22635 -
2012-10-13 11:38:30 +00:00
marco
d52ce0f6fb * fix from Ludo to optionally skip generation of "tag" records and associated
symbols. Mantis #23113

git-svn-id: trunk@22634 -
2012-10-13 11:27:20 +00:00
marco
287adff8a1 * applied patch from Lacak2
Mantis #22858 TCustomBufDataset.SaveToFile in XML format fails if fields are ftBytes or ftVarBytes and contain binary data 
    

git-svn-id: trunk@22633 -
2012-10-13 11:25:05 +00:00
joost
e98213814b * When performing a distclean while there is no fpmake-executable available,
also recurse into all sub-directories with a Makefile-file present. Based
   on patch from Pierre.

git-svn-id: trunk@22632 -
2012-10-13 10:35:37 +00:00
masta
aef7361f9f Fix RemoveSuperfluousMov in ARM Peephole optimizers.
The last patch (r22622) got the condition wrong.

git-svn-id: trunk@22624 -
2012-10-12 22:33:45 +00:00
masta
938c8f1ee1 Fix regLoadedWithNewValue for A_STR on ARM
The function regLoadedWithNewValue returned true if the oper[0].reg
matched in an STR instruction, which is wrong as it will only be read.

git-svn-id: trunk@22623 -
2012-10-12 22:33:40 +00:00
masta
29bac200dd Fix interaction between peephole optimizers on ARM
Up until now DataMov2Data could be run on an strb generated by
AndStrb2Strb.

Code like this:

and  reg0, reg1, #255
strb reg0, [r13]
mov  reg2,reg1

would get transformed into:

strb reg2, [r13]

which is clearly wrong. The problem was that DataMov2Data expected that
it's first parameter is an instruction which loads new data into
oper[0]. With the introduction of AndStrb2Strb this wasn't true anymore.

This fix now checks if the first register is actually written to, this
is done by using regLoadedWithNewValue.

git-svn-id: trunk@22622 -
2012-10-12 21:30:40 +00:00
joost
5f3f7d862b * For some reason burried in the past a 'make distclean' in fpc's root
is passed to utils as a 'make cleanall' which is an alias for 'distclean'.
   The Makefile.fpc did not recognize the 'cleanall' alias because in 
   packages 'distclean' is being used. This means that nothing was cleaned
   at all.

git-svn-id: trunk@22621 -
2012-10-12 21:26:16 +00:00
sergei
0e8829e4e2 * ModulesLinkToLibc: Search for both bare and prefixed names of libc. When this function is invoked, import library names are not yet normalized and either one may be present. Failure to detect libc may end up in using wrong sysinit unit, this fortunately affects only i386-linux (other Linux targets aren't using Pascal sysinit units yet).
git-svn-id: trunk@22620 -
2012-10-12 20:47:07 +00:00
yury
1a6605fd02 * Fixed warnings.
git-svn-id: trunk@22619 -
2012-10-12 16:24:59 +00:00
yury
cce786676a * Fixed declaration of IEnumUnknown.Next().
* Added IOleContainer.EnumObjects() flags.
* Added IObjectWithSite
* Fixed nested comments warnings.

git-svn-id: trunk@22618 -
2012-10-12 16:22:38 +00:00
pierre
2fdd8656d5 * Fix tw18702.pp i386-win32 specific failure (stack was not properly maintained)
git-svn-id: trunk@22617 -
2012-10-12 14:00:35 +00:00
Jonas Maebe
614436d8cb * added pocall_mwpascal to cdecl_pocalls so we no longer have to explicitly
add it everywhere in the paramanagers (where it was often forgotten)
  - removed places where it was explicitly added to cdecl_pocalls checks
  + test

git-svn-id: trunk@22616 -
2012-10-12 08:41:03 +00:00
marco
b0a984086f * add comment to size_t definition. Documents issue #22834 a bit.
git-svn-id: trunk@22615 -
2012-10-12 08:07:17 +00:00
sergei
3d63b1a2b2 + Added a flag allowing a section to be written into both .dbg and executable files. This is needed at least for ELF SHT_NOTE sections.
git-svn-id: trunk@22614 -
2012-10-11 19:26:40 +00:00
marco
aed4f10d67 * corrected IPrint and IOleCommandtarget to functions. Patch by Ludo, Mantis #22109
git-svn-id: trunk@22613 -
2012-10-11 14:37:24 +00:00
marco
0562192fb9 * Fix for typelib importer by Ludo Mantis #22109
git-svn-id: trunk@22612 -
2012-10-11 14:30:34 +00:00
Jonas Maebe
b1d661d774 * look in the iPhoneAll unit for NSFastEnumeration* types on iOS/iphonesim,
instead of in the CocoaAll unit

git-svn-id: trunk@22611 -
2012-10-11 08:04:20 +00:00
ludob
707e19b81d pqconnection: use also EPQDatabaseError for Execute and UnPrepareStatement to deliver complete error info
git-svn-id: trunk@22610 -
2012-10-10 18:31:10 +00:00
reiniero
db28583b65 fcl-db readme: sdfdataset is meant to be RFC4180 CSV compliant; list of dbs updated; typos fixed.
git-svn-id: trunk@22609 -
2012-10-10 07:45:56 +00:00
ludob
fed8e11f9b Added support for fbembedded to DBtestframework mantis 23008 patch from Reinier
git-svn-id: trunk@22608 -
2012-10-10 07:40:23 +00:00
michael
3928be7f4d * Enable 64-bit compilation
git-svn-id: trunk@22607 -
2012-10-10 07:20:06 +00:00
pierre
82cc913b06 Use -KPIC option without space as older GNU as only seem to support that version
git-svn-id: trunk@22606 -
2012-10-09 14:11:34 +00:00
pierre
714bb61b51 Set res field to res_elf for linux mips/mipsel systems
git-svn-id: trunk@22605 -
2012-10-09 14:10:23 +00:00
pierre
8d386eaba7 Add elf resource support for mips/mipsel CPU in fpcres
git-svn-id: trunk@22604 -
2012-10-09 14:09:23 +00:00
pierre
5a3078495b Add elf resource support for mips/mipsel CPU
git-svn-id: trunk@22603 -
2012-10-09 14:08:50 +00:00
michael
b11276b34f * Patch from Graeme to reduce dependencies (consolerunner is now in FCL)
git-svn-id: trunk@22602 -
2012-10-09 11:18:39 +00:00
michael
fdf66d1be9 * take care of destructor being called if constructor failed
git-svn-id: trunk@22601 -
2012-10-09 11:07:08 +00:00
michael
74149ab196 * Patch from Luiz Americo for some cleanup (bug ID 22550)
git-svn-id: trunk@22600 -
2012-10-09 11:04:44 +00:00
Jeppe Johansen
14879a9e82 Added all STM32F1 configurations
git-svn-id: branches/laksen/arm-embedded@22599 -
2012-10-09 06:58:58 +00:00
lacak
d0fbfe4525 Implements support for MySQL Transactions. Mantis #19137. Patch by Ludo Brands.
git-svn-id: trunk@22598 -
2012-10-09 05:26:27 +00:00
Jeppe Johansen
a8f9b0dac4 Added initial support for the Cortex-M4F FPv4_S16 FPU
git-svn-id: branches/laksen/arm-embedded@22597 -
2012-10-08 20:10:45 +00:00
Jeppe Johansen
0087661fb5 Added FPv4_d16 FPU instructions, and a few extra registers
git-svn-id: branches/laksen/arm-embedded@22596 -
2012-10-08 20:04:14 +00:00
michael
6eade12d3f * Take care of Florian's remark that FList may be nil when constructor failed
git-svn-id: trunk@22593 -
2012-10-08 15:11:10 +00:00
Jeppe Johansen
3e963a49e2 Added support for IT block merging
Added a peephole pattern check for UXTB->UXTH chains

git-svn-id: branches/laksen/arm-embedded@22592 -
2012-10-08 14:07:40 +00:00
michael
4ddd2f5031 * Improved and more consistent load order for libs (bug ID #22710)
git-svn-id: trunk@22591 -
2012-10-08 12:45:02 +00:00
Jeppe Johansen
9ec9b44784 Add CBNZ/CBZ instructions
Create preliminary Thumb-2 PeepHoleOptPass2 code, hacked together from the ARM mode code
Added a number of simple size optimizations for common Thumb-2 instructions

git-svn-id: branches/laksen/arm-embedded@22590 -
2012-10-08 12:30:00 +00:00
michael
3cafdc2a58 * Fix from Luiz Americo to avoid crash when a freenotification is registered during destroy. (bug ID 23031)
git-svn-id: trunk@22589 -
2012-10-08 12:02:11 +00:00
michael
d6c8ebc1b9 * Better float parsing and conversion of integer to float where floats are accepted (bug 22934)
git-svn-id: trunk@22588 -
2012-10-08 11:45:19 +00:00
michael
2127e0e292 * Better float parsing and conversion of integer to float where floats are accepted (bug 22934)
git-svn-id: trunk@22587 -
2012-10-08 11:45:06 +00:00
michael
4f7ac968d9 * Some optimizations from Luiz Americo (bug ID 23022)
git-svn-id: trunk@22586 -
2012-10-08 11:04:27 +00:00
michael
61fecf4562 * Patch from Luiz Americo to clean up tlist (bug ID 23024)
git-svn-id: trunk@22585 -
2012-10-08 11:01:39 +00:00
michael
6cdd5b034f * Patch from Luiz Americo to clean up destructor/constructor
git-svn-id: trunk@22584 -
2012-10-08 10:58:32 +00:00
ludob
da5a38c8ff Moved sqlite3backup.pas to src/sqldb/sqlite
git-svn-id: trunk@22583 -
2012-10-08 09:09:27 +00:00
Jeppe Johansen
b788ba660d Fix optimizations of Thumb-2 code
Fix problem with loading of condition operand for IT instructions
Properly split IT blocks when register allocator tries to spill inside a block.

git-svn-id: branches/laksen/arm-embedded@22582 -
2012-10-08 04:49:39 +00:00
Jeppe Johansen
80bb3febea Fixed assembler calling command line for cpus>ARMv5TE. EDSP instructions will generate errors while assembling, due to RTL assembler routines
Updated boot code for all Cortex-M3 controllers, and sc32442b to use weak linking for exception tables.
Cortex-M3 devices now also share initialization routine to simplify maintenance
STM32F10x classes now have specific units which fit the interrupt source names and counts

git-svn-id: branches/laksen/arm-embedded@22581 -
2012-10-08 03:15:40 +00:00
Jeppe Johansen
8e00978108 Added support for .section, .set, .weak, and .thumb_set directive for GAS assembler reader
IFDEF'ed JVM specific assembler directives, to prevent ait_* set to exceed 32 elements

git-svn-id: branches/laksen/arm-embedded@22580 -
2012-10-08 03:10:44 +00:00
Jeppe Johansen
8b17a358e4 Remove all traces of the interrupt vector table generation mechanism
Clean up cpuinfo tables
Fixed ARMv7M bug(BLX <label> doesn't exist on that version)

git-svn-id: branches/laksen/arm-embedded@22579 -
2012-10-08 00:10:52 +00:00