aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/intrinsic.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2022-01-14 19:49:21 +0100
committerEric Botcazou <ebotcazou@adacore.com>2022-01-14 19:53:04 +0100
commitc76b3bc55b4603d38cc948f4076264af5c0b95aa (patch)
treeb33fbef0a608638c445184716d20616b41ed26f8 /gcc/fortran/intrinsic.c
parent79ae13067f6afabcbae4784ada07dcbb7f00953e (diff)
downloadgcc-c76b3bc55b4603d38cc948f4076264af5c0b95aa.zip
gcc-c76b3bc55b4603d38cc948f4076264af5c0b95aa.tar.gz
gcc-c76b3bc55b4603d38cc948f4076264af5c0b95aa.tar.bz2
Fix reverse scalar storage order issues in IPA-SRA
The IPA-SRA pass introduced in GCC 10 does not always play nice with the reverse scalar storage order that can be used in structures/records/unions. Reading the code, the pass apparently correctly detects it but fails to propagate the information to the rewriting phase in some cases and, in particular, does not stream it for LTO. gcc/ * ipa-param-manipulation.c (ipa_dump_adjusted_parameters): Dump reverse flag as "reverse" for the sake of consistency. * ipa-sra.c: Fix copyright year. (ipa_sra_function_summaries::duplicate): Copy the reverse flag. (dump_isra_access): Tweak dump line. (isra_write_node_summary): Write the reverse flag. (isra_read_node_info): Read it. (pull_accesses_from_callee): Test its consistency and copy it. gcc/testsuite/ * gnat.dg/lto25.adb: New test. * gnat.dg/opt96.adb: Likewise. * gnat.dg/opt96_pkg.ads, gnat.dg/opt96_pkg.adb: New helper.
Diffstat (limited to 'gcc/fortran/intrinsic.c')
0 files changed, 0 insertions, 0 deletions