From 18105b44d94af7cce253165d4bd3d5bbeaf67310 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Wed, 17 Jun 2009 22:59:16 +0000 Subject: 2009-06-18 Chris Johns * sp35/priinv.c, sp35/priinv.c: Declare unions volatile to workaround the H8300 gcc bug. --- testsuites/sptests/sp35/priinv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testsuites/sptests/sp35/priinv.c') diff --git a/testsuites/sptests/sp35/priinv.c b/testsuites/sptests/sp35/priinv.c index a78b3ceb6d..2289bfea75 100644 --- a/testsuites/sptests/sp35/priinv.c +++ b/testsuites/sptests/sp35/priinv.c @@ -83,7 +83,7 @@ const char *CallerName(void) sprintf( buffer, "0x%08x -- %d", rtems_task_self(), _Thread_Executing->current_priority ); #else - union { + volatile union { uint32_t u; unsigned char c[4]; } TempName; -- cgit v1.2.3