From 479cbaf81d905ac8c91983781783010a54a22282 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 21 Oct 2010 22:18:05 +0000 Subject: 2010-10-21 Joel Sherrill * rtems/score/cpu.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to _CPU_Context_restore() because it does not return. Telling GCC this avoids generation of dead code. --- cpukit/score/cpu/avr/ChangeLog | 6 ++++++ cpukit/score/cpu/avr/rtems/score/cpu.h | 4 ++-- cpukit/score/cpu/bfin/ChangeLog | 6 ++++++ cpukit/score/cpu/bfin/rtems/score/cpu.h | 2 +- cpukit/score/cpu/h8300/ChangeLog | 6 ++++++ cpukit/score/cpu/h8300/rtems/score/cpu.h | 2 +- cpukit/score/cpu/lm32/ChangeLog | 6 ++++++ cpukit/score/cpu/lm32/rtems/score/cpu.h | 2 +- cpukit/score/cpu/m32c/ChangeLog | 6 ++++++ cpukit/score/cpu/m32c/rtems/score/cpu.h | 2 +- cpukit/score/cpu/m32r/ChangeLog | 6 ++++++ cpukit/score/cpu/m32r/rtems/score/cpu.h | 2 +- cpukit/score/cpu/mips/ChangeLog | 6 ++++++ cpukit/score/cpu/mips/rtems/score/cpu.h | 2 +- cpukit/score/cpu/nios2/ChangeLog | 6 ++++++ cpukit/score/cpu/nios2/rtems/score/cpu.h | 2 +- cpukit/score/cpu/no_cpu/ChangeLog | 6 ++++++ cpukit/score/cpu/no_cpu/rtems/score/cpu.h | 2 +- cpukit/score/cpu/powerpc/ChangeLog | 6 ++++++ cpukit/score/cpu/powerpc/rtems/score/cpu.h | 2 +- cpukit/score/cpu/sh/ChangeLog | 6 ++++++ cpukit/score/cpu/sh/rtems/score/cpu.h | 2 +- cpukit/score/cpu/sparc/ChangeLog | 6 ++++++ cpukit/score/cpu/sparc/rtems/score/cpu.h | 2 +- cpukit/score/cpu/sparc64/ChangeLog | 6 ++++++ cpukit/score/cpu/sparc64/rtems/score/cpu.h | 2 +- 26 files changed, 92 insertions(+), 14 deletions(-) (limited to 'cpukit/score') diff --git a/cpukit/score/cpu/avr/ChangeLog b/cpukit/score/cpu/avr/ChangeLog index 89a05488eb..54414b4b7d 100644 --- a/cpukit/score/cpu/avr/ChangeLog +++ b/cpukit/score/cpu/avr/ChangeLog @@ -1,3 +1,9 @@ +2010-10-21 Joel Sherrill + + * rtems/score/cpu.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to + _CPU_Context_restore() because it does not return. Telling GCC this + avoids generation of dead code. + 2010-07-30 Gedare Bloom PR 1599/cpukit diff --git a/cpukit/score/cpu/avr/rtems/score/cpu.h b/cpukit/score/cpu/avr/rtems/score/cpu.h index 89c39aa161..688c407445 100644 --- a/cpukit/score/cpu/avr/rtems/score/cpu.h +++ b/cpukit/score/cpu/avr/rtems/score/cpu.h @@ -745,7 +745,7 @@ uint32_t _CPU_ISR_Get_level( void ); * XXX document implementation including references if appropriate */ -#define _CPU_Context_Restart_self( _the_context ) \ +#define eCPU_Context_Restart_self( _the_context ) \ _CPU_Context_restore( _the_context ); /* @@ -1081,7 +1081,7 @@ void _CPU_Context_switch( void _CPU_Context_restore( Context_Control *new_context -); +) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; /* * _CPU_Context_save_fp diff --git a/cpukit/score/cpu/bfin/ChangeLog b/cpukit/score/cpu/bfin/ChangeLog index a2281d9d07..993ff190d6 100644 --- a/cpukit/score/cpu/bfin/ChangeLog +++ b/cpukit/score/cpu/bfin/ChangeLog @@ -1,3 +1,9 @@ +2010-10-21 Joel Sherrill + + * rtems/score/cpu.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to + _CPU_Context_restore() because it does not return. Telling GCC this + avoids generation of dead code. + 2010-07-29 Gedare Bloom PR 1635/cpukit diff --git a/cpukit/score/cpu/bfin/rtems/score/cpu.h b/cpukit/score/cpu/bfin/rtems/score/cpu.h index 3bfa128922..eef8b875ae 100644 --- a/cpukit/score/cpu/bfin/rtems/score/cpu.h +++ b/cpukit/score/cpu/bfin/rtems/score/cpu.h @@ -1164,7 +1164,7 @@ void _CPU_Context_switch( */ void _CPU_Context_restore( Context_Control *new_context -); +) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; /** * @ingroup CPUContext diff --git a/cpukit/score/cpu/h8300/ChangeLog b/cpukit/score/cpu/h8300/ChangeLog index aba5af5bf4..85182b48c2 100644 --- a/cpukit/score/cpu/h8300/ChangeLog +++ b/cpukit/score/cpu/h8300/ChangeLog @@ -1,3 +1,9 @@ +2010-10-21 Joel Sherrill + + * rtems/score/cpu.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to + _CPU_Context_restore() because it does not return. Telling GCC this + avoids generation of dead code. + 2010-07-29 Gedare Bloom PR 1635/cpukit diff --git a/cpukit/score/cpu/h8300/rtems/score/cpu.h b/cpukit/score/cpu/h8300/rtems/score/cpu.h index 82f3e40355..1a5a66afa6 100644 --- a/cpukit/score/cpu/h8300/rtems/score/cpu.h +++ b/cpukit/score/cpu/h8300/rtems/score/cpu.h @@ -1059,7 +1059,7 @@ void _CPU_Context_switch( void _CPU_Context_restore( Context_Control *new_context -); +) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; /* * _CPU_Context_save_fp diff --git a/cpukit/score/cpu/lm32/ChangeLog b/cpukit/score/cpu/lm32/ChangeLog index bd1440e24e..318ca790f6 100644 --- a/cpukit/score/cpu/lm32/ChangeLog +++ b/cpukit/score/cpu/lm32/ChangeLog @@ -1,3 +1,9 @@ +2010-10-21 Joel Sherrill + + * rtems/score/cpu.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to + _CPU_Context_restore() because it does not return. Telling GCC this + avoids generation of dead code. + 2010-09-26 Yann Sionneau PR 1697/cpukit diff --git a/cpukit/score/cpu/lm32/rtems/score/cpu.h b/cpukit/score/cpu/lm32/rtems/score/cpu.h index 772f70d9a9..26a47f1266 100644 --- a/cpukit/score/cpu/lm32/rtems/score/cpu.h +++ b/cpukit/score/cpu/lm32/rtems/score/cpu.h @@ -1168,7 +1168,7 @@ void _CPU_Context_switch( */ void _CPU_Context_restore( Context_Control *new_context -); +) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; /** * @ingroup CPUContext diff --git a/cpukit/score/cpu/m32c/ChangeLog b/cpukit/score/cpu/m32c/ChangeLog index 6ef29ded04..03f50547ef 100644 --- a/cpukit/score/cpu/m32c/ChangeLog +++ b/cpukit/score/cpu/m32c/ChangeLog @@ -1,3 +1,9 @@ +2010-10-21 Joel Sherrill + + * rtems/score/cpu.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to + _CPU_Context_restore() because it does not return. Telling GCC this + avoids generation of dead code. + 2010-07-30 Gedare Bloom PR 1599/cpukit diff --git a/cpukit/score/cpu/m32c/rtems/score/cpu.h b/cpukit/score/cpu/m32c/rtems/score/cpu.h index 97715fe624..fbb115e4a7 100644 --- a/cpukit/score/cpu/m32c/rtems/score/cpu.h +++ b/cpukit/score/cpu/m32c/rtems/score/cpu.h @@ -1124,7 +1124,7 @@ void _CPU_Context_switch( */ void _CPU_Context_restore( Context_Control *new_context -); +) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; /** * @ingroup CPUEndian diff --git a/cpukit/score/cpu/m32r/ChangeLog b/cpukit/score/cpu/m32r/ChangeLog index 146721e720..aa584ae9e5 100644 --- a/cpukit/score/cpu/m32r/ChangeLog +++ b/cpukit/score/cpu/m32r/ChangeLog @@ -1,3 +1,9 @@ +2010-10-21 Joel Sherrill + + * rtems/score/cpu.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to + _CPU_Context_restore() because it does not return. Telling GCC this + avoids generation of dead code. + 2010-07-30 Gedare Bloom PR 1599/cpukit diff --git a/cpukit/score/cpu/m32r/rtems/score/cpu.h b/cpukit/score/cpu/m32r/rtems/score/cpu.h index 431cc1dab1..4cbb3e99d2 100644 --- a/cpukit/score/cpu/m32r/rtems/score/cpu.h +++ b/cpukit/score/cpu/m32r/rtems/score/cpu.h @@ -1149,7 +1149,7 @@ void _CPU_Context_switch( */ void _CPU_Context_restore( Context_Control *new_context -); +) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; /** * @ingroup CPUContext diff --git a/cpukit/score/cpu/mips/ChangeLog b/cpukit/score/cpu/mips/ChangeLog index 9fe41445b3..c70c105a31 100644 --- a/cpukit/score/cpu/mips/ChangeLog +++ b/cpukit/score/cpu/mips/ChangeLog @@ -1,3 +1,9 @@ +2010-10-21 Joel Sherrill + + * rtems/score/cpu.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to + _CPU_Context_restore() because it does not return. Telling GCC this + avoids generation of dead code. + 2010-07-30 Gedare Bloom PR 1599/cpukit diff --git a/cpukit/score/cpu/mips/rtems/score/cpu.h b/cpukit/score/cpu/mips/rtems/score/cpu.h index f0eb250d68..8d94aba5f6 100644 --- a/cpukit/score/cpu/mips/rtems/score/cpu.h +++ b/cpukit/score/cpu/mips/rtems/score/cpu.h @@ -1084,7 +1084,7 @@ void _CPU_Context_switch( void _CPU_Context_restore( Context_Control *new_context -); +) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; /* * _CPU_Context_save_fp diff --git a/cpukit/score/cpu/nios2/ChangeLog b/cpukit/score/cpu/nios2/ChangeLog index 3b2f03c622..eb2c8c9837 100644 --- a/cpukit/score/cpu/nios2/ChangeLog +++ b/cpukit/score/cpu/nios2/ChangeLog @@ -1,3 +1,9 @@ +2010-10-21 Joel Sherrill + + * rtems/score/cpu.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to + _CPU_Context_restore() because it does not return. Telling GCC this + avoids generation of dead code. + 2010-07-30 Gedare Bloom PR 1599/cpukit diff --git a/cpukit/score/cpu/nios2/rtems/score/cpu.h b/cpukit/score/cpu/nios2/rtems/score/cpu.h index b08a9b67ed..810671bb73 100644 --- a/cpukit/score/cpu/nios2/rtems/score/cpu.h +++ b/cpukit/score/cpu/nios2/rtems/score/cpu.h @@ -1212,7 +1212,7 @@ void _CPU_Context_switch( */ void _CPU_Context_restore( Context_Control *new_context -); +) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; /** * @ingroup CPUContext diff --git a/cpukit/score/cpu/no_cpu/ChangeLog b/cpukit/score/cpu/no_cpu/ChangeLog index bb06636adb..f6c9e4bdd0 100644 --- a/cpukit/score/cpu/no_cpu/ChangeLog +++ b/cpukit/score/cpu/no_cpu/ChangeLog @@ -1,3 +1,9 @@ +2010-10-21 Joel Sherrill + + * rtems/score/cpu.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to + _CPU_Context_restore() because it does not return. Telling GCC this + avoids generation of dead code. + 2010-07-30 Gedare Bloom PR 1599/cpukit diff --git a/cpukit/score/cpu/no_cpu/rtems/score/cpu.h b/cpukit/score/cpu/no_cpu/rtems/score/cpu.h index a731eb7d1a..82b7ce629e 100644 --- a/cpukit/score/cpu/no_cpu/rtems/score/cpu.h +++ b/cpukit/score/cpu/no_cpu/rtems/score/cpu.h @@ -1148,7 +1148,7 @@ void _CPU_Context_switch( */ void _CPU_Context_restore( Context_Control *new_context -); +) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; /** * @ingroup CPUContext diff --git a/cpukit/score/cpu/powerpc/ChangeLog b/cpukit/score/cpu/powerpc/ChangeLog index 7db74fc1bf..17016e5eb0 100644 --- a/cpukit/score/cpu/powerpc/ChangeLog +++ b/cpukit/score/cpu/powerpc/ChangeLog @@ -1,3 +1,9 @@ +2010-10-21 Joel Sherrill + + * rtems/score/cpu.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to + _CPU_Context_restore() because it does not return. Telling GCC this + avoids generation of dead code. + 2010-07-29 Gedare Bloom PR 1635/cpukit diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/rtems/score/cpu.h index bdeef06d64..9e15553092 100644 --- a/cpukit/score/cpu/powerpc/rtems/score/cpu.h +++ b/cpukit/score/cpu/powerpc/rtems/score/cpu.h @@ -902,7 +902,7 @@ void _CPU_Context_switch( void _CPU_Context_restore( Context_Control *new_context -); +) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; /* * _CPU_Context_save_fp diff --git a/cpukit/score/cpu/sh/ChangeLog b/cpukit/score/cpu/sh/ChangeLog index 5c4e9b3bd4..a51270bc78 100644 --- a/cpukit/score/cpu/sh/ChangeLog +++ b/cpukit/score/cpu/sh/ChangeLog @@ -1,3 +1,9 @@ +2010-10-21 Joel Sherrill + + * rtems/score/cpu.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to + _CPU_Context_restore() because it does not return. Telling GCC this + avoids generation of dead code. + 2010-07-29 Gedare Bloom PR 1635/cpukit diff --git a/cpukit/score/cpu/sh/rtems/score/cpu.h b/cpukit/score/cpu/sh/rtems/score/cpu.h index 4e5167517c..3fe51b7792 100644 --- a/cpukit/score/cpu/sh/rtems/score/cpu.h +++ b/cpukit/score/cpu/sh/rtems/score/cpu.h @@ -861,7 +861,7 @@ void _CPU_Context_switch( void _CPU_Context_restore( Context_Control *new_context -); +) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; /* * _CPU_Context_save_fp diff --git a/cpukit/score/cpu/sparc/ChangeLog b/cpukit/score/cpu/sparc/ChangeLog index a13e42eeb6..150ada5de3 100644 --- a/cpukit/score/cpu/sparc/ChangeLog +++ b/cpukit/score/cpu/sparc/ChangeLog @@ -1,3 +1,9 @@ +2010-10-21 Joel Sherrill + + * rtems/score/cpu.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to + _CPU_Context_restore() because it does not return. Telling GCC this + avoids generation of dead code. + 2010-07-29 Gedare Bloom PR 1635/cpukit diff --git a/cpukit/score/cpu/sparc/rtems/score/cpu.h b/cpukit/score/cpu/sparc/rtems/score/cpu.h index 11984ea057..3f2311fdfe 100644 --- a/cpukit/score/cpu/sparc/rtems/score/cpu.h +++ b/cpukit/score/cpu/sparc/rtems/score/cpu.h @@ -925,7 +925,7 @@ void _CPU_Context_switch( void _CPU_Context_restore( Context_Control *new_context -); +) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; /* * _CPU_Context_save_fp diff --git a/cpukit/score/cpu/sparc64/ChangeLog b/cpukit/score/cpu/sparc64/ChangeLog index 0931544bb1..4eb2ba84e6 100644 --- a/cpukit/score/cpu/sparc64/ChangeLog +++ b/cpukit/score/cpu/sparc64/ChangeLog @@ -1,3 +1,9 @@ +2010-10-21 Joel Sherrill + + * rtems/score/cpu.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to + _CPU_Context_restore() because it does not return. Telling GCC this + avoids generation of dead code. + 2010-08-19 Gedare Bloom PR 1681/cpukit diff --git a/cpukit/score/cpu/sparc64/rtems/score/cpu.h b/cpukit/score/cpu/sparc64/rtems/score/cpu.h index 082b973b8f..0d684ea1b5 100644 --- a/cpukit/score/cpu/sparc64/rtems/score/cpu.h +++ b/cpukit/score/cpu/sparc64/rtems/score/cpu.h @@ -999,7 +999,7 @@ void _CPU_Context_switch( void _CPU_Context_restore( Context_Control *new_context -); +) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; /* * _CPU_Context_save_fp -- cgit v1.2.3