]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cp/tree.c
Wrap option names in gcc internal messages with %< and %>.
[thirdparty/gcc.git] / gcc / cp / tree.c
index eca6b523c5f32aa660c2016aca909a374530886f..af077e795cfba32050da934bf56d0590b17731c4 100644 (file)
@@ -3990,11 +3990,11 @@ maybe_warn_parm_abi (tree t, location_t loc)
       bool w;
       auto_diagnostic_group d;
       if (flag_abi_version > 12)
-       w = warning_at (loc, OPT_Wabi, "-fabi-version=13 (GCC 8.2) fixes the "
-                       "calling convention for %qT, which was accidentally "
-                       "changed in 8.1", t);
+       w = warning_at (loc, OPT_Wabi, "%<-fabi-version=13%> (GCC 8.2) fixes "
+                       "the calling convention for %qT, which was "
+                       "accidentally changed in 8.1", t);
       else
-       w = warning_at (loc, OPT_Wabi, "-fabi-version=12 (GCC 8.1) accident"
+       w = warning_at (loc, OPT_Wabi, "%<-fabi-version=12%> (GCC 8.1) accident"
                        "ally changes the calling convention for %qT", t);
       if (w)
        inform (location_of (t), " declared here");
@@ -4003,7 +4003,7 @@ maybe_warn_parm_abi (tree t, location_t loc)
 
   auto_diagnostic_group d;
   if (warning_at (loc, OPT_Wabi, "the calling convention for %qT changes in "
-                 "-fabi-version=13 (GCC 8.2)", t))
+                 "%<-fabi-version=13%> (GCC 8.2)", t))
     inform (location_of (t), " because all of its copy and move "
            "constructors are deleted");
 }