* config/i386/winnt.c (i386_pe_reloc_rw_mask): New function.
* config/i386/i386-protos.h (i386_pe_reloc_rw_mask): Add
prototype.
* config/i386/cygming.h (TARGET_ASM_RELOC_RW_MASK): Define
as i386_pe_reloc_rw_mask.
From-SVN: r189254
+2012-07-04 Kai Tietz <ktietz@redhat.com>
+
+ * config/i386/winnt.c (i386_pe_reloc_rw_mask): New function.
+ * config/i386/i386-protos.h (i386_pe_reloc_rw_mask): Add
+ prototype.
+ * config/i386/cygming.h (TARGET_ASM_RELOC_RW_MASK): Define
+ as i386_pe_reloc_rw_mask.
+
2012-07-04 Richard Guenther <rguenther@suse.de>
* tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same
#define SUBTARGET_ENCODE_SECTION_INFO i386_pe_encode_section_info
+/* Local and global relocs can be placed always into readonly memory
+ for PE-COFF targets. */
+#undef TARGET_ASM_RELOC_RW_MASK
+#define TARGET_ASM_RELOC_RW_MASK i386_pe_reloc_rw_mask
+
/* Output a common block. */
#undef ASM_OUTPUT_ALIGNED_DECL_COMMON
#define ASM_OUTPUT_ALIGNED_DECL_COMMON \
extern bool i386_pe_type_dllimport_p (tree);
extern bool i386_pe_type_dllexport_p (tree);
+extern int i386_pe_reloc_rw_mask (void);
+
extern rtx maybe_get_pool_constant (rtx);
extern char internal_label_prefix[16];
DECL_SECTION_NAME (decl) = build_string (len, string);
}
+/* Local and global relocs can be placed always into readonly memory for
+ memory for PE-COFF targets. */
+int
+i386_pe_reloc_rw_mask (void)
+{
+ return 0;
+}
+
/* Select a set of attributes for section NAME based on the properties
of DECL and whether or not RELOC indicates that DECL's initializer
might contain runtime relocations.