summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Sync with gcc repository.Ian Lance Taylor2009-10-076-18/+2084
|
* merge from gccDJ Delorie2009-10-072-0/+46
|
* Add cygwin wrapper for ExitProcess and TerminateProcess.Charles Wilson2009-10-066-5/+65
|
* Merge from gcc repository.Ian Lance Taylor2009-10-062-2/+47
|
* * exceptions.cc: Move global variable sigExeced...Christopher Faylor2009-10-064-2/+8
| | | | | | * globals.cc: here. * pinfo.cc (pinfo::maybe_set_exit_code_from_windows): Remove now unneeded declaration.
* * Makefile.in (CFLAGS): Add -mno-use-libstdc-wrappers.Dave Korn2009-10-042-1/+6
|
* * include/winbase.h (CreateRestrictedToken): Declare for >= Win 2000.Corinna Vinschen2009-10-042-0/+18
| | | | | | | _WIN32_WINNT >= 0x0500. (DISABLE_MAX_PRIVILEGE, SANDBOX_INERT, LUA_TOKEN, WRITE_RESTRICTED): Define. (IsTokenRestricted): Declare for >= Win 2000.
* * syscalls.cc (internal_setlocale): Add comment.Corinna Vinschen2009-10-042-0/+6
|
* * faq-using.xml (faq.using.bloda): Add Lenovo IPS Core Service.Dave Korn2009-10-032-0/+5
|
* * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Allow CESU-8 surrogateCorinna Vinschen2009-10-033-38/+42
| | | | | | value encoding. * libc/stdlib/wctomb_r.c (__utf8_mbtowc): Allow CESU-8 surrogate value decoding.
* merge from gccDJ Delorie2009-10-022-0/+21
|
* * dcrt0.cc (dll_crt0_1): Drop calls to setlocale/_setlocale_r. JustCorinna Vinschen2009-10-023-11/+31
| | | | | | | call initial_setlocale from here. * syscalls.cc (initial_setlocale): Set internal charset and revert application locale to "C". (setlocale): Don't set Cygwin's internal charset here.
* gas/Peter Bergner2009-10-022-0/+7
| | | | | | | | | | | | | | | | | | * config/tc-ppc.c (md_show_usage): Document -m476. * doc/c-ppc.texi (PowerPC-Opts): Document -m476. gas/testsuite/ * gas/ppc/476.s: New test. * gas/ppc/476.d: Likewise. * gas/ppc/ppc.exp: Run the 476 test. include/opcode/ * ppc.h (PPC_OPCODE_476): Define. opcodes/ * ppc-dis.c (ppc_opts): Add "476" entry. * ppc-opc.c (PPC476): Define. (powerpc_opcodes): Update mnemonics where required for 476.
* include/aout/Alan Modra2009-10-024-10/+12
| | | | | | | | | | | | | | | | | | | | * aout64.h (N_SHARED_LIB): Define as zero if not already defined. * sun4.h (N_SHARED_LIB): Define. * hp300hpux.h (N_SHARED_LIB): Don't define. bfd/ * aout-cris.c (N_SHARED_LIB): Don't define. * hp300bsd.c (N_SHARED_LIB): Don't define. * i386bsd.c (N_SHARED_LIB): Don't define. * i386linux.c (N_SHARED_LIB): Don't define. * i386lynx.c (N_SHARED_LIB): Don't define. * m68klinux.c (N_SHARED_LIB): Don't define. * m88kmach3.c (N_SHARED_LIB): Don't define. * mipsbsd.c (N_SHARED_LIB): Don't define. * newsos3.c (N_SHARED_LIB): Don't define. * pc532-mach.c (N_SHARED_LIB): Don't define. * pdp11.c (N_SHARED_LIB): Don't define. * sparclinux.c (N_SHARED_LIB): Don't define. * vaxbsd.c (N_SHARED_LIB): Don't define.
* * mkpasswd.c: Properly define __progname as __declspec(dllimport).Christopher Faylor2009-10-022-2/+2
| | | | * mkgroup.c: Ditto.
* * setup2.sgml (setup-locale-ov): Fix typo in C+charset example.Corinna Vinschen2009-10-022-3/+14
| | | | Rephrase how the locale environment variables are evaluated.
* * dcrt0.cc (dll_crt0_1): Move cxx_malloc reset kluge from here.Christopher Faylor2009-10-023-23/+42
| | | | | | (check_sanity_and_sync): to here. * path.cc (has_dot_last_component): Rewrite to detect some corner cases that were previously uncaught.
* gas/Peter Bergner2009-10-012-1/+5
| | | | | | | | | | | | | | | | * config/tc-ppc.c (md_show_usage): Rename "ppca2" to "a2". * doc/c-ppc.texi (PowerPC-Opts): Likewise. gas/testsuite/ * gas/ppc/a2.d: Rename "ppca2" to "a2". include/opcode/ * ppc.h (PPC_OPCODE_A2): Rename from PPC_OPCODE_PPCA2. opcodes/ * ppc-opc.c (PPCA2): Use renamed mask PPC_OPCODE_A2. * ppc-dis.c (ppc_opts): Likewise. Rename "ppca2" to "a2".
* * new-features.sgml (ov-new1.7-file): Ctrl-X, not Ctrl-N.Corinna Vinschen2009-09-304-74/+86
| | | | | | | | | | * pathnames.sgml (pathnames-unusual): Ditto. * setup2.sgml (setup-locale-ov): Change description according to latest changes. (setup-locale-how): Rewrite. (setup-locale-console): Enable section again. Change to reflect recent changes. (setup-locale-problems): Change to reflect recent changes.
* * fhandler_console.cc (beep): Move up to avoid forward declaration.Corinna Vinschen2009-09-302-18/+35
| | | | | (fhandler_console::read): Just beep on characters invalid in current charset. Add comment.
* * syscalls.cc (rename): Fix regression in rename("dir","d/").Eric Blake2009-09-302-11/+14
|
* 2009-09-29 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini2009-09-293-2/+12
| | | | | | | | Sync from gcc: 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * configure.ac: Update minimum MPC version to 0.7. * configure: Regenerate.
* Make MinGW printf() "%p" format compatible with MSVCRT scanf().Keith Marshall2009-09-292-2/+28
|
* * libc/locale/locale.c (loadlocale): Allow "C." same as "C-" as localeCorinna Vinschen2009-09-292-3/+19
| | | | prefix. Add some words to documentation.
* * libc/stdlib/sb_charsets.c: Throughout, translate undefinedCorinna Vinschen2009-09-292-78/+83
| | | | characters to their corresponding Windows Unicode value.
* bfdNick Clifton2009-09-296-0/+365
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am (ALL_MACHINES): Add cpu-rx.lo. (ALL_MACHINES_CFILES): Add cpu-rx.c. (BFD32_BACKENDS): Add elf32-rx.lo. (BFD32_BACKENDS_CFILES): Add elf32-rx.c. * archures.c (bfd_architecture): Add bfd_arch_rx and bfd_mach_rx. Export bfd_rx_arch. (bfd_archures_list): Add bfd_rx_arch. * config.bfd: Add entry for rx-*-elf. * configure.in: Add entries for bfd_elf32_rx_le_vec and bfd_elf32_rx_be_vec. * reloc.c: Add RX relocations. * targets.c: Add RX target vectors. * Makefile.in: Regenerate. * bfd-in2.h: Regenerate. * configure: Regenerate. * libbfd.h: Regenerate. * cpu-rx.c: New file. * elf32-rx.c: New file. binutils * readelf.c: Add support for RX target. * MAINTAINERS: Add DJ and NickC as maintainers for RX. gas * Makefile.am: Add RX target. * configure.in: Likewise. * configure.tgt: Likewise. * read.c (do_repeat_with_expander): New function. * read.h: Provide a prototype for do_repeat_with_expander. * doc/Makefile.am: Add RX target documentation. * doc/all.texi: Likewise. * doc/as.texinfo: Likewise. * Makefile.in: Regenerate. * NEWS: Mention support for RX architecture. * configure: Regenerate. * doc/Makefile.in: Regenerate. * config/rx-defs.h: New file. * config/rx-parse.y: New file. * config/tc-rx.h: New file. * config/tc-rx.c: New file. * doc/c-rx.texi: New file. gas/testsuite * gas/rx: New directory. * gas/rx/*: New set of test cases. * gas/elf/section2.e-rx: New expected output file. * gas/all/gas.exp: Add support for RX target. * gas/elf/elf.exp: Likewise. * gas/lns/lns.exp: Likewise. * gas/macros/macros.exp: Likewise. include * dis-asm.h: Add prototype for print_insn_rx. include/elf * rx.h: New file. include/opcode * rx.h: New file. ld * Makefile.am: Add rules to build RX emulation. * configure.tgt: Likewise. * NEWS: Mention support for RX architecture. * Makefile.in: Regenerate. * emulparams/elf32rx.sh: New file. * emultempl/rxelf.em: New file. opcodes * Makefile.am: Add RX files. * configure.in: Add support for RX target. * disassemble.c: Likewise. * Makefile.in: Regenerate. * configure: Regenerate. * opc2c.c: New file. * rx-decode.c: New file. * rx-decode.opc: New file. * rx-dis.c: New file.
* * fhandler_socket.cc (fhandler_socket::recv_internal): Always callCorinna Vinschen2009-09-292-1/+6
| | | | WSARecv on SOCK_STREAM sockets.
* 2009-09-28 Michael Eager <eager@eagercon.com>Jeff Johnston2009-09-2825-0/+6064
| | | | | | | | | | | | | | | * configure.in: Add microblaze-*-*. * configure: Add microblaze-*-* (not regenerated.) * microblaze: NEW microblaze target directory. * microblaze/configure.in: NEW. * microblaze/configure: Generate. * microblaze/Makefile.in: NEW. * microblaze/{crt0.S, crt1.S, crt2.S, crt3.S, crt4.S, crtinit.S}: NEW. * microblaze/{pgcrtinit.S, _program_clean.S, _program_init.S, sbrk.c, sim-crtinit.S, sim-pgcrtinit.S, timer.c, _exception_handler.S, _hw_exception_handler.S, _interrupt_handler.S, xil_malloc.c, nnxil_printf.c, xil_sbrk.c: NEW. * microblaze/xilinx.ld: NEW.
* 2009-09-28 Michael Eager <eager@eagercon.com>Jeff Johnston2009-09-2820-2/+7326
| | | | | | | | | | | | | | | | | | | | | * configure.host: Add microblaze. * libc/include/machine/ieeefp.h [MICROBLAZE]: Define __IEEE_BIG_ENDIAN. * libc/include/machine/setjmp.h [MICROBLAZE]: Define _JBLEN, _JBTYPE. * libc/include/sys/config.h [MICROBLAZE]: Define _REENT_SMALL, _UNIX98_THREAD_MUTEX_ATTRIBUTES. * libc/include/sys/types.h: Treat XMK like rtems, define PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE, PTHREAD_MUTEX_DEFAULT, PTHREAD_STACK_MIN, define stuct pthread_attr_s. * libc/machine/configure.in: Add microblaze. * libc/machine/configure: Add microblaze (not regenerated). * libc/machine/microblaze/configure.in: NEW. * libc/machine/microblaze/configure: Generate. * libc/machine/microblaze/Makefile.am: NEW. * libc/machine/microblaze/Makefile.in: Generate. * libc/machine/microblaze/{abort.c, strcmp.c, strcpy.c, strlen.c, mallocr.c, longjmp.S, setjmp.S}: NEW. * libc/stdlib/mallocr.c [MICROBLAZE]: Don't declare sbrk prototype, mALLOc(): return malloc value.
* * fhandler.h (class dev_console): Constify charset parameter ofCorinna Vinschen2009-09-285-84/+101
| | | | | | | | | | | | | | | | | | | | | | | | | str_to_con. * fhandler_console.cc (dev_console::con_to_str): Simplify. Always default to the current internal locale. (dev_console::get_console_cp): Always use codepage 437 for alternate charset. (dev_console::str_to_con): Constify charset parameter. (fhandler_console::write_normal): Always use codepage 437 for alternate charset. Otherwise always default to the current internal locale. Replace ASCII SO with ASCII CAN. * strfuncs.cc: Tweka comments according to below changes. (sys_cp_wcstombs): Constify charset parameter. Convert all wchar_t values in the Unicode private use area U+F0xx to the singlebyte counterpart. Drop special handling creating ASCII SO sequence from U+DCxx value. Rearrange for performance. Replace ASCII SO with ASCII CAN. (sys_cp_mbstowcs): Constify charset parameter. Replace ASCII SO with ASCII CAN. Drop special case for U+DCxx ASCII SO sequences. Always create a replacement from the Unicode private use area U+F0xx for invalid byte values in a multibyte sequence. Do the same for wchar_t values from the U+F0xx range to make them roundtrip safe. * wchar.h (sys_cp_wcstombs): Constify charset parameter. (sys_cp_mbstowcs): Ditto.
* * cygheap.cc (cygheap_init): Default locale.charset to "UTF-8".Corinna Vinschen2009-09-285-68/+77
| | | | | | | | | | | | | * dcrt0.cc (dll_crt0_1): Call setlocale (LC_CTYPE, "") here, just before resetting application locale to "C". * environ.cc (environ_init): Drop code setting locale here. * syscalls.cc (check_codepage): Break out check for required codepage from internal_setlocale. (internal_setlocale): Just convert CWD and $PATH from old charset to new charset and set internal charset. (setlocale): Change accordingly. Don't require LC_ALL or LC_CTYPE to store old locale value. Always call internal_setlocale if charset changed due to locale environment changes.
* * libc/locale/locale.c (lc_ctype_charset): Set to "UTF-8" on Cygwin.Corinna Vinschen2009-09-274-0/+27
| | | | | | | | | (lc_message_charset): Ditto. (loadlocale): Set charset of the "C" locale to "UTF-8" on Cygwin. * libc/stdlib/mbtowc_r.c (__mbtowc): Default to __utf8_mbtowc on Cygwin. * libc/stdlib/wctomb_r.c (__wctomb): Default to __utf8_wctomb on Cygwin.
* * new-features.sgml (ov-new1.7-file): Mention fexecve, execvpe.Eric Blake2009-09-262-1/+5
|
* Add fexecve, execvpe.Eric Blake2009-09-265-3/+31
| | | | | | | | * exec.cc (fexecve): New function. * cygwin.din (execvpe, fexecve): Export new fexecve and existing execvpe. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump. * posix.sgml: Mention them.
* * libc/include/sys/unistd.h (execvpe, fexecve) [__CYGWIN__]:Eric Blake2009-09-262-0/+7
| | | | Add declarations.
* Fix some POSIX-compliance bugs in link, rename, mkdir.Eric Blake2009-09-265-42/+109
| | | | | | | | | | | | * syscalls.cc (link): Delete obsolete comment. Reject directories and missing source up front. (rename): Use correct errno for trailing '.'. Detect empty strings. Allow trailing slash to newpath iff oldpath is directory. * dir.cc (mkdir): Reject dangling symlink with trailing slash. * fhandler_disk_file.cc (fhandler_disk_file::link): Reject trailing slash. * fhandler.cc (fhandler_base::link): Match Linux errno.
* merge from gccDJ Delorie2009-09-262-8/+13
|
* * libc/include/sys/unistd.h (eaccess, euidaccess) [__CYGWIN__]:Eric Blake2009-09-252-0/+7
| | | | Add declarations.
* * new-features.sgml (ov-new1.7-file): Mention eaccess, euidaccess,Eric Blake2009-09-252-4/+13
| | | | canonicalize_file_name, and document change in access semantics.
* Provide euidaccess, canonicalize_file_name; fix fchmodat.Eric Blake2009-09-257-12/+65
| | | | | | | | | | | * syscalls.cc (fchmodat): lchmod is not yet implemented. (euidaccess): New function. * path.cc (realpath): Update comment. (canonicalize_file_name): New function. * include/cygwin/stdlib.h (canonicalize_file_name): Declare it. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump. * cygwin.din: Export canonicalize_file_name, eaccess, euidaccess. * posix.sgml: Mention them.
* * configure.ac: Pass any --cache-file=/dev/null option on toNick Clifton2009-09-253-6/+30
| | | | | subconfigures. * configure: Regenerate.
* merge from gccDJ Delorie2009-09-251-0/+14
|
* * setup2.sgml (setup-locale-problems): Fix charset names of codepagesCorinna Vinschen2009-09-252-1/+6
| | | | 936 and 949.
* Fix faccessat(,0) and access() semantics.Eric Blake2009-09-257-25/+38
| | | | | | | | | | | * fhandler.h (fhandler_base::fhaccess): Add parameter. * security.h (check_file_access, check_registry_access): Likewise. * security.cc (check_file_access, check_registry_access) (check_access): Implement new parameter. * fhandler.cc (fhandler_base::fhaccess): Likewise. (device_access_denied): Update caller. * syscalls.cc (access, faccessat): Update callers. * spawn.cc (find_exec, fixup): Likewise.
* * setup2.sgml (setup-locale-problems): Document how to installEric Blake2009-09-252-0/+13
| | | | non-default charsets.
* include/Cary Coutant2009-09-242-2/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | * dwarf2.h (DW_TAG_rvalue_reference_type, DW_TAG_template_alias): New tags. (DW_FORM_ref_sig8): New name for DW_FORM_sig8. (DW_AT_main_subprogram, DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class, DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by, DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded, DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required, DW_AT_GNU_odr_signature): New attributes. (DW_LANG_Python): New language. binutils/ * dwarf.c (get_TAG_name): Add missing DWARF-3 and new DWARF-4 tags. (get_FORM_name): Add new DWARF-4 forms. (read_and_display_attr_value): Add DW_FORM_ref_sig8, DW_LANG_Python. (get_AT_name): Add new DWARF-4 and GNU-specific attributes. (process_debug_info): Add do_types parameter; change all callers. Add support for .debug_types sections. (display_debug_types): New function. (debug_displays): Add .debug_types section. * readelf.c (process_section_headers): Add .debug_types section. (display_debug_section): Simplify call to streq.
* * posix_ipc.cc (mq_open): Avoid closing the same descriptor twice inCorinna Vinschen2009-09-242-4/+15
| | | | | case of errors. (sem_open): Ditto.
* * kernel32.cc (CreateMutexW): Use correct access mask.Corinna Vinschen2009-09-242-2/+7
| | | | (CreateSemaphoreW): Ditto.
* * libc/locale/locale.c: Drop Cygwin-specific windows.h include.Corinna Vinschen2009-09-232-4/+6
| | | | (loadlocale): Call __set_charset_from_codepage with 0 codepage.
* * strfuncs.cc (__set_charset_from_codepage): Fetch current ANSICorinna Vinschen2009-09-232-1/+8
| | | | codepage if cp is 0.