summaryrefslogtreecommitdiff
path: root/gcc/config/vxworks.h
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-07 11:52:52 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-07 11:52:52 +0000
commit80fbffcbb859e9758c1d5b1b8d09311673b34e05 (patch)
tree5e80d3400fff9fbc6fe3c3b9b6f7807f76ff114c /gcc/config/vxworks.h
parent77fbd2dce8def46072c95bf4f6153289ca0b7e90 (diff)
downloadgcc-80fbffcbb859e9758c1d5b1b8d09311673b34e05.tar.gz
gcc/
* config/vxworks.h (vxworks_override_options): Declare. (VXWORKS_OVERRIDE_OPTIONS): Use it. * config/vxworks.c: Include target.h and toplev.h. (vxworks_override_options): New function. * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122657 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/vxworks.h')
-rw-r--r--gcc/config/vxworks.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/config/vxworks.h b/gcc/config/vxworks.h
index 055bf09813b..2d8bfbd8c86 100644
--- a/gcc/config/vxworks.h
+++ b/gcc/config/vxworks.h
@@ -82,13 +82,10 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
#define VXWORKS_STARTFILE_SPEC "%{mrtp:%{!shared:crt0.o%s}}"
#define VXWORKS_ENDFILE_SPEC ""
-/* We can use .ctors/.dtors sections only in RTP mode.
- Unfortunately this must be an integer constant expression;
- fix up in override_options. */
+/* Do VxWorks-specific parts of OVERRIDE_OPTIONS. */
#undef VXWORKS_OVERRIDE_OPTIONS
-#define VXWORKS_OVERRIDE_OPTIONS do { \
- targetm.have_ctors_dtors = TARGET_VXWORKS_RTP; \
-} while (0)
+#define VXWORKS_OVERRIDE_OPTIONS vxworks_override_options ()
+extern void vxworks_override_options (void);
/* VxWorks requires special handling of constructors and destructors.
All VxWorks configurations must use these functions. */