This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb and binutils branch master updated. 528653254b46ccd95d7ffbef73acbcc1242eaee6


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".

The branch, master has been updated
       via  528653254b46ccd95d7ffbef73acbcc1242eaee6 (commit)
      from  f01c1a090e6629be280efb3c596d818f1f74ae2a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=528653254b46ccd95d7ffbef73acbcc1242eaee6

commit 528653254b46ccd95d7ffbef73acbcc1242eaee6
Author: Joel Brobecker <brobecker@adacore.com>
Date:   Tue Mar 18 10:52:08 2014 -0700

    remove unnecessary second call to static_unwrap_type in ada_evaluate_subexp
    
    In ada-lang.c::ada_evaluate_subexp, case OP_VAR_VALUE, when noside
    is EVAL_AVOID_SIDE_EFFECTS, the first thing we do is set type as
    follow:
    
        type = static_unwrap_type (SYMBOL_TYPE (exp->elts[pc + 2].symbol));
    
    Later on in the same block, we make the same call:
    
        return value_zero
          (to_static_fixed_type
           (static_unwrap_type (SYMBOL_TYPE (exp->elts[pc + 2].symbol))),
           not_lval);
    
    This patch removes the second call, since it should result in the same
    type being returned, so no point in making that call again.
    
    gdb/ChangeLog:
    
            * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
            unnecessary second call to static_unwrap_type.

-----------------------------------------------------------------------

Summary of changes:
 gdb/ChangeLog  |    5 +++++
 gdb/ada-lang.c |    5 +----
 2 files changed, 6 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
gdb and binutils


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]