On 1 April 2021 20:32:34 CEST, Joel Sherrill <j...@rtems.org> wrote: >Change the preprocessor logic so RTEMS uses utime(). > gcc/ada/ > * adaint.c (__gnat_copy_attribs): RTEMS should use utime().
RTEMS probably doesn't care alot about accurate time, from the looks. Otherwise it would not mandate use of the obsolescent utime() (AFA SUS is concerned WRT nanoseconds precision) it seems? They probably know what they're doing I suppose. thanks, PS I shouldn't reply to none of my business, I know.. >--- > gcc/ada/adaint.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c >index 0a90c92402c..d3b83f61076 100644 >--- a/gcc/ada/adaint.c >+++ b/gcc/ada/adaint.c >@@ -3270,7 +3270,7 @@ __gnat_copy_attribs (char *from ATTRIBUTE_UNUSED, >char *to ATTRIBUTE_UNUSED, > return -1; > } > >-#if (defined (__vxworks) && _WRS_VXWORKS_MAJOR < 7) >+#if (defined (__vxworks) && _WRS_VXWORKS_MAJOR < 7) || >defined(__rtems__) > > /* VxWorks prior to 7 only has utime. */ >