gem5/ext/libelf
Koan-Sin Tan 7d4f187700 clang: Enable compiling gem5 using clang 2.9 and 3.0
This patch adds the necessary flags to the SConstruct and SConscript
files for compiling using clang 2.9 and later (on Ubuntu et al and OSX
XCode 4.2), and also cleans up a bunch of compiler warnings found by
clang. Most of the warnings are related to hidden virtual functions,
comparisons with unsigneds >= 0, and if-statements with empty
bodies. A number of mismatches between struct and class are also
fixed. clang 2.8 is not working as it has problems with class names
that occur in multiple namespaces (e.g. Statistics in
kernel_stats.hh).

clang has a bug (http://llvm.org/bugs/show_bug.cgi?id=7247) which
causes confusion between the container std::set and the function
Packet::set, and this is currently addressed by not including the
entire namespace std, but rather selecting e.g. "using std::vector" in
the appropriate places.
2012-01-31 12:05:52 -05:00
..
_libelf.h LibElf: Build the error management code in libelf. 2011-06-12 23:51:59 -07:00
elf32.h Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
elf64.h Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
elf_begin.c Fix compiling on Solaris since Nate's libelf change 2007-05-30 17:08:12 -04:00
elf_cntl.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
elf_common.h Fix compiling on Solaris since Nate's libelf change 2007-05-30 17:08:12 -04:00
elf_data.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
elf_end.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
elf_errmsg.c LibElf: Build the error management code in libelf. 2011-06-12 23:51:59 -07:00
elf_errno.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
elf_fill.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
elf_flag.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
elf_getarhdr.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
elf_getarsym.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
elf_getbase.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
elf_getident.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
elf_hash.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
elf_kind.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
elf_memory.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
elf_next.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
elf_phnum.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
elf_queue.h Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
elf_rand.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
elf_rawfile.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
elf_scn.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
elf_shnum.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
elf_shstrndx.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
elf_strptr.c Fix compiling on Solaris since Nate's libelf change 2007-05-30 17:08:12 -04:00
elf_types.m4 Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
elf_update.c Fix compiling on Solaris since Nate's libelf change 2007-05-30 17:08:12 -04:00
elf_version.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
gelf.h Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
gelf_checksum.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
gelf_dyn.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
gelf_ehdr.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
gelf_fsize.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
gelf_getclass.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
gelf_phdr.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
gelf_rel.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
gelf_rela.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
gelf_shdr.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
gelf_sym.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
gelf_symshndx.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
gelf_xlate.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
libelf.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
libelf.h Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
libelf_align.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
libelf_allocate.c Fix compiling on Solaris since Nate's libelf change 2007-05-30 17:08:12 -04:00
libelf_ar.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
libelf_checksum.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
libelf_convert.m4 Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
libelf_data.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
libelf_ehdr.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
libelf_extended.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
libelf_fsize.m4 Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
libelf_msize.m4 Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
libelf_phdr.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
libelf_shdr.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
libelf_xlate.c Get rid of GNU libelf and its autoconf nastiness and replace 2007-05-26 18:15:22 -07:00
SConscript clang: Enable compiling gem5 using clang 2.9 and 3.0 2012-01-31 12:05:52 -05:00