Questions tagged [gcc4.9]

Version 4.9 of GCC (GNU Compiler Collection). GCC 4.9.0 is a major release containing substantial new functionality not available in GCC 4.8.x or previous GCC releases.

GCC 4.9.0 is a major release containing substantial new functionality not available in GCC 4.8.x or previous GCC releases. Version 4.9.0 was released on 2014-04-22. Version 4.9.4 was released on 2016-08-03.

The Local Register Allocator, introduced in GCC 4.8.0 for ia32 and x86-64 targets only, is now used also on the Aarch64, ARM, S/390 and ARC targets by default and on PowerPC and RX targets optionally.

There have been substantial improvements to C++ devirtualization and various scalability bottlenecks in the interprocedural optimizations and LTO have been fixed.

Support for various C++14 additions have been added to the C++ Front End, on the standard C++ library side the most important addition is support for the C++11 <regex>.

GCC 4.9.0 supports the OpenMP 4.0 standard for C and C++, and a partial implementation of the Cilk Plus extension for data and task parallelism.

Various kinds of undefined behaviors in programs can be now diagnosed at runtime through Undefined Behavior Sanitizer.

Support for the new little-endian powerpc64le-linux platform has been added, which defaults to the new PowerPC ELFV2 ABI. On x86-64 and ia32, support for the AVX-512 instruction set has been implemented.

See also:

118 questions
0
votes
1 answer

gcc-4.8 (and 4.9) not recognizing -std=c++11 parameter

I am trying to compile a code example I downloaded for a web server (https://github.com/eidheim/Simple-Web-Server) with gcc-4.9 and I get an error I can't resolve: src$ make Makefile:45: http_examples.d: No such file or directory /usr/bin/gcc-4.9…
user3096277
  • 107
  • 8
0
votes
2 answers

Unable to install GCC-4.9.0

I am trying to install gcc-4.9.0 locally. I gave the following command for configuring the install LD_LIBRARY_PATH=/home/user/gmp-6.0.0/lib:/home/user/mpfr-3.1.2/lib:/home/user/mpc- 1.0.2/lib ./configure --prefix=/home/user/gcc-4.9.0-latest…
ab_11
  • 83
  • 1
  • 8
0
votes
1 answer

What does "__G" signify?

What does __G signify in C? I'm using GCC 4.9. I'm using latest MinGW version. I'm compiling with -std=gnu11. I have the following C (being compiled with GCC as C11) code: #ifndef __G #define __G 0 #endif It compiles fine. But now, while compiling…
user3525723
  • 313
  • 1
  • 8
0
votes
1 answer

Fixing libc.so.6 unexpected reloc type 0x25

I'm trying to install gcc4.9 on a SUSE system without an internet connection. I compiled gcc on an Ubuntu machine and installed it into a prefix, then copied the prefix folder to the SUSE machine. When I tried to run it gcc complained about not…
chew socks
  • 1,406
  • 2
  • 17
  • 37
0
votes
1 answer

what happens if you do make clean in the gcc 4.9 configure directory

i just installed gcc4.9 in my home/myname/gcc-4.9 directory, I did the following: 1. cd /home/myname/gcc-source (where i have to run the config script) 2. ./configure --prefix=/home/myname/gcc-4.9 (and flags) 3. make && make install 4. now all…
pugs
  • 155
  • 1
  • 8
0
votes
1 answer

GCC-4.9 Fails to Make Ruby 2.1.1 with Rbenv in OS X 10.9.2

I'm out of my depth here as I don't know jack about C and such compilers, except that as per tut's I've read - I've homebrew installed gcc-4.9, linked it, and in my .bash_profile have cc=gcc-4.9 - hoping this would allow me to install Ruby 2.1.1, as…
user3591456
  • 61
  • 1
  • 3
0
votes
1 answer

Why does gcc4.9 not display warning message -std=c++1y while using C++14 feature?

I installed gcc4.9 using the steps mentioned in the SO post here. I was using the latest feature std::exchange() utility function which is introduced in C++14. #include #include int main() { std::list lin{5,6,7,8,9}; auto…
Mantosh Kumar
  • 5,659
  • 3
  • 24
  • 48
0
votes
1 answer

How do I do I run gcc-49 with just 'gcc' on OSX?

I recently installed gcc 4.9, with a previous version of gcc that was installed by default before. When I type gcc, the previous version of gcc runs. How could I make my newly installed gcc 4.9 run when I type gcc?
PuffySparrow
  • 897
  • 3
  • 10
  • 23
0
votes
1 answer

gcc 4.9 error on #define

The following line # define always_inline __attribute__((always_inline)) is included (from another included file) and complained about by gcc 4.9: inc/compiler.h:98:40: error: '__always_inline__' was not declared in this scope # define…
Walter
  • 44,150
  • 20
  • 113
  • 196
-1
votes
2 answers

implicit return value in C with no explicit return in a function that should return non-void

I have some legacy C code that I compiled with gcc version 4.9.2 on Linux with return-type warning on [-Wreturn-type]. I have a function as below: int somefn() { // .. do something .. // no explicit return statement } and the caller had the…
Dr. Debasish Jana
  • 6,980
  • 4
  • 30
  • 69
-1
votes
2 answers

Mysterious "value computed is not used" warnings on __atomic_exchange_n

I developed a reentrant function based on the atomic builtins of the gcc. Unfortunately, I get mysterious warnings about "computed but not used" values: $ gcc -c -Wall ss.c ss.c: In function ‘ss_wrapper’: ss.c:87:3: warning: value computed is not…
peterh
  • 11,875
  • 18
  • 85
  • 108
-1
votes
2 answers

Never-ending quicksort

I tried to implement a quicksort on arrays of int64_t like this: void quicksort (int64_t *array,size_t size) { int64_t *split; size_t i=0; size_t j=size-1; if (size>1) { split=({ int64_t p=array[0]; do { …
Erkin Alp Güney
  • 218
  • 6
  • 15
-3
votes
1 answer

Declaring String variable in C++

I use Dev-C++ which has GCC 4.9.2 C++ compiler. I am confused on where and where not to use the following for declaring a string variable: #include only #include only using std::string only and no headers #include…
1 2 3 4 5 6 7
8