Commit f7556aae by H.J. Lu Committed by H.J. Lu

re PR bootstrap/38742 (Gcc failed to boostrap with --enable-checking=assert)

2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>

	PR bootstrap/38742
	* ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
	before using pseudos_have_intersected_live_ranges_p.

	* ira-int.h (ira_assert): Always define.

From-SVN: r143117
parent e47b7d04
2009-01-06 H.J. Lu <hongjiu.lu@intel.com> 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
PR bootstrap/38742
* ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
before using pseudos_have_intersected_live_ranges_p.
* ira-int.h (ira_assert): Always define.
2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
AVX Programming Reference (December, 2008) AVX Programming Reference (December, 2008)
* config/i386/avxintrin.h (_mm_permute2_pd): Removed. * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
(_mm256_permute2_pd): Likewise. (_mm256_permute2_pd): Likewise.
......
...@@ -3037,11 +3037,13 @@ ira_reuse_stack_slot (int regno, unsigned int inherent_size, ...@@ -3037,11 +3037,13 @@ ira_reuse_stack_slot (int regno, unsigned int inherent_size,
if (x != NULL_RTX) if (x != NULL_RTX)
{ {
ira_assert (slot->width >= total_size); ira_assert (slot->width >= total_size);
#ifdef ENABLE_IRA_CHECKING
EXECUTE_IF_SET_IN_BITMAP (&slot->spilled_regs, EXECUTE_IF_SET_IN_BITMAP (&slot->spilled_regs,
FIRST_PSEUDO_REGISTER, i, bi) FIRST_PSEUDO_REGISTER, i, bi)
{ {
ira_assert (! pseudos_have_intersected_live_ranges_p (regno, i)); ira_assert (! pseudos_have_intersected_live_ranges_p (regno, i));
} }
#endif
SET_REGNO_REG_SET (&slot->spilled_regs, regno); SET_REGNO_REG_SET (&slot->spilled_regs, regno);
if (internal_flag_ira_verbose > 3 && ira_dump_file) if (internal_flag_ira_verbose > 3 && ira_dump_file)
{ {
......
...@@ -33,7 +33,9 @@ along with GCC; see the file COPYING3. If not see ...@@ -33,7 +33,9 @@ along with GCC; see the file COPYING3. If not see
#ifdef ENABLE_IRA_CHECKING #ifdef ENABLE_IRA_CHECKING
#define ira_assert(c) gcc_assert (c) #define ira_assert(c) gcc_assert (c)
#else #else
#define ira_assert(c) /* Always define and include C, so that warnings for empty body in an
‘if’ statement and unused variable do not occur. */
#define ira_assert(c) ((void)(0 && (c)))
#endif #endif
/* Compute register frequency from edge frequency FREQ. It is /* Compute register frequency from edge frequency FREQ. It is
......
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