Table of Contents
This section documents Sourcery G++ Lite changes for each released revision.
C++ constructor bug fix. A compiler bug has been fixed that caused incorrect code for C++ constructors for some class hierarchies that use virtual inheritance and include empty classes. At runtime, the incorrect constructors resulted in memory corruption or other errors.
EGLIBC version 2.13.
Sourcery G++ Lite for Power GNU/Linux now includes EGLIBC version 2.13
library which is based on GNU C Library version 2.13.
For more information about changes, see
http://www.eglibc.org/news#eglibc_2_13.
GCC fixes for -fstrict-volatile-bitfields.
GCC now honors -fstrict-volatile-bitfields
when a bitfield is not declared volatile initially, but an
object including bit fields is cast to volatile.
Also, a bug was fixed that caused incorrect code to be generated
for some stores to volatile bit fields when
-fstrict-volatile-bitfields is enabled.
Compiler optimization improvements. The compiler has been enhanced with a number of optimization improvements, including:
GCC version 4.5.2. Sourcery G++ Lite for Power GNU/Linux is now based on GCC version 4.5.2.
GCC code generation bug for casts to volatile
types.
A compiler bug has been fixed that sometimes caused incorrect code
for references to pointers to types with volatile casts.
Incorrect optimization fix. An optimizer bug that in rare cases caused incorrect code to be generated for complex AND and OR expressions containing redundant subexpressions has been fixed.
Incorrect C++ warning fixed. A bug in GCC has been fixed that caused spurious warnings about lambda expressions in C++ code that does not use them.
Array alignment for Altivec.
When compiling for Altivec (-maltivec option),
stack-allocated arrays arrays 16 bytes or larger are
now aligned to at least 16 bytes. This improves performance
as Altivec instructions can be used to access them.
GCC bug where accesses to volatile structure fields are optimized away. A bug has been fixed where accesses to volatile fields of a structure were sometimes incorrectly optimized away if the structure instance was defined as non-volatile.
popen bug fix.
GLIBC's popen function no longer causes a
deadlock situation when invoked from more than one thread.
strstr and
strcasestr bug fixes.
A problem has been fixed that caused GLIBC's
strstr and strcasestr
functions to return wrong results on certain inputs.
Linux kernel headers update. Linux kernel header files have been updated to version 2.6.38.
Improved GDB startup times when debugging remote targets . GDB has been enhanced to reduce the startup times when working with remote targets via GDBServer, especially when the target uses a large number of shared libraries.
Code generation improvements. The compiler now generates better code for masks combined with a comparison against zero in certain cases. Additionally, it now uses conditional moves rather than branches in more situations.
New -fstrict-volatile-bitfields option.
The compiler has a new
option, -fstrict-volatile-bitfields, which
forces access to a volatile structure member using the width
that conforms to its type.
Refer to the GCC manual for details.
New __builtin_isel functions.
GCC now supports a family
of __builtin_isel builtin functions,
which expand inline into isel instructions.
These new builtins are only supported on processors that
support the isel instruction. For more
information, please see the GCC manual.
Floating-point code generation fix for e500. An optimizer bug that sometimes caused GCC to generate incorrect code for floating-point arithmetic on e500 processors has been fixed.
Linker debug information fix.
A bug in linker processing of debug information has been
fixed. The bug sometimes prevented the Sourcery G++ debugger from
displaying source code if the executable was linked
with the --gc-sections option.
Optimized square root functions.
The performance of the functions sqrt
and sqrtf has been improved for the
following runtime libraries:
GDB crash fix for e5500 binaries.
A bug has been fixed that caused GDB to crash or to
print Architecture of file not recognized
when processing some e5500 binaries. The bug also affected
debugging binaries for other non-e500 processors.
GDB support for e5500.
GDB now recognizes powerpc:e5500 as a valid
argument to the set architecture command.
Changes to Sourcery G++ version numbering. Sourcery G++ product and Lite toolchains now uniformly use a version numbering scheme of the form 2011.03-38. The major and minor parts of the version number, in this case 2011.03, identify the release branch, while the final component is a build number within the branch. There are also new preprocessor macros defined by the compiler for the version number components so that you may conditionalize code for Sourcery G++ or particular Sourcery G++ versions. Details are available in the Sourcery G++ Knowledge Base.
GCC fix for reference to undefined label. A bug in the optimizer that caused GCC to emit references to undefined labels has been fixed.
Alignment attributes. A bug has been fixed that caused the compiler to ignore alignment attributes of C++ static member variables where the attribute was present on the definition, but not the declaration.
Compiler optimization improvements. The compiler has been enhanced with a number of optimization improvements, including:
GCC version 4.5.1.
Sourcery G++ Lite for Power GNU/Linux is now based on GCC version 4.5.1.
For more information about changes from GCC version 4.4 that was
included in previous releases, see
http://gcc.gnu.org/gcc-4.5/changes.html.
C++ locale support. The C++ standard library now includes locale support.
Archiver bug fix.
A bug has been fixed in the ar utility,
which sometimes caused it to produce unrecognizable 64-bit
files. The bug also caused similar problems in the
strip and objcopy
utilities when processing 64-bit archives.
Smaller C++ programs with -g.
An assembler bug has been fixed that caused unnecessary references
to exception-handling routines from C++ programs when debug
information is enabled. For programs that do not otherwise
use exceptions, this change results in smaller code size.
Additional validation in the assembler.
The assembler now diagnoses an error, instead of producing
an invalid object file, when directives such as
.hidden are missing operands.
The assembler now also issues errors about uses
of lswi, lswx,
stswi, and stswx on
architectures where they are not supported.
powerpc-linux-gnu-objcopy bug fix.
A bug has been fixed that caused
powerpc-linux-gnu-objcopy to enter an infinite
loop when processing object files in non-ELF formats. The bug
also affected powerpc-linux-gnu-objdump.
Binutils update. The binutils package has been updated to version 2.20.51.20100809 from the FSF trunk. This update includes numerous bug fixes.
More efficient process creation functions.
The system and
popen functions provided by GLIBC have
been improved to require less memory when memory overcommit
is disabled in the Linux kernel.
Library support for e5500 processors.
The included 64-bit libraries (970 - GLIBC, Hard-Float,
64-bit) now support the Freescale e5500 and other processors
that do not implement the fsqrt
and fsqrts instructions.
Optimized string and memory functions.
The performance of GLIBC's string and memory functions, including
strstr and memmem,
have been significantly improved for large inputs.
E500 math functions bug fix.
A bug that caused programs using
the atan2, log,
log10, atan,
or scalbn functions to crash has been
fixed.
Linux kernel headers update. Linux kernel header files have been updated to version 2.6.35.2.
GDB update.
The included version of GDB has been updated to
7.2.50.20100908. This update adds numerous bug fixes and
new features, including improved C++ language support,
a new command to save breakpoints to a file,
a new
convenience variable $_thread that holds
the number of the current thread, among many other
improvements.
GDB crash fix.
A bug has been fixed that caused GDB to crash on launch if
the environment variable CYGPATH is set
to a program that does not exist or cannot be executed.