ASM_OUTPUT_SECTION_NAME cleanup patch problem

Rekha Deshmukh RekhaD@kpit.com
Thu Jun 13 22:03:00 GMT 2002


Hi !

Thanks for the patch. 
It has solved the problem. 
Thanks & regards
Rekha

-----Original Message-----
From: Richard Henderson [mailto:rth@redhat.com]
Sent: Tuesday, June 11, 2002 7:15 AM
To: Joern Rennecke
Cc: Joern Rennecke; Rekha Deshmukh; gcc-patches@gcc.gnu.org
Subject: Re: ASM_OUTPUT_SECTION_NAME cleanup patch problem


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



More information about the Gcc-patches mailing list