Merge branch 'maint'

* maint:
  Check that sys.config and relup have valid content when added to tar
  Reject systools:make_script if kernel and stdlib are not permanent in .rel
  Don't save child spec for temporary child if child's start func returns ignore
  Generate links in C libraries correctly
Merge branch 'maint'
Update appup files for kernel and stdlib for OTP R16

The appup files shall allow upgrade from two major versions back,
i.e. for R16 they shall match back to R14. They shall no longer match
for R13.
Merge branch 'maint'
Merge branch 'maint'
Merge branch 'maint'

* maint:
  Update primary bootstrap
  Add the beam_except pass to optimize exceptions
  Eliminate the match_fail primop in v3_kernel and later passes
Merge branch 'maint'

* maint:
  erts: Do not profile system profiler pid
  test: system_profile profiler pid is not profiled
  Remove line macros in system_profile_SUITE
Merge branch 'maint'

* maint:
  erts: Use re instead of regexp in testsuite
  erts: Remove unused code in testsuites
  orber: Use modern list guard in testsuite
  orber: Ignore unused variable in orber_tb.erl
  xmerl: Ignore unused variable in xmerl_uri.erl
  syntax_tool: Add missing type information
  hipe: Suppress warnings for unused variables
  hipe: Add type information to cfg_info record
  tools: Use literal formatting in erl_memory.c
  asn1: Remove unused variable in asn1_erl_nif.c
  ei: Remove unused variable in ei_format.c
  erts: Add missing prototype to DRIVER_INIT
  runtime_tools: Fix signedness in trace_ip_drv.c
  to_erl: Remove compiler warnings
  heart: Suppress compiler warnings
  erts: Remove compiler warnings in inet_gethost.c
  erts: Remove dead code in inet_gethost.c
  erts: Remove dead code
Merge branch 'siri/update-generic-appup-files/OTP-9845'

* siri/update-generic-appup-files/OTP-9845:
  Update appup files for kernel and stdlib for OTP R16
Merge branch 'maint'

* maint:
  Handle nowarn_unused_function like the compiler does
Merge branch 'maint'
Merge branch 'maint'

* maint:
  compile_SUITE: Add test of 'sys_pre_attributes'
  Correct syntax in compiler.cover
  Cover v3_kernel:get_line/1
  core_SUITE: Cover the nomatch_shadow warning in v3_kernel
  core_SUITE: Cover v3_kernel:build_match/2
  bs_match_SUITE: Add a test case to cover bsm_ensure_no_partition_2/5
  core_fold_SUITE: Cover sys_core_fold:is_safe_bool_expr_1/3
  core_SUITE: Cover sys_core_fold:eval_is_boolean/2
  core_SUITE: Cover sys_core_fold:make_effect_seq/2
  beam_validator_SUITE:beam_files/1: Validate modules in parallel
  compilation_SUITE: Compile compiler modules in parallel
  compilation_SUITE: Prevent cover from being run on slave nodes
  test_lib:p_run/2: Be careful about how many parallel processes we use
  Remove part_eval_SUITE
beam_load.c: apply/2 does not need a special case

It is wrongly assumed in the BEAM loader that apply/2 is a BIF
and must be treated specially. Also make it clearer in ops.tab
that apply/3 is a BIF, but apply/2 is not.
beam_load.c: Remove useless call to next_heap_size()

The idea was probably to cause less fragmentation. Even if that would
be true, it is irrelevant because the short-lived allocator that is
used does not have any problems with fragmentation.

In CodeNeed() we will simply double the size of the area used for code
instead of using the next heap size.
beam_load.c: Don't show unnecessary context in errors

For errors that occur after reading the code chunking, saying
that the error occurred in the last function in the module and
in the instruction int_code_end/0 is just confusing.
Merge branch 'maint'
Merge branch 'maint'
Merge branch 'maint'
Merge branch 'maint'
Merge branch 'maint'