projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add LIBS to linker command line (needed on Solaris)
[fw/sdcc]
/
src
/
SDCCpeeph.c
diff --git
a/src/SDCCpeeph.c
b/src/SDCCpeeph.c
index 37b8634bcba38368d5878972564024889f53c83e..0ae38500ffee4d56c6503cb49da3918c02c34eb7 100644
(file)
--- a/
src/SDCCpeeph.c
+++ b/
src/SDCCpeeph.c
@@
-272,10
+272,15
@@
printLine (lineNode * head, FILE * of)
/* don't indent comments & labels */
if (head->line &&
(*head->line == ';' ||
/* don't indent comments & labels */
if (head->line &&
(*head->line == ';' ||
- head->line[strlen (head->line) - 1] == ':'))
+ head->line[strlen (head->line) - 1] == ':'))
{
fprintf (of, "%s\n", head->line);
fprintf (of, "%s\n", head->line);
- else
+ } else {
+ if (head->isInline && *head->line=='#') {
+ // comment out preprocessor directives in inline asm
+ fprintf (of, ";");
+ }
fprintf (of, "\t%s\n", head->line);
fprintf (of, "\t%s\n", head->line);
+ }
head = head->next;
}
}
head = head->next;
}
}