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
2
votes
1 answer

Workaround for GCC 4.9 constexpr bug

I have the following piece of code which represents an actual bigger piece of code: #include using namespace std; template class A { public: static constexpr size_t getN() {return N;} }; template class B…
Javi
  • 3,440
  • 5
  • 29
  • 43
2
votes
1 answer

Boost 1.57 filesystem/system linker error with gcc 4.9.2

I am building an api library and use it as shared for the unittest project. The api is doing some calls the following way #include void LoadResources(const std::string& dataPath) { boost::filesystem::path path(dataPath); …
kittikun
  • 1,829
  • 1
  • 25
  • 33
2
votes
2 answers

Why can't I inherit the constructors of a virtual base?

I'm trying to compile the following simple code using g++ 4.9.0: struct A { explicit A(int x) { } }; struct B : public virtual A { using A::A; }; int main(int argc, char** argv) { B b(0); return 0; } But I get the following…
orlp
  • 112,504
  • 36
  • 218
  • 315
2
votes
1 answer

OpenCV: Why SIFT and SURF detectors crashes?

Why do the SIFT and SURF detectors crash? using namespace std; using namespace cv; int main(int argc, char *argv[]) { Mat image = imread("TestImage.jpg"); // Create smart pointer for SIFT feature detector. Ptr
thedarkside ofthemoon
  • 2,251
  • 6
  • 31
  • 48
2
votes
2 answers

What part of regex is supported by GCC 4.9?

I don't get this. GCC is supposed to support but accoriding to their http://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.tr1 Status page "7 Regular Expressions are not supported". But then at "28 Regular expressions" - they are…
Zingam
  • 4,498
  • 6
  • 28
  • 48
2
votes
2 answers

error: no match for 'operator<<' using boost::serialisation

I am trying to get some (hitherto) windows code to compile on a unix machine but am getting some errors at the following method: namespace EDIN { void World::Save(char const filename[]) { …
quant
  • 21,507
  • 32
  • 115
  • 211
1
vote
0 answers

Wno-pointer-arith flag handled differently between different gcc versions

I'm cross compiling a project for various architectures and OS. Two of them are Android with arm-linux-androideabi-4.9 and Raspbian with arm-linux-gnueabihf-gcc(4.8.3). My code has a dependency on the Ne10 project which does some arithmetic on void…
Damien
  • 164
  • 11
1
vote
1 answer

Portability of sigaction and sigset_t between Solaris and Linux

I have some legacy code on Solaris platform and I would like to port that to Linux, but I am getting some compilation error on Linux. On Solaris, I have the following code snippet: #include ... void f() { struct sigaction a; …
Dr. Debasish Jana
  • 6,980
  • 4
  • 30
  • 69
1
vote
2 answers

C code that uses blas, lapack and openmp working with gcc 4.9 but gives run time error with gcc 6

I have written a code in C. You can find the source code here. It makes use of the libraries blas, lapack and openmp. I have compiled the blas and lapack libraries following these instrucions. I use these flags to tell the compiler the libraries…
Rob
  • 1,080
  • 2
  • 10
  • 24
1
vote
1 answer

Runtime error [abi:cxx11] when compile with g++-4.9 on Ubuntu 15.10

I recently updated Ubuntu from 15.04 to 15.10. One of the major differences between these versions is the update of the default gcc version from gcc-4.9 -> gcc-5. The library I'm developing has been written and compiled for gcc-4.9, and relies on…
Dreyrden
  • 11
  • 1
  • 2
1
vote
2 answers

How to work with regular expressions in c++ with gcc 4.8 and without C++11 flag?

I recently found out that regex support in gcc 4.8 is incomplete, and it was truly implemented in gcc 4.9 (see Is gcc 4.8 or earlier buggy about regular expressions?). So, wanting to work with regex in my c++ program, I updated my gcc to 4.9…
jotadepicas
  • 2,389
  • 2
  • 26
  • 48
1
vote
0 answers

Understanding linker logic - hidden symbol

I'm trying to understand an error that I'm seeing on GCC 4.9.2 (on ubuntu) at link time. The specific scenario is compiling a new version of GDAL with pdfium support. pdfium is built as a static library. The pdfium build works, but a link time error…
BradHards
  • 650
  • 9
  • 27
1
vote
1 answer

va_arg on ARM Cortex-M4, uint64_t and GCC 4.9

I have the following piece of code: __attribute__((aligned(0x1000))) static void doVariadic(const uint32_t fmt, ...); __attribute__((aligned(0x1000))) va_list ap; __attribute__((aligned(0x1000))) uint32_t value1 =…
1
vote
1 answer

gcc 4.9.2 build error on RHEL6

I'm trying to build gcc 4.9.2 on RHEL6, as follows: unpack the source tarball (to ~/gcc-4.9.2) in the source dir: ./contrib/download_prerequisites create a separate build directory ~/gcc-4.9.2-build in the build dir: ~/gcc-4.9.2/configure…
Underhill
  • 408
  • 2
  • 13
1
vote
1 answer

OpenMP not available on mac with gcc 4.9

The OpenMP website says: "GCC 4.9 supports OpenMP 4.0 for C/C++". I'm using gcc 4.9.1 from brew, yet I see this error when I try to compile liblinear: omp.h file not found. Specifically: Compiling liblinear version 1.93 Source code page: …
Rose Perrone
  • 61,572
  • 58
  • 208
  • 243