2010-11-04 Tristan Gingold <gingold@adacore.com>
* makefile.vms (CFLAGS): Make badalias warnings informational. * vms-lib.c (vms_lib_bread): Avoid arithmetic on void pointer.
This commit is contained in:
parent
129b5d55a3
commit
52e00d5033
@ -1,3 +1,8 @@
|
|||||||
|
2010-11-04 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
|
* makefile.vms (CFLAGS): Make badalias warnings informational.
|
||||||
|
* vms-lib.c (vms_lib_bread): Avoid arithmetic on void pointer.
|
||||||
|
|
||||||
2010-11-04 Joseph Myers <joseph@codesourcery.com>
|
2010-11-04 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
* elf-attrs.c (_bfd_elf_merge_unknown_attribute_low,
|
* elf-attrs.c (_bfd_elf_merge_unknown_attribute_low,
|
||||||
|
@ -37,7 +37,7 @@ else
|
|||||||
OPT=/noopt/debug
|
OPT=/noopt/debug
|
||||||
CFLAGS=/name=(as_is,shortened)/include=([],"../include")\
|
CFLAGS=/name=(as_is,shortened)/include=([],"../include")\
|
||||||
/define=("unlink=remove",DEBUGDIR="""GNU$$DEBUGDIR:""",$(DEFS))\
|
/define=("unlink=remove",DEBUGDIR="""GNU$$DEBUGDIR:""",$(DEFS))\
|
||||||
/warns=(infor=missingreturn)$(OPT)
|
/warns=(infor=(missingreturn,badansialias))$(OPT)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
libbfd.olb: $(OBJS)
|
libbfd.olb: $(OBJS)
|
||||||
|
@ -951,11 +951,12 @@ vms_lib_dcx (struct vms_lib_iovec *vec, unsigned char *buf, file_ptr nbytes)
|
|||||||
/* Standard IOVEC function. */
|
/* Standard IOVEC function. */
|
||||||
|
|
||||||
static file_ptr
|
static file_ptr
|
||||||
vms_lib_bread (struct bfd *abfd, void *buf, file_ptr nbytes)
|
vms_lib_bread (struct bfd *abfd, void *vbuf, file_ptr nbytes)
|
||||||
{
|
{
|
||||||
struct vms_lib_iovec *vec = (struct vms_lib_iovec *) abfd->iostream;
|
struct vms_lib_iovec *vec = (struct vms_lib_iovec *) abfd->iostream;
|
||||||
file_ptr res;
|
file_ptr res;
|
||||||
file_ptr chunk;
|
file_ptr chunk;
|
||||||
|
unsigned char *buf = (unsigned char *)vbuf;
|
||||||
|
|
||||||
/* Do not read past the end. */
|
/* Do not read past the end. */
|
||||||
if (vec->where >= vec->file_len)
|
if (vec->where >= vec->file_len)
|
||||||
@ -1071,7 +1072,7 @@ vms_lib_bread (struct bfd *abfd, void *buf, file_ptr nbytes)
|
|||||||
}
|
}
|
||||||
if (buf != NULL)
|
if (buf != NULL)
|
||||||
{
|
{
|
||||||
*(unsigned char *)buf = c;
|
*buf = c;
|
||||||
buf++;
|
buf++;
|
||||||
}
|
}
|
||||||
nbytes--;
|
nbytes--;
|
||||||
|
Loading…
Reference in New Issue
Block a user