[parrot/parrot] 60cfac: [GH #836] Improve parsing pmc2c UNUSED arguments

GitHub noreply at github.com
Tue Sep 25 18:45:37 UTC 2012


  Branch: refs/heads/master
  Home:   https://github.com/parrot/parrot
  Commit: 60cfaca0ca97ec9a47893eb8037015e428ce56f6
      https://github.com/parrot/parrot/commit/60cfaca0ca97ec9a47893eb8037015e428ce56f6
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-09-18 (Tue, 18 Sep 2012)

  Changed paths:
    M lib/Parrot/Pmc2c/Method.pm

  Log Message:
  -----------
  [GH #836] Improve parsing pmc2c UNUSED arguments

UNUSED(arg) amcros are now detected in pmc bodies and change the argument declaration
to SHIM().
Empty bodies with return 1; are now detected and the two args are SHIMed.
UNUSED(interp) cause a new warning to be replaced by UNUSED(INTERP).


  Commit: 6afb068a5c723e27e323c59a7b87007a8109dc43
      https://github.com/parrot/parrot/commit/6afb068a5c723e27e323c59a7b87007a8109dc43
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-09-18 (Tue, 18 Sep 2012)

  Changed paths:
    M config/auto/warnings.pm

  Log Message:
  -----------
  warnings: Improve clang support

clang requires warnings overrides for -Wno-parentheses-equality
and adds -Wno-unused-result to src/ops/core_ops.c.
(used in 29582199aef9ea9462 [GH #828] Optimize print_n/i and say_n/i)


  Commit: a95f757e247a3099d3c8a2ff5d6c7a1f234b3200
      https://github.com/parrot/parrot/commit/a95f757e247a3099d3c8a2ff5d6c7a1f234b3200
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-09-18 (Tue, 18 Sep 2012)

  Changed paths:
    M config/gen/makefiles/root.in

  Log Message:
  -----------
  Add ccwarn::src/ops/core_ops.c SUFFIX OVERRIDE for using (void)Parrot_io_write_b

Added with 29582199aef9ea94622b4202aee129521bc


  Commit: ef4b571b684f1c9d6148dc9fa2a31112f1c45060
      https://github.com/parrot/parrot/commit/ef4b571b684f1c9d6148dc9fa2a31112f1c45060
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-09-18 (Tue, 18 Sep 2012)

  Changed paths:
    M src/ops/core.ops
    M src/ops/core_ops.c
    M src/pmc/key.pmc

  Log Message:
  -----------
  Add more UNUSED() declarations to key.pmc and core.ops


  Commit: 4045afa353a4f1d25e8ef944fa30e438e62f0f41
      https://github.com/parrot/parrot/commit/4045afa353a4f1d25e8ef944fa30e438e62f0f41
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-09-24 (Mon, 24 Sep 2012)

  Changed paths:
    M CREDITS
    M ChangeLog
    M Configure.pl
    M MANIFEST
    M MANIFEST.generated
    M README.pod
    M RESPONSIBLE_PARTIES
    M VERSION
    M compilers/imcc/optimizer.c
    M config/auto/libffi.pm
    M config/auto/warnings.pm
    M config/gen/config_pm.pm
    M config/gen/config_pm/config_lib_pir.in
    M config/gen/makefiles/root.in
    M docs/parrothist.pod
    M docs/project/release_manager_guide.pod
    A examples/benchmarks/stress_strings1.pir
    A examples/benchmarks/stress_stringsu.pir
    M include/parrot/oplib/core_ops.h
    M src/ops/core_ops.c
    M src/platform/generic/cpu_type.c
    M src/pmc/bytebuffer.pmc
    M src/string/api.c
    M t/op/stringu.t
    M t/pmc/bytebuffer.t
    A t/pmc/bytebuffer2.t
    M t/src/checkdepend.t
    M t/steps/auto/libffi-01.t
    M tools/release/parrot_github_release.pl
    M tools/release/release.json

  Log Message:
  -----------
  merge master into rurban/pmc2c-unused-gh836

Fix conflict in config/auto/warnings.pm


  Commit: 1d37b987296de1ff3defbec0e0209162b628ceed
      https://github.com/parrot/parrot/commit/1d37b987296de1ff3defbec0e0209162b628ceed
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-09-24 (Mon, 24 Sep 2012)

  Changed paths:
    M config/auto/warnings.pm

  Log Message:
  -----------
  fixup wrong config/auto/warnings.pm merge


  Commit: 562f9ab997e27a4ec1a1e591208e1d715f0a42fd
      https://github.com/parrot/parrot/commit/562f9ab997e27a4ec1a1e591208e1d715f0a42fd
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-09-24 (Mon, 24 Sep 2012)

  Changed paths:
    M lib/Parrot/Pmc2c/Method.pm

  Log Message:
  -----------
  [GH #836] Allow UNUSED(word); the semicolon


  Commit: f4a63d51242bebb358211e43367232b60bbffbcc
      https://github.com/parrot/parrot/commit/f4a63d51242bebb358211e43367232b60bbffbcc
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-09-24 (Mon, 24 Sep 2012)

  Changed paths:
    M src/pmc/default.pmc

  Log Message:
  -----------
  [GH #836] default thaw: SELF.init uses INTERP


  Commit: 7c350cfdd6f234ee174397e48b39584cab525df4
      https://github.com/parrot/parrot/commit/7c350cfdd6f234ee174397e48b39584cab525df4
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-09-24 (Mon, 24 Sep 2012)

  Changed paths:
    M config/gen/makefiles/root.in

  Log Message:
  -----------
  pmc2c: use the current libs not the installed

pmc2c favored installed Parrot::Pmc2c libs over the current ones, which
made debugging Parrot::Pmc2c methods hard.


  Commit: 847cb9bcc78a2d13d0735f99dfbdbe7112015a56
      https://github.com/parrot/parrot/commit/847cb9bcc78a2d13d0735f99dfbdbe7112015a56
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-09-24 (Mon, 24 Sep 2012)

  Changed paths:
    M ChangeLog
    M lib/Parrot/Pmc2c/Method.pm
    M lib/Parrot/Pmc2c/PMC/Null.pm
    M src/pmc/addrregistry.pmc
    M src/pmc/class.pmc
    M src/pmc/continuation.pmc
    M src/pmc/default.pmc
    M src/pmc/key.pmc
    M src/pmc/orderedhashiterator.pmc
    M src/pmc/pointer.pmc
    M src/pmc/scheduler.pmc
    M src/pmc/sub.pmc
    M src/pmc/undef.pmc

  Log Message:
  -----------
  [GH #836] Cleaned wrong UNUSED(arg) macros in all pmc's

Due to an improved pmc2c compiler, which SHIMs all UNUSED args,
a lot of wrong and/or badly placed UNUSED macros have been fixed.


  Commit: 7913e25039432ff4273f5898ef803cfc3eab8ede
      https://github.com/parrot/parrot/commit/7913e25039432ff4273f5898ef803cfc3eab8ede
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-09-24 (Mon, 24 Sep 2012)

  Changed paths:
    M config/auto/warnings.pm
    M lib/Parrot/Pmc2c/Method.pm

  Log Message:
  -----------
  [codingstd] GH #836 fix hard tabs


  Commit: 0525faa867810706bbeb957befd9e44876257a23
      https://github.com/parrot/parrot/commit/0525faa867810706bbeb957befd9e44876257a23
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-09-25 (Tue, 25 Sep 2012)

  Changed paths:
    M ChangeLog
    M config/gen/makefiles/root.in
    M lib/Parrot/Pmc2c/Method.pm
    M lib/Parrot/Pmc2c/PMC/Null.pm
    M src/ops/core.ops
    M src/ops/core_ops.c
    M src/pmc/addrregistry.pmc
    M src/pmc/class.pmc
    M src/pmc/continuation.pmc
    M src/pmc/default.pmc
    M src/pmc/key.pmc
    M src/pmc/orderedhashiterator.pmc
    M src/pmc/pointer.pmc
    M src/pmc/scheduler.pmc
    M src/pmc/sub.pmc
    M src/pmc/undef.pmc

  Log Message:
  -----------
  Merge branch 'rurban/pmc2c-unused-gh836'

Fixed conflict:
	config/auto/warnings.pm
fixes already in master


Compare: https://github.com/parrot/parrot/compare/fdd0ca3cc18c...0525faa86781


More information about the parrot-commits mailing list