always define TARGET_PECOFF

gcc/ChangeLog:

2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	* config/i386/i386.h (TARGET_PECOFF): Remove define.
	* defaults.h (TARGET_PECOFF): New default definition.
	* varasm.c (handle_vtv_comdat_section): Adjust.

gcc/cp/ChangeLog:

2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	* vtable-class-hierarchy.c (vtv_generate_init_routine): Adjust.

From-SVN: r230391
This commit is contained in:
Trevor Saunders 2015-11-15 00:17:56 +00:00 committed by Trevor Saunders
parent 5394314855
commit ab7b56730b
6 changed files with 17 additions and 14 deletions

View File

@ -1,3 +1,9 @@
2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* config/i386/i386.h (TARGET_PECOFF): Remove define.
* defaults.h (TARGET_PECOFF): New default definition.
* varasm.c (handle_vtv_comdat_section): Adjust.
2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* defaults.h: New definition of SDB_DEBUGGING_INFO.

View File

@ -595,9 +595,6 @@ extern tree x86_mfence;
/* This is re-defined by cygming.h. */
#define TARGET_SEH 0
/* This is re-defined by cygming.h. */
#define TARGET_PECOFF 0
/* The default abi used by target. */
#define DEFAULT_ABI SYSV_ABI

View File

@ -1,3 +1,7 @@
2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* vtable-class-hierarchy.c (vtv_generate_init_routine): Adjust.
2015-11-14 Jason Merrill <jason@redhat.com>
PR bootstrap/68346

View File

@ -1182,11 +1182,7 @@ vtv_generate_init_routine (void)
TREE_STATIC (vtv_fndecl) = 1;
TREE_USED (vtv_fndecl) = 1;
DECL_PRESERVE_P (vtv_fndecl) = 1;
#if defined (TARGET_PECOFF)
if (flag_vtable_verify == VTV_PREINIT_PRIORITY && !TARGET_PECOFF)
#else
if (flag_vtable_verify == VTV_PREINIT_PRIORITY)
#endif
DECL_STATIC_CONSTRUCTOR (vtv_fndecl) = 0;
gimplify_function_tree (vtv_fndecl);
@ -1194,11 +1190,7 @@ vtv_generate_init_routine (void)
symtab->process_new_functions ();
#if defined (TARGET_PECOFF)
if (flag_vtable_verify == VTV_PREINIT_PRIORITY && !TARGET_PECOFF)
#else
if (flag_vtable_verify == VTV_PREINIT_PRIORITY)
#endif
assemble_vtv_preinit_initializer (vtv_fndecl);
}

View File

@ -1301,6 +1301,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#define REVERSE_CONDITION(code, mode) reverse_condition (code)
#endif
#ifndef TARGET_PECOFF
#define TARGET_PECOFF 0
#endif
#ifdef GCC_INSN_FLAGS_H
/* Dependent default target macro definitions

View File

@ -7793,7 +7793,7 @@ handle_vtv_comdat_section (section *sect, const_tree decl ATTRIBUTE_UNUSED)
| SECTION_LINKONCE,
DECL_NAME (decl));
in_section = sect;
#elif defined (TARGET_PECOFF)
#else
/* Neither OBJECT_FORMAT_PE, nor OBJECT_FORMAT_COFF is set here.
Therefore the following check is used.
In case a the target is PE or COFF a comdat group section
@ -7820,8 +7820,8 @@ handle_vtv_comdat_section (section *sect, const_tree decl ATTRIBUTE_UNUSED)
DECL_NAME (decl));
in_section = sect;
}
#else
switch_to_section (sect);
else
switch_to_section (sect);
#endif
}