diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-08-25 14:06:39 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-08-25 14:06:39 +0000 |
commit | de0c53e1a7e99c0a4ef0cc940cc22378a4530059 (patch) | |
tree | 94dc653a8a8d09072630465fd3eb97e19d4c0a5e /gcc/config | |
parent | e066ca6cb03e2b9a8822872b9e78a4e1226eef74 (diff) | |
download | gcc-de0c53e1a7e99c0a4ef0cc940cc22378a4530059.tar.gz |
* config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
(nvptx_reorg_subreg): Pass insn pattern to asm_operands.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227169 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/nvptx/nvptx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index 2e404eee4a3..e6853680078 100644 --- a/gcc/config/nvptx/nvptx.c +++ b/gcc/config/nvptx/nvptx.c @@ -321,7 +321,8 @@ nvptx_write_function_decl (std::stringstream &s, const char *name, const_tree de /* Declare argument types. */ if ((args != NULL_TREE - && !(TREE_CODE (args) == TREE_LIST && TREE_VALUE (args) == void_type_node)) + && !(TREE_CODE (args) == TREE_LIST + && TREE_VALUE (args) == void_type_node)) || is_main || return_in_mem || DECL_STATIC_CHAIN (decl)) @@ -1917,7 +1918,7 @@ nvptx_reorg_subreg (void) { next = NEXT_INSN (insn); if (!NONDEBUG_INSN_P (insn) - || asm_noperands (insn) >= 0 + || asm_noperands (PATTERN (insn)) >= 0 || GET_CODE (PATTERN (insn)) == USE || GET_CODE (PATTERN (insn)) == CLOBBER) continue; |