diff options
author | Tristan Gingold <gingold@adacore.com> | 2011-12-21 09:44:27 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@gcc.gnu.org> | 2011-12-21 09:44:27 +0000 |
commit | 916e8d27947d5f0590d31bb1c5529e82dc2136e9 (patch) | |
tree | 93c9158835058ddb90e9d29550850560a8a0716e | |
parent | b200cc3fccb049b5335c3e9310b4ab7cf4b0075c (diff) | |
download | gcc-916e8d27947d5f0590d31bb1c5529e82dc2136e9.tar.gz |
vms-protos.h (vms_function_section): New prototype.
2011-12-21 Tristan Gingold <gingold@adacore.com>
* config/vms/vms-protos.h (vms_function_section): New prototype.
* config/vms/vms.c (vms_function_section): New function.
* config/vms/vms.h (TARGET_ASM_FUNCTION_SECTION): Define.
From-SVN: r182571
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/vms/vms-protos.h | 7 | ||||
-rw-r--r-- | gcc/config/vms/vms.c | 11 | ||||
-rw-r--r-- | gcc/config/vms/vms.h | 4 |
4 files changed, 28 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2fd7a51a408..8cded1cf178 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-12-21 Tristan Gingold <gingold@adacore.com> + + * config/vms/vms-protos.h (vms_function_section): New prototype. + * config/vms/vms.c (vms_function_section): New function. + * config/vms/vms.h (TARGET_ASM_FUNCTION_SECTION): Define. + 2011-12-21 Richard Guenther <rguenther@suse.de> PR lto/41159 diff --git a/gcc/config/vms/vms-protos.h b/gcc/config/vms/vms-protos.h index c313638eae2..a7ca3469cdb 100644 --- a/gcc/config/vms/vms-protos.h +++ b/gcc/config/vms/vms-protos.h @@ -22,3 +22,10 @@ extern void vms_c_register_pragma (void); /* vms.c */ void vms_patch_builtins (void); + +#ifdef TREE_CODE +extern section *vms_function_section (tree decl ATTRIBUTE_UNUSED, + enum node_frequency freq ATTRIBUTE_UNUSED, + bool startup ATTRIBUTE_UNUSED, + bool exit ATTRIBUTE_UNUSED); +#endif /* TREE_CODE */ diff --git a/gcc/config/vms/vms.c b/gcc/config/vms/vms.c index 63ca9319090..95cc5defd63 100644 --- a/gcc/config/vms/vms.c +++ b/gcc/config/vms/vms.c @@ -180,4 +180,15 @@ vms_patch_builtins (void) } } +/* Always default to .text section. */ + +section * +vms_function_section (tree decl ATTRIBUTE_UNUSED, + enum node_frequency freq ATTRIBUTE_UNUSED, + bool startup ATTRIBUTE_UNUSED, + bool exit ATTRIBUTE_UNUSED) +{ + return NULL; +} + #include "gt-vms.h" diff --git a/gcc/config/vms/vms.h b/gcc/config/vms/vms.h index 62e8636cae4..ab8f6e0dc4e 100644 --- a/gcc/config/vms/vms.h +++ b/gcc/config/vms/vms.h @@ -61,3 +61,7 @@ extern void vms_c_register_includes (const char *, const char *, int); #define SIZE_TYPE "unsigned int" #undef PTRDIFF_TYPE #define PTRDIFF_TYPE "int" + +/* VMS doesn't support other sections than .text for code. */ + +#define TARGET_ASM_FUNCTION_SECTION vms_function_section |