diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2019-10-07 08:38:49 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2019-10-07 08:38:49 +0000 |
commit | ad00d6c1746fdcbfd86b2d50f2500d7ccb0d1691 (patch) | |
tree | e898c4bd4fc7177de519be6d52f7c865c52345f2 /gcc/tree-vrp.c | |
parent | 698114484e668abf28c70d989bc93fa399dda9ac (diff) | |
download | gcc-ad00d6c1746fdcbfd86b2d50f2500d7ccb0d1691.zip gcc-ad00d6c1746fdcbfd86b2d50f2500d7ccb0d1691.tar.gz gcc-ad00d6c1746fdcbfd86b2d50f2500d7ccb0d1691.tar.bz2 |
Use CONSTEXPR in machmode.h
This patch adds CONSTEXPR to constructors and operators in machmode.h,
excluding the controversial constexpr-resistant "() {}" constructors,
which would become "= default" if we required C++11.
Some of the other routines could potentially be constexpr too,
but that can be done on an as-needed basis.
2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* machmode.h (opt_mode): Mark constructors with CONSTEXPR.
(pod_mode): Mark operators likewise.
(scalar_int_mode): Mark non-default constructors and
operators with CONSTEXPR.
(scalar_float_mode, scalar_mode, complex_mode): Likewise.
(fixed_size_mode): Likewise.
From-SVN: r276649
Diffstat (limited to 'gcc/tree-vrp.c')
0 files changed, 0 insertions, 0 deletions