[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[csmith-project/csmith] 29f695: Add PowerPC little endian support and remove TARGE...



  Branch: refs/heads/master
  Home:   https://github.com/csmith-project/csmith
  Commit: 29f6951f2d639b3caace740dc9a613740ba28170
      https://github.com/csmith-project/csmith/commit/29f6951f2d639b3caace740dc9a613740ba28170
  Author: Anton Blanchard <anton@samba.org>
  Date:   2015-11-20 (Fri, 20 Nov 2015)

  Changed paths:
    M runtime/Makefile.am
    M runtime/Makefile.in
    M src/Makefile.am
    M src/Makefile.in
    M src/platform.cpp

  Log Message:
  -----------
  Add PowerPC little endian support and remove TARGET_CPU_* defines

The PowerPC version of read_time() is not being selected on
little endian because we are only catching the big endian cases:

 #if (TARGET_CPU_powerpc == 1 || TARGET_CPU_powerpc64 == 1)

This is the only place we use TARGET_CPU_*, and it is simpler (and
more common) to use standard c pre-processor defines:

 #if defined(__powerpc__) || defined(__powerpc64__)

This works on gcc, llvm/clang and IBM xlc. With this change we can
remove TARGET_CPU_* completely.


  Commit: c51c4fbb0ae35f4c7e5b3cfc48d45381a05ac0b6
      https://github.com/csmith-project/csmith/commit/c51c4fbb0ae35f4c7e5b3cfc48d45381a05ac0b6
  Author: John Regehr <regehr@cs.utah.edu>
  Date:   2015-11-20 (Fri, 20 Nov 2015)

  Changed paths:
    M runtime/Makefile.am
    M runtime/Makefile.in
    M src/Makefile.am
    M src/Makefile.in
    M src/platform.cpp

  Log Message:
  -----------
  Merge pull request #28 from antonblanchard/TARGET_CPU_cleanup

Add PowerPC little endian support and remove TARGET_CPU_* defines


Compare: https://github.com/csmith-project/csmith/compare/a9ecee20da36...c51c4fbb0ae3