forked from Imagelibrary/binutils-gdb
* Many files: Added gettext invocations around user-visible
strings. * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY, HAVE_LC_MESSAGES): Define. * dep-in.sed: Added asintl.h. * po/Make-in: New file. * gasp.c (main): Call setlocale, bindtextdomain, and textdomain. Include "asintl.h". * read.c (Z_): Renamed from `_'. * Makefile.am (SUBDIRS): Added po. (POTFILES): new macro. (po/POTFILES.in): New target. ($(OBJS)): Added asintl.h. (HFILES): Likewise. (INCLUDES): Added -DLOCALEDIR, -I$(top_srcdir)/../intl. (as_new_LDADD): Added $(INTLLIBS). (as_new_DEPENDENCIES): Added $(INTLDEPS). (gasp_new_LDADD): Added $(INTLLIBS). (gasp_new_DEPENDENCIES): New macro. * configure, aclocal.m4: Rebuilt. * configure.in: Call CY_GNU_GETTEXT. Generate po/Makefile.in and po/Makefile. (ALL_LINGUAS): Define. * macro.c: Include "asintl.h". * as.c (main): Call setlocale, bindtextdomain, and textdomain. * as.h: Include "asintl.h". * config/tc-i386.c (ordinal_names): Removed. (md_assemble): Changed error text to avoid ordinal_names. (i386_operand): Likewise. (reloc): Added as_bad to avoid i18n problems. (tc_gen_reloc): Likewise. * config/tc-arm.c (bad_args): Now a #define. (bad_pc): Likewise. * config/obj-vms.c (VMS_stab_parse): Changed type of `long_const_msg'. (global_symbol_directory): Unified strings to avoid i18n problems. * config/tc-m68k.c (get_reloc_code): Added some as_bad calls to avoid i18n problems. * config/tc-ns32k.c (reloc): Added as_bad to avoid i18n problems. * config/tc-ppc.c (md_apply_fix3): Added as_bad_where to avoid i18n problems. * config/tc-sh.c (md_convert_frag): Added as_bad to avoid i18n problems. start-sanitize-v850 * config/tc-v850.c (md_assemble): Changed C++ comment into C comment. end-sanitize-v850 * config/tc-vax.c (md_assemble): Added as_warn to avoid i18n problems. * as.c (print_version_id): Added an fprintf to avoid i18n problems. * cond.c (cond_finish_check): Added as_bad call to avoid i18n problems. * expr.c (expr): Added as_warn call to avoid i18n problems. * messages.c (as_assert): Changed code to avoid i18n problems. (as_abort): Likewise. * read.c (pseudo_set): Added as_bad call to avoid i18n problems. (s_space): Likewise. * po/Make-in, po/POTFILES.in, po/gas.pot: New files.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* vms.c -- Write out a VAX/VMS object file
|
||||
Copyright (C) 1987, 1988, 1992, 1994, 1995 Free Software Foundation, Inc.
|
||||
Copyright (C) 1987, 1988, 1992, 1994, 1995, 1998 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GAS, the GNU Assembler.
|
||||
|
||||
@@ -457,7 +457,7 @@ vms_resolve_symbol_redef (sym)
|
||||
if (SEGMENT_TO_SYMBOL_TYPE ((int) now_seg) == (N_UNDF | N_EXT)
|
||||
&& frag_now_fix () == 0)
|
||||
{
|
||||
as_warn ("compiler emitted zero-size common symbol `%s' already defined",
|
||||
as_warn (_("compiler emitted zero-size common symbol `%s' already defined"),
|
||||
S_GET_NAME (sym));
|
||||
return 1;
|
||||
}
|
||||
@@ -467,7 +467,7 @@ vms_resolve_symbol_redef (sym)
|
||||
*/
|
||||
if (S_IS_EXTERNAL (sym) && S_IS_DEFINED (sym) && S_GET_VALUE (sym) == 0)
|
||||
{
|
||||
as_warn ("compiler redefined zero-size common symbol `%s'",
|
||||
as_warn (_("compiler redefined zero-size common symbol `%s'"),
|
||||
S_GET_NAME (sym));
|
||||
sym->sy_frag = frag_now;
|
||||
S_SET_OTHER (sym, const_flag);
|
||||
@@ -559,7 +559,7 @@ obj_crawl_symbol_chain (headers)
|
||||
{
|
||||
if (S_IS_EXTERNAL (symbolP) || !S_IS_DEFINED (symbolP))
|
||||
{
|
||||
as_bad ("Local symbol %s never defined", S_GET_NAME (symbolP));
|
||||
as_bad (_("Local symbol %s never defined"), S_GET_NAME (symbolP));
|
||||
} /* oops. */
|
||||
|
||||
/* Unhook it from the chain. */
|
||||
@@ -589,7 +589,7 @@ Create_VMS_Object_File ()
|
||||
#endif /* eunice */
|
||||
/* Deal with errors. */
|
||||
if (VMS_Object_File_FD < 0)
|
||||
as_fatal ("Couldn't create VMS object file \"%s\"", out_file_name);
|
||||
as_fatal (_("Couldn't create VMS object file \"%s\""), out_file_name);
|
||||
/* Initialize object file hacking variables. */
|
||||
Object_Record_Offset = 0;
|
||||
Current_Object_Record_Type = -1;
|
||||
@@ -615,7 +615,7 @@ Flush_VMS_Object_Record_Buffer ()
|
||||
When cross-assembling, we must write it explicitly. */
|
||||
md_number_to_chars (RecLen, Object_Record_Offset, 2);
|
||||
if (write (VMS_Object_File_FD, RecLen, 2) != 2)
|
||||
error ("I/O error writing VMS object file (length prefix)");
|
||||
error (_("I/O error writing VMS object file (length prefix)"));
|
||||
/* We also need to force the actual record to be an even number of
|
||||
bytes. For native output, that's automatic; when cross-assembling,
|
||||
pad with a NUL byte if length is odd. Do so _after_ writing the
|
||||
@@ -629,7 +629,7 @@ Flush_VMS_Object_Record_Buffer ()
|
||||
/* Write the data to the file. */
|
||||
if (write (VMS_Object_File_FD, Object_Record_Buffer, Object_Record_Offset)
|
||||
!= Object_Record_Offset)
|
||||
error ("I/O error writing VMS object file");
|
||||
error (_("I/O error writing VMS object file"));
|
||||
|
||||
/* The buffer is now empty. */
|
||||
Object_Record_Offset = 0;
|
||||
@@ -1232,7 +1232,7 @@ VMS_TBT_Source_File (Filename, ID_Number)
|
||||
Status = sys$open (&fab);
|
||||
if (!(Status & 1))
|
||||
{
|
||||
as_tsktsk ("Couldn't find source file \"%s\", status=%%X%x",
|
||||
as_tsktsk (_("Couldn't find source file \"%s\", status=%%X%x"),
|
||||
Filename, Status);
|
||||
return 0;
|
||||
}
|
||||
@@ -1741,7 +1741,7 @@ gen1 (spnt, array_suffix_len)
|
||||
spnt1 = find_symbol (spnt1->type2);
|
||||
if (!spnt1)
|
||||
{
|
||||
as_tsktsk ("debugger forward reference error, dbx type %d",
|
||||
as_tsktsk (_("debugger forward reference error, dbx type %d"),
|
||||
spnt->type2);
|
||||
return 0;
|
||||
}
|
||||
@@ -1817,7 +1817,7 @@ generate_suffix (spnt, dbx_type)
|
||||
for a pointer to void. */
|
||||
if ((total_len >= MAX_DEBUG_RECORD) || overflow)
|
||||
{
|
||||
as_warn ("Variable descriptor %d too complicated. Defined as `void *'.",
|
||||
as_warn (_("Variable descriptor %d too complicated. Defined as `void *'."),
|
||||
spnt->dbx_type);
|
||||
VMS_Store_Immediate_Data (pvoid, 6, OBJ_S_C_DBG);
|
||||
return;
|
||||
@@ -2136,14 +2136,14 @@ VMS_stab_parse (sp, expected_type, type1, type2, Text_Psect)
|
||||
{
|
||||
if (!gave_compiler_message && expected_type == 'G')
|
||||
{
|
||||
static const char long_const_msg[] = "\
|
||||
char *long_const_msg = _("\
|
||||
***Warning - the assembly code generated by the compiler has placed \n\
|
||||
global constant(s) in the text psect. These will not be available to \n\
|
||||
other modules, since this is not the correct way to handle this. You \n\
|
||||
have two options: 1) get a patched compiler that does not put global \n\
|
||||
constants in the text psect, or 2) remove the 'const' keyword from \n\
|
||||
definitions of global variables in your source module(s). Don't say \n\
|
||||
I didn't warn you! \n";
|
||||
I didn't warn you! \n");
|
||||
|
||||
as_tsktsk (long_const_msg);
|
||||
gave_compiler_message = 1;
|
||||
@@ -2455,7 +2455,7 @@ VMS_typedef_parse (str)
|
||||
strcpy (str, pnt1);
|
||||
return 0;
|
||||
}
|
||||
as_tsktsk ("debugginer output: %d is an unknown untyped variable.",
|
||||
as_tsktsk (_("debugginer output: %d is an unknown untyped variable."),
|
||||
spnt->dbx_type);
|
||||
return 1; /* do not know what this is */
|
||||
}
|
||||
@@ -2673,7 +2673,7 @@ VMS_typedef_parse (str)
|
||||
/* check if this is a forward reference */
|
||||
if (final_pass && final_forward_reference (spnt1))
|
||||
{
|
||||
as_tsktsk ("debugger output: structure element `%s' has undefined type",
|
||||
as_tsktsk (_("debugger output: structure element `%s' has undefined type"),
|
||||
pnt2);
|
||||
continue;
|
||||
}
|
||||
@@ -2784,7 +2784,7 @@ VMS_typedef_parse (str)
|
||||
default:
|
||||
spnt->advanced = UNKNOWN;
|
||||
spnt->VMS_type = 0;
|
||||
as_tsktsk ("debugger output: %d is an unknown type of variable.",
|
||||
as_tsktsk (_("debugger output: %d is an unknown type of variable."),
|
||||
spnt->dbx_type);
|
||||
return 1; /* unable to decipher */
|
||||
}
|
||||
@@ -2918,7 +2918,7 @@ VMS_LSYM_Parse ()
|
||||
/* if (pass > 1) printf (" Required %d passes\n", pass); */
|
||||
if (incomplete != 0)
|
||||
{
|
||||
as_tsktsk ("debugger output: Unable to resolve %d circular references.",
|
||||
as_tsktsk (_("debugger output: Unable to resolve %d circular references."),
|
||||
incomplete);
|
||||
}
|
||||
fpnt = f_ref_root;
|
||||
@@ -2929,7 +2929,7 @@ VMS_LSYM_Parse ()
|
||||
{
|
||||
if (find_symbol (fpnt->dbx_type))
|
||||
{
|
||||
as_tsktsk ("debugger forward reference error, dbx type %d",
|
||||
as_tsktsk (_("debugger forward reference error, dbx type %d"),
|
||||
fpnt->dbx_type);
|
||||
break;
|
||||
}
|
||||
@@ -3123,7 +3123,7 @@ Write_VMS_MHD_Records ()
|
||||
if (strlen (Module_Name) > 31)
|
||||
{
|
||||
if (flag_hash_long_names)
|
||||
as_tsktsk ("Module name truncated: %s\n", Module_Name);
|
||||
as_tsktsk (_("Module name truncated: %s\n"), Module_Name);
|
||||
Module_Name[31] = '\0';
|
||||
}
|
||||
PUT_COUNTED_STRING (Module_Name);
|
||||
@@ -3402,7 +3402,7 @@ VMS_Case_Hack_Symbol (In, Out)
|
||||
*/
|
||||
*Out = 0;
|
||||
if (truncate == 1 && flag_hash_long_names && flag_show_after_trunc)
|
||||
as_tsktsk ("Symbol %s replaced by %s\n", old_name, new_name);
|
||||
as_tsktsk (_("Symbol %s replaced by %s\n"), old_name, new_name);
|
||||
}
|
||||
|
||||
|
||||
@@ -3671,7 +3671,7 @@ VMS_Psect_Spec (Name, Size, Type, vsp)
|
||||
break;
|
||||
default:
|
||||
/* impossible */
|
||||
error ("Unknown VMS psect type (%ld)", (long) Type);
|
||||
error (_("Unknown VMS psect type (%ld)"), (long) Type);
|
||||
break;
|
||||
}
|
||||
/*
|
||||
@@ -3712,7 +3712,7 @@ VMS_Psect_Spec (Name, Size, Type, vsp)
|
||||
/* In this case we still generate the psect */
|
||||
break;
|
||||
default:
|
||||
as_fatal ("Globalsymbol attribute for symbol %s was unexpected.",
|
||||
as_fatal (_("Globalsymbol attribute for symbol %s was unexpected."),
|
||||
Name);
|
||||
break;
|
||||
} /* switch */
|
||||
@@ -3862,7 +3862,7 @@ VMS_Emit_Globalvalues (text_siz, data_siz, Data_Segment)
|
||||
case N_DATA | N_EXT:
|
||||
Size = VMS_Initialized_Data_Size (sp, text_siz + data_siz);
|
||||
if (Size > 4)
|
||||
error ("Invalid data type for globalvalue");
|
||||
error (_("Invalid data type for globalvalue"));
|
||||
globalvalue = md_chars_to_number (Data_Segment +
|
||||
S_GET_VALUE (sp) - text_siz , Size);
|
||||
/* Three times for good luck. The linker seems to get confused
|
||||
@@ -3874,7 +3874,7 @@ VMS_Emit_Globalvalues (text_siz, data_siz, Data_Segment)
|
||||
GBLSYM_DEF|GBLSYM_VAL);
|
||||
break;
|
||||
default:
|
||||
as_warn ("Invalid globalvalue of %s", stripped_name);
|
||||
as_warn (_("Invalid globalvalue of %s"), stripped_name);
|
||||
break;
|
||||
} /* switch */
|
||||
} /* if */
|
||||
@@ -4224,7 +4224,7 @@ VMS_Fix_Indirect_Reference (Text_Psect, Offset, fragP, text_frag_root)
|
||||
* If we couldn't find the frag, things are BAD!!
|
||||
*/
|
||||
if (fragP == 0)
|
||||
error ("Couldn't find fixup fragment when checking for indirect reference");
|
||||
error (_("Couldn't find fixup fragment when checking for indirect reference"));
|
||||
}
|
||||
/*
|
||||
* Check for indirect PC relative addressing mode
|
||||
@@ -4558,14 +4558,14 @@ vms_fixup_text_section (text_siz, text_frag_root, data_frag_root)
|
||||
/* They need to be in the same segment. */
|
||||
if (S_GET_RAW_TYPE (fixP->fx_subsy) !=
|
||||
S_GET_RAW_TYPE (fixP->fx_addsy))
|
||||
error ("Fixup data addsy and subsy don't have the same type");
|
||||
error (_("Fixup data addsy and subsy don't have the same type"));
|
||||
/* And they need to be in one that we can check the psect on. */
|
||||
if ((S_GET_TYPE (fixP->fx_addsy) != N_DATA) &&
|
||||
(S_GET_TYPE (fixP->fx_addsy) != N_TEXT))
|
||||
error ("Fixup data addsy and subsy don't have an appropriate type");
|
||||
error (_("Fixup data addsy and subsy don't have an appropriate type"));
|
||||
/* This had better not be PC relative! */
|
||||
if (fixP->fx_pcrel)
|
||||
error ("Fixup data is erroneously \"pcrel\"");
|
||||
error (_("Fixup data is erroneously \"pcrel\""));
|
||||
/* Subtract their values to get the difference. */
|
||||
dif = S_GET_VALUE (fixP->fx_addsy) - S_GET_VALUE (fixP->fx_subsy);
|
||||
md_number_to_chars (Local, (valueT)dif, fixP->fx_size);
|
||||
@@ -4581,11 +4581,11 @@ vms_fixup_text_section (text_siz, text_frag_root, data_frag_root)
|
||||
} /* if fx_subsy && fx_addsy */
|
||||
/* Size will HAVE to be "long". */
|
||||
if (fixP->fx_size != 4)
|
||||
error ("Fixup datum is not a longword");
|
||||
error (_("Fixup datum is not a longword"));
|
||||
/* Symbol must be "added" (if it is ever
|
||||
subtracted we can fix this assumption). */
|
||||
if (fixP->fx_addsy == 0)
|
||||
error ("Fixup datum is not \"fixP->fx_addsy\"");
|
||||
error (_("Fixup datum is not \"fixP->fx_addsy\""));
|
||||
/* Store the symbol value in a PIC fashion. */
|
||||
VMS_Store_PIC_Symbol_Reference (fixP->fx_addsy,
|
||||
fixP->fx_offset,
|
||||
@@ -4700,14 +4700,14 @@ vms_fixup_data_section (data_siz, text_siz)
|
||||
/* They need to be in the same segment. */
|
||||
if (S_GET_RAW_TYPE (fixP->fx_subsy) !=
|
||||
S_GET_RAW_TYPE (fixP->fx_addsy))
|
||||
error ("Fixup data addsy and subsy don't have the same type");
|
||||
error (_("Fixup data addsy and subsy don't have the same type"));
|
||||
/* And they need to be in one that we can check the psect on. */
|
||||
if ((S_GET_TYPE (fixP->fx_addsy) != N_DATA) &&
|
||||
(S_GET_TYPE (fixP->fx_addsy) != N_TEXT))
|
||||
error ("Fixup data addsy and subsy don't have an appropriate type");
|
||||
error (_("Fixup data addsy and subsy don't have an appropriate type"));
|
||||
/* This had better not be PC relative! */
|
||||
if (fixP->fx_pcrel)
|
||||
error ("Fixup data is erroneously \"pcrel\"");
|
||||
error (_("Fixup data is erroneously \"pcrel\""));
|
||||
/* Subtract their values to get the difference. */
|
||||
dif = S_GET_VALUE (fixP->fx_addsy) - S_GET_VALUE (fixP->fx_subsy);
|
||||
md_number_to_chars (Local, (valueT)dif, fixP->fx_size);
|
||||
@@ -4726,11 +4726,11 @@ vms_fixup_data_section (data_siz, text_siz)
|
||||
}
|
||||
/* Size will HAVE to be "long". */
|
||||
if (fixP->fx_size != 4)
|
||||
error ("Fixup datum is not a longword");
|
||||
error (_("Fixup datum is not a longword"));
|
||||
/* Symbol must be "added" (if it is ever
|
||||
subtracted we can fix this assumption). */
|
||||
if (fixP->fx_addsy == 0)
|
||||
error ("Fixup datum is not \"fixP->fx_addsy\"");
|
||||
error (_("Fixup datum is not \"fixP->fx_addsy\""));
|
||||
/* Store the symbol value in a PIC fashion. */
|
||||
VMS_Store_PIC_Symbol_Reference (fixP->fx_addsy,
|
||||
fixP->fx_offset,
|
||||
@@ -4770,9 +4770,8 @@ global_symbol_directory (text_siz, data_siz)
|
||||
{
|
||||
S_SET_TYPE (sp, N_UNDF | N_EXT);
|
||||
S_SET_OTHER (sp, 1);
|
||||
as_warn ("g++ wrote an extern reference to `%s' as a routine.\n%s",
|
||||
S_GET_NAME (sp),
|
||||
"I will fix it, but I hope that it was not really a routine.");
|
||||
as_warn (_("g++ wrote an extern reference to `%s' as a routine.\nI will fix it, but I hope that it was note really a routine."),
|
||||
S_GET_NAME (sp));
|
||||
}
|
||||
#endif /* gxx_bug_fixed */
|
||||
|
||||
@@ -4959,7 +4958,7 @@ global_symbol_directory (text_siz, data_siz)
|
||||
/*
|
||||
* Error otherwise.
|
||||
*/
|
||||
as_tsktsk ("unhandled stab type %d", S_GET_TYPE (sp));
|
||||
as_tsktsk (_("unhandled stab type %d"), S_GET_TYPE (sp));
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user