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
This commit is contained in:
parent
b200cc3fcc
commit
916e8d2794
|
@ -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>
|
2011-12-21 Richard Guenther <rguenther@suse.de>
|
||||||
|
|
||||||
PR lto/41159
|
PR lto/41159
|
||||||
|
|
|
@ -22,3 +22,10 @@ extern void vms_c_register_pragma (void);
|
||||||
|
|
||||||
/* vms.c */
|
/* vms.c */
|
||||||
void vms_patch_builtins (void);
|
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 */
|
||||||
|
|
|
@ -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"
|
#include "gt-vms.h"
|
||||||
|
|
|
@ -61,3 +61,7 @@ extern void vms_c_register_includes (const char *, const char *, int);
|
||||||
#define SIZE_TYPE "unsigned int"
|
#define SIZE_TYPE "unsigned int"
|
||||||
#undef PTRDIFF_TYPE
|
#undef PTRDIFF_TYPE
|
||||||
#define PTRDIFF_TYPE "int"
|
#define PTRDIFF_TYPE "int"
|
||||||
|
|
||||||
|
/* VMS doesn't support other sections than .text for code. */
|
||||||
|
|
||||||
|
#define TARGET_ASM_FUNCTION_SECTION vms_function_section
|
||||||
|
|
Loading…
Reference in New Issue