软件大小:71.8 MB 软件性质: 免费软件
更新时间:2013-10-15 09:52:10 应用平台:Win9X/Win2000/WinXP
下载次数:3648 下载来源:manbetx手机版
软件语言:英文 软件类别:ARM开发工具 > RVDS 开发工具
RVCT 4.0 Web Patch #5 Build 697 Release Notes


This RealView Compilation Tools (RVCT) 4.0 Web Patch #5 Build 697 is intended
for use with RealView Development Suite (RVDS) 4.0 products. It can be used to
update any RVDS 4.0 Standard, Professional or Evaluation installation, whether
previously patched or an original installation. It is NOT compatible with other
releases of RVCT/RVDS or Keil MDK products.

This patch consists of updated RVCT/RVDS 4.0 compiler, linker, assembler,
fromelf, and armar Program executables; updated Include files and updated C/C++

New Enhancements in this Release - Key Features

[Changes made to improve compatibility with other toolchains]

* Modifications have been made to the GCC command line translation feature to
improve compatibility. In particular, when using GCC command line translation
the default optimization level is now set at -O0, and not the normal armcc
default of -O2. [727559]

* The compiler now defines the __builtin_bswap32 and __builtin_bswap64
intrinsics for compatibility with GCC. These reverse the bytes in a 32-bit and
64-bit word respectively. [714828]

* The compiler now warns with diagnostic #29-D if the expression in an #elif
directive is missing, even if the #elif would not normally be evaluated because
of a previous successful #if or #elif. This warning is not output when emulating
versions of GCC earlier than 4.4 (note that the default in GCC emulation mode is
to emulate GCC 4.2). [728705]

* When linking with --sysv (as implied by --arm_linux) the linker will set the
sh_link field of the .ARM.exidx Section to the index of the .text section. This
improves interoperability with objcopy. [723436]

* In GNU mode, a reference to C::C in an expression context, where C is a class
name, is now treated as a call to the constructor. This more closely reflects
GCC behaviour. [726327]

* The --gnu_defaults option now also sets --no_implicit_include by default.

[Improvements to math libraries]

* The handling of error cases in the maths library (mathlib) has historically
been implemented by RVCT in a way that is inconsistent with Annex F of the C99
standard. C99-compliant error handling is now supported as an alternative,
although the historical RVCT behaviour is still used by default. The C99
behaviour can be enabled by importing the symbol __use_c99_matherr in your
program. Specifically affected functions are atan2, atanh, hypot, lgamma, log,
log10, log2, log1p, pow, tgamma and their single-precision counterparts.

[General Enhancements]

* Cortex-A5 is now listed as a compiler supported CPU. [726103]

* The linker can now remove unused sections when building DLLs and shared
libraries. [720889]

* Diagnostics for deprecated registers in instructions are only emitted by the
Assembler when assembling for a CPU with 32-bit Thumb instructions. To enable
these on other architectures use the option --diag_warning=1745,1786,1788,1789.

* To track a change in the ARM Architecture Reference Manual, the assembler
allows the '#' character seen prior to immediate operands to be omitted. Warning
A1865W is emitted when this syntax is used to allow detection of source code
that may not assemble with other (or older) assemblers. [365430]

* The new assembler option --[no_]execstack option can be used to build a
.note.GNU-stack section describing whether the code requires an executable
stack. [725813]

* The compiler now ignores a 3-byte byte order mark (BOM) at the start of source
files. [725395]

* Since RVCT 3.0 the compiler has implemented the resolution to C++ Core Issue
#446 which requires use of a temporary to hold the result of a conditional
expression whose result is a class rvalue. Because this can (in rare cases)
change the behaviour of programs, it is now possible to diagnose cases where
such a temporary is introduced, by use of a new remark #2816. This can be
enabled with --remarks or --diag_warning=2816. [726389]

* New compiler options have been added to specify the directory for output
files. --output_dir specifies the output directory generally, including for .o
files. The directory for assembler output can be specified with --asm_dir, for
dependency output with --depend_dir, and for --list output with --list_dir. If
these options are not used the corresponding output is put in the directory
specified by --output_dir, or if that is not specified, in the default location
(e.g. the current directory). [724352]

* It is now possible to produce makefile dependencies and preprocessed source
output in a single step, using the combination --md -E (or --md -P to suppress
line number generation). [606117]

* It is now possible to take source code from the standard input stream in
combination with other files, when performing a link step. For example, the
following are now permitted:
  armcc -o output.axf - object.o mylibrary.a
  armcc -o output.axf --c90 source.c -
The behaviour of "armcc -o test.axf -" is also changed to be consistent with the
above, such that this will compile the source provided on standard input and
link this into test.axf. Combining standard input with other source files when
not linking is still not permitted, and this will still produce error C3078E.

* The linker has a new option --[no_]import_unresolved. The default is
--import_unresolved. When linking a shared object with --sysv --shared,
unresolved symbols are normally imported rather than causing an error to be
generated. When --no_import_unresolved is specified, unresolved references from
object files explicitly listed on the linker command line will cause an
undefined symbol error rather than being imported. [727609]

* A new linker option --no_eager_load_debug has been added, which instructs the
linker not to retain debug section data in memory after object loading. This
lowers the peak memory usage of the linker. Partial linking also benefits from
the lower memory usage. [722351]

* To support non-executable stacks, the linker now generates the appropriate
PT_GNU_STACK program header when --sysv (as implied by --arm_linux) is selected.
The linker will derive the executable status of the stack from the presence of
the .note.GNU-stack section in input objects. The new, associated option is
--[no_]execstack. [725212]

* The C library wide-character ctype functions (isw*, towupper, towlower) are
now up to date with Unicode 5.0. [726104]

* fromelf now correctly preserves DT_RELCOUNT. [727579]

Deprecated Functionality

* Use of the | operator as a synonym for :OR: is deprecated by the assembler as
it causes problems in variable substitution in the source line. [727348]

OS Platforms

This patch has been tested on the following supported platforms:

Windows 7
Windows XP SP2, 32-bit & 64-bit
Windows XP SP3, 32-bit
Windows Vista Business Edition SP1, 32-bit & 64-bit
Windows Vista Enterprise Edition SP1, 32-bit & 64-bit
Windows Server 2003 32-bit & 64-bit
Red Hat Linux Enterprise 4 for x86, 32-bit & 64-bit
Red Hat Linux Enterprise 5 for x86, 32-bit & 64-bit
Solaris for SPARC 10

In addition, the patch has been tested on the following non-supported platforms:

Windows 2000 SP4
SUSE Linux 9.2
Ubuntu Linux 8.10

Installation Instructions

To install the patch carry out the following steps:

1) Extract the contents of the archive into a temporary directory.

2) Ensure that you are currently using RVCT 4.0. To do this, type:

     armcc --vsn

   and ensure that this returns RVCT 4.0 build 400 or later. Then type:

     which armcc

   This will tell you the subdirectory that armcc is located in.

3) Copy the include directory from the temporary directory to replace your
existing include directory. The existing directory can be located by the
RVCT40INC environment variable, e.g.:

     > echo $RVCT40INC

4) Copy the lib directory from the temporary directory to replace your existing
lib directory. The existing directory can be located by the RVCT40LIB
environment variable, e.g.:

     > echo $RVCT40LIB

5) Copy the linux-pentium directory from the temporary directory to replace your
existing linux-pentium directory. The existing directory can be located by the
RVCT40BIN environment variable, e.g.:

     > echo $RVCT40BIN

6) The updated tools should now have been installed. To confirm this, type:

     armcc --vsn
     armlink --vsn
     armasm --vsn
     fromelf --vsn
     armar --vsn

   The version returned should be RVCT 4.0 build 697.

8) After unzipping the executables, you may find that they cannot be executed
because the UNIX permissions have been reset. The workaround is to set the
execute permissions for the user with, e.g.:

     chmod u+x armcc

This release includes the following corrections since RVCT 4.0 build 650:

Compiler (armcc):

* When compiling with C++ exceptions enabled (--exceptions), function exception
specifications containing reference types e.g. void g(void) throw(int&) {...},
caused a compiler internal fault. This has been fixed. [727197]

* The documentation for --list incorrectly stated that when used with multiple
source files it would generate a listing for the first file. In fact it would
generate a listing for the last file, but generate the listing file name from
the first source file name. The compiler now generates listings for all source
files, writing each to a separate listing file whose name is generated from the
corresponding source file name. [728254]

* #pragma unroll(1) now has the correct effect on the degree of unrolling.

* #pragma push/pop now correctly push and pop the current structure alignment as
set by #pragma pack. [727532]

* When using a custom declaration of va_list that was type-incompatible with the
standard declaration of the type in stdarg.h (as given by the ARM Procedure Call
Standard), the compiler would give error #256 to indicate that the type was
being redeclared incompatibly when used with the --gnu option. This is now
fixed. [727506]

* In certain situations calls to fmod with arguments that would set errno were
incorrectly removed. This is now fixed. [726236]

* Functions and data marked with __attribute__((used)) are now tagged in the
object to avoid removal by linker unused section elimination. [724019]

* The compiler was optimising negated floating-point comparisons into the
opposite comparison (for example !(a < b) was being converted to (a >= b)) for
all Floating Point models (as set by --fpmode). This has been changed so the
optimisations are only applied when the FP model indicates that we are not
interested in NaNs (by default, --fpmode std, --fpmode fast). [725146]

* A silent code generation fault where in certain circumstances at -O3 -Otime a
cast from unsigned to signed integer inside a loop test was discarded has been
fixed. [726234]

* Where the compiler option --locale was used, production of a warning message
could sometimes reset the current locale, causing incorrect interpretation of
multibyte character sequences in source code. This is now fixed. [725074]

* When C/C++ source code was encoded using some multibyte encodings
(specifically, ones in which ordinary ASCII characters can occur as subsequent
bytes of a multibyte character, so including Shift-JIS, but not utf-8), use of
the '#' stringization operator in macro expansions could produce unexpected
results. This is now fixed. [725874]

* Out-of-line instances of inline functions which have been given an explicit
section attribute using __attribute__((section("name"))) could generate link
time errors. This is now fixed. [723920]

* Link-time code generation could in some cases fail to emit a symbol for a "C2"
constructor or "D2" destructor. This is now fixed. [728099]

* Use of makefile dependency generation options could unnecessarily prevent the
compiler reusing precompiled header (PCH) files, with warning #629-D. The PCH
files are now reused. [728897]

* Where a friend definition in a template used a variable of the same name as a
variable in the function it was called from (i.e. first instantiated from) the
compiler could generate a spurious remark, if --remarks was used. This is now
fixed. [728548]

* Formerly, the compiler could fail to give dynamic linkage to an imported
inline function of a dllimport class which also had a virtual function. This is
now fixed. [727752]

* Some causes of the following internal faults have been fixed: 0x87ecef,
0xcc3958, 0x87ecef, 0xa05965, 0xbfdfa3, 0x9be513, 0xa85545, 0x56e87b, 0x63faa5,
0xafee20, 0xfe1945 [728236, 685024, 727558, 589466, 726944, 726750, 726300,
725422, 728252, 728260]

Assember (armasm):

* A problem causing A1201E to be reported incorrectly is now fixed.

Linker (armlink):

* The linker can miscalculate the base address of Execution Regions following 2
or more Execution Regions with the OVERLAY attribute. The problem occurs when
the base address of the preceding OVERLAY Regions is not the same. This is now
fixed. [725446]

* The linker no longer reports L6967E when linking the test_mla Cortex-M3
example. [725351]

* To better match the behaviour of the GNU tools, when --arm_linux mode is
selected the linker will now keep a section if a weak reference is made to the
section from a used section. [726778]

* When reading a symdefs file containing a Thumb Symbol. The linker can produce
a spurious warning: L6307W if Thumb code branches to the Symbol. This is now
fixed. [726869]

* The linker will give error message L62551 when an object contains an illegal
reference to a $Sub$$Symbol or error message L6250 when there is a definition of
$Super$$Symbol. If a relocation is made to either of these illegal symbols the
linker will produce an internal fault 0x3ae533. The internal fault is now fixed.

* When an object file contains a definition of $Sub$$Symbol, another object file
contains a definition of Symbol and a library contains a definition of Symbol,
the linker will incorrectly search the library for Symbol, load the member and
end up with a Multiple Symbol Definition error. This is now fixed. [726487]

* When invoked with --arm_linux, armlink would always report diagnostic L6029E
(when a relocation in an input object file was with respect to an invalid or
missing symbol) as a warning and not permit its severity to be downgraded to a
remark or suppressed entirely. This is now fixed. [725951]

C/C++ Libraries:

* The scanf family of functions used to report a parse failure when asked to
parse a C99 hexadecimal float literal representing zero (e.g. "0x0.0p0"). They
now parse it correctly. [726414]

* A change made in a previous RVCT 4.0 patch release introduced a new issue
whereby the C library stdio cleanup function _terminateio() would deadlock
through trying to lock the same mutex twice. This is now fixed. [726232]

* In line with the resolution of C++ Standard Library issue #109, binder1st and
binder2nd in <functional> now have an additional overload of operator() taking a
non-const reference. [724709]

* An issue has been fixed concerning incorrect runtime behaviour in an uncommon
use case. When rethrowing an exception, if a destructor invoked during stack
unwinding rethrew again and caught the same exception object, the first rethrow
would then continue incorrectly (such as restoring registers incorrectly).

Librarian (armar):

* When armar -d is used to delete a non-existent member, the error message
L6831E is now a warning. [727938]

ELF Format Convertor (fromelf):

* The fromelf --elf copying option will incorrectly translate the Version Needed
entry for a symbol definition to the global version. This can affect ARM Linux
applications that access global data in shared libraries with Version
Definitions. This is now fixed. [727621]

* The fromelf option "--bincombined" used to incorrectly report an error when
the uninitialized part of one ELF segment overlapped the initialised part of
another. This is now fixed. [725745]














新闻中心 | 联系我们 | 招聘信息 | 留言反馈 | 典型客户 | © 2019 Myir
深圳总部: 0755-25622735 | 北京办事处: 010-84675491 | 上海办事处: 021-60317628 粤ICP备12005064号-1