This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
This patch solve a problem when using parallel doublebar '||'. The old source is: ... case LEX_IS_DOUBLEBAR_1ST: ch2 = GET (); if (ch2 != '|') { UNGET (ch2); goto de_fault; } /* Reset back to state 1 and pretend that we are parsing a line from just after the first white space. */ state = 1; PUT ('|'); PUT ('|'); break; ... If after the first "PUT ('|')", the output buffer is full, then the second "PUT ('|')" will NOT be executed and the second '|' will be dropped. See the definition of macro "PUT (pch)". This problem occurs occasionally. We solved it by putting one '|' in one state. - Jie
Attachment:
doublebar-patch.diff
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |