]> git.ipfire.org Git - thirdparty/gcc.git/commit
rs6000: Disable -m[no-]direct-move (PR85293)
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 14 Apr 2018 21:13:20 +0000 (21:13 +0000)
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 14 Apr 2018 21:13:20 +0000 (21:13 +0000)
commit922451ac803d9d55e7ee1b4f29fef9c1923b3e59
tree3a5b4e36722281d9e5f6d591810d4ce793ba91e5
parentc7a482ee977feabcf4ac3bcfd0a18831f73dabbe
rs6000: Disable -m[no-]direct-move (PR85293)

The -mno-direct-move option causes a lot of problems, since it forces
us to be able to generate code for p8 and up with some crucial
instructions missing.  This patch removes the -m[no-]direct-move
options so that the user cannot put us into this unexpected situation
anymore.  Internally we still have all the same flags, and they are
automatically set based on -mcpu; getting rid of that is a lot more
work and will have to wait for GCC 9 (in some places the flag is used
to see if we are compiling for a p8 _at all_).

PR target/85293
* config/rs6000/rs6000.opt (mdirect-move): Make deprecated.
* doc/invoke.texi (RS/6000 and PowerPC Options): Remove -mdirect-move
and -mno-direct-move.

gcc/testsuite/
PR target/85293
* gcc.target/powerpc/pr80098-2.c: Remove -mdirect-move.  Remove the
corresponding dg-error clause.
* gcc.target/powerpc/pr80098-3.c: Ditto.
* gcc.target/powerpc/pr80103-1.c: Delete.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259386 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/rs6000/rs6000.opt
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/pr80098-2.c
gcc/testsuite/gcc.target/powerpc/pr80098-3.c
gcc/testsuite/gcc.target/powerpc/pr80103-1.c [deleted file]