You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to create and use a precompiled header
mips-...g++ -c -x c++-header -o test.gch test.h
mips-...g++ -o prog -Winvalid-pch -include test test.c
I get:
cc1plus: warning: test.gch: had text segment at different address
So it appears that something Bionic/GCC7.3 is doing to gcc causes gcc 5.4.0 PCH to break completely. PCH works fine on GCC 7.3 on the host, so it's likely something that was fixed upstream, but I'm having difficulty finding the fix in gcc's git history.
The text was updated successfully, but these errors were encountered:
sqrammi:
To reproduce:
#define test 1
void main() { return; }
mips-...g++ -c -x c++-header -o test.gch test.h
mips-...g++ -o prog -Winvalid-pch -include test test.c
I get:
cc1plus: warning: test.gch: had text segment at different address
So it appears that something Bionic/GCC7.3 is doing to gcc causes gcc 5.4.0 PCH to break completely. PCH works fine on GCC 7.3 on the host, so it's likely something that was fixed upstream, but I'm having difficulty finding the fix in gcc's git history.
The text was updated successfully, but these errors were encountered: