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]

Re: PATCH RFC: Use type alias_set_type to hold alias sets


> In this patch:
>     http://gcc.gnu.org/ml/gcc-patches/2000-05/msg01680.html
> Richard Kenner changed the type of alias sets from int to
> HOST_WIDE_INT.  However, the change was not made consistently.  There
> are a number of places in the compiler which store alias sets in a
> simple int; e.g., the static variable alpha_sr_alias_set in alpha.c.
>
> According to his e-mail message, the change was made to permit
> frontends to use a sparse definition of alias sets.  However, no
> frontend takes advantage of that facility, and I am doubtful that any
> frontend ever would.

At this point, I agree.  The argument was marginal then and irrelevant now.

> To avoid the kind of error made in the original patch, in which some
> variables did not change type

Just FYI, these error occured in a merge.  alpha_sr_alias_sets was added in
1998 by RTH, but in a different tree than the patch you quote was written
for.  When that patch was moved over to the other tree, nobody went and
looked for any other variables that had to be changed, so that and others
got missed.

> this is a purely mechanical patch to change all alias set
> representations to have type alias_set_type.  This does not change
> the compiler, except for correcting the cases where a variable had
> type int when it should have been HOST_WIDE_INT.

I'm not against that change, but do want to point out that it would not
have avoided the above error.


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