Permalink
Commits on Dec 18, 2009
  1. Merge branch 'dgud/emacs-improvements' into ccase/r13b04_dev

    * dgud/emacs-improvements:
      Emacs: Added indentation inside parenthesis
      More -spec indentation fixes.
    Erlang/OTP committed Dec 18, 2009
  2. Emacs: Added indentation inside parenthesis

    Used in records or tuple creation:
    -record(record3, {a = 8#42423 bor
    		      8#4234,
    		  b = 8#5432
    		      bor 2#1010101
    		  c = 123 +
    		      234,
    		  d}).
    
    and in functions calls
        call(2#42423 bor
    	     #4234,
    	 2#5432,
    	 other_arg),
    dgud committed Dec 18, 2009
Commits on Dec 17, 2009
  1. More -spec indentation fixes.

    dgud committed Dec 17, 2009
  2. Merge branch 'at/windows_build_fixes' into ccase/r13b04_dev

    * at/windows_build_fixes:
      Updated README.win32 for compiling with VS2008 and issues with mc.exe
      Allow mc.sh and rc.sh to work when path to mc/rc.exe has spaces
    
    OTP-8345  Building on Windows will now work if the paths to mc.exe and
              rc.exe contain spaces. The README.win32 file has been updated
              with some information about building using Visual Studio 2008.
              (Thanks to Andrew Thompson.)
    Erlang/OTP committed Dec 17, 2009
  3. Send up AssocID as unsigned

    It must be unsigned so that prim_inet will not reject
    when it is sent down again.
    
    (Suggested fix by Raimo for a bug reported by Simon Cornish.)
    bjorng committed with Erlang/OTP Dec 17, 2009
  4. Fix duplicate ei_tracelevel symbol

    The symbol ei_tracelevel was not declared extern which could
    crash the linking step on some compilers.
    
    Updated .gitignore to ignore object files in erl_interface.
    psyeugenic committed with Erlang/OTP Dec 17, 2009
Commits on Dec 16, 2009
  1. Add a link to EEP8

    Suggested by Vlad Dumitrescu.
    bjorng committed with Erlang/OTP Dec 16, 2009
Commits on Dec 15, 2009
  1. Updated README.win32 for compiling with VS2008 and issues with mc.exe

    Visual Studio 2008 puts some things in different places and doesn't
    include the Message Compiler (mc.exe).
    Andrew Thompson committed Dec 15, 2009
  2. Allow mc.sh and rc.sh to work when path to mc/rc.exe has spaces

    The eval call in these scripts was failing for me because the path to
    them on my windows machine contained spaces. I also fixed some
    copy/paste-os from when (evidently) the mc.sh script was created by
    copying the rc.sh script and modifying it.
    Andrew Thompson committed Dec 15, 2009
  3. Merge branch 'dgud/gitignore' into ccase/r13b04_dev

    Erlang/OTP committed Dec 15, 2009
  4. Merge branch 'sc/ei_decode_skip_fun' into ccase/r13b04_dev

    * sc/ei_decode_skip_fun:
      Fix ei_skip_term() handling of funs encoded as NEW_FUN_EXT
    Erlang/OTP committed Dec 15, 2009
  5. Deprecate concat_binary/1

    bjorng committed with Erlang/OTP Dec 15, 2009
  6. Added wx derivates.

    dgud committed Dec 15, 2009
  7. Added a indentation when using electric-comma.

    In the following code
        case X of foo -> 25
        	                 end,
    
    Automatically indent the line you stand on (end,) before
    adding newline and indent again.
    
    That way 'end' will be indented correctly after the comma is written.
    dgud committed Dec 15, 2009
  8. Include the test suites for erl_interface

    psyeugenic committed with Erlang/OTP Dec 15, 2009
  9. Merge branch 'sc/darwin_build_rm_dSYMN' into ccase/r13b04_dev

    * sc/darwin_build_rm_dSYMN:
      Fix 'make clean' in erts with debug builds under Darwin
    Erlang/OTP committed Dec 15, 2009
  10. OTP-8308 Added an xsl transform from OTP xml documentation to a file

              (.eix) of erlang terms that can be read by the erldoc
              application. Erldoc handles the documentation search mechanism at
              erlang.org. Added generation of eix files to
              otp_release_targets.mk. Fixed a copyright date error in
              db_html.xsl .
    lthor committed with Erlang/OTP Dec 15, 2009
Commits on Dec 14, 2009
  1. Fix 'make clean' in erts with debug builds under Darwin

    The Apple compiler creates DWARF debugging symbols in a bundle (ie. a
    directory) named <name>.dSYM
    In order for make clean to work correctly, the rm command needs -r
    dotsimon committed Dec 14, 2009
  2. Update bootstrap compiler

    bjorng committed with Erlang/OTP Dec 14, 2009
  3. Merge branch 'bg/on_load' into ccase/r13b04_dev

    * bg/on_load:
      Test on_load functions that don't return 'ok'
      Change the expected return value for on_load functions
    
    OTP-8339  The expected return value for an on_load function has been
              changed. (See the section about code loading in the Reference
              manual.)
    Erlang/OTP committed Dec 14, 2009
  4. Merge branch 'bg/compiler-bopt-bug' into ccase/r13b04_dev

    * bg/compiler-bopt-bug:
      beam_bool: Fix generation of code that does not validate
      Fix crash in beam_bool
    
    OTP-8338  Using complex boolean expressions in ifs could cause the compiler
              to either crash or teminate with an internal error. (Thanks to
              Simon Cornish.)
    Erlang/OTP committed Dec 14, 2009
  5. Merge branch 'as/c_nc-fix' into ccase/r13b04_dev

    * as/c_nc-fix:
      c_SUITE: Use new style guard tests
      Fix c:nc to use outdir or cwd to find compiled object file
    
    OTP-8337  c:nc/{1,2} used to assume that the beam file was created in the
              same directory as the source code and failed to load the code if
              it was not. Corrected to look for the beam file in the current
              directory or in the directory specified by the {outdir,Dir}
              option. (Thanks to Alex Suraci.)
    Erlang/OTP committed Dec 14, 2009
  6. Fix c:nc to use outdir or cwd to find compiled object file

    Before this patch, c:nc would naively assume the object file was created
    in the same location as the .erl file. This is often false, for example
    when an outdir is specified (often the case in make:all([netload])) or
    calling with c:nc("foo/bar") (because compile:file places bar.beam in
    the cwd, not foo/).
    
    [ Squashed in minor style changes. /bg ]
    Alex Suraci committed with bjorng Nov 29, 2009
  7. OTP-8340 A bug concerning bit comprehensions has been fixed in Cover.…

    … The
    
              bug was introduced in R13B03. (Thanks to Matthew Sackman.)
    uabboli committed with Erlang/OTP Dec 14, 2009
Commits on Dec 13, 2009
  1. Change the expected return value for on_load functions

    An on_load function is supposed to return 'true' to indicate
    that the module should be loaded, and 'false' if it should be
    unloaded. But returning any other term, as well as causing an
    exception, will also unload the module.
    
    Since we don't like boolean values mixed with other values,
    change the expected return value as follows:
    
    * If 'ok' is returned, the module will remain loaded and become
      callable.
    
    * If any other value is returned (or an exception is generated),
      the module will be unloaded. Also, if the returned value is
      not an atom, send a warning message to the error_logger
      (using error_logger:warning_msg/2).
    
    The new interpretation of the return value means that an on_load
    function can now directly return the return value from
    erlang:load_nif/2.
    bjorng committed Dec 10, 2009
Commits on Dec 11, 2009
  1. beam_bool: Fix generation of code that does not validate

    The following code (by Simon Cornish)
    
    bad(XDo1, XDo2, Do3) ->
        Do1    = (XDo1 =/= []),
        Do2    = (XDo2 =/= []),
        CH1 = if Do1 == true;
    	     Do1 == false,Do2==false,Do3 == blah ->
    		  ch1;
    	     true ->
    		  no
    	  end,
        CH2 = if Do1 == true;
    	     Do1 == false,Do2==false,Do3 == xx ->
    		  ch2;
    	     true ->
    		  no
    	  end,
        {CH1,CH2}.
    
    is optimized by beam_bool even though the optimization is not
    safe. The trouble is that an assignment to {y,0} no longer
    occurs on all paths leading to its use.
    
    The bug is in dst_regs/2 which is supposed to return a set
    of all registers assigned in a code block, but it ignores
    registers assigned in 'move' instructions.
    
    Fix the bug by taking 'move' instructions into account. This change
    is safe since it can only cause more registers to be added
    to the MustBeKilled and MustBeUnused sets in ensure_opt_safe/6,
    which means that it can only cause the optimization to be turned
    off for code that used to be optimized.
    bjorng committed Dec 11, 2009
  2. OTP-8323 Miscellaneous cross compilation improvements. For example, one

              new mandatory configuration variable that replaces all other
              previously mandatory configuration variables, and better
              documentation. Note that old cross compilation configurations
              cannot be used without modifications.
    
              For more information see the $ERL_TOP/xcomp/README file.
    rickard-green committed with Erlang/OTP Dec 11, 2009
  3. Merge branch 'po/blowfish_ecb_cbc_ofb-rebased' into ccase/r13b04_dev

    * po/blowfish_ecb_cbc_ofb-rebased:
      Add Blowfish tests
      Add Blowfish ECB, CBC and OFB modes
    
    OTP-8331  The crypto module now supports Blowfish in ECB, CBC and OFB
              modes. (Thanks to Paul Oliver.)
    Erlang/OTP committed Dec 11, 2009
  4. Add Blowfish tests

    puzza007 committed with bjorng Dec 3, 2009