<feed xmlns='http://www.w3.org/2005/Atom'>
<title>otp.git/lib/compiler/test, branch maint-r16b02</title>
<subtitle>Mirror of Erlang/OTP repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/'/>
<entry>
<title>compiler: Conform returned errors to the documented format</title>
<updated>2013-09-05T12:28:08+00:00</updated>
<author>
<name>Björn Gustavsson</name>
<email>bjorn@erlang.org</email>
</author>
<published>2013-09-05T11:57:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=60984adef62f5e5bf8c65f403d4f8522afb6d40a'/>
<id>60984adef62f5e5bf8c65f403d4f8522afb6d40a</id>
<content type='text'>
ErrorInfo is documented to be:

  {ErrorLine,Module,ErrorDescriptor}

but for some errors with line numbers it would look like:

  {Module,ErrorDescriptor}

Ensure that all ErrorInfo tuples have three elements. Use 'none'
instead of a line number:

  {none,Module,ErrorDescriptor}

There already are errors that return 'none' when no line number is
available, but that convention was not documented. Mention it in the
documentation.

Also make sure that the compiler will not print 'none' as a line
number in error messages (if the 'report_errors' option is given) as
that looks stupid. That is, when attempting to compile a non-existing
module, the error message should be:

  non-existing.erl: no such file or directory

and not:

  non-existing.erl:none: no such file or directory
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ErrorInfo is documented to be:

  {ErrorLine,Module,ErrorDescriptor}

but for some errors with line numbers it would look like:

  {Module,ErrorDescriptor}

Ensure that all ErrorInfo tuples have three elements. Use 'none'
instead of a line number:

  {none,Module,ErrorDescriptor}

There already are errors that return 'none' when no line number is
available, but that convention was not documented. Mention it in the
documentation.

Also make sure that the compiler will not print 'none' as a line
number in error messages (if the 'report_errors' option is given) as
that looks stupid. That is, when attempting to compile a non-existing
module, the error message should be:

  non-existing.erl: no such file or directory

and not:

  non-existing.erl:none: no such file or directory
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'nox/match-context-return/OTP-11247' into maint</title>
<updated>2013-08-26T08:32:19+00:00</updated>
<author>
<name>Fredrik Gustafsson</name>
<email>fredrik@erlang.org</email>
</author>
<published>2013-08-26T08:32:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=e2c0f6dd1fc9b6bd506a481644b9c63f9d575aa1'/>
<id>e2c0f6dd1fc9b6bd506a481644b9c63f9d575aa1</id>
<content type='text'>
* nox/match-context-return/OTP-11247:
  Added primary bootstrap
  Forbid returning a match context in beam_validator
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* nox/match-context-return/OTP-11247:
  Added primary bootstrap
  Forbid returning a match context in beam_validator
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix compiler crash for 'B and B' guard</title>
<updated>2013-08-15T10:21:06+00:00</updated>
<author>
<name>Björn Gustavsson</name>
<email>bjorn@erlang.org</email>
</author>
<published>2013-08-14T11:16:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=8e10c8aac09de9165deb1c04cd908c8057c7f173'/>
<id>8e10c8aac09de9165deb1c04cd908c8057c7f173</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Forbid returning a match context in beam_validator</title>
<updated>2013-08-01T00:04:25+00:00</updated>
<author>
<name>Anthony Ramine</name>
<email>n.oxyde@gmail.com</email>
</author>
<published>2013-08-01T00:03:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=eaeea8dbde10e5e0a1c65bfd093ae18398b400d0'/>
<id>eaeea8dbde10e5e0a1c65bfd093ae18398b400d0</id>
<content type='text'>
If a match context is returned from a function without being converted
back to a plain old binary, the whole VM will crash.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a match context is returned from a function without being converted
back to a plain old binary, the whole VM will crash.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'nox/fix-comp-warnings/OTP-11212' into maint</title>
<updated>2013-07-29T09:42:26+00:00</updated>
<author>
<name>Fredrik Gustafsson</name>
<email>fredrik@erlang.org</email>
</author>
<published>2013-07-29T09:42:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=0481ecafa24dc60c6bca8afdda038dc2239c991d'/>
<id>0481ecafa24dc60c6bca8afdda038dc2239c991d</id>
<content type='text'>
* nox/fix-comp-warnings/OTP-11212:
  Bootstrap
  Silence a misleading warning with some comprehensions
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* nox/fix-comp-warnings/OTP-11212:
  Bootstrap
  Silence a misleading warning with some comprehensions
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'nox/fix-fname-inlining/OTP-11211' into maint</title>
<updated>2013-07-29T09:12:11+00:00</updated>
<author>
<name>Fredrik Gustafsson</name>
<email>fredrik@erlang.org</email>
</author>
<published>2013-07-29T09:12:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=6d3ee671a9c7a0ca9113bdedfd3f5ff630d8702f'/>
<id>6d3ee671a9c7a0ca9113bdedfd3f5ff630d8702f</id>
<content type='text'>
* nox/fix-fname-inlining/OTP-11211:
  Added primary bootstrap
  Restrict inlining of local fun references
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* nox/fix-fname-inlining/OTP-11211:
  Added primary bootstrap
  Restrict inlining of local fun references
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'jw/fix-float-middle-endian/OTP-11201' into maint</title>
<updated>2013-07-11T12:39:25+00:00</updated>
<author>
<name>Fredrik Gustafsson</name>
<email>fredrik@erlang.org</email>
</author>
<published>2013-07-11T12:39:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=193639fde33e135cc390f1df13076e5632fdd43c'/>
<id>193639fde33e135cc390f1df13076e5632fdd43c</id>
<content type='text'>
* jw/fix-float-middle-endian/OTP-11201:
  Fix binary construction on floating point middle-endian machines
  Fix binary matching on floating point middle-endian machines
  Fix erlang:phash2() on floating point middle-endian machines
  Fix external term format BIFs on floating point middle-endian machines
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* jw/fix-float-middle-endian/OTP-11201:
  Fix binary construction on floating point middle-endian machines
  Fix binary matching on floating point middle-endian machines
  Fix erlang:phash2() on floating point middle-endian machines
  Fix external term format BIFs on floating point middle-endian machines
</pre>
</div>
</content>
</entry>
<entry>
<title>Restrict inlining of local fun references</title>
<updated>2013-07-03T14:19:39+00:00</updated>
<author>
<name>Anthony Ramine</name>
<email>n.oxyde@gmail.com</email>
</author>
<published>2013-05-18T16:06:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=0db005980b30de5e6ad5dc3afee92d4c449a2f20'/>
<id>0db005980b30de5e6ad5dc3afee92d4c449a2f20</id>
<content type='text'>
Local fun references look like plain old variables in the Core Erlang
AST but should not be treated as such. Inlining of such expressions is
now restricted to application contexts as a local fun reference should
never occur in a guard.

This is not perfect as it forbids inlining in some safe situations, but
that is still better than a compiler crash.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Local fun references look like plain old variables in the Core Erlang
AST but should not be treated as such. Inlining of such expressions is
now restricted to application contexts as a local fun reference should
never occur in a guard.

This is not perfect as it forbids inlining in some safe situations, but
that is still better than a compiler crash.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix binary construction on floating point middle-endian machines</title>
<updated>2013-06-14T13:25:12+00:00</updated>
<author>
<name>Johannes Weißl</name>
<email>jargon@molb.org</email>
</author>
<published>2013-06-14T13:24:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=9e45648698862905561baa533831afd4dd23a02a'/>
<id>9e45648698862905561baa533831afd4dd23a02a</id>
<content type='text'>
This complements 933e701 (OTP-10209). Without this patch the test cases
"in_guard/1" and "coerce_to_float/1" in bs_construct_SUITE fail.

The added lines in bs_construct_SUITE cover all branches that were not
covered before (small and big numbers if BIT_OFFSET(erts_bin_offset) != 0).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This complements 933e701 (OTP-10209). Without this patch the test cases
"in_guard/1" and "coerce_to_float/1" in bs_construct_SUITE fail.

The added lines in bs_construct_SUITE cover all branches that were not
covered before (small and big numbers if BIT_OFFSET(erts_bin_offset) != 0).
</pre>
</div>
</content>
</entry>
<entry>
<title>Update copyright years</title>
<updated>2013-06-12T17:37:57+00:00</updated>
<author>
<name>Björn-Egil Dahlberg</name>
<email>egil@erlang.org</email>
</author>
<published>2013-06-12T17:37:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=710b07ca18417976459335a8b0b81a6f6aa82699'/>
<id>710b07ca18417976459335a8b0b81a6f6aa82699</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
