]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
13 years ago * mmap.cc (mmap_record::alloc_fh): Initialize nmae strings in fdev to
Corinna Vinschen [Fri, 18 Mar 2011 13:56:56 +0000 (13:56 +0000)]
* mmap.cc (mmap_record::alloc_fh): Initialize nmae strings in fdev to
empty strings or suffer a SEGV.  Drop second parameter in call to
build_fh_dev.

13 years ago * mmap.cc (class mmap_record): Pack 4 byte-aligned. Convert member dev
Corinna Vinschen [Fri, 18 Mar 2011 13:42:03 +0000 (13:42 +0000)]
* mmap.cc (class mmap_record): Pack 4 byte-aligned.  Convert member dev
to plain int.
(mmap_record::alloc_fh): Create temporary device from dev and use in
call to build_fh_dev.

13 years ago * mmap.cc (mmap_record::page_map): Define as variable array rather than
Corinna Vinschen [Fri, 18 Mar 2011 13:38:34 +0000 (13:38 +0000)]
* mmap.cc (mmap_record::page_map): Define as variable array rather than
as pointer.
(mmap_record::alloc_page_map): Remove.
(mmap_record::free_page_map): Remove.
(mmap_record::init_page_map): New method.
(mmap_record::add_record): Take mmap_record parameter by reference
rather than by value.
(mmap_record::map_pages): Fix comment.
(mmap_list::add_record): Allocate space for mmap_record including the
page_map in a single ccalloc call.  Call init_page_map afterwards.
(mmap_list::del_record): Remove call to mmap_record::free_page_map.

13 years ago * crt0.c (mainCRTStartup): Move call to _feinitialise from here...
Corinna Vinschen [Thu, 17 Mar 2011 08:40:25 +0000 (08:40 +0000)]
* crt0.c (mainCRTStartup): Move call to _feinitialise from here...
* dcrt0.cc (_dll_crt0): ...to here.

13 years ago * winver.rc: Fix copyright dates.
Corinna Vinschen [Wed, 16 Mar 2011 21:10:51 +0000 (21:10 +0000)]
* winver.rc: Fix copyright dates.

13 years ago * dwarf2.h (DW_TAG_GNU_call_site, DW_TAG_GNU_call_site_parameter,
Jakub Jelinek [Wed, 16 Mar 2011 08:48:47 +0000 (08:48 +0000)]
* dwarf2.h (DW_TAG_GNU_call_site, DW_TAG_GNU_call_site_parameter,
DW_AT_GNU_call_site_value, DW_AT_GNU_call_site_data_value,
DW_AT_GNU_call_site_target, DW_AT_GNU_call_site_target_clobbered,
DW_AT_GNU_tail_call, DW_AT_GNU_all_tail_call_sites,
DW_AT_GNU_all_call_sites,, DW_AT_GNU_all_source_call_sites,
DW_OP_GNU_entry_value): New.

13 years agoinclude/elf/
Richard Sandiford [Mon, 14 Mar 2011 16:04:04 +0000 (16:04 +0000)]
include/elf/
* arm.h (R_ARM_IRELATIVE): New relocation.

bfd/
* reloc.c (BFD_RELOC_ARM_IRELATIVE): New relocation.
* bfd-in2.h: Regenerate.
* elf32-arm.c (elf32_arm_howto_table_2): Rename existing definition
to elf32_arm_howto_table_3 and replace with a single R_ARM_IRELATIVE
entry.
(elf32_arm_howto_from_type): Update accordingly.
(elf32_arm_reloc_map): Map BFD_RELOC_ARM_IRELATIVE to R_ARM_IRELATIVE.
(elf32_arm_reloc_name_lookup): Handle elf32_arm_howto_table_3.
(arm_plt_info): New structure, split out from elf32_arm_link_hash_entry
with an extra noncall_refcount field.
(arm_local_iplt_info): New structure.
(elf_arm_obj_tdata): Add local_iplt.
(elf32_arm_local_iplt): New accessor macro.
(elf32_arm_link_hash_entry): Replace plt_thumb_refcount,
plt_maybe_thumb_refcount and plt_got_offset with an arm_plt_info.
Change tls_type to a bitfield and add is_iplt.
(elf32_arm_link_hash_newfunc): Update accordingly.
(elf32_arm_allocate_local_sym_info): New function.
(elf32_arm_create_local_iplt): Likewise.
(elf32_arm_get_plt_info): Likewise.
(elf32_arm_plt_needs_thumb_stub_p): Likewise.
(elf32_arm_get_local_dynreloc_list): Likewise.
(create_ifunc_sections): Likewise.
(elf32_arm_copy_indirect_symbol): Update after the changes to
elf32_arm_link_hash_entry.  Assert the is_iplt has not yet been set.
(arm_type_of_stub): Add an st_type argument.  Use elf32_arm_get_plt_info
to get PLT information.  Assert that all STT_GNU_IFUNC references
are turned into PLT references.
(arm_build_one_stub): Pass the symbol type to
elf32_arm_final_link_relocate.
(elf32_arm_size_stubs): Pass the symbol type to arm_type_of_stub.
(elf32_arm_allocate_irelocs): New function.
(elf32_arm_add_dynreloc): In static objects, use .rel.iplt for
all R_ARM_IRELATIVE.
(elf32_arm_allocate_plt_entry): New function.
(elf32_arm_populate_plt_entry): Likewise.
(elf32_arm_final_link_relocate): Add an st_type parameter.
Set srelgot to null for static objects.  Use separate variables
to record which st_value and st_type should be used when generating
a dynamic relocation.  Use elf32_arm_get_plt_info to find the
symbol's PLT information, setting has_iplt_entry, splt,
plt_offset and gotplt_offset accordingly.  Check whether
STT_GNU_IFUNC symbols should resolve to an .iplt entry, and change
the relocation target accordingly.  Broaden assert to include
.iplts.  Don't set sreloc for static relocations.  Assert that
we only generate dynamic R_ARM_RELATIVE relocations for R_ARM_ABS32
and R_ARM_ABS32_NOI.  Generate R_ARM_IRELATIVE relocations instead
of R_ARM_RELATIVE relocations if the target is an STT_GNU_IFUNC
symbol.  Pass the symbol type to arm_type_of_stub.  Conditionally
resolve GOT references to the .igot.plt entry.
(elf32_arm_relocate_section): Update the call to
elf32_arm_final_link_relocate.
(elf32_arm_gc_sweep_hook): Use elf32_arm_get_plt_info to get PLT
information.  Treat R_ARM_REL32 and R_ARM_REL32_NOI as call
relocations in shared libraries and relocatable executables.
Count non-call PLT references.  Use elf32_arm_get_local_dynreloc_list
to get the list of dynamic relocations for a local symbol.
(elf32_arm_check_relocs): Always create ifunc sections.  Set isym
at the same time as setting h.  Use elf32_arm_allocate_local_sym_info
to allocate local symbol information.  Treat R_ARM_REL32 and
R_ARM_REL32_NOI as call relocations in shared libraries and
relocatable executables.  Record PLT information for local
STT_GNU_IFUNC functions as well as global functions.   Count
non-call PLT references.  Use elf32_arm_get_local_dynreloc_list
to get the list of dynamic relocations for a local symbol.
(elf32_arm_adjust_dynamic_symbol): Handle STT_GNU_IFUNC symbols.
Don't remove STT_GNU_IFUNC PLTs unless all references have been
removed.  Update after the changes to elf32_arm_link_hash_entry.
(allocate_dynrelocs_for_symbol): Decide whether STT_GNU_IFUNC PLT
entries should live in .plt or .iplt.  Check whether the .igot.plt
and .got entries can be combined.  Use elf32_arm_allocate_plt_entry
to allocate .plt and .(i)got.plt entries.  Detect which .got
entries will need R_ARM_IRELATIVE relocations and use
elf32_arm_allocate_irelocs to allocate them.  Likewise other
non-.got dynamic relocations.
(elf32_arm_size_dynamic_sections): Allocate .iplt, .igot.plt
and dynamic relocations for local STT_GNU_IFUNC symbols.
Check whether the .igot.plt and .got entries can be combined.
Detect which .got entries will need R_ARM_IRELATIVE relocations
and use elf32_arm_allocate_irelocs to allocate them.  Use stashed
section pointers intead of strcmp checks.  Handle iplt and igotplt.
(elf32_arm_finish_dynamic_symbol): Use elf32_arm_populate_plt_entry
to fill in .plt, .got.plt and .rel(a).plt entries.  Point
STT_GNU_IFUNC symbols at an .iplt entry if non-call relocations
resolve to it.
(elf32_arm_output_plt_map_1): New function, split out from
elf32_arm_output_plt_map.  Handle .iplt entries.  Use
elf32_arm_plt_needs_thumb_stub_p.
(elf32_arm_output_plt_map): Call it.
(elf32_arm_output_arch_local_syms): Add mapping symbols for
local .iplt entries.
(elf32_arm_swap_symbol_in): Handle Thumb STT_GNU_IFUNC symbols.
(elf32_arm_swap_symbol_out): Likewise.
(elf32_arm_add_symbol_hook): New function.
(elf_backend_add_symbol_hook): Define for all targets.

opcodes/
* arm-dis.c (get_sym_code_type): Treat STT_GNU_IFUNCs as code.

gas/
* config/tc-arm.c (md_pcrel_from_section): Use S_FORCE_RELOC to
determine whether a relocation is needed.
(md_apply_fix, arm_apply_sym_value): Likewise.

ld/testsuite/
* ld-arm/ifunc-1.s, ld-arm/ifunc-1.dd, ld-arm/ifunc-1.gd,
ld-arm/ifunc-1.rd, ld-arm/ifunc-2.s, ld-arm/ifunc-2.dd,
ld-arm/ifunc-2.gd, ld-arm/ifunc-2.rd, ld-arm/ifunc-3.s,
ld-arm/ifunc-3.dd, ld-arm/ifunc-3.gd, ld-arm/ifunc-3.rd,
ld-arm/ifunc-4.s, ld-arm/ifunc-4.dd, ld-arm/ifunc-4.gd,
ld-arm/ifunc-4.rd, ld-arm/ifunc-5.s, ld-arm/ifunc-5.dd,
ld-arm/ifunc-5.gd, ld-arm/ifunc-5.rd, ld-arm/ifunc-6.s,
ld-arm/ifunc-6.dd, ld-arm/ifunc-6.gd, ld-arm/ifunc-6.rd,
ld-arm/ifunc-7.s, ld-arm/ifunc-7.dd, ld-arm/ifunc-7.gd,
ld-arm/ifunc-7.rd, ld-arm/ifunc-8.s, ld-arm/ifunc-8.dd,
ld-arm/ifunc-8.gd, ld-arm/ifunc-8.rd, ld-arm/ifunc-9.s,
ld-arm/ifunc-9.dd, ld-arm/ifunc-9.gd, ld-arm/ifunc-9.rd,
ld-arm/ifunc-10.s, ld-arm/ifunc-10.dd, ld-arm/ifunc-10.gd,
ld-arm/ifunc-10.rd, ld-arm/ifunc-11.s, ld-arm/ifunc-11.dd,
ld-arm/ifunc-11.gd, ld-arm/ifunc-11.rd, ld-arm/ifunc-12.s,
ld-arm/ifunc-12.dd, ld-arm/ifunc-12.gd, ld-arm/ifunc-12.rd,
ld-arm/ifunc-13.s, ld-arm/ifunc-13.dd, ld-arm/ifunc-13.gd,
ld-arm/ifunc-13.rd, ld-arm/ifunc-14.s, ld-arm/ifunc-14.dd,
ld-arm/ifunc-14.gd, ld-arm/ifunc-14.rd, ld-arm/ifunc-15.s,
ld-arm/ifunc-15.dd, ld-arm/ifunc-15.gd, ld-arm/ifunc-15.rd,
ld-arm/ifunc-16.s, ld-arm/ifunc-16.dd, ld-arm/ifunc-16.gd,
ld-arm/ifunc-16.rd, ld-arm/ifunc-dynamic.ld,
ld-arm/ifunc-static.ld: New tests.
* ld-arm/farcall-group.d, ld-arm/farcall-group-size2.d,
ld-arm/farcall-mixed-lib-v4t.d, ld-arm/farcall-mixed-lib.d: Update
for new stub hashes.
* ld-arm/arm-elf.exp: Run them.

13 years agoinclude/elf/
Richard Sandiford [Mon, 14 Mar 2011 15:54:57 +0000 (15:54 +0000)]
include/elf/
* internal.h (elf_internal_sym): Add st_target_internal.
* arm.h (arm_st_branch_type): New enum.
(ARM_SYM_BRANCH_TYPE): New macro.

bfd/
* elf-bfd.h (elf_link_hash_entry): Add target_internal.
* elf.c (swap_out_syms): Set st_target_internal for each
Elf_Internal_Sym.
* elfcode.h (elf_swap_symbol_in): Likewise.
* elf32-i370.c (i370_elf_finish_dynamic_sections): Likewise.
* elf32-sh-symbian.c (sh_symbian_relocate_section): Likewise.
* elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise.
* elflink.c (elf_link_output_extsym): Likewise.
(bfd_elf_final_link): Likewise.
(elf_link_add_object_symbols): Copy st_target_internal
to the hash table if we see a definition.
(_bfd_elf_copy_link_hash_symbol_type): Copy target_internal.
* elf32-arm.c (elf32_arm_stub_hash_entry): Replace st_type with
a branch_type field.
(a8_erratum_fix, a8_erratum_reloc): Likewise.
(arm_type_of_stub): Replace actual_st_type with an
actual_branch_type parameter.
(arm_build_one_stub): Use branch types rather than st_types to
determine the type of branch.
(cortex_a8_erratum_scan): Likewise.
(elf32_arm_size_stubs): Likewise.
(bfd_elf32_arm_process_before_allocation): Likewise.
(allocate_dynrelocs_for_symbol): Likewise.
(elf32_arm_finish_dynamic_sections): Likewise.
(elf32_arm_final_link_relocate): Replace sym_flags parameter with
a branch_type parameter.
(elf32_arm_relocate_section): Update call accordingly.
(elf32_arm_adjust_dynamic_symbol): Don't check STT_ARM_TFUNC.
(elf32_arm_output_map_sym): Initialize st_target_internal.
(elf32_arm_output_stub_sym): Likewise.
(elf32_arm_symbol_processing): Delete.
(elf32_arm_swap_symbol_in): Convert STT_ARM_TFUNCs into STT_FUNCs.
Use st_target_internal to record the branch type.
(elf32_arm_swap_symbol_out): Use st_target_internal to test for
Thumb functions.
(elf32_arm_is_function_type): Delete.
(elf_backend_symbol_processing): Likewise.
(elf_backend_is_function_type): Likewise.

gas/
* config/tc-arm.c (arm_adjust_symtab): Set the branch type
for Thumb symbols.

ld/
* emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
eh->target_internal.

opcodes/
* arm-dis.c (get_sym_code_type): Don't check for STT_ARM_TFUNC.
Use branch types instead.
(print_insn): Likewise.

13 years ago * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Only use
Corinna Vinschen [Mon, 14 Mar 2011 09:14:17 +0000 (09:14 +0000)]
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Only use
file id as inode number if it masters the isgood_inode check.

13 years ago* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Remove special
Christopher Faylor [Sun, 13 Mar 2011 20:20:58 +0000 (20:20 +0000)]
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Remove special
treatment for ERROR_NO_SYSTEM_RESOURCES.  Cancel I/O and reset the overlapped
handle on error.
(fhandler_base_overlapped::write_overlapped): Limit writes to max_atomic_write
bytes in blocking case.  Incorporate code from now-defunct
write_overlapped_fallback.  Fix serious oversight where ptr was not advanced as
buffer was written.
(fhandler_base_overlapped::write_overlapped_fallback): Eliminate.
* fhandler.h (fhandler_base_overlapped::write_overlapped_fallback): Ditto for
declaration.
(DEFAULT_PIPEBUFSIZE): Lower size to slightly less than documented worst-case
atomic write size.
(fhandler_overlapped::wait_return): Remove unused element.

13 years ago2011-03-11 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe [Sat, 12 Mar 2011 04:33:16 +0000 (04:33 +0000)]
2011-03-11  Chris Sutcliffe  <ir0nh34d@users.sf.net>

        * include/w32api.h: Increment version to 3.17.
        * Makefile.in: Ditto.

13 years ago * common.h (EM_V850): V850s now supplied by Renesas.
Nick Clifton [Thu, 10 Mar 2011 10:23:37 +0000 (10:23 +0000)]
* common.h (EM_V850): V850s now supplied by Renesas.
* readelf.c (get_machine_name): Update EM_V850 entry.

13 years ago* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Handle
Christopher Faylor [Wed, 9 Mar 2011 22:48:05 +0000 (22:48 +0000)]
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Handle
overlapped_fallback error condition like other error conditions.  Set res
carefully and specifically for each condition rather than resorting to a
default.
(fhandler_base_overlapped::write_overlapped): Preserve errno in
overlapped_fallback condition.  Correct write_overlapped_fallback to avoid
inappropriate looping.
(fhandler_base_overlapped::write_overlapped_fallback): Add some more comments.

13 years ago* fhandler.cc (fhandler_base_overlapped::write_overlapp): Oops! Accommodate
Christopher Faylor [Wed, 9 Mar 2011 16:55:54 +0000 (16:55 +0000)]
* fhandler.cc (fhandler_base_overlapped::write_overlapp): Oops! Accommodate
change in arguments to wait_overlapped.

13 years ago* errno.cc (errmap): Change mapping of NO_SYSTEM_RESOURCES to EFBIG.
Christopher Faylor [Wed, 9 Mar 2011 16:47:44 +0000 (16:47 +0000)]
* errno.cc (errmap): Change mapping of NO_SYSTEM_RESOURCES to EFBIG.
* fhandler.cc (MAX_OVERLAPPED_WRITE_LEN): New constant.
(MIN_OVERLAPPED_WRITE_LEN): Ditto.
(fhandler_base_overlapped::close): Accommodate change in arguments to
wait_overlapped.
(fhandler_base_overlapped::setup_overlapped): Add __stdcall and regparm
modifiers.
(fhandler_base_overlapped::destroy_overlapped): Ditto.
(fhandler_base_overlapped::has_ongoing_io): Ditto.
(fhandler_base_overlapped::wait_overlapped): Modify to return an enum returning
various states.  Accept nonblocking parameter.
(fhandler_base_overlapped::read_overlapped): Add __stdcall and regparm
modifiers.  Rework to attempt to be smarter about reacting to states returned
by wait_overlapped.
(fhandler_base_overlapped::write_overlapped): Ditto.  Add fallback option for
when wait_overlapped detects that smaller chunks must be written.
(fhandler_base_overlapped::write_overlapped_fallback): Ditto.
* fhandler.h (DEFAULT_PIPEBUFSIZE): Move definition here from pipe.cc.
(fhandler_base::has_ongoing_io): Define with __stdcall and regparm modifiers.
(fhandler_base_overlapped::wait_return): New enum.
(fhandler_base_overlapped::max_atomic_write): New variable.
(fhandler_base_overlapped:: wait_overlapped): Accommodate changes mentioned
above to arguments and modifiers.
(fhandler_base_overlapped::setup_overlapped): Ditto for modifiers.
(fhandler_base_overlapped::read_overlapped): Ditto.
(fhandler_base_overlapped::write_overlapped): Ditto.
(fhandler_base_overlapped::destroy_overlapped): Ditto.
(fhandler_base_overlapped::has_ongoing_io): Ditto.
(fhandler_base_overlapped::fhandler_base_overlapped): Zero max_atomic_write.
* fhandler_fifo.cc (fhandler_fifo::fhandler_fifo): Set max_atomic_write to the
size of the DEFAULT_PIPEBUFSIZE.
(fhandler_fifo::wait): Accommodate change in arguments to wait_overlapped.
* pipe.cc (fhandler_pipe::fhandler_pipe): Set max_atomic_write to the size of
the DEFAULT_PIPEBUFSIZE.
(fhandler_pipe::create_selectable): Allow minimum size of DEFAULT_PIPEBUFSIZE.
(DEFAULT_PIPEBUFSIZE): Delete here, move to fhandler.h.

13 years ago * security.cc: Fix copyright dates.
Corinna Vinschen [Tue, 8 Mar 2011 15:12:58 +0000 (15:12 +0000)]
* security.cc: Fix copyright dates.

13 years ago * fhandler.cc (fhandler_base::open): When creating a file on a
Corinna Vinschen [Tue, 8 Mar 2011 14:26:15 +0000 (14:26 +0000)]
* fhandler.cc (fhandler_base::open): When creating a file on a
filesystem supporting ACLs, create the file with WRITE_DAC access.
Explain why.
* fhandler_disk_file.cc (fhandler_disk_file::mkdir): Ditto for
directories.
* fhandler_socket.cc (fhandler_socket::bind): Ditto for sockets.
* path.cc (symlink_worker): Ditto for symlinks.
* security.cc (get_file_sd): Always call GetSecurityInfo for directories
on XP and Server 2003.  Improve comment to explain why.
(set_file_attribute): Explicitely cast mode_t value to bool in call to
get_file_sd.
* wincap.h (wincaps::use_get_sec_info_on_dirs): New element.
* wincap.cc: Implement above element throughout.

13 years ago2011-03-07 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe [Tue, 8 Mar 2011 01:57:46 +0000 (01:57 +0000)]
2011-03-07  Chris Sutcliffe  <ir0nh34d@users.sf.net>

        * include/winbase.h (PSAPI_WORKING_SET_BLOCK,
        PSAPI_WORKING_SET_INFORMATION): Move from here...
        * include/psapi.h (PSAPI_WORKING_SET_BLOCK,
        PSAPI_WORKING_SET_INFORMATION): ... to here.

13 years agosim: bfin: new port
Michael Frysinger [Sun, 6 Mar 2011 00:20:16 +0000 (00:20 +0000)]
sim: bfin: new port

This can boot Das U-Boot and a Linux kernel.  It also supports Linux
userspace FLAT and FDPIC (dynamic and static) ELFs.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years ago2011-03-05 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe [Sat, 5 Mar 2011 20:55:46 +0000 (20:55 +0000)]
2011-03-05  Chris Sutcliffe  <ir0nh34d@users.sf.net>

        * include/w32api.h: Increment version to 3.16.
        * Makefile.in: Ditto.

13 years ago2011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 5 Mar 2011 20:50:52 +0000 (20:50 +0000)]
2011-03-05  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/commctrl.h (NMTCKEYDOWN): Define.

13 years ago2011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 5 Mar 2011 20:43:53 +0000 (20:43 +0000)]
2011-03-05  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/wtsapi32.h (WTSSendMessageA, WTSSendMessageW, WTSSendMessage):
        Define.

13 years ago2011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 5 Mar 2011 20:29:08 +0000 (20:29 +0000)]
2011-03-05  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/winbase.h (PSAPI_WORKING_SET_BLOCK,
        PSAPI_WORKING_SET_INFORMATION): Define.

13 years ago2011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 5 Mar 2011 19:36:28 +0000 (19:36 +0000)]
2011-03-05  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/winbase.h (__GNUC_EXTENSION): Define, replacing __MINGW_EXTENSION.

13 years agoGuard against M4 versions with a buggy strstr.
Ralf Wildenhues [Sat, 5 Mar 2011 07:33:13 +0000 (07:33 +0000)]
Guard against M4 versions with a buggy strstr.

config/:
* override.m4: Error out if a buggy M4 was detected, to
avoid spurious diffs in generated files.

13 years ago2011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 5 Mar 2011 05:45:42 +0000 (05:45 +0000)]
2011-03-05  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * lib/kernel32.def (FreeLibraryAndExitThread): Fix definition.

13 years ago2011-03-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 5 Mar 2011 05:05:20 +0000 (05:05 +0000)]
2011-03-04  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/winbase.h (FILE_ENCRYPTABLE, FILE_IS_ENCRYPTED, FILE_READ_ONLY,
        FILE_ROOT_DIR, FILE_SYSTEM_ATTR, FILE_SYSTEM_DIR, FILE_SYSTEM_NOT_SUPPORT,
        FILE_UNKNOWN, FILE_USER_DISALLOWED): Define.

13 years ago2011-03-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 5 Mar 2011 04:51:01 +0000 (04:51 +0000)]
2011-03-04  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/winioctl.h (_DRIVE_LAYOUT_INFORMATION_MBR): Add
        _DRIVE_LAYOUT_INFORMATION_MBR_DEFINED guard.
        * include/ddk/winddk.h (_DRIVE_LAYOUT_INFORMATION_MBR): Ditto.

13 years ago2011-03-04 Seth Jackson <sethj@users.sourceforge.net>
Chris Sutcliffe [Sat, 5 Mar 2011 04:39:15 +0000 (04:39 +0000)]
2011-03-04  Seth Jackson  <sethj@users.sourceforge.net>

        * include/winnt.h (PAGE_WRITECOMBINE): Define.
        * include/winbase.h (THREAD_MODE_BACKGROUND_BEGIN, THREAD_MODE_BACKGROUND_END): Define.

13 years ago2011-03-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 5 Mar 2011 04:31:24 +0000 (04:31 +0000)]
2011-03-04  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/winbase.h (__MINGW_EXTENSION): Define.
        (OVERLAPPED): Add __MINGW_EXTENSION around nameless union /
        struct to correct issue with -std=c99.

13 years ago * fhandler_procsys.cc (fhandler_procsys::exists): Rewrite.
Corinna Vinschen [Fri, 4 Mar 2011 17:51:42 +0000 (17:51 +0000)]
* fhandler_procsys.cc (fhandler_procsys::exists): Rewrite.
(fhandler_procsys::fill_filebuf): Fill buffer with valid string even if
reading the symlink fails.

13 years agoAdjust test of with_ppl.
Sebastian Pop [Fri, 4 Mar 2011 04:21:34 +0000 (04:21 +0000)]
Adjust test of with_ppl.

2011-03-03  Sebastian Pop  <sebastian.pop@amd.com>

        * configure.ac: Adjust test of with_ppl.
        * configure: Regenerated.

13 years ago * posix_ipc.cc (ipc_cond_timedwait): If ipc_mutex_unlock fails, return
Corinna Vinschen [Thu, 3 Mar 2011 15:48:36 +0000 (15:48 +0000)]
* posix_ipc.cc (ipc_cond_timedwait): If ipc_mutex_unlock fails, return
actual error number.
(_mq_send): Break loop if ipc_cond_timedwait returns with error.
(_mq_receive): Ditto.

13 years ago * libc/include/string.h: Include sys/cdefs.h.
Corinna Vinschen [Thu, 3 Mar 2011 11:11:41 +0000 (11:11 +0000)]
* libc/include/string.h: Include sys/cdefs.h.

13 years ago * libc/include/sys/cdefs.h (__CONCAT1): Define.
Corinna Vinschen [Thu, 3 Mar 2011 10:37:09 +0000 (10:37 +0000)]
* libc/include/sys/cdefs.h (__CONCAT1): Define.
(__CONCAT): Define.
(__STRING): Define.
(__XSTRING): Define.
(__ASMNAME): Define.
* libc/include/string.h (strerror_r): Use __ASMNAME to take target
specific label prefixes into account.

13 years ago * errno.cc (__xpg_strerror_r): Add accidentally missing condition.
Corinna Vinschen [Thu, 3 Mar 2011 09:50:13 +0000 (09:50 +0000)]
* errno.cc (__xpg_strerror_r): Add accidentally missing condition.

13 years ago * fhandler_procsys.cc (fhandler_procsys::open): Call worker exists
Corinna Vinschen [Wed, 2 Mar 2011 13:22:44 +0000 (13:22 +0000)]
* fhandler_procsys.cc (fhandler_procsys::open): Call worker exists
method, rather than wrapper.

13 years ago * include/ddk/winddk.h (TIMER_INFORMATION_CLASS): Define.
Corinna Vinschen [Wed, 2 Mar 2011 08:00:50 +0000 (08:00 +0000)]
* include/ddk/winddk.h (TIMER_INFORMATION_CLASS): Define.
(TIMER_BASIC_INFORMATION): Define.
(NtQueryTimer): Define.
(ZwQueryTimer): Define.

13 years agoAdd -lpwl to ppllibs, and -lisl to clooglibs.
Sebastian Pop [Wed, 2 Mar 2011 03:49:38 +0000 (03:49 +0000)]
Add -lpwl to ppllibs, and -lisl to clooglibs.

2011-03-02  Sebastian Pop  <sebastian.pop@amd.com>

* configure.ac: Add -lpwl to ppllibs.
* config/cloog.m4: Add -lisl to clooglibs.
* configure: Regenerated.

13 years ago* autoload.cc (dll_load): Avoid in_forkee test since this apparently fails even
Christopher Faylor [Tue, 1 Mar 2011 22:36:19 +0000 (22:36 +0000)]
* autoload.cc (dll_load): Avoid in_forkee test since this apparently fails even
when not forked.

13 years ago* include/cygwin/version.h: Bump CYGWIN_VERSION_DLL_MINOR to 9.
Christopher Faylor [Tue, 1 Mar 2011 22:35:00 +0000 (22:35 +0000)]
* include/cygwin/version.h: Bump CYGWIN_VERSION_DLL_MINOR to 9.

13 years ago2011-03-01 Aaron Landwehr <snaphat@gmail.com>
Jeff Johnston [Tue, 1 Mar 2011 21:43:15 +0000 (21:43 +0000)]
2011-03-01  Aaron Landwehr <snaphat@gmail.com>

        * libm/complex/cproj.c: Fix typo.
        * libm/complex/cprojf.c: Ditto.

13 years ago* autoload.cc (dll_load): Only perform DONT_RESOLVE_DLL_REFERENCES hack on
Christopher Faylor [Tue, 1 Mar 2011 00:19:23 +0000 (00:19 +0000)]
* autoload.cc (dll_load): Only perform DONT_RESOLVE_DLL_REFERENCES hack on
systems which need it.
* wincap.cc (use_dont_resolve_hack): Set as appropriate.
* wincap.h (use_dont_resolve_hack): Define.

13 years ago* autoload.cc (dll_load): Make inline. Clarify logic.
Christopher Faylor [Mon, 28 Feb 2011 20:55:10 +0000 (20:55 +0000)]
* autoload.cc (dll_load): Make inline.  Clarify logic.

13 years agoChangeLog libiberty/
Kai Tietz [Mon, 28 Feb 2011 18:30:14 +0000 (18:30 +0000)]
ChangeLog libiberty/
2011-02-28  Kai Tietz  <kai.tietz@onevision.com>

* filename_cmp.c (filename_ncmp): New function.
* functions.texi: Regenerated.

ChangeLog include/
2011-02-28  Kai Tietz  <kai.tietz@onevision.com>

* filenames.h (filename_ncmp): New prototype.

ChangeLog bfd/
2011-02-28  Kai Tietz  <kai.tietz@onevision.com>

* archive.c (_bfd_find_nested_archive): Use filename_(n)cmp.
(adjust_relative_path): Likewise.
(_bfd_construct_extended_name_table): Likewise.
* corefile.c (generic_core_file_matches_executable_p): Likewise.
* elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
* elf32-frv.c (elf32_frv_relocate_section): Likewise.
* elf32-spu.c (sort_bfds): Likewise.
(spu_elf_auto_overlay): Likewise.
* syms.c (_bfd_stab_section_find_nearest_line): Likewise.
* xcofflink.c (xcoff_set_import_path): Likewise.
* xtensa-isa.c (xtensa_regfile_lookup): Likewise.
(xtensa_regfile_lookup_shortname): Likewise.

13 years ago gas/
Maciej W. Rozycki [Mon, 28 Feb 2011 16:06:51 +0000 (16:06 +0000)]
gas/
* config/tc-mips.c (macro): Handle M_PREF_AB.

include/opcode/
* mips.h (M_PREF_AB): New enum value.

opcodes/
* mips-opc.c (mips_builtin_opcodes): Add "pref" macro.

13 years agoSwap ChangeLog entries.
Maciej W. Rozycki [Mon, 28 Feb 2011 16:03:38 +0000 (16:03 +0000)]
Swap ChangeLog entries.

13 years ago * autoload.cc (dll_load): Only call LoadLibraryExW with
Corinna Vinschen [Sun, 27 Feb 2011 09:45:58 +0000 (09:45 +0000)]
* autoload.cc (dll_load): Only call LoadLibraryExW with
DONT_RESOLVE_DLL_REFERENCES if a normal LoadLibrary call failed with
ERROR_INVALID_ADDRESS.
(LsaRegisterLogonProcess): Align comment to previous change.

13 years ago* autoload.cc: Use LoadDLLfuncEx3 for all winmm functions. Accommodate changes
Christopher Faylor [Sat, 26 Feb 2011 23:30:33 +0000 (23:30 +0000)]
* autoload.cc: Use LoadDLLfuncEx3 for all winmm functions.  Accommodate changes
to LoadDLLprime.
(LoadDLLprime): Take an extra argument indicating whether this dll needs
special handling on fork.  Place this information in the "handle" location.
(LoadDLLfuncEx3): Eliminate "func" handling.  Pass new no_resolve_on_fork
argument to LoadDLLprime.
(dll_load): New function.
(std_dll_init): Accommodate changes to dll_info::handle.  Use dll_load to load
DLL in both cases where it is used.

13 years ago * autoload.cc: Make autoloaded ntdll function non-optional. Ditto for
Corinna Vinschen [Sat, 26 Feb 2011 20:47:56 +0000 (20:47 +0000)]
* autoload.cc: Make autoloaded ntdll function non-optional.  Ditto for
secur32 functions, except for LsaRegisterLogonProcess.  Change return
value to ERROR_PROC_NOT_FOUND.  Explain why.
* sec_auth.cc (lsaauth): Handle ERROR_PROC_NOT_FOUND from call to
LsaRegisterLogonProcess when generating the errno value.

13 years agofix pr number
Alan Modra [Fri, 25 Feb 2011 12:33:53 +0000 (12:33 +0000)]
fix pr number

13 years ago PR 12519
Alan Modra [Fri, 25 Feb 2011 07:48:51 +0000 (07:48 +0000)]
PR 12519
* internal.h (ELF_SECTION_IN_SEGMENT_1): Don't match zero size
sections at start or end of PT_DYNAMIC.

13 years agoChangeLog include/
Kai Tietz [Wed, 23 Feb 2011 08:52:34 +0000 (08:52 +0000)]
ChangeLog include/

2011-02-23  Kai Tietz  <kai.tietz@onevision.com>

* dwarf2.h (_ELF_DWARF2_H): Renamed to
_DWARF2_H.
(DWARF2_External_LineInfo, DWARF2_Internal_LineInfo,
DWARF2_External_PubNames, DWARF2_Internal_PubNames,
DWARF2_External_CompUnit, DWARF2_Internal_CompUnit,
DWARF2_External_ARange, DWARF2_Internal_ARange): Removed.

ChangeLog binutils/

2011-02-23  Kai Tietz  <kai.tietz@onevision.com>

* dwarf.c (read_leb128): Use bfd_vma instead of
long type.
(dwarf_vmatoa): New helper routine.
(process_extended_line_op): Use for adr bfd_vma
type and print those typed values via BFD_VMA_FMT
or via dwarf_vmatoa for localized prints.
(fetch_indirect_string): Adjust offset's type.
(decode_location_expression): Adjust argument types
and uvalue type.
(read_and_display_attr_value): Likewise.
(read_and_display_attr): Likewise.
(decode_location_expression): Adjust printf format.
(process_debug_info): Likewise.
(display_debug_lines_raw): Likewise.
(display_debug_lines_decoded): Likewise.
(display_debug_pubnames): Likewise.
(display_debug_loc): Likewise.
(display_debug_aranges): Likewise.
* dwarf.h (DWARF2_External_LineInfo,
DWARF2_Internal_LineInfo, DWARF2_External_PubNames,
DWARF2_Internal_PubNames, DWARF2_External_CompUnit,
DWARF2_Internal_CompUnit, DWARF2_External_ARange,
DWARF2_Internal_ARange): Added..
(read_leb128): Adjust return type.

13 years ago * libc/stdio/fmemopen.c (fmemopen): Fix EINVAL condition. Avoid SEGV
Corinna Vinschen [Tue, 22 Feb 2011 15:38:14 +0000 (15:38 +0000)]
* libc/stdio/fmemopen.c (fmemopen): Fix EINVAL condition.  Avoid SEGV
if incoming buffer is NULL.

13 years ago * dcrt0.cc: Fix copyright dates.
Corinna Vinschen [Tue, 22 Feb 2011 09:17:57 +0000 (09:17 +0000)]
* dcrt0.cc: Fix copyright dates.
* winsup.h: Ditto.
* syscalls.cc (_read): Move EXPORT_ALIAS to its rightful place.

13 years agoForced checkin
Corinna Vinschen [Tue, 22 Feb 2011 08:58:15 +0000 (08:58 +0000)]
Forced checkin

13 years ago* cygwin.din: Mark __assert* and _abort as NOSIGFE.
Christopher Faylor [Tue, 22 Feb 2011 01:32:42 +0000 (01:32 +0000)]
* cygwin.din: Mark __assert* and _abort as NOSIGFE.

13 years agoAdd missing Changelog entry for previous patch:
Corinna Vinschen [Mon, 21 Feb 2011 17:11:10 +0000 (17:11 +0000)]
Add missing Changelog entry for previous patch:

* fhandler_socket (fhandler_socket::readv): Call recv_internal directly,
rather than recvmsg.
(fhandler_socket::writev): Call send_internal directly, rather than
sendmsg.
* net.cc (cygwin_recv): Call fhandler_socket::recvfrom directly, rather
than cygwin_recvfrom.
(cygwin_send): Call fhandler_socket::sendto directly, rather than
cygwin_sendto.

13 years ago * fhandler_socket (fhandler_socket::readv): Call recv_internal directly,
Corinna Vinschen [Mon, 21 Feb 2011 17:01:05 +0000 (17:01 +0000)]
* fhandler_socket (fhandler_socket::readv): Call recv_internal directly,
rather than recvmsg.
(fhandler_socket::writev): Call send_internal directly, rather than
sendmsg.
* net.cc (cygwin_recv): Call fhandler_socket::recvfrom directly, rather
than cygwin_recvfrom.
(cygwin_send): Call fhandler_socket::sendto directly, rather than
cygwin_sendto.

13 years ago* fhandler.cc (fhandler_base_overlapped::close): Finish any pending I/O before
Christopher Faylor [Mon, 21 Feb 2011 03:18:30 +0000 (03:18 +0000)]
* fhandler.cc (fhandler_base_overlapped::close): Finish any pending I/O before
closing.
(fhandler_base_overlapped::wait_overlapped): Defensively zero bytes read.  Add
more info to debugging output.

13 years ago* dcrt0.cc (dll_crt0_1): Add a CYGHEAP_DEBUG conditional for debugging which
Christopher Faylor [Fri, 18 Feb 2011 17:43:22 +0000 (17:43 +0000)]
* dcrt0.cc (dll_crt0_1): Add a CYGHEAP_DEBUG conditional for debugging which
allocates a lot of space at startup.

13 years ago * cygwin.sc: Set alignment of .cygheap section to 64K.
Corinna Vinschen [Fri, 18 Feb 2011 16:15:20 +0000 (16:15 +0000)]
* cygwin.sc: Set alignment of .cygheap section to 64K.

13 years ago * spawn.cc (spawn_guts): Only set PID_NOTCYGWIN in _P_OVERLAY mode.
Corinna Vinschen [Tue, 15 Feb 2011 18:11:50 +0000 (18:11 +0000)]
* spawn.cc (spawn_guts): Only set PID_NOTCYGWIN in _P_OVERLAY mode.
Drop flag if creating new process failed.

13 years ago * new-features.sgml (ov-new1.7.8): Fix typo.
Corinna Vinschen [Tue, 15 Feb 2011 16:05:27 +0000 (16:05 +0000)]
* new-features.sgml (ov-new1.7.8): Fix typo.

13 years ago * cygcheck.cc: Fix copyright dates.
Corinna Vinschen [Tue, 15 Feb 2011 15:57:35 +0000 (15:57 +0000)]
* cygcheck.cc: Fix copyright dates.

13 years agoforced checkin
Corinna Vinschen [Tue, 15 Feb 2011 15:56:23 +0000 (15:56 +0000)]
forced checkin

13 years ago * Throughout fix copyright dates.
Corinna Vinschen [Tue, 15 Feb 2011 15:56:03 +0000 (15:56 +0000)]
* Throughout fix copyright dates.

13 years ago * legal.sgml: Bump date.
Corinna Vinschen [Tue, 15 Feb 2011 15:37:59 +0000 (15:37 +0000)]
* legal.sgml: Bump date.
* new-features.sgml (ov-new1.7.8): Move dropped NT4 pre-SP4 support
up to be the first paragraph.

13 years ago * new-features.sgml (ov-new1.7.8): Document /proc/sys.
Corinna Vinschen [Tue, 15 Feb 2011 15:32:19 +0000 (15:32 +0000)]
* new-features.sgml (ov-new1.7.8): Document /proc/sys.

13 years ago * devices.in: Throughout use slashes instead of backslashes in the
Corinna Vinschen [Tue, 15 Feb 2011 15:25:59 +0000 (15:25 +0000)]
* devices.in: Throughout use slashes instead of backslashes in the
native path of devices not backed by native NT devices.
* devices.cc: Regenerate.
* globals.cc (ro_u_pmem): Use correct case.
(ro_u_globalroot): New R/O unicode string.
* path.cc (path_conv::check): Fix incorrect handling of /proc/sys
block devices if they are just visited due to a component check.
(symlink_info::posixify): Fix typo in comment.
(cygwin_conv_path): Use ro_u_globalroot instead of string constant.
(fast_cwd_version): New shared variable to store FAST_CWD version
used on the system.
(find_fast_cwd_pointer): Rename from find_fast_cwd_pointers.  Don't
set global fast_cwd_ptr pointer here.  Return pointer value instead.
(find_fast_cwd): New function to set fast_cwd_ptr and fast_cwd_version.
(cwdstuff::override_win32_cwd): Call find_fast_cwd from here.
Check for fast_cwd_version to differ between old and new FAST_CWD
structure.  Check old_cwd for NULL to avoid SEGV.  Don't set CWD if
we have neitehr a valid fast_cwd_ptr, nor a valid CWD handle in the
process parameter block.
(cwdstuff::set): Create Win32 path taking /proc/sys paths into account.
* spawn.cc (spawn_guts): Recode creating runpath.  Also take /proc/sys
paths into account.  Drop special CWD handling when starting non-Cygwin
processes.

13 years ago * fhandler_procsys.cc (fhandler_procsys::opendir): Avoid SEGV if
Corinna Vinschen [Tue, 15 Feb 2011 14:44:11 +0000 (14:44 +0000)]
* fhandler_procsys.cc (fhandler_procsys::opendir): Avoid SEGV if
opening object directory fails.
* fhandler_virtual.cc (fhandler_virtual::opendir): Don't leak memory.

13 years ago * fhandler_disk_file.cc (fhandler_disk_file::readdir_helper): Don't
Corinna Vinschen [Tue, 15 Feb 2011 10:47:24 +0000 (10:47 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::readdir_helper): Don't
append slash if there is one already.

13 years ago Revert change from 2010-08-31:
Corinna Vinschen [Tue, 15 Feb 2011 10:39:36 +0000 (10:39 +0000)]
Revert change from 2010-08-31:
* path.cc (normalize_posix_path): Drop support for //./ and //?/
prefixes.
(path_conv::check): Ditto.

13 years ago * fhandler_disk_file.cc (fhandler_disk_file::readdir_helper): Use POSIX
Corinna Vinschen [Tue, 15 Feb 2011 10:31:54 +0000 (10:31 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::readdir_helper): Use POSIX
path to check for symlink.

13 years ago * config/i386/profile.h: Sync with Mingw.
Corinna Vinschen [Mon, 14 Feb 2011 09:42:19 +0000 (09:42 +0000)]
* config/i386/profile.h: Sync with Mingw.

13 years agoRemove freebsd1 from libtool.m4 macros and config.rpath.
Ralf Wildenhues [Sun, 13 Feb 2011 21:00:08 +0000 (21:00 +0000)]
Remove freebsd1 from libtool.m4 macros and config.rpath.

/:
Import from Libtool and gnulib:

2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>

Prepare for supporting FreeBSD 10.
* config.rpath: Remove handling of freebsd1* which soon would
match FreeBSD 10.0.

2011-01-20  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)

Remove support for FreeBSD 1.x.
* libtool.m4 (_LT_LINKER_SHLIBS)
(_LT_SYS_DYNAMIC_LINKER): Remove handling of freebsd1* which
soon would incorrectly match FreeBSD 10.0.

bfd/:
* configure: Regenerate.

gas/:
* configure: Regenerate.

ld/:
* configure: Regenerate.

opcodes/:
* configure: Regenerate.

binutils/:
* configure: Regenerate.

gprof/:
* configure: Regenerate.

13 years ago * path.cc (struct _FAST_CWD): Redefine to new layout used since patch
Corinna Vinschen [Sun, 13 Feb 2011 15:43:00 +0000 (15:43 +0000)]
* path.cc (struct _FAST_CWD): Redefine to new layout used since patch
for KB 2393802.  Adjust comments throughout.
(struct _FAST_CWD_OLD): Rename former definition.
(cwdstuff::override_win32_cwd): Check if the OS is using the old or the
new FAST_CWD structure layout and handle accordingly.

13 years agogas/opcodes: blackfin: move dsp mac func defines to common header
Michael Frysinger [Sat, 12 Feb 2011 19:36:31 +0000 (19:36 +0000)]
gas/opcodes: blackfin: move dsp mac func defines to common header

The mmod field is decoded in a few places (gas/opcodes/sim), so move it to
a common place to avoid duplication.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoImport move-if-change script from gnulib.
Ralf Wildenhues [Sat, 12 Feb 2011 15:47:02 +0000 (15:47 +0000)]
Import move-if-change script from gnulib.

/:
PR binutils/12283
* MAINTAINERS (mkinstalldirs): Comes from Automake.
(move-if-change): Comes from gnulib.
* move-if-change: Import version from gnulib.

13 years agoSync toplevel and config/ from GCC.
Ralf Wildenhues [Sat, 12 Feb 2011 14:40:09 +0000 (14:40 +0000)]
Sync toplevel and config/ from GCC.

/:
Sync from GCC:

2011-02-12  Alexandre Oliva  <aoliva@redhat.com>

PR lto/47225
* Makefile.def (lto-plugin): Double dash for enable-shared.
(configure-gcc): Depend on all-lto-plugin.
* Makefile.in: Rebuilt.

2011-02-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

* configure.ac: Remove extra bracket.
* configure: Regenerate.

2011-02-06  Kai Tietz  <kai.tietz@onevision.com>

PR lto/47225
* Makefile.def: Add dependency for install-gcc
on install-lto-plugin.
* Makfile.in: Regenerated

2011-01-25  Jakub Jelinek  <jakub@redhat.com>

* configure.ac: If with_ppl is no, move setting with_cloog=no
after CLOOG_REQUESTED check.
* configure: Regenerated.

2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>

* configure.ac: Call AC_MSG_ERROR when PPL 0.11 is not present and
CLooG has been requested.
* configure: Regenerated.

2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>

* configure: Regenerated.
* configure.ac: Check for version 0.11 (or later revision) of PPL.

2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>

* configure: Regenerated.
* configure.ac: Use CLOOG_CHECK_VERSION(0,16,1).

2011-01-07  Jan Hubicka  <jh@suse.cz>

PR lto/47225
* Makefile.in: Regenerate.
* Makefile.def (lto-plugin): Always pass enable-shared to the plugin
configure.

config/:
2011-01-25  Jakub Jelinek  <jakub@redhat.com>

* cloog.m4 (CLOOG_REQUESTED): Use $2 if --without-cloog.

2011-01-10  Jan Hubicka  <jh@suse.cz>

* bootstrap-lto.mk: -fuse-linker-plugin is default now;
pass -fno-lto to STAGEprofile.

13 years ago* mkstatic: Make sure that we are not cd'ed to temporary directory on exit to
Christopher Faylor [Fri, 11 Feb 2011 18:00:55 +0000 (18:00 +0000)]
* mkstatic: Make sure that we are not cd'ed to temporary directory on exit to
avoid bogus warnings on directory cleanup.
* speclib: Ditto.
* mkimport: Ditto.

13 years agoopcodes: blackfin: add multiple inclusion protection
Michael Frysinger [Fri, 11 Feb 2011 17:47:54 +0000 (17:47 +0000)]
opcodes: blackfin: add multiple inclusion protection

Prevent build errors if the header happens to be included multiple times.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years ago* cygwin.sc: Eliminate __cygheap_mid.
Christopher Faylor [Fri, 11 Feb 2011 16:18:34 +0000 (16:18 +0000)]
* cygwin.sc: Eliminate __cygheap_mid.
* cygheap.cc: Ditto.

13 years ago* cygheap.cc (_cygheap_mid): Drop unneeded section attribute.
Christopher Faylor [Fri, 11 Feb 2011 16:05:26 +0000 (16:05 +0000)]
* cygheap.cc (_cygheap_mid): Drop unneeded section attribute.
(cygheap_init): Just zero cygheap structure.
* cygwin.sc: Keep 16 byte alignment but drop all other alignments related to
cygheap.  Eliminate unused __cygheap_end1.

13 years ago * cygwin.sc: Raise default cygheap size to 1 Meg. Set alignment to
Corinna Vinschen [Fri, 11 Feb 2011 12:58:01 +0000 (12:58 +0000)]
* cygwin.sc: Raise default cygheap size to 1 Meg.  Set alignment to
standard 64K.

13 years ago * include/endian.h: Move definitions of __BIG_ENDIAN, __LITTLE_ENDIAN,
Corinna Vinschen [Fri, 11 Feb 2011 12:42:30 +0000 (12:42 +0000)]
* include/endian.h: Move definitions of __BIG_ENDIAN, __LITTLE_ENDIAN,
and __BYTE_ORDER into ...
* include/bits/endian.h: New file.
* include/arpa/nameser_compat.h: Include endian.h rather than defining
BYTE_ORDER here.
* include/asm/byteorder.h: Include bits/endian.h.  Drop definition of
__LITTLE_ENDIAN.
* include/netinet/ip.h: Include bits/endian.h.  Drop definitions of
BIG_ENDIAN, LITTLE_ENDIAN, and BYTE_ORDER.  Use underscored variants
of aforementioned constants.
* include/netinet/tcp.h: Ditto.
* include/sys/param.h: Drop disabled definitions of BIG_ENDIAN,
LITTLE_ENDIAN, and BYTE_ORDER.

* include/netinet/ip.h: Reformat.  Define setsockopt IP_TOS options
matching recent RFCs.  Tweak comments.

13 years agostrerror_r: fix compilation bug in previous patch
Eric Blake [Thu, 10 Feb 2011 20:25:54 +0000 (20:25 +0000)]
strerror_r: fix compilation bug in previous patch

* errno.cc (includes): Avoid compilation failure if <string.h>
settles on wrong strerror_r signature.

13 years ago* new-features.sgml (ov-new1.7.8): Document strerror_r fixes.
Eric Blake [Thu, 10 Feb 2011 17:38:18 +0000 (17:38 +0000)]
* new-features.sgml (ov-new1.7.8): Document strerror_r fixes.

13 years agostrerror_r: obey POSIX, and match newlib header change
Eric Blake [Thu, 10 Feb 2011 17:36:51 +0000 (17:36 +0000)]
strerror_r: obey POSIX, and match newlib header change

* errno.cc (__xpg_strerror_r): New function.
(strerror_r): Update to copy newlib's fixes.
(strerror): Set errno on failure.
(_sys_errlist): Cause EINVAL failure for reserved values.
* cygwin.din: Export new function.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Combine
this into minor 236.

13 years agostrerror_r: provide POSIX implementation
Eric Blake [Thu, 10 Feb 2011 16:48:18 +0000 (16:48 +0000)]
strerror_r: provide POSIX implementation

* libc/include/string.h (strerror_r): Update declaration.
* libc/string/strerror.c (strerror): Update documentation.
* libc/string/strerror_r.c (strerror_r): Always return
NUL-terminated string; don't overwrite too-short buf.
* libc/string/xpg_strerror_r.c (__xpg_strerror_r): Implement POSIX
variant.
* libc/string/Makefile.am (GENERAL_SOURCES): Build new file.
* libc/string/Makefile.in: Regenerate.

13 years ago* new-features.sgml (ov-new1.7.8): Document pthread_yield.
Yaakov Selkowitz [Thu, 10 Feb 2011 10:58:28 +0000 (10:58 +0000)]
* new-features.sgml (ov-new1.7.8): Document pthread_yield.

13 years ago* cygwin.din (pthread_yield): Export as alias to sched_yield.
Yaakov Selkowitz [Thu, 10 Feb 2011 10:51:14 +0000 (10:51 +0000)]
* cygwin.din (pthread_yield): Export as alias to sched_yield.
* include/pthread.h (pthread_yield): Declare.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* posix.sgml (std-deprec): Add pthread_yield.

13 years ago* cygheap.cc: Add some __stdcall decoration where appropriate.
Christopher Faylor [Thu, 10 Feb 2011 02:22:36 +0000 (02:22 +0000)]
* cygheap.cc: Add some __stdcall decoration where appropriate.
* lib/cygwin_crt0.c: __attribute -> __attribute__.

13 years ago* hookapi.cc (hook_or_detect_cygwin): Prevent i from being considered
Christopher Faylor [Wed, 9 Feb 2011 15:46:00 +0000 (15:46 +0000)]
* hookapi.cc (hook_or_detect_cygwin): Prevent i from being considered
uninitialized by gcc.

13 years ago* exception.h: Remove DEBUG_EXCEPTION left over debugging ifdef.
Christopher Faylor [Wed, 9 Feb 2011 15:40:37 +0000 (15:40 +0000)]
* exception.h: Remove DEBUG_EXCEPTION left over debugging ifdef.
* dll_init.cc: Fix typo in comment.

13 years ago* dll_init.cc: Fix typo in comment.
Christopher Faylor [Tue, 8 Feb 2011 20:14:37 +0000 (20:14 +0000)]
* dll_init.cc: Fix typo in comment.

13 years agoinclude/ChangeLog:
Ulrich Weigand [Tue, 8 Feb 2011 13:30:10 +0000 (13:30 +0000)]
include/ChangeLog:

* dwarf2.h (enum dwarf_calling_convention): Add DW_CC_GDB_IBM_OpenCL.

gdb/ChangeLog:

* dwarf2read.c (read_subroutine_type): Set special calling
convention flag for functions compiled by IBM XL C for OpenCL.
* ppc-sysv-tdep.c: Include "dwarf2.h"
(ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
calling convention.
(do_ppc_sysv_return_value): Add FUNC_TYPE argument.  Implement
IBM OpenCL vector types calling convention.
(ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
(ppc_sysv_abi_broken_return_value): Likewise.
(ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
types calling convention.
(ppc64_sysv_abi_return_value): Likewise.
* spu-tdep.c: Include "dwarf2.h"
(spu_return_value): Implement IBM OpenCL vector types calling
convention.

gdb/testsuite/ChangeLog:

* gdb.opencl/callfuncs.cl: New file.
* gdb.opencl/callfuncs.exp: New test.
* gdb.opencl/Makefile.in (EXECUTABLES): Add callfuncs.

13 years ago * configure.in: Remove AC_ALLOCA test and test for __builtin_memset.
Corinna Vinschen [Mon, 7 Feb 2011 16:22:02 +0000 (16:22 +0000)]
* configure.in: Remove AC_ALLOCA test and test for __builtin_memset.
* configure: Regenerate.

13 years agoFix path in ChangeLog entry
Corinna Vinschen [Mon, 7 Feb 2011 11:36:04 +0000 (11:36 +0000)]
Fix path in ChangeLog entry

13 years ago * fhandler_console.cc (fhandler_console::write_normal): Remove
Corinna Vinschen [Mon, 7 Feb 2011 11:18:19 +0000 (11:18 +0000)]
* fhandler_console.cc (fhandler_console::write_normal): Remove
erroneous premature return after collecting truncated multibyte
sequence in trunc_buf.  Rather fall through to printing routine.
Fix return value to take trunc_buf content into account.  Improve
comments.

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