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

Re: failuer to build uberbaum --target=m68k-elf


>So trunc_int_mode() is called from simplify_and_const_int() since the
>RTL is an AND(with a constant arg), but with SFmode which causes
>trunc_int_mode() to barf.
>
>At the start of simplify_logical(), I added:
>
>  /* Can only simplify integer modes  */
>  if (!(GET_MODE_CLASS (mode) == MODE_INT || GET_MODE_CLASS (mode) == MODE_PARTIAL_INT))
>    return x;
>
>Which forces simplify_logical() to abandon any simplification if the
>mode of the expression is not an integer.  With this change I was able
>to bootstrap gcc-3.2.1 for i686, and using that bootstrapped compiler,
>build a --target-m68k-elf toolchain.  I've also built an m68k-elf
>compiler from the uberbaum tree.

I updated my uberbaum tree today and it failed to build ef_modf.o (due
to another abort in trunc_int_for_mode), so I've updated my patch to be:

Index: combine.c
===================================================================
RCS file: /cvs/uberbaum/gcc/combine.c,v
retrieving revision 1.335
diff -c -r1.335 combine.c
*** combine.c	1 Feb 2003 18:59:43 -0000	1.335
--- combine.c	6 Feb 2003 05:53:43 -0000
***************
*** 8004,8009 ****
--- 8004,8015 ----
    unsigned HOST_WIDE_INT nonzero;
    int i;
  
+   /* Can only simplify integer modes  */
+   if (!(GET_MODE_CLASS (mode) == MODE_INT || GET_MODE_CLASS (mode) == MODE_PARTIAL_INT))
+     return x;
+ 
    /* Simplify VAROP knowing that we will be only looking at some of the
       bits in it.
  

And have been able to build an i686 compiler which I used to build an
m68k-elf compiler.

Could someone look this over and tell me if I'm barking in the right
direction?  And if so, how can this patch get applied to the gcc sources?

Thanx.

-- 
Peter Barada
peter@baradas.org


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