This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] correct %D quoting in gcc/config/sol2-c.c
- From: Martin Sebor <msebor at gmail dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Cc: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- Date: Mon, 8 May 2017 14:55:41 -0600
- Subject: [committed] correct %D quoting in gcc/config/sol2-c.c
- Authentication-results: sourceware.org; auth=none
In preparation for committing the meat of the patch for bug 80280
I've committed the following in r247758 as an obvious fix to prevent
the new -Wformat warning from breaking Solaris bootstrap. Bootstrap
is currently broken due to 80673 (that looks like a separate issue
from the warning).
Martin
Index: gcc/config/sol2-c.c
===================================================================
--- gcc/config/sol2-c.c (revision 247757)
+++ gcc/config/sol2-c.c (working copy)
@@ -113,7 +113,7 @@ solaris_pragma_align (cpp_reader *pfile ATTRIBUTE_
tree decl = identifier_global_value (t);
if (decl && DECL_P (decl))
warning (0, "%<#pragma align%> must appear before the declaration of "
- "%D, ignoring", decl);
+ "%qD, ignoring", decl);
else
solaris_pending_aligns = tree_cons (t, build_tree_list (NULL, x),
solaris_pending_aligns);