From b6661da800739b0fca9e01ba6d5afaca4f286d84 Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Sat, 17 Jul 2010 00:06:40 -0800 Subject: - bug fix: parsing hex int constants didn't have a-fA-F!?! - modify template to use printf from kernel (this works on our Fermi card--want it working on simulator for debugging) - add support for extern function declarations (so don't try to assemble them)... printf is extern [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 6862] --- src/cuda-sim/ptx.y | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cuda-sim/ptx.y') diff --git a/src/cuda-sim/ptx.y b/src/cuda-sim/ptx.y index 9ddb214..4f1502a 100644 --- a/src/cuda-sim/ptx.y +++ b/src/cuda-sim/ptx.y @@ -235,6 +235,7 @@ function_ident_param: IDENTIFIER { add_function_name($1); } LEFT_PAREN param_lis function_decl_header: ENTRY_DIRECTIVE { $$ = 1; g_func_decl=1; } | FUNC_DIRECTIVE { $$ = 0; g_func_decl=1; } + | EXTERN_DIRECTIVE FUNC_DIRECTIVE { $$ = 2; g_func_decl=1; } ; param_list: param_entry { add_directive(); } -- cgit v1.3