projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9382dad
)
PR ld/12613
author
Alan Modra
<amodra@gmail.com>
Tue, 29 Mar 2011 02:52:36 +0000
(
02:52
+0000)
committer
Alan Modra
<amodra@gmail.com>
Tue, 29 Mar 2011 02:52:36 +0000
(
02:52
+0000)
* ldlex.l (lex_warn_invalid): Don't assume char is unsigned.
ld/ChangeLog
patch
|
blob
|
history
ld/ldlex.l
patch
|
blob
|
history
diff --git
a/ld/ChangeLog
b/ld/ChangeLog
index bcfd3016db93be40c7dd7d835276f9d1ba849baa..e41fc137d8bef0c71565a548af9b24c3ef0aeafc 100644
(file)
--- a/
ld/ChangeLog
+++ b/
ld/ChangeLog
@@
-1,3
+1,8
@@
+2011-03-29 Alan Modra <amodra@gmail.com>
+
+ PR ld/12613
+ * ldlex.l (lex_warn_invalid): Don't assume char is unsigned.
+
2011-03-26 John Marino <binutils@marino.st>
* configure.host: Update *-*-dragonfly* host entry.
diff --git
a/ld/ldlex.l
b/ld/ldlex.l
index a1c954837a0fde2c9e95cf16f1dd5501088ff30d..013c07e473afa49044779c0aeee34809152eb499 100644
(file)
--- a/
ld/ldlex.l
+++ b/
ld/ldlex.l
@@
-689,7
+689,7
@@
lex_warn_invalid (char *where, char *what)
if (! ISPRINT (*what))
{
- sprintf (buf, "\\%03o",
(unsigned int) *
what);
+ sprintf (buf, "\\%03o",
*(unsigned char *)
what);
what = buf;
}