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

m68k-hp problem


Hi,

I compiled a m68k-hp cross compiler with
the egcs-19981101 snapshot. To my surprise
it fails in dwarf2out.c, even for
"trivial" code examples and if no debugging
info is requested.
 
The cross compiler has following characteristics :

GNU C++ version egcs-2.92.18 19981101 (gcc2 ss-980609 experimental)
(m68k-hp) compiled by GNU C version 2.7.2.2.
(on a hpux PA1.1 system -> this is probably not relevant for
 the bug)

(to reproduce : ./configure --target=m68k-hp)

Simple examples as :

int foo (int a) {
  a++;
  return a;
}

fail with following error message

dwarf2out.c:1695: Internal compiler error in function
                  output_call_frame_info

		  		  
The dwarf2out.c PROBLEM line executes the ASM_OUTPUT_ALIGN macro,
which is defined in m68k.h but redefined in  various .h
files in the m68k config directory. I expect the definition
in hp320.h causes the bug. 

Possibly other m68k configurations are affected too.



best regards,

--
Hans Cappelle,

Embedded software engineer.

IMEC / VSDM division, Kapeldreef 75, B-3001 Leuven, Belgium
phone: +32/16/281.601      e-mail: cappelle@imec.be
fax  : +32/16/281.515      www   : http://www.imec.be


PS :

* verbose command line output

panther 57 > g++ -S -B/imec/vsdm/cappelle/aspis/work/devtools/bin/ foo.C -v -save-temps
Reading specs from /imec/software/gnu/HPUX10/gcc-2.8.x/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.8.1/specs
gcc version 2.8.1
 /imec/software/gnu/HPUX10/gcc-2.8.x/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.8.1/cpp -lang-c++ -v -isystem /imec/vsdm/cappelle/aspis/work/devtools/bin/include -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=8 -Dhppa -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix -D__hppa__ -D__hp9000s800__ -D__hp9000s800 -D__hp9k8__ -D__PWB__ -D__hpux__ -D__unix__ -D__hppa -D__hp9000s800 -D__hp9k8 -D__PWB -D__hpux -D__unix -Asystem(unix) -Asystem(hpux) -Acpu(hppa) -Amachine(hppa) -D__EXCEPTIONS -D__hp9000s700 -D_PA_RISC1_1 -D_HPUX_SOURCE -D_HIUX_SOURCE foo.C foo.ii
GNU CPP version 2.8.1 (hppa)
#include "..." search starts here:
#include <...> search starts here:
 /imec/software/gnu/HPUX10/gcc-2.8.x/include/g++
 /usr/local/include
 /imec/software/gnu/HPUX10/gcc-2.8.x/hppa1.1-hp-hpux10.20/include
 /imec/software/gnu/HPUX10/gcc-2.8.x/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.8.1/include
 /usr/include
End of search list.
 /imec/vsdm/cappelle/aspis/work/devtools/bin/cc1plus foo.ii -quiet -dumpbase foo.cc -version -o foo.s
GNU C++ version egcs-2.92.18 19981101 (gcc2 ss-980609 experimental) (m68k-hp) compiled by GNU C version 2.7.2.2.
dwarf2out.c:1695: Internal compiler error in function output_call_frame_info

* dwarf2out.c : code fragment

if (for_eh)
    {
#ifdef EH_FRAME_SECTION
      EH_FRAME_SECTION ();
#else
      tree label = get_file_function_name ('F');

      data_section ();
      ASM_OUTPUT_ALIGN (asm_out_file, floor_log2 (PTR_SIZE));  /* PROBLEM */
      ASM_GLOBALIZE_LABEL (asm_out_file, IDENTIFIER_POINTER (label));
      ASM_OUTPUT_LABEL (asm_out_file, IDENTIFIER_POINTER (label));
#endif
      assemble_label ("__FRAME_BEGIN__");
    }
  else
    ASM_OUTPUT_SECTION (asm_out_file, FRAME_SECTION);


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