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] composite_type and TYPE_QUALS



On Jun 23, 2004, at 2:15 AM, Joseph S. Myers wrote:


On Tue, 22 Jun 2004, Andrew Pinski wrote:

While trying to fix IMA, I came across the problem where composite_type
does not return a type which has the TYPE_QUALS of the other type given
to the function, this patch fixes this problem, I could not find a non
IMA testcase for reproducing this failure.


OK? Bootstrapped on powerpc-apple-darwin with no regressions.

OK with the following testcase or something along these lines included in
gcc.dg (provided it passes).


extern int (*const a)[];
extern int (*const a)[10];
extern int (*const a)[];


Yes this testcase now passes, thanks for coming up with one, I could not figure
out one.


I committed the testcase as gcc.dg/c90-array-quals.c

Thanks,
Andrew Pinski


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