Commit ad01608e by Richard Sandiford Committed by Richard Sandiford

re PR bootstrap/63280 (Double free in GCC compiled with LTO and -O3.)

gcc/
	PR bootstrap/63280
	* target-globals.c (target_globals::~target_globals): Fix location
	of ira_int destruction.

From-SVN: r215515
parent 48e968a7
2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
PR bootstrap/63280
* target-globals.c (target_globals::~target_globals): Fix location
of ira_int destruction.
2014-09-23 Renlin Li <renlin.li@arm.com> 2014-09-23 Renlin Li <renlin.li@arm.com>
* config/aarch64/aarch64.md (return): New. * config/aarch64/aarch64.md (return): New.
...@@ -121,10 +121,10 @@ save_target_globals_default_opts () ...@@ -121,10 +121,10 @@ save_target_globals_default_opts ()
target_globals::~target_globals () target_globals::~target_globals ()
{ {
ira_int->~target_ira_int ();
/* default_target_globals points to static data so shouldn't be freed. */ /* default_target_globals points to static data so shouldn't be freed. */
if (this != &default_target_globals) if (this != &default_target_globals)
{ {
ira_int->~target_ira_int ();
hard_regs->finalize (); hard_regs->finalize ();
XDELETE (flag_state); XDELETE (flag_state);
XDELETE (regs); XDELETE (regs);
......
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