aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/tree.cc
diff options
context:
space:
mode:
authorKewen Lin <linkw@linux.ibm.com>2024-07-23 00:48:00 -0500
committerThomas Koenig <tkoenig@gcc.gnu.org>2024-07-28 19:05:46 +0200
commita5013a17cbf984c4db9f9e518816a5fe42e4a1ba (patch)
treeba79ce5cee2ec2418d7705ddad4869b0ecb66b8c /gcc/cp/tree.cc
parent8237d37d294b70c81ae95f72c1e2c814cf1369f2 (diff)
downloadgcc-a5013a17cbf984c4db9f9e518816a5fe42e4a1ba.zip
gcc-a5013a17cbf984c4db9f9e518816a5fe42e4a1ba.tar.gz
gcc-a5013a17cbf984c4db9f9e518816a5fe42e4a1ba.tar.bz2
rs6000: Consider explicitly set options in target option parsing [PR115713]
In rs6000_inner_target_options, when enabling VSX we enable altivec and disable -mavoid-indexed-addresses implicitly, but it doesn't consider the case that the options altivec and avoid-indexed-addresses can be explicitly disabled. As the test case in PR115713#c1 shows, with target attribute "no-altivec,vsx", it results in that VSX unexpectedly set altivec flag and there isn't an expected error. This patch is to avoid the automatic enablement when they are explicitly specified. With this change, an existing test case ppc-target-4.c also requires an adjustment by specifying explicit altivec in target attribute (since it requires altivec feature and command line is specifying no-altivec). PR target/115713 gcc/ChangeLog: * config/rs6000/rs6000.cc (rs6000_inner_target_options): Avoid to enable altivec or disable avoid-indexed-addresses automatically when they get specified explicitly. gcc/testsuite/ChangeLog: * gcc.target/powerpc/pr115713-1.c: New test. * gcc.target/powerpc/ppc-target-4.c: Adjust by specifying altivec in target attribute.
Diffstat (limited to 'gcc/cp/tree.cc')
0 files changed, 0 insertions, 0 deletions