vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
authorRichard Sandiford <richard@codesourcery.com>
Fri, 16 Mar 2007 14:35:26 +0000 (14:35 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 16 Mar 2007 14:35:26 +0000 (14:35 +0000)
gcc/
* config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.

From-SVN: r122992

gcc/ChangeLog
gcc/config/vxworks.h

index 9f6635736b4cf0d9cd6c567c1aff9c82c632a4e9..b664cdf9be2c96cb244de39a3c12a3c8ad370fb2 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 2d8bfbd8c86809e740f82f3925ef6dbdf78d2e8f..10d727f4f8bd53df169bf7cba35905e4c57c7502 100644 (file)
@@ -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