projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32de057
)
(eval_if_expression): End expression with '\n', not '\0' so '\0' can
author
Richard Kenner
<kenner@gcc.gnu.org>
Fri, 29 Dec 1995 23:23:19 +0000
(18:23 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Fri, 29 Dec 1995 23:23:19 +0000
(18:23 -0500)
be diagnosed properly.
From-SVN: r10903
gcc/cccp.c
patch
|
blob
|
history
diff --git
a/gcc/cccp.c
b/gcc/cccp.c
index 83a7483274a0a52b045b04c0ad46fca56840357e..bf20b2ad00aa6cb4925df13e6c3e6f95e32dc6f9 100644
(file)
--- a/
gcc/cccp.c
+++ b/
gcc/cccp.c
@@
-6977,6
+6977,7
@@
eval_if_expression (buf, length)
pcp_inside_if = 0;
delete_macro (save_defined); /* clean up special symbol */
+ temp_obuf.buf[temp_obuf.length] = '\n';
value = parse_c_expression ((char *) temp_obuf.buf);
free (temp_obuf.buf);