Questions tagged [gcc8]

GCC 8 is a major release of the GNU Compiler collection first released in 2018.

Version 8.1 was released on 2018-05-02. Version 8.4 was released on 2020-03-04.

See also:

58 questions
0
votes
0 answers

std::string allocator compile error when migrating app from gcc4.9.3 to gcc8.3.0

I'm getting the following error when compiling my app with gcc 8.3.0 In file included from /usr/include/x86_64-linux-gnu/c++/8/bits/c++allocator.h:33, from /usr/include/c++/8/bits/allocator.h:46, from…
user2635088
  • 1,598
  • 1
  • 24
  • 43
0
votes
0 answers

-Wclass-memaccess warning with boost::endian and gcc

I'm getting a -Wclass-memaccess with gcc >= 8 and I would like to know if I can safely ignore the warning. Test case: #include #include int main() { …
jcm
  • 947
  • 7
  • 16
0
votes
0 answers

Can I install GCC 4.4.4 on Fedora 29 or downgrade my Fedora version?

I have a piece of code that is currently compiling on Fedora 13 (I have it on a VM). I created a new VM using Fedora 29. The issue is that F29 has GCC v8.1 whereas the F13 has GCC v4.4.4 because of which the code is not compiling on F29. I found…
Yash Kapoor
  • 93
  • 2
  • 12
0
votes
2 answers

How to estimate usage of library functions

I'm trying to calculate maximum stack usage of an embedded program using static analysis. I've used the compiler flag -fstack-usage to get the maximum stack usage for each function and the flag -fdump-rtl-expand to generate a graph of all function…
Piotr Siupa
  • 3,929
  • 2
  • 29
  • 65
0
votes
0 answers

Match identifiers from files generated by g++ with options -fstack-usage and -fdump-rtl-expand

Introduction I am trying to make static evaluation of maximum possible stack usage in an embedded program. I've managed to get stack usage of each individual function by using GCC option -fstack-usage and I've built tree of all function calls by…
Piotr Siupa
  • 3,929
  • 2
  • 29
  • 65
0
votes
0 answers

gcc-8 -Wstringop-truncation - inconsistent behavior?

I'm compiling some C code (will provide link if really necessary) using GCC 8.2.0 on Linux, and using GCC 8.1.0 on Cygwin (the latter is an automated CI build). On Linux, everything passes fine. On Cygwin, I get - among others - the following…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
0
votes
2 answers

How can I work around this parameter expansion bug in GCC without upgrading to 8.x?

Consider the following code: #include #include #include #include #include template void foo() { std::cout << N << "(" << ") "; } template<> void foo<2>() { std::cout << "TWO (" << ")…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
0
votes
0 answers

R not recognizing my alternative GCC compiler after config updates?

I followed these instructions to get R to use an alternative GCC compiler I have installed on my MacOS. Building R Packages using Alternate GCC As basic internet research will tell you (as it told me), the default compiler on the MacOS is clang /…
lrthistlethwaite
  • 494
  • 2
  • 6
  • 23
0
votes
1 answer

Intel TBB in Ubuntu 16.04 gcc8: std::uncaught_exception()’ is deprecated

I would like to properly install and configure the latest stable release of Intel TBB in my Ubuntu 16.04 Server Edition with gcc version 8.1.0 (Ubuntu 8.1.0-5ubuntu1~16.04). I downloaded the latest stable release of TBB for linux :…
user2315094
  • 759
  • 3
  • 16
  • 29
-1
votes
1 answer

How to get the structure field data type in the GCC compiler source code and modify it?

If I have such a structure: struct test{ float c, f, ops; }; How can I modify the GCC compiler source code to make it as follows: struct test{ double c, f, ops; }; I now have such a requirement, I need to…
zhugl
  • 1
  • 2
-2
votes
1 answer

GCC 8.3 can't compile std::bind_front

is that possible that g++ somehow compile my program with older standard than I specified? I compile with: g++ -Wall -Wextra -pedantic -O3 -std=c++2a -fconcepts And compiler can't recognize bind_front function ( I included ). Compiler…
ziyiyituxe
  • 177
  • 1
  • 9
-3
votes
1 answer

Difference between gcc5 and gcc8 with respect to return values of a function

I have two tools: gcc5 and gcc8. Following is the snippet code bool foo() { int var; var = 1; printf("var=%d\n", var); } int calling_foo() { foo(); } If I compile and run w/ gcc5, foo() call returns. But, if I compile and run w/ gcc8,…
Suresh
  • 27
  • 1
  • 8
-5
votes
1 answer

How to prevent Socket server to disconnect

I wrote a code about sockets and I cannot prevent the server to close when the client sends a message or when the client do a CTRL + C The server goes off. Server.c: #include #include #include #include…
Michi
  • 5,175
  • 7
  • 33
  • 58
1 2 3
4