Message ID | 87mw9ql7fl.fsf@e105548-lin.cambridge.arm.com |
---|---|
State | New |
Headers | show |
Index: gcc/target-globals.c =================================================================== --- gcc/target-globals.c 2014-09-22 08:37:01.421320931 +0100 +++ gcc/target-globals.c 2014-09-23 15:44:48.951451849 +0100 @@ -121,10 +121,10 @@ save_target_globals_default_opts () target_globals::~target_globals () { - ira_int->~target_ira_int (); /* default_target_globals points to static data so shouldn't be freed. */ if (this != &default_target_globals) { + ira_int->~target_ira_int (); hard_regs->finalize (); XDELETE (flag_state); XDELETE (regs);