Commit 90aaff2c by David Malcolm Committed by David Malcolm

Remove trailing period from various diagnostic messages (PR translation/79923)

gcc/ChangeLog:
	PR translation/79923
	* auto-profile.c (get_combined_location): Convert leading
	character of diagnostics to lower case and remove trailing period.
	(read_profile): Likewise for various diagnostics.
	* config/arm/arm.c (arm_option_override): Remove trailing period
	from various diagnostics.
	* config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
	(msp430_expand_delay_cycles): Likewise.

From-SVN: r246067
parent fb241da2
2017-03-10 David Malcolm <dmalcolm@redhat.com> 2017-03-10 David Malcolm <dmalcolm@redhat.com>
PR translation/79923
* auto-profile.c (get_combined_location): Convert leading
character of diagnostics to lower case and remove trailing period.
(read_profile): Likewise for various diagnostics.
* config/arm/arm.c (arm_option_override): Remove trailing period
from various diagnostics.
* config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
(msp430_expand_delay_cycles): Likewise.
2017-03-10 David Malcolm <dmalcolm@redhat.com>
PR target/79925 PR target/79925
* config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
full command-line argument, rather than just "str". full command-line argument, rather than just "str".
......
...@@ -344,7 +344,7 @@ get_combined_location (location_t loc, tree decl) ...@@ -344,7 +344,7 @@ get_combined_location (location_t loc, tree decl)
{ {
/* TODO: allow more bits for line and less bits for discriminator. */ /* TODO: allow more bits for line and less bits for discriminator. */
if (LOCATION_LINE (loc) - DECL_SOURCE_LINE (decl) >= (1<<16)) if (LOCATION_LINE (loc) - DECL_SOURCE_LINE (decl) >= (1<<16))
warning_at (loc, OPT_Woverflow, "Offset exceeds 16 bytes."); warning_at (loc, OPT_Woverflow, "offset exceeds 16 bytes");
return ((LOCATION_LINE (loc) - DECL_SOURCE_LINE (decl)) << 16); return ((LOCATION_LINE (loc) - DECL_SOURCE_LINE (decl)) << 16);
} }
...@@ -917,13 +917,13 @@ read_profile (void) ...@@ -917,13 +917,13 @@ read_profile (void)
{ {
if (gcov_open (auto_profile_file, 1) == 0) if (gcov_open (auto_profile_file, 1) == 0)
{ {
error ("Cannot open profile file %s.", auto_profile_file); error ("cannot open profile file %s", auto_profile_file);
return; return;
} }
if (gcov_read_unsigned () != GCOV_DATA_MAGIC) if (gcov_read_unsigned () != GCOV_DATA_MAGIC)
{ {
error ("AutoFDO profile magic number does not match."); error ("AutoFDO profile magic number does not match");
return; return;
} }
...@@ -931,7 +931,7 @@ read_profile (void) ...@@ -931,7 +931,7 @@ read_profile (void)
unsigned version = gcov_read_unsigned (); unsigned version = gcov_read_unsigned ();
if (version != AUTO_PROFILE_VERSION) if (version != AUTO_PROFILE_VERSION)
{ {
error ("AutoFDO profile version %u does match %u.", error ("AutoFDO profile version %u does match %u",
version, AUTO_PROFILE_VERSION); version, AUTO_PROFILE_VERSION);
return; return;
} }
...@@ -943,7 +943,7 @@ read_profile (void) ...@@ -943,7 +943,7 @@ read_profile (void)
afdo_string_table = new string_table (); afdo_string_table = new string_table ();
if (!afdo_string_table->read()) if (!afdo_string_table->read())
{ {
error ("Cannot read string table from %s.", auto_profile_file); error ("cannot read string table from %s", auto_profile_file);
return; return;
} }
...@@ -951,7 +951,7 @@ read_profile (void) ...@@ -951,7 +951,7 @@ read_profile (void)
afdo_source_profile = autofdo_source_profile::create (); afdo_source_profile = autofdo_source_profile::create ();
if (afdo_source_profile == NULL) if (afdo_source_profile == NULL)
{ {
error ("Cannot read function profile from %s.", auto_profile_file); error ("cannot read function profile from %s", auto_profile_file);
return; return;
} }
...@@ -961,7 +961,7 @@ read_profile (void) ...@@ -961,7 +961,7 @@ read_profile (void)
/* Read in the working set. */ /* Read in the working set. */
if (gcov_read_unsigned () != GCOV_TAG_AFDO_WORKING_SET) if (gcov_read_unsigned () != GCOV_TAG_AFDO_WORKING_SET)
{ {
error ("Cannot read working set from %s.", auto_profile_file); error ("cannot read working set from %s", auto_profile_file);
return; return;
} }
......
...@@ -3370,7 +3370,7 @@ arm_option_override (void) ...@@ -3370,7 +3370,7 @@ arm_option_override (void)
if (arm_fp16_inst) if (arm_fp16_inst)
{ {
if (arm_fp16_format == ARM_FP16_FORMAT_ALTERNATIVE) if (arm_fp16_format == ARM_FP16_FORMAT_ALTERNATIVE)
error ("selected fp16 options are incompatible."); error ("selected fp16 options are incompatible");
arm_fp16_format = ARM_FP16_FORMAT_IEEE; arm_fp16_format = ARM_FP16_FORMAT_IEEE;
} }
......
...@@ -2501,7 +2501,7 @@ msp430_expand_delay_cycles (rtx arg) ...@@ -2501,7 +2501,7 @@ msp430_expand_delay_cycles (rtx arg)
{ {
if (c < 0) if (c < 0)
{ {
error ("__delay_cycles only takes non-negative cycle counts."); error ("__delay_cycles only takes non-negative cycle counts");
return NULL_RTX; return NULL_RTX;
} }
} }
...@@ -2521,7 +2521,7 @@ msp430_expand_delay_cycles (rtx arg) ...@@ -2521,7 +2521,7 @@ msp430_expand_delay_cycles (rtx arg)
c %= 4; c %= 4;
if ((unsigned long long) i > 0xffffffffULL) if ((unsigned long long) i > 0xffffffffULL)
{ {
error ("__delay_cycles is limited to 32-bit loop counts."); error ("__delay_cycles is limited to 32-bit loop counts");
return NULL_RTX; return NULL_RTX;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment