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
1
vote
2 answers

basic_ifstream<...>::read() doesn't read anything

The program built from this code: #include using std::basic_ifstream; #include using std::streamsize; #include using ZenLib::int8u; int main() { #define charT int8u #define T basic_ifstream T ifs…
1
vote
1 answer

mac osx 10.8.5, gcc4.9 compilation issues for AVX support

my systems is mac osx 10.8.5. The default gcc on this machine is 4.2 (i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)) i have installed gcc 4.9 on /usr/local. I have a code that uses AVX2…
gayathri
  • 15
  • 1
  • 5
1
vote
0 answers

GCC 4.9.1 Unable to find a usable ISL

Trying to configure /build gcc 4.9.1 from source on CentOS6.5 (x86_64) The ./configure looks like: mkdir ../gcc-build && cd ../gcc-build && ../gcc-4.9.1/configure LDFLAGS="-L/usr/local/lib, -L/usr/local/lib/cloog.isl,…
Jetsdad51
  • 11
  • 3
1
vote
1 answer

GCC -I breaks standard library compilation

Note: This question sorted itself out while I was writing it. I had trouble finding information on this problem, so I feel it would be useful to post it anyway. Advice welcome. Hello everyone. I've recently installed GCC 4.9.1 on my Linux Mint,…
Quentin
  • 62,093
  • 7
  • 131
  • 191
1
vote
1 answer

Run CMake with a different compiler than the system default

I am trying to build something that requires CMake, however when I try: cmake -DBUILD_EXAMPLES=YES -DBUILD_TESTS=YES I get the error: Your systems default compiler is GCC. This project makes use of c++11 features present only in versions of gcc >=…
Pottsiex5
  • 487
  • 2
  • 6
  • 19
1
vote
1 answer

When linking against poco, get RegularExpression error

I have tried building poco (poco-1.4.6p4) in several ways, all seem to build fine. However, when linking against it, all the different ways I have tried to build poco give error below. No matter what I choose, it appears that poco is being built…
Ivan
  • 7,448
  • 14
  • 69
  • 134
1
vote
1 answer

opencv compile with clang ok, with gcc not ok os x 10.9

I am on OS X 10.9, with opencv-2.4.8.2 installed. I am trying to compile a simple code: #include #include using namespace cv; int main(int argc, char** argv ) { if ( argc != 2 ) { printf("usage:…
Euge
  • 109
  • 1
  • 8
1
vote
1 answer

Upgrading from GCC 4.8.2 to GCC 4.9.0 without a complete rebuild

I installed the GCC 4.8.2 a couple of weeks ago. The installation process went well and I have GCC 4.8.2 at my Ubuntu system (12.04 64 bits). Now GNU just released the newer version 4.9.0. My question is: Is there any way to upgrade my GCC to 4.9.0…
1
vote
0 answers

"manual" cross-compilation from Linux/x86-64 to Android/ARM?

(Perhaps a border-line question on S.O since I am not showing any source code!) I want to be able to cross-compile (using the latest GCC trunk, i.e. 4.9) a hello world program in C, compiled on Linux/Debian/Sid/x86-64 for Android (4.4.2 on a rooted…
Basile Starynkevitch
  • 223,805
  • 18
  • 296
  • 547
1
vote
0 answers

Building gcc for msp430-elf target

I'm trying to build gcc-4.9 for msp430. I've already built the most recent version of binutils and have tried building gcc-4.9 with the basic configuration: configure --target=msp430-elf --enable-languages=c,c++ --with-newlib=yes The problem though…
en4bz
  • 1,092
  • 14
  • 18
1
vote
1 answer

gcc 4.9 internal compiler error on recursive lambda return

I have a small snippet of code that compiles fine in clang repo head (3.5) but not in gcc 4.9 repo head. Although this looks like a gcc bug, before spamming the bugzilla I'd wanted to ask you if this is valid c++1y code (in the current draft state)…
Richard Vock
  • 1,286
  • 10
  • 23
0
votes
1 answer

How to cleanly install gcc-4.9 and g++-4.9 to Ubuntu 18.04 Bionic Beaver?

I couldn't find them even after adding ppa:ubuntu-toolchain-r/test repository to apt. I'd like to use package manager.
Janne
  • 105
  • 1
  • 5
0
votes
0 answers

'std::exception' error when cross-compile OpenCV 4

When cross-comipile the OpenCV 4.0.1 got Error: /home/atmark/opencv-4.0.1/modules/core/src/parallel.cpp:267:14: error: ‘exception_ptr’ in namespace ‘std’ does not name a type std::exception_ptr pException; But I already enabled…
JustWe
  • 4,250
  • 3
  • 39
  • 90
0
votes
1 answer

gcc49 on Fedora 27: /usr/bin/ld: cannot find -lgcc_s

I am using the davidva/gcc49 copr, on Fedora 27. When I try to compile after running source /usr/bin/gcc49 as the copr webpage describes, I get this error: /usr/bin/ld: cannot find -lgcc_s After learning about how the flag -l works for gcc, I…
bgStack15
  • 180
  • 3
  • 11
0
votes
1 answer

Can't compile with gcc-4.9

I eventually want to use valgrind to find what is causing the occasional bizarre output in a C program which refines a model against experimental data using OpenMP parallel programming. To avoid the use of the nominal gcc (ie clang) compiler, I used…