re PR rtl-optimization/44941 (ICE: RTL check: expected code 'mem', have 'reg' in...
authorRichard Guenther <rguenther@suse.de>
Mon, 19 Jul 2010 15:39:51 +0000 (15:39 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 19 Jul 2010 15:39:51 +0000 (15:39 +0000)
commit8b4c365c560219ff8d4cf1f34857bcbf7d109325
tree0ae59fd9f0d195c2d6333012468dd2a2a43fcd65
parentab73eba8bf38a703e40b5e5077b51408fb715d67
re PR rtl-optimization/44941 (ICE: RTL check: expected code 'mem', have 'reg' in emit_block_move_hints, at expr.c:1189)

2010-07-19  Richard Guenther  <rguenther@suse.de>

PR middle-end/44941
* expr.c (emit_block_move_hints): Move zero size check first.
Move asserts to more useful places.
* calls.c (load_register_parameters): Check for zero size.

* gcc.c-torture/compile/pr44941.c: New testcase.

From-SVN: r162308
gcc/ChangeLog
gcc/calls.c
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr44941.c [new file with mode: 0644]