[rtems commit] score: Add workaround for GCC bug
Sebastian Huber
sebh at rtems.org
Tue Jul 25 05:47:55 UTC 2023
Module: rtems
Branch: master
Commit: f8d4f16da6c29353c2c71cf6f1bbf213ca43bd42
Changeset: http://git.rtems.org/rtems/commit/?id=f8d4f16da6c29353c2c71cf6f1bbf213ca43bd42
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Jul 6 10:34:15 2023 +0200
score: Add workaround for GCC bug
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108658
This GCC bug leads to an incomplete code coverage status.
Update #4932.
---
cpukit/score/cpu/no_cpu/cpuidle.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/cpukit/score/cpu/no_cpu/cpuidle.c b/cpukit/score/cpu/no_cpu/cpuidle.c
index bff1309d39..a6001e73b0 100644
--- a/cpukit/score/cpu/no_cpu/cpuidle.c
+++ b/cpukit/score/cpu/no_cpu/cpuidle.c
@@ -33,6 +33,13 @@
void *_CPU_Thread_Idle_body( uintptr_t ignored )
{
+ /*
+ * This is a workaround for:
+ *
+ * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108658
+ */
+ __asm__ volatile ("");
+
while ( true ) {
/* Do nothing */
}
More information about the vc
mailing list