PR f/9258
commit25bf8ba363ef7ca3f91fce7433d46b5399562b01
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Jan 2003 12:43:35 +0000 (15 12:43 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Jan 2003 12:43:35 +0000 (15 12:43 +0000)
tree6deb389e7c733b4c85650e832ec219085b0ff935
parentaa816fb8e73f24a9914a7e42fb49aa2fcaeea602
PR f/9258
* global.c (struct allocno): Add no_stack_reg.
(global_conflicts): Set no_stack_reg.
(find_reg): Use it.

* convert.c (convert_to_real): Fold - and abs only when profitable.
* fold-const.c (fold): Fold truncates in - and abs.

* gcc.c-torture/compile/20030115-1.c: New test.

* gcc.dg/i386-fpcvt-1.c: New test.
* gcc.dg/i386-fpcvt-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61329 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/convert.c
gcc/fold-const.c
gcc/global.c
gcc/testsuite/ChangeLog
gcc/testsuite/g77.f-torture/compile/20030115-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/i386-fpcvt-3.c [new file with mode: 0644]