re PR rtl-optimization/10876 (Segfault when compiling KDE 3.1.2)
authorEric Botcazou <ebotcazou@libertysurf.fr>
Wed, 4 Jun 2003 06:52:17 +0000 (08:52 +0200)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 4 Jun 2003 06:52:17 +0000 (06:52 +0000)
commitef0139b122ef79e4773e2c495fff8075c68b0c6c
treebe14a3bf22a53b73725aac6854d2bfd28e23731e
parent74764b8442ec37ebd6b6b3e1fa154cee2f8a551a
re PR rtl-optimization/10876 (Segfault when compiling KDE 3.1.2)

PR optimization/10876
* config/sparc/sparc.h (CONST_OK_FOR_LETTER): Add
new 'O' constraint for constant 4096.
(CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
* config/sparc/sparc.md (adddi3 expander): Canonicalize pattern.
Do not transform into MINUS insn for constant 4096.
(*adddi3_sp64 insn): Canonicalize pattern. Add new alternative
for constant 4096 as third operand.
(addsi3 expander): Remove.
(*addsi3 insn): Rename into 'addsi3'. Canonicalize pattern. Add
new alternative for constant 4096 as third operand.
(subdi3 expander): Do not transform into PLUS insn for constant 4096.
(*subdi3_sp64 insn): Add new alternative for constant 4096 as third
operand.
(subsi3 expander): Remove.
(*subsi3 insn): Rename into 'subsi3'. Add new alternative for
constant 4096 as third operand.
* doc/md.texi (Machine Constraints): Document new 'O' constraint for
the SPARC port.

From-SVN: r67426
gcc/ChangeLog
gcc/config/sparc/sparc.h
gcc/config/sparc/sparc.md
gcc/doc/md.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20030604-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/sparc-constant-1.c [new file with mode: 0644]