]> git.ipfire.org Git - thirdparty/gcc.git/commit
fold-const.c (fold_minmax): New static function.
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 16 Jan 2006 14:26:32 +0000 (14:26 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 16 Jan 2006 14:26:32 +0000 (14:26 +0000)
commit292f30c5d777603851ec3dd576a7038c8b64c632
tree10316cdc614740e5e71d0548c7f3e20c0d1c8902
parent8c215327bb78691d73752d47ead5057aa6042ef4
fold-const.c (fold_minmax): New static function.

* fold-const.c (fold_minmax): New static function.
(fold_binary) <MIN_EXPR>: Call it.
<MAX_EXPR>: Likewise.
* stor-layout.c (place_field): Use DECL_SIZE consistently
in the computation of the new record size.

Co-Authored-By: Andrew Pinski <pinskia@physics.uc.edu>
Co-Authored-By: Roger Sayle <roger@eyesopen.com>
From-SVN: r109747
gcc/ChangeLog
gcc/fold-const.c
gcc/stor-layout.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/minmax-1.c [new file with mode: 0644]