aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/init.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel@OARcorp.com>2004-04-08 17:54:03 +0000
committerJoel Sherrill <joel@gcc.gnu.org>2004-04-08 17:54:03 +0000
commitc00e272ed3f6c7cb31b9f6777a9f0753ed414340 (patch)
treeac68fae9acea022241c01614bfabb10c23c1bec3 /gcc/ada/init.c
parent4afae4b9c87a32dd832f2b28670a8e074982db98 (diff)
downloadgcc-c00e272ed3f6c7cb31b9f6777a9f0753ed414340.zip
gcc-c00e272ed3f6c7cb31b9f6777a9f0753ed414340.tar.gz
gcc-c00e272ed3f6c7cb31b9f6777a9f0753ed414340.tar.bz2
re PR ada/14538 (*-rtems broken for gnat)
2004-04-08 Joel Sherrill <joel@oarcorp.com> PR ada/14538 * ada/5rosinte.adb: Remove fake mprotect() body. * ada/5rosinte.ads: Add SA_SIGINFO. * ada/5rtpopsp.adb: Rewrite to use new interface. * ada/init.c: Reorder so the simple single OS conditional __rtems__ is tested before more complex ones which mix UNIX and embedded systems in the conditional. From-SVN: r80517
Diffstat (limited to 'gcc/ada/init.c')
-rw-r--r--gcc/ada/init.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/gcc/ada/init.c b/gcc/ada/init.c
index e627a8b..efc1a25 100644
--- a/gcc/ada/init.c
+++ b/gcc/ada/init.c
@@ -359,6 +359,22 @@ __gnat_initialize (void)
{
}
+/***************************************/
+/* __gnat_initialize (RTEMS version) */
+/***************************************/
+
+#elif defined(__rtems__)
+
+extern void __gnat_install_handler (void);
+
+/* For RTEMS, each bsp will provide a custom __gnat_install_handler (). */
+
+void
+__gnat_initialize (void)
+{
+ __gnat_install_handler ();
+}
+
/****************************************/
/* __gnat_initialize (Dec Unix Version) */
/****************************************/
@@ -1887,22 +1903,6 @@ __gnat_initialize (void)
__gnat_init_float ();
}
-/***************************************/
-/* __gnat_initialize (RTEMS version) */
-/***************************************/
-
-#elif defined(__rtems__)
-
-extern void __gnat_install_handler (void);
-
-/* For RTEMS, each bsp will provide a custom __gnat_install_handler (). */
-
-void
-__gnat_initialize (void)
-{
- __gnat_install_handler ();
-}
-
#else
/* For all other versions of GNAT, the initialize routine and handler