diff options
author | Nathan Sidwell <nathan@acm.org> | 2015-08-25 14:06:39 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2015-08-25 14:06:39 +0000 |
commit | 1fe6befc36b72cc4d3abd80ac18c934e1e2459be (patch) | |
tree | 94dc653a8a8d09072630465fd3eb97e19d4c0a5e /gcc | |
parent | e4cdf6a8c506f03903c614ec14cc8152d52d6a4e (diff) | |
download | gcc-1fe6befc36b72cc4d3abd80ac18c934e1e2459be.zip gcc-1fe6befc36b72cc4d3abd80ac18c934e1e2459be.tar.gz gcc-1fe6befc36b72cc4d3abd80ac18c934e1e2459be.tar.bz2 |
nvptx.c (nvptx_write_function_decl): Reformat.
* config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
(nvptx_reorg_subreg): Pass insn pattern to asm_operands.
From-SVN: r227169
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/nvptx/nvptx.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 517d1a4..bd2e72f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-08-25 Nathan Sidwell <nathan@acm.org> + + * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat. + (nvptx_reorg_subreg): Pass insn pattern to asm_operands. + 2015-08-25 Richard Biener <rguenther@suse.de> PR middle-end/67306 diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index 2e404ee..e685368 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; |