This is the mail archive of the 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]
Other format: [Raw text]

Re: dbxout.c overhaul, finally done

Hi Kazuhiro, Hi Richard,

We got a new failure when I build m32r-elf-gcc with the following patch.
Would you give me advice?

m32r-elf-gcc uses a 'begin_label' in DBX_OUTPUT_SOURCE_LINE macro
Is it a reasonable?


    * dbxout.c (dbxout_source_line): Move declaration of begin_label to
    the block that needs it.

This is also reasonable - it fixes a bootstrap failure.

The solution is quite simple - define begin_label in those DBX_OUTPUT_SOURCE_LINE defintions that need it. Which coincidentally is only the m32r. So, I am going to apply this patch.


2004-10-28  Nick Clifton  <>

	* config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Define

Index: gcc/config/m32r/m32r.h
RCS file: /cvs/gcc/gcc/gcc/config/m32r/m32r.h,v
retrieving revision 1.121
diff -c -3 -p -r1.121 m32r.h
*** gcc/config/m32r/m32r.h	27 Oct 2004 10:06:27 -0000	1.121
--- gcc/config/m32r/m32r.h	28 Oct 2004 08:24:44 -0000
*************** L2:     .word STATIC
*** 1524,1529 ****
--- 1524,1530 ----
  #define DBX_OUTPUT_SOURCE_LINE(file, line, counter)			\
    do									\
      {									\
+       rtx begin_label = XEXP (DECL_RTL (current_function_decl), 0);	\
        char label[64];							\
        ASM_GENERATE_INTERNAL_LABEL (label, "LM", counter);		\

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