From a937a4b354b60999a011970d054cd6c478be130d Mon Sep 17 00:00:00 2001 From: Jimmy Kwa Date: Mon, 15 Nov 2010 13:10:19 -0800 Subject: Cleaned up decuda_to_ptxplus code to remove compiler warnings [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 8119] --- decuda_to_ptxplus/decuda.y | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'decuda_to_ptxplus/decuda.y') diff --git a/decuda_to_ptxplus/decuda.y b/decuda_to_ptxplus/decuda.y index 52065d2..d4a18f6 100644 --- a/decuda_to_ptxplus/decuda.y +++ b/decuda_to_ptxplus/decuda.y @@ -285,8 +285,12 @@ constMemoryStatements : constMemoryStatement constMemoryStatement : POUND constMemoryTypes constMemoryList { g_instList->setConstMemoryType($2); } NEWLINE -constMemoryTypes : DDOTU32 { $$=".u32"} - | DDOTF32 { $$=".f32"} +constMemoryTypes : DDOTU32 { char tempString[5]; + strcpy(tempString, ".u32"); + $$ = tempString; } + | DDOTF32 { char tempString[5]; + strcpy(tempString, ".f32"); + $$ = tempString; } ; constMemoryList : constMemory -- cgit v1.3