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]

ia64 -fprofile-arcs crash


ASM_OUTPUT_ALIGNED_DECL_LOCAL gets called with a null DECL
from end_final.


r~

        * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL.
        * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.

Index: elfos.h
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/config/elfos.h,v
retrieving revision 1.29
diff -c -p -d -r1.29 elfos.h
*** elfos.h	2000/07/14 17:46:56	1.29
--- elfos.h	2000/08/01 20:16:51
*************** dtors_section ()						\
*** 582,588 ****
        								\
        size_directive_output = 0;				\
        								\
!       if (!flag_inhibit_size_directive && DECL_SIZE (DECL))	\
  	{							\
  	  size_directive_output = 1;				\
  	  fprintf (FILE, "\t%s\t ", SIZE_ASM_OP);		\
--- 582,589 ----
        								\
        size_directive_output = 0;				\
        								\
!       if (!flag_inhibit_size_directive				\
! 	  && (DECL) && DECL_SIZE (DECL))			\
  	{							\
  	  size_directive_output = 1;				\
  	  fprintf (FILE, "\t%s\t ", SIZE_ASM_OP);		\
Index: ia64/sysv4.h
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/config/ia64/sysv4.h,v
retrieving revision 1.14
diff -c -p -d -r1.14 sysv4.h
*** sysv4.h	2000/06/22 23:05:32	1.14
--- sysv4.h	2000/08/01 20:16:51
*************** extern int size_directive_output;
*** 37,43 ****
  #undef ASM_OUTPUT_ALIGNED_LOCAL
  #define ASM_OUTPUT_ALIGNED_DECL_LOCAL(FILE, DECL, NAME, SIZE, ALIGN) \
  do {									\
!   if (XSTR (XEXP (DECL_RTL (DECL), 0), 0)[0] == SDATA_NAME_FLAG_CHAR)	\
      sbss_section ();							\
    else									\
      bss_section ();							\
--- 37,44 ----
  #undef ASM_OUTPUT_ALIGNED_LOCAL
  #define ASM_OUTPUT_ALIGNED_DECL_LOCAL(FILE, DECL, NAME, SIZE, ALIGN) \
  do {									\
!   if ((DECL)								\
!       && XSTR (XEXP (DECL_RTL (DECL), 0), 0)[0] == SDATA_NAME_FLAG_CHAR) \
      sbss_section ();							\
    else									\
      bss_section ();							\

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