diff options
author | Jose E. Marchesi <jose.marchesi@oracle.com> | 2025-01-03 13:42:26 +0100 |
---|---|---|
committer | Jose E. Marchesi <jose.marchesi@oracle.com> | 2025-01-03 13:42:26 +0100 |
commit | 995d1c2b7cca9bec23a60f9cbcebccd9f307c53f (patch) | |
tree | 693e670a054684397517f46580e5dbb025e3f731 /gcc/testsuite/gcc.target/bpf/helper-bind.c | |
parent | d22b0e3033d991104ad48c3618981fedea1a8841 (diff) | |
download | gcc-995d1c2b7cca9bec23a60f9cbcebccd9f307c53f.zip gcc-995d1c2b7cca9bec23a60f9cbcebccd9f307c53f.tar.gz gcc-995d1c2b7cca9bec23a60f9cbcebccd9f307c53f.tar.bz2 |
bpf: install a wrapping stdint.h for bpf-none-unknown targets
This patch makes GCC to wrap the host's stdint.h header when operating
in the default hosted/non-freestanding mode. It is thus up to the
user to provide a suitable standard header unless -ffreestanding gets
explicitly passed in the compilation line.
A few tests that use stdint.h are adapted to explicitly pass
-ffreestanding.
Tested in a x86_64-linux-gnu host with target bpf-unknown-none.
gcc/ChangeLog:
* config.gcc: install a wrapping stdint.h in bpf targets.
gcc/testsuite/ChangeLog:
* gcc.target/bpf/diag-funargs-2.c: Use -ffreestanding.
* gcc.target/bpf/helper-skb-ancestor-cgroup-id.c: Likewise.
* gcc.target/bpf/helper-bind.c: Likewise.
* gcc.target/bpf/diag-funargs-3.c: Likewise.
Diffstat (limited to 'gcc/testsuite/gcc.target/bpf/helper-bind.c')
-rw-r--r-- | gcc/testsuite/gcc.target/bpf/helper-bind.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.target/bpf/helper-bind.c b/gcc/testsuite/gcc.target/bpf/helper-bind.c index 53514ba..3b20edc 100644 --- a/gcc/testsuite/gcc.target/bpf/helper-bind.c +++ b/gcc/testsuite/gcc.target/bpf/helper-bind.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-std=gnu99" } */ +/* { dg-options "-std=gnu99 -ffreestanding" } */ #include <stdint.h> |