Commit graph

1610 commits

Author SHA1 Message Date
Rene Engelhard
3dfae9e2e6 fix armel/armv4t build 2012-02-17 11:23:55 +01:00
Jani Monoses
dab11f7fe2 ARM bridge: VFP ABI (armhf) support 2012-02-16 16:25:22 +02:00
Jani Monoses
a55fa2d0a8 Remove unnecessary variable 2012-02-15 19:17:17 +02:00
Jani Monoses
4e679ee250 Simplify code and use proper register names for linux armhf 2012-02-15 19:17:17 +02:00
Josh Heidenreich
fb78dbcdc5 Added READMEs for modules related to URE, with content from the wiki 2012-02-06 05:28:46 +01:00
Julien Nabet
9377bb4dcc Some cppcheck cleaning 2012-02-05 10:19:40 +01:00
Alexander Bergmann
0439af27e1 Code cleanup: ( () ) replaced by (()) 2012-01-26 17:41:07 +00:00
Stephan Bergmann
7c704c78d3 Removed some unused parameters; added SAL_UNUSED_PARAMETER.
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC)
is used to annotate legitimately unused parameters, so that static
analysis tools can tell legitimately unused parameters from truly
unnecessary ones.  To that end, some patches for external modules
are also added, that are only applied when compiling with GCC and
add necessary __attribute__ ((unused)) in headers.
2012-01-21 15:21:16 +01:00
Tor Lillqvist
617c8075ac Use cacheflush() on Android 2012-01-13 13:04:31 +02:00
David Tardon
9dec6475aa fix for gcc 4.7/C++11: these are not string literal operators 2012-01-11 07:49:53 +01:00
Caolán McNamara
697415eb4e WaE and build errors with OSL_DEBUG_LEVEL == 2 2012-01-05 09:18:15 +00:00
David Tardon
aee436760e function component_canUnload is exported 2011-12-27 15:44:42 +01:00
Robert Nagy
b8b22391ae only use posix_fallocate() if it's actually available 2011-12-21 16:17:45 +01:00
Matthias Klose
f233f39736 fix armhf build in bridges
Signed-off-by: Bjoern Michaelsen <bjoern.michaelsen@canonical.com>
Signed-off-by: Caolán McNamara <caolanm@redhat.com>
2011-12-19 10:51:43 +01:00
Stephan Bergmann
d11f2ccdce Resolves: rhbz#767708 avoid SIGBUS writing to overcommitted mmaped diskspace 2011-12-15 11:59:03 +01:00
Olivier Hallot
9201704ede Fix for fdo43460 Part IV getLength to isEmpty
Part IV
Module
basic (small fix per demand from Ivan Timofeev)
binaryurp
bridges
2011-12-13 00:11:25 +04:00
Tor Lillqvist
7904a8cc56 I don't see NO_BSYMBOLIC being used anywhere 2011-12-11 02:57:59 +02:00
Takeshi Abe
7113c7152d catch by constant reference 2011-11-30 11:27:42 +09:00
Norbert Thiebaud
c0bed9c72e remove precompiled_xxx.hxx/cxx 2011-11-27 18:07:55 -06:00
Norbert Thiebaud
4dc45a2854 remove include of pch header in bridge 2011-11-27 12:56:37 -06:00
Norbert Thiebaud
e4610ffd2d remove PCH support in dmake-module 2011-11-27 12:26:12 -06:00
Tor Lillqvist
c366d95851 Use RTLD_DEFAULT on Android
dlopen()ing NULL (the main program) and dlsym()ing on that handle does
not work on Android as in GNU/Linux. So don't bother with that, just
call dlsym(RTLD_DEFAULT, symbol) instead.

But, it doesn't help, it won't find the type_infos anyway, as they are
weak symbols and the dlsym() at least in Android 4.0 does not like
weak symbols, "Symbol is not global."

So the fallback branch that dynamically generates a type_info, which
normally should get used only for inter-process UNO (and thus
presumably never on Android) is taken instead.

But, that didn't work either at least with NDK r7 thanks to a bug in
its libgnustl_shared.so. But we now patch that at run-time in
android_main() in sal/osl/android/jni/lo-bootstrap.c.

Are we having fun yet?
2011-11-24 19:20:15 +02:00
Tor Lillqvist
42acf7a6d5 Don't use USE_DOUBLE_MMAP on Android 2011-11-21 18:21:52 +02:00
Tor Lillqvist
e2989c8400 Let's try using the gcc3_linux_arm code for Android, too 2011-11-17 17:46:13 +02:00
Tor Lillqvist
469c9ac2f9 Enforce a "lib" prefix for UNO components for Android
This commit for the old build system. (Don't bother for components not
relevant for Android.)

The Android package installer (as invoked through "adb install", from
"ant debug install") silently ignores native libraries in app packages
(.apk files) whose names don't start with "lib" and end with ".so".

The package builder (as invoked through "ant debug") in the SDK gladly
includes also thusly named native libraries in the .apk, though. Yay
for consistency.
2011-11-17 15:22:59 +02:00
Caolán McNamara
0122cd3a53 fix mangled indent 2011-11-14 07:35:57 +00:00
Tor Lillqvist
332e5c0a08 Crack to just make this compile for iOS device 2011-11-12 01:48:38 +02:00
Tor Lillqvist
d43c83f3b9 Missing #endif 2011-11-11 23:04:51 +02:00
Tor Lillqvist
7ff1c27045 Add the ARM variant 2011-11-11 22:59:40 +02:00
Stephan Bergmann
9550bed8aa Adapted numbering of reordered asm parameters. 2011-10-19 00:22:34 +02:00
Stephan Bergmann
bf1f0183d5 Some fixes for "clang version 3.1 (trunk 142234)" (with --enable-werror, on Linux x86_64). 2011-10-18 23:10:56 +02:00
Kristian Rietveld
e748b09663 Mark ecx register as clobbered
The inline assembly code executes a function call and functions are
free to use eax, ecx and edx without preservation. We must thus mark
ecx as a clobber register.
2011-10-17 08:13:54 +02:00
Stephan Bergmann
229efd7754 Make the C++/UNO bridge compile against the MacOSX 10.7 SDK
Old work in progress by sberg, committed by tml.
2011-09-29 19:31:03 +03:00
Caolán McNamara
871426533f just silence the auto_ptr deprecations in isolation 2011-09-22 15:01:05 +01:00
Thomas Arnhold
be6a8677a6 OSL_TRACE: Remove trailing newlines
Done with perl regex:
s/(\n\s*OSL_TRACE\(\s*\"[^\n]+?)\s*(\\n)+(\"[^\n]*\)\;\n)/$1$3/gs;

- removed trailing whitespaces and (multiple) newlines
2011-09-21 09:28:39 +02:00
Stephan Bergmann
98510a8f70 sb140: #i117295# fix previous fix 2011-09-12 22:47:48 +02:00
Stephan Bergmann
60ad74a87c sb140: #i117295# removed obsolete LEAK_STATIC_DATA defines 2011-09-12 22:47:47 +02:00
Stephan Bergmann
d3794d2d8a sb140: #i117295# use rtl::Static 2011-09-09 17:46:39 +02:00
Caolán McNamara
ebded7f2f5 what happens if we try and do it right ? 2011-09-06 08:52:36 +01:00
Rene Engelhard
7eff982510 add missing depends on br_cppuno_shared for various archs 2011-08-24 00:33:30 +02:00
Tor Lillqvist
f2079a12ce Drop OS/2 lines 2011-08-22 21:43:48 +03:00
Tor Lillqvist
c209bef8e5 Use prefixed name for uno_initEnvironment() for iOS 2011-08-21 17:49:11 +03:00
Takeshi Abe
dca2588b64 cppcheck: remove assigned but unused variable 2011-08-17 00:04:04 +09:00
Tor Lillqvist
7e8e85adbe Add codeSnippet debugging output when dbglevel>1 2011-08-14 00:55:12 +03:00
Tor Lillqvist
6a208b6c6c Add codeSnippet debugging output when dbglevel>1 2011-08-14 00:55:11 +03:00
Tor Lillqvist
9540af1ece Start of C++/UNO bridge for iOS simulator and device
Unlikely to work yet, but at least builds for the simulator.

We can not use dynamic code generation on iOS, so we use a fixed set
of code snippets, genertated by a Perl script. Experimentation seems
to indicate that a relatively small set of static code snippets should
be enough in simple use cases with no extensions (that we can't really
support on iOS anyway) and stuff.

Except for the static set of snippets the code mostly is, or will be,
an ifdefified combination of the gcc3_linux_arm and gcc3_macosx_intel
code. The ABI on iOS ARM devices should be quite close to that on
Linux ARM, knock on wood.
2011-08-14 00:51:32 +03:00
Tor Lillqvist
2ba07916ff Add some comments 2011-08-14 00:51:31 +03:00
Julien Nabet
f26117a5f4 Avoid throw in destructor 2011-08-11 21:32:29 +02:00
Caolán McNamara
5b759fd175 YES->TRUE 2011-08-04 17:05:22 +01:00
Tomáš Chvátal
f8069fc858 Fix segmentation fault when linking -mavx on new CPUs is enabled by explicitly adding -mno-avx to CXXFLAGS. 2011-08-04 16:56:38 +01:00