aboutsummaryrefslogtreecommitdiff
path: root/src/cuda-sim/ptxinfo.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/cuda-sim/ptxinfo.y')
-rw-r--r--src/cuda-sim/ptxinfo.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cuda-sim/ptxinfo.y b/src/cuda-sim/ptxinfo.y
index 8bc1306..e4ba6b2 100644
--- a/src/cuda-sim/ptxinfo.y
+++ b/src/cuda-sim/ptxinfo.y
@@ -51,7 +51,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
%token SEMICOLON
%token QUOTE
%token LINE
-%token WARNING
+%token <string_value> WARNING
%token FOR
%{
@@ -78,6 +78,7 @@ input: /* empty */
line: HEADER INFO COLON line_info
| HEADER IDENTIFIER COMMA LINE INT_OPERAND SEMICOLON WARNING
+ | HEADER WARNING { printf("GPGPU-Sim: ptxas %s\n", $2); }
;
line_info: function_name