Review Board 2.0.15


x86: Fixes to avoid LTO warnings

Review Request #2465 - Created Oct. 14, 2014 and submitted

Information
Andreas Hansson
gem5
default
Reviewers
Default
Changeset 10481:dd7fc6e5eaa0
---------------------------
x86: Fixes to avoid LTO warnings

This patch fixes a few minor issues that caused link-time warnings
when using LTO, mainly for x86. The most important change is how the
syscall array is created. Previously gcc and clang would complain that
the declaration and definition types did not match. The organisation
is now changed to match how it is done for ARM, moving the code that
was previously in syscalls.cc into process.cc, and having a class
variable pointing to the static array.

With these changes, there are no longer any warnings using gcc 4.6.3
with LTO.
Tried with clang 3.4, 3.5 and gcc 4.6 and 4.9 and this fixes the warnings
Review request changed
Updated (Oct. 20, 2014, 3:32 p.m.)

Status: Closed (submitted)