]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/config/rs6000/darwin.md
re PR target/18269 (-m64 -fPIC does not work on ppc-darwin)
authorAndrew Pinski <pinskia@physics.uc.edu>
Mon, 8 Nov 2004 04:42:36 +0000 (04:42 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Mon, 8 Nov 2004 04:42:36 +0000 (20:42 -0800)
commitb8a55285ffabec4803d92012cc42a3e1729b802f
tree6c021f55a1153c8f7ced79bcd0b7d343f6b17bba
parent79fd859270b76814800f67c8aea0345356efd8d8
re PR target/18269 (-m64 -fPIC does not work on ppc-darwin)

2004-11-07  Andrew Pinski  <pinskia@physics.uc.edu>

        PR target/18269
        * config/darwin.c (machopic_indirect_data_reference):
        Call gen_macho_high and gen_macho_low instead of
        checking the mode and calling gen_macho_high_di directly.
        * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
        * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
        to darwin.md.
        (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
        load_macho_picbase, macho_low, macho_high): Removed.
        (builtin_setjmp_receiver): Call gen_macho_high and
        gen_macho_low instead of checking the mode and calling
        gen_macho_high_di directly.
        * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
        (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
        Moved from rs6000.md.
        (macho_high): New expander.
        (macho_high_si): Renamed version of macho_high from rs6000.md.
        (macho_low): New expander.
        (macho_low_si): Renamed version of macho_low from rs6000.md.
        (load_macho_picbase): New expander.
        (load_macho_picbase_si): Renamed version of load_macho_picbase
        from rs6000.md.
        (macho_correct_pic): New expander.
        (macho_correct_pic_si): Renamed version of macho_correct_pic
        from rs6000.md.

From-SVN: r90257
gcc/ChangeLog
gcc/config/darwin.c
gcc/config/rs6000/darwin.md
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/rs6000.md