diff options
author | Jakub Jelinek <jakub@redhat.com> | 2020-10-05 09:34:42 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2020-10-05 09:34:42 +0200 |
commit | 3c022a4c732163549ee999fb0b1846215cf0a671 (patch) | |
tree | 881c19f8fc7f85c8916384113a63ff44ca79a5d3 /libstdc++-v3/include/std/numeric | |
parent | 21f65995e068963d4ceaec5b6730223213e98af7 (diff) | |
download | gcc-3c022a4c732163549ee999fb0b1846215cf0a671.zip gcc-3c022a4c732163549ee999fb0b1846215cf0a671.tar.gz gcc-3c022a4c732163549ee999fb0b1846215cf0a671.tar.bz2 |
options: Save and restore opts_set for Optimization and Target options fallout
> This breaks ia64:
>
> In file included from ./tm.h:23,
> from ../../gcc/gencheck.c:23:
> ./options.h:7816:40: error: ISO C++ forbids zero-size array 'explicit_mask' [-Werror=pedantic]
> 7816 | unsigned HOST_WIDE_INT explicit_mask[0];
> | ^
> ./options.h:7816:26: error: zero-size array member 'cl_target_option::explicit_mask' not at end of 'struct cl_target_option' [-Werror=pedantic]
> 7816 | unsigned HOST_WIDE_INT explicit_mask[0];
> | ^~~~~~~~~~~~~
> ./options.h:7812:16: note: in the definition of 'struct cl_target_option'
> 7812 | struct GTY(()) cl_target_option
> | ^~~~~~~~~~~~~~~~
Oops, sorry.
The following patch should fix that and should also fix streaming of the
new explicit_mask_* members.
2020-10-05 Jakub Jelinek <jakub@redhat.com>
* opth-gen.awk: Don't emit explicit_mask array if n_target_explicit
is equal to n_target_explicit_mask.
* optc-save-gen.awk: Compute has_target_explicit_mask and if false,
don't emit code iterating over explicit_mask array elements. Stream
also explicit_mask_* target members.
Diffstat (limited to 'libstdc++-v3/include/std/numeric')
0 files changed, 0 insertions, 0 deletions