Commit Graph

39471 Commits

Author SHA1 Message Date
sergei
d190d4676b - MIPS: removed comment generation in function prologues, it clutters listing more than it helps. Also removed some unused variables.
git-svn-id: trunk@23661 -
2013-02-25 21:40:03 +00:00
pierre
f095c98e76 * move smartlink off to before interface
* Reorganize ifdef GDB_VXYZ part
  + Add code for LIBGDB_HAS_GET_STDIN (possibly set in gen-gdblib-inc.sh script).
  + Use GDB_USE_XSTRVPRINTF conditional.

git-svn-id: trunk@23660 -
2013-02-25 16:28:10 +00:00
pierre
3b1465f314 Do not set GDB_HAS_DEBUG_FILE_DIRECTORY for GDB 6.6 release
git-svn-id: trunk@23659 -
2013-02-25 16:01:09 +00:00
paul
535615dfa4 rtl: apply piece of changes to charset.pp from Inoussa (part of mantis #0022909)
git-svn-id: trunk@23658 -
2013-02-25 02:22:14 +00:00
paul
e549954de6 rtl:
* apply Inoussa changes to character.pas and related files (part of mantis #0022909)

git-svn-id: trunk@23657 -
2013-02-25 01:46:33 +00:00
svenbarth
db6385ef33 Added exception EObjectCheck for object reference check (runtime error 210).
rtl/objpas/sysconst.pp:
  + add resourcestring SObjectCheckError
rtl/objpas/sysutilh.inc:
  + add new Exception descendant EObjectCheck
rtl/objpas/sysutils.inc:
  + use EObjectCheck with message SObjectCheckError for runtime error 210

git-svn-id: trunk@23656 -
2013-02-24 22:22:38 +00:00
marco
5f0996d78d * add 2.6.2 to allowed computers. Allow 2.6.0 too for a while.
git-svn-id: trunk@23655 -
2013-02-24 19:46:26 +00:00
yury
3fbe35da4b * Reverted r23646, since missing clocale has been committed.
git-svn-id: trunk@23649 -
2013-02-24 13:29:30 +00:00
yury
65d610902b + Forgot to commit dummy clocale. It has caused Issue #23931.
git-svn-id: trunk@23648 -
2013-02-24 13:27:50 +00:00
svenbarth
d76ebd0748 Apply patch from lks (with a few adjustments). Fixes Mantis #23938.
gvector.pp:
  * more consistent formatting
  - remove "inline" directives in implementation section
  * use "Move" instead of a for-loop in Erase and Insert (while also respecting managed types) for performance improvement
  * set the removed entry in PopBack to Default(T) (also for managed types)
  * fix a bug in Erase which checked for "<= Size" instead of "< Size"

git-svn-id: trunk@23647 -
2013-02-23 21:34:47 +00:00
svenbarth
f229d601de Fix for Mantis #23931.
rtl/android/Makefile.fpc:
  * clocale.pp is located in $(UNIXINCDIR)

git-svn-id: trunk@23646 -
2013-02-22 17:32:58 +00:00
svenbarth
c21b34daf1 Fix for Mantis #23909.
gvector.pp, TVector.TVectorEnumerator:
  * the size of a vector is of type SizeUInt which is LongWord on 32 bit systems and QWord on 64 bit systems and which is in both cases not the same as Integer which is LongInt
  + add a boolean property to detect whether the first call to MoveNext was done
  * check in MoveNext whether the first call was done and return approbiate results
gvector.pp, TVector:
  + declare GetEnumerator as inline as well

git-svn-id: trunk@23645 -
2013-02-22 10:52:50 +00:00
sergei
354ebb822a * MIPS: fixed layout of stack frame in case procedure does only low-level calls (via a_call_name, etc.). A 16-byte outgoing parameter area must be allocated regardless of actual parameter count.
* Abort if attempting to emit a call without pi_do_call flag set, because the outgoing parameter area determines layout of temps and therefore cannot be created/changed during pass 2.
* Bypass g_concatcopy_move if procedure is a leaf one, due to the restriction mentioned above.

git-svn-id: trunk@23644 -
2013-02-21 20:57:38 +00:00
sergei
5d5d226487 * Applied a counterpart of r22318 to 64-bit mod/div routines.
git-svn-id: trunk@23643 -
2013-02-21 19:37:31 +00:00
yury
b2d67c38f3 * Fixed typo in the comment.
git-svn-id: trunk@23642 -
2013-02-21 14:58:37 +00:00
yury
4ee4e6fba0 * Top level makefile: Fixed and simplified cross-building. It is now possible to perform cross builds when having only bootstrap compiler executable.
- Always use fresh native fpcmake executable.
  - Build fresh native fpcmake executable when cross-compiling.
  - Explicitly specify a compiler which is used to bootstrap fpmake and fpcmake. Always use fresh native compiler for that. 
* New bootstrap target for fpcmake to build native fpcmake regardless of CPU/OS settings.

git-svn-id: trunk@23641 -
2013-02-21 14:54:57 +00:00
lacak
21aa533719 fcl-db: test: when testing unidirectional bufdataset set UniDirectional after (not before) test data are populated and saved to file (before any test), because setting unidirectional before prevents inserting test data at all.
Of course this change does not help very much, because when data are loaded from file bidirectional is checked and exception is raised.
So IMO we should comment: //UniDirectional := TestUniDirectional, because in concept of save/load file we can not test unidirectional bufdataset.

git-svn-id: trunk@23640 -
2013-02-21 08:54:27 +00:00
sergei
69c8f6cf7d * Typo in previous commit
git-svn-id: trunk@23639 -
2013-02-20 23:03:45 +00:00
florian
b00ff8a4e0 * patch by Bart Broersma, simplify TStringList.InsertItem, resolves #23860
git-svn-id: trunk@23638 -
2013-02-20 21:36:02 +00:00
sergei
d7c96dea8b * MIPS: refactoring: removed handle_load_store and handle_load_store_fpu.
git-svn-id: trunk@23637 -
2013-02-20 20:59:33 +00:00
yury
9712b36821 + Add dummy clocale unit for Android to fix packages compilation.
git-svn-id: trunk@23636 -
2013-02-20 16:09:06 +00:00
yury
c27dcfd5b1 * Fixed building of Android RTL with newer versions of make. Issue #23911.
* Disabled building of clocale, since it does not work anyway. A new android implementation is needed.
* Disabled building of x86 and ports units. They are useless on Android.

git-svn-id: trunk@23635 -
2013-02-20 15:53:13 +00:00
yury
d3e3296d23 * Fixed ppudump after changes in r22266.
git-svn-id: trunk@23634 -
2013-02-20 13:45:59 +00:00
yury
a530bb1bb0 * Fixed reading of float constant after changes in r20190. ppudump now read PPUs without fatal errors.
* Replaced assignment "has_errors:=true" by calling a new procedure SetHasErrors. It simplifies debugging - just set a breakpoint inside SetHasErrors and see the stack back trace to find out where the error has occurred.

git-svn-id: trunk@23633 -
2013-02-20 13:13:19 +00:00
florian
4eb660699c * patch by Takeda Matsuki to fix building for android with make 3.82, resolves #23911
git-svn-id: trunk@23632 -
2013-02-19 20:52:47 +00:00
svenbarth
a68e237450 Fix cycle/build with -al
assemble.pas, TExternalAssembler.WriteSourceLine:
  * don't generate an internal error if no module is found; if the system unit is compiled with -al there can be cases when fileinfo contains only zeros (though I wonder where this comes from; I'll need to investigate this when I have time)

git-svn-id: trunk@23631 -
2013-02-19 10:11:39 +00:00
lacak
a2c068770c fcl-db: tests: when testing bufdataset use MergeChangeLog before saving test data into file to delete undo log. Tests which tests f.e. CancelUpdates are failed and they should not.
git-svn-id: trunk@23630 -
2013-02-19 09:47:25 +00:00
florian
776f4cc18f * build statement for the cpu unit, resolves #23910
git-svn-id: trunk@23629 -
2013-02-18 20:32:09 +00:00
svenbarth
b219638284 Ensure that no garbage for specialization code is written in case of "-al"
assemble.pas, TExternalAssembler.WriteSourceLine:
  * also respect a module change which can happen if the generated assembler code belongs to a specialized generic

git-svn-id: trunk@23628 -
2013-02-18 16:53:37 +00:00
sergei
30247d8961 * MIPS: fixed parameter handling for big-endian targets, and removed a lot of garbage.
* Parameters passed in registers are no longer forced to stack, therefore assembler routines using 'lw' instruction to load such parameters must have it changed to 'move' (tb0072.pp).

git-svn-id: trunk@23627 -
2013-02-18 04:20:10 +00:00
florian
2281a63116 + write a build-id section for arm-embedded
git-svn-id: trunk@23626 -
2013-02-17 18:56:49 +00:00
florian
2a99cef7c3 * compile command for uuchar, resolves #23907
git-svn-id: trunk@23625 -
2013-02-17 16:13:54 +00:00
masta
96ed4e7932 Fixed access to freed memory in ShiftShiftShift2ShiftShift 1a on ARM
ShiftShiftShift2ShiftShift tried to access a wrong and already freed
instruction the find out whatever a shift will result in a 0 result.

For some reason this only resulted in a bug on x86_64 linux host
crosscompiler builds.

git-svn-id: trunk@23624 -
2013-02-17 00:01:00 +00:00
sergei
f0e6d2c054 * MIPS: MULT[U] and DIV[U] don't modify first operand.
git-svn-id: trunk@23623 -
2013-02-16 06:43:41 +00:00
sergei
54aefb1ba0 * gen_load_cgpara_loc, MIPS-specific: added missing calls to unget_para, and disabled part that loads upper and lower halves of Double values from integer registers. It produces invalid code, but that's hidden by MIPS code generator copying all parameters to stack (so this code is never executed).
git-svn-id: trunk@23622 -
2013-02-15 22:05:24 +00:00
florian
63f6afffd5 + make empty proc. removal switchable by removeemptyprocs
git-svn-id: trunk@23621 -
2013-02-14 21:40:04 +00:00
florian
bcd48ac1a1 + patch by Justin Smyth to support the lpc1343, resolves #23844
git-svn-id: trunk@23620 -
2013-02-14 20:38:53 +00:00
florian
3b7a9543c6 * updates of german message files by Karl-Michael Schindler
git-svn-id: trunk@23619 -
2013-02-14 18:54:26 +00:00
yury
9ef9c395c6 * Cleanup on exit.
git-svn-id: trunk@23618 -
2013-02-14 14:05:01 +00:00
yury
eae9c8df3c * Fixed typo.
git-svn-id: trunk@23617 -
2013-02-14 13:43:31 +00:00
yury
6b2fbff155 * Use cp1253 instead of cp1252 for tests. For unknown reason there is no Euro symbol in cp1252 on Unix systems (libiconv bug?). Greek cp1253 has Euro symbol as expected.
git-svn-id: trunk@23616 -
2013-02-14 11:39:13 +00:00
yury
849095f5e5 + Added Greek code page 1253 to the compiler to have support for the third modern code page (in addition to cp1251 and cp1252). It is needed to be able to define "type AnsiString(1253)" in tests. Previously I used cp1252 for tests with Euro symbol conversions. But for unknown reason cp1252 does not have the Euro symbol with code $80 on Unix systems (libiconv bug?). In other hand cp1253 has the Euro symbol with code $80 as expected.
git-svn-id: trunk@23615 -
2013-02-14 11:29:47 +00:00
yury
fd873c2ee0 * Fixed compilation on targets where sizeof(cextended)=12.
git-svn-id: trunk@23614 -
2013-02-14 10:14:21 +00:00
paul
fe4b5ea82d compiler: convert unicode constants which are > 127 to AnsiString (except UTF8String) in runtime to prevent conversion to wrong codepage (read issue #0021195)
git-svn-id: trunk@23613 -
2013-02-14 09:01:07 +00:00
yury
f103808e09 * Updated makefile.
git-svn-id: trunk@23612 -
2013-02-13 20:28:25 +00:00
yury
677c890aff + Added test obj files for android-i386.
git-svn-id: trunk@23611 -
2013-02-13 19:37:00 +00:00
sergei
58f8a00814 * MIPS fppipe(): added error handling, and fixed parameter location (assembler procedures should not modify initial location of parameters, but one of MIPS code generator hacks copies parameters to stack. That hack is subject to remove).
git-svn-id: trunk@23610 -
2013-02-13 18:01:12 +00:00
yury
cf52a07470 * Updated makefiles.
git-svn-id: trunk@23609 -
2013-02-13 17:46:54 +00:00
yury
b3862eb4b1 * Use standard Android NDK prefixes for binutils by default.
git-svn-id: trunk@23608 -
2013-02-13 17:35:55 +00:00
yury
92b2ef2059 * Android: Quote a path to crt object files if needed. It fixes linking when a library path contains spaces.
git-svn-id: trunk@23607 -
2013-02-13 15:50:58 +00:00