diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2019-09-29 19:09:13 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2019-09-29 19:09:13 +0000 |
commit | 7a40dd5a26ee497e80c86c939542de96d5e2a474 (patch) | |
tree | c8e56552fa915361d14ceb45c6f2c69617dcdfca /gcc/config/darwin.c | |
parent | c4770ba091d96aea469c79067b549bbc8f8c7c63 (diff) | |
download | gcc-7a40dd5a26ee497e80c86c939542de96d5e2a474.zip gcc-7a40dd5a26ee497e80c86c939542de96d5e2a474.tar.gz gcc-7a40dd5a26ee497e80c86c939542de96d5e2a474.tar.bz2 |
[Darwin, PPC, Mode Iterators 5/n] Update macho_low.
Replace the define_expand and two define_insns with a single
@macho_low_<mode> and update callers.
gcc/ChangeLog:
2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
* config/darwin.c (gen_macho_low):Amend to include the mode
argument.
(machopic_indirect_data_reference): Amend gen_macho_low call
to include mode argument
* config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
* config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
the macho_high expander and two define_insn entries.
From-SVN: r276271
Diffstat (limited to 'gcc/config/darwin.c')
-rw-r--r-- | gcc/config/darwin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 1f72c07..3a1be5a 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -110,7 +110,7 @@ section * darwin_sections[NUM_DARWIN_SECTIONS]; /* While we transition to using in-tests instead of ifdef'd code. */ #if !HAVE_lo_sum #define gen_macho_high(m,a,b) (a) -#define gen_macho_low(a,b,c) (a) +#define gen_macho_low(m,a,b,c) (a) #endif /* True if we're setting __attribute__ ((ms_struct)). */ @@ -656,7 +656,7 @@ machopic_indirect_data_reference (rtx orig, rtx reg) /* Create a new register for CSE opportunities. */ rtx hi_reg = (!can_create_pseudo_p () ? reg : gen_reg_rtx (Pmode)); emit_insn (gen_macho_high (Pmode, hi_reg, orig)); - emit_insn (gen_macho_low (reg, hi_reg, orig)); + emit_insn (gen_macho_low (Pmode, reg, hi_reg, orig)); return reg; } else if (DARWIN_X86) |