Joseph Myers 799131036e Do not hardcode platform names in manual/libm-err-tab.pl (bug 14139).
manual/libm-err-tab.pl hardcodes a list of names for particular
platforms (mapping from sysdeps directory name to friendly name for
the manual).  This goes against the principle of keeping information
about individual platforms in their corresponding sysdeps directory,
and the list is also very out-of-date regarding supported platforms
and their corresponding sysdeps directories.

This patch fixes this by adding a libm-test-ulps-name file alongside
each libm-test-ulps file.  The script then gets the friendly name from
that file, which is required to exist, so it no longer needs to allow
for the mapping being missing.

Tested for x86_64.

	[BZ #14139]
	* manual/libm-err-tab.pl (%pplatforms): Initialize to empty.
	(find_files): Obtain platform name from libm-test-ulps-name and
	store in %pplatforms.
	(canonicalize_platform): Remove.
	(print_platforms): Use $pplatforms directly.
	(by_platforms): Do not allow for platforms missing from
	%pplatforms.
	* sysdeps/aarch64/libm-test-ulps-name: New file.
	* sysdeps/alpha/fpu/libm-test-ulps-name: Likewise.
	* sysdeps/arm/libm-test-ulps-name: Likewise.
	* sysdeps/generic/libm-test-ulps-name: Likewise.
	* sysdeps/hppa/fpu/libm-test-ulps-name: Likewise.
	* sysdeps/i386/fpu/libm-test-ulps-name: Likewise.
	* sysdeps/i386/i686/fpu/multiarch/libm-test-ulps-name: Likewise.
	* sysdeps/ia64/fpu/libm-test-ulps-name: Likewise.
	* sysdeps/m68k/coldfire/fpu/libm-test-ulps-name: Likewise.
	* sysdeps/m68k/m680x0/fpu/libm-test-ulps-name: Likewise.
	* sysdeps/microblaze/libm-test-ulps-name: Likewise.
	* sysdeps/mips/mips32/libm-test-ulps-name: Likewise.
	* sysdeps/mips/mips64/libm-test-ulps-name: Likewise.
	* sysdeps/nios2/libm-test-ulps-name: Likewise.
	* sysdeps/powerpc/fpu/libm-test-ulps-name: Likewise.
	* sysdeps/powerpc/nofpu/libm-test-ulps-name: Likewise.
	* sysdeps/s390/fpu/libm-test-ulps-name: Likewise.
	* sysdeps/sh/libm-test-ulps-name: Likewise.
	* sysdeps/sparc/fpu/libm-test-ulps-name: Likewise.
	* sysdeps/tile/libm-test-ulps-name: Likewise.
	* sysdeps/x86_64/fpu/libm-test-ulps-name: Likewise.
2016-11-04 16:49:06 +00:00
..
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2016-09-07 16:44:22 +00:00
2016-08-16 16:19:55 +00:00
2016-09-07 16:44:22 +00:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-11-24 15:03:45 +05:30
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00
2014-02-16 01:12:38 -05:00

  ----------------------------------------------------------
  Notes on how to update libm based on Intel's libm releases
  ----------------------------------------------------------

This source code in this directory is currently based on Intel libm
v2.1 as available from:

  http://www.intel.com/software/products/opensource/libraries/num.htm

To ease importing, fix some bugs, and simplify integration into libc,
it is also necessary to apply the patch at:

  ftp://ftp.hpl.hp.com/pub/linux-ia64/intel-libm-041228.diff.gz

The expectation is that Intel will integrate most if not all of these
changes into future releases of libm, so this patching step can
hopefully be omitted in the future.

Once the patched libm sources are extracted in a directory $LIBM, they
can be imported into the libc source tree at $LIBC with the following
step:

	$ cd $LIBC/src/sysdep/ia64/fpu
	$ ./import_intel_libm $LIBM

This should produce a number of "Importing..." messages, without
showing any errors.

At this point, you should be able to build glibc in the usual fashion.
We assume you do this in directory $OBJ.  Once the build has
completed, run "make check" to verify that all (math) checks succeed.
If these checks succeed, you should also run the following commands to
verify that the new libm doesn't pollute the name-space and has proper
size-info for the data objects:

	$ cd $LIBC/src/sysdep/ia64/fpu
	$ import_check $OBJ/math/

There should be no (unexpected) errors reported by this script.

As an optional step, you may also want to confirm that the new libm
exports the exact same global symbols as the old one.

If you want to see the changes introduced by the "import_intel_libm"
script, you can run the commands:

	$ cd $LIBC/src/sysdep/ia64/fpu
	$ import_diffs

That's it.