[Bug c++/70105] [6 regression] giant warning when building gcc-5 with gcc-6
dmalcolm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 9 18:43:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70105
David Malcolm <dmalcolm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Should be fixed by r234087+r234088:
r234087: "[PATCH 1/2] PR c++/70105: Defer location expansion until
diagnostic_show_locus"
https://gcc.gnu.org/ml/gcc-patches/2016-03/msg00583.html
r234088: "[PATCH 2/2] PR c++/70105: prevent nonsensical underline spew for
macro expansions"
https://gcc.gnu.org/ml/gcc-patches/2016-03/msg00585.html
Additionally verified by rebuildling tree-complex.c, which now emits just:
*******************************************************************************
In file included from ./tm.h:27:0,
from ../../src/gcc/tree-complex.c:23:
../../src/gcc/config/elfos.h:102:21: warning: invalid suffix on literal; C++11
requires a space between literal and string macro [-Wliteral-suffix]
fprintf ((FILE), "%s"HOST_WIDE_INT_PRINT_UNSIGNED"\n",\
^
../../src/gcc/config/elfos.h:170:24: warning: invalid suffix on literal; C++11
requires a space between literal and string macro [-Wliteral-suffix]
fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
^
In file included from ./tm.h:48:0,
from ../../src/gcc/tree-complex.c:23:
../../src/gcc/defaults.h:126:24: warning: invalid suffix on literal; C++11
requires a space between literal and string macro [-Wliteral-suffix]
fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
^
In file included from ../../src/gcc/tree-complex.c:57:0:
../../src/gcc/tree-complex.c: In function ‘tree_node*
create_one_component_var(tree, tree, const char*, const char*, tree_code)’:
../../src/gcc/../include/libiberty.h:184:25: warning: operation on
‘libiberty_concat_ptr’ may be undefined [-Wsequence-point]
(libiberty_concat_ptr = (char *) alloca (concat_length ACONCAT_PARAMS + 1),
\
^
../../src/gcc/stringpool.h:39:50: note: in definition of macro ‘get_identifier’
? get_identifier_with_length ((str), strlen (str)) \
^~~
../../src/gcc/tree-complex.c:473:39: note: in expansion of macro ‘ACONCAT’
DECL_NAME (r) = get_identifier (ACONCAT ((name, suffix, NULL)));
^~~~~~~
*******************************************************************************
Marking as resolved.
More information about the Gcc-bugs
mailing list