Commit Graph

40 Commits

Author SHA1 Message Date
Anthony Green
8206253fdf Mark some cases as xfail due to GCC bug 2018-05-09 10:50:46 -04:00
hjl-tools
d3c54cf3a2 Re-enable msabi testing (#436)
* Revert "disable msabi testing for now"

This reverts commit 7b7638eb0e.

* x86: Correct testing for 64-bit x86-64

Since passing -m32 to x86-64 compiler will generate i386 code, we
need to check both __ILP32__ and __i386__ for 64-bit x86-64.

* x86: Check __i386__ instead of i?86-*-* targets

Since passing -m32 to x86-64 compiler will generate i386 code, we need
to check __i386__ instead of i?86-*-* targets for i386 targets.

* i386: Properly passing integer parameters in registers

For thiscall and fastcall, if the paramter passed as 64-bit integer or
struct, all following integer paramters will be passed on stack.

* test: Add ABI_ATTR to callback_code

Add ABI_ATTR to callback_code to properly test different ABIs.
2018-05-02 09:19:58 -04:00
Anthony Green
7b7638eb0e disable msabi testing for now 2018-04-02 08:24:44 -04:00
Anthony Green
48bdb02867 Trim some optimization tests 2018-03-29 07:22:57 -04:00
H.J. Lu
b2a343ffc6 Don't include WIN64/EFI64 for x32
Since x32 doesn't support WIN64/EFI64, don't include it for x32.  Also
x32 has sizeof size_t == 4.  But TARGET should be X86_64.
2017-10-25 05:36:49 -07:00
Anthony Green
c9c2aa2461 Revert previous two changes. clang/MacOS problem can only be solved within dejagnu. 2017-03-15 09:58:39 -04:00
Anthony Green
5a8fca9405 Fix typo 2017-03-15 09:52:39 -04:00
Anthony Green
5b10a01981 Work around dejagnu/clang problems 2017-03-15 09:34:01 -04:00
Yuriy Kolerov
f74ea2dc79 Allow setting an arbitary value for blddirffi in testsuite
It is useful when tests are executed not from build directory. So
the path of the build directory may be passed through site.exp or
runtest.

Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>
2016-07-28 21:34:06 +03:00
Yuriy Kolerov
31362d785e ARC: Link tests with pthread library
Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>
2016-07-28 18:48:23 +03:00
Tom Tromey
02089a1b5c Merge pull request #237 from tschwinge/libffi_feature_test
Simplify/fix libffi_feature_test
2016-05-23 09:58:51 -06:00
Richard Henderson
e5843a3a09 x86: Fix calling convention for ffi_closure_win64_inner
Also enable testing for the cross-abi calls.
2016-04-29 14:17:36 -07:00
Thomas Schwinge
c884551781 Simplify/fix libffi_feature_test
As detailed in
<http://news.gmane.org/find-root.php?message_id=%3C87wppswqqt.fsf%40kepler.schwinge.homeip.net%3E>,
the original code (originally added in commit
f1301a54bb as part of pull request #145) does not
work (at least not for me, in the GCC environment).
2016-03-16 17:37:07 +01:00
Filipe Brandenburger
89b760503e Fix dejagnu test support for --tool_opts
Right now it concatenates it with the existing options and then appends
it to that list, fix it to simply append it as is, same as it is done
with the other variables.

Tested by running the following command which includes gcc options:
  $ make check RUNTESTFLAGS="--tool_opts '-Werror'"

Without this patch, all the tests fail. With it, the test succeed.
Inspecting the logs shows that -Werror was indeed used when compiling
the test sources.
2016-02-03 13:37:39 -08:00
Richard Henderson
f1301a54bb testsuite: Use feature test rather than enumeration for complex 2014-11-14 13:07:45 +01:00
Richard Henderson
b5ade2fb5d testsuite: Detect clang
Clang doesn't like the -Wno-psabi argument that we want to pass to GCC.
Since clang is detected as GCC via __GNUC__, use ax_cv_c_compiler_vendor.
2014-11-14 13:07:16 +01:00
Anthony Green
fbbf48fbdf Compile tests with -Wno-psabi when using GCC 2014-09-20 07:43:51 -04:00
Josh Triplett
7d698125b1 Use the proper C++ compiler to run C++ tests
Running the C compiler with -shared-libgcc -lstdc++ does not work on
non-GCC compilers.
2014-03-27 00:40:27 -07:00
Josh Triplett
e48918ecf8 testsuite: Add ABIs to the test matrix; unify tests across ABIs
This eliminates all the *_win32.c tests in favor of the tests they were
branched from, and expands test coverage to run many more tests on
stdcall, thiscall, and fastcall.

This same mechanism also supports testing any other target that has
multiple ABIs.
2014-03-16 20:39:12 -07:00
Josh Triplett
5695ec1444 testsuite: Factor out a function to run a matrix of tests
This commons up code from libffi.call/call.exp and
libffi.special/special.exp, unifies the optimization option matrix
between the two, and makes it easier to add more axes to the matrix
in the future.
2014-03-16 20:34:46 -07:00
Anthony Green
f26c7ca671 Make compiler options in dejagnu runs compiler specific 2013-01-08 14:47:05 -05:00
Anthony Green
ccee09a4ff +2012-03-21 Peter Rosin <peda@lysator.liu.se>
+
+       * testsuite/lib/target-libpath.exp [*-*-cygwin*, *-*-mingw*]
+       (set_ld_library_path_env_vars): Add the library search dir to PATH
+       (and save PATH for later).
+       (restore_ld_library_path_env_vars): Restore PATH.
2013-01-02 08:41:55 -05:00
Anthony Green
8bad679ade New stand-alone patch 2013-01-02 08:28:35 -05:00
Anthony Green
981c32ee11 Merge with GCC. Eliminate quilt bits. 2013-01-02 07:34:03 -05:00
Anthony Green
58e8b66f70 AArch64 port 2012-10-30 07:36:49 -04:00
Anthony Green
bd78c9c331 More cygwin fixes 2012-03-21 08:09:30 -04:00
Anthony Green
857fe3de46 Clean ups 2011-02-08 19:39:20 -05:00
Anthony Green
bc9d0be295 3.0.10rc0 changes 2011-02-08 17:04:26 -05:00
Anthony Green
2db72615b5 Rebase 2010-11-21 10:50:56 -05:00
Anthony Green
3f5b1375ab rebase 2010-07-12 14:39:18 -04:00
Anthony Green
9dc9a293f3 Rebase to latest GCC sources 2010-04-13 10:33:52 -04:00
Anthony Green
7b7a42f221 Rebase from GCC 2010-01-12 09:14:14 -05:00
Anthony Green
c3042afaf3 Reset quilt patches post 3.0.9 merge with GCC 2010-01-01 08:08:02 -05:00
Anthony Green
0cfe60e9d1 3.0.9rc12 2009-12-29 10:06:04 -05:00
Anthony Green
01c78756af 3.0.9rc9 2009-12-26 10:05:18 -05:00
Anthony Green
9458d88f67 Rebase from GCC 2009-12-26 07:02:27 -05:00
Anthony Green
da11bece0f Release 3.0.9rc5 2009-12-24 05:34:46 -05:00
Anthony Green
115ab36fce Update missing changes for 3.0.9r4. 2009-12-24 00:22:00 -05:00
Anthony Green
5cbe2058c1 Initial stand-alone patch. 2009-10-04 23:53:11 -04:00
Anthony Green
c6dddbd02b Initial commit 2009-10-04 08:11:33 -04:00