This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

[Ada] -gnatR improvement


Tested on i686-linux, committed on trunk.

This patch stops List_Entities from attempting to list representation
information for renamed entities. We don't get proper information in
all cases, and in any case it seems reasonable to take the position
that the representation should be listed only for the renamed entity
and not redundantly for the renaming entity.

In the following test program:

package P1 is
    type Rec is record
       I : Integer;
    end record;
end P1;

with P1;
package P2 renames P1;

compiling p2 with -gnatR generated junk output, which is now suppressed
and the output of such a compilation should be empty:

Representation information for unit P2 (spec)
---------------------------------------------

2006-10-31  Robert Dewar  <dewar@adacore.com>

	* repinfo.adb (List_Entities): Don't list entities from renaming
	declarations.

Attachment: difs
Description: Text document


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