This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR bootstrap/12269: Fix ia64 bootstrap on mainline
On Mon, Sep 15, 2003 at 04:55:19AM -0600, Roger Sayle wrote:
>
>
> My fears were right, the bootstrap failure was caused by a comparison
> mode mismatch, indeed caused by my patch to move NOT/NEG simplifications
> into simplify-rtx.c. In simplify_unary_operation, when inverting a
> comparison, such as (NOT (EQ X Y)), mode is the mode of the NOT, and
> op_mode is the mode of the EQ. Neither is the actual mode of the
> comparison! For gcc.c-torture/execute/builtins/string-3-lib.c, this
> then leads to use simplifying the comparison in BImode, where not
> surprisingly "n < 2" is always true.
>
> Thanks to the infrastructure added in the unreviewed patch above,
> we can now just pass VOIDmode as the mode of the comparison and
> simplify_gen_relational will work out what to do. This restores
> bootstrap for me on ia64-unknown-linux-gnu, all languages except
> Ada and treelang, including all the run-time libraries.
>
> This version of the patch has also been tested on i686-pc-linux-gnu
> with a complete "make bootstrap", all languages except treelang, and
> regression tested with a top-level "make -k check" with no new failures.
>
> Ok for mainline?
It works.
Linux/ia64:
http://gcc.gnu.org/ml/gcc-testresults/2003-09/msg00561.html
Linux/ia32:
http://gcc.gnu.org/ml/gcc-testresults/2003-09/msg00558.html
H.J.