This is the mail archive of the binutils@sourceware.org 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]

Re: PATCH: Fix ia64 gcc warnings


On Thu, Nov 03, 2005 at 12:20:33PM -0800, H. J. Lu wrote:
> On Thu, Nov 03, 2005 at 10:45:41AM -0800, James E Wilson wrote:
> > On Wed, 2005-11-02 at 09:13, H. J. Lu wrote:
> > > On Linux/ia64, I got warnings like
> > > /net/gnu-13/export/gnu/src/binutils-import/binutils/opcodes/m68k-dis.c:
> > > In function `print_insn_m68k':
> > > /net/gnu-13/export/gnu/src/binutils-import/binutils/opcodes/m68k-dis.c:1354:
> > > warning: variable 'buffer' might be clobbered by `longjmp' or `vfork'
> > > make[6]: *** [m68k-dis.lo] Error 1 
> > 
> > This is unlikely to be an IA-64 problem.  This would more likely be a
> > gcc version problem, and you didn't mention what gcc version you are
> > using.
> > 
> > I was able to reproduce this with gcc-2.96 and gcc-3.0.  I can not
> > reproduce this with gcc-3.3 or gcc-4.1.  It looks like this was a bug in
> > old gcc versions that was fixed years ago.
> 
> I used
> 
> gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-53)
> 
> and
> 
> gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)
> 
> They both have this problem. Is that a regression in gcc 3.4? I will
> check out gcc 4.0 and 4.1.

Both gcc 4.0 and gcc 4.1 generated

gcc -DHAVE_CONFIG_H -I.
-I/net/gnu-13/export/gnu/src/binutils-import/binutils/opcodes -I.
-D_GNU_SOURCE -I.
-I/net/gnu-13/export/gnu/src/binutils-import/binutils/opcodes -I../bfd
-I/net/gnu-13/export/gnu/src/binutils-import/binutils/opcodes/../include
-I/net/gnu-13/export/gnu/src/binutils-import/binutils/opcodes/../bfd
-I/net/gnu-13/export/gnu/src/binutils-import/binutils/opcodes/../intl
-I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g
-O2 -c
/net/gnu-13/export/gnu/src/binutils-import/binutils/opcodes/m68k-dis.c
-o m68k-dis.o
/net/gnu-13/export/gnu/src/binutils-import/binutils/opcodes/m68k-dis.c:
In function `print_insn_m68k':
/net/gnu-13/export/gnu/src/binutils-import/binutils/opcodes/m68k-dis.c:1354:
warning: variable 'buffer' might be clobbered by `longjmp' or `vfork'

Jim, did you use "--enable-targets=all" when you were configuring
binutils on ia64?

H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]