public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Jose E. Marchesi" <jose.marchesi@oracle.com>
To: gcc-patches@gcc.gnu.org
Subject: [PATCH V6 08/11] bpf: make target-supports.exp aware of eBPF
Date: Thu, 29 Aug 2019 15:16:00 -0000	[thread overview]
Message-ID: <20190829151347.13536-9-jose.marchesi@oracle.com> (raw)
In-Reply-To: <20190829151347.13536-1-jose.marchesi@oracle.com>

This patch makes the several effective target checks in
target-supports.exp to be aware of eBPF targets.

gcc/testsuite/ChangeLog:

	* lib/target-supports.exp
        (check_effective_target_trampolines): Adapt to eBPF.
	(check_effective_target_stack_size): Likewise.
	(dg-effective-target-value): Likewise.
	(check_effective_target_indirect_jumps): Likewise.
	(check_effective_target_nonlocal_goto): Likewise.
	(check_effective_target_global_constructor): Likewise.
	(check_effective_target_return_address): Likewise.
---
 gcc/testsuite/ChangeLog               |  9 +++++++++
 gcc/testsuite/lib/target-supports.exp | 18 +++++++++++-------
 2 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index f457a46a02b..ce08a2f8421 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -526,7 +526,8 @@ proc check_effective_target_trampolines { } {
 	 || [istarget nvptx-*-*]
 	 || [istarget hppa2.0w-hp-hpux11.23]
 	 || [istarget hppa64-hp-hpux11.23]
-	 || [istarget pru-*-*] } {
+	 || [istarget pru-*-*]
+	 || [istarget bpf-*-*] } {
 	return 0;
     }
     return 1
@@ -781,7 +782,7 @@ proc add_options_for_tls { flags } {
 # Return 1 if indirect jumps are supported, 0 otherwise.
 
 proc check_effective_target_indirect_jumps {} {
-    if { [istarget nvptx-*-*] } {
+    if { [istarget nvptx-*-*] || [istarget bpf-*-*] } {
 	return 0
     }
     return 1
@@ -790,7 +791,7 @@ proc check_effective_target_indirect_jumps {} {
 # Return 1 if nonlocal goto is supported, 0 otherwise.
 
 proc check_effective_target_nonlocal_goto {} {
-    if { [istarget nvptx-*-*] } {
+    if { [istarget nvptx-*-*] || [istarget bpf-*-*] } {
 	return 0
     }
     return 1
@@ -799,10 +800,9 @@ proc check_effective_target_nonlocal_goto {} {
 # Return 1 if global constructors are supported, 0 otherwise.
 
 proc check_effective_target_global_constructor {} {
-    if { [istarget nvptx-*-*] } {
-	return 0
-    }
-    if { [istarget amdgcn-*-*] } {
+    if { [istarget nvptx-*-*]
+	 || [istarget amdgcn-*-*]
+	 || [istarget bpf-*-*] } {
 	return 0
     }
     return 1
@@ -825,6 +825,10 @@ proc check_effective_target_return_address {} {
     if { [istarget nvptx-*-*] } {
 	return 0
     }
+    # No notion of return address in eBPF.
+    if { [istarget bpf-*-*] } {
+	return 0
+    }
     # It could be supported on amdgcn, but isn't yet.
     if { [istarget amdgcn*-*-*] } {
 	return 0
-- 
2.11.0

  parent reply	other threads:[~2019-08-29 15:14 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-29 15:32 [PATCH V6 00/11] eBPF support for GCC Jose E. Marchesi
2019-08-29 15:14 ` [PATCH V6 04/11] testsuite: new require effective target indirect_calls Jose E. Marchesi
2019-09-09  9:56   ` Jose E. Marchesi
2019-09-11 18:55   ` Mike Stump
2019-09-11 20:47     ` Jose E. Marchesi
2019-09-12  0:43       ` Mike Stump
2019-08-29 15:14 ` [PATCH V6 03/11] testsuite: annotate c-torture/compile tests with dg-require-stack-size Jose E. Marchesi
2019-09-09  9:52   ` Jose E. Marchesi
2019-09-11 18:42   ` Mike Stump
2019-09-11 20:49     ` Jose E. Marchesi
2019-08-29 15:16 ` [PATCH V6 07/11] bpf: gcc.target eBPF testsuite Jose E. Marchesi
2019-08-29 15:16 ` Jose E. Marchesi [this message]
2019-09-11 18:58   ` [PATCH V6 08/11] bpf: make target-supports.exp aware of eBPF Mike Stump
2019-09-12  0:35     ` Mike Stump
2019-08-29 15:18 ` [PATCH V6 11/11] bpf: add myself as the maintainer for the eBPF port Jose E. Marchesi
2019-09-08 11:36   ` Gerald Pfeifer
2019-09-08 16:39     ` Jose E. Marchesi
2019-10-07 18:52     ` Thomas Schwinge
2019-08-29 15:18 ` [PATCH V6 10/11] bpf: manual updates for eBPF Jose E. Marchesi
2019-08-29 15:20 ` [PATCH V6 01/11] Update config.sub and config.guess Jose E. Marchesi
2019-09-09  9:17   ` Jose E. Marchesi
2019-08-29 15:21 ` [PATCH V6 09/11] bpf: adjust GCC testsuite to eBPF limitations Jose E. Marchesi
2019-09-11 19:04   ` Mike Stump
2019-08-29 15:21 ` [PATCH V6 06/11] bpf: new libgcc port Jose E. Marchesi
2019-08-29 15:34 ` [PATCH V6 02/11] opt-functions.awk: fix comparison of limit, begin and end Jose E. Marchesi
2019-09-09  9:47   ` Jose E. Marchesi
2019-08-29 15:36 ` [PATCH V6 05/11] bpf: new GCC port Jose E. Marchesi
2019-08-30  8:38   ` Richard Sandiford
2019-08-30 10:11     ` Jose E. Marchesi
2019-09-03 18:46       ` Jeff Law
2019-09-05 22:50         ` Jose E. Marchesi
2019-09-11 19:09           ` Mike Stump
2019-09-09 10:23         ` Jose E. Marchesi
2019-10-20 19:51           ` Gerald Pfeifer
2019-10-24  8:45             ` Jose E. Marchesi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190829151347.13536-9-jose.marchesi@oracle.com \
    --to=jose.marchesi@oracle.com \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).