diff options
| author | Jimmy Kwa <[email protected]> | 2010-11-15 13:10:19 -0800 |
|---|---|---|
| committer | Jimmy Kwa <[email protected]> | 2010-11-15 13:10:19 -0800 |
| commit | a937a4b354b60999a011970d054cd6c478be130d (patch) | |
| tree | 7e020bf8abe1e6e99316984da0be924396eec53e /decuda_to_ptxplus/decuda.y | |
| parent | bf981f1c32f6248b5e3f0f5b3585fcb0e1daca61 (diff) | |
Cleaned up decuda_to_ptxplus code to remove compiler warnings
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 8119]
Diffstat (limited to 'decuda_to_ptxplus/decuda.y')
| -rw-r--r-- | decuda_to_ptxplus/decuda.y | 8 |
1 files changed, 6 insertions, 2 deletions
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 |
