[patch fortran] Fix PR 30865

Tobias Burnus burnus@net-b.de
Tue Feb 27 22:04:00 GMT 2007


Thomas Koenig schrieb:
>> The new test fails for me on x86_64-unknown-linux-gnu at all
>> optimization levels.
> I don't have a 64-bit system to test this on.  Can you send
> me the -fdump-tree-original file for the test case (or attach
> it to the PR)?
I don't think it has anything to do with 64-bit systems. The GIMPLE tree
looks as follows (it is a bit clearer than the original tree, but they
are very similar):

    D.1402 = *opt1;
    D.1403 = (int8) D.1402;
    D.1378 = &D.1403 != 0B;
    if (D.1378)

The comparison should be  "D.1403 != 0B" not "&D.1403 != 0B;". The
latter is always true.


More information about the Gcc-patches mailing list