public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix PR48246
@ 2011-03-31 10:14 Richard Guenther
  0 siblings, 0 replies; only message in thread
From: Richard Guenther @ 2011-03-31 10:14 UTC (permalink / raw)
  To: gcc-patches


The LTO partitioning code asserts that at most the first partition
is empty (which should probably be also the last one).  It works
fine when other partitions are empty so there is no reason to barf
on users when they run into such partitioning cases.

Thus, committed as obvious.

Richard.

2011-03-31  Richard Guenther  <rguenther@suse.de>

	PR lto/48246
	* lto.c (lto_wpa_write_files): Disable assert for non-empty
	partitions when checking is not enabled.

Index: gcc/lto/lto.c
===================================================================
*** gcc/lto/lto.c	(revision 171734)
--- gcc/lto/lto.c	(working copy)
*************** lto_wpa_write_files (void)
*** 1514,1521 ****
  	  fprintf (cgraph_dump_file, "varpool nodes:");
  	  dump_varpool_node_set (cgraph_dump_file, vset);
  	}
!       gcc_assert (cgraph_node_set_nonempty_p (set)
! 		  || varpool_node_set_nonempty_p (vset) || !i);
  
        lto_set_current_out_file (file);
  
--- 1514,1521 ----
  	  fprintf (cgraph_dump_file, "varpool nodes:");
  	  dump_varpool_node_set (cgraph_dump_file, vset);
  	}
!       gcc_checking_assert (cgraph_node_set_nonempty_p (set)
! 			   || varpool_node_set_nonempty_p (vset) || !i);
  
        lto_set_current_out_file (file);
  

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-03-31 10:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-31 10:14 [PATCH] Fix PR48246 Richard Guenther

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).