Reworded the definition of minloc/maxloc reductions in the spec
for clarity and consistent use of terms.


git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@19554 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
Change capture tests to again illustrate the issue described in the
future.

After the QIO commit (r19458), the future capture.chpl started passing
because the argument to the work() function was no longer passed by
reference.  Michael explained that this was probably because writeln()
now takes it's arguments by value.

To illustrate the point of the future, I managed to get the compiler
to pass the argument by reference by adding a barrier via sync and
single vars.  I actually don't understand why this works, but I have
not investigate too deeply.  The heap allocation code has not change
much since the initial commit by Steve, and there are not too many
clues.

Updated to future to note this weirdness.



git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@19555 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
demonstrating problem with opaque extern out argument

git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@19556 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
Remove remaining mentions of Pathscale compiler from our READMEs.



git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@19557 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
Reduced problem size to avoid deadlock due to lack of thread
resources.

Updated .good files to reflect the changes.



git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@19558 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
Get include paths from util/config/compileline
to make this unit test lest fragile



git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@19559 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
Bug fix for Cray C compiler -  __bswap_64 was missing


git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@19560 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
Added comments, never actually includes chplrt.h,
so it should build OK on AIX now.



git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@19561 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
Switches QIO UTF-8 decoding to use a DFA-based decoder
(this was the original design but we put in the
 other code while waiting for approvals; this version
 has been more tested and is faster).



git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@19562 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
Added 'cpl.c', a C version of HPL. The HPL version is taken from
release/examples/hpcc and considered as if compiled with --serial.

I'd note two deviations of the C version:

* The two reductions are almost completely inlined, except the function
  that computes the value for each index is passed as an argument.

* Domains and ranges are passed around by value throughout.
  Arrays are passed by reference, however.

The C compilation command is:

   gcc -std=c99 [optimization options] cpl.c

The Chapel compilation command is:

   chpl -M [path to a dir where HPCCProblemSize.chpl is located] \
     [stdlib.h may need to be specified] \
     [optimization options] --serial cpl.c

'hpl.chpl' is a modification of a copy from release/examples/hpcc.
The modifications have been done to ensure that the Chapel and C
versions perform the same computation.

It is marked with .notest because currently the output includes the
timing and so is nondeterministic.


git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@19563 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
trying to write histogram led me to these problems

git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@19564 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
Add the top 2 levels of the third-party directory to grepmake.

The top 2 levels should only contain makefiles that we have written
ourselves and not those provided by the third-party package.



git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@19565 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
added note about UTF-8 decoder to top of third-party dir

git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@19566 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
Minor tweaks to third-party READMEs

* Pattern-matched the UTF8 decoder's license as being MIT, so marked
  it as such in the top-level README.

* Minor formatting changes to the utf8-decoder and tcmalloc READMEs.



git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@19567 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
Fixes C warnings when using UTF-8 in strings

git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@19568 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
Clean up third-party package builds.

[reviewed by bradc]

This commit implements a consistent way to ensure the proper
third-party packages are built before building the Chapel runtime.

The general scheme is as follows:

- For 'make' and 'make depend' at the top-level of the runtime
  directory, the first action is to build the necessary third-party
  packages.

- The new script $CHPL_HOME/util/chplenv/third-party-pkgs uses the
  results of printchplenv to examine the environment for necessary
  third-party packages (e.g., gasnet, tcmalloc).  See the script for
  details and assumptions.

- Each third-party package must use an 'install' directory for the
  necessary binaries.  If this 'install' directory exists, then the
  packages is not rebuilt.  The install directory already exists for
  most packages and is currently defined in Makefile.base.

A few other small changes:

- Removed explicit third-party build from runtime directories for
  gasnet and dlmalloc

- Restructured dlmalloc third-party directory to use a
  platform-specific install directory

- Renamed variables MEM_DLMALLOC_XXX to DLMALLOC_XXX to be consistent
  with other packages

- Replaced $(CHAPEL_ROOT)/third-party with $(THIRD_PARTY_DIR) as
  needed

- Fixed bug in 'make clean' for gasnet build

- Removed mention of explicit build of qthread and nanox from
  README.tasks

TODO:

- Remove explicit qthread and nanox build from nightly script



git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@19569 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
Reverting Makefile change from r19569.

Sorry, I jumped the gun a little on this one.  It will change again
when I refactor Makefile.base.



git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@19570 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
Remove explicit build of nanox and qthread that was made unnecessary
by r19569.



git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@19571 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
better error message

git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@19572 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
Catching up on a month's worth of regressions...

- standalone C I/O tests fail on chpbld02 for uknown reason
- lulesh gets precision portability problems on chpbld02
- lulesh times out on baseline
- errors reported due to failed suppressions for tests with compopts/execopts
- captureAppearsToWork timing out for GASNet (?), chpbld02 (?)
- BSD source redefined for extern_string_test-remote
- all PrgEnv-intel/PrgEnv-gnu tests failing due to PrgEnv on whitebox issues
- CCE build of Chapel compiler fails due to PrgEnv on whitebox issues
- invalid multibyte characters in CCE, Intel compilers (should now be fixed)

+ SSCA2_main now passing performance tests
+ bswap_64 problems fixed for CCE
+ syncSpinWait, indef2, count, test_scan1, identity fixed for CCE
  (perhaps due to new compiler version)

* a bunch of formatting changes due to new format for printing comp-/execopts
* normal nondeterminism



git-svn-id: http://svn.code.sf.net/p/chapel/code/trunk@19573 3a8e244f-b0f2-452b-bcba-4c88e055c3ca