gcc dot gnu.org
Reporter: mail at 3v1n0 dot net
Target Milestone: ---
Use something like this:
// Test case, wrongexport.cpp
// g++ -shared -fPIC -o /tmp/libwrong.so wrongexport.cpp -fvisibility=hidden
// nm -DC /tmp/libwrong.so | grep Astruct # misses AStruct in gcc!!!
#define
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94554
Marco Trevisan changed:
What|Removed |Added
CC||mail at 3v1n0 dot net
--- Comment #5
: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mail at 3v1n0 dot net
Target Milestone: ---
Unfortunately I've not a minimal test case for this, but in gjs we can't use
pre-compiled headers with g++ (while they work fine with clang++).
In particular, we get
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462
--- Comment #1 from Marco Trevisan ---
Some verbose logging:
unstable /data/GNOME/gjs
❯ echo $PWD
/data/GNOME/gjs
unstable /data/GNOME/gjs
❯ ls _build/libgjs.so.0.0.0.p -lht
total 119M
-rw-rw-r-- 1 m
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462
--- Comment #3 from Marco Trevisan ---
Created attachment 50775
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50775&action=edit
strace.log
This is crazy, as even according to strace the file isn't there...
But it is and it's valid.
❯ ls
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462
--- Comment #4 from Marco Trevisan ---
(In reply to Marco Trevisan from comment #3)
> Created attachment 50775 [details]
> strace.log
>
> This is crazy, as even according to strace the file isn't there...
>
> But it is and it's valid.
> ❯ ls -
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462
--- Comment #6 from Marco Trevisan ---
(In reply to Jakub Jelinek from comment #5)
> As documented - see
> https://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html - PCH is only
> tried if no C token is seen before the #include directive (com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462
--- Comment #7 from Marco Trevisan ---
(In reply to Marco Trevisan from comment #6)
> # Works
> g++ -I _build main.c -o main -include string -include gjs_pch.h
Ouch, I forgot to delete an include after pasting
# Works
g++ -I _build main.c -o
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462
--- Comment #8 from Marco Trevisan ---
It's also relevant to say that just using
main.c:
#include "gjs_pch.h"
int main(int argc, char**argv)
{
std::string s = "Hi";
return 0;
}
fails with:
❯ g++ -I _build main.c -o main -include string
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462
Marco Trevisan changed:
What|Removed |Added
Status|RESOLVED|UNCONFIRMED
Resolution|INVALID
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462
--- Comment #12 from Marco Trevisan ---
Well, I see...
At least the error should be a bit clearer though.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93821
Marco Trevisan changed:
What|Removed |Added
CC||mail at 3v1n0 dot net
--- Comment #8
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93821
--- Comment #10 from Marco Trevisan ---
I see the point, but then I also think that gcc-10 should not support
`--std=c++20` option but rather only the `--std=c++2a` one.
13 matches
Mail list logo