[Bug c/19931] New: gcc 3.4.x. internal compiler error: Segmentation fault; cross-powerpc on winxp

andrzejn at kom-net dot pl gcc-bugzilla@gcc.gnu.org
Sun Feb 13 02:57:00 GMT 2005


Segmentation fault, gcc 3.4.2 for cross-powerpc on windows xp
                    gcc 3.4.3 reports the same error

- the exact version of GCC
    $ xgcc -v
    Using built-in specs.
    Configured with: ../configure --target=powerpc-linux --host=i586-pc-mingw32      --prefix=/c/app/ppc-gcc --program-prefix=ppc- --disable-shared --disable-threads --enable-languages=c --with-newlib
    Thread model: single
    gcc version 3.4.2

- the system type;
    host=windows xp + sp2, msys+mingw32

- the options given when GCC was configured/built;
    ../configure --host=i586-pc-mingw32 --target=powerpc-linux \
    --prefix=/c/app/ppc-gcc --program-prefix="ppc-" --disable-shared \
    --disable-threads --enable-languages=c --with-newlib

- the complete command line that triggers the bug;
    $ /c/app/msys/inst/ppc/gcc-3.4.2/minimal/gcc/xgcc -B/c/app/msys/inst/ppc/gcc-3.4.2/minimal/gcc/ -B/c/app/ppc-gcc/powerpc-linux/bin/ -B/c/app/ppc-gcc/powerpc-linux/lib/ -isystem /c/app/ppc-gcc/powerpc-linux/include -isystem /c/app/ppc-gcc/powerpc-linux/sys-include -O2 -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../intl  -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -msdata=none -Dinhibit_libc -save-temps -c../../gcc/crtstuff.c -DCRT_END -o crtend.o

- the compiler output (error messages, warnings, etc.);
    ../../gcc/crtstuff.c -DCRT_END -o crtend.o
    ../../gcc/crtstuff.c: In function `__do_global_ctors_aux':
    ../../gcc/crtstuff.c:472: internal compiler error: Segmentation fault

- the preprocessed file is ont the end of this file (search ############### string)

I really need build cross powerpc on the winxp.
I known that I can build cross-ppc on the linux system, but I have to use winxp.

Step 1. I've build bunutils-2.15:
    ../configure --host=i586-pc-mingw32 --target=powerpc-linux \
    --prefix=/c/app/ppc-gcc --program-prefix="ppc-"
the build process has stopped with error when call to 'pod2man', but the binutils
files has been created and I installed it.

Step 2. After that I have start to build minimal gcc.
  a) creating 'minimal' directory within gcc-3.4.2 tree,
  b) configure gcc from 'minimal' directory
  c) runing make all-gcc from 'minimal' directory
The compiler stopped with: Error: unsupported relocation against null when compiling
the crtstuff.c file. I have added -save-temps to the makefile (line 1247) and to be very safe
duplicated (copy) crtstuff.c to crtstuff1.c ... crtstuff4.c to get *.i files.
    -------------- part of the gcc-3.4.2/minimal/gcc/makefle --------------

    $(T)crtbegin.o: crtstuff.c $(GCC_PASSES) $(TCONFIG_H) auto-host.h \
      gbl-ctors.h stmp-int-hdrs tsystem.h coretypes.h $(TM_H)
        $(GCC_FOR_TARGET) $(CRTSTUFF_CFLAGS) $(CRTSTUFF_T_CFLAGS) \
          -Dinhibit_libc -save-temps -c $(srcdir)/crtstuff.c -DCRT_BEGIN \
          -o $(T)crtbegin$(objext)

    $(T)crtend.o: crtstuff.c $(GCC_PASSES) $(TCONFIG_H) auto-host.h \
      gbl-ctors.h stmp-int-hdrs tsystem.h coretypes.h $(TM_H)
        $(GCC_FOR_TARGET) $(CRTSTUFF_CFLAGS) $(CRTSTUFF_T_CFLAGS) \
          -Dinhibit_libc -save-temps -c $(srcdir)/crtstuff1.c -DCRT_END \
          -o $(T)crtend$(objext)

    # These are versions of crtbegin and crtend for shared libraries.
    $(T)crtbeginS.o: crtstuff.c $(GCC_PASSES) $(TCONFIG_H) auto-host.h \
      gbl-ctors.h stmp-int-hdrs tsystem.h coretypes.h $(TM_H)
        $(GCC_FOR_TARGET) $(CRTSTUFF_CFLAGS) $(CRTSTUFF_T_CFLAGS_S) \
          -Dinhibit_libc -save-temps -c $(srcdir)/crtstuff2.c -DCRT_BEGIN -DCRTSTUFFS_O \
          -o $(T)crtbeginS$(objext)

    $(T)crtendS.o: crtstuff.c $(GCC_PASSES) $(TCONFIG_H) auto-host.h \
      gbl-ctors.h stmp-int-hdrs tsystem.h coretypes.h $(TM_H)
        $(GCC_FOR_TARGET) $(CRTSTUFF_CFLAGS) $(CRTSTUFF_T_CFLAGS_S) \
          -Dinhibit_libc -save-temps -c $(srcdir)/crtstuff3.c -DCRT_END -DCRTSTUFFS_O \
          -o $(T)crtendS$(objext)

    # This is a version of crtbegin for -static links.
    $(T)crtbeginT.o: crtstuff.c $(GCC_PASSES) $(TCONFIG_H) auto-host.h \
      gbl-ctors.h stmp-int-hdrs tsystem.h coretypes.h $(TM_H)
        $(GCC_FOR_TARGET) $(CRTSTUFF_CFLAGS) $(CRTSTUFF_T_CFLAGS) \
          -Dinhibit_libc -save-temps -c $(srcdir)/crtstuff4.c -DCRT_BEGIN -DCRTSTUFFT_O \
          -o $(T)crtbeginT$(objext)

 d) the xgcc compiled without errors crtstuff2.c and crtstuff4.c producing crtbeginS.o and crtbeginT.o but
    fail when compiled crtstuff1.c. The crtstuff1.i folows:


################################
# the preprocessed file (*.i*) #
################################

# 1 "../../gcc/crtstuff1.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "../../gcc/crtstuff1.c"
# 60 "../../gcc/crtstuff1.c"
# 1 "./auto-host.h" 1
# 61 "../../gcc/crtstuff1.c" 2
# 1 "./tconfig.h" 1



# 1 "../../gcc/../include/ansidecl.h" 1
# 5 "./tconfig.h" 2
# 62 "../../gcc/crtstuff1.c" 2
# 1 "../../gcc/tsystem.h" 1
# 44 "../../gcc/tsystem.h"
# 1 "c:/app/msys/inst/ppc/gcc-3.4.2/minimal/gcc/include/stddef.h" 1 3 4
# 151 "c:/app/msys/inst/ppc/gcc-3.4.2/minimal/gcc/include/stddef.h" 3 4
typedef int ptrdiff_t;
# 213 "c:/app/msys/inst/ppc/gcc-3.4.2/minimal/gcc/include/stddef.h" 3 4
typedef unsigned int size_t;
# 325 "c:/app/msys/inst/ppc/gcc-3.4.2/minimal/gcc/include/stddef.h" 3 4
typedef long int wchar_t;
# 45 "../../gcc/tsystem.h" 2
# 1 "c:/app/msys/inst/ppc/gcc-3.4.2/minimal/gcc/include/float.h" 1 3 4
# 46 "../../gcc/tsystem.h" 2




extern void *malloc (size_t);



extern void free (void *);



extern int atexit (void (*)(void));



extern void abort (void) __attribute__ ((__noreturn__));



extern size_t strlen (const char *);
# 63 "../../gcc/crtstuff1.c" 2
# 1 "../../gcc/coretypes.h" 1
# 55 "../../gcc/coretypes.h"
struct _dont_use_rtx_here_;
struct _dont_use_rtvec_here_;
union _dont_use_tree_here_;
# 64 "../../gcc/crtstuff1.c" 2
# 1 "./tm.h" 1



# 1 "../../gcc/config/rs6000/rs6000.h" 1
# 127 "../../gcc/config/rs6000/rs6000.h"
extern int target_flags;
# 374 "../../gcc/config/rs6000/rs6000.h"
enum processor_type
 {
   PROCESSOR_RIOS1,
   PROCESSOR_RIOS2,
   PROCESSOR_RS64A,
   PROCESSOR_MPCCORE,
   PROCESSOR_PPC403,
   PROCESSOR_PPC405,
   PROCESSOR_PPC440,
   PROCESSOR_PPC601,
   PROCESSOR_PPC603,
   PROCESSOR_PPC604,
   PROCESSOR_PPC604e,
   PROCESSOR_PPC620,
   PROCESSOR_PPC630,
   PROCESSOR_PPC750,
   PROCESSOR_PPC7400,
   PROCESSOR_PPC7450,
   PROCESSOR_PPC8540,
   PROCESSOR_POWER4,
   PROCESSOR_POWER5
};

extern enum processor_type rs6000_cpu;
# 417 "../../gcc/config/rs6000/rs6000.h"
enum rs6000_dependence_cost
 {
   max_dep_latency = 1000,
   no_dep_costly,
   all_deps_costly,
   true_store_to_load_dep_costly,
   store_to_load_dep_costly
 };


enum rs6000_nop_insertion
  {
    sched_finish_regroup_exact = 1000,
    sched_finish_pad_groups,
    sched_finish_none
  };


enum group_termination
  {
    current_group,
    previous_group
  };
# 492 "../../gcc/config/rs6000/rs6000.h"
struct rs6000_cpu_select
{
  const char *string;
  const char *name;
  int set_tune_p;
  int set_arch_p;
};

extern struct rs6000_cpu_select rs6000_select[];


extern const char *rs6000_debug_name;
extern const char *rs6000_abi_string;
extern int rs6000_debug_stack;
extern int rs6000_debug_arg;




extern const char *rs6000_traceback_name;



extern const char *rs6000_long_double_size_string;
extern int rs6000_long_double_type_size;
extern int rs6000_altivec_abi;
extern int rs6000_spe_abi;
extern int rs6000_isel;
extern int rs6000_spe;
extern int rs6000_float_gprs;
extern const char *rs6000_float_gprs_string;
extern const char *rs6000_isel_string;
extern const char *rs6000_spe_string;
extern const char *rs6000_altivec_vrsave_string;
extern int rs6000_altivec_vrsave;
extern const char *rs6000_longcall_switch;
extern int rs6000_default_long_calls;
extern const char* rs6000_alignment_string;
extern int rs6000_alignment_flags;
extern const char *rs6000_sched_restricted_insns_priority_str;
extern int rs6000_sched_restricted_insns_priority;
extern const char *rs6000_sched_costly_dep_str;
extern enum rs6000_dependence_cost rs6000_sched_costly_dep;
extern const char *rs6000_sched_insert_nops_str;
extern enum rs6000_nop_insertion rs6000_sched_insert_nops;

extern int rs6000_warn_altivec_long;
extern const char *rs6000_warn_altivec_long_switch;
# 1257 "../../gcc/config/rs6000/rs6000.h"
enum reg_class
{
  NO_REGS,
  BASE_REGS,
  GENERAL_REGS,
  FLOAT_REGS,
  ALTIVEC_REGS,
  VRSAVE_REGS,
  VSCR_REGS,
  SPE_ACC_REGS,
  SPEFSCR_REGS,
  NON_SPECIAL_REGS,
  MQ_REGS,
  LINK_REGS,
  CTR_REGS,
  LINK_OR_CTR_REGS,
  SPECIAL_REGS,
  SPEC_OR_GEN_REGS,
  CR0_REGS,
  CR_REGS,
  NON_FLOAT_REGS,
  XER_REGS,
  ALL_REGS,
  LIM_REG_CLASSES
};
# 1536 "../../gcc/config/rs6000/rs6000.h"
enum rs6000_abi {
  ABI_NONE,
  ABI_AIX,
  ABI_V4,
  ABI_DARWIN
};

extern enum rs6000_abi rs6000_current_abi;
# 1735 "../../gcc/config/rs6000/rs6000.h"
typedef struct machine_function
{

  int sysv_varargs_p;

  int ra_needs_full_frame;

  const char *some_ld_name;

  int insn_chain_scanned_p;

  int ra_need_lr;
} machine_function;
# 1767 "../../gcc/config/rs6000/rs6000.h"
typedef struct rs6000_args
{
  int words;
  int fregno;
  int vregno;
  int nargs_prototype;
  int prototype;
  int stdarg;
  int call_cookie;
  int sysv_gregno;
} CUMULATIVE_ARGS;
# 2312 "../../gcc/config/rs6000/rs6000.h"
extern struct _dont_use_rtx_here_ * rs6000_compare_op0;
extern struct _dont_use_rtx_here_ * rs6000_compare_op1;
extern int rs6000_compare_fp_p;
# 2328 "../../gcc/config/rs6000/rs6000.h"
extern int toc_initialized;
# 2432 "../../gcc/config/rs6000/rs6000.h"
extern char rs6000_reg_names[][8];
# 2722 "../../gcc/config/rs6000/rs6000.h"
extern int flag_pic;
extern int optimize;
extern int flag_expensive_optimizations;
extern int frame_pointer_needed;

enum rs6000_builtins
{

  ALTIVEC_BUILTIN_ST_INTERNAL_4si,
  ALTIVEC_BUILTIN_LD_INTERNAL_4si,
  ALTIVEC_BUILTIN_ST_INTERNAL_8hi,
  ALTIVEC_BUILTIN_LD_INTERNAL_8hi,
  ALTIVEC_BUILTIN_ST_INTERNAL_16qi,
  ALTIVEC_BUILTIN_LD_INTERNAL_16qi,
  ALTIVEC_BUILTIN_ST_INTERNAL_4sf,
  ALTIVEC_BUILTIN_LD_INTERNAL_4sf,
  ALTIVEC_BUILTIN_VADDUBM,
  ALTIVEC_BUILTIN_VADDUHM,
  ALTIVEC_BUILTIN_VADDUWM,
  ALTIVEC_BUILTIN_VADDFP,
  ALTIVEC_BUILTIN_VADDCUW,
  ALTIVEC_BUILTIN_VADDUBS,
  ALTIVEC_BUILTIN_VADDSBS,
  ALTIVEC_BUILTIN_VADDUHS,
  ALTIVEC_BUILTIN_VADDSHS,
  ALTIVEC_BUILTIN_VADDUWS,
  ALTIVEC_BUILTIN_VADDSWS,
  ALTIVEC_BUILTIN_VAND,
  ALTIVEC_BUILTIN_VANDC,
  ALTIVEC_BUILTIN_VAV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ALTIVEC_BUILTIN_VMSUMUBM,
  ALTIVEC_BUILTIN_VMSUMMBM,
  ALTIVEC_BUILTIN_VMSUMUHM,
  ALTIVEC_BUILTIN_VMSUMSHM,
  ALTIVEC_BUILTIN_VMSUMUHS,
  ALTIVEC_BUILTIN_VMSUMSHS,
  ALTIVEC_BUILTIN_VMINUB,
  ALTIVEC_BUILTIN_VMINSB,
  ALTIVEC_BUILTIN_VMINUH,
  ALTIVEC_BUILTIN_VMINSH,
  ALTIVEC_BUILTIN_VMINUW,
  ALTIVEC_BUILTIN_VMINSW,
  ALTIVEC_BUILTIN_VMINFP,
  ALTIVEC_BUILTIN_VMULEUB,
  ALTIVEC_BUILTIN_VMULESB,
  ALTIVEC_BUILTIN_VMULEUH,
  ALTIVEC_BUILTIN_VMULESH,
  ALTIVEC_BUILTIN_VMULOUB,
  ALTIVEC_BUILTIN_VMULOSB,
  ALTIVEC_BUILTIN_VMULOUH,
  ALTIVEC_BUILTIN_VMULOSH,
  ALTIVEC_BUILTIN_VNMSUBFP,
  ALTIVEC_BUILTIN_VNOR,
  ALTIVEC_BUILTIN_VOR,
  ALTIVEC_BUILTIN_VSEL_4SI,
  ALTIVEC_BUILTIN_VSEL_4SF,
  ALTIVEC_BUILTIN_VSEL_8HI,
  ALTIVEC_BUILTIN_VSEL_16QI,
  ALTIVEC_BUILTIN_VPERM_4SI,
  ALTIVEC_BUILTIN_VPERM_4SF,
  ALTIVEC_BUILTIN_VPERM_8HI,
  ALTIVEC_BUILTIN_VPERM_16QI,
  ALTIVEC_BUILTIN_VPKUHUM,
  ALTIVEC_BUILTIN_VPKUWUM,
  ALTIVEC_BUILTIN_VPKPX,
  ALTIVEC_BUILTIN_VPKUHSS,
  ALTIVEC_BUILTIN_VPKSHSS,
  ALTIVEC_BUILTIN_VPKUWSS,
  ALTIVEC_BUILTIN_VPKSWSS,
  ALTIVEC_BUILTIN_VPKUHUS,
  ALTIVEC_BUILTIN_VPKSHUS,
  ALTIVEC_BUILTIN_VPK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CMPGTSH_P,
  ALTIVEC_BUILTIN_VCMPGTSW_P,
  ALTIVEC_BUILTIN_VCMPGTUB_P,
  ALTIVEC_BUILTIN_VCMPGTUH_P,
  ALTIVEC_BUILTIN_VCMPGTUW_P,
  ALTIVEC_BUILTIN_ABSS_V4SI,
  ALTIVEC_BUILTIN_ABSS_V8HI,
  ALTIVEC_BUILTIN_ABSS_V16QI,
  ALTIVEC_BUILTIN_ABS_V4SI,
  ALTIVEC_BUILTIN_ABS_V4SF,
  ALTIVEC_BUILTIN_ABS_V8HI,
  ALTIVEC_BUILTIN_ABS_V16QI,
  ALTIVEC_BUILTIN_COMPILETIME_ERROR,

  SPE_BUILTIN_EVADDW,
  SPE_BUILTIN_EVAND,
  SPE_BUILTIN_EVANDC,
  SPE_BUILTIN_EVDIVWS,
  SPE_BUILTIN_EVDIVWU,
  SPE_BUILTIN_EVEQV,
  SPE_BUILTIN_EVFSADD,
  SPE_BUILTIN_EVFSDIV,
  SPE_BUILTIN_EVFSMUL,
  SPE_BUILTIN_EVFSSUB,
  SPE_BUILTIN_EVLDDX,
  SPE_BUILTIN_EVLDHX,
  SPE_BUILTIN_EVLDWX,
  SPE_BUILTIN_EVLHHESPLATX,
  SPE_BUILTIN_EVLHHOSSPLATX,
  SPE_BUILTIN_EVLHHOUSPLATX,
  SPE_BUILTIN_EVLWHEX,
  SPE_BUILTIN_EVLWHOSX,
  SPE_BUILTIN_EVLWHOUX,
  SPE_BUILTIN_EVLWHSPLATX,
  SPE_BUILTIN_EVLWWSPLATX,
  SPE_BUILTIN_EVMERGEHI,
  SPE_BUILTIN_EVMERGEHILO,
  SPE_BUILTIN_EVMERGELO,
  SPE_BUILTIN_EVMERGELOHI,
  SPE_BUILTIN_EVMHEGSMFAA,
  SPE_BUILTIN_EVMHEGSMFAN,
  SPE_BUILTIN_EVMHEGSMIAA,
  SPE_BUILTIN_EVMHEGSMIAN,
  SPE_BUILTIN_EVMHEGUMIAA,
  SPE_BUILTIN_EVMHEGUMIAN,
  SPE_BUILTIN_EVMHESMF,
  SPE_BUILTIN_EVMHESMFA,
  SPE_BUILTIN_EVMHESMFAAW,
  SPE_BUILTIN_EVMHESMFANW,
  SPE_BUILTIN_EVMHESMI,
  SPE_BUILTIN_EVMHESMIA,
  SPE_BUILTIN_EVMHESMIAAW,
  SPE_BUILTIN_EVMHESMIANW,
  SPE_BUILTIN_EVMHESSF,
  SPE_BUILTIN_EVMHESSFA,
  SPE_BUILTIN_EVMHESSFAAW,
  SPE_BUILTIN_EVMHESSFANW,
  SPE_BUILTIN_EVMHESSIAAW,
  SPE_BUILTIN_EVMHESSIANW,
  SPE_BUILTIN_EVMHEUMI,
  SPE_BUILTIN_EVMHEUMIA,
  SPE_BUILTIN_EVMHEUMIAAW,
  SPE_BUILTIN_EVMHEUMIANW,
  SPE_BUILTIN_EVMHEUSIAAW,
  SPE_BUILTIN_EVMHEUSIANW,
  SPE_BUILTIN_EVMHOGSMFAA,
  SPE_BUILTIN_EVMHOGSMFAN,
  SPE_BUILTIN_EVMHOGSMIAA,
  SPE_BUILTIN_EVMHOGSMIAN,
  SPE_BUILTIN_EVMHOGUMIAA,
  SPE_BUILTIN_EVMHOGUMIAN,
  SPE_BUILTIN_EVMHOSMF,
  SPE_BUILTIN_EVMHOSMFA,
  SPE_BUILTIN_EVMHOSMFAAW,
  SPE_BUILTIN_EVMHOSMFANW,
  SPE_BUILTIN_EVMHOSMI,
  SPE_BUILTIN_EVMHOSMIA,
  SPE_BUILTIN_EVMHOSMIAAW,
  SPE_BUILTIN_EVMHOSMIANW,
  SPE_BUILTIN_EVMHOSSF,
  SPE_BUILTIN_EVMHOSSFA,
  SPE_BUILTIN_EVMHOSSFAAW,
  SPE_BUILTIN_EVMHOSSFANW,
  SPE_BUILTIN_EVMHOSSIAAW,
  SPE_BUILTIN_EVMHOSSIANW,
  SPE_BUILTIN_EVMHOUMI,
  SPE_BUILTIN_EVMHOUMIA,
  SPE_BUILTIN_EVMHOUMIAAW,
  SPE_BUILTIN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  SPE_BUILTIN_EVMWHSSFAN,
  SPE_BUILTIN_EVMWHSSIAN,
  SPE_BUILTIN_EVMWHSMFAN,
  SPE_BUILTIN_EVMWHSMIAN,
  SPE_BUILTIN_EVMWHUSIAN,
  SPE_BUILTIN_EVMWHUMIAN,
  SPE_BUILTIN_EVMWHGSSFAA,
  SPE_BUILTIN_EVMWHGSMFAA,
  SPE_BUILTIN_EVMWHGSMIAA,
  SPE_BUILTIN_EVMWHGUMIAA,
  SPE_BUILTIN_EVMWHGSSFAN,
  SPE_BUILTIN_EVMWHGSMFAN,
  SPE_BUILTIN_EVMWHGSMIAN,
  SPE_BUILTIN_EVMWHGUMIAN,
  SPE_BUILTIN_MTSPEFSCR,
  SPE_BUILTIN_MFSPEFSCR,
  SPE_BUILTIN_BRINC
};
# 5 "./tm.h" 2
# 1 "../../gcc/config/dbxelf.h" 1
# 6 "./tm.h" 2
# 1 "../../gcc/config/elfos.h" 1
# 7 "./tm.h" 2
# 1 "../../gcc/config/svr4.h" 1
# 8 "./tm.h" 2
# 1 "../../gcc/config/freebsd-spec.h" 1
# 9 "./tm.h" 2
# 1 "../../gcc/config/rs6000/sysv4.h" 1
# 40 "../../gcc/config/rs6000/sysv4.h"
enum rs6000_sdata_type {
  SDATA_NONE,
  SDATA_DATA,
  SDATA_SYSV,
  SDATA_EABI
};

extern enum rs6000_sdata_type rs6000_sdata;
# 80 "../../gcc/config/rs6000/sysv4.h"
extern const char *rs6000_abi_name;
extern const char *rs6000_sdata_name;
extern const char *rs6000_tls_size_string;
# 612 "../../gcc/config/rs6000/sysv4.h"
extern int rs6000_pic_labelno;
# 725 "../../gcc/config/rs6000/sysv4.h"
extern int fixuplabelno;
# 10 "./tm.h" 2
# 1 "../../gcc/config/rs6000/linux.h" 1
# 11 "./tm.h" 2
# 1 "../../gcc/defaults.h" 1
# 12 "./tm.h" 2
# 65 "../../gcc/crtstuff1.c" 2
# 1 "../../gcc/unwind-dw2-fde.h" 1
# 35 "../../gcc/unwind-dw2-fde.h"
struct fde_vector
{
  const void *orig_data;
  size_t count;
  const struct dwarf_fde *array[];
};

struct object
{
  void *pc_begin;
  void *tbase;
  void *dbase;
  union {
    const struct dwarf_fde *single;
    struct dwarf_fde **array;
    struct fde_vector *sort;
  } u;

  union {
    struct {
      unsigned long sorted : 1;
      unsigned long from_array : 1;
      unsigned long mixed_encoding : 1;
      unsigned long encoding : 8;


      unsigned long count : 21;
    } b;
    size_t i;
  } s;





  struct object *next;
};





struct old_object
{
  void *pc_begin;
  void *pc_end;
  struct dwarf_fde *fde_begin;
  struct dwarf_fde **fde_array;
  size_t count;
  struct old_object *next;
};

struct dwarf_eh_bases
{
  void *tbase;
  void *dbase;
  void *func;
};


extern void __register_frame_info_bases (const void *, struct object *,
      void *, void *);
extern void __register_frame_info (const void *, struct object *);
extern void __register_frame (void *);
extern void __register_frame_info_table_bases (void *, struct object *,
            void *, void *);
extern void __register_frame_info_table (void *, struct object *);
extern void __register_frame_table (void *);
extern void *__deregister_frame_info (const void *);
extern void *__deregister_frame_info_bases (const void *);
extern void __deregister_frame (void *);


typedef int sword __attribute__ ((mode (SI)));
typedef unsigned int uword __attribute__ ((mode (SI)));
typedef unsigned int uaddr __attribute__ ((mode (pointer)));
typedef int saddr __attribute__ ((mode (pointer)));
typedef unsigned char ubyte;
# 136 "../../gcc/unwind-dw2-fde.h"
struct dwarf_cie
{
  uword length;
  sword CIE_id;
  ubyte version;
  unsigned char augmentation[];
} __attribute__ ((packed, aligned (__alignof__ (void *))));


struct dwarf_fde
{
  uword length;
  sword CIE_delta;
  unsigned char pc_begin[];
} __attribute__ ((packed, aligned (__alignof__ (void *))));

typedef struct dwarf_fde fde;



static __inline__ const struct dwarf_cie *
get_cie (const struct dwarf_fde *f)
{
  return (void *)&f->CIE_delta - f->CIE_delta;
}

static __inline__ const fde *
next_fde (const fde *f)
{
  return (const fde *) ((char *) f + f->length + sizeof (f->length));
}

extern const fde * _Unwind_Find_FDE (void *, struct dwarf_eh_bases *);

static __inline__ int
last_fde (struct object *obj __attribute__ ((__unused__)), const fde *f)
{



  return f->length == 0;

}
# 66 "../../gcc/crtstuff1.c" 2
# 123 "../../gcc/crtstuff1.c"
extern void __register_frame_info (const void *, struct object *)
      __attribute__ ((weak));
extern void __register_frame_info_bases (const void *, struct object *,
      void *, void *)
      __attribute__ ((weak));
extern void *__deregister_frame_info (const void *)
         __attribute__ ((weak));
extern void *__deregister_frame_info_bases (const void *)
         __attribute__ ((weak));
extern void __do_global_ctors_1 (void);


extern void _Jv_RegisterClasses (void *) __attribute__ ((weak));




typedef void (*func_ptr) (void);
# 428 "../../gcc/crtstuff1.c"
static func_ptr __CTOR_END__[1]
  __attribute__((section(".ctors"), aligned(sizeof(func_ptr))))
  = { (func_ptr) 0 };
# 441 "../../gcc/crtstuff1.c"
static func_ptr __DTOR_END__[1]
  __attribute__((unused, section(".dtors"), aligned(sizeof(func_ptr))))
  = { (func_ptr) 0 };





static int __FRAME_END__[]
     __attribute__ ((unused, mode(SI), section(".eh_frame"),
       aligned(4)))
     = { 0 };




static void *__JCR_END__[1]
   __attribute__ ((unused, section(".jcr"),
     aligned(sizeof(void *))))
   = { 0 };





static void __attribute__((__used__))
__do_global_ctors_aux (void)
{
  func_ptr *p;
  for (p = __CTOR_END__ - 1; *p != (func_ptr) -1; p--)
    (*p) ();
}


static void __attribute__((__used__)) call___do_global_ctors_aux (void) { asm ("\t.section\t\".init\",\"ax\""); __do_global_ctors_aux (); asm ("\t.section\t\".text\""); }

#######################################
# end of the preprocessed file (*.i*) #
#######################################

-- 
           Summary: gcc 3.4.x. internal compiler error: Segmentation fault;
                    cross-powerpc on winxp
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: andrzejn at kom-net dot pl
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-mingw32
  GCC host triplet: i686-pc-mingw32
GCC target triplet: powerpc-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19931



More information about the Gcc-bugs mailing list