summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix unforgivable spelling error in ChangeLog.Corinna Vinschen2005-12-141-5/+5
|
* 2005-12-14 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini2005-12-145-1980/+2353
| | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: Flip the top-level bootstrap switch. * configure: Regenerate. Merge from gcc: 2005-12-14 Daniel Jacobowitz <dan@codesourcery.com> * Makefile.tpl: Throughout the file, use : $(MAKE) along with $(stage) and $(unstage). (EXTRA_TARGET_FLAGS): Correct double-quoting. (all): Remove stray semicolon. (local-distclean): Don't handle multilib.tmp and multilib.out. (install.all): Set $s for consistency. (configure-[+prefix+][+module+]): Instead of [+deps+], handle check_multilibs setting. Always make the install directory. (configure-stage[+id+]-[+prefix+][+module+]): Likewise. Correct @if/@endif. (all-stage[+id+]-[+prefix+][+module+]): Correct @if/@endif. ($(TARGET_SUBDIR)/[+module+]/multilib.out): Remove. (stage[+id+]-start, stage[+id+]-end): Stage $(TARGET_SUBDIR). (multilib.out): Remove. * Makefile.in: Regenerated.
* * fhandler.cc (ACCFLAGS): Remove macro.Corinna Vinschen2005-12-145-15/+27
| | | | | | | | | | | (fhandler_base::get_default_fmode): Use O_ACCMODE instead of ACCFLAGS and or'ed read/write flags. (fhandler_base::open_9x): Use O_ACCMODE instead of or'ed read/write flags. (fhandler_base::open): Ditto. * fhandler_disk_file.cc (fhandler_base::open_fs): Ditto. * fhandler_mem.cc (fhandler_dev_mem::open): Ditto. * fhandler_raw.cc (fhandler_dev_raw::open): Ditto.
* * fhandler.cc (fhandler_base::open_9x): Handle O_SYNC and O_DIRECTCorinna Vinschen2005-12-147-75/+124
| | | | | | | | | | | | | | | | flags. (fhandler_base::open): Ditto. * fhandler_floppy.cc (fhandler_dev_floppy::open): Don't allocate devbuf in O_DIRECT case. * fhandler_raw.cc (fhandler_dev_raw::ioctl): Don't allow buffer changes in O_DIRECT case. Allow returning a buffer size 0, which indicates O_DIRECT. * fhandler_tape.cc (fhandler_dev_tape::open): Use O_SYNC flag to hand down the !buffer_writes case. Don't allocate devbuf in O_DIRECT case. (fhandler_dev_tape::raw_read): Don't mess with devbuf if it's NULL. * include/fcntl.h: Define _FDIRECT, O_DIRECT, O_DSYNC and O_RSYNC. * include/cygwin/version.h: Bump API minor version.
* * libc/include/sys/fcntl.h: Define O_SYNC unconditionally. FixCorinna Vinschen2005-12-142-4/+7
| | | | typo in O_NDELAY comment.
* * m32c/crt0.S: Add support for preinit, init, and fini arrays, andDJ Delorie2005-12-144-2/+83
| | | | | | .init and .fini processing. * m32c/crtn.S: Likewise. * m32c/exit.S: Likewise.
* 2005-12-13 Nathan Sidwell <nathan@codesourcery.com>Jeff Johnston2005-12-136-12/+21
| | | | | | | | | * mt/16-002.ld: Change architecture to 'mt'. Remove SEARCH_DIR. * mt/16-003.ld: Likewise. * mt/64-001.ld: Likewise. * mt/Makefile.in: Change comment to reference 'mt' rather than 'ms1'. * mt/crt0.S: Likewise.
* 2005-12-13 Nathan Sidwell <nathan@codesourcery.com>Jeff Johnston2005-12-135-4/+11
| | | | | | | * libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__. * libc/include/machine/setjmp.h (__mt__): Likewise. * libc/machine/mt/setjmp.S: Rename ms1 reference to mt. * libc/machine/configure.in: Ditto.
* * cygtls.cc (_cygtls::remove): Don't bother if we're exiting.Christopher Faylor2005-12-133-2/+8
| | | | * sigproc.cc (_cygtls::remove_wq): Ditto.
* * fhandler_tty.cc (fhandler_tty::open): Enhance comment.Christopher Faylor2005-12-132-1/+13
|
* * fhandler_tty.cc (fhandler_tty::open): Close newly created windowCorinna Vinschen2005-12-132-2/+10
| | | | station after switching to original window station.
* * fhandler_tty.cc (fhandler_tty::open): Add a comment.Christopher Faylor2005-12-132-0/+15
|
* * faq-programming.xml: Add note about struct stat64.Joshua Daniel Franklin2005-12-132-0/+12
|
* * times.cc (hires_ms::usecs): Subtract from slop from system time or we'llChristopher Faylor2005-12-132-1/+6
| | | | always end up priming the pump.
* * times.cc (systime): Correct precision referenced in comment.Christopher Faylor2005-12-133-6/+20
| | | | | | | | * fhandler_tty.cc (fhandler_tty_slave::open): Don't free original windows station since that will cause strange problems displaying fonts. Reset windows station to original station after creating console. * times.cc (hires_ms::usecs): Only reprime when calculated time is less than system time.
* * include/winuser.h (WINSTA_ALL_ACCESS): Define.Christopher Faylor2005-12-132-0/+5
|
* * pinfo.cc (winpids::add): Don't copy procinfo when there is no cygwin processChristopher Faylor2005-12-132-1/+6
| | | | associated with the pid, i.e., procinfo == NULL.
* * times.cc (hires_ms::usecs): Correct order when checking if high precisionChristopher Faylor2005-12-132-1/+7
| | | | time is <= current time.
* correct ChangeLogChristopher Faylor2005-12-121-1/+1
|
* * pinfo.cc (size_copied): New convenience macro.Christopher Faylor2005-12-123-16/+61
| | | | | | | | | | | | | (winpids::add): Alias the element that we are working on for slightly better clarity. Honor the "make_copy" flag. (winpids::release): Free and zero procinfo field if it was allocated via malloc. (winpids::~winpids): Free copied array. * pinfo.h (class pinfo): Make winpids class a friend. (winpids::make_copy): New field. (winpids::copied): New array. (winpids::reset): Reset npids after releasing pinfos or suffer a memory leak. (winpids::winpids): Try harder to allocate all fields in the class.
* 2005-12-12 Paul Brook <paul@codesourcery.com>Paul Brook2005-12-122-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bfd/ * bfd-in2.h: Regenerate. * elf32-arm.c (elf32_arm_reloc_map): Add BFD_RELOC_ARM_PCREL_CALL and BFD_RELOC_ARM_PCREL_JUMP. (check_use_blx): New function. (bfd_elf32_arm_process_before_allocation): Don't allocate glue if using BLX. (elf32_arm_final_link_relocate): Perform bl<->blx conversion for R_ARM_CALL and R_ARM_THM. (elf32_arm_get_eabi_attr_int): New function. (elf32_arm_size_dynamic_sections): Call check_use_blx. * libbfd.h: Regenerate. * reloc.c: Add BFD_RELOC_ARM_PCREL_CALL and BFD_RELOC_ARM_PCREL_JUMP. gas/ * config/tc-arm.c (do_branch): Generate EABI branch relocations. (do_bl): New function. (do_blx): Generate BFD_RELOC_ARM_PCREL_CALL relocation. (do_t_blx): Generate BFD_RELOC_THUMB_PCREL_BRANCH23. (insns): Use do_bl. (md_pcrel_from_section): Add BFD_RELOC_ARM_PCREL_CALL and BFD_RELOC_ARM_PCREL_JUMP. (md_apply_fix): Merge BFD_RELOC_ARM_PCREL_BRANCH and BFD_RELOC_ARM_PCREL_BLX cases. Handle BFD_RELOC_ARM_PCREL_CALL and BFD_RELOC_ARM_PCREL_JUMP. (tc_gen_reloc): Handle BFD_RELOC_ARM_PCREL_CALL and BFD_RELOC_ARM_PCREL_JUMP. gas/testsuite/ * gas/arm/pic.d: Allow R_ARM_CALL relocations. include/elf/ * arm.h (elf32_arm_get_eabi_attr_int): Add prototype. ld/testsuite/ * ld-arm/arm-call.d: New test. * ld-arm/arm-call1.s: New file. * ld-arm/arm-call1.s: New file. * ld-arm/arm-elf.exp: Add arm-call and mixed-app-v5. * ld-arm/arm.ld: Add .glue_7 and .ARM.attribues. * ld-arm/mixed-app-v5.d: New file. * ld-arm/mixed-app.r: Tweak expected output.
* * autoload.cc (GetSystemTimes): Remove.Corinna Vinschen2005-12-122-1/+4
|
* * fhandler_proc.cc (format_proc_uptime): Drop usage of GetSystemTimes.Corinna Vinschen2005-12-122-18/+31
| | | | | Use NtQuerySystemInformation to evaluate uptime and idle_time from all CPU's processor times. Fallback to GetTickCount.
* Rename ms1 to mt, part 1Nathan Sidwell2005-12-1210-11/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config.sub: Replace ms1 arch with mt. Allow ms1 as alias. * configure.in: Replace ms1 arch with mt. * configure: Rebuilt. * bfd/Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Replace ms1 with mt. (cpu_mt.lo, elf32-mt.lo): Update target and dependency names. * bfd/Makefile.in: Rebuilt. * bfd/config.bfd: Replace ms1 arch with mt. * bfd/configure.in: Replace ms1 files with mt files. * bfd/configure: Rebuilt. * bfd/elf32-mt.c: Renamed from elf32-ms1.c. Update include files. * bfd/cpu-mt.c: Renamed from cpu-ms1.c. * cpu/mt.cpu: Rename from ms1.cpu. * cpu/mt.opc: Rename from ms1.opc. * binutils/Makefile.am: Replace ms1 files with mt files. * binutils/Makefile.in: Rebuilt. * binutils/readelf.c (elf/mt.h): Adjust #include. * gas/configure.in: Replace ms1 arch with mt arch. * gas/configure: Rebuilt. * gas/configure.tgt: Replace ms1 arch with mt arch. * gas/config/tc-mt.c: Renamed from tc-ms1.c: Update include files. * gas/doc/Makefile.am (CPU_DOCS): Replace ms1 files with mt files. * gas/doc/Makefile.in: Rebuilt. * gas/testsuite/gas/mt: Renamed from ms1 dir. Update file names as needed. * gas/testsuite/gas/mt/errors.exp: Replace ms1 arch with mt arch. * gas/testsuite/gas/mt/mt.exp: Replace ms1 arch with mt arch. * gas/testsuite/gas/mt/relocs.exp: Replace ms1 arch with mt arch. * gdb/configure.tgt: Replace ms1 arch with mt arch. * gdb/config/mt: Renamed from ms1 dir. Update file names as needed. * gdb/config/mt/mt.mt (TDEPFILES): Replace ms1 file with mt file. * include/elf/mt.h: Renamed from ms1.h * ld/Makefile.am (ALL_EMULATIONS): Replace ms1 files with mt files. (eelf32mt.c): Update target name and dependencies. * ld/Makefile.in: Rebuilt. * ld/configure.tgt: Replace ms1 arch with mt arch. * ld/emulparams/elf32mt.sh: Renamed from elf32ms1.sh. Update comment. * libgloss/configure.in: Replace ms1 arch with mt arch. * libgloss/configure: Rebuilt. * libgloss/mt: Renamed from ms1 dir. * newlib/configure.host: Replace ms1 arch with mt arch. * newlib/libc/machine/mt: Renamed from ms1 dir. * opcodes/Makefile.am (CLEANFILES, CGEN_CPUS, MT_DEPS): Replace ms1 with mt. * opcodes/Makefile.in: Rebuilt. * opcodes/configure.in: Replace ms1 files with mt files. * opcodes/configure: Rebuilt. * sid/component/cgen-cpu/mt: Renamed from ms1 dir. Update file names as appropriate. * sid/component/cgen-cpu/mt/Makefile.am: Replace ms1 files with mt files. * sid/component/cgen-cpu/mt/Makefile.in: Rebuilt.
* Rename ms1 files to mt files (part 1 -- renames only)Nathan Sidwell2005-12-1244-0/+0
|
* * mmap.cc (gen_create_protect): Always generate WRITECOPY protectionCorinna Vinschen2005-12-122-10/+19
| | | | | | for private maps. (fixup_mmaps_after_fork): Fix calculation of WRITECOPY protection for VirtualProtect. Add some words to the comment.
* * winsup.api/ltp/dup03.c (cleanup): Fix longstanding off-by-one error whenChristopher Faylor2005-12-112-2/+7
| | | | setting array element to -1.
* fix typo.Christopher Faylor2005-12-111-1/+1
|
* merge from gccDJ Delorie2005-12-112-0/+8
|
* * dirent.h: Change the rest of the d_ino's to __deprecated_d_ino.Christopher Faylor2005-12-102-4/+9
|
* * malloc.cc: Update to version 2.8.3.Christopher Faylor2005-12-103-442/+548
| | | | * cygmalloc.h (MSPACE): Remove unneeded definition.
* * lib/kernel32.def (CreateFiberEx): Correct suffix.Danny Smith2005-12-092-1/+5
|
* 2005-12-09 Huw Davies <hdavies@users.sourceforge.net>Danny Smith2005-12-093-3/+53
| | | | | | | | | | Danny Smith <dannysmith@users.sourceforge.net> * lib/msxml-uuid.c: New file to generate UUIDs for MSXML interfaces. * lib/Makefile.in (UUID_OBJS): Add msxml-uuid.o. Add missing ChangeLog entries for 2005-12-07 commits.
* 2005-12-08 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2005-12-082-9/+5
| | | | | * libc/include/sys/types.h: Remove the ifdef armour around standard POSIX types.
* * fhandler_raw.cc (fhandler_dev_raw::ioctl): Only allow 0, 1 or aCorinna Vinschen2005-12-082-2/+13
| | | | multiple of 512 as new buffersize.
* * fhandler_socket.cc (fhandler_socket::recvfrom): Mask flags withCorinna Vinschen2005-12-082-9/+22
| | | | | | MSG_WINMASK for Windows socket calls. (fhandler_socket::recvmsg): Ditto. (fhandler_socket::sendmsg): Ditto.
* * hires.h (hires_ms::initime_ms): Delete.Christopher Faylor2005-12-075-32/+50
| | | | | | | | | | | | | | | (hires_ms::initime_us): Just define as LONGLONG. (hires_ms::uptime): New function. * select.cc (select_stuff::wait): Use gtod for timing to attempt to avoid windows 32 bit wraparound. * times.cc (systime): New function. (times): Replace GetTickCount with gtod.uptime. (hires_us::prime): Use systime() to calculate system time rather than calling GetSystemTimeAsFileTime directly. (hires_ms::prime): Ditto. Eliminate initime_ms. (hires_ms::usecs): Try harder to detect wraparound. * fhandler_proc.cc (format_proc_partitions): Set drive_size to zero to avoid a compiler warning.
* * fhandler_proc.cc (format_proc_partitions): Use modern IOCTLsCorinna Vinschen2005-12-072-21/+43
| | | | to determine drive size as far as possible.
* * include/winbase.h (GetDevicePowerState): Add prototype.Danny Smith2005-12-072-1/+2
| | | | * lib/kernel32.def (GetDevicePowerState): Correct suffix.
* 2005-12-07 Brian Gunlogson <gmb300@users.sourceforge.net>Danny Smith2005-12-072-4/+10
| | | | | | | | | * include/winuser.h (GetClassLongPtr{AW}): Guard prototypes with _WIN64. Define as macro if !_WIN64. (SetClassLongPtr{AW}): Likewise. (GCLP_*): Add GetClassLongPtr defines. * lib/user32.def (GetClassLongPtr{AW}): Remove stubs. (SetClassLongPtr{AW}): Likewise.
* * fhandler_raw.cc (fhandler_dev_raw::ioctl): Fix INVALID_PARAMETERCorinna Vinschen2005-12-072-3/+11
| | | | condition. Only copy devbuf to buf if buf is non-NULL.
* * fhandler_raw.cc (fhandler_dev_raw::ioctl): Fix setting devbufCorinna Vinschen2005-12-072-3/+10
| | | | when rd_parm is 0 or 1.
* * fhandler_floppy.cc (fhandler_dev_floppy::lseek): Fix test forCorinna Vinschen2005-12-072-1/+6
| | | | valid file position at EOM.
* * include/cygwin/stdlib.h: Guard compilation of *unsetenv* in newlib.Christopher Faylor2005-12-072-0/+9
|
* * cris.h (MOVE_M_TO_PREG_OPCODE, MOVE_M_TO_PREG_ZBITS)Hans-Peter Nilsson2005-12-072-2/+15
| | | | | (MOVE_PC_INCR_OPCODE_PREFIX, MOVE_PC_INCR_OPCODE_SUFFIX): New macros. (ADD_PC_INCR_OPCODE): Don't define.
* * exceptions.cc (_cygtls::handle_exceptions): In case of aCorinna Vinschen2005-12-075-192/+511
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | STATUS_ACCESS_VIOLATION, check if the page is a mmaped page beyond a file's EOF. Generate SIGBUS instead of SIGSEGV then. * mmap.cc (__PROT_ATTACH): New define. (__PROT_FILLER): Ditto. (fh_anonymous): Rename from fh_paging_file; (fh_disk_file): New global static variable. (attached): New inline function. (filler): Ditto. (gen_create_protect): Split off from gen_protect to use the file's access mode to create mapping always with maximum allowed protections. (gen_protect): Accomodate pages attached beyond EOF. Use symbolic values instead of numerics when possible. Drop create parameter. (gen_access): Use file's access mode instead of protection. (CreateMapping9x): Create named mapping names so that different creation access modes result in different mappings. (CreateMappingNT): Only reserve attached pages, don't commit them. (MapViewNT): Ditto. Set AT_ROUND_TO_PAGE for all non-NULL base addresses. (mmap_func_t): Define CreateMapping and MapView function pointers with additional openflags parameter. (class mmap_record): Add openflags member. (mmap_record::mmap_record): Add openflags parameter. (mmap_record::get_openflags): New accessor. (mmap_record::attached): Call global attached function. (mmap_record::filler): Call global filler function. (mmap_record::gen_create_protect): Call global gen_create_protect function. (mmap_record::gen_protect): Drop create parameter. (mmap_record::alloc_fh): Set fhandler's access flags. (list::search_record): Accomodate filler pages. (list::set): Use inode number as hash value. (map::get_list_by_fd): Check hash value against file's inode number. (mmap_is_attached_page): New function to evaluate if a given address is on a attached page. Called from _cygtls::handle_exceptions. (mmap_worker): New function to do mapping and bookkeeping in a single call. (mmap64): Use roundup2 to round length to pagesize alignment. Initialize global fhandlers. Simplify anonymous initialization. Add SUSv3 compatible check of file open mode vs. requested protection. Try creating new file handles to allow maximum page protection. Allow creating attached pages in case of mapping beyond EOF. Close new file handle if one has been created. (munmap): Align len to pagesize. (msync): Rework argument checks. Align len to pagesize. (mprotect): Ditto. Accomodate attached pages. (mlock): Use roundup/rounddown macros instead of homemade expressions. (munlock): Add page alignment as in mlock. (fhandler_dev_zero::munmap): Fix unmapping of non-private mappings. (fhandler_dev_zero::fixup_mmap_after_fork): Accomodate filler pages. (fixup_mmaps_after_fork): Don't fail if attached pages couldn't be created in child. Avoid superfluous call to VirtualFree. Check for original allocation protection to fix PAGE_WRITECOPY protection. * ntdll.h: Revert deletion of AT_ROUND_TO_PAGE define. * winsup.h (mmap_is_attached_page): Declare.
* 2005-12-06 Paul Brook <paul@codesourcery.com>Jeff Johnston2005-12-069-32/+42
| | | | | | | | | | * m68k/bcc.ld: Add .text.*, .rodata.*, .data.* and .bss.*. * m68k/idp.ld: Ditto. * m68k/idpgdb: Ditto. * m68k/mvme135.ld: Ditto. * m68k/sbc5204.ld: Ditto. * m68k/sbc5206.ld: Ditto. * m68k/sim.ld: Ditto.
* 2005-12-06 Ralf Corsepius <ralf.corsepius@rtems.org>Jeff Johnston2005-12-062-1/+26
| | | | | | | | * libc/sys/rtems/crt0.c: Add rtems_gxx_key_create, rtems_gxx_key_delete, rtems_gxx_getspecific, rtems_gxx_setspecific, rtems_gxx_mutex_trylock, rtems_gxx_recursive_mutex_init, rtems_gxx_recursive_mutex_lock, rtems_gxx_recursive_mutex_trylock, rtems_gxx_recursive_mutex_unlock.
* gas/H.J. Lu2005-12-062-3/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-12-06 H.J. Lu <hongjiu.lu@intel.com> PR gas/1874 * config/tc-i386.c (match_template): Handle monitor. (process_suffix): Likewise. gas/testsuite/ 2005-12-06 H.J. Lu <hongjiu.lu@intel.com> PR gas/1874 * gas/i386/i386.exp: Add x86-64-prescott for 64bit. * gas/i386/prescott.s: Test address size override for monitor. * gas/i386/prescott.d: Updated. * gas/i386/x86-64-prescott.d: New file. * gas/i386/x86-64-prescott.s: Likewise. include/opcode/ 2005-12-06 H.J. Lu <hongjiu.lu@intel.com> PR gas/1874 * i386.h (i386_optab): Add 64bit support for monitor and mwait. opcodes/ 2005-12-06 H.J. Lu <hongjiu.lu@intel.com> PR gas/1874 * i386-dis.c (address_mode): New enum type. (address_mode): New variable. (mode_64bit): Removed. (ckprefix): Updated to check address_mode instead of mode_64bit. (prefix_name): Likewise. (print_insn): Likewise. (putop): Likewise. (print_operand_value): Likewise. (intel_operand_size): Likewise. (OP_E): Likewise. (OP_G): Likewise. (set_op): Likewise. (OP_REG): Likewise. (OP_I): Likewise. (OP_I64): Likewise. (OP_OFF): Likewise. (OP_OFF64): Likewise. (ptr_reg): Likewise. (OP_C): Likewise. (SVME_Fixup): Likewise. (print_insn): Set address_mode. (PNI_Fixup): Add 64bit and address size override support for monitor and mwait.
* * include/cygwin/stdlib.h: New file.Christopher Faylor2005-12-054-2/+78
| | | | | * environ.cc (unsetenv): Change to return -1 on input error. * include/cygwin/version.h: Add more description to latest api bump.