This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, committed] Fix typos in error and help messages (trunk)


Hi

This patch just fixes some typos appeared in help or error messages.
Patch committed to trunk as obvious.  The version for 3.3 differs
slightly and will be posted in separate message.

--Kriang


2003-04-29  Kriang Lerdsuwanakij  <lerdsuwa at users dot sourceforge dot net>

	* c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
	* gcc.c (display_help): Likewise.
	* toplev.c (f_options): Likewise.
	* params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
	* config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
	* config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
	* config/s390/s390.h (TARGET_SWITCHES): Likewise.
	* config/v850/v850.h (TARGET_SWITCHES): Likewise.

2003-04-29  Kriang Lerdsuwanakij  <lerdsuwa at users dot sourceforge dot net>

	* call.c (build_operator_new_call): Fix typo.
	* lang-options.h: Likewise.

diff -cpr gcc-main-save/gcc/c-pragma.c gcc-main-new/gcc/c-pragma.c
*** gcc-main-save/gcc/c-pragma.c	Wed Jan 22 22:25:08 2003
--- gcc-main-new/gcc/c-pragma.c	Mon Apr 28 22:00:03 2003
*************** maybe_apply_renaming_pragma (decl, asmna
*** 449,455 ****
      {
        const char *oldasmname = IDENTIFIER_POINTER (oldname) + 1;
        if (asmname && strcmp (TREE_STRING_POINTER (asmname), oldasmname) != 0)
! 	warning ("asm declaration conficts with previous rename");
        asmname = build_string (strlen (oldasmname), oldasmname);
      }
  
--- 449,455 ----
      {
        const char *oldasmname = IDENTIFIER_POINTER (oldname) + 1;
        if (asmname && strcmp (TREE_STRING_POINTER (asmname), oldasmname) != 0)
! 	warning ("asm declaration conflicts with previous rename");
        asmname = build_string (strlen (oldasmname), oldasmname);
      }
  
diff -cpr gcc-main-save/gcc/config/c4x/c4x.h gcc-main-new/gcc/config/c4x/c4x.h
*** gcc-main-save/gcc/config/c4x/c4x.h	Fri Apr 18 22:27:54 2003
--- gcc-main-new/gcc/config/c4x/c4x.h	Mon Apr 28 22:11:14 2003
***************
*** 237,243 ****
    { "no-force", -FORCE_FLAG,						\
      N_("Allow RTL generation to emit invalid 3 operand insns") },	\
    { "loop-unsigned", LOOP_UNSIGNED_FLAG,				\
!     N_("Allow unsigned interation counts for RPTB/DB") },		\
    { "no-loop-unsigned", -LOOP_UNSIGNED_FLAG,				\
      N_("Disallow unsigned iteration counts for RPTB/DB") },		\
    { "preserve-float", PRESERVE_FLOAT_FLAG,				\
--- 237,243 ----
    { "no-force", -FORCE_FLAG,						\
      N_("Allow RTL generation to emit invalid 3 operand insns") },	\
    { "loop-unsigned", LOOP_UNSIGNED_FLAG,				\
!     N_("Allow unsigned iteration counts for RPTB/DB") },		\
    { "no-loop-unsigned", -LOOP_UNSIGNED_FLAG,				\
      N_("Disallow unsigned iteration counts for RPTB/DB") },		\
    { "preserve-float", PRESERVE_FLOAT_FLAG,				\
diff -cpr gcc-main-save/gcc/config/mcore/mcore.h gcc-main-new/gcc/config/mcore/mcore.h
*** gcc-main-save/gcc/config/mcore/mcore.h	Fri Apr 18 22:27:54 2003
--- gcc-main-new/gcc/config/mcore/mcore.h	Mon Apr 28 22:13:19 2003
*************** extern int target_flags;
*** 138,144 ****
    {"relax-immediates",      RELAX_IMM_BIT,				\
       "" },								\
    {"no-relax-immediates", - RELAX_IMM_BIT,				\
!      N_("Do not arbitary sized immediates in bit operations") },	\
    {"wide-bitfields",        W_FIELD_BIT,				\
       N_("Always treat bit-field as int-sized") },			\
    {"no-wide-bitfields",   - W_FIELD_BIT,				\
--- 138,144 ----
    {"relax-immediates",      RELAX_IMM_BIT,				\
       "" },								\
    {"no-relax-immediates", - RELAX_IMM_BIT,				\
!      N_("Do not arbitrary sized immediates in bit operations") },	\
    {"wide-bitfields",        W_FIELD_BIT,				\
       N_("Always treat bit-field as int-sized") },			\
    {"no-wide-bitfields",   - W_FIELD_BIT,				\
diff -cpr gcc-main-save/gcc/config/s390/s390.h gcc-main-new/gcc/config/s390/s390.h
*** gcc-main-save/gcc/config/s390/s390.h	Fri Apr 18 22:27:55 2003
--- gcc-main-new/gcc/config/s390/s390.h	Mon Apr 28 22:15:14 2003
*************** extern int target_flags;
*** 100,106 ****
    { "soft-float",   -1, N_("Don't use hardware fp")},                  \
    { "backchain",     2, N_("Set backchain")},                          \
    { "no-backchain", -2, N_("Don't set backchain (faster, but debug harder")}, \
!   { "small-exec",    4, N_("Use bras for execucable < 64k")},          \
    { "no-small-exec",-4, N_("Don't use bras")},                         \
    { "debug",         8, N_("Additional debug prints")},                \
    { "no-debug",     -8, N_("Don't print additional debug prints")},    \
--- 100,106 ----
    { "soft-float",   -1, N_("Don't use hardware fp")},                  \
    { "backchain",     2, N_("Set backchain")},                          \
    { "no-backchain", -2, N_("Don't set backchain (faster, but debug harder")}, \
!   { "small-exec",    4, N_("Use bras for executable < 64k")},          \
    { "no-small-exec",-4, N_("Don't use bras")},                         \
    { "debug",         8, N_("Additional debug prints")},                \
    { "no-debug",     -8, N_("Don't print additional debug prints")},    \
diff -cpr gcc-main-save/gcc/config/v850/v850.h gcc-main-new/gcc/config/v850/v850.h
*** gcc-main-save/gcc/config/v850/v850.h	Fri Apr 18 22:27:55 2003
--- gcc-main-new/gcc/config/v850/v850.h	Mon Apr 28 22:16:07 2003
*************** extern int target_flags;
*** 191,197 ****
     { "no-app-regs",              MASK_NO_APP_REGS, 			\
         				N_("Do not use registers r2 and r5") }, \
     { "strict-align",             MASK_STRICT_ALIGN,			\
! 				N_("Enfore strict alignment") },        \
     { "no-strict-align",         -MASK_STRICT_ALIGN, "" },		\
     { "big-switch",		 MASK_BIG_SWITCH, 			\
         				N_("Use 4 byte entries in switch tables") },\
--- 191,197 ----
     { "no-app-regs",              MASK_NO_APP_REGS, 			\
         				N_("Do not use registers r2 and r5") }, \
     { "strict-align",             MASK_STRICT_ALIGN,			\
! 				N_("Enforce strict alignment") },       \
     { "no-strict-align",         -MASK_STRICT_ALIGN, "" },		\
     { "big-switch",		 MASK_BIG_SWITCH, 			\
         				N_("Use 4 byte entries in switch tables") },\
diff -cpr gcc-main-save/gcc/cp/call.c gcc-main-new/gcc/cp/call.c
*** gcc-main-save/gcc/cp/call.c	Mon Apr 14 17:00:19 2003
--- gcc-main-new/gcc/cp/call.c	Mon Apr 28 22:17:05 2003
*************** build_operator_new_call (tree fnname, tr
*** 2959,2965 ****
  	error ("no matching function for call to `%D(%A)'",
  	       DECL_NAME (OVL_CURRENT (fns)), args);
        else
! 	error ("call of overlopaded `%D(%A)' is ambiguous",
  	       DECL_NAME (OVL_CURRENT (fns)), args);
        if (candidates)
  	print_z_candidates (candidates);
--- 2959,2965 ----
  	error ("no matching function for call to `%D(%A)'",
  	       DECL_NAME (OVL_CURRENT (fns)), args);
        else
! 	error ("call of overloaded `%D(%A)' is ambiguous",
  	       DECL_NAME (OVL_CURRENT (fns)), args);
        if (candidates)
  	print_z_candidates (candidates);
diff -cpr gcc-main-save/gcc/cp/lang-options.h gcc-main-new/gcc/cp/lang-options.h
*** gcc-main-save/gcc/cp/lang-options.h	Sat Jan  4 18:39:59 2003
--- gcc-main-new/gcc/cp/lang-options.h	Mon Apr 28 22:19:51 2003
*************** DEFINE_LANG_NAME ("C++")
*** 72,81 ****
      N_("Export functions even if they can be inlined") },
    { "-fimplicit-templates", "" },
    { "-fno-implicit-templates", 
!     N_("Only emit explicit template instatiations") },
    { "-fimplicit-inline-templates", "" },
    { "-fno-implicit-inline-templates", 
!     N_("Only emit explicit instatiations of inline templates") },
    { "-finit-priority", "" },
    { "-fno-init-priority", "" },
    { "-fmemoize-lookups", "" },
--- 72,81 ----
      N_("Export functions even if they can be inlined") },
    { "-fimplicit-templates", "" },
    { "-fno-implicit-templates", 
!     N_("Only emit explicit template instantiations") },
    { "-fimplicit-inline-templates", "" },
    { "-fno-implicit-inline-templates", 
!     N_("Only emit explicit instantiations of inline templates") },
    { "-finit-priority", "" },
    { "-fno-init-priority", "" },
    { "-fmemoize-lookups", "" },
diff -cpr gcc-main-save/gcc/gcc.c gcc-main-new/gcc/gcc.c
*** gcc-main-save/gcc/gcc.c	Sat Mar 15 17:03:52 2003
--- gcc-main-new/gcc/gcc.c	Mon Apr 28 22:03:27 2003
*************** display_help ()
*** 3022,3028 ****
    fputs (_("  -o <file>                Place the output into <file>\n"), stdout);
    fputs (_("\
    -x <language>            Specify the language of the following input files\n\
!                            Permissable languages include: c c++ assembler none\n\
                             'none' means revert to the default behavior of\n\
                             guessing the language based on the file's extension\n\
  "), stdout);
--- 3022,3028 ----
    fputs (_("  -o <file>                Place the output into <file>\n"), stdout);
    fputs (_("\
    -x <language>            Specify the language of the following input files\n\
!                            Permissible languages include: c c++ assembler none\n\
                             'none' means revert to the default behavior of\n\
                             guessing the language based on the file's extension\n\
  "), stdout);
diff -cpr gcc-main-save/gcc/params.def gcc-main-new/gcc/params.def
*** gcc-main-save/gcc/params.def	Tue Mar  4 21:15:02 2003
--- gcc-main-new/gcc/params.def	Mon Apr 28 22:08:34 2003
*************** DEFPARAM (PARAM_MAX_INLINE_INSNS,
*** 94,100 ****
     value specified by the "min-inline-insns" parameter.  */
  DEFPARAM (PARAM_MAX_INLINE_SLOPE,
  	  "max-inline-slope",
! 	  "The slope of the linear funtion throttling inlining after the recursive inlining limit has been reached is given by the negative reciprocal value of this parameter",
  	  32)
  
  /* When gcc has inlined so many instructions (by repeated
--- 94,100 ----
     value specified by the "min-inline-insns" parameter.  */
  DEFPARAM (PARAM_MAX_INLINE_SLOPE,
  	  "max-inline-slope",
! 	  "The slope of the linear function throttling inlining after the recursive inlining limit has been reached is given by the negative reciprocal value of this parameter",
  	  32)
  
  /* When gcc has inlined so many instructions (by repeated
Only in gcc-main-new/gcc/testsuite/g++.dg/lookup: scoped6.C
diff -cpr gcc-main-save/gcc/toplev.c gcc-main-new/gcc/toplev.c
*** gcc-main-save/gcc/toplev.c	Fri Apr 18 22:27:53 2003
--- gcc-main-new/gcc/toplev.c	Mon Apr 28 22:07:05 2003
*************** static const lang_independent_options f_
*** 1116,1124 ****
    {"sched-spec-load-dangerous",&flag_schedule_speculative_load_dangerous, 1,
     N_("Allow speculative motion of more loads") },
    {"sched2-use-superblocks", &flag_sched2_use_superblocks, 1,
!    N_("If scheduling post reload, do superblock sheduling") },
    {"sched2-use-traces", &flag_sched2_use_traces, 1,
!    N_("If scheduling post reload, do trace sheduling") },
    {"branch-count-reg",&flag_branch_on_count_reg, 1,
     N_("Replace add,compare,branch with branch on count reg") },
    {"pic", &flag_pic, 1,
--- 1116,1124 ----
    {"sched-spec-load-dangerous",&flag_schedule_speculative_load_dangerous, 1,
     N_("Allow speculative motion of more loads") },
    {"sched2-use-superblocks", &flag_sched2_use_superblocks, 1,
!    N_("If scheduling post reload, do superblock scheduling") },
    {"sched2-use-traces", &flag_sched2_use_traces, 1,
!    N_("If scheduling post reload, do trace scheduling") },
    {"branch-count-reg",&flag_branch_on_count_reg, 1,
     N_("Replace add,compare,branch with branch on count reg") },
    {"pic", &flag_pic, 1,
*************** static const lang_independent_options f_
*** 1159,1165 ****
    {"data-sections", &flag_data_sections, 1,
     N_("place data items into their own section") },
    {"verbose-asm", &flag_verbose_asm, 1,
!    N_("Add extra commentry to assembler output") },
    {"gnu-linker", &flag_gnu_linker, 1,
     N_("Output GNU ld formatted global initializers") },
    {"regmove", &flag_regmove, 1,
--- 1159,1165 ----
    {"data-sections", &flag_data_sections, 1,
     N_("place data items into their own section") },
    {"verbose-asm", &flag_verbose_asm, 1,
!    N_("Add extra commentary to assembler output") },
    {"gnu-linker", &flag_gnu_linker, 1,
     N_("Output GNU ld formatted global initializers") },
    {"regmove", &flag_regmove, 1,
*************** static const lang_independent_options f_
*** 1187,1193 ****
    {"align-functions", &align_functions, 0,
     N_("Align the start of functions") },
    {"merge-constants", &flag_merge_constants, 1,
!    N_("Attempt to merge identical constants accross compilation units") },
    {"merge-all-constants", &flag_merge_constants, 2,
     N_("Attempt to merge identical constants and constant variables") },
    {"dump-unnumbered", &flag_dump_unnumbered, 1,
--- 1187,1193 ----
    {"align-functions", &align_functions, 0,
     N_("Align the start of functions") },
    {"merge-constants", &flag_merge_constants, 1,
!    N_("Attempt to merge identical constants across compilation units") },
    {"merge-all-constants", &flag_merge_constants, 2,
     N_("Attempt to merge identical constants and constant variables") },
    {"dump-unnumbered", &flag_dump_unnumbered, 1,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]