re PR target/80210 (ICE in in extract_insn, at recog.c:2311 on ppc64 for with __built...
authorPeter Bergner <bergner@vnet.ibm.com>
Mon, 2 Oct 2017 16:56:58 +0000 (11:56 -0500)
committerPeter Bergner <bergner@gcc.gnu.org>
Mon, 2 Oct 2017 16:56:58 +0000 (11:56 -0500)
commit20a7e14aadb19439b36115bbf8e75ffc70f23501
treedd2bea9e60bf8fc8b8067a3efaf92795038abce7
parent476dec785da43401e5a34d80d2ed5ec61d3a9dd6
re PR target/80210 (ICE in in extract_insn, at recog.c:2311 on ppc64 for with __builtin_pow)

gcc/
PR target/80210
* config/rs6000/rs6000.c (rs6000_option_override_internal): Rewrite
function to not use the have_cpu variable.  Do not set cpu_index,
rs6000_cpu_index or rs6000_tune_index if we end up using TARGET_DEFAULT
or the default cpu.
(rs6000_valid_attribute_p): Remove duplicate initializations of
old_optimize and func_optimize.
(rs6000_pragma_target_parse): Call rs6000_activate_target_options ().
(rs6000_activate_target_options): Make global.
* config/rs6000/rs6000-protos.h (rs6000_activate_target_options): Add
prototype.

gcc/testsuite/
PR target/80210
* gcc.target/powerpc/pr80210-2.c: New test.

From-SVN: r253358
gcc/ChangeLog
gcc/config/rs6000/rs6000-protos.h
gcc/config/rs6000/rs6000.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/pr80210-2.c [new file with mode: 0644]