aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Sandiford <richard@codesourcery.com>2007-03-16 14:35:26 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2007-03-16 14:35:26 +0000
commitad8577fdb6a9be21dd442a5cec4b5fa0ced803f9 (patch)
treecaea8ca8a56a5793f9ecf2b0d210838b1b759ace /gcc
parentd95d45fd6b4a7b7ac5e4de90c15bfbb6ca5bbe08 (diff)
downloadgcc-ad8577fdb6a9be21dd442a5cec4b5fa0ced803f9.zip
gcc-ad8577fdb6a9be21dd442a5cec4b5fa0ced803f9.tar.gz
gcc-ad8577fdb6a9be21dd442a5cec4b5fa0ced803f9.tar.bz2
vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
gcc/ * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define. From-SVN: r122992
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/vxworks.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9f66357..b664cdf 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2007-03-16 Richard Sandiford <richard@codesourcery.com>
+ * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
+
+2007-03-16 Richard Sandiford <richard@codesourcery.com>
+
* config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
2007-03-16 Uros Bizjak <ubizjak@gmail.com>
diff --git a/gcc/config/vxworks.h b/gcc/config/vxworks.h
index 2d8bfbd..10d727f 100644
--- a/gcc/config/vxworks.h
+++ b/gcc/config/vxworks.h
@@ -87,6 +87,10 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
#define VXWORKS_OVERRIDE_OPTIONS vxworks_override_options ()
extern void vxworks_override_options (void);
+/* Only RTPs support prioritized constructors and destructors:
+ the implementation relies on numbered .ctors* sections. */
+#define SUPPORTS_INIT_PRIORITY TARGET_VXWORKS_RTP
+
/* VxWorks requires special handling of constructors and destructors.
All VxWorks configurations must use these functions. */
#define TARGET_ASM_CONSTRUCTOR vxworks_asm_out_constructor