]>
sourceware.org Git - newlib-cygwin.git/log
Jeff Johnston [Fri, 9 Oct 2009 18:43:12 +0000 (18:43 +0000)]
2009-10-09 Dave Korn <dave.korn@artimi.com>
* libc/include/sys/time.h (_TIMEVAL_DEFINED): Define when
defining struct timeval.
DJ Delorie [Fri, 9 Oct 2009 16:17:35 +0000 (16:17 +0000)]
merge from gcc
Corinna Vinschen [Fri, 9 Oct 2009 11:19:18 +0000 (11:19 +0000)]
* pathnames.sgml (pathnames-specialchars): Add control chars to the
list. Explain backslash exception.
Corinna Vinschen [Fri, 9 Oct 2009 11:17:17 +0000 (11:17 +0000)]
* path.cc (tfx_chars): Convert all ASCII control characters except
ASCII NUL as well. Change layout to make the conversions more clear.
Add comment.
Corinna Vinschen [Fri, 9 Oct 2009 08:36:21 +0000 (08:36 +0000)]
* include/cygwin/config.h (DEFAULT_LOCALE): Define as "C.UTF-8".
Corinna Vinschen [Fri, 9 Oct 2009 08:25:28 +0000 (08:25 +0000)]
* libc/locale/locale.c (DEFAULT_LOCALE): New define.
(__default_locale): New global variable set to the default locale.
(__get_locale_env): Return __default_locale rather than fixed "C".
Jeff Johnston [Thu, 8 Oct 2009 16:44:10 +0000 (16:44 +0000)]
2009-10-08 Jeff Johnston <jjohnstn@redhat.com>
* configure.host: For RTEMS, define HAVE_ASSERT_FUNC.
* libc/stdlib/assert.c (_assert_func): Do not specify
__assert_func if HAVE_ASSERT_FUNC flag is set.
Jeff Johnston [Thu, 8 Oct 2009 16:35:34 +0000 (16:35 +0000)]
2009-10-08 Jie Zhang <jie.zhang@analog.com>
* bfin/Makefile.in (basiccrt.o, basiccrts.o): Use
-mcpu=bf532-any for the default multilib.
Jeff Johnston [Thu, 8 Oct 2009 16:26:28 +0000 (16:26 +0000)]
2009-10-08 Eric Blake <ebb9@byu.net>
* libc/include/getopt.h (__getopt_r, __getopt_long_r)
(__getopt_long_only_r): Protect declarations, to avoid compiler
warning.
Christopher Faylor [Thu, 8 Oct 2009 15:56:14 +0000 (15:56 +0000)]
* exceptions.cc (_cygtls::signal_exit): There's no need to set signal_arrived
if we're exiting.
Eric Blake [Thu, 8 Oct 2009 11:13:45 +0000 (11:13 +0000)]
* fhandler_disk_file.cc (utimens_fs): Plug fd leak on EINVAL.
Corinna Vinschen [Wed, 7 Oct 2009 16:45:23 +0000 (16:45 +0000)]
* libc/locale/nl_langinfo.c (nl_langinfo): Just return current locale
charset on Cygwin.
Charles Wilson [Wed, 7 Oct 2009 15:47:38 +0000 (15:47 +0000)]
Support pseudo-reloc version 2
Corinna Vinschen [Wed, 7 Oct 2009 08:20:49 +0000 (08:20 +0000)]
* syscalls.cc (seteuid32): Call set_cygwin_privileges on primary token
as well.
Corinna Vinschen [Wed, 7 Oct 2009 07:52:30 +0000 (07:52 +0000)]
* fhandler.h (fhandler_pty_master::tcgetpgrp): Declare.
* fhandler_termios.cc (fhandler_termios::tcgetpgrp): Only return
valid pgid if tty is controlling tty. Set errno to ENOTTY and
return -1 otherwise.
(fhandler_pty_master::tcgetpgrp): New function. Return 0 for
master side of pty if it's not the controlling tty of the process.
Ian Lance Taylor [Wed, 7 Oct 2009 05:57:49 +0000 (05:57 +0000)]
Sync with gcc repository.
DJ Delorie [Wed, 7 Oct 2009 02:57:27 +0000 (02:57 +0000)]
merge from gcc
Charles Wilson [Tue, 6 Oct 2009 21:51:17 +0000 (21:51 +0000)]
Add cygwin wrapper for ExitProcess and TerminateProcess.
Ian Lance Taylor [Tue, 6 Oct 2009 20:14:06 +0000 (20:14 +0000)]
Merge from gcc repository.
Christopher Faylor [Tue, 6 Oct 2009 03:39:38 +0000 (03:39 +0000)]
* exceptions.cc: Move global variable sigExeced...
* globals.cc: here.
* pinfo.cc (pinfo::maybe_set_exit_code_from_windows): Remove now unneeded
declaration.
Dave Korn [Sun, 4 Oct 2009 17:48:05 +0000 (17:48 +0000)]
* Makefile.in (CFLAGS): Add -mno-use-libstdc-wrappers.
Corinna Vinschen [Sun, 4 Oct 2009 12:28:08 +0000 (12:28 +0000)]
* include/winbase.h (CreateRestrictedToken): Declare for >= Win 2000.
_WIN32_WINNT >= 0x0500.
(DISABLE_MAX_PRIVILEGE, SANDBOX_INERT, LUA_TOKEN,
WRITE_RESTRICTED): Define.
(IsTokenRestricted): Declare for >= Win 2000.
Corinna Vinschen [Sun, 4 Oct 2009 11:32:07 +0000 (11:32 +0000)]
* syscalls.cc (internal_setlocale): Add comment.
Dave Korn [Sat, 3 Oct 2009 13:33:18 +0000 (13:33 +0000)]
* faq-using.xml (faq.using.bloda): Add Lenovo IPS Core Service.
Corinna Vinschen [Sat, 3 Oct 2009 08:51:07 +0000 (08:51 +0000)]
* libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
value encoding.
* libc/stdlib/wctomb_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
value decoding.
DJ Delorie [Fri, 2 Oct 2009 18:22:51 +0000 (18:22 +0000)]
merge from gcc
Corinna Vinschen [Fri, 2 Oct 2009 14:58:10 +0000 (14:58 +0000)]
* dcrt0.cc (dll_crt0_1): Drop calls to setlocale/_setlocale_r. Just
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.
Peter Bergner [Fri, 2 Oct 2009 14:42:42 +0000 (14:42 +0000)]
gas/
* 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.
Alan Modra [Fri, 2 Oct 2009 14:40:41 +0000 (14:40 +0000)]
include/aout/
* 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.
Christopher Faylor [Fri, 2 Oct 2009 13:49:39 +0000 (13:49 +0000)]
* mkpasswd.c: Properly define __progname as __declspec(dllimport).
* mkgroup.c: Ditto.
Corinna Vinschen [Fri, 2 Oct 2009 12:35:52 +0000 (12:35 +0000)]
* setup2.sgml (setup-locale-ov): Fix typo in C+charset example.
Rephrase how the locale environment variables are evaluated.
Christopher Faylor [Fri, 2 Oct 2009 06:04:57 +0000 (06:04 +0000)]
* dcrt0.cc (dll_crt0_1): Move cxx_malloc reset kluge from here.
(check_sanity_and_sync): to here.
* path.cc (has_dot_last_component): Rewrite to detect some corner cases that
were previously uncaught.
Peter Bergner [Thu, 1 Oct 2009 19:24:48 +0000 (19:24 +0000)]
gas/
* 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".
Corinna Vinschen [Wed, 30 Sep 2009 09:45:01 +0000 (09:45 +0000)]
* new-features.sgml (ov-new1.7-file): Ctrl-X, not Ctrl-N.
* 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.
Corinna Vinschen [Wed, 30 Sep 2009 09:23:45 +0000 (09:23 +0000)]
* fhandler_console.cc (beep): Move up to avoid forward declaration.
(fhandler_console::read): Just beep on characters invalid in current
charset. Add comment.
Eric Blake [Wed, 30 Sep 2009 02:11:05 +0000 (02:11 +0000)]
* syscalls.cc (rename): Fix regression in rename("dir","d/").
Paolo Bonzini [Tue, 29 Sep 2009 21:31:07 +0000 (21:31 +0000)]
2009-09-29 Paolo Bonzini <bonzini@gnu.org>
Sync from gcc:
2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* configure.ac: Update minimum MPC version to 0.7.
* configure: Regenerate.
Keith Marshall [Tue, 29 Sep 2009 20:43:50 +0000 (20:43 +0000)]
Make MinGW printf() "%p" format compatible with MSVCRT scanf().
Corinna Vinschen [Tue, 29 Sep 2009 19:12:28 +0000 (19:12 +0000)]
* libc/locale/locale.c (loadlocale): Allow "C." same as "C-" as locale
prefix. Add some words to documentation.
Corinna Vinschen [Tue, 29 Sep 2009 19:11:01 +0000 (19:11 +0000)]
* libc/stdlib/sb_charsets.c: Throughout, translate undefined
characters to their corresponding Windows Unicode value.
Nick Clifton [Tue, 29 Sep 2009 14:17:13 +0000 (14:17 +0000)]
bfd
* 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.
Corinna Vinschen [Tue, 29 Sep 2009 08:46:29 +0000 (08:46 +0000)]
* fhandler_socket.cc (fhandler_socket::recv_internal): Always call
WSARecv on SOCK_STREAM sockets.
Jeff Johnston [Mon, 28 Sep 2009 16:43:57 +0000 (16:43 +0000)]
2009-09-28 Michael Eager <eager@eagercon.com>
* 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.
Jeff Johnston [Mon, 28 Sep 2009 16:42:21 +0000 (16:42 +0000)]
2009-09-28 Michael Eager <eager@eagercon.com>
* 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.
Corinna Vinschen [Mon, 28 Sep 2009 12:10:32 +0000 (12:10 +0000)]
* fhandler.h (class dev_console): Constify charset parameter of
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.
Corinna Vinschen [Mon, 28 Sep 2009 10:43:49 +0000 (10:43 +0000)]
* cygheap.cc (cygheap_init): Default locale.charset to "UTF-8".
* 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.
Corinna Vinschen [Sun, 27 Sep 2009 12:21:16 +0000 (12:21 +0000)]
* libc/locale/locale.c (lc_ctype_charset): Set to "UTF-8" on Cygwin.
(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.
Eric Blake [Sat, 26 Sep 2009 21:01:59 +0000 (21:01 +0000)]
* new-features.sgml (ov-new1.7-file): Mention fexecve, execvpe.
Eric Blake [Sat, 26 Sep 2009 21:01:10 +0000 (21:01 +0000)]
Add fexecve, execvpe.
* 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.
Eric Blake [Sat, 26 Sep 2009 20:59:54 +0000 (20:59 +0000)]
* libc/include/sys/unistd.h (execvpe, fexecve) [__CYGWIN__]:
Add declarations.
Eric Blake [Sat, 26 Sep 2009 15:51:53 +0000 (15:51 +0000)]
Fix some POSIX-compliance bugs in link, rename, mkdir.
* 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.
DJ Delorie [Sat, 26 Sep 2009 00:01:16 +0000 (00:01 +0000)]
merge from gcc
Eric Blake [Fri, 25 Sep 2009 23:57:09 +0000 (23:57 +0000)]
* libc/include/sys/unistd.h (eaccess, euidaccess) [__CYGWIN__]:
Add declarations.
Eric Blake [Fri, 25 Sep 2009 23:56:18 +0000 (23:56 +0000)]
* new-features.sgml (ov-new1.7-file): Mention eaccess, euidaccess,
canonicalize_file_name, and document change in access semantics.
Eric Blake [Fri, 25 Sep 2009 23:55:00 +0000 (23:55 +0000)]
Provide euidaccess, canonicalize_file_name; fix fchmodat.
* 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.
Nick Clifton [Fri, 25 Sep 2009 19:25:04 +0000 (19:25 +0000)]
* configure.ac: Pass any --cache-file=/dev/null option on to
subconfigures.
* configure: Regenerate.
DJ Delorie [Fri, 25 Sep 2009 19:02:00 +0000 (19:02 +0000)]
merge from gcc
Corinna Vinschen [Fri, 25 Sep 2009 16:42:36 +0000 (16:42 +0000)]
* setup2.sgml (setup-locale-problems): Fix charset names of codepages
936 and 949.
Eric Blake [Fri, 25 Sep 2009 13:44:45 +0000 (13:44 +0000)]
Fix faccessat(,0) and access() semantics.
* 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.
Eric Blake [Fri, 25 Sep 2009 12:27:46 +0000 (12:27 +0000)]
* setup2.sgml (setup-locale-problems): Document how to install
non-default charsets.
Cary Coutant [Thu, 24 Sep 2009 20:52:07 +0000 (20:52 +0000)]
include/
* 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.
Corinna Vinschen [Thu, 24 Sep 2009 09:25:35 +0000 (09:25 +0000)]
* posix_ipc.cc (mq_open): Avoid closing the same descriptor twice in
case of errors.
(sem_open): Ditto.
Corinna Vinschen [Thu, 24 Sep 2009 09:09:45 +0000 (09:09 +0000)]
* kernel32.cc (CreateMutexW): Use correct access mask.
(CreateSemaphoreW): Ditto.
Corinna Vinschen [Wed, 23 Sep 2009 17:19:00 +0000 (17:19 +0000)]
* libc/locale/locale.c: Drop Cygwin-specific windows.h include.
(loadlocale): Call __set_charset_from_codepage with 0 codepage.
Corinna Vinschen [Wed, 23 Sep 2009 17:13:55 +0000 (17:13 +0000)]
* strfuncs.cc (__set_charset_from_codepage): Fetch current ANSI
codepage if cp is 0.
Corinna Vinschen [Wed, 23 Sep 2009 12:01:42 +0000 (12:01 +0000)]
Fix typo.
Corinna Vinschen [Wed, 23 Sep 2009 11:31:00 +0000 (11:31 +0000)]
* strfuncs.cc (sys_cp_wcstombs): Convert lone surrogate pair
second halves to unambiguous ASCII SO sequence. When converting
chars invalid in current codepage to ASCII SO sequence, make
sure to check for surrogate pair second half only if ct least
one wide characters is left. Decrement nwc if valid second half has
been converted.
(sys_cp_mbstowcs): Improve ASCII SO handling. Never break from loop
if invalid character has been found. Recognize ASCII SO sequence
representing originally invalid mulitbyte char converted into a
lone surrogate pair second half. Convert accordingly.
Nick Clifton [Wed, 23 Sep 2009 09:51:31 +0000 (09:51 +0000)]
* config.sub, config.guess: Update from upstream sources.
DJ Delorie [Tue, 22 Sep 2009 21:52:47 +0000 (21:52 +0000)]
merge from gcc
Jeff Johnston [Tue, 22 Sep 2009 21:49:20 +0000 (21:49 +0000)]
2009-09-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* libc/include/stdlib.h: Add posix_memalign.
Jeff Johnston [Tue, 22 Sep 2009 21:24:55 +0000 (21:24 +0000)]
2009-09-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.host (*-rtems*): Remove -DMISSING_SYSCALL_NAMES.
Add -DHAVE_BLKSIZE, -D_NO_WORDEXP -D_NO_POPEN.
Jeff Johnston [Tue, 22 Sep 2009 21:23:13 +0000 (21:23 +0000)]
2009-09-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.host (m32c): Move setting -DABORT_PROVIDED to second
"case $host".
Ralf Wildenhues [Tue, 22 Sep 2009 18:00:40 +0000 (18:00 +0000)]
Error out if building separately but srcdir has build remnants.
/:
PR bootstrap/32272
* configure.ac: Error out if $srcdir isn't '.' but contains
host-${host_noncanonical}.
* configure: Regenerate.
Corinna Vinschen [Tue, 22 Sep 2009 14:27:57 +0000 (14:27 +0000)]
* autoload.cc (WSARecv): Define.
* fhandler_socket.cc (fhandler_socket::recv_internal): Call WSARecv
instead of WSARecvFrom if no name parameter is given. Explain why.
Eric Blake [Tue, 22 Sep 2009 12:13:53 +0000 (12:13 +0000)]
Make *at functions more like Linux.
* syscalls.cc (faccessat): Fix typo, reject bad flags.
(fchmodat, fchownat, fstatat, utimensat, linkat, unlinkat): Reject
bad flags.
Corinna Vinschen [Tue, 22 Sep 2009 09:44:32 +0000 (09:44 +0000)]
* strfuncs.cc (sys_cp_mbstowcs): Reset shift state after handling
invalid multibyte sequence.
Corinna Vinschen [Tue, 22 Sep 2009 09:24:30 +0000 (09:24 +0000)]
* path.cc (symlink_worker): Rework error handling to generate Linux
compatible errno in case of trailing slash in newpath.
Eric Blake [Tue, 22 Sep 2009 04:09:03 +0000 (04:09 +0000)]
Match dup2 and fcntl error values to POSIX.
* dtable.h (OPEN_MAX_MAX): New macro.
* resource.cc (getrlimit) [RLIMIT_NOFILE]: Use it.
* dtable.cc (dtable::extend): Likewise.
* fcntl.cc (fcntl64): Obey POSIX rule with too-large F_DUPFD.
* syscalls.cc (dup2): Likewise.
Eric Blake [Tue, 22 Sep 2009 02:49:15 +0000 (02:49 +0000)]
* ChangeLog-2002: Fix typo.
* ChangeLog-2008: Likewise.
Alan Modra [Tue, 22 Sep 2009 02:36:26 +0000 (02:36 +0000)]
o * ppc.h (ppc_cpu_t): Typedef to uint64_t.
Ralf Wildenhues [Mon, 21 Sep 2009 20:32:59 +0000 (20:32 +0000)]
Require c++ in stage1_languages with --enable-gold in combined bootstrap.
/:
* configure.ac: If bootstrapping a combined tree with
--enable-gold, require c++ in stage1_languages.
* configure: Regenerate.
Ralf Wildenhues [Mon, 21 Sep 2009 20:31:02 +0000 (20:31 +0000)]
toplevel configure: bootstrap target_libs of stage1_languages.
/:
* configure.ac: Also add target_libs of stage1_languages to
bootstrap_target_libs.
* configure: Regenerate.
Corinna Vinschen [Mon, 21 Sep 2009 19:29:16 +0000 (19:29 +0000)]
* cygheap.h (cwdstuff::get_posix): Convert to const inline method just
returning pointer to posix path.
(cwdstuff::reset_posix): Convert to non-inline method taking a wchar_t
pointer.
* path.cc (cwdstuff::set): Revert change from 2009-05-13. Set posix
to valid incoming path again.
(cwdstuff::reset_posix): New implementation setting posix path from
incoming wchar_t path. Explain usage.
(cwdstuff::get_posix): Drop implementation.
(cwdstuff::get): Drop special case to handle empty posix path.
* syscalls.cc (internal_setlocale): Store old posix cwd as wide char
path. Restore posix cwd using new charset. Explain why.
Ralf Wildenhues [Mon, 21 Sep 2009 19:25:05 +0000 (19:25 +0000)]
Diagnose --enable-build-with-cxx --enable-bootstrap --enable-languages w/o c++
/:
* configure.ac: Diagnose --enable-build-with-cxx bootstrap
with --enable-languages not containing c++.
* configure: Regenerate.
Jeff Johnston [Mon, 21 Sep 2009 16:07:34 +0000 (16:07 +0000)]
2009-09-21 Ken Werner <ken.werner@de.ibm.com>
* spu/getpagesize.c: Align getpagesize implementation to POSIX
Alan Modra [Mon, 21 Sep 2009 11:51:01 +0000 (11:51 +0000)]
include/elf/
* ppc.h (DT_PPC_TLSOPT): Define.
* ppc64.h (DT_PPC64_TLSOPT): Define.
bfd/
* elf32-ppc.c (TLS_GET_ADDR_GLINK_SIZE): Define.
(ADD_3_12_2, BEQLR, CMPWI_11_0, LWZ_11_3, LWZ_12_3): Define.
(MR_0_3, MR_3_0): Define.
(struct ppc_elf_link_hash_table): Add no_tls_get_addr_opt.
(ppc_elf_select_plt_layout): Save emit_stub_syms param earlier.
(ppc_elf_tls_setup): Add no_tls_get_addr_opt param and save to hash
table. Check for presense of __tls_get_addr_opt
(allocate_dynrelocs): Increase glink entry size for __tls_get_addr.
(ppc_elf_size_dynamic_sections): Add DT_PPC_TLS_OPT tag.
(write_glink_stub): Add param p.
(ppc_elf_relocate_section): Adjust write_glink_stub call.
(ppc_elf_finish_dynamic_symbol): Emit special glink call stub for
__tls_get_addr.
* elf32-ppc.h (ppc_elf_tls_setup): Update prototype.
* elf64-ppc.c (struct ppc_link_hash_table): Add no_tls_get_addr_opt.
(ppc64_elf_tls_setup): Add no_tls_get_addr_opt param and save to hash
table. Check for presense of __tls_get_addr_opt.
(ppc64_elf_size_dynamic_sections): Add DT_PPC64_TLS_OPT tag.
(LD_R11_0R3, LD_R12_0R3, MR_R0_R3, CMPDI_R11_0, ADD_R3_R12_R13,
BEQLR, MR_R3_R0, MFLR_R11, STD_R11_0R1, BCTRL, LD_R11_0R1,
LD_R2_0R1, MTLR_R11): Define.
(build_tls_get_addr_stub): New function.
(ppc_build_one_stub): Call it.
(ppc_size_one_stub): Add extra size for __tls_get_addr stub.
(ppc64_elf_relocate_section): Don't change nop to ld 2,40(1) for
__tls_get_addr plt call.
* elf64-ppc.h (ppc64_elf_tls_setup): Update prototype.
binutils/
* readelf.c (get_ppc_dynamic_type): Add TLSOPT.
(get_ppc64_dynamic_type): Likewise.
ld/
* emultempl/ppc32elf.em (no_tls_get_addr_opt): New var.
(ppc_before_allocation): Pass to ppc_elf_tls_setup.
(OPTION_NO_TLS_GET_ADDR_OPT): Define. Redefine other options in
terms of previous option.
(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add
--no-tls-get-addr-optimize.
(PARSE_AND_LIST_ARGS_CASES): Handle it.
* emultempl/ppc64elf.em (no_tls_get_addr_opt): New var.
(ppc_before_allocation): Pass to ppc64_elf_tls_setup.
(OPTION_NO_TLS_GET_ADDR_OPT): Define.
(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add
--no-tls-get-addr-optimize.
(PARSE_AND_LIST_ARGS_CASES): Handle it.
ld/testsuite/
* ld-powerpc/tlslib.s: Delete dot-symbol entry syms. Add
__tls_get_addr_opt.
* ld-powerpc/tlslib32.s: Add __tls_get_addr_opt.
* ld-powerpc/oldtlslib.s: New file, old-abi version of tlslib.s.
* ld-powerpc/powerpc.exp: Build old-abi library and use it in
two new link tests.
* ld-powerpc/tlsexe.d: Update for new __tls_get_addr stub.
* ld-powerpc/tlsexe.g, * ld-powerpc/tlsexe.r, *ld-powerpc/tlsexe32.d,
* ld-powerpc/tlsexe32.g, * ld-powerpc/tlsexe32.r,
* ld-powerpc/tlsexetoc.d, * ld-powerpc/tlsexetoc.g,
* ld-powerpc/tlsexetoc.r: Likewise.
Corinna Vinschen [Mon, 21 Sep 2009 11:01:19 +0000 (11:01 +0000)]
* new-features.sgml (ov-new1.7-file): Add new hardlink behaviour on
filesystems not supporting hardlinks.
* overview2.sgml (ov-hi-files): Change descripton accordingly.
Corinna Vinschen [Mon, 21 Sep 2009 10:56:50 +0000 (10:56 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::link): Drop faking hardlink
creation on filesystems not supporting hardlinks.
Ben Elliston [Mon, 21 Sep 2009 10:29:07 +0000 (10:29 +0000)]
gas/
* config/tc-ppc.c (md_show_usage): Document -mpcca2.
* doc/c-ppc.texi (PowerPC-Opts): Document -mppca2.
gas/testsuite/
* gas/ppc/a2.s: New.
* gas/ppc/a2.d: Likewise.
* gas/ppc/ppc.exp: Run the a2 dump test.
include/opcode/
* ppc.h (PPC_OPCODE_PPCA2): New.
opcodes/
* ppc-dis.c (ppc_opts): Add "ppca2" entry.
* ppc-opc.c (powerpc_opcodes): Add eratilx, eratsx, eratsx.,
eratre, wchkall, eratwe, ldawx., mdfcrx., mfdcr. mtdcrx., icswx,
icswx., mtdcr., dci, wclrone, wclrall, wclr, erativax, tlbsrx.,
ici mnemonics.
(ERAT_T): New operand.
(XWC_MASK): New mask.
(XOPL2): New macro.
(PPCA2): Define.
Christopher Faylor [Mon, 21 Sep 2009 02:32:06 +0000 (02:32 +0000)]
* dcrt0.cc (dll_crt0_1): Add another hack to REALLY make sure that cxx_malloc
is always set to the cygwin version.
Christopher Faylor [Mon, 21 Sep 2009 02:19:31 +0000 (02:19 +0000)]
* external.cc (cygwin_internal): Add hack to always reset cxx_malloc to proper
value.
* lib/_cygwin_crt0_common.cc (_cygwin_crt0_common): Relocate wayward comment.
Christopher Faylor [Sat, 19 Sep 2009 15:34:19 +0000 (15:34 +0000)]
* exceptions.cc (sigpacket::process): Explicitly set thread-specific handler
function to zero to avoid transferring to incorrect location.
(_cygtls::call_signal_handler): Don't transfer to handler if there is no
handler to transfer to.
Christopher Faylor [Sat, 19 Sep 2009 02:30:51 +0000 (02:30 +0000)]
* libc/include/sys/unistd.h: Declare getpagesize as returning POSIX-mandated
int.
* libc/sys/linux/sys/unistd.h: Ditto.
Christopher Faylor [Fri, 18 Sep 2009 21:27:02 +0000 (21:27 +0000)]
* exceptions.cc (sigpacket::process): Give sigwait() processing precedence even
when a handler is present.
* syscalls.cc (getpagesize): Change return to 'int'.
Christopher Faylor [Wed, 16 Sep 2009 16:23:51 +0000 (16:23 +0000)]
* ntea.c (write_ea): Don't abort if not-samba.
Jeff Johnston [Wed, 16 Sep 2009 16:08:27 +0000 (16:08 +0000)]
2009-09-16 Mike Frysinger <michael.frysinger@analog.com>
* bfin/include/
cdefBF512 .h, bfin/include/
cdefBF514 .h,
bfin/include/
cdefBF516 .h, bfin/include/
cdefBF518 .h,
bfin/include/cdefBF51x_base.h, bfin/include/
cdefBF523 .h,
bfin/include/
cdefBF524 .h, bfin/include/
cdefBF526 .h,
bfin/include/cdefBF542M.h, bfin/include/cdefBF544M.h,
bfin/include/cdefBF547M.h, bfin/include/cdefBF548M.h,
bfin/include/cdefBF549M.h, bfin/include/
defBF512 .h,
bfin/include/
defBF514 .h, bfin/include/
defBF516 .h,
bfin/include/
defBF518 .h, bfin/include/defBF51x_base.h,
bfin/include/
defBF523 .h, bfin/include/
defBF524 .h,
bfin/include/
defBF526 .h, bfin/include/defBF542M.h,
bfin/include/defBF544M.h, bfin/include/defBF547M.h,
bfin/include/defBF548M.h, bfin/include/defBF549M.h:
New file.
* bfin/include/ccblkfn.h, bfin/include/
cdefBF525 .h,
bfin/include/
cdefBF527 .h, bfin/include/cdefBF52x_base.h,
bfin/include/
cdefBF532 .h, bfin/include/
cdefBF534 .h,
bfin/include/
cdefBF535 .h, bfin/include/
cdefBF538 .h,
bfin/include/
cdefBF539 .h, bfin/include/
cdefBF542 .h,
bfin/include/
cdefBF544 .h, bfin/include/
cdefBF547 .h,
bfin/include/
cdefBF548 .h, bfin/include/
cdefBF549 .h,
bfin/include/cdefBF54x_base.h, bfin/include/
cdefBF561 .h,
bfin/include/cdefblackfin.h, bfin/include/cdef_LPBlackfin.h,
bfin/include/cplb.h, bfin/include/
defBF527 .h,
bfin/include/defBF52x_base.h, bfin/include/
defBF532 .h,
bfin/include/
defBF534 .h, bfin/include/
defBF535 .h,
bfin/include/
defBF537 .h, bfin/include/
defBF538 .h,
bfin/include/
defBF539 .h, bfin/include/
defBF542 .h,
bfin/include/
defBF544 .h, bfin/include/
defBF547 .h,
bfin/include/
defBF548 .h, bfin/include/
defBF549 .h,
bfin/include/defBF54x_base.h, bfin/include/
defBF561 .h,
bfin/include/defblackfin.h, bfin/include/def_LPBlackfin.h,
bfin/include/sys/_adi_platform.h,
bfin/include/sys/anomaly_macros_rtl.h,
bfin/include/sys/exception.h, bfin/include/sysreg.h:
Update to Visual DSP 5.0 Update 6.
Jeff Johnston [Wed, 16 Sep 2009 15:59:40 +0000 (15:59 +0000)]
2009-09-16 Mike Frysinger <michael.frysinger@analog.com>
* bfin/Makefile.in (BOARD_SCRIPTS): Add bf512.ld, bf514.ld,
and bf516.ld, bf518.ld.
* bfin/bf512.ld: New file.
* bfin/bf514.ld: Likewise.
* bfin/bf516.ld: Likewise.
* bfin/bf518.ld: Likewise
Jeff Johnston [Wed, 16 Sep 2009 15:56:58 +0000 (15:56 +0000)]
2009-09-16 Jie Zhang <jie.zhang@analog.com>
* bfin/*.ld: Fix typos in comments.
Jie Zhang [Wed, 16 Sep 2009 00:45:55 +0000 (00:45 +0000)]
* configure.ac: Disable java and boehm-gc for bfin-*-*.
* configure: Regenerate.
Nick Clifton [Wed, 9 Sep 2009 21:38:59 +0000 (21:38 +0000)]
Updated soruces in bfd/* to compile cleanly with -Wc++-compat.
* bfd/aoutx.h: Add casts.
* bfd/archive.c: Add casts.
* bfd/archive64.c: Add casts.
* bfd/archures.c: Add casts.
* bfd/bfd-in2.h: Regenerated.
* bfd/bfd.c: Add casts. (enum bfd_direction): Move out to top
level.
* bfd/bfdio.c: Add casts.
* bfd/binary.c: Add casts.
* bfd/cache.c (cache_bseek,cache_bread_1,cache_bwrite): Updated
parameter to use enum value instead of int.
* bfd/coffcode.h: Add casts.
* bfd/coffgen.c: Add casts.
* bfd/cofflink.c: Add casts.
* bfd/compress.c: Add casts.
* bfd/dwarf1.c: Add casts.
* bfd/dwarf2.c: Add casts. (struct dwarf2_debug): Rename member
bfd to bfd_ptr. Update code to use new name.
* bfd/elf-attrs.c: Add casts.
* bfd/elf-bfd.h (elf_link_virtual_table_entry): Gives name to
anonymous struct. (union gotplt_union, struct
elf_link_virtual_table_entry): Move to top level.
* bfd/elf-eh-frame.c: Add casts.
* bfd/elf-strtab.c: Add casts.
* bfd/elf.c: Add casts. (_bfd_elm_make_Section_from_phdr): Change
argument name from typename to type_name.
* bfd/elf32-i386.c: Add casts.
* bfd/elf64-x86-64.c: Add casts.
* bfd/elfcode.h: Add casts.
* bfd/elfcore.h: Add casts.
* bfd/elflink.c: Add casts.
* bfd/format.c: Add casts.
* bfd/hash.c: Add casts.
* bfd/ihex.c: Add casts.
* bfd/libaout.h (enum aout_subformat, enum aout_magic): Move to
top level.
* bfd/libbfd.c: Add casts.
* bfd/linker.c: Add casts.
* bfd/merge.c: Add casts.
* bfd/opncls.c: Add casts.
* bfd/peXXigen.c: Add casts.
* bfd/peicode.h: Add casts.
* bfd/reloc.c: Add casts.
* bfd/section.c: Add casts.
* bfd/simple.c: Add casts.
* bfd/srec.c: Add casts.
* bfd/stabs.c: Add casts.
* bfd/syms.c: Add casts.
* bfd/targets.c: Add casts.
* bfd/tekhex.c: Add casts.
* bfd/verilog.c: Add casts.
* include/bfdlink.h (struct bfd_link_hash_common_entry): Move to
top level.
This page took 0.077851 seconds and 5 git commands to generate.