===================================================================
@@ -24032,7 +24032,8 @@ rs6000_trampoline_init (rtx m_tramp, tre
rtx fnmem, fn_reg, toc_reg;
if (!TARGET_POINTERS_TO_NESTED_FUNCTIONS)
- error ("-mno-r11 must not be used if you have trampolines");
+ error ("You cannot take the address of a nested function if you use "
+ "the -mno-pointers-to-nested-functions option.");
fnmem = gen_const_mem (Pmode, force_reg (Pmode, fnaddr));
fn_reg = gen_reg_rtx (Pmode);
===================================================================
@@ -5,7 +5,7 @@
extern void ext_call (int (func) (void));
int
-outer_func (int init) /* { dg-error "-mno-r11 must not be used if you have trampolines" "" } */
+outer_func (int init) /* { dg-error "-mno-pointers-to-nested-functions option" "" } */
{
int value = init;