This is the mail archive of the gcc-patches@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: Can't build libiberty (cplus-dem) for target mn10300-elf


On May 18, 2000, Richard Henderson <rth@cygnus.com> wrote:

> On Thu, May 18, 2000 at 08:02:45PM -0300, Alexandre Oliva wrote:
>> Yup, but it just adds the notes, it doesn't attempt to delete any
>> insns, AFAICT.  The unused note is added by update_life_info(), and I
>> can't find any code that might attempt to delete insns there.

> You might change
[snip, patch below]
> at the end of if-conversion.  The one thing I'd be concerned about
> is that it may change global_live_at_start for the block, which
> would trip up the sanity checks in verify_local_live_at_start.

I don't see how it could change.  But then, I'm probably visually
challenged :-)  Do you have any particular situation in mind?

I have tested the patch below, together with verify-flow.patch,
enabling the final checking unconditionally.  It didn't cause any
regressions, and allowed me to compile cplus-dem for mn10300.  
Ok to install?

Index: gcc/ChangeLog
from  Alexandre Oliva  <aoliva@cygnus.com>

	* ifcvt.c (if_convert): Scan and kill dead code.

Index: gcc/ifcvt.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/ifcvt.c,v
retrieving revision 1.18
diff -u -r1.18 ifcvt.c
--- gcc/ifcvt.c	2000/05/19 22:27:26	1.18
+++ gcc/ifcvt.c	2000/05/20 18:08:14
@@ -2038,7 +2038,8 @@
 
       count_or_remove_death_notes (update_life_blocks, 1);
       update_life_info (update_life_blocks, UPDATE_LIFE_LOCAL,
-			PROP_DEATH_NOTES);
+			PROP_DEATH_NOTES | PROP_SCAN_DEAD_CODE
+			| PROP_KILL_DEAD_CODE);
 
       sbitmap_free (update_life_blocks);
     }

-- 
Alexandre Oliva    Enjoy Guaranį, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me

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