<feed xmlns='http://www.w3.org/2005/Atom'>
<title>otp.git/lib/compiler/test, branch OTP-17.1</title>
<subtitle>Mirror of Erlang/OTP repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/'/>
<entry>
<title>Fix handling of latin1 characters in false ifdef branches</title>
<updated>2014-06-16T12:32:42+00:00</updated>
<author>
<name>Björn Gustavsson</name>
<email>bjorn@erlang.org</email>
</author>
<published>2014-06-16T12:25:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=9a9b77c72f95123ac0e6d1dab7f907a4f0f2e6a6'/>
<id>9a9b77c72f95123ac0e6d1dab7f907a4f0f2e6a6</id>
<content type='text'>
The fallback to latin-1 encoding would not work if the invalid
UTF-8 characters occurred in a skipped branch in an -ifdef/-ifndef.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The fallback to latin-1 encoding would not work if the invalid
UTF-8 characters occurred in a skipped branch in an -ifdef/-ifndef.
</pre>
</div>
</content>
</entry>
<entry>
<title>compiler,stdlib: Fix Map literals as keys for Maps in patterns</title>
<updated>2014-04-03T12:32:44+00:00</updated>
<author>
<name>Björn-Egil Dahlberg</name>
<email>egil@erlang.org</email>
</author>
<published>2014-04-02T15:00:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=cc7a3c5896bc266bb97287dd4e31b696d8cf604f'/>
<id>cc7a3c5896bc266bb97287dd4e31b696d8cf604f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'egil/maps-compiler-coverage'</title>
<updated>2014-03-26T13:19:55+00:00</updated>
<author>
<name>Björn-Egil Dahlberg</name>
<email>egil@erlang.org</email>
</author>
<published>2014-03-26T13:19:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=c5e3c774bd12cc15a04dd9880cad6eb66d2541be'/>
<id>c5e3c774bd12cc15a04dd9880cad6eb66d2541be</id>
<content type='text'>
* egil/maps-compiler-coverage:
  compiler: Do not evaluate map expressions with bad keys
  compiler: Throw 'nomatch' on matching with bad binary keys
  compiler: Variable keys are not allowed in Maps
  compiler: Strengthen Maps warnings tests
  compiler: map_pair cannot be a type clause in v3_life
  compiler: Remove redudant code in v3_codegen
  compiler: Test deep map structure
  compiler: Remove redundant clause in v3_codegen
  compiler: Cover #{ [] =&gt; Var } in testcase
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* egil/maps-compiler-coverage:
  compiler: Do not evaluate map expressions with bad keys
  compiler: Throw 'nomatch' on matching with bad binary keys
  compiler: Variable keys are not allowed in Maps
  compiler: Strengthen Maps warnings tests
  compiler: map_pair cannot be a type clause in v3_life
  compiler: Remove redudant code in v3_codegen
  compiler: Test deep map structure
  compiler: Remove redundant clause in v3_codegen
  compiler: Cover #{ [] =&gt; Var } in testcase
</pre>
</div>
</content>
</entry>
<entry>
<title>compiler: Do not evaluate map expressions with bad keys</title>
<updated>2014-03-25T18:08:09+00:00</updated>
<author>
<name>Björn-Egil Dahlberg</name>
<email>egil@erlang.org</email>
</author>
<published>2014-03-25T18:06:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=2d95280094fa6429081a9b9df3c73705819e2461'/>
<id>2d95280094fa6429081a9b9df3c73705819e2461</id>
<content type='text'>
Map keys with large (non literal) binary keys must fail.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Map keys with large (non literal) binary keys must fail.
</pre>
</div>
</content>
</entry>
<entry>
<title>compiler: Throw 'nomatch' on matching with bad binary keys</title>
<updated>2014-03-25T18:07:48+00:00</updated>
<author>
<name>Björn-Egil Dahlberg</name>
<email>egil@erlang.org</email>
</author>
<published>2014-03-25T17:37:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=71df02b2ead5c68eb9c4dff00d91a1d0e94659fe'/>
<id>71df02b2ead5c68eb9c4dff00d91a1d0e94659fe</id>
<content type='text'>
Even if a binary key is written as a literal the compiler may
choose to make an expression. Emit a warning in those cases
and saying the case will not match.

This is a limitation in current implementation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Even if a binary key is written as a literal the compiler may
choose to make an expression. Emit a warning in those cases
and saying the case will not match.

This is a limitation in current implementation.
</pre>
</div>
</content>
</entry>
<entry>
<title>compiler: Strengthen Maps warnings tests</title>
<updated>2014-03-25T16:43:27+00:00</updated>
<author>
<name>Björn-Egil Dahlberg</name>
<email>egil@erlang.org</email>
</author>
<published>2014-03-25T15:57:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=333f03952f76ed15986eeabb9a386904521821ee'/>
<id>333f03952f76ed15986eeabb9a386904521821ee</id>
<content type='text'>
Increases coverage.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Increases coverage.
</pre>
</div>
</content>
</entry>
<entry>
<title>Correctly handle non-matching patterns against literal values</title>
<updated>2014-03-25T03:34:24+00:00</updated>
<author>
<name>Anthony Ramine</name>
<email>n.oxyde@gmail.com</email>
</author>
<published>2014-03-25T02:00:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=7a72ebab6811bea482ae0ad9fc25c7f4820226fe'/>
<id>7a72ebab6811bea482ae0ad9fc25c7f4820226fe</id>
<content type='text'>
The pass sys_core_fold did not correctly handle non-matching patterns in code
such as:

    0 = case &lt;&lt;&gt;&gt; of
            &lt;&lt;&gt;&gt; -&gt; 0;
            a -&gt; 1
        end.

Function case_opt_lit/3 is rewritten in two passes to first remove any
non-matching clause and only then potentially remove the related patterns
in each clause.

Reported-by: Ulf Norell
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The pass sys_core_fold did not correctly handle non-matching patterns in code
such as:

    0 = case &lt;&lt;&gt;&gt; of
            &lt;&lt;&gt;&gt; -&gt; 0;
            a -&gt; 1
        end.

Function case_opt_lit/3 is rewritten in two passes to first remove any
non-matching clause and only then potentially remove the related patterns
in each clause.

Reported-by: Ulf Norell
</pre>
</div>
</content>
</entry>
<entry>
<title>compiler: Test deep map structure</title>
<updated>2014-03-24T17:25:54+00:00</updated>
<author>
<name>Björn-Egil Dahlberg</name>
<email>egil@erlang.org</email>
</author>
<published>2014-03-24T17:21:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=6c3ea418e174303615207c91b58f8ea29629ba26'/>
<id>6c3ea418e174303615207c91b58f8ea29629ba26</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>compiler: Cover #{ [] =&gt; Var } in testcase</title>
<updated>2014-03-24T16:46:51+00:00</updated>
<author>
<name>Björn-Egil Dahlberg</name>
<email>egil@erlang.org</email>
</author>
<published>2014-03-24T16:46:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=83e37233bc4fcf5881663d5efb016f6255b496eb'/>
<id>83e37233bc4fcf5881663d5efb016f6255b496eb</id>
<content type='text'>
Coverage removed by literals.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Coverage removed by literals.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'nox/maps-v3_core-lit_vars'</title>
<updated>2014-03-19T15:49:20+00:00</updated>
<author>
<name>Björn-Egil Dahlberg</name>
<email>egil@erlang.org</email>
</author>
<published>2014-03-19T15:49:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=41fe9a38393fde81298e722abdb1013ac8224c17'/>
<id>41fe9a38393fde81298e722abdb1013ac8224c17</id>
<content type='text'>
* nox/maps-v3_core-lit_vars:
  Properly collect variables in map expressions in v3_core
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* nox/maps-v3_core-lit_vars:
  Properly collect variables in map expressions in v3_core
</pre>
</div>
</content>
</entry>
</feed>
