public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/87161] if -Werror appear after -Wmissing-prototypes the warning is not turn into error
[not found] <bug-87161-4@http.gcc.gnu.org/bugzilla/>
@ 2020-03-13 13:37 ` simon.marchi at polymtl dot ca
2024-02-28 0:32 ` [Bug middle-end/87161] " ferdnyc at gmail dot com
1 sibling, 0 replies; 2+ messages in thread
From: simon.marchi at polymtl dot ca @ 2020-03-13 13:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87161
Simon Marchi <simon.marchi at polymtl dot ca> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |simon.marchi at polymtl dot ca
--- Comment #6 from Simon Marchi <simon.marchi at polymtl dot ca> ---
I also encountered this inconsistency when running g++ under ccache. I can't
tell if this is a ccache or a gcc problem. Running the exact same command with
and without ccache gives two different results:
$ ccache g++ -c -Werror -Wmissing-prototypes test.cpp
cc1plus: warning: command line option ‘-Wmissing-prototypes’ is valid for
C/ObjC but not for C++
$ g++ -c -Werror -Wmissing-prototypes test.cpp
cc1plus: error: command line option ‘-Wmissing-prototypes’ is valid for C/ObjC
but not for C++ [-Werror]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug middle-end/87161] if -Werror appear after -Wmissing-prototypes the warning is not turn into error
[not found] <bug-87161-4@http.gcc.gnu.org/bugzilla/>
2020-03-13 13:37 ` [Bug driver/87161] if -Werror appear after -Wmissing-prototypes the warning is not turn into error simon.marchi at polymtl dot ca
@ 2024-02-28 0:32 ` ferdnyc at gmail dot com
1 sibling, 0 replies; 2+ messages in thread
From: ferdnyc at gmail dot com @ 2024-02-28 0:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87161
FeRD <ferdnyc at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ferdnyc at gmail dot com
--- Comment #7 from FeRD <ferdnyc at gmail dot com> ---
(In reply to Simon Marchi from comment #6)
> I also encountered this inconsistency when running g++ under ccache. I
> can't tell if this is a ccache or a gcc problem.
Any thoughts about gcc's argument handling (aka this bug) notwithstanding, the
fact that ccache reorders some command-line flags (including -Werror) in ways
that affect the compiler's execution is an acknowledged bug[1] in ccache,
hopefully slated to be addressed in the next release.
[1]: github.com/ccache/ccache/issues/738
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-28 0:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-87161-4@http.gcc.gnu.org/bugzilla/>
2020-03-13 13:37 ` [Bug driver/87161] if -Werror appear after -Wmissing-prototypes the warning is not turn into error simon.marchi at polymtl dot ca
2024-02-28 0:32 ` [Bug middle-end/87161] " ferdnyc at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).