This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: cygwin g++: undefined reference to `___deregister_frame_info_base s'
- To: "Billinghurst, David (CRTS)" <David dot Billinghurst at riotinto dot com>
- Subject: Re: cygwin g++: undefined reference to `___deregister_frame_info_base s'
- From: Christopher Faylor <cgf at redhat dot com>
- Date: Sun, 27 May 2001 18:03:43 -0400
- Cc: "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>
- References: <8D00C32549556B4E977F81DBC24E985D1B1A38@crtsmail1.technol_exch.corp.riotinto.org>
On Sun, May 27, 2001 at 01:13:25AM -0000, Billinghurst, David (CRTS) wrote:
>On cygwin, many g++ and libstdc++-v3 tests fail with error:
>
>/usr/local/obj/gcc/gcc/libgcc.a(unwind-dw2-fde.o): In function
>`_deregister_frame':
>/usr/local/src/gcc/gcc/unwind-pe.h(.text+0x49b): undefined reference to
>`___deregister_frame_info_bases'
>
>This happens on both trunk and branch.
It's some kind of underscore thing. I found that the patch below
"fixes" it but it is clearly not the proper way to deal with this.
I think this is a question for Richard Henderson.
cgf
Index: unwind-dw2-fde.c
===================================================================
RCS file: /cvs/uberbaum/gcc/unwind-dw2-fde.c,v
retrieving revision 1.5
diff -p -r1.5 unwind-dw2-fde.c
*** unwind-dw2-fde.c 2001/05/23 01:26:01 1.5
--- unwind-dw2-fde.c 2001/05/27 21:56:35
*************** __deregister_frame_info_bases (void *beg
*** 203,209 ****
#define STR(X) STR1(X)
void *
__deregister_frame_info (void *)
! __attribute__((alias(STR(__USER_LABEL_PREFIX__)
"__deregister_frame_info_bases")));
#else
void *
--- 203,209 ----
#define STR(X) STR1(X)
void *
__deregister_frame_info (void *)
! __attribute__((alias(/*STR(__USER_LABEL_PREFIX__)*/
"__deregister_frame_info_bases")));
#else
void *