Commit ab7b5673 by Trevor Saunders Committed by Trevor Saunders

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
parent 53943148
2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> 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. * defaults.h: New definition of SDB_DEBUGGING_INFO.
* doc/tm.texi: Regenerate. * doc/tm.texi: Regenerate.
* doc/tm.texi.in: Adjust. * doc/tm.texi.in: Adjust.
...@@ -595,9 +595,6 @@ extern tree x86_mfence; ...@@ -595,9 +595,6 @@ extern tree x86_mfence;
/* This is re-defined by cygming.h. */ /* This is re-defined by cygming.h. */
#define TARGET_SEH 0 #define TARGET_SEH 0
/* This is re-defined by cygming.h. */
#define TARGET_PECOFF 0
/* The default abi used by target. */ /* The default abi used by target. */
#define DEFAULT_ABI SYSV_ABI #define DEFAULT_ABI SYSV_ABI
......
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> 2015-11-14 Jason Merrill <jason@redhat.com>
PR bootstrap/68346 PR bootstrap/68346
......
...@@ -1182,11 +1182,7 @@ vtv_generate_init_routine (void) ...@@ -1182,11 +1182,7 @@ vtv_generate_init_routine (void)
TREE_STATIC (vtv_fndecl) = 1; TREE_STATIC (vtv_fndecl) = 1;
TREE_USED (vtv_fndecl) = 1; TREE_USED (vtv_fndecl) = 1;
DECL_PRESERVE_P (vtv_fndecl) = 1; DECL_PRESERVE_P (vtv_fndecl) = 1;
#if defined (TARGET_PECOFF)
if (flag_vtable_verify == VTV_PREINIT_PRIORITY && !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; DECL_STATIC_CONSTRUCTOR (vtv_fndecl) = 0;
gimplify_function_tree (vtv_fndecl); gimplify_function_tree (vtv_fndecl);
...@@ -1194,11 +1190,7 @@ vtv_generate_init_routine (void) ...@@ -1194,11 +1190,7 @@ vtv_generate_init_routine (void)
symtab->process_new_functions (); symtab->process_new_functions ();
#if defined (TARGET_PECOFF)
if (flag_vtable_verify == VTV_PREINIT_PRIORITY && !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); assemble_vtv_preinit_initializer (vtv_fndecl);
} }
......
...@@ -1301,6 +1301,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -1301,6 +1301,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#define REVERSE_CONDITION(code, mode) reverse_condition (code) #define REVERSE_CONDITION(code, mode) reverse_condition (code)
#endif #endif
#ifndef TARGET_PECOFF
#define TARGET_PECOFF 0
#endif
#ifdef GCC_INSN_FLAGS_H #ifdef GCC_INSN_FLAGS_H
/* Dependent default target macro definitions /* Dependent default target macro definitions
......
...@@ -7793,7 +7793,7 @@ handle_vtv_comdat_section (section *sect, const_tree decl ATTRIBUTE_UNUSED) ...@@ -7793,7 +7793,7 @@ handle_vtv_comdat_section (section *sect, const_tree decl ATTRIBUTE_UNUSED)
| SECTION_LINKONCE, | SECTION_LINKONCE,
DECL_NAME (decl)); DECL_NAME (decl));
in_section = sect; in_section = sect;
#elif defined (TARGET_PECOFF) #else
/* Neither OBJECT_FORMAT_PE, nor OBJECT_FORMAT_COFF is set here. /* Neither OBJECT_FORMAT_PE, nor OBJECT_FORMAT_COFF is set here.
Therefore the following check is used. Therefore the following check is used.
In case a the target is PE or COFF a comdat group section 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) ...@@ -7820,8 +7820,8 @@ handle_vtv_comdat_section (section *sect, const_tree decl ATTRIBUTE_UNUSED)
DECL_NAME (decl)); DECL_NAME (decl));
in_section = sect; in_section = sect;
} }
#else else
switch_to_section (sect); switch_to_section (sect);
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment