Commit eb0f8780 by Martin Liska Committed by Martin Liska

Fix lto-bootstrap (PR bootstrap/79003).

2017-01-06  Martin Liska  <mliska@suse.cz>

	PR bootstrap/79003
	* lra-constraints.c: Rename invariant to lra_invariant.
	* predict.c (set_even_probabilities): Initialize e to NULL.
2017-01-06  Martin Liska  <mliska@suse.cz>

	PR bootstrap/79003
	* Makefile.in: Add -fno-lto to {C,CPP,LD}FLAGS.

From-SVN: r244155
parent b41f45e7
2017-01-06 Martin Liska <mliska@suse.cz>
PR bootstrap/79003
* lra-constraints.c: Rename invariant to lra_invariant.
* predict.c (set_even_probabilities): Initialize e to NULL.
2017-01-05 Martin Sebor <msebor@redhat.com> 2017-01-05 Martin Sebor <msebor@redhat.com>
PR tree-optimization/78910 PR tree-optimization/78910
......
...@@ -4749,7 +4749,7 @@ lra_constraints_finish (void) ...@@ -4749,7 +4749,7 @@ lra_constraints_finish (void)
/* Structure describes invariants for ineheritance. */ /* Structure describes invariants for ineheritance. */
struct invariant struct lra_invariant
{ {
/* The order number of the invariant. */ /* The order number of the invariant. */
int num; int num;
...@@ -4759,7 +4759,7 @@ struct invariant ...@@ -4759,7 +4759,7 @@ struct invariant
rtx_insn *insn; rtx_insn *insn;
}; };
typedef struct invariant invariant_t; typedef lra_invariant invariant_t;
typedef invariant_t *invariant_ptr_t; typedef invariant_t *invariant_ptr_t;
typedef const invariant_t *const_invariant_ptr_t; typedef const invariant_t *const_invariant_ptr_t;
...@@ -4767,7 +4767,7 @@ typedef const invariant_t *const_invariant_ptr_t; ...@@ -4767,7 +4767,7 @@ typedef const invariant_t *const_invariant_ptr_t;
static vec<invariant_ptr_t> invariants; static vec<invariant_ptr_t> invariants;
/* Allocation pool for the invariants. */ /* Allocation pool for the invariants. */
static object_allocator<struct invariant> *invariants_pool; static object_allocator<lra_invariant> *invariants_pool;
/* Hash table for the invariants. */ /* Hash table for the invariants. */
static htab_t invariant_table; static htab_t invariant_table;
...@@ -4817,7 +4817,8 @@ static void ...@@ -4817,7 +4817,8 @@ static void
initiate_invariants (void) initiate_invariants (void)
{ {
invariants.create (100); invariants.create (100);
invariants_pool = new object_allocator<struct invariant> ("Inheritance invariants"); invariants_pool
= new object_allocator<lra_invariant> ("Inheritance invariants");
invariant_table = htab_create (100, invariant_hash, invariant_eq_p, NULL); invariant_table = htab_create (100, invariant_hash, invariant_eq_p, NULL);
} }
......
...@@ -795,7 +795,7 @@ set_even_probabilities (basic_block bb, ...@@ -795,7 +795,7 @@ set_even_probabilities (basic_block bb,
hash_set<edge> *unlikely_edges = NULL) hash_set<edge> *unlikely_edges = NULL)
{ {
unsigned nedges = 0; unsigned nedges = 0;
edge e; edge e = NULL;
edge_iterator ei; edge_iterator ei;
FOR_EACH_EDGE (e, ei, bb->succs) FOR_EACH_EDGE (e, ei, bb->succs)
......
2017-01-06 Martin Liska <mliska@suse.cz>
PR bootstrap/79003
* Makefile.in: Add -fno-lto to {C,CPP,LD}FLAGS.
2017-01-01 Jakub Jelinek <jakub@redhat.com> 2017-01-01 Jakub Jelinek <jakub@redhat.com>
Update copyright years. Update copyright years.
......
...@@ -31,13 +31,13 @@ ACLOCAL = @ACLOCAL@ ...@@ -31,13 +31,13 @@ ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@ AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@ AUTOHEADER = @AUTOHEADER@
CC = @CC@ CC = @CC@
CFLAGS = @CFLAGS@ CFLAGS = @CFLAGS@ -fno-lto
WARN_CFLAGS = @WARN_CFLAGS@ @WARN_PEDANTIC@ @WERROR@ WARN_CFLAGS = @WARN_CFLAGS@ @WARN_PEDANTIC@ @WERROR@
CPP = @CPP@ CPP = @CPP@
CPPFLAGS = @CPPFLAGS@ CPPFLAGS = @CPPFLAGS@ -fno-lto
INSTALL_DATA = @INSTALL_DATA@ INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
LDFLAGS = @LDFLAGS@ LDFLAGS = @LDFLAGS@ -fno-lto
LIBICONV = @LIBICONV@ LIBICONV = @LIBICONV@
PACKAGE = @PACKAGE@ PACKAGE = @PACKAGE@
PICFLAG = @PICFLAG@ PICFLAG = @PICFLAG@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment