[Bug preprocessor/25775] New: No removal of redundant referencing / dereferencing
othojunk at yahoo dot com
gcc-bugzilla@gcc.gnu.org
Thu Jan 12 19:27:00 GMT 2006
The preprocessor (or any subsequent component) does not remove superfluous
referencing and dereferencing. For instance take the example of accessing the
address of an element in an array.
&(data[i])
The preprocessor or at least another part should convert this to the equivalent
of
(data + i)
Similarly the redundant de/referencing of &*&*&*variable is not be removed
I know that this can be done from the coders side but in my case some nice
tricks with macros and other things make it undesireable to code by hand.
--
Summary: No removal of redundant referencing / dereferencing
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: othojunk at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25775
More information about the Gcc-bugs
mailing list