Commit 61369bb8 by Andreas Krebbel Committed by Andreas Krebbel

s390.c (s390_option_override): Make -mhard-dfp the default if possible and not specified otherwise.

2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* config/s390/s390.c (s390_option_override): Make -mhard-dfp the
	default if possible and not specified otherwise.

From-SVN: r184439
parent 333f1d87
2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390.c (s390_option_override): Make -mhard-dfp the
default if possible and not specified otherwise.
2012-02-21 Richard Guenther <rguenther@suse.de> 2012-02-21 Richard Guenther <rguenther@suse.de>
PR middle-end/52314 PR middle-end/52314
......
...@@ -1540,6 +1540,11 @@ s390_option_override (void) ...@@ -1540,6 +1540,11 @@ s390_option_override (void)
if (TARGET_64BIT && !TARGET_ZARCH) if (TARGET_64BIT && !TARGET_ZARCH)
error ("64-bit ABI not supported in ESA/390 mode"); error ("64-bit ABI not supported in ESA/390 mode");
/* Use hardware DFP if available and not explicitly disabled by
user. E.g. with -m31 -march=z10 -mzarch */
if (!(target_flags_explicit & MASK_HARD_DFP) && TARGET_DFP)
target_flags |= MASK_HARD_DFP;
if (TARGET_HARD_DFP && !TARGET_DFP) if (TARGET_HARD_DFP && !TARGET_DFP)
{ {
if (target_flags_explicit & MASK_HARD_DFP) if (target_flags_explicit & MASK_HARD_DFP)
......
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