diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2007-07-05 20:04:36 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gcc.gnu.org> | 2007-07-05 20:04:36 +0000 |
commit | d8d72314c4667d88f62059c0964ea37756676f29 (patch) | |
tree | d66aee4fdb3f5db795e8193be9208dcc7e69501e /gcc/function.h | |
parent | 2ab16fe0d1c891de826310f2c0a48641a1de65f4 (diff) | |
download | gcc-d8d72314c4667d88f62059c0964ea37756676f29.zip gcc-d8d72314c4667d88f62059c0964ea37756676f29.tar.gz gcc-d8d72314c4667d88f62059c0964ea37756676f29.tar.bz2 |
function.c (match_asm_constraints_1, [...]): New.
2007-07-05 Paolo Bonzini <bonzini@gnu.org>
* function.c (match_asm_constraints_1, rest_of_match_asm_constraints,
pass_match_asm_constraints): New.
* passes.c (init_optimization_passes): Add new pass.
* stmt.c (expand_asm_operands): Set cfun->has_asm_statement.
* function.h (struct function): Add has_asm_statement bit.
(current_function_has_asm_statement): New.
* tree-pass.h (pass_match_asm_constraints): New.
From-SVN: r126385
Diffstat (limited to 'gcc/function.h')
-rw-r--r-- | gcc/function.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/function.h b/gcc/function.h index bc3378b..0353983 100644 --- a/gcc/function.h +++ b/gcc/function.h @@ -414,6 +414,9 @@ struct function GTY(()) /* Nonzero if function being compiled has nonlocal gotos to parent function. */ unsigned int has_nonlocal_goto : 1; + + /* Nonzero if function being compiled has an asm statement. */ + unsigned int has_asm_statement : 1; /* Nonzero if the current function is a thunk, i.e., a lightweight function implemented by the output_mi_thunk hook) that just @@ -517,6 +520,7 @@ extern int trampolines_created; #define current_function_has_nonlocal_label (cfun->has_nonlocal_label) #define current_function_calls_unwind_init (cfun->calls_unwind_init) #define current_function_has_nonlocal_goto (cfun->has_nonlocal_goto) +#define current_function_has_asm_statement (cfun->has_asm_statement) #define return_label (cfun->x_return_label) #define naked_return_label (cfun->x_naked_return_label) |