2010-06-22 Ed Schonberg <schonberg@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Jun 2010 07:11:35 +0000 (07:11 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Jun 2010 07:11:35 +0000 (07:11 +0000)
commit56854dfd7615a4fda4d348df3aa86b4ff39b8468
treebb1f6d153df51a982dba32067afdaeffdb5f2a79
parent3d2e99adf048bc91fde930295a6c2ac5bccaa46c
2010-06-22  Ed Schonberg  <schonberg@adacore.com>

* sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
a parameterless function call, preserve parentheses of original
expression, for proper handling by pretty printer.
* sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
procedure, to handle quietly identifiers that have no entity names.
* exp_util.adb (Get_Current_Value_Condition): If the parent of an
elsif_part is missing, it has been rewritten as a nested if, and there
is no useful information on the current value of the variable.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161136 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/exp_util.adb
gcc/ada/sem_attr.adb
gcc/ada/sem_res.adb