Summary: | '% found after symbol for non-H-TICK-HEX tokens | ||
---|---|---|---|
Product: | binutils | Reporter: | Bernhard Reutner-Fischer <rep.dot.nop> |
Component: | gas | Assignee: | unassigned |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bug-binutils, dj, nickc |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Attachments: | Only enable tick warning message when tick syntax is supported. Do not use a line number of 0 in warning messages |
Description
Bernhard Reutner-Fischer
2008-09-11 12:35:23 UTC
Created attachment 2956 [details]
Only enable tick warning message when tick syntax is supported. Do not use a line number of 0 in warning messages
Hi Bernhard, Please could you try out the uploaded patch. I think that it will resolve the issue for you. It makes two changes - the warning message about the tick syntax is now only issued if the target supports the syntax, and line numbers of 0 are now ignored when displaying warning messages. (There is no easy way to get an accurate line number at the point where this warning message is generated, so I elected to just suppress line numbers of 0). Cheers Nick The patch disables the warning for me, yes. Shouldn't the warning only be issued if (the arch supports it and the param was given and) "H'" was seen as opposed to any occurance of "'"? thanks, Subject: Re: '% found after symbol for non-H-TICK-HEX tokens The warning is for people who use the ' character without realizing exactly how it will work. It does not do what most people expect, unless they've carefully read the documentation. For example, the string hello'there gets converted to hello116here, which is rarely useful, and thus should generate a warning. It's more useful like this: .byte 'h, 0x07, '$, 0x0a Where there would be no warning anyway. Ports that support h' hex use it like this: .byte H'07, H'FE, H'0A |