Commit 109e637b by Joseph Myers Committed by Joseph Myers

re PR bootstrap/37086 (GCC 3.4 miscompiles trunk (for cross compiling))

	PR bootstrap/37086
	* tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
	versions before 4.0.

From-SVN: r139792
parent 3852d2be
2008-08-29 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/37086
* tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
versions before 4.0.
2008-08-29 Jan Hubicka <jh@suse.cz>
* tree-inline.c (insert_init_stmt): Insert sequence even when
......
......@@ -4333,7 +4333,12 @@ find_switch_asserts (basic_block bb, gimple last)
edge e;
tree vec2;
size_t n = gimple_switch_num_labels(last);
#if GCC_VERSION >= 4000
unsigned int idx;
#else
/* Work around GCC 3.4 bug (PR 37086). */
volatile unsigned int idx;
#endif
need_assert = false;
bsi = gsi_for_stmt (last);
......
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