diff mbox series

[committed,PR,translation/90162] Fix diagnostic to better follow guidelines

Message ID 5801de2a28dc04bacc399a7ce659d54b2020d3e2.camel@redhat.com
State New
Headers show
Series [committed,PR,translation/90162] Fix diagnostic to better follow guidelines | expand

Commit Message

Jeff Law Jan. 23, 2020, 11:06 p.m. UTC
Not a regression, but only affects a diagnostic on the H8 port.

As pointed out in the BZ, we should not be emitting an exclamation
point in the diagnostic and the capitalization was incorrect.  Fixed by
the attached patch which I've committed to the trunk.
Jeff
commit dfa075d00d396f554b4aca183c3ca685fbb73bbd
Author: Jeff Law <law@redhat.com>
Date:   Thu Jan 23 16:03:27 2020 -0700

    Fix diagnostic text on H8.
    
            * config/h8300/h8300.c (h8300_option_override): Fix diagnostic text.
diff mbox series

Patch

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c00deeed142..023e9c398ea 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@ 
+2020-01-23  Jeff Law  <law@redhat.com>
+
+	* config/h8300/h8300.c (h8300_option_override): Fix diagnostic text.
+
 2020-01-23  Mikael Tillenius  <mti-1@tillenius.com>
 
 	* config/h8300/h8300.h (FUNCTION_PROFILER): Fix emission of
diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c
index 6c84b0abea7..ffbfa9eaaa9 100644
--- a/gcc/config/h8300/h8300.c
+++ b/gcc/config/h8300/h8300.c
@@ -378,8 +378,8 @@  h8300_option_override (void)
 
  if ((!TARGET_H8300S  &&  TARGET_NEXR) && (!TARGET_H8300SX && TARGET_NEXR))
    {
-      warning (OPT_mno_exr, "%<-mno-exr%> valid only with %<-ms%> or "
-	       "%<-msx%> - Option ignored!");
+      warning (OPT_mno_exr, "%<-mno-exr%> is valid only with %<-ms%> or "
+	       "%<-msx%> - option ignored");
    }
 
 #ifdef H8300_LINUX