From: hp Date: Mon, 20 Jun 2016 20:01:20 +0000 (+0000) Subject: PR target/71571 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eff8a53fc14eb0142831f214c44f2ef2798d5dce;p=thirdparty%2Fgcc.git PR target/71571 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba" delay-slot "nop" for PIC with CRIS v32. Also add missing leading space for PIC with non-v32 and the common non-PIC "jump". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@237615 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 68648a6384cc..c76c39b7343a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2016-06-20 Hans-Peter Nilsson + + PR target/71571 + * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba" + delay-slot "nop" for PIC with CRIS v32. Also add missing leading + space for PIC with non-v32 and the common non-PIC "jump". + 2016-06-20 Jakub Jelinek PR target/71559 diff --git a/gcc/config/cris/cris.c b/gcc/config/cris/cris.c index 0df3c5d7e4d7..971d07fb12ad 100644 --- a/gcc/config/cris/cris.c +++ b/gcc/config/cris/cris.c @@ -2772,18 +2772,18 @@ cris_asm_output_mi_thunk (FILE *stream, { fprintf (stream, "\tba "); assemble_name (stream, name); - fprintf (stream, "%s\n", CRIS_PLT_PCOFFSET_SUFFIX); + fprintf (stream, "%s\n\tnop\n", CRIS_PLT_PCOFFSET_SUFFIX); } else { - fprintf (stream, "add.d "); + fprintf (stream, "\tadd.d "); assemble_name (stream, name); fprintf (stream, "%s,$pc\n", CRIS_PLT_PCOFFSET_SUFFIX); } } else { - fprintf (stream, "jump "); + fprintf (stream, "\tjump "); assemble_name (stream, XSTR (XEXP (DECL_RTL (funcdecl), 0), 0)); fprintf (stream, "\n");