aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2021-11-18 18:41:43 +0100
committerJan Hubicka <jh@suse.cz>2021-11-18 18:41:43 +0100
commitc331a75d49b6043399f5ccce72a02ccf3b0ddc56 (patch)
tree85a193a5b16480661b27e382ff7b0f54433c177a /gcc/cgraph.h
parent4f0a2f5a3ddb1024b885c066a18caae4d733bb6c (diff)
downloadgcc-c331a75d49b6043399f5ccce72a02ccf3b0ddc56.zip
gcc-c331a75d49b6043399f5ccce72a02ccf3b0ddc56.tar.gz
gcc-c331a75d49b6043399f5ccce72a02ccf3b0ddc56.tar.bz2
Fix modref wrt __builtin_assume_aligned
__builtin_assume_aligned has bit contraictionary fnspec description "1cX " which means that parameter 1 is returned but also unused. PTA code takes precedence to parameter being returned, while modref takes the info that parameter is unused. This patch tweaks modref to follow PTA semantics (as suggested by Richard in the PR log) gcc/ChangeLog: 2021-11-18 Jan Hubicka <hubicka@ucw.cz> PR ipa/103266 * ipa-modref.c (modref_eaf_analysis::merge_call_lhs_flags): Unused parameter may still be returned. (modref_eaf_analysis::analyze_ssa_name): Call merge_call_lhs_flags even for unused function args. gcc/testsuite/ChangeLog: 2021-11-18 Jan Hubicka <hubicka@ucw.cz> PR ipa/103266 * g++.dg/torture/pr103266.C: New test.
Diffstat (limited to 'gcc/cgraph.h')
0 files changed, 0 insertions, 0 deletions