summaryrefslogtreecommitdiff
path: root/libgcc/config
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2014-04-30 16:53:51 +0000
committerBernd Edlinger <edlinger@gcc.gnu.org>2014-04-30 16:53:51 +0000
commite3fe9b5b5ae3daf2f6c3cde35da6c75a3b8ff0bb (patch)
treeca08abe739bb7405b725ea60cf3e30439356a7f2 /libgcc/config
parent90cbaa297823c469ca50c5b51b9e1835d944a886 (diff)
downloadgcc-e3fe9b5b5ae3daf2f6c3cde35da6c75a3b8ff0bb.tar.gz
Work around for current cygwin32 build problems.
2014-04-30 Bernd Edlinger <bernd.edlinger@hotmail.de> Work around for current cygwin32 build problems. * config/i386/cygming-crtbegin.c (__register_frame_info, __deregister_frame_info, _Jv_RegisterClasses): Compile weak default functions only for 64-bit systems. From-SVN: r209942
Diffstat (limited to 'libgcc/config')
-rw-r--r--libgcc/config/i386/cygming-crtbegin.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libgcc/config/i386/cygming-crtbegin.c b/libgcc/config/i386/cygming-crtbegin.c
index eeb51d4c573..195b4637637 100644
--- a/libgcc/config/i386/cygming-crtbegin.c
+++ b/libgcc/config/i386/cygming-crtbegin.c
@@ -54,6 +54,11 @@ extern void __register_frame_info (__attribute__((unused)) const void *,
TARGET_ATTRIBUTE_WEAK;
extern void *__deregister_frame_info (__attribute__((unused)) const void *)
TARGET_ATTRIBUTE_WEAK;
+
+/* Work around for current cygwin32 build problems (Bug gas/16858).
+ Compile weak default functions only for 64-bit systems,
+ when absolutely necessary. */
+#ifdef __x86_64__
TARGET_ATTRIBUTE_WEAK void
__register_frame_info (__attribute__((unused)) const void *p,
__attribute__((unused)) struct object *o)
@@ -65,16 +70,19 @@ __deregister_frame_info (__attribute__((unused)) const void *p)
{
return (void*) 0;
}
+#endif
#endif /* DWARF2_UNWIND_INFO */
#if TARGET_USE_JCR_SECTION
extern void _Jv_RegisterClasses (__attribute__((unused)) const void *)
TARGET_ATTRIBUTE_WEAK;
+#ifdef __x86_64__
TARGET_ATTRIBUTE_WEAK void
_Jv_RegisterClasses (__attribute__((unused)) const void *p)
{
}
+#endif
#endif /* TARGET_USE_JCR_SECTION */
#if defined(HAVE_LD_RO_RW_SECTION_MIXING)