]> gcc.gnu.org Git - gcc.git/commit
PowerPC: Set long double size for IBM/IEEE.
authorMichael Meissner <meissner@linux.ibm.com>
Thu, 14 Jan 2021 03:26:50 +0000 (22:26 -0500)
committerMichael Meissner <meissner@linux.ibm.com>
Thu, 14 Jan 2021 03:26:50 +0000 (22:26 -0500)
commitf31378d48609c5253ecdc801a3da9ce8c573ac16
treef601aab33391813c6f86a8fa42d697efa6dae4ae
parentb2b02f4003b9c666f13ace48f4ba7dd6e3f7cee0
PowerPC: Set long double size for IBM/IEEE.

As I was working with compilers where the long double default was 64-bit, it
became annoying to have to use two options to switch to one of the 128-bit long
double types (i.e. you need both -mlong-double-128 and the
-mabi={ieee,ibm}longdouble to switch the long double type).

I did this patch so that if you explicitly set the long double ABI via the
-mabi= option, it would automatically set the long double size if that was not
set explicitly.

gcc/
2021-01-13  Michael Meissner  <meissner@linux.ibm.com>

* config/rs6000/rs6000.c (rs6000_option_override_internal): If the
user explicitly used -mabi=ieeelongdouble or -mabi=ibmlongdouble,
set the long double size to 128.
* doc/invoke.texi (PowerPC options): Document that an explicit
-mabi=ieeelongdouble or -mabi=ibmlongdouble implicitly sets
-mlong-double-128.
gcc/config/rs6000/rs6000.c
gcc/doc/invoke.texi
This page took 0.062045 seconds and 6 git commands to generate.