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]

Re: bootstrap error with arm-elf config?


Hi Fred,

> I was wondering if you noticed the same problem I've
> seen for about the last week or more (I.E. unrelated to your changes):
> 
>   /src/sourceware/gcc/gcc/gcc/unwind.inc:67: warning: implicit declaration of function `abort'
>   /src/sourceware/gcc/gcc/gcc/unwind.inc:73: Internal error: Segmentation fault
> 
> I configured this build on a RedHat 7.1 system with:
> 
>   /src/sourceware/gcc/gcc/configure --host=i686-pc-linux-gnu --target=arm-elf -v --prefix=/usr/sourceware --enable-shared

Hmm, I am using 7.0 and not --enable-shared and things compile OK.
However if I configure with --enable-shared this failure does show.

I found that the patch below is a workaround for the problem, but I
doubt if it is really the right thing to do.  Unfortunately I do not
have much experience of the CFG code, so I am hoping that someone else
will want to look at this problem and come up with the right solution.

Cheers
        Nick

Index: gcc/cfg.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cfg.c,v
retrieving revision 1.5
diff -p -r1.5 cfg.c
*** cfg.c	2001/09/16 20:21:23	1.5
--- cfg.c	2001/09/17 10:45:09
*************** force_nonfallthru_and_redirect (e, targe
*** 1255,1260 ****
--- 1255,1262 ----
      abort ();
    if (!(e->flags & EDGE_FALLTHRU))
      abort ();
+   if (target == EXIT_BLOCK_PTR)
+     return NULL;
    if (e->src->succ->succ_next)
      {
        /* Create the new structures.  */



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