PR target/49714
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Jul 2011 15:46:02 +0000 (15:46 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Jul 2011 15:46:02 +0000 (15:46 +0000)
        * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
        destination address in memory on some paths.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176208 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/i386.c

index 903c117..ca55049 100644 (file)
@@ -1,3 +1,9 @@
+2011-07-12  Richard Henderson  <rth@redhat.com>
+
+       PR target/49714
+       * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
+       destination address in memory on some paths.
+
 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
 
        * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
index c419c37..4ca95ab 100644 (file)
@@ -29399,7 +29399,7 @@ x86_output_mi_thunk (FILE *file,
        {
          tmp = gen_rtx_UNSPEC (Pmode, gen_rtvec (1, fnaddr), UNSPEC_GOTPCREL);
          tmp = gen_rtx_CONST (Pmode, tmp);
-         fnaddr = gen_rtx_MEM (QImode, tmp);
+         fnaddr = gen_rtx_MEM (Pmode, tmp);
        }
     }
   else
@@ -29414,7 +29414,7 @@ x86_output_mi_thunk (FILE *file,
            sym_ref = (gen_rtx_SYMBOL_REF
                   (Pmode,
                    machopic_indirection_name (sym_ref, /*stub_p=*/true)));
-         fnaddr = gen_rtx_MEM (QImode, sym_ref);
+         fnaddr = gen_rtx_MEM (Pmode, sym_ref);
        }
 #endif /* TARGET_MACHO */
       else