diff options
author | Glen Nakamura <glen@imodulo.com> | 2003-02-21 08:07:25 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2003-02-21 08:07:25 +0000 |
commit | 9e7d0b92a95ffe1fc14f72cafeef322b7723c1c3 (patch) | |
tree | 3711b274afdafc286d6a6ed6aef58424b13479b0 /gcc/builtins.c | |
parent | e9019af61669bd7fcb58f6b2e1f0f7c8a0a3ad13 (diff) | |
download | gcc-9e7d0b92a95ffe1fc14f72cafeef322b7723c1c3.zip gcc-9e7d0b92a95ffe1fc14f72cafeef322b7723c1c3.tar.gz gcc-9e7d0b92a95ffe1fc14f72cafeef322b7723c1c3.tar.bz2 |
re PR rtl-optimization/8613 (-O2 optimization generates wrong code)
PR optimization/8613
* builtins.c (expand_builtin): Emit postincrements before expanding
builtin functions.
From-SVN: r63207
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index cdb9bb2..25ae873 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -4012,6 +4012,9 @@ expand_builtin (exp, target, subtarget, mode, ignore) tree arglist = TREE_OPERAND (exp, 1); enum built_in_function fcode = DECL_FUNCTION_CODE (fndecl); + /* Perform postincrements before expanding builtin functions. */ + emit_queue (); + if (DECL_BUILT_IN_CLASS (fndecl) == BUILT_IN_MD) return (*targetm.expand_builtin) (exp, target, subtarget, mode, ignore); |