+2012-10-02 David Edelsohn <dje.gcc@gmail.com>
+
+ * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
+ set TARGET_ALTIVEC_VRSAVE for TARGET_ELF.
+ (rs6000_stack_info): Only set vrsave_mask if TARGET_ALTIVEC_VRSAVE.
+
2012-10-02 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/54713
2012-10-01 Michael Meissner <meissner@linux.vnet.ibm.com>
* config/rs6000/rs6000.c (toplevel): Include dumpfile.h.
- (rs6000_density_test): Rework to accomidate 09-30 change by
+ (rs6000_density_test): Rework to accommodate 09-30 change by
Sharad Singhai.
* config/rs6000/t-rs6000 (rs6000.o): Add dumpfile.h dependency.
else
rs6000_altivec_abi = 1;
}
-
- /* Enable VRSAVE for AltiVec ABI, unless explicitly overridden. */
- if (!global_options_set.x_TARGET_ALTIVEC_VRSAVE)
- TARGET_ALTIVEC_VRSAVE = rs6000_altivec_abi;
}
/* Set the Darwin64 ABI as default for 64-bit Darwin.
else
info_ptr->spe_gp_size = 0;
- if (TARGET_ALTIVEC_ABI)
+ /* Set VRSAVE register if it is saved and restored. */
+ if (TARGET_ALTIVEC_ABI && TARGET_ALTIVEC_VRSAVE)
info_ptr->vrsave_mask = compute_vrsave_mask ();
else
info_ptr->vrsave_mask = 0;