* Philipp Thomas (p...@suse.de) [20110504 14:17]: While checking the current german tanslations I noticed that mep_validate_vliw passes the syntax description directly to inform and thus they appear in the message catalogue which is IMO bogus. This patch makes the syntax descriptions untanslatable. I also reworked the patch so that the lines are shorter and I also removed the blanks before the typedef. OK to check in?
2011-05-06 Philipp Thomas <p...@suse.de> * config/mep/mep.c (mep_validate_vliw): Syntax description should not be translated. Index: gcc/config/mep/mep.c =================================================================== --- gcc/config/mep/mep.c (Revision 173334) +++ gcc/config/mep/mep.c (Arbeitskopie) @@ -4122,16 +4122,18 @@ if (TREE_CODE (*node) == POINTER_TYPE && !gave_pointer_note) { - inform (input_location, "to describe a pointer to a VLIW function, use syntax like this:"); - inform (input_location, " typedef int (__vliw *vfuncptr) ();"); + inform (input_location, + "to describe a pointer to a VLIW function, use syntax like this: %s", + "typedef int (__vliw *vfuncptr) ();"); gave_pointer_note = 1; } if (TREE_CODE (*node) == ARRAY_TYPE && !gave_array_note) { - inform (input_location, "to describe an array of VLIW function pointers, use syntax like this:"); - inform (input_location, " typedef int (__vliw *vfuncptr[]) ();"); + inform (input_location, + "to describe an array of VLIW function pointers, use syntax like this: %s", + "typedef int (__vliw *vfuncptr[]) ();"); gave_array_note = 1; } }