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:
Joel Sherrill
2007-07-17 22:32:12 +00:00
parent 9c6019ede7
commit 40cfd3e9f3
4 changed files with 20 additions and 3 deletions

View File

@@ -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.

View File

@@ -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

View 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() {}

View File

@@ -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() {}