public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58138] New: #include <random> gives warning: macro "__code_model_small__" is not used
@ 2013-08-12 16:24 sbergman at redhat dot com
2015-04-09 14:52 ` [Bug libstdc++/58138] " redi at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: sbergman at redhat dot com @ 2013-08-12 16:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58138
Bug ID: 58138
Summary: #include <random> gives warning: macro
"__code_model_small__" is not used
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: sbergman at redhat dot com
At least with a trunk revision 201654 (aka LATEST-4.9) build (on Fedora 18
x86_64):
> $ cat test1.cc
> #include <random>
> namespace {}
> $ ~/gcc/LATEST-4.9/inst/bin/g++ -std=gnu++11 -Wunused-macros -c test1.cc
> test1.cc:2:12: warning: macro "__code_model_small__" is not used [-Wunused-macros]
> namespace {}
> ^
I was able to strip that down to the following excerpt of
~/gcc/LATEST-4.9/inst/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/include/ia32intrin.h:
> $ cat test2.cc
> #include "test2.h"
> namespace {}
> $ cat test2.h
> #pragma GCC system_header
> #pragma GCC push_options
> #pragma GCC target("sse4.2")
> #pragma GCC pop_options
> $ ~/gcc/LATEST-4.9/inst/bin/g++ -Wunused-macros -c test2.cc test2.cc:2:12: warning: macro "__code_model_small__" is not used [-Wunused-macros]
> namespace {}
> ^
With a build of tags/gcc_4_8_1_release, compiling test1.cc does not give a
warning while test2.cc does. And with a random old build of
branches/gcc-4_6-branch, compiling neither test1.cc nor test2.cc gives a
warning (replacing -std=gnu++11 with -std=gnu++0x when compiling test1.cc).
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug libstdc++/58138] #include <random> gives warning: macro "__code_model_small__" is not used
2013-08-12 16:24 [Bug c++/58138] New: #include <random> gives warning: macro "__code_model_small__" is not used sbergman at redhat dot com
@ 2015-04-09 14:52 ` redi at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: redi at gcc dot gnu.org @ 2015-04-09 14:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58138
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I can't reproduce this, and the reduced testcase doesn't even use any libstdc++
headers, so not a libstdc++ problem.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-04-09 14:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-12 16:24 [Bug c++/58138] New: #include <random> gives warning: macro "__code_model_small__" is not used sbergman at redhat dot com
2015-04-09 14:52 ` [Bug libstdc++/58138] " redi at gcc dot gnu.org
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).