* p-exp.y: parse error before "xmalloc"
@ 2004-10-15 17:50 Michael Chastain
2004-10-15 17:55 ` Michael Chastain
0 siblings, 1 reply; 2+ messages in thread
From: Michael Chastain @ 2004-10-15 17:50 UTC (permalink / raw)
To: gdb
This just happened on native i686-pc-linux-gnu with gcc 3.3.4.
I'll look into it.
gcc -c -g -O2 -I. -I/berman/fsf/_today_/source/gdb/HEAD/src/gdb -I/berman/fsf/_today_/source/gdb/HEAD/src/gdb/config -DLOCALEDIR="\"/berman/fsf/_today_/berman/install/target/native/gdb/HEAD/share/locale\"" -DHAVE_CONFIG_H -I/berman/fsf/_today_/source/gdb/HEAD/src/gdb/../include/opcode -I/berman/fsf/_today_/source/gdb/HEAD/src/gdb/../readline/.. -I../bfd -I/berman/fsf/_today_/source/gdb/HEAD/src/gdb/../bfd -I/berman/fsf/_today_/source/gdb/HEAD/src/gdb/../include -I../intl -I/berman/fsf/_today_/source/gdb/HEAD/src/gdb/../intl -DMI_OUT=1 -DTUI=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral -Wunused-label -Wunused-function p-exp.c
/berman/fsf/_today_/source/gdb/HEAD/src/gdb/p-exp.y: In function `uptok':
/berman/fsf/_today_/source/gdb/HEAD/src/gdb/p-exp.y:1054: error: parse error before "xmalloc"
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: p-exp.y: parse error before "xmalloc"
2004-10-15 17:50 p-exp.y: parse error before "xmalloc" Michael Chastain
@ 2004-10-15 17:55 ` Michael Chastain
0 siblings, 0 replies; 2+ messages in thread
From: Michael Chastain @ 2004-10-15 17:55 UTC (permalink / raw)
To: gdb, cagney
It's the problem that Andreas Schwab noticed.
p-exp.y says:
char *uptokstart = (char *)malloc(namelen+1);
p-exp.c, after substitution, says:
char *uptokstart = (char *xmalloc(namelen+1);
I'll go ahead and check in a patch unless someone beats me to it.
Michael
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-15 15:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-15 17:50 p-exp.y: parse error before "xmalloc" Michael Chastain
2004-10-15 17:55 ` Michael Chastain
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).