ASM_OUTPUT_SECTION_NAME cleanup patch problem

Joern Rennecke joern.rennecke@superh.com
Tue Jun 11 04:35:00 GMT 2002


Richard Henderson wrote:
> 
> On Sun, Jun 09, 2002 at 12:22:12AM +0100, Joern Rennecke wrote:
> > Note that I put a stopgap fix on the mainline in sh/coff.h,
> > modeled after the way the h8300-hms port kept working.
> > Ugly, but it does the job.
> > (It uses HAS_INIT_SECTION even though there is no such thing,
> >  and counteracts the side-effects with INVOKE___MAIN.)
> 
> It would appear that the following should be sufficient to
> fix the problem.  Can you revert your workarounds and try it?
> 
> r~
> 
> Index: defaults.h
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/defaults.h,v
> retrieving revision 1.77
> diff -c -p -d -r1.77 defaults.h
> *** defaults.h  7 Jun 2002 17:14:55 -0000       1.77
> --- defaults.h  11 Jun 2002 01:42:39 -0000
> *************** do { ASM_OUTPUT_LABEL(FILE,LABEL_ALTERNA
> *** 223,229 ****
> 
>   /* If we have named sections, and we're using crtstuff to run ctors,
>      use them for registering eh frame information.  */
> ! #if defined (TARGET_ASM_NAMED_SECTION) && !defined(EH_FRAME_IN_DATA_SECTION)
>   #ifndef EH_FRAME_SECTION_NAME
>   #define EH_FRAME_SECTION_NAME ".eh_frame"
>   #endif
> --- 223,230 ----
> 
>   /* If we have named sections, and we're using crtstuff to run ctors,
>      use them for registering eh frame information.  */
> ! #if defined (TARGET_ASM_NAMED_SECTION) && DWARF2_UNWIND_INFO \
> !     && !defined(EH_FRAME_IN_DATA_SECTION)
>   #ifndef EH_FRAME_SECTION_NAME
>   #define EH_FRAME_SECTION_NAME ".eh_frame"
>   #endif

Yes, that works.  I do have to define DWARF2_UNWIND_INFO as 0 in coff.h
now that I havce defined INCOMPING_RETURN_ADDR_RTX in sh.h, but that's OK.

-- 
--------------------------
SuperH
2430 Aztec West / Almondsbury / BRISTOL / BS32 4AQ
T:+44 1454 462330



More information about the Gcc-patches mailing list