* gcc.dg/intmax_t-1.c compiles without error on VxWorks 7 SR06x0
@ 2020-12-22 21:36 Alexandre Oliva
2020-12-29 18:24 ` Mike Stump
0 siblings, 1 reply; 2+ messages in thread
From: Alexandre Oliva @ 2020-12-22 21:36 UTC (permalink / raw)
To: gcc-patches; +Cc: Joel Brobecker
This test currently fails on VxWorks 7 SR06x0 targets when in kernel
mode, because it expects a discrepancy between built-in and system
intmax_t for all VxWorks targets when in kernel mode. Fortunately,
this has now been fixed when targetting VxWorks 7 SR06x0, so this
commit adjusts the "dg-error" condition to exclude newer versions of
VxWorks 7.
Regstrapped on x86_64-linux-gnu, and tested with -x-arm-wrs-vxworks7r2.
Ok to install?
from Joel Brobecker <brobecker@adacore.com>
for gcc/testsuite/ChangeLog
* gcc.dg/intmax_t-1.c: Do not expect an error on *-*-vxworks7r*
targets.
---
gcc/testsuite/gcc.dg/intmax_t-1.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.dg/intmax_t-1.c b/gcc/testsuite/gcc.dg/intmax_t-1.c
index 00b503c250906..03d4266cc7b0a 100644
--- a/gcc/testsuite/gcc.dg/intmax_t-1.c
+++ b/gcc/testsuite/gcc.dg/intmax_t-1.c
@@ -1,6 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-Wall" } */
-/* { dg-error "" "" { target { { *arm*-*-*elf* xtensa*-*-elf* } || vxworks_kernel } } 0 } */
+/* { dg-error "" "" { target { { *arm*-*-*elf* xtensa*-*-elf* } || { vxworks_kernel && { ! *-*-vxworks7r* } } } } 0 } */
/* Compile with -Wall to get a warning if built-in and system intmax_t don't
match. */
--
Alexandre Oliva, happy hacker https://FSFLA.org/blogs/lxo/
Free Software Activist GNU Toolchain Engineer
Vim, Vi, Voltei pro Emacs -- GNUlius Caesar
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: gcc.dg/intmax_t-1.c compiles without error on VxWorks 7 SR06x0
2020-12-22 21:36 gcc.dg/intmax_t-1.c compiles without error on VxWorks 7 SR06x0 Alexandre Oliva
@ 2020-12-29 18:24 ` Mike Stump
0 siblings, 0 replies; 2+ messages in thread
From: Mike Stump @ 2020-12-29 18:24 UTC (permalink / raw)
To: Alexandre Oliva; +Cc: gcc-patches, Joel Brobecker
On Dec 22, 2020, at 1:36 PM, Alexandre Oliva <oliva@adacore.com> wrote:
>
> This test currently fails on VxWorks 7 SR06x0 targets when in kernel
> mode, because it expects a discrepancy between built-in and system
> intmax_t for all VxWorks targets when in kernel mode. Fortunately,
> this has now been fixed when targetting VxWorks 7 SR06x0, so this
> commit adjusts the "dg-error" condition to exclude newer versions of
> VxWorks 7.
>
> Regstrapped on x86_64-linux-gnu, and tested with -x-arm-wrs-vxworks7r2.
> Ok to install?
Ok.
fix includes or making the builtin agree with the system is a nicer longer term solution.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-29 18:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-22 21:36 gcc.dg/intmax_t-1.c compiles without error on VxWorks 7 SR06x0 Alexandre Oliva
2020-12-29 18:24 ` Mike Stump
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).