This is the mail archive of the gcc-patches@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]

Fix 3098


In the PR, Chris Faylor suggests simply not using __USER_LABEL_PREFIX__.
Which does appear to work, but thinking about this in the context of
strange symbol resolution overrides, I think the following is safer.


r~


        * unwind-dw2-fde.c (__deregister_frame_info): Don't play games
        with alias attribute.

Index: unwind-dw2-fde.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/unwind-dw2-fde.c,v
retrieving revision 1.2.2.5
diff -c -p -d -r1.2.2.5 unwind-dw2-fde.c
*** unwind-dw2-fde.c	2001/06/05 21:07:47	1.2.2.5
--- unwind-dw2-fde.c	2001/06/11 20:07:49
*************** __deregister_frame_info_bases (void *beg
*** 197,217 ****
    return (void *) ob;
  }
  
- #ifdef ASM_OUTPUT_DEF
- /* Note that __USER_LABEL_PREFIX__ is not a string.  Stringize it.  */
- #define STR1(X) #X
- #define STR(X) STR1(X)
- void *
- __deregister_frame_info (void *)
-    __attribute__((alias(STR(__USER_LABEL_PREFIX__)
- 		        "__deregister_frame_info_bases")));
- #else
  void *
  __deregister_frame_info (void *begin)
  {
    return __deregister_frame_info_bases (begin);
  }
- #endif
  
  void
  __deregister_frame (void *begin)
--- 197,207 ----


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