]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
14 years agoAdd "acc" register. Revise register order and names.
Kevin Buettner [Thu, 24 Jun 2010 20:38:05 +0000 (20:38 +0000)]
Add "acc" register.  Revise register order and names.

14 years ago * flock.cc (allow_others_to_sync): Use small stack buffer rather
Corinna Vinschen [Tue, 22 Jun 2010 14:53:05 +0000 (14:53 +0000)]
* flock.cc (allow_others_to_sync): Use small stack buffer rather
than big temp buffer.  Fix typo in comment.
(lf_setlock): Revert to using tmp_pathbuf.
(lf_getlock): Ditto.

14 years ago * sec_acl.cc (setacl): Use the long time unused ACL_DEFAULT_SIZE
Corinna Vinschen [Tue, 22 Jun 2010 09:54:36 +0000 (09:54 +0000)]
* sec_acl.cc (setacl): Use the long time unused ACL_DEFAULT_SIZE
instead of a constant value.
* security.cc (alloc_sd): Ditto.

14 years ago2010-06-21 Rafael Espindola <espindola@google.com>
Rafael Ávila de Espíndola [Mon, 21 Jun 2010 21:21:25 +0000 (21:21 +0000)]
2010-06-21  Rafael Espindola  <espindola@google.com>

* fileread.cc (Input_file::find_fie): New
(Input_file::open): Use Input_file::find_fie.
* fileread.h (Input_file::find_fie): New
* plugin.cc (set_extra_library_path): New.
(Plugin::load): Add set_extra_library_path to the transfer vector.
(Plugin_manager::set_extra_library_path): New.
(Plugin_manager::add_input_file): Use the extra search path if set.
(set_extra_library_path(): New.
* plugin.h (Plugin_manager): Add set_extra_library_path and
extra_search_path_.
2010-06-21  Rafael Espindola  <espindola@google.com>

* plugin-api.h (ld_plugin_set_extra_library_path): New.
(ld_plugin_tag): Add LDPT_SET_EXTRA_LIBRARY_PATH.
(ld_plugin_tv): Add tv_set_extra_library_path.

14 years ago* tmpbuf.h: New file.
Christopher Faylor [Mon, 21 Jun 2010 19:55:12 +0000 (19:55 +0000)]
* tmpbuf.h: New file.
* flock.cc: Include tmpbuf.h for new tmpbuf functionality.
(allow_others_to_sync): Use tmpbuf rather than tmp_pathbuf.  Explain why.
(lf_setlock): For consistency, use tmpbuf rather than tmp_pathbuf.
(lf_getlock): Ditto.

14 years ago* bootstrap-lto.mk: New.
Alexandre Oliva [Mon, 21 Jun 2010 19:39:32 +0000 (19:39 +0000)]
* bootstrap-lto.mk: New.

14 years ago* dcrt0.cc (__api_fatal): Temporarily generate a stackdump.
Christopher Faylor [Mon, 21 Jun 2010 17:09:33 +0000 (17:09 +0000)]
* dcrt0.cc (__api_fatal): Temporarily generate a stackdump.

14 years ago * dwarf2.h (enum dwarf_type): Add DW_ATE_UTF.
Jakub Jelinek [Mon, 21 Jun 2010 16:39:14 +0000 (16:39 +0000)]
* dwarf2.h (enum dwarf_type): Add DW_ATE_UTF.

14 years ago* tls_pbuf.cc (tmp_pathbuf::w_get): Report what's failing when too many buffers
Christopher Faylor [Mon, 21 Jun 2010 05:30:42 +0000 (05:30 +0000)]
* tls_pbuf.cc (tmp_pathbuf::w_get): Report what's failing when too many buffers
are in use.

14 years ago2010-06-18 Rafael Espindola <espindola@google.com>
Rafael Ávila de Espíndola [Fri, 18 Jun 2010 16:53:23 +0000 (16:53 +0000)]
2010-06-18  Rafael Espindola  <espindola@google.com>

* plugin.h (ld_plugin_add_input_file, ld_plugin_add_input_library):
Make argument const.

2010-06-18  Rafael Espindola  <espindola@google.com>

* plugin.cc (add_input_file,add_input_library)
(Plugin_manager::add_input_file): Make filename arguments const.
* plugin.h (Plugin_manager::add_input_file): Make filename arguments
const.

14 years ago2010-06-18 Pavel Pisa <ppisa4lists@pikron.com>
Jeff Johnston [Fri, 18 Jun 2010 16:26:25 +0000 (16:26 +0000)]
2010-06-18  Pavel Pisa <ppisa4lists@pikron.com>

        * libc/include/machine/ieeefp.h[__arm__][!__VFP_FP__]: Set to
        __IEEE_BIG_ENDIAN and set __IEEE_BYTES_LITTLE_ENDIAN appropriately
        based on __ARMEL flag.
        * libc/include/machine/endian.h: To set byte order to LITTLE_ENDIAN,
        check for __IEEE_LITTLE_ENDIAN or __IEEE_BYTES_LITTLE_ENDIAN.

14 years ago * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Fetch stat
Corinna Vinschen [Thu, 17 Jun 2010 10:25:15 +0000 (10:25 +0000)]
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Fetch stat
handle only after checking for NFS.

14 years agobfd:
Joseph Myers [Wed, 16 Jun 2010 00:36:03 +0000 (00:36 +0000)]
bfd:
* elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Decrease to 2.
* elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type,
elf32_tic6x_merge_arch_attributes, elf32_tic6x_merge_attributes,
elf32_tic6x_merge_private_bfd_data): New.
(bfd_elf32_bfd_merge_private_bfd_data,
elf_backend_obj_attrs_arg_type, elf_backend_obj_attrs_section,
elf_backend_obj_attrs_section_type, elf_backend_obj_attrs_vendor):
Define.
* elf32-tic6x.h (elf32_tic6x_merge_arch_attributes): Declare.

binutils:
* readelf.c (display_tic6x_attribute, process_tic6x_specific):
New.
(process_arch_specific): Call process_tic6x_specific for
EM_TI_C6000.

gas:
* config/tc-tic6x.c: Include elf/tic6x.h.
(tic6x_arch_attribute, tic6x_seen_insns): New.
(tic6x_arch_table, tic6x_arches): Add attribute values.
(tic6x_use_arch): Handle attribute settings.
(tic6x_attributes_set_explicitly, s_tic6x_c6xabi_attribute,
tic6x_attribute_table, tic6x_attributes,
tic6x_convert_symbolic_attribute): New.
(md_pseudo_table): Add c6xabi_attribute.
(md_assemble): Set tic6x_seen_insns and tic6x_arch_attribute.
(tic6x_set_attribute_int, tic6x_set_attributes): New.
(tic6x_end): Call tic6x_set_attributes.
* config/tc-tic6x.h (CONVERT_SYMBOLIC_ATTRIBUTE): Define.
(tic6x_convert_symbolic_attribute): Declare.

gas/testsuite:
* gas/elf/elf.exp: Set target_machine for tic6x-*-*.
* gas/elf/section2.e-tic6x, gas/tic6x/attr-arch-directive-1.d,
gas/tic6x/attr-arch-directive-1.s,
gas/tic6x/attr-arch-directive-2.d,
gas/tic6x/attr-arch-directive-2.s,
gas/tic6x/attr-arch-directive-3.d,
gas/tic6x/attr-arch-directive-3.s,
gas/tic6x/attr-arch-directive-4.d,
gas/tic6x/attr-arch-directive-4.s,
gas/tic6x/attr-arch-directive-5.d,
gas/tic6x/attr-arch-directive-5.s,
gas/tic6x/attr-arch-opts-c62x.d, gas/tic6x/attr-arch-opts-c64x+.d,
gas/tic6x/attr-arch-opts-c64x.d, gas/tic6x/attr-arch-opts-c674x.d,
gas/tic6x/attr-arch-opts-c67x+.d, gas/tic6x/attr-arch-opts-c67x.d,
gas/tic6x/attr-arch-opts-none-1.d,
gas/tic6x/attr-arch-opts-none-2.d,
gas/tic6x/attr-arch-opts-override-1.d,
gas/tic6x/attr-arch-opts-override-2.d, gas/tic6x/empty.s: New.

include/elf:
* tic6x-attrs.h: New.
* tic6x.h: Include elf/tic6x-attrs.h for attribute table.
(C6XABI_Tag_CPU_arch_none, C6XABI_Tag_CPU_arch_C62X,
C6XABI_Tag_CPU_arch_C67X, C6XABI_Tag_CPU_arch_C67XP,
C6XABI_Tag_CPU_arch_C64X, C6XABI_Tag_CPU_arch_C64XP,
C6XABI_Tag_CPU_arch_C674X): Define.

ld:
* emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.

ld/testsuite:
* ld-elf/orphan3.d: Allow section names starting '_'.
* ld-tic6x/attr-arch-c62x-c62x.d, ld-tic6x/attr-arch-c62x-c64x+.d,
ld-tic6x/attr-arch-c62x-c64x.d, ld-tic6x/attr-arch-c62x-c674x.d,
ld-tic6x/attr-arch-c62x-c67x+.d, ld-tic6x/attr-arch-c62x-c67x.d,
ld-tic6x/attr-arch-c62x.s, ld-tic6x/attr-arch-c64x+-c62x.d,
ld-tic6x/attr-arch-c64x+-c64x+.d, ld-tic6x/attr-arch-c64x+-c64x.d,
ld-tic6x/attr-arch-c64x+-c674x.d,
ld-tic6x/attr-arch-c64x+-c67x+.d, ld-tic6x/attr-arch-c64x+-c67x.d,
ld-tic6x/attr-arch-c64x+.s, ld-tic6x/attr-arch-c64x-c62x.d,
ld-tic6x/attr-arch-c64x-c64x+.d, ld-tic6x/attr-arch-c64x-c64x.d,
ld-tic6x/attr-arch-c64x-c674x.d, ld-tic6x/attr-arch-c64x-c67x+.d,
ld-tic6x/attr-arch-c64x-c67x.d, ld-tic6x/attr-arch-c64x.s,
ld-tic6x/attr-arch-c674x-c62x.d, ld-tic6x/attr-arch-c674x-c64x+.d,
ld-tic6x/attr-arch-c674x-c64x.d, ld-tic6x/attr-arch-c674x-c674x.d,
ld-tic6x/attr-arch-c674x-c67x+.d, ld-tic6x/attr-arch-c674x-c67x.d,
ld-tic6x/attr-arch-c674x.s, ld-tic6x/attr-arch-c67x+-c62x.d,
ld-tic6x/attr-arch-c67x+-c64x+.d, ld-tic6x/attr-arch-c67x+-c64x.d,
ld-tic6x/attr-arch-c67x+-c674x.d,
ld-tic6x/attr-arch-c67x+-c67x+.d, ld-tic6x/attr-arch-c67x+-c67x.d,
ld-tic6x/attr-arch-c67x+.s, ld-tic6x/attr-arch-c67x-c62x.d,
ld-tic6x/attr-arch-c67x-c64x+.d, ld-tic6x/attr-arch-c67x-c64x.d,
ld-tic6x/attr-arch-c67x-c674x.d, ld-tic6x/attr-arch-c67x-c67x+.d,
ld-tic6x/attr-arch-c67x-c67x.d, ld-tic6x/attr-arch-c67x.s: New.

14 years ago * fhandler_disk_file.cc (fhandler_base::fstat_by_nfs_ea): Use handle
Corinna Vinschen [Tue, 15 Jun 2010 15:10:42 +0000 (15:10 +0000)]
* fhandler_disk_file.cc (fhandler_base::fstat_by_nfs_ea): Use handle
returned by get_stat_handle.
(fhandler_base::fstat_helper): Reinstatiate code to re-open the file
when checking for executability if called via fstat.  Explain why.

14 years ago * dtable.cc (dtable::dup_worker): Reset path_conv handle in duplicated
Corinna Vinschen [Tue, 15 Jun 2010 12:05:15 +0000 (12:05 +0000)]
* dtable.cc (dtable::dup_worker): Reset path_conv handle in duplicated
fhandler.
* fhandler.cc (fhandler_base::fstatvfs): Keep handle in created
path_conv.
* fhandler.h (fhandler_base::get_stat_access): New method.
(fhandler_base::get_stat_handle): New method.
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Use handle
returned by get_stat_handle.  Only request inode from system if it
isn't already set in the fhandler, and only for filesystems supporting
them.
(fhandler_base::fstat_fs): Use handle returned by get_stat_handle.
Change the way open_fs is called.  Explain why.
(fhandler_base::fstat_helper): Use handle returned by get_stat_handle.
Never use 0 inode number.  Simplify executable recognition by re-using
get_stat_handle if file could be opened with sufficient rights.
(fhandler_disk_file::fstatvfs): Use handle returned by get_stat_handle.
(fhandler_disk_file::facl): Use handle returned by get_stat_handle in
GETACL and GETACLCNT cases.
(fhandler_disk_file::link): Use handle returned by get_stat_handle
instead of opening file here again.  Add comment.
(readdir_get_ino): Keep handle in created path_conv and drop
opening file.
* ntdll.h (wait_pending): New helper function.
* path.cc (symlink_info::check): Drop unused 'opt' parameter from
declaration.  Add path_conv_handle argument.
(path_conv::check): Make sure conv_handle is closed.  Keep
PC_KEEP_HANDLE flag in pflags_or.  Accommodate call to sym.check to
new args.
(path_conv::~path_conv): Close conv_handle.
(symlink_info::check_shortcut): Don't re-open file here, just use
incoming handle.  Drop goto's and label out.
(symlink_info::check_sysfile): Don't re-open file here, just use
incoming handle.  Keep track of file position to accommodate the fact
that file has been opened asynchronously in calling function.
(symlink_info::check_nfs_symlink): Don't re-open file here, just use
incoming handle.
(symlink_info::check): Drop unused 'opt' parameter.  Add
path_conv_handle argument.  Always try to open file with GENERIC_READ
rights first to allow reading file content w/o having to re-open the
file.  Drop back to READ_CONTROL | FILE_READ_ATTRIBUTES otherwise.
Call symlink test functions (except for check_reparse_point) only if
file could be opened with GENERIC_READ.  Keep file handle open if
PC_KEEP_HANDLE is set in pflags.
* path.h (enum pathconv_arg): Add PC_KEEP_HANDLE flag.
(class path_conv_handle): New class.
(class path_conv): Add conv_handle member.
(path_conv::operator =): Duplicate conv_handle.
(path_conv::handle): New method.
(path_conv::access): New method.
(path_conv::reset_conv_handle): New method.
(path_conv::close_conv_handle): New method.

14 years ago * fhandler_disk_file.cc (fhandler_disk_file::fstatvfs): Fix indentation.
Corinna Vinschen [Tue, 15 Jun 2010 09:58:56 +0000 (09:58 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::fstatvfs): Fix indentation.

14 years ago * fhandler_disk_file.cc (path_conv::get_ino_by_handle): Convert from
Corinna Vinschen [Tue, 15 Jun 2010 08:51:55 +0000 (08:51 +0000)]
* fhandler_disk_file.cc (path_conv::get_ino_by_handle): Convert from
static function to path_conv method.  Accommodate throughout.
(path_conv::ndisk_links): Unused, comment out.
* path.h (path_conv::get_ino_by_handle): Declare.
(path_conv::ndisk_links): Comment out declaration.

14 years ago * path.cc (path_conv::check): Return with ENOTDIR if component is a
Corinna Vinschen [Mon, 14 Jun 2010 21:16:41 +0000 (21:16 +0000)]
* path.cc (path_conv::check): Return with ENOTDIR if component is a
device.

14 years agogas/
Alan Modra [Mon, 14 Jun 2010 14:48:04 +0000 (14:48 +0000)]
gas/
* config/tc-ppc.c (md_assemble): Emit APUinfo section for
PPC_OPCODE_E500.
gas/testsuite/
* gas/ppc/e500.s: Add eieio, mbar and lwsync
* gas/ppc/e500.d: Likewise.
include/opcode/
* ppc.h (PPC_OPCODE_E500): Define.
opcodes/
* ppc-dis.c (ppc_opts):  Remove PPC_OPCODE_E500MC from e500 and
e500x2. Add PPC_OPCODE_E500 to e500 and e500x2
* ppc-opc.c (powerpc_opcodes): Deprecate all opcodes on EFS which
touch floating point regs and are enabled by COM, PPC or PPCCOM.
Treat sync as msync on e500.  Treat eieio as mbar 1 on e500.
Treat lwsync as msync on e500.

14 years ago * dlfcn.cc (get_full_path_of_dll): Revert patch from 2010-04-29.
Corinna Vinschen [Mon, 14 Jun 2010 11:10:30 +0000 (11:10 +0000)]
* dlfcn.cc (get_full_path_of_dll): Revert patch from 2010-04-29.

14 years ago* times.cc (gtod): Move to sharable region.
Christopher Faylor [Sat, 12 Jun 2010 16:34:26 +0000 (16:34 +0000)]
* times.cc (gtod): Move to sharable region.

14 years agoinclude/elf
Tristan Gingold [Fri, 11 Jun 2010 15:57:46 +0000 (15:57 +0000)]
include/elf
2010-06-11  Tristan Gingold  <gingold@adacore.com>

* ia64.h (EF_IA_64_VMS_COMCOD, EF_IA_64_VMS_COMCOD_SUCCESS)
(EF_IA_64_VMS_COMCOD_WARNING, EF_IA_64_VMS_COMCOD_ERROR)
(EF_IA_64_VMS_COMCOD_ABORT, EF_IA_64_VMS_LINKAGES): Define.
(VMS_LF_CALL_DEBUG, VMS_LF_NOP0BUFS, VMS_LF_P0IMAGE)
(VMS_LF_MKTHREADS, VMS_LF_UPCALLS, VMS_LF_IMGSTA)
(VMS_LF_INITIALIZE, VMS_LF_MAIN, VMS_LF_EXE_INIT)
(VMS_LF_TBK_IN_IMG, VMS_LF_DBG_IN_IMG, VMS_LF_TBK_IN_DSF)
(VMS_LF_DBG_IN_DSF, VMS_LF_SIGNATURES, VMS_LF_REL_SEG_OFF): Define.
(VMS_STO_VISIBILITY, VMS_ST_VISIBILITY, VMS_STO_FUNC_TYPE)
(VMS_ST_FUNC_TYPE, VMS_SFT_CODE_ADDR, VMS_SFT_SYMV_IDX)
(VMS_SFT_FD, VMS_SFT_RESERVE, VMS_STO_LINKAGE, VMS_ST_LINKAGE)
(VMS_STL_IGNORE, VMS_STL_RESERVE, VMS_STL_STD, VMS_STL_LNK): Define.
(Elf64_External_VMS_IMAGE_FIXUP): New declaration.
(Elf64_External_VMS_IMAGE_RELA): Ditto.
(R_IA64_VMS_DIR8, R_IA64_VMS_DIR16LSB, R_IA64_VMS_CALL_SIGNATURE)
(R_IA64_VMS_EXECLET_FUNC, R_IA64_VMS_EXECLET_DATA, R_IA64_VMS_FIX8)
(R_IA64_VMS_FIX16, R_IA64_VMS_FIX32, R_IA64_VMS_FIX64)
(R_IA64_VMS_FIXFD, R_IA64_VMS_ACC_LOAD, R_IA64_VMS_ACC_ADD)
(R_IA64_VMS_ACC_SUB, R_IA64_VMS_ACC_MUL, R_IA64_VMS_ACC_DIV)
(R_IA64_VMS_ACC_AND, R_IA64_VMS_ACC_IOR, R_IA64_VMS_ACC_EOR)
(R_IA64_VMS_ACC_ASH, R_IA64_VMS_ACC_STO8, R_IA64_VMS_ACC_STO16LSH)
(R_IA64_VMS_ACC_STO32LSH, R_IA64_VMS_ACC_STO64LSH): New.

binutils/
2010-06-11  Tristan Gingold  <gingold@adacore.com>
    Doug Rupp <rupp@gnat.com>

* readelf.c (is_ia64_vms): New function.
(dump_relocations): Use it.
(get_machine_flags): Display IA-64 OpenVMS flags.
(process_program_headers): No error on OpenVMS if no .dynamic section.
(struct ia64_vms_dynfixup, struct ia64_vms_dynimgrela): New
declarations.
(dump_ia64_vms_dynamic_fixups): New function.
(dump_ia64_vms_dynamic_relocs): Ditto.
(process_ia64_vms_dynamic_relocs): Ditto.
(process_relocs): Handle IA-64 OpenVMS relocs.
(VMS_EPOCH_OFFSET, VMS_GRANULARITY_FACTOR): New macros.
(print_vms_time): New function.
(dynamic_section_ia64_val): Handle DT_IA_64_VMS_LINKTIME and
DT_IA_64_VMS_LNKFLAGS.
(get_ia64_symbol_other): New function.
(get_symbol_other): Handle EM_IA_64.

14 years agomerge from gcc
DJ Delorie [Thu, 10 Jun 2010 18:30:17 +0000 (18:30 +0000)]
merge from gcc

14 years ago* Makefile.def (configure-gcc): Depend on all-libelf.
Alexandre Oliva [Thu, 10 Jun 2010 17:04:13 +0000 (17:04 +0000)]
* Makefile.def (configure-gcc): Depend on all-libelf.
* Makefile.in: Rebuild.

14 years ago2010-06-10 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Thu, 10 Jun 2010 16:09:45 +0000 (16:09 +0000)]
2010-06-10  Paolo Bonzini  <bonzini@gnu.org>

* override.m4: Remove obsolete (<2.64) definitions.

14 years agosync changelog with gcc, plus commit the following patch:
Paolo Bonzini [Thu, 10 Jun 2010 16:01:32 +0000 (16:01 +0000)]
sync changelog with gcc, plus commit the following patch:

2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>

PR bootstrap/43170
* tls.m4 (GCC_CHECK_TLS): Add volatile qualifier to the test
references.  Move the main () test reference ahead of
pthread_create().  Add a comment to explain the requirements
of the test.

14 years agoinclude/som:
Tristan Gingold [Thu, 10 Jun 2010 08:31:20 +0000 (08:31 +0000)]
include/som:
2010-06-10  Tristan Gingold  <gingold@adacore.com>

* aout.h: New file.
* clock.h: Likewise.
* lst.h: Likewise.
* reloc.h: Likewise.
* internal.h: Likewise.

14 years ago2010-06-10 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 10 Jun 2010 08:19:52 +0000 (08:19 +0000)]
2010-06-10  Tristan Gingold  <gingold@adacore.com>

* dwarf2.h (enum dwarf_tag): Add DW_TAG_HP_Bliss_field and
DW_TAG_HP_Bliss_field_set.
(enum dwarf_attribute): Add DW_AT_HP_prologue, DW_AT_HP_epilogue,
DW_AT_HP_unit_name, DW_AT_HP_unit_size, DW_AT_HP_widened_byte_size,
DW_AT_HP_definition_points, DW_AT_HP_default_location and
DW_AT_HP_is_result_param.
(enum dwarf_type): Add DW_ATE_HP_VAX_float, DW_ATE_HP_VAX_float_d,
DW_ATE_HP_packed_decimal, DW_ATE_HP_zoned_decimal, DW_ATE_HP_edited,
DW_ATE_HP_signed_fixed, DW_ATE_HP_unsigned_fixed,
DW_ATE_HP_VAX_complex_float and DW_ATE_HP_VAX_complex_float_d.
(enum dwarf_line_number_x_ops): Add
DW_LNE_HP_source_file_correlation.
(enum dwarf_source_language): Add DW_LANG_HP_Bliss,
DW_LANG_HP_Basic91, DW_LANG_HP_Pascal91, DW_LANG_HP_IMacro,
DW_LANG_HP_Assembler.

14 years ago * libc/include/sys/reent.h (_reent): Adjust _REENT_SMALL to be
Kazu Hirata [Wed, 9 Jun 2010 15:15:35 +0000 (15:15 +0000)]
* libc/include/sys/reent.h (_reent): Adjust _REENT_SMALL to be
binary compatible with normal layout.
(_REENT_INIT): Adjust to match struct layout.

14 years ago * path.cc (symlink_info::check_shortcut): Use ro_u_empty rather than
Corinna Vinschen [Wed, 9 Jun 2010 12:32:14 +0000 (12:32 +0000)]
* path.cc (symlink_info::check_shortcut): Use ro_u_empty rather than
local UNICODE_STRING object.
(symlink_info::check_sysfile): Ditto.  Return immediately if NtOpenFile
failed to avoid closing random handle.  Improve debug output in case
NtReadFile failed.

14 years ago2010-06-08 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 8 Jun 2010 21:47:57 +0000 (21:47 +0000)]
2010-06-08  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/wordexp.h: Add __cplusplus wrapper.

14 years ago2010-06-08 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 8 Jun 2010 18:44:14 +0000 (18:44 +0000)]
2010-06-08  Jeff Johnston  <jjohnstn@redhat.com>

        * configure.in: Add test for enable-newlib-register-fini
        to set the _WANT_REGISTER_FINI flag.
        * configure: Regenerated.
        * Makefile.in: Ditto.
        * newlib.hin: Add _WANT_REGISTER_FINI flag.
        * libc/stdlib/__call_atexit.c: Add test for
        _WANT_REGISTER_FINI to enable the register_fini function.

14 years ago * path.cc (symlink_info::check): Set h to NULL after closing handle
Corinna Vinschen [Tue, 8 Jun 2010 15:25:09 +0000 (15:25 +0000)]
* path.cc (symlink_info::check): Set h to NULL after closing handle
in udf check.  Remove overagressive bracketing.  Don't set h to NULL
without closing the handle.  Fix using wrong handle in checking
file system when using parent directory handle.

14 years ago * standards.texi: Import current version from gnustandards
Nick Clifton [Tue, 8 Jun 2010 12:15:36 +0000 (12:15 +0000)]
    * standards.texi: Import current version from gnustandards
        project.
        * gnu-oids.texi: New file.

14 years agoetc/ChangeLog
Nick Clifton [Tue, 8 Jun 2010 10:30:54 +0000 (10:30 +0000)]
etc/ChangeLog

        * standards.texi: Relicense under GFDL v1.3.
        * fdl.texi: Replace with v1.3 text.

gas/ChangeLog

        * doc/as.texinfo: Replace abbreviated 20th century year numbers
        with full versions.

gprof/ChangeLog

        * gprof.texi: Replace abbreviated 20th century year numbers with
        full versions.

ld/ChangeLog

        * fdl.texi: Replace with v1.3 text.
        * ld.texinfo: Replace abbreviated 20th century year numbers with
        full versions.
        * ldint.texinfo: Likewise.
        Relicense under GFDL v1.3.  Replace text of v1.1 FDL with an
        include of the fdl.texi file.

14 years ago * include/sys/stdio.h: Remove _GNU_SOURCE guard around getline
Corinna Vinschen [Mon, 7 Jun 2010 09:16:11 +0000 (09:16 +0000)]
* include/sys/stdio.h: Remove _GNU_SOURCE guard around getline
and getdelim prototypes since they are SUSv4 now.

14 years ago2010-06-04 Mark Mitchell <mark@codesourcery.com>
Jeff Johnston [Fri, 4 Jun 2010 15:30:40 +0000 (15:30 +0000)]
2010-06-04  Mark Mitchell  <mark@codesourcery.com>

        * libc/stdlib/__call_atexit.c (__libc_fini): Declare.
        (register_fini): New function.
        * libc/misc/init.c (_fini): Remove.
        (__libc_fini_array): Likewise.
        * libc/misc/fini.c: New file.
        * libc/misc/Makefile.am (LIB_SOURCES): Add fini.c.
        * libc/misc/Makefile.in: Regenerate.

14 years agoImport AC_CHECK_DECL for C++ fixes from git Autoconf.
Ralf Wildenhues [Thu, 3 Jun 2010 06:33:10 +0000 (06:33 +0000)]
Import AC_CHECK_DECL for C++ fixes from git Autoconf.

config/:
Sync from GCC:
PR bootstrap/42798
* override.m4 (_AC_CHECK_DECL_BODY, _AC_CHECK_DECLS): Import
definitions from git Autoconf.

14 years ago * ntdll.h (STATUS_BAD_NETWORK_PATH): Define.
Corinna Vinschen [Wed, 2 Jun 2010 14:52:34 +0000 (14:52 +0000)]
* ntdll.h (STATUS_BAD_NETWORK_PATH): Define.
(STATUS_BAD_NETWORK_NAME): Define.
* path.cc (symlink_info::check): Convert STATUS_BAD_NETWORK_PATH and
STATUS_BAD_NETWORK_NAME into an immediate ENOENT.

14 years ago2010-06-01 Rafael Espindola <espindola@google.com>
Rafael Ávila de Espíndola [Tue, 1 Jun 2010 19:32:27 +0000 (19:32 +0000)]
2010-06-01  Rafael Espindola  <espindola@google.com>

* plugin-api.h (ld_plugin_tag): Add LDPT_OUTPUT_NAME.

2010-06-01  Rafael Espindola  <espindola@google.com>

* plugin.cc (Plugin::load): Pass the output name to the plugin.

14 years ago/:
Ralf Wildenhues [Tue, 1 Jun 2010 17:53:40 +0000 (17:53 +0000)]
/:
* config.sub, config.guess: Update from upstream sources.

14 years agoSync toplevel files from GCC.
Ralf Wildenhues [Tue, 1 Jun 2010 17:28:12 +0000 (17:28 +0000)]
Sync toplevel files from GCC.

/:
        Sync from GCC:

        2010-05-05  Sebastian Pop  <sebastian.pop@amd.com>
        * configure.ac: Allow all the versions greater than 0.10 of PPL.
        * configure: Regenerated.

        2010-04-20  Eric Botcazou  <ebotcazou@adacore.com>
        * configure.ac (BUILD_CONFIG): Redirect output to /dev/null.
        * configure: Regenerate.

        2010-04-17  Ralf Corsépius  <ralf.corsepius@rtems.org>
        * configure.ac (*-*-rtems*): Add target-libiberty to $skipdirs.
        * configure: Regenerate.

        2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
        * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx
        separately.
        * configure: Regenerate.

        2010-04-13  Steve Ellcey  <sje@cup.hp.com>
        * configure: Regenerate after change to elf.m4.

        2010-04-02  Sebastian Pop  <sebastian.pop@amd.com>
        * configure.ac: Add brackets around AC_TRY_COMPILE alternative.
        * configure: Regenerated.

        2010-04-02  Sebastian Pop  <sebastian.pop@amd.com>
        * configure.ac: Print "buggy but acceptable" when CLooG
        revision is less than 9.
        * configure: Regenerated.

config/:
        Sync from GCC:

        2010-04-13  Steve Ellcey  <sje@cup.hp.com>
        * elf.m4: Add hppa[12]*-*-hpux* to list of non-elf platforms.

        2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
        * stdint.m4 (GCC_HEADER_STDINT): Don't typedef uint8_t etc. if
        corresponding macros already exist.

bfd/:
        * configure: Regenerate.

14 years ago * exceptions.cc (open_stackdumpfile): Correctly append .stackdump
Corinna Vinschen [Tue, 1 Jun 2010 14:51:47 +0000 (14:51 +0000)]
* exceptions.cc (open_stackdumpfile): Correctly append .stackdump
suffix.

* nlsfuncs.cc (rebase_locale_buf): Reorder arguments.  Accommodate
throughout.  Add pointer to end of buffer and avoid changing pointers
not pointing into the buffer.

14 years ago * fhandler_netdrive.cc (fhandler_netdrive::exists): Always free WNet
Corinna Vinschen [Tue, 1 Jun 2010 13:14:37 +0000 (13:14 +0000)]
* fhandler_netdrive.cc (fhandler_netdrive::exists): Always free WNet
resource if created.

14 years ago2010-05-31 Kazu Hirata <kazu@codesourcery.com>
Jeff Johnston [Mon, 31 May 2010 19:15:41 +0000 (19:15 +0000)]
2010-05-31  Kazu Hirata  <kazu@codesourcery.com>

        * libc/stdlib/mallocr.c (malloc_extend_top): Backport the
        difference between versions 2.6.4 and 2.6.5.

14 years ago * cygheap.cc (cygheap_user::set_name): Allow to change the user name
Corinna Vinschen [Mon, 31 May 2010 18:52:02 +0000 (18:52 +0000)]
* cygheap.cc (cygheap_user::set_name): Allow to change the user name
if it only differs by case.

14 years ago2010-05-27 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 27 May 2010 10:37:23 +0000 (10:37 +0000)]
2010-05-27  Tristan Gingold  <gingold@adacore.com>

* lbr.h: Improve comments.

14 years agomerge from gcc
DJ Delorie [Wed, 26 May 2010 18:16:13 +0000 (18:16 +0000)]
merge from gcc

14 years ago * fhandler_registry.cc (multi_wcstombs): New function.
Corinna Vinschen [Wed, 26 May 2010 16:58:44 +0000 (16:58 +0000)]
* fhandler_registry.cc (multi_wcstombs): New function.
(fhandler_registry::fstat): Call multi_wcstombs for strings of type
REG_MULTI_SZ.
(fhandler_registry::fill_filebuf): Ditto.

14 years ago* hires.h (hires_base::reset): New function.
Christopher Faylor [Wed, 26 May 2010 14:48:17 +0000 (14:48 +0000)]
* hires.h (hires_base::reset): New function.
(hires_us): Specify that hires_base is a public import.
(hires_ms): Ditto.
* times.cc (gtod): Move earlier in file.
(settimeofday): Reset gtod so that base will be subsequently recalculated.

14 years ago * path.cc (symlink_info::check): Don't try to handle remote reparse
Corinna Vinschen [Wed, 26 May 2010 14:24:47 +0000 (14:24 +0000)]
* path.cc (symlink_info::check): Don't try to handle remote reparse
points as symlinks.  Explain why.

14 years ago * include/inttypes.h: Change PTR definitions to int to align with the
Corinna Vinschen [Wed, 26 May 2010 13:37:48 +0000 (13:37 +0000)]
* include/inttypes.h: Change PTR definitions to int to align with the
stdint.h type definitions of intptr_t/uintptr_t.

14 years ago * fhandler.h (class fhandler_pty_master): Add master_thread member.
Corinna Vinschen [Wed, 26 May 2010 13:10:55 +0000 (13:10 +0000)]
* fhandler.h (class fhandler_pty_master): Add master_thread member.
* fhandler_tty.cc (fhandler_pty_master::close): Properly detach from
master thread.
(fhandler_pty_master::setup): Store cygthread pointer of pty master
control thread in master_thread.  Don't zap thread handle.

14 years ago gas/
Catherine Moore [Wed, 26 May 2010 12:59:56 +0000 (12:59 +0000)]
gas/
* config/tc-mips.c (is_opcode_valid): Remove expansionp.
(macro_build): Change invocation of is_opcode_valid.
(mips_ip): Likewise.

gas/testsuite/
* gas/mips/mips-no-jalx.l: Delete.
* gas/mips/mips-no-jalx.s: Delete.
* gas/mips/mips-jalx-2.d: New.
* gas/mips/mips-jalx-2.s: New.
* gas/mips/mips.exp (mips-jalx-2): Run new test.
(mips-no-jalx): Remove deleted test.

include/
* opcode/mips.h (INSN_MIPS16): Remove.

opcodes/
* mips-dis.c (mips_arch): Remove INSN_MIPS16.
* mips-opc.c (I16): Remove.
(mips_builtin_op): Reclassify jalx.

14 years ago * nlsfuncs.cc (__set_lc_time_from_win): Use LOCALE_SMONTHNAME1
Corinna Vinschen [Wed, 26 May 2010 11:36:17 +0000 (11:36 +0000)]
* nlsfuncs.cc (__set_lc_time_from_win): Use LOCALE_SMONTHNAME1
instead of LOCALE_SABBREVMONTHNAME1 in Japanese and Korean
locales to get abbreviated month names.  Explain why.

14 years agoMerge from gcc:
Dave Korn [Wed, 26 May 2010 05:16:31 +0000 (05:16 +0000)]
Merge from gcc:

2010-05-18  Steven Bosscher  <steven AT gcc.gnu.org>
* configure.ac (--enable-lto): All *-apple-darwin* now support LTO.
* configure: Regenerate.

2010-05-07  Steven Bosscher  <steven AT gcc.gnu.org>
* configure.ac (--enable-lto): Add x86_64-apple-darwin* as
a platform that supports LTO.
* configure: Regenerate.

2010-04-27  Dave Korn  <dave.korn.cygwin AT gmail.com>
PR lto/42776
* configure.ac (--enable-lto): Refactor handling so libelf tests
are only performed inside then-clause of ACX_ELF_TARGET_IFELSE,
and allow LTO to be explicitly enabled on non-ELF platforms that
are known to support it inside else-clause.
* configure: Regenerate.

14 years ago2010-05-21 Daniel Jacobowitz <dan@codesourcery.com>
Nick Clifton [Tue, 25 May 2010 14:12:41 +0000 (14:12 +0000)]
2010-05-21  Daniel Jacobowitz  <dan@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>
            Andrew Stubbs  <ams@codesourcery.com>

        bfd/
        * config.bfd (sh-*-uclinux* | sh[12]-*-uclinux*): Add
        bfd_elf32_shl_vec, and FDPIC vectors to targ_selvecs.
        * configure.in: Handle FDPIC vectors.
        * elf32-sh-relocs.h: Add FDPIC and movi20 relocations.
        * elf32-sh.c (DEFAULT_STACK_SIZE): Define.
        (SYMBOL_FUNCDESC_LOCAL): Define.  Use it instead of
        SYMBOL_REFERENCES_LOCAL for function descriptors.
        (fdpic_object_p): New.
        (sh_reloc_map): Add FDPIC and movi20 relocations.
        (sh_elf_info_to_howto, sh_elf_relocate_section): Handle new invalid
        range.
        (struct elf_sh_plt_info): Add got20 and short_plt.  Update all
        definitions.
        (FDPIC_PLT_ENTRY_SIZE, FDPIC_PLT_LAZY_OFFSET): Define.
        (fdpic_sh_plt_entry_be, fdpic_sh_plt_entry_le, fdpic_sh_plts): New.
        (FDPIC_SH2A_PLT_ENTRY_SIZE, FDPIC_SH2A_PLT_LAZY_OFFSET): Define.
        (fdpic_sh2a_plt_entry_be, fdpic_sh2a_plt_entry_le)
        (fdpic_sh2a_short_plt_be, fdpic_sh2a_short_plt_le, fdpic_sh2a_plts):
        New.
        (get_plt_info): Handle FDPIC.
        (MAX_SHORT_PLT): Define.
        (get_plt_index, get_plt_offset): Handle short_plt.
        (union gotref): New.
        (struct elf_sh_link_hash_entry): Add funcdesc, rename tls_type to
        got_type and adjust all uses.  Add GOT_FUNCDESC.
        (struct sh_elf_obj_tdata): Add local_funcdesc.  Rename
        local_got_tls_type to local_got_type.
        (sh_elf_local_got_type): Renamed from sh_elf_local_got_tls_type.  All
        users changed.
        (sh_elf_local_funcdesc): Define.
        (struct elf_sh_link_hash_table): Add sfuncdesc, srelfuncdesc, fdpic_p,
        and srofixup.
        (sh_elf_link_hash_newfunc): Initialize new fields.
        (sh_elf_link_hash_table_create): Set fdpic_p.
        (sh_elf_omit_section_dynsym): New.
        (create_got_section): Create .got.funcdesc, .rela.got.funcdesc
        and .rofixup.
        (allocate_dynrelocs): Allocate local function descriptors and space
        for R_SH_FUNCDESC-related relocations, and for rofixups.
        Handle GOT_FUNCDESC.  Create fixups.  Handle GOT entries which
        require function descriptors.
        (sh_elf_always_size_sections): Handle PT_GNU_STACK and __stacksize.
        (sh_elf_modify_program_headers): New.
        (sh_elf_size_dynamic_sections): Allocate function descriptors for
        local symbols.  Allocate .got.funcdesc contents.  Allocate rofixups.
        Handle local GOT entries of type GOT_FUNCDESC.  Create fixups for
        local GOT entries.  Ensure that FDPIC libraries always have a PLTGOT
        entry in the .dynamic section.
        (sh_elf_add_dyn_reloc, sh_elf_got_offset, sh_elf_initialize_funcdesc)
        (sh_elf_add_rofixup, sh_elf_osec_to_segment)
        (sh_elf_osec_readonly_p, install_movi20_field): New functions.
        (sh_elf_relocate_section): Handle new relocations, R_SH_FUNCDESC,
        R_SH_GOTFUNCDESC and R_SH_GOTOFFFUNCDESC.  Use sh_elf_got_offset
        and .got.plt throughout to find _GLOBAL_OFFSET_TABLE_.  Add rofixup
        read-only section warnings.  Handle undefined weak symbols.  Generate
        fixups for R_SH_DIR32 and GOT entries.  Check for cross-segment
        relocations and clear EF_SH_PIC.  Handle 20-bit relocations.
        Always generate R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE.
        (sh_elf_gc_sweep_hook): Handle R_SH_FUNCDESC, R_SH_GOTOFF20,
        R_SH_GOTFUNCDESC, R_SH_GOTFUNCDESC20, and R_SH_GOTOFFFUNCDESC.
        Handle 20-bit relocations.
        (sh_elf_copy_indirect_symbol): Copy function descriptor reference
        counts.
        (sh_elf_check_relocs): Handle new relocations.  Make symbols
        dynamic for FDPIC relocs.  Account for rofixups.  Error for FDPIC
        symbol mismatches.  Allocate a GOT for R_SH_DIR32. Allocate fixups
        for R_SH_DIR32.
        (sh_elf_copy_private_data): Copy PT_GNU_STACK size.
        (sh_elf_merge_private_data): Copy initial flags.  Do not clobber
        non-mach flags.  Set EF_SH_PIC for FDPIC.  Reject FDPIC mismatches.
        (sh_elf_finish_dynamic_symbol): Do not handle got_funcdesc entries
        here.  Rename sgot to sgotplt and srel to srelplt.  Handle short_plt,
        FDPIC descriptors, and got20.  Create R_SH_FUNCDESC_VALUE for FDPIC.
        Use install_movi20_field.  Rename srel to srelgot.  Always generate
        R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE.
        (sh_elf_finish_dynamic_sections): Fill in the GOT pointer in rofixup.
        Do not fill in reserved GOT entries for FDPIC.  Correct DT_PLTGOT.
        Rename sgot to sgotplt.  Assert that the right number of rofixups
        and dynamic relocations were allocated.
        (sh_elf_use_relative_eh_frame, sh_elf_encode_eh_address): New.
        (elf_backend_omit_section_dynsym): Use sh_elf_omit_section_dynsym.
        (elf_backend_can_make_relative_eh_frame)
        (elf_backend_can_make_lsda_relative_eh_frame)
        (elf_backend_encode_eh_address): Define.
        (TARGET_BIG_SYM, TARGET_BIG_NAME, TARGET_LITTLE_SYM)
        (TARGET_LITTLE_NAME, elf_backend_modify_program_headers, elf32_bed):
        Redefine for FDPIC vector.
        * reloc.c: Add SH FDPIC and movi20 relocations.
        * targets.c (_bfd_target_vector): Add FDPIC vectors.
        * configure, bfd-in2.h, libbfd.h: Regenerated.

        binutils/
        * readelf.c (get_machine_flags): Handle EF_SH_PIC and EF_SH_FDPIC.

        gas/
        * config/tc-sh.c (sh_fdpic): New.
        (sh_check_fixup): Handle relocations on movi20.
        (parse_exp): Do not reject PIC operators here.
        (build_Mytes): Check for unhandled PIC operators here.  Use
        sh_check_fixup for movi20.
        (enum options): Add OPTION_FDPIC.
        (md_longopts, md_parse_option, md_show_usage): Add --fdpic.
        (sh_fix_adjustable, md_apply_fix): Handle FDPIC and movi20 relocations.
        (sh_elf_final_processing): Handle --fdpic.
        (sh_uclinux_target_format): New.
        (sh_parse_name): Handle FDPIC relocation operators.
        * config/tc-sh.h (TARGET_FORMAT): Define specially for TE_UCLINUX.
        (sh_uclinux_target_format): Declare for TE_UCLINUX.
        * configure.tgt (sh-*-uclinux* | sh[12]-*-uclinux*): Set
        em=uclinux.
        * doc/c-sh.texi (SH Options): Document --fdpic.

        gas/testsuite/
        * gas/sh/basic.exp: Run new tests.  Handle uClinux like Linux.
        * gas/sh/fdpic.d: New file.
        * gas/sh/fdpic.s: New file.
        * gas/sh/reg-prefix.d: Force big-endian.
        * gas/sh/sh2a-pic.d: New file.
        * gas/sh/sh2a-pic.s: New file.
        * lib/gas-defs.exp (is_elf_format): Include sh*-*-uclinux*.

        include/elf/
        * sh.h (EF_SH_PIC, EF_SH_FDPIC): Define.
        (R_SH_FIRST_INVALID_RELOC_6, R_SH_LAST_INVALID_RELOC_6): New.  Adjust
        other invalid ranges.
        (R_SH_GOT20, R_SH_GOTOFF20, R_SH_GOTFUNCDESC, R_SH_GOTFUNCDESC20)
        (R_SH_GOTOFFFUNCDESC, R_SH_GOTOFFFUNCDESC20, R_SH_FUNCDESC)
        (R_SH_FUNCDESC_VALUE): New.

        ld/
        * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
        (eshelf_fd.c, eshlelf_fd.c): New rules.
        * Makefile.in: Regenerate.
        * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
        emulations.
        * emulparams/shelf_fd.sh: New file.
        * emulparams/shlelf_fd.sh: New file.
        * emulparams/shlelf_linux.sh: Update comment.

        ld/testsuite/
        * ld-sh/sh.exp: Handle uClinux like Linux.
        * lib/ld-lib.exp (is_elf_format): Include sh*-*-uclinux*.
        * ld-sh/fdpic-funcdesc-shared.d: New file.
        * ld-sh/fdpic-funcdesc-shared.s: New file.
        * ld-sh/fdpic-funcdesc-static.d: New file.
        * ld-sh/fdpic-funcdesc-static.s: New file.
        * ld-sh/fdpic-gotfuncdesc-shared.d: New file.
        * ld-sh/fdpic-gotfuncdesc-shared.s: New file.
        * ld-sh/fdpic-gotfuncdesc-static.d: New file.
        * ld-sh/fdpic-gotfuncdesc-static.s: New file.
        * ld-sh/fdpic-gotfuncdesci20-shared.d: New file.
        * ld-sh/fdpic-gotfuncdesci20-shared.s: New file.
        * ld-sh/fdpic-gotfuncdesci20-static.d: New file.
        * ld-sh/fdpic-gotfuncdesci20-static.s: New file.
        * ld-sh/fdpic-goti20-shared.d: New file.
        * ld-sh/fdpic-goti20-shared.s: New file.
        * ld-sh/fdpic-goti20-static.d: New file.
        * ld-sh/fdpic-goti20-static.s: New file.
        * ld-sh/fdpic-gotofffuncdesc-shared.d: New file.
        * ld-sh/fdpic-gotofffuncdesc-shared.s: New file.
        * ld-sh/fdpic-gotofffuncdesc-static.d: New file.
        * ld-sh/fdpic-gotofffuncdesc-static.s: New file.
        * ld-sh/fdpic-gotofffuncdesci20-shared.d: New file.
        * ld-sh/fdpic-gotofffuncdesci20-shared.s: New file.
        * ld-sh/fdpic-gotofffuncdesci20-static.d: New file.
        * ld-sh/fdpic-gotofffuncdesci20-static.s: New file.
        * ld-sh/fdpic-gotoffi20-shared.d: New file.
        * ld-sh/fdpic-gotoffi20-shared.s: New file.
        * ld-sh/fdpic-gotoffi20-static.d: New file.
        * ld-sh/fdpic-gotoffi20-static.s: New file.
        * ld-sh/fdpic-plt-be.d: New file.
        * ld-sh/fdpic-plt-le.d: New file.
        * ld-sh/fdpic-plt.s: New file.
        * ld-sh/fdpic-plti20-be.d: New file.
        * ld-sh/fdpic-plti20-le.d: New file.
        * ld-sh/fdpic-stack-default.d: New file.
        * ld-sh/fdpic-stack-size.d: New file.
        * ld-sh/fdpic-stack.s: New file.

14 years ago2010-04-27 Danny Smith <dannysmith@users.sourceforge.net>
Chris Sutcliffe [Wed, 19 May 2010 02:59:46 +0000 (02:59 +0000)]
2010-04-27 Danny Smith <dannysmith@users.sourceforge.net>

        * mingwex/mb_wc_common.h (get_codepage): Revert change of 2006-09-19.

14 years ago* libc/string/strsignal.c (strsignal): Avoid duplicate case statement where
Christopher Faylor [Tue, 18 May 2010 14:52:38 +0000 (14:52 +0000)]
* libc/string/strsignal.c (strsignal): Avoid duplicate case statement where
SIGPWR == SIGLOST.

14 years ago* environ.cc (regopt): Change the first argument to wide char string.
Christopher Faylor [Tue, 18 May 2010 14:30:51 +0000 (14:30 +0000)]
* environ.cc (regopt): Change the first argument to wide char string.
(environ_init): Accommodate change to the first argument of regopt.
* exception.cc (open_stackdumpfile): Accommodate change to the type of progname
in _pinfo.
* external.cc (fillout_pinfo): Ditto.
* fhandler_process.cc (format_process_winexename): Ditto.
(format_process_stat): Ditto.
* fork.cc (fork::parent): Ditto.
* pinfo.cc (pinfo_basic::pinfo_basic): Call GetModuleFileNameW instead of
GetModuleFileName.
(pinfo::thisproc): Accommodate change to the type of progname in _pinfo.
(pinfo_init): Ditto.
* pinfo.h (_pinfo): Change the type of progname to a wide char array.
* registry.h (reg_key::get_int): Change the first argument from constant point
to pointer to constant.
(reg_key::get_string): Ditto.  Change the last argument likewise.
* registry.cc (reg_key::get_int): Accommodate change to the declaration.
(reg_key::get_string): Ditto.
* strace.cc (strace::hello): Accommodate change to the type of progname in
_pinfo.
(strace::vsprntf): Ditto.

14 years agoImplement generic SHF_EXCLUDE.
H.J. Lu [Tue, 18 May 2010 03:31:06 +0000 (03:31 +0000)]
Implement generic SHF_EXCLUDE.

bfd/

2010-05-18  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/11600
* elf.c (_bfd_elf_make_section_from_shdr): Handle SHF_EXCLUDE
(elf_fake_sections): Likewise.

* elf32-i370.c (i370_elf_section_from_shdr): Don't handle
SHF_EXCLUDE here.
* elf32-ppc.c (ppc_elf_fake_sections): Likewise.

binutils/

2010-05-18  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/11600
* readelf.c (get_elf_section_flags): Treat SHF_EXCLUDE as a
generic flag.

binutils/testsuite/

2010-05-18  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/11600
* binutils-all/objcopy.exp: Run exclude-1a and exclude-1b for
ELF targets.

* binutils-all/exclude-1.s: New.
* binutils-all/exclude-1a.d: Likewise.
* binutils-all/exclude-1b.d: Likewise.

gas/

2010-05-18  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/11600
* obj-elf.c (obj_elf_change_section): Handle SHF_EXCLUDE.
(obj_elf_parse_section_letters): Likewise.
(obj_elf_section_word): Likewise.

* config/tc-ppc.c (ppc_section_letter): Removed.
(ppc_section_word): Likewise.
* config/tc-ppc.h (ppc_section_letter): Likewise.
(ppc_section_word): Likewise.
(md_elf_section_letter): Likewise.
(md_elf_section_word): Likewise.

* doc/as.texinfo: Document `e' and `#exclude'.

gas/testsuite/

2010-05-18  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/11600
* gas/elf/elf.exp: Run section8.

* gas/elf/section8.d: New.
* gas/elf/section8.s: Likewise.

include/elf/

2010-05-18  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/11600
* common.h (SHF_EXCLUDE): New.

* i370.h (SHF_EXCLUDE): Removed.
* or32.h (SHF_EXCLUDE): Likewise.
* ppc.h (SHF_EXCLUDE): Likewise.
* sparc.h (SHF_EXCLUDE): Likewise.

ld/testsuite/

2010-05-18  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/11600
* ld-elf/exclude3.s: New.
* ld-elf/exclude3a.d: Likewise.
* ld-elf/exclude3b.d: Likewise.
* ld-elf/exclude3c.d: Likewise.

14 years agobfd/
Tristan Gingold [Mon, 17 May 2010 08:07:46 +0000 (08:07 +0000)]
bfd/
2010-05-17  Tristan Gingold  <gingold@adacore.com>

* vms-alpha.c: Include esgps.h and eidc.h.
(_bfd_vms_slurp_egsd): Ignore SPSC and IDC sub-records.
(evax_bfd_print_egsd_flags): New function, extracted from ...
(evax_bfd_print_egsd): ..., calls evax_bfd_print_egsd_flags.  Handles
EGSD__C_SPSC and EGSD__C_IDC.

include/vms:
2010-05-17  Tristan Gingold  <gingold@adacore.com>

* eidc.h: New file.
* esgps.h: New file.

14 years ago2010-05-11 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 11 May 2010 20:41:37 +0000 (20:41 +0000)]
2010-05-11  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdlib/__call_atexit.c: Fix lock to be of type
        _LOCK_RECURSIVE_T as recursive usage is needed.

14 years ago2010-05-11 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 11 May 2010 20:40:14 +0000 (20:40 +0000)]
2010-05-11  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/locale/locale.c (loadlocale): Fix dangling
        switch statement caused by __HAVE_LOCALE_INFO__ not being
        defined.

14 years ago2010-05-11 Joel Sherrill <joel.sherrill@oarcorp.com>
Jeff Johnston [Tue, 11 May 2010 20:27:20 +0000 (20:27 +0000)]
2010-05-11  Joel Sherrill <joel.sherrill@oarcorp.com>

        * libc/string/strsignal.c: New file.
        * libc/string/Makefile.am: Add support for strsignal.
        * libc/string/strings.tex: Ditto.
        * libc/string/Makefile.in: Regenerated.

14 years ago* Makefile.in (DLL_OFILES): Add pseudo-reloc.o.
Christopher Faylor [Fri, 7 May 2010 21:25:19 +0000 (21:25 +0000)]
* Makefile.in (DLL_OFILES): Add pseudo-reloc.o.
* dcrt0.cc (child_info_fork::handle_fork): Call _pei386_runtime_relocator here.
(dll_crt0_1): Ditto for non-fork case.
* dll_init.cc (dll::init): Complain more in comment.  Clean up slightly.
(dll_dllcrt0_1): Call _pei386_runtime_relocator when we know we have a
filled-in per_process structure.
* globals.cc (__cygwin_user_data): Accommodate new fields for
_pei386_runtime_relocator.
* pseudo-reloc.cc: New file adapted from old lib/pseudo-reloc.c.  Include
winsup.h directly.  Collapse #ifdef __CYGWIN__ into one block.  Perform minor
whitespace code reformatting.
(__report_error): Use small_printf to output error.
(_pei386_runtime_relocator): Conditionalize for cygwin to take per_process
pointer parameter.
* winsup.h (_pei386_runtime_relocator): Declare.
* include/cygwin/version.h
(CYGWIN_VERSION_PER_PROCESS_API_VERSION_COMBINED): New macro.
(CYGWIN_VERSION_USER_API_VERSION_COMBINED): Use above macro.
(CYGWIN_VERSION_USE_PSEUDO_RELOC_IN_DLL): New macro.
(CYGWIN_VERSION_API_MINOR): Bump to 227.
* include/sys/cygwin.h: Remove obsolete comment.
(per_process::unused2): Shorten.
(per_process::pseudo_reloc_start): New field.
(per_process::pseudo_reloc_end): Ditto.
(per_process::image_base): Ditto.
* lib/_cygwin_crt0_common.cc: Declare pseudo runtime externs needed for
per_process structure.
(_cygwin_crt0_common): Fill in pseudo_reloc runtime constants.
* lib/pseudo-reloc-dummy.c: New file.  Dummy function to satisify ld.
* lib/pseudo-reloc.c: Delete.

14 years ago * fhandler_tty.cc (fhandler_tty_slave::init): Disable grabbing
Corinna Vinschen [Fri, 7 May 2010 15:03:27 +0000 (15:03 +0000)]
* fhandler_tty.cc (fhandler_tty_slave::init): Disable grabbing
process group ownership of tty in case we're being debugged.

14 years ago* libc/Makefile.am (stmp-sigset, stmp-iconvset, stmp-extra,
DJ Delorie [Thu, 6 May 2010 23:25:16 +0000 (23:25 +0000)]
* libc/Makefile.am (stmp-sigset, stmp-iconvset, stmp-extra,
stmp-stdio64, stmp-posix,stmp-targetdep): Use unique temporary
file names to allow for parallel installs.
(CLEANFILES): Add new temporary file names.
* libc/Makefile.in: Regenerate.

14 years ago * path.cc (path_conv::check): Drop setting sym.pflags before calling
Corinna Vinschen [Thu, 6 May 2010 10:04:50 +0000 (10:04 +0000)]
* path.cc (path_conv::check): Drop setting sym.pflags before calling
mount_info::conv_to_win32_path since the flag value is overwritten by
mount_info::conv_to_win32_path anyway.
Set flags for DOS paths before calling symlink_info::check so they can
be used in that function already.

14 years ago* dll_init.cc (dll_list::alloc): Add debugging assertion.
Christopher Faylor [Mon, 3 May 2010 16:40:33 +0000 (16:40 +0000)]
* dll_init.cc (dll_list::alloc): Add debugging assertion.

14 years ago * rs6000/Makefile.in: Remove xil-exit.o.
Corinna Vinschen [Mon, 3 May 2010 15:15:53 +0000 (15:15 +0000)]
* rs6000/Makefile.in: Remove xil-exit.o.

14 years agobfd/
Tristan Gingold [Mon, 3 May 2010 12:16:46 +0000 (12:16 +0000)]
bfd/
2010-05-03  Tristan Gingold  <gingold@adacore.com>

* vms-alpha.c: Add comments.
(struct vms_private_data_struct): Remove image_autoextend field.
(dst_check_allocation): Removed.
(image_write): Remove call to dst_check_allocation.
(vms_slurp_debug): Do not set image_autoextend.  Adjust section
size.
(_bfd_vms_slurp_object_records): Remove useless new_type variable.
(alpha_vms_write_exec): Use dst_section to get the dst section.
Write the dmt section.
(evax_bfd_print_image): Also print the dst size in hexa.  Fix typo.
(alpha_vms_read_sections_content): Do not set image_autoextend.

include/vms/
2010-05-03  Tristan Gingold  <gingold@adacore.com>

* dmt.h: Improve comments.

14 years ago * libc/locale/lctype.c: Include <string.h> and "setlocale.h".
Corinna Vinschen [Mon, 3 May 2010 09:25:32 +0000 (09:25 +0000)]
* libc/locale/lctype.c: Include <string.h> and "setlocale.h".
(_C_ctype_locale): Add braces to initializer.
(__ctype_load_locale): Fix compiler warnings in non-Cygwin case.
* libc/locale/nl_langinfo.c (nl_langinfo): Expose _NL_CTYPE_MB_CUR_MAX
case only if __HAVE_LOCALE_INFO__ is defined.

14 years ago * libc/stdlib/wctob.c (wctob): Reorganize and fix WEOF check. Rename
Corinna Vinschen [Sun, 2 May 2010 11:55:01 +0000 (11:55 +0000)]
* libc/stdlib/wctob.c (wctob): Reorganize and fix WEOF check.  Rename
pwc to pmb and convert to array to avoid buffer overflow.  Rename c to
wc.  Check wc for WEOF instead of for EOF.  Return first byte of pmb if
__wctomb conversion returned exactly one byte, EOF otherwise.

14 years ago * libc/include/langinfo.h: Fix #endif positioning.
Corinna Vinschen [Fri, 30 Apr 2010 14:58:28 +0000 (14:58 +0000)]
* libc/include/langinfo.h: Fix #endif positioning.

14 years agobfd/
Tristan Gingold [Fri, 30 Apr 2010 12:44:51 +0000 (12:44 +0000)]
bfd/
2010-04-30  Tristan Gingold  <gingold@adacore.com>

* vms-lib.c (vms_read_block): New function.
(vms_traverse_index): Use vms_read_block.  Handle long key names.

include/vms/
2010-04-30  Tristan Gingold  <gingold@adacore.com>

* lbr.h (struct vms_kbn): New structure.

14 years agobfd/
Tristan Gingold [Fri, 30 Apr 2010 09:40:42 +0000 (09:40 +0000)]
bfd/
2010-04-30  Tristan Gingold  <gingold@adacore.com>

* vms-lib.c (struct lib_tdata): Field artdata added, fields nbr_syms
and syms removed.
(struct carsym_mem): New structure.
(vms_add_index): New function.
(vms_add_indexes_from_list): New function.
(vms_traverse_index): Parameter carsym changed to carsym_mem.
Code adjusted to handle elfidx.
(vms_lib_read_index): Adjusted for vms_traverse_index changes.
Parameter NBREL is now a pointer.
(_bfd_vms_lib_archive_p): Adjust for above change.  Handle ia64
archives.
(_bfd_vms_lib_mkarchive): Adjusted for changes in struct lib_tdata.
(_bfd_vms_lib_find_symbol): Ditto.
(vms_lib_bopen): Fix two typos: return FALSE in case of error,
check MHD id.
* vms-alpha.c (alpha_vms_link_add_archive_symbols): Adjust for
changes of _bfd_vms_lib_find_symbol.

include/vms
2010-04-30  Tristan Gingold  <gingold@adacore.com>

* lbr.h (LBR__C_TYP_ISHSTB): Added.
(LHD_SANEID4): Renamed to ...
(LHD_SANEID6): ...  this.
(LBR_MAJORID, LBR_ELFMAJORID): New macros.
(struct vms_rfa): New structure.
(struct vms_idxdef): Renamed to ...
(struct vms_idx): ... this.
(struct vms_idxdef2): Renamed to ...
(struct vms_elfidx): ... this.
(ELFIDX__WEAK, ELFIDX__GROUP, ELFIDX__LISTRFA, ELFIDX__SYMESC): New
macros.
(struct vms_lhs, struct vms_lns): New structures.
(struct vms_mhd): Add missing fields.
(MHD__C_MHDLEN): New macro.

14 years ago * dlfcn.cc (get_full_path_of_dll): Handle non-existent file.
Corinna Vinschen [Thu, 29 Apr 2010 13:03:30 +0000 (13:03 +0000)]
* dlfcn.cc (get_full_path_of_dll): Handle non-existent file.

14 years ago * new-features.sgml (ov-new1.7.6): Add new "dos" and "inode" mount
Corinna Vinschen [Thu, 29 Apr 2010 10:58:17 +0000 (10:58 +0000)]
* new-features.sgml (ov-new1.7.6): Add new "dos" and "inode" mount
options.
* pathnames.sgml (mount-table): Ditto.
(pathnames-specialchars): Change description order.  Add paragraph
to explain new behaviour in terms of leading spaces and trailing dots
and spaces in pathnames.

14 years ago * utils.sgml (mount): Add description for "dos" and "ihash" mount
Corinna Vinschen [Thu, 29 Apr 2010 10:53:31 +0000 (10:53 +0000)]
* utils.sgml (mount): Add description for "dos" and "ihash" mount
options.

14 years ago * path.cc: Include sys/cygwin.h if built for mount(1).
Corinna Vinschen [Thu, 29 Apr 2010 10:39:35 +0000 (10:39 +0000)]
* path.cc: Include sys/cygwin.h if built for mount(1).
(struct opt): Add "dos" and "ihash" options.
(from_fstab_line): Call cygwin_internal rather than read_flags if
built for mount(1).

14 years ago * mount.cc (struct opt): Add "dos" and "ihash" options.
Corinna Vinschen [Thu, 29 Apr 2010 10:38:05 +0000 (10:38 +0000)]
* mount.cc (struct opt): Add "dos" and "ihash" options.
(fillout_mntent): Ditto.
* path.cc (path_conv::get_nt_native_path): Use path_conv's
has_dos_filenames_only method.
(path_conv::check): Add PATH_IHASH flag if FS has unreliable inode
numbers.
(symlink_info::check_shortcut): Or symlink flags to pflags.
(symlink_info::check_sysfile): Ditto.  Change test accordingly.
(symlink_info::check_reparse_point): Ditto.
(symlink_info::check_nfs_symlink): Ditto.
(symlink_info::check): Check PATH_DOS flag in call to get_nt_native_path
to utilize mount flag.  Ditto in test for potential restarting.  Set
PATH_DOS if FS only allows DOS filename rules.
* path.h (enum path_types): Add PATH_DOS and PATH_IHASH.
(path_conv::hasgood_inode): Check PATH_IHASH instead of
fs.hasgood_inode.
(path_conv::has_dos_filenames_only): New method.
* include/sys/mount.h (MOUNT_DOS): New mount flag.
(MOUNT_IHASH): Ditto.

14 years ago * mount.cc (oopts): Remove entirely.
Corinna Vinschen [Thu, 29 Apr 2010 08:50:23 +0000 (08:50 +0000)]
* mount.cc (oopts): Remove entirely.
(usage): Call cygwin_internal (CW_LST_MNT_OPTS) to create list of
mount options.
(print_version): Fix copyright date.
(main): Replace option processing loop with single call to
cygwin_internal (CW_CVT_MNT_OPTS).

14 years ago * external.cc (cygwin_internal): Add CW_CVT_MNT_OPTS to allow mount
Corinna Vinschen [Thu, 29 Apr 2010 08:47:44 +0000 (08:47 +0000)]
* external.cc (cygwin_internal): Add CW_CVT_MNT_OPTS to allow mount
flag parsing.  Add CW_LST_MNT_OPTS case to allow mount flag listing.
* mount.cc (fstab_read_flags): Rename from read_flags.  Make externally
available.  Change input string to char ** to allow returning faulty
option.  Add flag for avoiding debug output.
(fstab_list_flags): New function to create list of options.
* include/sys/cygwin.h (cygwin_getinfo_types): Add CW_CVT_MNT_OPTS and
CW_LST_MNT_OPTS.

14 years ago * mount.cc (compare_flags): New function.
Corinna Vinschen [Wed, 28 Apr 2010 15:35:52 +0000 (15:35 +0000)]
* mount.cc (compare_flags): New function.
(read_flags): Replace loop with bsearch.  Simplify error check.

14 years ago * include/cygwin/version.h: Bump API minor version.
Corinna Vinschen [Wed, 28 Apr 2010 10:20:34 +0000 (10:20 +0000)]
* include/cygwin/version.h: Bump API minor version.

14 years ago * new-features.sgml (ov-new1.7.6): Add locale wide-char changes.
Corinna Vinschen [Wed, 28 Apr 2010 10:19:25 +0000 (10:19 +0000)]
* new-features.sgml (ov-new1.7.6): Add locale wide-char changes.

14 years ago * locale.cc (print_lc_xxx_charset): Remove.
Corinna Vinschen [Wed, 28 Apr 2010 10:00:40 +0000 (10:00 +0000)]
* locale.cc (print_lc_xxx_charset): Remove.
(enum type_t): Change according to the fact that nl_langinfo now returns
all locale category values.
(lc_ctype_names): Add new category members.  Redefine for exclusive
nl_langinfo usage.
(lc_numeric_names): Ditto.
(lc_time_names): Ditto.
(lc_collate_names): Ditto.
(lc_monetary_names): Ditto.
(lc_messages_names): Ditto.
(print_lc): Change switch according to new type_t values.

14 years ago * cygwin.din (__locale_mb_cur_max): Export.
Corinna Vinschen [Wed, 28 Apr 2010 10:00:24 +0000 (10:00 +0000)]
* cygwin.din (__locale_mb_cur_max): Export.
* nlsfuncs.cc (__getlocaleinfo): Drop conversion to multibyte.
(__charfromwchar): New function to convert to multibyte.
(__eval_datetimefmt): Convert to return wchar_t pointer.  Work on
wide char string.
(__set_lc_time_from_win): Take additional pointer to "C" category info
to accommodate C.foo locales.  Rework to fill wide char members in
category info.
(__set_lc_ctype_from_win): New function.
(__set_lc_numeric_from_win): Take additional pointer to "C" category
info to accommodate C.foo locales.  Rework to fill wide char members
in category info.
(__set_lc_monetary_from_win): Ditto.
(__set_lc_messages_from_win): Ditto.
(__get_current_collate_codeset): New function, called from nl_langinfo.
* include/cygwin/config.h (__HAVE_LOCALE_INFO_EXTENDED__): Define.

14 years ago Extend locale support to maintain wide char values of native strings
Corinna Vinschen [Wed, 28 Apr 2010 09:59:37 +0000 (09:59 +0000)]
Extend locale support to maintain wide char values of native strings
if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
* libc/include/langinfo.h (enum __nl_item): New type.  Define all
native values accessible through nl_langinfo.  Define previously
existing POSIX-compatible values as macros as well.
* libc/include/stdlib.h (__mb_cur_max): Drop declaration.
(__locale_mb_cur_max): Declare.
(MB_CUR_MAX): Re-define calling __locale_mb_cur_max.
* libc/locale/Makefile.am (ELIX_SOURCES): Add lctype.c.
* libc/locale/Makefile.in: Regenerate.
* libc/locale/lctype.c: New file to define and load LC_CTYPE category.
* libc/locale/lctype.h: New file, matching header.
* libc/locale/lmessages.c (_C_messages_locale): Add default values for
wide char members.
(__messages_load_locale): Add _C_messages_locale in call to
__set_lc_messages_from_win.
* libc/locale/lmessages.h (struct lc_messages_T): Add wide char members.
* libc/locale/lmonetary.c (_C_monetary_locale):  Add default values for
wide char members.
(__monetary_load_locale): Add _C_monetary_locale in call to
__set_lc_monetary_from_win.
* libc/locale/lmonetary.h (struct lc_monetary_T): Add wide char members.
Add numerical values for international currency formatting per
POSIX-1.2008, if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
* libc/locale/lnumeric.c (_C_numeric_locale): Add default values for
wide char members.
(__numeric_load_locale): Add _C_numeric_locale in call to
__set_lc_numeric_from_win.
* libc/locale/lnumeric.h (struct lc_numeric_T): Add wide char members.
* libc/locale/locale.c (loadlocale): Return doing nothing if category
locale didn't change.  Convert category if chain to switch statement.
Call __ctype_load_locale in LC_CTYPE case.
(__locale_charset): Add (but disable for now) returning codeset from
__get_current_ctype_locale.
(__locale_mb_cur_max): Add (but disable for now) returning mb_cur_max
from __get_current_ctype_locale.
(__locale_msgcharset): Add returning codeset from
__get_current_messages_locale.
(_localeconv_r): Accommodate int_XXX values.
* libc/locale/nl_langinfo.c (nl_ext): New array to define what is to
be returned for non-POSIX values.
(nl_Langinfo): Return correct codeset for each locale category.  Return
extended values if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
* libc/locale/timelocal.c (_C_time_locale): Add default values for
wide char members.
(__time_load_locale): Add _C_time_locale in call to
__set_lc_time_from_win.
* libc/locale/timelocal.h (struct lc_time_T): Add wide char members.
* libc/stdio/vfwprintf.c (_VFWPRINTF_R): Use wide char decimal point
and thousands_sep if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
* libc/time/strftime.c: Rework to accommodate availability of wide char
strings in LC_TIME category if __HAVE_LOCALE_INFO_EXTENDED__ is defined.

14 years ago* spawn.cc (find_exec): Use the first detected errno when lookup fails.
Christopher Faylor [Tue, 27 Apr 2010 23:06:48 +0000 (23:06 +0000)]
* spawn.cc (find_exec): Use the first detected errno when lookup fails.

14 years ago * include/regex.h: Include _ansi.h to avoid missing out on preprocessor
Corinna Vinschen [Tue, 27 Apr 2010 15:18:14 +0000 (15:18 +0000)]
* include/regex.h: Include _ansi.h to avoid missing out on preprocessor
macros in sys/_types.h.

14 years ago * configure.ac (--enable-gold): Support both, both/gold and
Nick Clifton [Tue, 27 Apr 2010 14:24:37 +0000 (14:24 +0000)]
    * configure.ac (--enable-gold): Support both, both/gold and
        both/bfd to add gold to configdirs without removing ld.
        * configure: Regenerated.

        * Makefile.def: Add install-gold dependency to install-ld.
        * Makefile.in: Regenerated.

14 years agomerge from gcc
DJ Delorie [Mon, 26 Apr 2010 18:04:23 +0000 (18:04 +0000)]
merge from gcc

14 years ago * mount.h (fs_info::inited): New inline method.
Corinna Vinschen [Mon, 26 Apr 2010 13:48:04 +0000 (13:48 +0000)]
* mount.h (fs_info::inited): New inline method.
* path.cc (path_conv::check): Clear filesystem info if following a
symlink.  Use new fs_info::inited method to check if FS info is already
available.
(symlink_info::check): Drop fs_update_called.  Use fs_info::inited
method instead.  Streamline test for leading space and trailing dot or
space.  Add comments.

14 years agoinclude/elf/
Alan Modra [Sat, 24 Apr 2010 01:05:22 +0000 (01:05 +0000)]
include/elf/
* internal.h (ELF_SECTION_SIZE): Protect macro args with parentheses.
Invert logic to clarify test for .tbss.
(ELF_IS_SECTION_IN_SEGMENT): Rename to..
(ELF_SECTION_IN_SEGMENT_1): ..this.  Add check_vma param.  Protect
macro args with parentheses.
(ELF_SECTION_IN_SEGMENT): Define.
(ELF_IS_SECTION_IN_SEGMENT_FILE): Delete.
(ELF_IS_SECTION_IN_SEGMENT_MEMORY): Delete.
bfd/
* elf.c: Replace use of ELF_IS_SECTION_IN_SEGMENT and
ELF_IS_SECTION_IN_SEGMENT_FILE with ELF_SECTION_IN_SEGMENT
throughout file.
(assign_file_positions_for_load_sections): Modify section in
segment warning to ignore overlay vmas.
* elf32-spu.c (spu_elf_object_p): Replace use of
ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT.
binutils/
* readelf.c (process_program_headers): Replace use of
ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT.

14 years agomerge from gcc
DJ Delorie [Sat, 24 Apr 2010 01:03:15 +0000 (01:03 +0000)]
merge from gcc

14 years ago * path.h (get_nt_native_path): Add third parameter to declaration and
Corinna Vinschen [Fri, 23 Apr 2010 11:07:35 +0000 (11:07 +0000)]
* path.h (get_nt_native_path): Add third parameter to declaration and
declare with regparms.
* path.cc (get_nt_native_path): Add third parameter to allow conversion
of leading and trailing dots and spaces on filesystems only supporting
filenames following DOS rules.
(path_conv::get_nt_native_path): Call get_nt_native_path according to
fs.has_dos_filenames_only flag.
(getfileattr): Accommodate new parameter to get_nt_native_path.
(symlink_info::check): Revamp fs_update_called handling to call
fs.update only once per call.  Call get_nt_native_path according to
fs.has_dos_filenames_only flag.  Streamline filesystem dependent code
not to be called more than once unnecessarily.  Drop code tweaking
incoming path for broken filesystems only allowing DOS pathnames.
Rely on changed get_nt_native_path instead.
* mount.cc (fillout_mntent): Accommodate new parameter to
get_nt_native_path.
* strfuncs.cc (tfx_rev_chars): New conversion table with comment.
(sys_cp_wcstombs): Use tfx_rev_chars rather than tfx_chars.

14 years ago* libc/Makefile.am (SUBDEFS): Add LIBC_POSIX_DEF.
DJ Delorie [Thu, 22 Apr 2010 23:32:42 +0000 (23:32 +0000)]
* libc/Makefile.am (SUBDEFS): Add LIBC_POSIX_DEF.
(libc.info): Add posix.texi.
(libc.dvi): Likewise.
(stmp-posix): New.
(posix.texi): New.
(libc_TEXINFOS): Add posix.texi.
* libc/configure.in (LIBC_POSIX_LIB, LIBC_POSIX_DEF): Add
tests.
* libc/libc.texinfo: Include posix.texi
* libc/locale/locale.c: Fix texinfo typo.
* libc/time/strftime.c: Fix texinfo typo.

* libc/configure: Regenerate.
* libc/Makefile.in: Regenerate.
* libc/argz/Makefile.in: Regenerate.
* libc/ctype/Makefile.in: Regenerate.
* libc/errno/Makefile.in: Regenerate.
* libc/iconv/Makefile.in: Regenerate.
* libc/iconv/ccs/Makefile.in: Regenerate.
* libc/iconv/ccs/binary/Makefile.in: Regenerate.
* libc/iconv/ces/Makefile.in: Regenerate.
* libc/iconv/lib/Makefile.in: Regenerate.
* libc/locale/Makefile.in: Regenerate.
* libc/misc/Makefile.in: Regenerate.
* libc/posix/Makefile.in: Regenerate.
* libc/reent/Makefile.in: Regenerate.
* libc/search/Makefile.in: Regenerate.
* libc/signal/Makefile.in: Regenerate.
* libc/stdio/Makefile.in: Regenerate.
* libc/stdio64/Makefile.in: Regenerate.
* libc/stdlib/Makefile.in: Regenerate.
* libc/string/Makefile.in: Regenerate.
* libc/syscalls/Makefile.in: Regenerate.
* libc/time/Makefile.in: Regenerate.
* libc/unix/Makefile.in: Regenerate.
* libc/xdr/Makefile.in: Regenerate.

14 years ago * path.cc (symlink_info::check): Make sure to restart only once.
Corinna Vinschen [Thu, 22 Apr 2010 17:42:18 +0000 (17:42 +0000)]
* path.cc (symlink_info::check): Make sure to restart only once.

This page took 0.084015 seconds and 5 git commands to generate.