Skip to content
Snippets Groups Projects
Commit 4ea73bfa authored by Jeff Law's avatar Jeff Law
Browse files

fold-const.c (extract_array_ref): Handle more cases, do some useful canonicalization of the base.

        * fold-const.c (extract_array_ref): Handle more cases,
        do some useful canonicalization of the base.
        (fold_binary): Explicitly deal with arrays of zero-sized
        structures during folding of &a[i] == &a[j].

        * gcc.dg/tree-ssa/foldaddr-1.c: New test.

From-SVN: r100391
parent aa7f9102
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment