Commit graph

1913 commits

Author SHA1 Message Date
Caolán McNamara
af73a28e85 if _CALL_ELF -> if defined(_CALL_ELF) && _CALL_ELF == 2
Change-Id: I34e9a98586b795a3fa31ae775aee7898b36e65d4
2014-08-22 21:09:55 +01:00
Caolán McNamara
b3213401a2 pasted in reverse
Change-Id: I6a3f8c9bffd2dbac90c73e472f99dd97b9977127
2014-08-22 15:16:10 +01:00
Caolán McNamara
6ab1951ea2 Resolves: rhbz#1125588 ppc64le passes testtools
*bzzt*, <lightning arcs, faint smell of ozone>, it's alive!

Change-Id: I0b42f4e2603e6d76200d63ab2e26bbb856ae1173
2014-08-22 15:08:56 +01:00
Caolán McNamara
ee6fcdd18b Related: rhbz#1125588 ppc64le fix simple struct returning
Change-Id: I1e253922fdb606648eff9865f1125a24e35b0d9a
2014-08-22 13:53:19 +01:00
Caolán McNamara
970ad502e3 Related: rhbz#1125588 ppc64le has new struct passing rules
http://gcc.gnu.org/ml/gcc-patches/2013-11/msg01145.html
http://gcc.gnu.org/ml/gcc-patches/2013-11/msg01147.html

now we just fail instead of crash

Change-Id: I329c676337885bcf4fdfdcdb5912d75424862126
2014-08-22 13:34:50 +01:00
Caolán McNamara
6396e18f4d Related: rhbz#1125588 force existence of argument save area
ELFv2 ABI on ppc64 optimises stack allocation
(http://gcc.gnu.org/ml/gcc-patches/2013-11/msg01149.html
so we're getting no argument save area

This now appears to pass the simple cases and onwards
to the tricky ones

Change-Id: Ie56d148ebea7fcfc023cb7183bc97f09186e66b4
2014-08-22 12:10:42 +01:00
Caolán McNamara
d8fcd8ca9a Related: rhbz#1125588 get to the end of cpp_mediate on ppc64le
Change-Id: Id3928ef5ac68ea13a7aa8723bc8b068ecf8075a0
2014-08-21 16:34:39 +01:00
Caolán McNamara
4c5bbbf059 Related: rhbz#1125588 get as far as privateSnippetExecutor
Change-Id: Icc386083ecd9faefbedebbb9d2496a4eddfa0b2b
2014-08-21 15:45:59 +01:00
Caolán McNamara
170109708e Related: rhbz#1125588 first steps for ppc64le
almost certainly won't get us too far, but a start

Change-Id: Ic20b97a97b6d506c32322173bd8332d15c3a4555
2014-08-21 08:54:16 +01:00
Noel Grandin
c0415d5f1e java: remove unnecessary constructor declarations
in the absence of any other constructors, the compiler will automatically
generate a public no-arg constructor

Change-Id: I70eca507cd8e16e33580b3398d41d70690bc2909
2014-08-20 12:12:15 +02:00
Noel Grandin
c552aac9f8 java: use 'Byte.valueOf' instead of 'new Byte'
Change-Id: Ia99765a6226317ee41ffb02a1b0dd7e6fd944a90
2014-08-19 14:57:18 +02:00
Noel Grandin
0764292c5d java: use 'Short.valueOf' instead of 'new Short'
Change-Id: Icef19ef61ee0af2dd3bda527263934006271f219
2014-08-19 14:57:18 +02:00
Noel Grandin
8a2c6c29af java: use 'Long.valueOf' instead of 'new Long'
Change-Id: If4fff3dd37326fbcdd01b743355a16591d71fa69
2014-08-19 14:57:17 +02:00
Noel Grandin
ff0ad0493e java: use 'Integer.valueOf' instead of 'new Integer'
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
2014-08-19 14:57:17 +02:00
Noel Grandin
be1bb7b1cc java: use Boolean.valueOf instead of instantiating Boolean objects
Change-Id: Ie41d6b0170a035a694dd270c311a137fd1810e74
2014-08-19 14:57:16 +02:00
Noel Grandin
ac5954d7c5 java: remove commented out code
Change-Id: I05c907a38b562231e968c17f14e09ef80e0a6ed1
2014-08-14 10:59:48 +02:00
Tor Lillqvist
1f14417bb0 Clearly we should be moving 64 bit values here
Change-Id: Ide34abab9417b849ea58aafab386e13e67d240be
2014-08-13 20:08:17 +03:00
Noel Grandin
da677dfd59 java: reduce scope, make fields private
found by UCDetector

Change-Id: I7f97e15667159cf8ee776e8f32fdcdec8ec00ed6
2014-08-13 08:49:22 +02:00
Noel Grandin
0477e6c39b java: add @Override annotation to overriding methods
Change-Id: I086964c6f6ce52c60c52b6dbc445d3c21d22c80a
2014-08-12 09:41:28 +02:00
Noel Grandin
616b3ad504 java: remove exceptions from throws clauses that are not
.. actually thrown

Change-Id: Ia326ac7f82e11b948ed0f34e20908a96e7adcd10
2014-08-08 09:48:20 +02:00
Noel Grandin
b58c053fed java: remove unnecessary semi-colons
Change-Id: Ibeeefc6e6ee8f7bed97a02f569f239ff035d38c4
2014-08-08 09:48:18 +02:00
Noel Grandin
27459c71ef java: remove unused fields
Change-Id: I25fef9590a34ec8d9aab182b3d267ae3cd649a87
2014-08-08 09:48:16 +02:00
Caolán McNamara
bbf2ba5650 WaE: -Werror=unused-parameter
Change-Id: I064c738b371999bb73726bde3669c710742fae80
2014-08-07 18:52:04 +01:00
Stephan Bergmann
26ed25538f New files missing from prev commit
Change-Id: I9889e97a7f9e70d8b2d82e26d9e0f971a943d007
2014-08-07 18:46:21 +02:00
Stephan Bergmann
9c9f0ea2c3 Include RTTI in generated vtables for ubsan's vptr-based checks
...though only on gcc3_linux_x86-64 for now.

Change-Id: Id90554425e78b38a5a97149f2a7d3ac04cbe0c9b
2014-08-07 18:21:19 +02:00
Stephan Bergmann
6526881a0c loplugin:unreffun
Change-Id: Ie5608777b0bee002437117709d2c96062a39ff55
2014-08-05 17:01:36 +02:00
Noel Grandin
0c5f51ebbc java: remove commented out code
Change-Id: I44e2043e5da23bc9421c03e550ef1d8b7ebaad36
2014-08-05 11:31:50 +02:00
Noel Grandin
d26540bb05 java: remove unused fields
Change-Id: I6c93864f501f646a8940eac221a88c87b3f75525
2014-08-05 11:31:50 +02:00
Noel Grandin
f124688cfd java: remove various unused variables
Change-Id: Id9f30938f594cb6fe73bf40adfffa65ec1b42cd1
2014-08-05 11:31:49 +02:00
Stephan Bergmann
36c18abb7b loplugin:unreffun
Change-Id: Iad6a0e5e04dd899827f7dc5dcdbde360ce34716d
2014-07-29 20:46:33 +02:00
Noel Grandin
dac4ca5f68 new loplugin: externalandnotdefined
Find "missing headers," where a function is declared directly in the
.cxx (as extern) and not defined, and should arguably instead be declared
in an include file.

Change-Id: I6d83ee432b2ab0cd050aec2b27c3658d32ac02a2
2014-07-11 14:12:25 +02:00
Tor Lillqvist
ff26976702 No need for that #else #error, breaks compilation for the simulator
Change-Id: I5703b269380bbaefd503780b8d396552e6517ddc
2014-07-08 01:24:21 +03:00
Stephan Bergmann
8a85f9f29f Drop unnecessary nFPR parameter
...as passing (an upper bound on) the number of vector registers used in %al is
only required for variable-argument function calls, according to
<http://www.x86-64.org/documentation/abi.pdf> "System V Application Binary
Interface: AMD64 Architecture Processor Supplement, Draft Version 0.99.6."

Unclear why this got added in f424e55b4e
"INTEGRATION: CWS sixtyfour11," maybe on the basis of "doesn't hurt."

Change-Id: If6f8359d5bf6458274905d64adf82634bf90a24d
2014-07-07 12:01:03 +02:00
Stephan Bergmann
aa04177e7c Drop unused nGPR parameter
Change-Id: I60026ccc9c752389260a6b4e6255c53981eea4ba
2014-07-07 12:01:01 +02:00
Stephan Bergmann
e48a233960 loplugin:unreffun: also warn about redundant redeclarations
Change-Id: I9a812220b58cf6da00d854e65794f7c673ab239d
2014-06-27 15:27:39 +02:00
Stephan Bergmann
94b2fe9b00 fdo#71000: Fix SOLARIS-INTEL case
Thanks to Dagobert Michelsen for noticing.

Change-Id: Ife333e74c145ad71c451cb60ba9a8ee4222a2183
2014-06-23 10:54:19 +02:00
Caolán McNamara
e19670ac3c fix build
Change-Id: Ic301459b751585a91aa4d6667fbe512d13bbb458
2014-06-11 09:51:24 +01:00
Baptiste Daroussin
d2725abf5d Fix build on FreeBSD with libc++
Change-Id: Ib51b05eb3f7c5d1288bee0f9f738ab1f37251c3e
Reviewed-on: https://gerrit.libreoffice.org/9722
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-06-11 08:19:19 +00:00
Baptiste Daroussin
a5a17ccdbc Filter out OS not needing -ldl
Change-Id: I5863de6d8b1f0fe2419ea7419b1ff90087bb513d
Reviewed-on: https://gerrit.libreoffice.org/9715
Tested-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-06-10 17:25:04 +00:00
Noel Grandin
14ab8c3f1d bridges: remove SAL_THROW macro
Change-Id: I2daafd711aedab17b6c13fde95c8af5f49d38a7c
2014-06-05 08:17:49 +02:00
Noel Grandin
ebc0a15515 remove more unnecesary OUString constructor use
when throwing exceptions

Change-Id: I6edfb6b6745499f802b0e3c0e096a36fb7c32aac
2014-05-29 09:01:40 +02:00
Stephan Bergmann
26cf118247 Fix undefined misaligned writes
Change-Id: I8ad64babd43c2a692c305f3fa56331edb6d502ee
2014-05-23 16:50:16 +02:00
Noel Grandin
e7bc3cab01 remove boilerplate in UNO Exception constructor calls
Now that we have default values for Exception constructor params,
remove lots of boilerplate code.

Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
2014-05-23 15:06:00 +02:00
Stephan Bergmann
00468b48e8 Work around Clang -fsanitize=address inline asm error
same as 08947735f9 for gcc_linux_x86-64

Change-Id: I28d138dd13adc9a3e09d46befe69ac86ab1fffb6
2014-05-21 09:06:31 +02:00
Noel Grandin
8d54796bf1 enhance pass-by-ref plugin to detect large arguments
Detect arguments larger than 64 chars passed by value.

Change-Id: I9b0ea9ccb99d115984a26eab67c9cf6afd5f6cae
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-05-20 11:17:22 +02:00
Thomas Arnhold
a7eae9c280 fix some header guards
Change-Id: Id2c15eba3f70cd8f1ae8869bc0838aef13cd96ee
2014-05-18 14:31:12 +02:00
Stephan Bergmann
08947735f9 Work around Clang -fsanitize=address inline asm error
Change-Id: Ia37b21af217af9b24522da28e817b4cb6ca2f8c9
2014-05-15 15:13:54 +02:00
Thomas Arnhold
2bd7767d01 Resolves fdo#70681: fixincludeguards.pl: all that's left
Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5
Reviewed-on: https://gerrit.libreoffice.org/9360
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-15 12:50:46 +00:00
Stephan Bergmann
96b129052e Revert "CID#705982 ensure umask for mkstemp"
This reverts commit 9ab9948380.  Coverity warning
about mkstemp without umask appears to be bogus (cf.
<https://communities.coverity.com/message/6516> "Why are uses of mkstemp
'without securely setting umask first' being flagged?) and calling umask is not
MT-safe, see fdo#60338 "FILESAVE: Saved files have incorrect permissions on
linux."
2014-05-13 10:46:00 +02:00
Stephan Bergmann
43fba707c1 Coverity 441351, 441352: JNI_type_info's real dtor is "destroy"
...as it needs a JNIEnv passed in, so cannot use the dtor directly.  Maybe this
code clarification helps silence Coverity's false resource leak reports.

Change-Id: I32e043e3fa9097263302a6c639e6815512410f4e
2014-05-12 15:00:39 +02:00