]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
12 years agoRevert errneous checkin.
Christopher Faylor [Tue, 19 Jun 2012 00:38:02 +0000 (00:38 +0000)]
Revert errneous checkin.
Check in actual change associated with ChangeLog.

12 years ago* cygwait.cc (cancelable_wait): Mimic old cygwait behavior more closely wrt
Christopher Faylor [Tue, 19 Jun 2012 00:31:15 +0000 (00:31 +0000)]
* cygwait.cc (cancelable_wait): Mimic old cygwait behavior more closely wrt
handling of call_signal_handler.
* cygwait.h (WAIT_CANCELED): Move here and redefine.
(WAIT_SIGNALED): Ditto.
* thread.h (WAIT_CANCELED): Delete.
(WAIT_SIGNALED): Ditto.

12 years agomerge from gcc
DJ Delorie [Tue, 19 Jun 2012 00:03:49 +0000 (00:03 +0000)]
merge from gcc

12 years ago * cygheap.cc (init_cygheap::init_installation_root): Rearrange code
Corinna Vinschen [Mon, 18 Jun 2012 20:17:15 +0000 (20:17 +0000)]
* cygheap.cc (init_cygheap::init_installation_root): Rearrange code
creating valid native NT installation_root path.  Only strip last
backslash from path if the result is a valid NT path.  Explain why.

12 years agoAdd '#include "cygwait.h"' throughout, where appropriate.
Christopher Faylor [Sun, 17 Jun 2012 20:50:24 +0000 (20:50 +0000)]
Add '#include "cygwait.h"' throughout, where appropriate.
* DevNotes: Add entry cgf-000012.
* Makefile.in (DLL_OFILES): Add cygwait.o.
* sigproc.h: Remove cygwait definitions.
* cygwait.h: New file.  Define/declare Cygwin waitfor functions.
* cygwait.cc: Ditto.
* exceptions.cc: Include cygwait.h.
(handle_sigsuspend): Accommodate change in cancelable_wait arguments.
(sigpacket::process): Display thread tls in debugging output.
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Use symbolic names
for signal and cancel return.
* fhandler_console.cc (fhandler_console::read): Ditto.
(fhandler_dev_dsp::Audio_out::waitforspace): Ditto.
fhandler_dev_dsp::Audio_in::waitfordata): Ditto.
* fhandler_fifo.cc (fhandler_fifo::wait): Ditto.
* fhandler_serial.cc (fhandler_serial::raw_read): Ditto.
* fhandler_tty.cc (fhandler_pty_slave::read): Ditto.
* select.cc (cygwin_select): Ditto.
* wait.cc (wait4): Ditto.
* thread.cc (cancelable_wait): Move definition to cygwait.h.
(pthread_cond::wait): Accommodate change in cancelable_wait arguments.
(pthread_mutex::lock): Ditto.
(pthread_spinlock::lock): Ditto.
(pthread::join): Ditto.
(pthread::thread_init_wrapper): Display tls in debugging output.
(semaphore::_timedwait): Ditto.
* thread.h (cw_sig_wait): Move to cygwait.h.
(cw_cancel_action): Delete.
(cancelable_wait): Move declaration to cygwait.h.

12 years ago2012-06-12 Rafael Ávila de Espíndola <respindola@mozilla.com>
Rafael Ávila de Espíndola [Tue, 12 Jun 2012 22:50:44 +0000 (22:50 +0000)]
2012-06-12  Rafael Ávila de Espíndola <respindola@mozilla.com>

* plugin-api.h (ld_plugin_output_file_type): Add LDPO_PIE.

12 years agoFix last ChangeLog entry.
Yaakov Selkowitz [Tue, 12 Jun 2012 18:34:38 +0000 (18:34 +0000)]
Fix last ChangeLog entry.

12 years ago * regex/regcomp.c (p_ere): Allow vertical-line following
Yaakov Selkowitz [Mon, 11 Jun 2012 22:15:27 +0000 (22:15 +0000)]
* regex/regcomp.c (p_ere): Allow vertical-line following
left-parenthesis in ERE, as in glibc.

12 years ago * include/sys/elf_common.h (R_386_16): Define.
Yaakov Selkowitz [Sun, 10 Jun 2012 18:28:16 +0000 (18:28 +0000)]
* include/sys/elf_common.h (R_386_16): Define.
(R_386_PC16): Define.
(R_386_8): Define.
(R_386_PC8): Define.

12 years ago* select.cc (cygwin_select): Remove select_timeout test.
Christopher Faylor [Sun, 10 Jun 2012 01:57:53 +0000 (01:57 +0000)]
* select.cc (cygwin_select): Remove select_timeout test.
(select_stuff::wait): Return select_set_zero on timeout.
(thread_socket): Report timeout when debugging.

12 years agomerge from gcc
DJ Delorie [Fri, 8 Jun 2012 19:01:23 +0000 (19:01 +0000)]
merge from gcc

12 years ago * avr.h: (AVR_ISA_XCH): New define.
Nick Clifton [Thu, 7 Jun 2012 16:43:36 +0000 (16:43 +0000)]
* avr.h: (AVR_ISA_XCH): New define.
(AVR_ISA_XMEGA): Use it.
(XCH, LAS, LAT, LAC): New XMEGA opcodes.

12 years ago * include/elf.h: Update from FreeBSD.
Yaakov Selkowitz [Wed, 6 Jun 2012 04:45:48 +0000 (04:45 +0000)]
* include/elf.h: Update from FreeBSD.
* include/machine/elf.h: New header, from FreeBSD.
* include/sys/elf.h: Ditto.
* include/sys/elf32.h: Update from FreeBSD.
* include/sys/elf64.h: Ditto.
* include/sys/elf_common.h: Ditto.
(R_IA64_*): Define Linux-style names as aliases to R_IA_64_*.
(R_SH_*): Define, based on sh-4 psABI.
(R_390_*): Define, based on s390x psABI.
* include/sys/elf_generic.h: Ditto.

12 years ago * libc/stdio/findfp.c (__sinit): Avoid infinite recursion on
Corinna Vinschen [Tue, 5 Jun 2012 16:17:16 +0000 (16:17 +0000)]
* libc/stdio/findfp.c (__sinit): Avoid infinite recursion on
_REENT_SMALL targets.  Add comment to explain.

12 years ago * fhandler_disk_file.cc (fhandler_disk_file::link ): Translate
Corinna Vinschen [Mon, 4 Jun 2012 08:49:13 +0000 (08:49 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::link ): Translate
STATUS_NOT_SUPPORTED to EPERM as well.

12 years ago* dtable.cc (dtable::dup3): Only return with lock set when O_EXCL flag is
Christopher Faylor [Mon, 4 Jun 2012 01:26:05 +0000 (01:26 +0000)]
* dtable.cc (dtable::dup3): Only return with lock set when O_EXCL flag is
passed in.
* syscalls.cc (dup_finish): Pass O_EXCL in flags to dtable::dup3.

12 years ago* DevNotes: Add entry cgf-000011.
Christopher Faylor [Sun, 3 Jun 2012 18:02:45 +0000 (18:02 +0000)]
* DevNotes: Add entry cgf-000011.
* fhandler.h (fhandler_base::refcnt): Delete.
(fhandler_base::inc_refcnt): New function.
(fhandler_base::dec_refcnt): New function.
* cygheap.h (cygheap_fdnew::~cygheap_fdnew): Accommodate split of refcnt to
inc_refcnt/dec_refcnt.
(cygheap_fdget::cygheap_fdget): Ditto.
(cygheap_fdget::~cygheap_fdget::cygheap_fdget): Ditto.
* dtable.cc (dtable::release): Ditto.
(cygwin_attach_handle_to_fd): Ditto.
(dtable::init_std_file_from_handle): Ditto.
(dtable::dup3): On success, return with fdtab locked.
* dtable.h (dtable): Add dup_finish as a friend.
* syscalls.cc (dup_finish): Define new function.  Increment refcnt while fdtab
is locked.
(dup2): Use common dup_finish() to perform dup operation.
(dup3): Ditto.

12 years ago * new-features.sgml (ov-new1.7.16): Document ReFS support.
Corinna Vinschen [Sun, 3 Jun 2012 16:53:03 +0000 (16:53 +0000)]
* new-features.sgml (ov-new1.7.16): Document ReFS support.

12 years ago*** empty log message ***
Corinna Vinschen [Sun, 3 Jun 2012 16:47:57 +0000 (16:47 +0000)]
*** empty log message ***

12 years ago * globals.cc (ro_u_refs): New R/O unicode string.
Corinna Vinschen [Sun, 3 Jun 2012 16:46:53 +0000 (16:46 +0000)]
* globals.cc (ro_u_refs): New R/O unicode string.
* mount.cc (fs_info::update): Recognize ReFS.
* mount.h (enum fs_info_type): Add refs.
(class fs_info): Add refs flag and accessor methods.
* ntdll.h (RtlAddAccessAllowedAceEx): Declare.
(RtlAddAccessDeniedAceEx): Declare.
* path.h (path_conv::fs_is_refs): Define.
* sec_helper.cc (_recycler_sd): New function to create security
descriptors suitable for the recycler bin starting with Vista.
* security.cc (add_access_allowed_ace): Use RtlAddAccessAllowedAceEx
and drop code to set AceFlags explicitely.
(add_access_denied_ace): Use RtlAddAccessDeniedAceEx and drop code to
set AceFlags explicitely.
* security.h (_recycler_sd): Declare.
(recycler_sd): Define.
* syscalls.cc (desktop_ini): Change formatting.
(desktop_ini_ext): Define third line of recycler desktop.ini file
since Vista,
(try_to_bin): Handle ReFS just like NTFS.  Write Vista and later
Recycler in all uppercase, just like shell32 does when recreating it.
Fix comments to include ReFS.  Don't implicitely reuse object
attributes from earlier NtOpenFile call, rather recreate it for safety.
Use recycler_sd call when creating security descriptor for Recycler
dirs and files on Vista and later.  Write third line of desktop.ini
when on Vista and later.

12 years ago * cygcheck.cc (dump_sysinfo): Change "Server 8" to official
Corinna Vinschen [Sun, 3 Jun 2012 16:45:27 +0000 (16:45 +0000)]
* cygcheck.cc (dump_sysinfo): Change "Server 8" to official
"Server 2012".

12 years ago* winbase.h: Add missing copyright date.
Christopher Faylor [Sun, 3 Jun 2012 16:32:00 +0000 (16:32 +0000)]
* winbase.h: Add missing copyright date.

12 years ago* select.cc (cygwin_select): Make sure that we only return -1 as an error
Christopher Faylor [Sun, 3 Jun 2012 16:31:33 +0000 (16:31 +0000)]
* select.cc (cygwin_select): Make sure that we only return -1 as an error
return.
(select_stuff::wait): Semi-revert to previous method for filling out w4.

12 years ago* select.cc (cygwin_select): Add some comments.
Christopher Faylor [Sun, 3 Jun 2012 03:29:47 +0000 (03:29 +0000)]
* select.cc (cygwin_select): Add some comments.
(select_stuff::wait): Ditto.

12 years ago* DevNotes: Add entry cgf-000010.
Christopher Faylor [Sun, 3 Jun 2012 02:59:20 +0000 (02:59 +0000)]
* DevNotes: Add entry cgf-000010.
* select.cc (set_handle_or_return_if_not_open): Remove unneeded final backslash
from definition.
(cygwin_select): Reorganize to incorporate outer retry loop.  Move remaining
time recalculation here for retry case.  Use select_stuff::wait_states for loop
control.
(select_stuff::cleanup): Avoid unneeded initialization.
(select_stuff::wait): Modify definition to return select_stuff::wait_states.
Eliminate is_cancelable.  Don't element 1 of an array if it is a cancel handle.
Remove loop.  Rely on being called from enclosing loop in cygwin_select.
Remove time recalculation when restarting.  Try harder to always return from
the bottom.
* select.h (select_stuff::wait_state): New enum.
(select_stuff::wait): Modify declaration to return select_stuff::wait_states.

12 years ago* exceptions.cc (setup_handler): Make debugging output a little more verbose.
Christopher Faylor [Sun, 3 Jun 2012 02:26:58 +0000 (02:26 +0000)]
* exceptions.cc (setup_handler): Make debugging output a little more verbose.

12 years ago* cygtls.h (_cygtls::protect_linked_list): Delete unused field.
Christopher Faylor [Sat, 2 Jun 2012 20:28:57 +0000 (20:28 +0000)]
* cygtls.h (_cygtls::protect_linked_list): Delete unused field.

12 years agoFix typo.
Corinna Vinschen [Thu, 31 May 2012 09:18:58 +0000 (09:18 +0000)]
Fix typo.

12 years ago * libc/stdio/local.h (_newlib_sfp_lock_exit): Fix typo in non-pthread
Corinna Vinschen [Thu, 31 May 2012 07:33:59 +0000 (07:33 +0000)]
* libc/stdio/local.h (_newlib_sfp_lock_exit): Fix typo in non-pthread
version.

12 years ago * libc/stdio/fgetws.c (_fgetws_r): Call _mbsnrtowcs_r rather than
Corinna Vinschen [Wed, 30 May 2012 14:42:52 +0000 (14:42 +0000)]
* libc/stdio/fgetws.c (_fgetws_r): Call _mbsnrtowcs_r rather than
_mbsrtowcs_r and restrict number of wide chars to n - 1.

12 years ago * hookapi.cc (find_first_notloaded_dll): Extend comment. Fix usage of
Corinna Vinschen [Wed, 30 May 2012 14:37:53 +0000 (14:37 +0000)]
* hookapi.cc (find_first_notloaded_dll): Extend comment.  Fix usage of
mapped memory.  Shorten static library name buffer to MAX_PATH.  Use
strlcpy to copy library name to buffer.  Only Unmap "map" if it has been
Mapped before.
* pinfo.cc (status_exit): Drop unneeded declaration of
find_first_notloaded_dll in favor of the declaration in winsup.h.

12 years ago * thread.cc: Remove temporary newlib workaround, now that newlib
Corinna Vinschen [Wed, 30 May 2012 09:15:38 +0000 (09:15 +0000)]
* thread.cc: Remove temporary newlib workaround, now that newlib
handles thread cancellation by itself.
(class __cygwin_lock_handler): Remove.
(__cygwin_lock_cleanup): Remove.
(__cygwin_lock_lock): Revert newlib workaround,
(__cygwin_lock_trylock): Ditto.
(__cygwin_lock_unlock): Ditto.
(pthread::pop_cleanup_handler): Ditto.

12 years ago * libc/stdio/local.h (_newlib_flockfile_start): New macro to
Corinna Vinschen [Wed, 30 May 2012 08:58:42 +0000 (08:58 +0000)]
* libc/stdio/local.h (_newlib_flockfile_start): New macro to
secure stream related critical section against thread cancellation.
(_newlib_flockfile_exit): Ditto.
(_newlib_sfp_lock_end): Ditto.
(_newlib_sfp_lock_start): Ditto for the list of streams.
(_newlib_sfp_lock_exit): Ditto.
(_newlib_sfp_lock_end): Ditto.
Use aforementioned macros in place of _flockfile/_funlockfile
and __sfp_lock_acquire/__sfp_lock_release throughout the code.
* libc/stdio/fclose.c: Explicitely disable and re-enable thread
cancellation.  Explain why.
* libc/stdio/freopen.c: Ditto.
* libc/stdio64/freopen64.c: Ditto.

12 years agoResync config/ from GCC.
Joseph Myers [Tue, 29 May 2012 15:58:15 +0000 (15:58 +0000)]
Resync config/ from GCC.

12 years ago * select.cc (select_stuff::wait): Temporarily disable restarting
Corinna Vinschen [Tue, 29 May 2012 13:11:34 +0000 (13:11 +0000)]
* select.cc (select_stuff::wait): Temporarily disable restarting
entirely.

12 years ago * security.h (cygsidlist::+=): Correctly copy well_known_sid info from
Corinna Vinschen [Tue, 29 May 2012 13:01:50 +0000 (13:01 +0000)]
* security.h (cygsidlist::+=): Correctly copy well_known_sid info from
source cygsid.

12 years ago * Makefile.in (LIBS): Re-add advapi32.dll. Explain why.
Corinna Vinschen [Tue, 29 May 2012 12:46:01 +0000 (12:46 +0000)]
* Makefile.in (LIBS): Re-add advapi32.dll.  Explain why.
* make-64bit-version-with-mingw-w64.sh (LIBS): Ditto.
* cyglsa.c: Drop NTDLL function declarations.  Use equivalent advapi32
functions again, throughout.
* cyglsa64.dll: Regenerate.

12 years ago * registry.cc (reg_key::build_reg): Fix typo in debug output.
Corinna Vinschen [Fri, 25 May 2012 14:49:56 +0000 (14:49 +0000)]
* registry.cc (reg_key::build_reg): Fix typo in debug output.

12 years ago * select.cc (select_stuff::wait): When not returning after receiving
Corinna Vinschen [Fri, 25 May 2012 14:33:18 +0000 (14:33 +0000)]
* select.cc (select_stuff::wait): When not returning after receiving
a signal, recalculate timeout.  Apply temporary fix to avoid crashes
after calling the signal handler.  Explain.

12 years ago * fhandler_serial.cc (fhandler_serial::raw_read): Check for
Corinna Vinschen [Fri, 25 May 2012 11:08:10 +0000 (11:08 +0000)]
* fhandler_serial.cc (fhandler_serial::raw_read): Check for
ERROR_OPERATION_ABORTED rather than ERROR_IO_INCOMPLETE after CancelIo.

12 years ago * fhandler_serial.cc (fhandler_serial::raw_read): Just call ReadFile
Corinna Vinschen [Fri, 25 May 2012 09:29:17 +0000 (09:29 +0000)]
* fhandler_serial.cc (fhandler_serial::raw_read): Just call ReadFile
directly in case of non-blocking I/O and handle result gracefully.

12 years agogdb/
Pedro Alves [Thu, 24 May 2012 16:51:39 +0000 (16:51 +0000)]
gdb/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

gdb/gdbserver/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

include/gdb/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        * gdb/signals.def: Replace TARGET_SIGNAL_ with GDB_SIGNAL_
throughout.

sim/arm/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/avr/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/common/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/cr16/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/d10v/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/erc32/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/m32c/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/ppc/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/rl78/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

sim/rx/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

        Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.

12 years agogdb/
Pedro Alves [Thu, 24 May 2012 16:39:13 +0000 (16:39 +0000)]
gdb/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

Replace target_signal with gdb_signal throughout.

gdb/gdbserver/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

Replace target_signal with gdb_signal throughout.

include/gdb/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

Replace target_signal with gdb_signal throughout.

sim/common/
2012-05-24  Pedro Alves  <palves@redhat.com>

PR gdb/7205

Replace target_signal with gdb_signal throughout.

12 years ago * thread.cc (__cygwin_lock_lock): Replace null thread check with test
Corinna Vinschen [Thu, 24 May 2012 14:17:51 +0000 (14:17 +0000)]
* thread.cc (__cygwin_lock_lock): Replace null thread check with test
for cygwin_finished_initializing to handle process startup.
(__cygwin_lock_trylock): Ditto.
(__cygwin_lock_unlock): Ditto.

12 years ago * leb128.h: #include stdint.h, inttypes.h.
Doug Evans [Thu, 24 May 2012 01:18:15 +0000 (01:18 +0000)]
* leb128.h: #include stdint.h, inttypes.h.
(read_uleb128_to_uint64): Renamed from read_uleb128_to_ull.
Change to take a uint64_t * argument instead of unsigned long long.
(read_sleb128_to_uint64): Renamed from read_sleb128_to_ll.
Change to take an int64_t * argument instead of long long.

12 years ago * thread.cc (__cygwin_lock_lock): Take null thread at process startup
Corinna Vinschen [Wed, 23 May 2012 19:49:39 +0000 (19:49 +0000)]
* thread.cc (__cygwin_lock_lock): Take null thread at process startup
into account.
(__cygwin_lock_trylock): Ditto.
(__cygwin_lock_unlock): Ditto.

12 years ago * thread.cc (pthread::cancel): Re-allow asynchronous cancellation from
Corinna Vinschen [Wed, 23 May 2012 17:39:39 +0000 (17:39 +0000)]
* thread.cc (pthread::cancel): Re-allow asynchronous cancellation from
Cygwin code since it looks like the problem is Windows only.

12 years ago * thread.cc: Add a temporary workaround to help Cygwin along while
Corinna Vinschen [Wed, 23 May 2012 16:26:34 +0000 (16:26 +0000)]
* thread.cc: Add a temporary workaround to help Cygwin along while
newlib doesn't install cleanup handlers.  Explain the problem.
(class __cygwin_lock_handler): New class.
(__cygwin_lock_cleanup): New function.
(__cygwin_lock_lock): Push __cygwin_lock_cleanup thread cleanup
handler.
(__cygwin_lock_trylock): Ditto.
(__cygwin_lock_unlock): Pop thread cleanup handler.
(pthread::pop_cleanup_handler): Temporarily allow cleanup function to
destroy cleanup handler so we can pop in another function than we
pushed in.

12 years ago * thread.cc (pthread::cancel): Only allow asynchronous cancellation
Corinna Vinschen [Wed, 23 May 2012 13:30:26 +0000 (13:30 +0000)]
* thread.cc (pthread::cancel): Only allow asynchronous cancellation
if the thread is not executing Cygwin or Windows code.  Explain why.

12 years ago * thread.cc (pthread::precreate): Make sure mutex is recursive.
Corinna Vinschen [Wed, 23 May 2012 13:24:57 +0000 (13:24 +0000)]
* thread.cc (pthread::precreate): Make sure mutex is recursive.
Explain why.

12 years ago * thread.cc (pthread::pop_cleanup_handler): Move setting the cancelstate
Corinna Vinschen [Wed, 23 May 2012 13:18:34 +0000 (13:18 +0000)]
* thread.cc (pthread::pop_cleanup_handler): Move setting the cancelstate
to PTHREAD_CANCEL_DISABLE from here...
(pthread::pop_all_cleanup_handlers): ...to here, otherwise any explicit
call to pthread_cleanup_pop disables cancellation for this thread.

12 years ago * fhandler.h (refcnt): Add i interlocked. Explain why.
Corinna Vinschen [Wed, 23 May 2012 13:13:56 +0000 (13:13 +0000)]
* fhandler.h (refcnt): Add i interlocked.  Explain why.
* winbase.h (ilockadd): New function.
(InterlockedAdd): Define as ilockadd.

12 years agomerge from gcc
DJ Delorie [Tue, 22 May 2012 18:05:30 +0000 (18:05 +0000)]
merge from gcc

12 years ago * devices.in: Fix native name of /dev/kmem.
Corinna Vinschen [Tue, 22 May 2012 17:37:40 +0000 (17:37 +0000)]
* devices.in: Fix native name of /dev/kmem.
* devices.cc: Regenerate.
* dtable.cc (fh_alloc): Don't forget FH_KMEM.
* fhandler_mem.cc (fhandler_dev_mem::open): Set errno to EACCES rather
than ENOENT on systems not granting access to physical memory from
user space.

12 years ago * thread.cc (pthread::cancel): Set thread's cancel_event in
Corinna Vinschen [Tue, 22 May 2012 10:28:05 +0000 (10:28 +0000)]
* thread.cc (pthread::cancel): Set thread's cancel_event in
PTHREAD_CANCEL_ASYNCHRONOUS case, too.  Explain why.

12 years ago * strace.cc (strace::activate): Move printing heap size from here...
Corinna Vinschen [Mon, 21 May 2012 19:45:12 +0000 (19:45 +0000)]
* strace.cc (strace::activate): Move printing heap size from here...
* heap.cc (heap_init_info): ...to here.  Explain why.  Print heap
size in hex and decimal.

12 years ago*** empty log message ***
Corinna Vinschen [Mon, 21 May 2012 16:01:31 +0000 (16:01 +0000)]
*** empty log message ***

12 years ago * net.cc (cygwin_recvfrom): Don't shortcircuit if len == 0. Add comment
Corinna Vinschen [Mon, 21 May 2012 14:56:02 +0000 (14:56 +0000)]
* net.cc (cygwin_recvfrom): Don't shortcircuit if len == 0.  Add comment
to explain why.
(cygwin_recv): Ditto.
(cygwin_recvmsg): Ditto.

12 years ago * fhandler_disk_file.cc (path_conv::isgood_inode): Rearrange, take
Corinna Vinschen [Mon, 21 May 2012 12:00:09 +0000 (12:00 +0000)]
* fhandler_disk_file.cc (path_conv::isgood_inode): Rearrange, take
Samba versions >= 3.5.4 into account, add comments.

12 years ago * libc/machine/cr16/asm.h: Added some missing instructions
Corinna Vinschen [Mon, 21 May 2012 11:55:15 +0000 (11:55 +0000)]
* libc/machine/cr16/asm.h: Added some missing instructions
and removed few unsupported instructions of cr16 target.

12 years ago* DevNotes: Add entry cgf-000009.
Christopher Faylor [Thu, 17 May 2012 02:18:41 +0000 (02:18 +0000)]
* DevNotes: Add entry cgf-000009.
* smallprint.cc (__small_vsprintf): Always treat '%c' and '%C' as characters.
Don't decode them if they are > 127.
(__small_vswprintf): Ditto.

12 years ago PR 13503
Nick Clifton [Wed, 16 May 2012 14:52:16 +0000 (14:52 +0000)]
PR 13503
* reloc.c: Rename BFD_RELOC_AVR_8_HHI to BFD_RELOC_AVR_8_HLO.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenrate.
* elf32-avr.c (elf_avr_howto_table): Rename R_AVR_8_HHI8 to
R_AVR_8_HLO8.
(avr_reloc_map): Ditto.

* config/tc-avr.c (avr_cons_fix_new): Rename R_AVR_8_HHI8 to
R_AVR_8_HLO8.
(exp_mod_data) Ditto. And replace "hhi8" with "hlo8".
(md_apply_fix): Rename BFD_RELOC_AVR_8_HHI to BFD_RELOC_AVR_8_HLO.

* avr.h (RELOC_NUMBERS): Rename R_AVR_8_HHI8 to R_AVR_8_HLO8.

12 years ago* DevNotes: Add entry cgf-000008.
Christopher Faylor [Wed, 16 May 2012 01:56:41 +0000 (01:56 +0000)]
* DevNotes: Add entry cgf-000008.
* fhandler_tty.cc (bytes_available): Simplify by returning the number of bytes
available in the message unless that is zero.

12 years ago * config/tc-m68hc11.c: Add S12X and XGATE co-processor support.
Nick Clifton [Tue, 15 May 2012 12:55:51 +0000 (12:55 +0000)]
* config/tc-m68hc11.c: Add S12X and XGATE co-processor support.
Add option to offset S12 addresses into XGATE memory space.
Tweak target flags to match other tools. (i.e. -m m68hc11).
* doc/as.texinfo: Mention new options.
* doc/c-m68hc11.texi: Document new options.
* NEWS: Mention new support.

* archures.c: Add bfd_arch_m9s12x and bfd_arch_m9s12xg.
* config.bfd: Likewise.
* cpu-m9s12x.c: New.
* cpu-m9s12xg.c: New.
* elf32-m68hc12.c: Add S12X and XGATE co-processor support.
Add option to offset S12 addresses into XGATE memory space.
Fix carry bug in IMM16 (IMM8 low/high) relocate.
* Makefile.am (ALL_MACHINES): Add cpu-m9s12x and cpu-m9s12xg.
(ALL_MACHINES_CFILES): Likewise.
* reloc.c: Add S12X relocs.
* Makefile.in: Regenerate.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.

* gas/m68hc11/insns9s12x.s: New
* gas/m68hc11/insns9s12x.d: New
* gas/m68hc11/hexprefix.s: New
* gas/m68hc11/hexprefix.d: New
* gas/m68hc11/9s12x-exg-sex-tfr.s: New
* gas/m68hc11/9s12x-exg-sex-tfr.d: New
* gas/m68hc11/insns9s12xg.s: New
* gas/m68hc11/insns9s12xg.d: New
* gas/m68hc11/9s12x-mov.s: New
* gas/m68hc11/9s12x-mov.d: New
* gas/m68hc11/m68hc11.exp: Updated
* gas/m68hc11/*.d: Brought in line with changed objdump output.
* gas/all/gas.exp: XFAIL all hc11/12 targets for redef2,3.
* gas/elf/elf.exp: XFAIL all hc11/12 targets for redef.
* gas/elf/dwarf2-1.d: Skip for hc11/12 targets.
* gas/elf/dwarf2-2.d: Likewise.

* ld-m68hc11/xgate-link.s: New.
* ld-m68hc11/xgate-link.d: New.
* ld-m68hc11/xgate-offset.s: New.
* ld-m68hc11/xgate-offset.d: New.
* ld-m68hc11/xgate1.s: New.
* ld-m68hc11/xgate1.d: New.
* ld-m68hc11/xgate2.s: New.
* ld-m68hc11/m68hc11.exp: Updated.
* ld-m68hc11/*.d: Brought in line with changed objdump output.
* ld-gc/gc.exp: Update CFLAGS for m68hc11.
* ld-plugin/plugin.exp: Likewise.
* ld-srec/srec.exp: XFAIL for m68hc11 and m68hc12.

* configure.in: Add S12X and XGATE co-processor support to m68hc11
target.
* disassemble.c: Likewise.
* configure: Regenerate.
* m68hc11-dis.c: Make objdump output more consistent, use hex
instead of decimal and use 0x prefix for hex.
* m68hc11-opc.c: Add S12X and XGATE opcodes.
* dis-asm.h (print_insn_m9s12x): Prototype.
(print_insn_m9s12xg): Prototype.

* m68hc11.h (R_M68HC12_16B, R_M68HC12_PCREL_9, R_M68HC12_PCREL_10)
R_M68HC12_HI8XG, R_M68HC12_LO8XG): New relocations.
(E_M68HC11_XGATE_RAMOFFSET): Define.

* m68hc11.h: Add XGate definitions.
(struct m68hc11_opcode): Add xg_mask field.

12 years ago* child_info.h (CURR_CHILD_INFO_MAGIC): Update.
Christopher Faylor [Mon, 14 May 2012 23:29:03 +0000 (23:29 +0000)]
* child_info.h (CURR_CHILD_INFO_MAGIC): Update.

12 years ago* DevNotes: Add entry cgf-000007.
Christopher Faylor [Mon, 14 May 2012 22:42:56 +0000 (22:42 +0000)]
* DevNotes: Add entry cgf-000007.
* child_info.h (child_info_spawn::parent_winpid): Declare new field.
(child_info_spawn::get_parent_handle): Declare new function.
* dcrt0.cc (child_info_spawn::get_parent_handle): Define new function.
(child_info_spawn::handle_spawn): Recreate parent handle if possible when
dynamically loaded.  Don't mess with parent handle if it's NULL.
* spawn.cc (child_info_spawn::worker): Set parent_winpid appropriately.

12 years agoAdd support for PowerPC VLE.
James Lemke [Mon, 14 May 2012 19:45:27 +0000 (19:45 +0000)]
Add support for PowerPC VLE.

2012-05-14  Catherine Moore  <clm@codesourcery.com>

* NEWS:  Mention PowerPC VLE port.

2012-05-14  James Lemke <jwlemke@codesourcery.com>
    Catherine Moore  <clm@codesourcery.com>

bfd/
* bfd.c (bfd_lookup_section_flags): Add section parm.
* ecoff.c (bfd_debug_section): Remove flag_info initializer.
* elf-bfd.h (bfd_elf_section_data): Move in section_flag_info.
(bfd_elf_lookup_section_flags): Add section parm.
* elf32-ppc.c (is_ppc_vle): New function.
(ppc_elf_modify_segment_map): New function.
(elf_backend_modify_segment_map): Define.
(has_vle_insns): New define.
* elf32-ppc.h (ppc_elf_modify_segment_map): Declare.
* elflink.c (bfd_elf_lookup_section_flags): Add return value & parm.
Move in logic to omit / include a section.
* libbfd-in.h (bfd_link_info): Add section parm.
(bfd_generic_lookup_section_flags): Likewise.
* reloc.c (bfd_generic_lookup_section_flags): Likewise.
* section.c (bfd_section): Move out section_flag_info.
(BFD_FAKE_SECTION): Remove flag_info initializer.
* targets.c (_bfd_lookup_section_flags): Add section parm.

2012-05-14  Catherine Moore  <clm@codesourcery.com>

bfd/
* archures.c (bfd_mach_ppc_vle): New.
* bfd-in2.h: Regenerated.
* cpu-powerpc.c (bfd_powerpc_archs): New entry for vle.
* elf32-ppc.c (split16_format_type): New enumeration.
(ppc_elf_vle_split16): New function.
(HOWTO): Add entries for R_PPC_VLE relocations.
(ppc_elf_reloc_type_lookup): Handle PPC_VLE relocations.
(ppc_elf_section_flags): New function.
(ppc_elf_lookup_section_flags): New function.
(ppc_elf_section_processing): New function.
(ppc_elf_check_relocs): Handle PPC_VLE relocations.
(ppc_elf_relocation_section): Likewise.
(elf_backend_lookup_section_flags_hook): Define.
(elf_backend_section_flags): Define.
(elf_backend_section_processing): Define.
* elf32-ppc.h (ppc_elf_section_processing): Declare.
* libbfd.h: Regenerated.
* reloc.c (BFD_RELOC_PPC_VLE_REL8, BFD_RELOC_PPC_VLE_REL15,
BFD_RELOC_PPC_VLE_REL24, BFD_RELOC_PPC_VLE_LO16A,
BFD_RELOC_PPC_VLE_LO16D, BFD_RELOC_PPC_VLE_HI16A,
BFD_RELOC_PPC_VLE_HI16D, BFD_RELOC_PPC_VLE_HA16A,
BFD_RELOC_PPC_VLE_HA16D, BFD_RELOC_PPC_VLE_SDA21,
BFD_RELOC_PPC_VLE_SDA21_LO, BFD_RELOC_PPC_VLE_SDAREL_LO16A,
BFD_RELOC_PPC_VLE_SDAREL_LO16D, BFD_RELOC_PPC_VLE_SDAREL_HI16A,
BFD_RELOC_PPC_VLE_SDAREL_HI16D, BFD_RELOC_PPC_VLE_SDAREL_HA16A,
BFD_RELOC_PPC_VLE_SDAREL_HA16D): New bfd relocations.

2012-05-14  James Lemke  <jwlemke@codesourcery.com>

gas/
* config/tc-ppc.c (insn_validate): New func of existing code to call..
(ppc_setup_opcodes): ..from 2 places here.
Revise for second (VLE) opcode table.
Add #ifdef'd code to print opcode tables.

2012-05-14  James Lemke  <jwlemke@codesourcery.com>

gas/
* config/tc-ppc.c (ppc_setup_opcodes): Allow out-of-order
for the VLE conditional branches.

2012-05-14  Catherine Moore  <clm@codesourcery.com>
            Maciej W. Rozycki  <macro@codesourcery.com>
    Rhonda Wittels  <rhonda@codesourcery.com>

gas/
* config/tc-ppc.c (PPC_VLE_SPLIT16A): New macro.
(PPC_VLE_SPLIT16D): New macro.
(PPC_VLE_LO16A): New macro.
(PPC_VLE_LO16D): New macro.
(PPC_VLE_HI16A): New macro.
(PPC_VLE_HI16D): New macro.
(PPC_VLE_HA16A): New macro.
(PPC_VLE_HA16D): New macro.
(PPC_APUINFO_VLE): New definition.
(md_chars_to_number): New function.
(md_parse_option): Check for combinations of little
endian and -mvle.
(md_show_usage): Document -mvle.
(ppc_arch): Recognize VLE.
(ppc_mach): Recognize bfd_mach_ppc_vle.
(ppc_setup_opcodes): Print the opcode table if
* config/tc-ppc.h (ppc_frag_check): Declare.
* doc/c-ppc.texi: Document -mvle.
* NEWS:  Mention PowerPC VLE port.

2012-05-14  Catherine Moore  <clm@codesourcery.com>

gas/
* config/tc-ppc.h (ppc_dw2_line_min_insn_length): Declare.
(DWARF2_LINE_MIN_INSN_LENGTH): Redefine.
* config/tc-ppc.c (ppc_dw2_line_min_insn_length): New.
* dwarf2dbg.c (scale_addr_delta): Handle values of 1
for DWARF2_LINE_MIN_INSN_LENGTH.

2012-05-14  Catherine Moore  <clm@codesourcery.com>
            Maciej W. Rozycki  <macro@codesourcery.com>
    Rhonda Wittels  <rhonda@codesourcery.com>

gas/testsuite/
* gas/ppc/ppc.exp: Run new tests.
* gas/ppc/vle-reloc.d: New test.
* gas/ppc/vle-reloc.s: New test.
* gas/ppc/vle-simple-1.d: New test.
* gas/ppc/vle-simple-1.s: New test.
* gas/ppc/vle-simple-2.d: New test.
* gas/ppc/vle-simple-2.s: New test.
* gas/ppc/vle-simple-3.d: New test.
* gas/ppc/vle-simple-3.s: New test.
* gas/ppc/vle-simple-4.d: New test.
* gas/ppc/vle-simple-4.s: New test.
* gas/ppc/vle-simple-5.d: New test.
* gas/ppc/vle-simple-5.s: New test.
* gas/ppc/vle-simple-6.d: New test.
* gas/ppc/vle-simple-6.s: New test.
* gas/ppc/vle.d: New test.
* gas/ppc/vle.s: New test.

2012-05-14  James Lemke  <jwlemke@codesourcery.com>
include/elf/
* ppc.h (SEC_PPC_VLE): Remove.

2012-05-14  Catherine Moore  <clm@codesourcery.com>
    James Lemke  <jwlemke@codesourcery.com>

include/elf/
* ppc.h (R_PPC_VLE_REL8): New reloction.
(R_PPC_VLE_REL15): Likewise.
(R_PPC_VLE_REL24): Likewise.
(R_PPC_VLE_LO16A): Likewise.
(R_PPC_VLE_LO16D): Likewise.
(R_PPC_VLE_HI16A): Likewise.
(R_PPC_VLE_HI16D): Likewise.
(R_PPC_VLE_HA16A): Likewise.
(R_PPC_VLE_HA16D): Likewise.
(R_PPC_VLE_SDA21): Likewise.
(R_PPC_VLE_SDA21_LO): Likewise.
(R_PPC_VLE_SDAREL_LO16A): Likewise.
(R_PPC_VLE_SDAREL_LO16D): Likewise.
(R_PPC_VLE_SDAREL_HI16A): Likewise.
(R_PPC_VLE_SDAREL_HI16D): Likewise.
(R_PPC_VLE_SDAREL_HA16A): Likewise.
(R_PPC_VLE_SDAREL_HA16D): Likewise.
(SEC_PPC_VLE): Remove.
(PF_PPC_VLE): New program header flag.
(SHF_PPC_VLE): New section header flag.
(vle_opcodes, vle_num_opcodes): New.
(VLE_OP): New macro.
(VLE_OP_TO_SEG): New macro.

2012-05-14  Catherine Moore  <clm@codesourcery.com>
            Maciej W. Rozycki  <macro@codesourcery.com>
    Rhonda Wittels  <rhonda@codesourcery.com>

include/opcode/
* ppc.h (PPC_OPCODE_VLE): New definition.
(PPC_OP_SA): New macro.
(PPC_OP_SE_VLE): New macro.
(PPC_OP): Use a variable shift amount.
(powerpc_operand): Update comments.
(PPC_OPSHIFT_INV): New macro.
(PPC_OPERAND_CR): Replace with...
(PPC_OPERAND_CR_BIT): ...this and
(PPC_OPERAND_CR_REG): ...this.

2012-05-14  James Lemke  <jwlemke@codesourcery.com>

ld/
* ldlang.c (walk_wild_consider_section): Don't copy section_flag_list.
Pass it to callback.
(walk_wild_section_general): Pass section_flag_list to callback.
(lang_add_section): Add sflag_list parm.
Move out logic to keep / omit a section & call bfd_lookup_section_flags.
(output_section_callback_fast): Add sflag_list parm.
Add new parm to lang_add_section calls.
(output_section_callback): Likewise.
(check_section_callback): Add sflag_list parm.
(lang_place_orphans): Add new parm to lang_add_section calls.
(gc_section_callback): Add sflag_list parm.
(find_relro_section_callback): Likewise.
* ldlang.h (callback_t): Add flag_info parm.
(lang_add_section): Add sflag_list parm.
* emultempl/armelf.em (elf32_arm_add_stub_section):
Add lang_add_section parm.
* emultempl/beos.em (gld*_place_orphan): Likewise.
* emultempl/elf32.em (gld*_place_orphan): Likewise.
* emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
* emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
* emultempl/mipself.em (mips_add_stub_section): Likewise.
* emultempl/mmo.em (mmo_place_orphan): Likewise.
* emultempl/pe.em (gld_*_place_orphan): Likewise.
* emultempl/pep.em (gld_*_place_orphan): Likewise.
* emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
* emultempl/spuelf.em (spu_place_special_section): Likewise.
* emultempl/vms.em (vms_place_orphan): Likewise.

2012-05-14  James Lemke  <jwlemke@codesourcery.com>

ld/testsuite/
* ld-powerpc/powerpc.exp: Create ppceabitests.
* ld-powerpc/vle-multiseg.s: New.
* ld-powerpc/vle-multiseg-1.d: New.
* ld-powerpc/vle-multiseg-1.ld: New.
* ld-powerpc/vle-multiseg-2.d: New.
* ld-powerpc/vle-multiseg-2.ld: New.
* ld-powerpc/vle-multiseg-3.d: New.
* ld-powerpc/vle-multiseg-3.ld: New.
* ld-powerpc/vle-multiseg-4.d: New.
* ld-powerpc/vle-multiseg-4.ld: New.
* ld-powerpc/vle-multiseg-5.d: New.
* ld-powerpc/vle-multiseg-5.ld: New.
* ld-powerpc/vle-multiseg-6.d: New.
* ld-powerpc/vle-multiseg-6.ld: New.
* ld-powerpc/vle-multiseg-6a.s: New.
* ld-powerpc/vle-multiseg-6b.s: New.
* ld-powerpc/vle-multiseg-6c.s: New.
* ld-powerpc/vle-multiseg-6d.s: New.
* ld-powerpc/powerpc.exp: Run new tests.

2012-05-14  Catherine Moore  <clm@codesourcery.com>

ld/
* NEWS:  Mention PowerPC VLE port.

2012-05-14  Catherine Moore  <clm@codesourcery.com>

ld/testsuite/
* ld-powerpc/apuinfo.rd: Update for VLE.
* ld-powerpc/vle-reloc-1.d: New.
* ld-powerpc/vle-reloc-1.s: New.
* ld-powerpc/vle-reloc-2.d: New.
* ld-powerpc/vle-reloc-2.s: New.
* ld-powerpc/vle-reloc-3.d: New.
* ld-powerpc/vle-reloc-3.s: New.
* ld-powerpc/vle-reloc-def-1.s: New.
* ld-powerpc/vle-reloc-def-2.s: New.
* ld-powerpc/vle-reloc-def-3.s: New.

2012-05-14  James Lemke  <jwlemke@codesourcery.com>

opcodes/
* ppc-dis.c (get_powerpc_dialect): Use is_ppc_vle.
(PPC_OPCD_SEGS, VLE_OPCD_SEGS): New defines.
(vle_opcd_indices): New array.
(lookup_vle): New function.
(disassemble_init_powerpc): Revise for second (VLE) opcode table.
(print_insn_powerpc): Likewise.
* ppc-opc.c: Likewise.

2012-05-14  Catherine Moore  <clm@codesourcery.com>
            Maciej W. Rozycki  <macro@codesourcery.com>
    Rhonda Wittels  <rhonda@codesourcery.com>
    Nathan Froyd <froydnj@codesourcery.com>

opcodes/
* ppc-opc.c (insert_arx, extract_arx): New functions.
(insert_ary, extract_ary): New functions.
(insert_li20, extract_li20): New functions.
(insert_rx, extract_rx): New functions.
(insert_ry, extract_ry): New functions.
(insert_sci8, extract_sci8): New functions.
(insert_sci8n, extract_sci8n): New functions.
(insert_sd4h, extract_sd4h): New functions.
(insert_sd4w, extract_sd4w): New functions.
(insert_vlesi, extract_vlesi): New functions.
(insert_vlensi, extract_vlensi): New functions.
(insert_vleui, extract_vleui): New functions.
(insert_vleil, extract_vleil): New functions.
  (BI_MASK, BB_MASK, BT): Use PPC_OPERAND_CR_BIT.
  (BI16, BI32, BO32, B8): New.
(B15, B24, CRD32, CRS): New.
  (CRD, OBF, BFA, CR, CRFS): Use PPC_OPERAND_CR_REG.
(DB, IMM20, RD, Rx, ARX, RY, RZ): New.
(ARY, SCLSCI8, SCLSCI8N, SE_SD, SE_SDH): New.
(SH6_MASK): Use PPC_OPSHIFT_INV.
(SI8, UI5, OIMM5, UI7, BO16): New.
(VLESIMM, VLENSIMM, VLEUIMM, VLEUIMML): New.
(XT6, XA6, XB6, XB6S, XC6): Use PPC_OPSHIFT_INV.
(ALLOW8_SPRG): New.
(insert_sprg, extract_sprg): Check ALLOW8_SPRG.
(OPVUP, OPVUP_MASK OPVUP): New
(BD8, BD8_MASK, BD8IO, BD8IO_MASK): New.
(EBD8IO, EBD8IO1_MASK, EBD8IO2_MASK, EBD8IO3_MASK): New.
(BD15, BD15_MASK, EBD15, EBD15_MASK, EBD15BI, EBD15BI_MASK): New.
(BD24,BD24_MASK, C_LK, C_LK_MASK, C, C_MASK): New.
  (IA16, IA16_MASK, I16A, I16A_MASK, I16L, I16L_MASK): New.
(IM7, IM7_MASK, LI20, LI20_MASK, SCI8, SCI8_MASK): New.
(SCI8BF, SCI8BF_MASK, SD4, SD4_MASK): New.
(SE_IM5, SE_IM5_MASK): New.
(SE_R, SE_R_MASK, SE_RR, SE_RR_MASK): New.
(EX, EX_MASK, BO16F, BO16T, BO32F, BO32T): New.
(BO32DNZ, BO32DZ): New.
(NO371, PPCSPE, PPCISEL, PPCEFS, MULHW): Include PPC_OPCODE_VLE.
(PPCVLE): New.
(powerpc_opcodes): Add new VLE instructions.  Update existing
instruction to include PPCVLE if supported.
* ppc-dis.c (ppc_opts): Add vle entry.
(get_powerpc_dialect): New function.
(powerpc_init_dialect): VLE support.
(print_insn_big_powerpc): Call get_powerpc_dialect.
(print_insn_little_powerpc): Likewise.
(operand_value_powerpc): Handle negative shift counts.
(print_insn_powerpc): Handle 2-byte instruction lengths.

12 years ago* DevNotes: Add entry cgf-000006.
Christopher Faylor [Sat, 12 May 2012 20:26:43 +0000 (20:26 +0000)]
* DevNotes: Add entry cgf-000006.
* thread.cc (pthread::pop_cleanup_handler): Set cancel state to disabled to
avoid recursively waiting for cancel.

12 years ago* DevNotes: Add entry cgf-000005.
Christopher Faylor [Sat, 12 May 2012 19:17:17 +0000 (19:17 +0000)]
* DevNotes: Add entry cgf-000005.
* fhandler.h (PIPE_ADD_PID): Redefine to something we actually DON'T use.
* pipe.cc (fhandler_pipe::create): Avoid clearing all open_mode bits when
checking for PIPE_ADD_PID.  Properly keep track of len so that passed in name
is not overwritten.

12 years agoMAINTAINERS: clarify policy with config/ (and other top level files)
Michael Frysinger [Sat, 12 May 2012 03:10:17 +0000 (03:10 +0000)]
MAINTAINERS: clarify policy with config/ (and other top level files)

Rather than copy & paste more text, just merge the existing config/
section with the existing intl/ section.  This ends up clarifying
the policy with that subdir (and top level files) that any commit
made to gcc's repo is allowed to be merged with the sourceware tree
without pre-approval.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years ago PR 13503
Nick Clifton [Fri, 11 May 2012 12:59:23 +0000 (12:59 +0000)]
PR 13503
* reloc.c: Add new ENUM for BFD_RELOC_AVR_8_LO,
BFD_RELOC_AVR_8_HI, BFD_RELOC_AVR_8_HHI.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenrate.
* elf32-avr.c (elf_avr_howto_table): Add entries for
R_AVR_8_LO8, R_AVR_8_HI8, R_AVR_8_HHI8.
(avr_reloc_map): Add RELOC mappings for R_AVR_8_LO8, R_AVR_8_HI8,
R_AVR_8_HHI8.

* config/tc-avr.c (exp_mod_pm): Remove variable.
(exp_mod_data_t): New typedef.
(pexp_mod_data, exp_mod_data): New variables.
(avr_parse_cons_expression): Scan through exp_mod_data[] to find
data expression modifiers "pm", "gs", "lo8", hi8", "hhi8", "hh8"
and set pexp_mod_data accordingly to be used in avr_cons_fix_new.
(avr_cons_fix_new): Handle new data expression modifiers shipped
in pexp_mod_data.
(md_apply_fix): Handle BFD_RELOC_AVR_8_LO, BFD_RELOC_AVR_8_HI,
BFD_RELOC_AVR_8_HHI.

* elf/avr.h (RELOC_NUMBERS): Add values for R_AVR_8_LO8,
R_AVR_8_HI8, R_AVR_8_HHI8.

12 years ago PR bootstrap/50461
Nick Clifton [Thu, 10 May 2012 13:42:03 +0000 (13:42 +0000)]
PR bootstrap/50461
* configure.ac (mpfr-dir): When using in-tree MPFR sources
allow for the fact that from release v3.1.0 of MPFR the source
files were moved into a src sub-directory.
* configure: Regenerate.

12 years ago*** empty log message ***
Corinna Vinschen [Thu, 10 May 2012 08:37:56 +0000 (08:37 +0000)]
*** empty log message ***

12 years ago * new-features.sgml (ov-new1.7.16): Document memrchr.
Corinna Vinschen [Thu, 10 May 2012 08:36:44 +0000 (08:36 +0000)]
* new-features.sgml (ov-new1.7.16): Document memrchr.

12 years ago * cygwin.din (memrchr): Export.
Corinna Vinschen [Thu, 10 May 2012 08:35:22 +0000 (08:35 +0000)]
* cygwin.din (memrchr): Export.
* posix.sgml (std-gnu): Add memrchr.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

12 years ago * libc/include/string.h (memrchr): Declare.
Corinna Vinschen [Thu, 10 May 2012 08:34:08 +0000 (08:34 +0000)]
* libc/include/string.h (memrchr): Declare.
* libc/string/Makefile.am (ELIX_4_SOURCES): Add memrchr.c.
(CHEWOUT_FILES): Add memrchr.def.
* libc/string/Makefile.in: Regenerate.
* libc/string/memrchr.c: New file.

12 years ago * libc/sys/rtems/machine/_types.h: Add Microblaze.
Corinna Vinschen [Thu, 10 May 2012 06:59:58 +0000 (06:59 +0000)]
* libc/sys/rtems/machine/_types.h: Add Microblaze.

12 years ago * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 16.
Corinna Vinschen [Thu, 10 May 2012 06:51:40 +0000 (06:51 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 16.

12 years ago * libc/sys/rtems/crt0.c: Add stubs for access(), ftruncate(),
Corinna Vinschen [Wed, 9 May 2012 09:03:06 +0000 (09:03 +0000)]
* libc/sys/rtems/crt0.c: Add stubs for access(), ftruncate(),
_getpid_r(), geteuid(), getgid, _getgid_r, getpid(), getppid(),
and _getpid_r().

12 years ago * new-features.sgml (ov-new1.7.15): Fix XML syntax.
Yaakov Selkowitz [Wed, 9 May 2012 07:32:48 +0000 (07:32 +0000)]
* new-features.sgml (ov-new1.7.15): Fix XML syntax.

12 years agoAdd url for reported mailing list problem
Christopher Faylor [Tue, 8 May 2012 22:38:42 +0000 (22:38 +0000)]
Add url for reported mailing list problem

12 years agoRemove references to nonexistent files.
Keith Marshall [Tue, 8 May 2012 19:41:12 +0000 (19:41 +0000)]
Remove references to nonexistent files.

12 years ago* DevNotes: Add entry cgf-000004.
Christopher Faylor [Tue, 8 May 2012 15:06:43 +0000 (15:06 +0000)]
* DevNotes: Add entry cgf-000004.
* pinfo.cc (pinfo::init): Reuse shared memory if the state is marked with
PID_REAPED.
* spawn.cc (child_info_spawn::worker): Don't duplicate myself_pinfo into
non-cygwin child.
* fork.cc (frok::parent): Improve error output.

12 years agoAdd additional observation to cgf-000003
Christopher Faylor [Mon, 7 May 2012 15:28:40 +0000 (15:28 +0000)]
Add additional observation to cgf-000003

12 years ago* DevNotes: Add entry cgf-000003.
Christopher Faylor [Mon, 7 May 2012 15:05:56 +0000 (15:05 +0000)]
* DevNotes: Add entry cgf-000003.
* cygheap.h (init_cygheap::pid_handle): Delete.
* dcrt0.cc (child_info_spawn::handle_spawn): Keep parent open if we have
execed.
* pinfo.cc (pinfo::thisproc): Remove pid_handle manipulations.
(pinfo::init): Don't consider a reaped process to be available.
* spawn.cc (child_info_spawn::worker): Remove pid_handle manipulations.  Make
wr_proc_pipe and parent noninheritable when starting a program which doesn't
use the Cygwin DLL.  Conditionally reset wr_proc_pipe to inheritable if
CreateProcess fails.  Inject wr_proc_pipe handle into non-Cygwin process.
Consider a non-cygwin process to be 'synced'.

12 years ago* new-features.sgml (ov-new1.7.15): Fix tag.
Christopher Faylor [Mon, 7 May 2012 14:40:20 +0000 (14:40 +0000)]
* new-features.sgml (ov-new1.7.15): Fix tag.

12 years ago* cygwinenv.sgml: Add pipe_byte description.
Christopher Faylor [Sun, 6 May 2012 18:59:46 +0000 (18:59 +0000)]
* cygwinenv.sgml: Add pipe_byte description.
* new-features.sgml (ov-new1.7.15): Add new pipe_byte description for 1.7.15.

12 years ago*** empty log message ***
Corinna Vinschen [Sun, 6 May 2012 08:13:58 +0000 (08:13 +0000)]
*** empty log message ***

12 years ago * mkpasswd.c (current_user): Actually *use* $HOME if it's available.
Corinna Vinschen [Sat, 5 May 2012 08:55:17 +0000 (08:55 +0000)]
* mkpasswd.c (current_user): Actually *use* $HOME if it's available.
Add comment to explain what we're doing here.

12 years ago* DevNotes: Add entry cgf-000002.
Christopher Faylor [Fri, 4 May 2012 03:00:43 +0000 (03:00 +0000)]
* DevNotes: Add entry cgf-000002.
* fhandler_tty.cc (bytes_available): Revert to previous Oct-2011 behavior where
a dummy buffer is used to determine how many bytes will be read.
(fhandler_pty_master::ioctl): Correct coercion in assignment.

12 years agoAdd support for Motorola XGATE embedded CPU
Nick Clifton [Thu, 3 May 2012 13:12:06 +0000 (13:12 +0000)]
Add support for Motorola XGATE embedded CPU

12 years ago * net.cc (get_adapters_addresses): Only create thread on affected
Corinna Vinschen [Thu, 3 May 2012 08:34:44 +0000 (08:34 +0000)]
* net.cc (get_adapters_addresses): Only create thread on affected
systems.  Change comment acordingly.
* wincap.h (wincaps::has_gaa_largeaddress_bug): New element.
* wincap.cc: Implement above element throughout.
(wincap_8): New globale wincaps to support Windows 8.
(wincapc::init): Take Windows 8 into account.  Set new
has_gaa_largeaddress_bug member to false on 32 bit systems.

12 years ago * testsuite/newlib.string/strcmp-1.c (LONG_TEST): New macro.
Corinna Vinschen [Thu, 3 May 2012 08:13:17 +0000 (08:13 +0000)]
* testsuite/newlib.string/strcmp-1.c (LONG_TEST): New macro.
(MAX_BLOCK_SIZE): Use small value when LONG_TEST is not set.
(MAX_DIFF, MAX_LEN, MAX_ZEROS) Likewise.

12 years ago * configure.ac (ENABLE_GOLD): Consider *-*-nacl* targets ELF.
Roland McGrath [Wed, 2 May 2012 21:37:22 +0000 (21:37 +0000)]
* configure.ac (ENABLE_GOLD): Consider *-*-nacl* targets ELF.
* configure: Regenerate.

gold/
* nacl.cc: New file.
* nacl.h: New file.
* Makefile.am (CCFILES, HFILES): Add them.
* Makefile.in: Regenerate.
* i386.cc (Output_data_plt_i386_nacl): New class.
(Output_data_plt_i386_nacl_exec): New class.
(Output_data_plt_i386_nacl_dyn): New class.
(Target_i386_nacl): New class.
(Target_selector_i386_nacl): New class.
(target_selector_i386): Use it instead of Target_selector_i386.
* x86_64.cc (Output_data_plt_x86_64_nacl): New class.
(Target_x86_64_nacl): New class.
(Target_selector_x86_64_nacl): New class.
(target_selector_x86_64, target_selector_x32): Use it instead of
Target_selector_x86_64.
* arm.cc (Output_data_plt_arm_nacl): New class.
(Target_arm_nacl): New class.
(Target_selector_arm_nacl): New class.
(target_selector_arm, target_selector_armbe): Use it instead of
Target_selector_arm.

* target-select.cc (select_target): Take new Input_file* and off_t
arguments, pass them on to recognize method of selector.
* object.cc (make_elf_sized_object): Update caller.
* parameters.cc (parameters_force_valid_target): Likewise.
* incremental.cc (make_sized_incremental_binary): Likewise.
* target-select.h: Update decl.
(Target_selector::recognize): Take new Input_file* argument,
pass it on to do_recognize.
(Target_selector::do_recognize): Take new Input_file* argument.
* freebsd.h (Target_selector_freebsd::do_recognize): Likewise.
* powerpc.cc (Target_selector_powerpc::do_recognize): Likewise.
* sparc.cc (Target_selector_sparc::do_recognize): Likewise.
* testsuite/testfile.cc (Target_selector::do_recognize): Likewise.

* target.h (Target::Target_info): New members isolate_execinstr
and rosegment_gap.
(Target::isolate_execinstr, Target::rosegment_gap): New methods.
* arm.cc (Target_arm::arm_info): Update initializer.
* i386.cc (Target_i386::i386_info): Likewise.
* powerpc.cc (Target_powerpc::powerpc_info): Likewise.
* sparc.cc (Target_sparc::sparc_info): Likewise.
* x86_64.cc (Target_x86_64::x86_64_info): Likewise.
* testsuite/testfile.cc (Target_test::test_target_info): Likewise.
* layout.cc (Layout::attach_allocated_section_to_segment):
Take new const Target* argument.  If target->isolate_execinstr(), act
like --rosegment.
(Layout::find_first_load_seg): Take new const Target* argument;
if target->isolate_execinstr(), reject PF_X segments.
(Layout::relaxation_loop_body): Update caller.
(Layout::set_segment_offsets): If target->isolate_execinstr(),
reset file offset to zero when we hit LOAD_SEG, and then do a second
loop over the segments before LOAD_SEG to reassign offsets after
addresses have been determined.  Handle target->rosegment_gap().
(Layout::attach_section_to_segment): Take new const Target* argument;
pass it to attach_allocated_section_to_segment.
(Layout::make_output_section): Update caller.
(Layout::attach_sections_to_segments): Take new const Target* argument;
pass it to attach_section_to_segment.
* gold.cc (queue_middle_tasks): Update caller.
* layout.h (Layout): Update method decls with new arguments.

* arm.cc (Target_arm::Target_arm): Take optional argument for the
Target_info pointer to use.
(Target_arm::do_make_data_plt): New virtual method.
(Target_arm::make_data_plt): New method that calls it.
(Target_arm::make_plt_entry): Use it.
(Output_data_plt_arm::Output_data_plt_arm): Take additional argument
for the section alignment.
(Output_data_plt_arm::do_first_plt_entry_offset): New abstract virtual
method.
(Output_data_plt_arm::first_plt_entry_offset): Call it.
(Output_data_plt_arm::do_get_plt_entry_size): New abstract virtual
method.
(Output_data_plt_arm::get_plt_entry_size): Call it.
(Output_data_plt_arm::do_fill_plt_entry): New abstract virtual method.
(Output_data_plt_arm::fill_plt_entry): New method that calls it.
(Output_data_plt_arm::do_fill_first_plt_entry): New abstract virtual
method.
(Output_data_plt_arm::fill_first_plt_entry): New method that calls it.
(Output_data_plt_arm::set_final_data_size): Use get_plt_entry_size
method instead of sizeof(plt_entry).
(Output_data_plt_arm::add_entry): Likewise.
Use first_plt_entry_offset method instead of sizeof(first_plt_entry).
(Target_arm::first_plt_entry_offset): Call method on this->plt_ rather
than static method.
(Target_arm::plt_entry_size): Likewise.
(Output_data_plt_arm::first_plt_entry, Output_data_plt_arm::plt_entry):
Move to ...
(Output_data_plt_arm_standard): ... here, new class.
(Output_data_plt_arm::do_write): Move guts of PLT filling to...
(Output_data_plt_arm_standard::do_fill_first_plt_entry): ... here ...
(Output_data_plt_arm_standard::do_fill_plt_entry): ... and here.

* x86_64.cc (Output_data_plt_x86_64::Output_data_plt_x86_64):
Take additional argument for the PLT entry size.
(Output_data_plt_x86_64::get_tlsdesc_plt_offset):
Use get_plt_entry_size method rather than plt_entry_size variable.
(Output_data_plt_x86_64::reserve_slot): Likewise.
(Output_data_plt_x86_64::do_adjust_output_section): Likewise.
(Output_data_plt_x86_64::add_entry): Likewise.
(Output_data_plt_x86_64::add_local_ifunc_entry): Likewise.
(Output_data_plt_x86_64::address_for_global): Likewise.
(Output_data_plt_x86_64::address_for_local): Likewise.
(Output_data_plt_x86_64::set_final_data_size): Likewise.
(Output_data_plt_x86_64::first_plt_entry_offset): Likewise.
Make method non-static.
(Output_data_plt_x86_64::do_get_plt_entry_size): New abstract virtual
method.
(Output_data_plt_x86_64::get_plt_entry_size): Just call that.
(Output_data_plt_x86_64::do_add_eh_frame): New abstract virtual method.
(Output_data_plt_x86_64::add_eh_frame): New method to call it.
(Output_data_plt_x86_64::do_fill_first_plt_entry): New abstract
virtual method.
(Output_data_plt_x86_64::fill_first_plt_entry): New method to call it.
(Output_data_plt_x86_64::do_fill_plt_entry): New abstract
virtual method.
(Output_data_plt_x86_64::fill_plt_entry): New method to call it.
(Output_data_plt_x86_64::do_fill_tlsdesc_entry): New abstract
virtual method.
(Output_data_plt_x86_64::fill_tlsdesc_entry): New method to call it.
(Output_data_plt_x86_64::plt_entry_size)
(Output_data_plt_x86_64::first_plt_entry)
(Output_data_plt_x86_64::plt_entry)
(Output_data_plt_x86_64::tlsdesc_plt_entry)
(Output_data_plt_x86_64::plt_eh_frame_fde_size)
(Output_data_plt_x86_64::plt_eh_frame_fde): Move to ...
(Output_data_plt_x86_64_standard): ... here, new class.
(Target_x86_64::Target_x86_64): Take optional argument for the
Target_info pointer to use.
(Target_x86_64::do_make_data_plt): New virtual method.
(Target_x86_64::make_data_plt): New method to call it.
(Target_x86_64::init_got_plt_for_update): Use that.
Call this->plt_->add_eh_frame method here.
(Output_data_plt_x86_64::init): Don't do add_eh_frame_for_plt here.
(Target_x86_64::first_plt_entry_offset): Call method on this->plt_
rather than static method.
(Target_x86_64::plt_entry_size): Likewise.
(Output_data_plt_x86_64::do_write): Use get_plt_entry_size method
rather than plt_entry_size variable.  Move guts of PLT filling to...
(Output_data_plt_x86_64_standard::do_fill_first_plt_entry): ... here ...
(Output_data_plt_x86_64_standard::do_fill_plt_entry): ... and here ...
(Output_data_plt_x86_64_standard::do_fill_tlsdesc_entry): ... and here.

* i386.cc (Output_data_plt_i386::Output_data_plt_i386): Take
additional argument for the section alignment.
Don't do add_eh_frame_for_plt here.
(Output_data_plt_i386::first_plt_entry_offset): Make the method
non-static.  Use get_plt_entry_size method rather than plt_entry_size
variable.
(Output_data_plt_i386::do_get_plt_entry_size): New abstract virtual
method.
(Output_data_plt_i386::get_plt_entry_size): Call it.
(Output_data_plt_i386::do_add_eh_frame): New abstract virtual method.
(Output_data_plt_i386::add_eh_frame): New method to call it.
(Output_data_plt_i386::do_fill_first_plt_entry): New abstract virtual
method.
(Output_data_plt_i386::fill_first_plt_entry): New method to call it.
(Output_data_plt_i386::do_fill_plt_entry): New abstract virtual
method.
(Output_data_plt_i386::fill_plt_entry): New method to call it.
(Output_data_plt_i386::set_final_data_size): Use get_plt_entry_size
method instead of plt_entry_size.
(Output_data_plt_i386::plt_entry_size)
(Output_data_plt_i386::plt_eh_frame_fde_size)
(Output_data_plt_i386::plt_eh_frame_fde): Move to ...
(Output_data_plt_i386_standard): ... here, new class.
(Output_data_plt_i386_exec): New class.
(Output_data_plt_i386::exec_first_plt_entry): Move to ...
(Output_data_plt_i386_exec::first_plt_entry): ... here.
(Output_data_plt_i386::exec_plt_entry): Move to ...
(Output_data_plt_i386_exec::plt_entry): ... here.
(Output_data_plt_i386_dyn): New class.
(Output_data_plt_i386::first_plt_entry): Move to ...
(Output_data_plt_i386_dyn::first_plt_entry): ... here.
(Output_data_plt_i386::dyn_plt_entry): Move to ...
(Output_data_plt_i386_dyn::plt_entry): ... here.
(Target_i386::Target_i386): Take optional argument for the Target_info
pointer to use.
(Target_i386::do_make_data_plt): New virtual method.
(Target_i386::make_data_plt): New method to call it.
(Target_i386::make_plt_section): Use that.
Call this->plt_->add_eh_frame method here.
(Output_data_plt_i386::add_entry): Use get_plt_entry_size method
rather than plt_entry_size variable.
(Output_data_plt_i386::add_local_ifunc_entry): Likewise.
(Output_data_plt_i386::address_for_local): Likewise.
(Output_data_plt_i386::do_write): Likewise.
Move guts of PLT filling to...
(Output_data_plt_i386_exec::do_fill_first_plt_entry): ... here ...
(Output_data_plt_i386_exec::do_fill_plt_entry): ... and here ...
(Output_data_plt_i386_dyn::do_fill_first_plt_entry): ... and here ...
(Output_data_plt_i386_dyn::do_fill_plt_entry): ... and here.

Change-Id: Id24b95600489835ff5e860a39c147203d4380c2b

12 years agoReflect ChangeNotes -> DevNotes
Christopher Faylor [Wed, 2 May 2012 20:39:31 +0000 (20:39 +0000)]
Reflect ChangeNotes -> DevNotes

12 years agoinclude/
Cary Coutant [Wed, 2 May 2012 18:33:43 +0000 (18:33 +0000)]
include/

* dwarf2.def: Remove DW_FORM_GNU_ref_index,
replace DW_AT_GNU_ref_base with DW_AT_GNU_ranges_base.

12 years ago.
Christopher Faylor [Wed, 2 May 2012 16:48:13 +0000 (16:48 +0000)]
.

12 years ago* ChangeNotes: New file. Add entry cgf-000001.
Christopher Faylor [Wed, 2 May 2012 16:39:39 +0000 (16:39 +0000)]
* ChangeNotes: New file.  Add entry cgf-000001.
* sigproc.cc (proc_terminate): Don't set parent pid of child to 1 if we've
execed since the execed process is still considered the parent.
* child_info.h: Bump copyright.

12 years ago * arm/redboot-crt0.S (__change_mode): Replace mov with movs.
Corinna Vinschen [Wed, 2 May 2012 08:09:45 +0000 (08:09 +0000)]
* arm/redboot-crt0.S (__change_mode): Replace mov with movs.

12 years ago * fenv.cc (fesetround): Fix test for valid input parameter.
Corinna Vinschen [Wed, 2 May 2012 07:42:08 +0000 (07:42 +0000)]
* fenv.cc (fesetround): Fix test for valid input parameter.
(fesetprec): Ditto.

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