This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cygwin g++: undefined reference to `___deregister_frame_info_base s'


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 *


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]