vms-protos.h (vms_function_section): New prototype.
authorTristan Gingold <gingold@adacore.com>
Wed, 21 Dec 2011 09:44:27 +0000 (09:44 +0000)
committerTristan Gingold <gingold@gcc.gnu.org>
Wed, 21 Dec 2011 09:44:27 +0000 (09:44 +0000)
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

gcc/ChangeLog
gcc/config/vms/vms-protos.h
gcc/config/vms/vms.c
gcc/config/vms/vms.h

index 2fd7a51a4087e94e79e74aca9fd3c6358746614b..8cded1cf1787bc789e8c3b37b8ada83beac46f30 100644 (file)
@@ -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
index c313638eae243526f3403e539bc1c23771774439..a7ca3469cdb8ecc3b6a2eade19fc6ea7a06ba621 100644 (file)
@@ -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 */
index 63ca9319090fc09e417f13cc6623a4e5d96e615b..95cc5defd6385569a91268b2faed69557c0dca06 100644 (file)
@@ -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"
index 62e8636cae4a91c4730a3100f006553975be2a91..ab8f6e0dc4ed4a69ddf61e865c52ce64f3768e05 100644 (file)
@@ -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