+2019-03-08 David Malcolm <dmalcolm@redhat.com>
+
+ PR target/79926
+ * config/i386/i386.c (ix86_set_current_function): Make "sorry"
+ messages more amenable to translation, and improve wording.
+
2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
* config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
if (isa != NULL)
{
if (cfun->machine->func_type != TYPE_NORMAL)
- sorry ("%s instructions aren't allowed in %s service routine",
- isa, (cfun->machine->func_type == TYPE_EXCEPTION
- ? "exception" : "interrupt"));
+ sorry (cfun->machine->func_type == TYPE_EXCEPTION
+ ? G_("%s instructions aren%'t allowed in an"
+ " exception service routine")
+ : G_("%s instructions aren%'t allowed in an"
+ " interrupt service routine"),
+ isa);
else
- sorry ("%s instructions aren't allowed in function with "
- "no_caller_saved_registers attribute", isa);
+ sorry ("%s instructions aren%'t allowed in a function with "
+ "the %<no_caller_saved_registers%> attribute", isa);
/* Don't issue the same error twice. */
cfun->machine->func_type = TYPE_NORMAL;
cfun->machine->no_caller_saved_registers = false;
+2019-03-08 David Malcolm <dmalcolm@redhat.com>
+
+ PR target/79926
+ * gcc.target/i386/interrupt-387-err-1.c: Update expected message.
+ * gcc.target/i386/interrupt-387-err-2.c: Likewise.
+ * gcc.target/i386/interrupt-mmx-err-1.c: Likewise.
+ * gcc.target/i386/interrupt-mmx-err-2.c: Likewise.
+
2019-03-08 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/63540
void
__attribute__((interrupt))
fn1 (void *frame, uword_t error)
-{ /* { dg-message "80387 instructions aren't allowed in exception service routine" } */
+{ /* { dg-message "80387 instructions aren't allowed in an exception service routine" } */
}
void
__attribute__((interrupt))
fn2 (void *frame)
-{ /* { dg-message "80387 instructions aren't allowed in interrupt service routine" } */
+{ /* { dg-message "80387 instructions aren't allowed in an interrupt service routine" } */
}
void
__attribute__((no_caller_saved_registers))
fn1 (void)
-{ /* { dg-message "80387 instructions aren't allowed in function with no_caller_saved_registers attribute" } */
+{ /* { dg-message "80387 instructions aren't allowed in a function with the 'no_caller_saved_registers' attribute" } */
}
void
__attribute__((interrupt))
fn1 (void *frame)
-{ /* { dg-message "MMX/3Dnow instructions aren't allowed in interrupt service routine" } */
+{ /* { dg-message "MMX/3Dnow instructions aren't allowed in an interrupt service routine" } */
}
void
__attribute__((interrupt))
fn2 (void *frame, uword_t error)
-{ /* { dg-message "MMX/3Dnow instructions aren't allowed in exception service routine" } */
+{ /* { dg-message "MMX/3Dnow instructions aren't allowed in an exception service routine" } */
}
void
__attribute__((no_caller_saved_registers))
fn1 (void)
-{ /* { dg-message "MMX/3Dnow instructions aren't allowed in function with no_caller_saved_registers attribute" } */
+{ /* { dg-message "MMX/3Dnow instructions aren't allowed in a function with the 'no_caller_saved_registers' attribute" } */
}