https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66290

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-07-23
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.  In fact, the C output has regressed -- there is no caret anymore
(not that it was terribly useful before, or even in the correct column).

The caret disappeared in r229884.

$ (cat xyz.c && set -x && for lang in c c++; do /build/gcc-trunk-git/gcc/xgcc
-B /build/gcc-trunk-git/gcc -S -Wunused-macros -x$lang xyz.c; done)
/* */
#define FOO
#define BAR
+ for lang in c c++
+ /build/gcc-trunk-git/gcc/xgcc -B /build/gcc-trunk-git/gcc -S -Wunused-macros
-xc xyz.c
xyz.c:2:0: warning: macro "FOO" is not used [-Wunused-macros]
 #define FOO

xyz.c:3:0: warning: macro "BAR" is not used [-Wunused-macros]
 #define BAR

+ for lang in c c++
+ /build/gcc-trunk-git/gcc/xgcc -B /build/gcc-trunk-git/gcc -S -Wunused-macros
-xc++ xyz.c
xyz.c:1:0: warning: macro "FOO" is not used [-Wunused-macros]
 /* */

xyz.c:1:0: warning: macro "BAR" is not used [-Wunused-macros]


Clang produces the following:

$ /build/llvm-trunk/bin/clang -S -Wunused-macros xyz.c
xyz.c:2:9: warning: macro is not used [-Wunused-macros]
#define FOO
        ^
xyz.c:3:9: warning: macro is not used [-Wunused-macros]
#define BAR
        ^
2 warnings generated.

Reply via email to