Re: [PATCH][C] Do not expand array-refs via pointer arithmetic

2011-04-21 Thread Joseph S. Myers
On Thu, 14 Apr 2011, Richard Guenther wrote: > 2011-04-14 Richard Guenther > > * c-typeck.c (build_unary_op): Do not expand array-refs via > pointer arithmetic. Only adjust qualifiers for function types. OK. -- Joseph S. Myers jos...@codesourcery.com

[PATCH][C] Do not expand array-refs via pointer arithmetic

2011-04-14 Thread Richard Guenther
This patch adjusts the C frontend to retain array-refs in address-taking operations instead of expanding them via pointer arithmetic. As seen in PR48571 we can't re-construct array-refs in the middle-end, thus we should keep information as specified by the source level. For int a[10]; int *foo