aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/runtime.h
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@adacore.com>2019-07-18 16:37:40 +0000
committerArnaud Charlet <charlet@gcc.gnu.org>2019-07-18 18:37:40 +0200
commita6fc663e311b2b862373e4a4f3ee7d6836acb1a2 (patch)
tree6d0223791c112e5b47e7dd4a5dc668f65c71ca4f /gcc/ada/runtime.h
parentb9a0100963b357e7e84084e45bbc51d6576410a4 (diff)
downloadgcc-a6fc663e311b2b862373e4a4f3ee7d6836acb1a2.zip
gcc-a6fc663e311b2b862373e4a4f3ee7d6836acb1a2.tar.gz
gcc-a6fc663e311b2b862373e4a4f3ee7d6836acb1a2.tar.bz2
Makefile.rtl, [...]: Introduce a "STANDALONE" mode where C runtime files do not have any dependency...
* Makefile.rtl, expect.c, env.c, aux-io.c, mkdir.c, initialize.c, cstreams.c, raise.c, tracebak.c, adadecode.c, init.c, raise-gcc.c, argv.c, adaint.c, adaint.h, ctrl_c.c, sysdep.c, rtinit.c, cio.c, seh_init.c, exit.c, targext.c: Introduce a "STANDALONE" mode where C runtime files do not have any dependency on GCC include files. Remove unnecessary includes. Remove remaining references to VMS in runtime C file. * runtime.h: new File. From-SVN: r273576
Diffstat (limited to 'gcc/ada/runtime.h')
-rw-r--r--gcc/ada/runtime.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/gcc/ada/runtime.h b/gcc/ada/runtime.h
new file mode 100644
index 0000000..df42730
--- /dev/null
+++ b/gcc/ada/runtime.h
@@ -0,0 +1,44 @@
+/****************************************************************************
+ * *
+ * GNAT COMPILER COMPONENTS *
+ * *
+ * RUNTIME *
+ * *
+ * C Header File *
+ * *
+ * Copyright (C) 2019, Free Software Foundation, Inc. *
+ * *
+ * GNAT is free software; you can redistribute it and/or modify it under *
+ * terms of the GNU General Public License as published by the Free Soft- *
+ * ware Foundation; either version 3, or (at your option) any later ver- *
+ * sion. GNAT is distributed in the hope that it will be useful, but WITH- *
+ * OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *
+ * or FITNESS FOR A PARTICULAR PURPOSE. *
+ * *
+ * As a special exception under Section 7 of GPL version 3, you are granted *
+ * additional permissions described in the GCC Runtime Library Exception, *
+ * version 3.1, as published by the Free Software Foundation. *
+ * *
+ * You should have received a copy of the GNU General Public License and *
+ * a copy of the GCC Runtime Library Exception along with this program; *
+ * see the files COPYING3 and COPYING.RUNTIME respectively. If not, see *
+ * <http://www.gnu.org/licenses/>. *
+ * *
+ * GNAT was originally developed by the GNAT team at New York University. *
+ * Extensive contributions were provided by Ada Core Technologies Inc. *
+ * *
+ ****************************************************************************/
+
+/* This file provides common definitions used by GNAT C runtime files. */
+
+#ifdef __vxworks
+#include "vxWorks.h"
+#endif /* __vxworks */
+
+#ifndef ATTRIBUTE_UNUSED
+#define ATTRIBUTE_UNUSED __attribute__((unused))
+#endif
+
+#ifndef ATTRIBUTE_NORETURN
+#define ATTRIBUTE_NORETURN __attribute__((noreturn))
+#endif