mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 06:08:20 +00:00
2007-07-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* nsecs/Makefile.am, nsecs/init.c: Move empty body to another file. The loop was being optimized out on the PowerPC. * nsecs/empty.c: New file.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2007-07-17 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* nsecs/Makefile.am, nsecs/init.c: Move empty body to another file. The
|
||||
loop was being optimized out on the PowerPC.
|
||||
* nsecs/empty.c: New file.
|
||||
|
||||
2007-07-06 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* nsecs/init.c: Change name to avoid any hint of the timer driver.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
MANAGERS = all
|
||||
|
||||
rtems_tests_PROGRAMS = nsecs.exe
|
||||
nsecs_exe_SOURCES = init.c
|
||||
nsecs_exe_SOURCES = init.c empty.c
|
||||
|
||||
dist_rtems_tests_DATA = nsecs.scn
|
||||
dist_rtems_tests_DATA += nsecs.doc
|
||||
|
||||
13
testsuites/samples/nsecs/empty.c
Normal file
13
testsuites/samples/nsecs/empty.c
Normal file
@@ -0,0 +1,13 @@
|
||||
/* COPYRIGHT (c) 1989-2007.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* put here hoping it won't get inlined */
|
||||
void dummy_function_empty_body_to_force_call() {}
|
||||
|
||||
@@ -146,5 +146,3 @@ rtems_task Init(
|
||||
|
||||
#include <rtems/confdefs.h>
|
||||
|
||||
/* put here hoping it won't get inlined */
|
||||
void dummy_function_empty_body_to_force_call() {}
|
||||
|
||||
Reference in New Issue
Block a user