diff mbox series

[Darwin,PPC,Mode,Iterators,0/n,committed] Make iterators visible to darwin.md.

Message ID 815EA288-AF2B-49F9-8F41-5A6D83F25693@sandoe.co.uk
State New
Headers show
Series [Darwin,PPC,Mode,Iterators,0/n,committed] Make iterators visible to darwin.md. | expand

Commit Message

Iain Sandoe Sept. 24, 2019, 7:18 p.m. UTC
As a clean-up, we want to be able to use mode iterators in darwin.md.
This patch moves the include point for the Darwin md file until after
the definition of the mode iterators and attrs.  No functional change
intended.

Discussed with, and approved by, Segher off-line,
Tested on powerpc-darwin9, powerpc64-linux-gnu, applied to mainline,
thanks
Iain

gcc/ChangeLog:

2019-09-24  Iain Sandoe  <iain@sandoe.co.uk>

	* config/rs6000/rs6000.md: Move darwin.md include until
	after the definition of the mode iterators.
diff mbox series

Patch

diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index f0b0bb4526..4dbf85bbc9 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -361,8 +361,6 @@ 
 (include "predicates.md")
 (include "constraints.md")
 
-(include "darwin.md")
-
 ^L
 ;; Mode iterators
 
@@ -731,6 +729,7 @@ 
                                     (SF "TARGET_P8_VECTOR")
                                     (DI "TARGET_POWERPC64")])
 
+(include "darwin.md")
 ^L
 ;; Start with fixed-point load and store insns.  Here we put only the more
 ;; complex forms.  Basic data transfer is done later.