11 August 2015

This is an approved src.alt for 473.astar in CPU2006 v1.2.

This src.alt allows 473.astar to be built on systems with C++11 compilers
that support user-defined literals.  Microsoft Visual Studio 2015 is one
such compiler.

To apply the src.alt, unpack the tar file in the top level of the CPU2006
directory.  The following sequence of commands should accomplish this:

$ /bin/sh
$ cd <CPU2006 dir>
$ . ./shrc
$ go top
$ specxz -dc <src.alt tarball> | spectar -xvf -

Please replace the items in angle brackets ( <> ) as appropriate.

To use the src.alt, please add the following stanza to your configuration
file:

  473.astar:
  srcalt=cxx11_udliteral
  CXXPORTABILITY    = -DSPEC_CXX11_UDLITERALFIX

Because this src.alt adds a new flag, in order to avoid having
"-DSPEC_CXX11_UDLITERALFIX" marked as an "unknown" flag, it is necessary
to update the flags files in your distribution.  You can do this by running

$ runspec --newflags

For more information on this option, see

  http://www.spec.org/cpu2006/Docs/runspec.html#newflags

Information on setting HTTP proxies is at

  http://www.spec.org/cpu2006/Docs/runspec.html#http_proxy

This src.alt changes printf() format specifier string syntax so format
specifier strings are not confused with user defined literals.  PRId64 is used
as the format specifier for a 64-bit integer, and is not separated from the
rest of the format string by any whitespace.  This causes C++11 compilers to
consider that a user-defined literal, which leads to a compilation error.  This
src.alt just adds spaces around the format specifier.  The changes are
performance-neutral.
  
Please address any questions about this src.alt to cpu2006support@spec.org.
