Nathanael Nerode
00c4e53eac
2002-10-01 Nathanael Nerode <neroden@gcc.gnu.org>
...
* configure: Finish reverting change which Andrew Cagney started
reverting. Should fix bustage.
2002-10-01 23:21:51 +00:00
Nathanael Nerode
24197bb62b
2002-10-01 Nathanael Nerode <neroden@gcc.gnu.org>
...
* src-release (BINUTILS_SUPPORT_DIRS): Add cpu directory.
2002-10-01 22:58:14 +00:00
Nathanael Nerode
cd2d319d31
2002-10-01 Nathanael Nerode <neroden@gcc.gnu.org>
...
* src-release: New file. Contains material for making net
releases for gdb, binutils, et al., formerly in Makefile.in.
2002-10-01 22:34:16 +00:00
Robert Collins
404f35cb5c
2002-10-01 Robert Collins <rbtcollins@hotmail.com>
...
* thread.cc (pthread_key::keys): Copy on fork. Add a comment explaining
why.
(pthreadNull::_instance): Copy on fork. Absolutely no state exists
in pthreadNull.
2002-09-30 21:06:05 +00:00
Conrad Scott
18be975d30
* cygserver_transport_pipes.cc (transport_layer_pipes::accept):
...
Remove trailing \n from debug_printf.
2002-09-30 18:31:56 +00:00
Christopher Faylor
6cae97d5dc
whitespace
2002-09-30 15:17:44 +00:00
Christopher Faylor
66dca8bb0d
* thread.cc (pthread_mutex::initMutex): Remove \n from api_fatal.
2002-09-30 15:11:55 +00:00
Christopher Faylor
bd2b5664a1
* thread.cc (pthread::precreate): Use explicit "no inherit" option when
...
creating mutex.
(pthread_mutex::nativeMutex::init): Ditto.
(semaphore::semaphore): Ditto.
2002-09-30 15:05:00 +00:00
Christopher Faylor
e58273df45
* thread.cc (pthread_key::keys): Do not copy on fork.
...
(pthread_mutex::mutexInitializationLock): Ditto.
(pthreadNull::_instance): Ditto.
2002-09-30 15:00:52 +00:00
Christopher Faylor
63e5f2006d
* exceptions.cc (unused_sig_wrapper): Still need additional level of
...
indirection when setting errno.
2002-09-30 14:18:43 +00:00
Richard Sandiford
00a8c44a5b
Fix date in last commit.
2002-09-30 12:08:05 +00:00
Richard Sandiford
bf42f57df6
[include/opcode/]
...
* mips.h: Update comment for new opcodes.
(OP_MASK_VECBYTE, OP_SH_VECBYTE): New.
(OP_MASK_VECALIGN, OP_SH_VECALIGN): New.
(INSN_4111, INSN_4120, INSN_5400, INSN_5500): New.
(CPU_VR4120, CPU_VR5400, CPU_VR5500): New.
(OPCODE_IS_MEMBER): Handle the new CPU_* values and INSN_* flags.
Don't match CPU_R4111 with INSN_4100.
[opcodes/]
* mips-dis.c (print_insn_arg): Handle '[', ']', 'e' and '%'.
(mips_isa_type): Handle bfd_mach_mips4120, bfd_mach_mips5400
and bfd_mach_mips5500.
* mips-opc.c (V1): Include INSN_4111 and INSN_4120.
(N411, N412, N5, N54, N55): New convenience defines.
(mips_builtin_opcodes): Add vr4120, vr5400 and vr5500 opcodes.
Change dmadd16 and madd16 from V1 to N411.
2002-09-30 11:58:09 +00:00
Richard Sandiford
3342a2e928
[include/elf]
...
* mips.h (E_MIPS_MACH_4120, E_MIPS_MACH_5400, E_MIPS_MACH_5500): New.
[bfd/]
* archures.c (bfd_mach_mips4120, bfd_mach_mips5400): New.
(bfd_mach_mips5500): New.
* cpu-mips.c (I_mips4120, I_mips5400, I_mips5500): New.
(arch_info_struct): Add corresponding entries here.
* elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_4120,
E_MIPS_MACH_5400 and E_MIPS_MACH_5500.
(_bfd_mips_elf_final_write_processing): Handle bfd_mach_mips4120,
bfd_mach_mips5400 and bfd_mach_mips5500.
(_bfd_mips_elf_mach_extends_p): New function.
(_bfd_mips_elf_merge_private_bfd_data): Use it to help merge
the EF_MIPS_MACH flags.
* bfd-in2.h: Regenerate.
2002-09-30 11:53:55 +00:00
Robert Collins
06175d0acd
2002-09-30 Robert Collins <rbtcollins@hotmail.com>
...
* thread.cc (pthread_mutex::initMutex): Use the wrapper init call.
(pthread_mutex::nativeMutex::init): Implement.
(pthread_mutex::nativeMutex::lock): Ditto.
(pthread_mutex::nativeMutex::unlock): Ditto.
(pthread_mutex::init): Use the wrapper lock and unlockcalls.
* thread.h (pthread_mutex): Move mutexInitializationLock into a
nativeMutex wrapper class.
2002-09-30 11:43:43 +00:00
Nick Clifton
1f3e9931a5
Add cpu directory.
2002-09-30 10:34:06 +00:00
Christopher Faylor
f70389b541
Remove \n from calls to strace class printfs throughout.
2002-09-30 04:35:18 +00:00
Christopher Faylor
da77b2c84c
remove newline
2002-09-30 04:27:32 +00:00
Christopher Faylor
e7733defb9
* exceptions.cc (unused_sig_wrapper): Accommodate newer compilers.
2002-09-30 04:26:52 +00:00
Christopher Faylor
f789fbbf35
* security.cc (allow_ntsec): Default to zero.
...
* environ.cc (environ_init): Set allow_ntsec to TRUE by default, assuming OS
allows it.
2002-09-30 03:05:13 +00:00
Christopher Faylor
0fa64fa3a7
* cygpath.cc (close_arg): Remove unused static.
...
* mkgroup.c (enum_local_users): Avoid compiler warning.
(enum_users): Ditto.
* mkpasswd.c: Ditto throughout.
* ssp.c: Ditto throughout.
2002-09-30 03:01:17 +00:00
Christopher Faylor
9d1e72a175
* environ.cc (environ_init): Avoid a compiler warning.
...
* path.cc (path_conv::check): Ditto.
* path.h (path_conv::operator int): Ditto.
* regex/engine.c: Ditto throughout.
* regex/regcomp.c: Ditto throughout.
* regex/regexec.c: Ditto throughout.
2002-09-30 02:51:22 +00:00
Christopher Faylor
79ed43004f
* thread.cc: Use "%E" in *_printf throughout rather than calling GetLastError.
...
GNUify comments.
(__pthread_mutex_lock): Don't return error on EBUSY since that just means that
the mutex has already been initialized.
2002-09-30 01:19:45 +00:00
Christopher Faylor
881ffcb478
GNUify slightly.
2002-09-29 23:56:57 +00:00
Robert Collins
eb208df05a
2002-09-30 Robert Collins <rbtcollins@hotmail.com>
...
* pthread.cc (pthread_mutex_init): Use new pthread_mutex::init.
* thread.cc: Change __pthread_mutex_init to pthread_mutex::init
throughout.
(MTinterface::Init): Initialise pthread_mutex support.
(pthread_mutex::mutexInitializationLock): Instantiate.
(pthread_mutex::initMutex): New method.
(__pthread_cond_dowait): Don't dereference untrusted pointers.
Use the new pthread_mutex::init method.
(__pthread_condattr_init): Don't dereference untrusted pointers.
(__pthread_mutex_init): Rename to pthread_mutex::init.
Lock and release mutexInitializationLock to prevent races on
mutex initialisation.
* thread.h (pthread_mutex::initMutex): New method, initialise
pthread_mutex supporting state on process initialisation.
(pthread_mutex::init): Initialise a single mutex.
(pthread_mutex::mutexInitializationLock): A win32 mutex for
syncronising pthread mutex initialisation.
(__pthread_mutex_init): Remove this.
2002-09-29 23:47:45 +00:00
Andrew Cagney
b2c3ba8ad0
2002-09-29 Andrew Cagney <ac131313@redhat.com>
...
Revert below (note that src does not contain Makefile.tpl):
* Makefile.tpl: Make subsituted variables more autoconfy.
* Makefile.in: Regenerate.
2002-09-29 17:19:28 +00:00
Nathanael Nerode
8d3e62651e
2002-09-29 Nathanael Nerode <neroden@gcc.gnu.org>
...
* configure: Revert accidentally applied changes.
2002-09-29 16:12:36 +00:00
Nathanael Nerode
1a575bb3c8
2002-09-29 Nathanael Nerode <neroden@gcc.gnu.org>
...
* Makefile.tpl: Make more autoconf-friendly.
* Makefile.in: Regenerate.
* configure: Make substitution more autoconf-like.
2002-09-28 Richard Earnshaw <rearnsha@arm.com>
* configure.in (arm-*-coff, strongarm-*-coff, xscale-*-coff): Use a
single entry to handle all these.
(arm-*-elf, strongarm-*-elf, xscale-*-elf): Likewise. Also enable
libjava on arm-*-elf.
2002-09-29 15:59:34 +00:00
Christopher Faylor
4d8eba164f
Add missing ChangeLog entry.
2002-09-29 03:15:55 +00:00
Christopher Faylor
aea1f301fc
* cygthread.h (cygthread::terminate): Declare new function.
...
(cygthread::initialized): Change to 'int'.
* cygthread.cc (cygthread::stub): Exit thread if initialized < 0.
(cygthread::new): Ditto.
(cygthread::runner): Ditto. Set initialized using xor to preserve sign.
(cygthread::terminate): New function.
* dcrt0.cc (do_exit): Call cygthread::terminate.
2002-09-29 02:19:35 +00:00
Christopher Faylor
fc5dae1cca
* Makefile.in (check): Be more defensive when creating testsuite config.status.
2002-09-28 03:15:44 +00:00
Geoffrey Keating
4c67ff152d
* configure.in (powerpc-*-darwin*): Don't configure BFD, TK, or the
...
things that depend on them.
2002-09-28 01:44:34 +00:00
Jim Wilson
59a758bd31
The v850 does not have a ctbp register.
...
Add myself to write-after-approval section of MAINTAINERS file.
* libc/sys/sysnecv850/crt0.S (start): Delete v850 code for initializing
the ctbp register.
2002-09-27 20:26:00 +00:00
Jeff Johnston
1ed3c86dd7
2002-09-27 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/ctype/jp2uc.c: Change to use multiple arrays in jp2uc.h.
Also convert to EUCJP before using arrays. For values not in
the conversion arrays, return WEOF.
* libc/ctype/jp2uc.h: Change from one array to a number of
arrays to account for the fact that the originating table
is not contiguous for the input values since some are invalid.
2002-09-27 20:17:52 +00:00
Jakub Jelinek
8921a7a7a3
bfd/
...
* reloc.c: Add x86-64 TLS relocs.
* bfd-in2.h, libbfd.h: Rebuilt.
* elf64-x86-64.c (x86_64_elf_howto): Fix size fields for 32-bit
relocs. Add TLS relocs.
(x86_64_reloc_map): Add TLS relocs.
(elf64_x86_64_info_to_howto): Adjust for added TLS relocs.
(struct elf64_x86_64_link_hash_entry): Add tls_type field.
(GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD, GOT_TLS_IE): Define.
(elf64_x86_64_hash_entry): Define.
(struct elf64_x86_64_obj_tdata): New.
(elf64_x86_64_tdata, elf64_x86_64_local_got_tls_type): Define.
(struct elf64_x86_64_link_hash_table): Add tls_ld_got.
(link_hash_newfunc): Initialize tls_type.
(elf64_x86_64_link_hash_table_create): Initialize tls_ld_got.
(elf64_x86_64_copy_indirect_symbol): Swap tls_type if necessary.
(elf64_x86_64_mkobject): New.
(elf64_x86_64_elf_object_p): Allocate struct elf64_x86_64_obj_tdata.
(elf64_x86_64_tls_transition): New.
(elf64_x86_64_check_relocs): Add r_type variable and use it.
Handle TLS relocs.
(elf64_x86_64_gc_sweep_hook): Handle TLS relocs.
(allocate_dynrelocs): Allocate GOT space for TLS relocs.
(elf64_x86_64_size_dynamic_sections): Likewise.
(dtpoff_base, tpoff): New.
(elf64_x86_64_relocate_section): Handle TLS relocs.
(elf64_x86_64_finish_dynamic_symbol): Only handle non-TLS GOT
entries.
(bfd_elf64_mkobject): Define.
* elf32-i386.c (elf_i386_check_relocs) [R_386_TLS_LE]: Set
DF_STATIC_TLS if shared.
gas/
* config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
Define them if not BFD_ASSEMBLER.
(lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
@tlsld.
(md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
(tc_gen_reloc): Handle x86-64 TLS relocs.
include/
* elf/x86-64.h: Add TLS relocs.
ld/testsuite/
* lib/ld-lib.exp (run_ld_link_tests): Add.
* ld-sh/sh64/sh64.exp (run_ld_link_tests, regexp_diff,
file_contents): Remove.
(sh64tests): Add 6th field to the tests array.
* ld-i386/i386.exp (run_ld_link_tests): Remove.
* ld-x86-64/x86-64.exp: New.
* ld-x86-64/tlsbin.dd: New test.
* ld-x86-64/tlsbinpic.s: New test.
* ld-x86-64/tlsbin.rd: New test.
* ld-x86-64/tlsbin.s: New test.
* ld-x86-64/tlsbin.sd: New test.
* ld-x86-64/tlsbin.td: New test.
* ld-x86-64/tlslib.s: New test.
* ld-x86-64/tlspic1.s: New test.
* ld-x86-64/tlspic2.s: New test.
* ld-x86-64/tlspic.dd: New test.
* ld-x86-64/tlspic.rd: New test.
* ld-x86-64/tlspic.sd: New test.
* ld-x86-64/tlspic.td: New test.
2002-09-27 19:29:16 +00:00
Robert Collins
da6a08decb
2002-09-27 Robert Collins <rbtcollins@hotmail.com>
...
* thread.cc (pthread_key::run_destructor): Run_destructor is not
const as it needs to set the key value.
* thread.h (pthread_key::run_destructor): Ditto.
2002-09-27 Robert Collins <rbtcollins@hotmail.com>
* thread.cc (pthread_key::run_destructor): Follow opengroup algorithm.
I.e. only run the destructor NON-NULL key values, and reset the key
to NULL before running the destructor. Reported by Thomas Pfaff.
2002-09-27 15:08:50 +00:00
Andrew Cagney
39bd4d5016
2002-09-26 Andrew Cagney <ac131313@redhat.com>
...
* regs/: Delete directory.
2002-09-26 19:40:29 +00:00
Nathanael Nerode
1ae955baac
2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
...
* Makefile.tpl: Make subsituted variables more autoconfy.
* Makefile.in: Regenerate.
* configure: Make seds more autoconfy.
2002-09-26 04:25:16 +00:00
Nathanael Nerode
426ce14a22
2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
...
* Makefile.tpl: Rewrite substituted lines to look autoconfy.
* Makefile.in: Regenerate.
* configure.in: Rewrite sed statements to look autoconfy.
2002-09-25 17:25:27 +00:00
Nathanael Nerode
862fb4455b
Really rebuild it this time. :sigh:
2002-09-25 16:56:04 +00:00
Nathanael Nerode
00f56d7b36
2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
...
* Makefile.tpl: Autogenerate *-target-* lists, dependencies of
all-target-foo on configure-target-foo.
* Makefile.def: Ditto.
* Makefile.in: Rebuild.
2002-09-25 16:53:08 +00:00
Christopher Faylor
961973e7a4
* cygrun.c (main): Fix setting of CYGWIN environment variable.
...
* Makefile.in: Remove linking of unnecessary libraries.
2002-09-25 13:53:46 +00:00
Christopher Faylor
38c77307c5
* fhandler_proc.cc (format_process_stat): make ctty a real device number.
...
(format_process_status): use effective uid/gid as real and saved uid/gid.
2002-09-25 12:24:23 +00:00
Nathanael Nerode
bba0272654
2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
...
* Makefile.def: New file.
* Makefile.tpl: New file.
* Makefile.in: Generate from Makefile.tpl with 'autogen Makefile.def'.
* configure.in: Minor rearrangement. Simplify tests.
2002-09-24 23:01:30 +00:00
Jeff Johnston
6e1dfd2d96
2002-09-24 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/time/ctime.c: Fix prototype documentation.
2002-09-24 21:26:45 +00:00
Corinna Vinschen
f4b098d95e
* errno.cc (errmap): Map ERROR_INVALID_ADDRESS to new errno code
...
EOVERFLOW.
(_sys_errlist): Add entries for EILSEQ and EOVERFLOW.
(strerror): Ditto.
* mmap.cc (map_map): Set errno in case of error.
(mmap64): Remove setting errno explicitely to ENOMEM.
2002-09-24 14:17:50 +00:00
Corinna Vinschen
06f1353ae8
* libc/include/sys/errno.h: Add EOVERFLOW.
2002-09-24 14:10:12 +00:00
Corinna Vinschen
6b579509ea
* mmap.cc (map_map): Add debug output.
...
(mmap64): Evaluate gran_len correctly even if offset isn't 0.
2002-09-24 13:48:07 +00:00
Danny Smith
1878ede072
* include/ws2tcpip.h: Throw error if winsock.h, not winsock2.h
...
has been included first.
2002-09-24 01:47:27 +00:00
Danny Smith
7aaee7b646
2002-09-24 Rene Moeller Fonseca <fonseca@users.sourceforge.net>
...
* include/winbase.h (FindFirstFileEx): Fixed ANSI mode.
* include/wingdi.h (PFD_SWAP_LAYER_BUFFERS):Added define.
* include/winuser.h (AppendMenu[AW]): Fixed prototypes.
2002-09-24 01:28:00 +00:00
Jason Thorpe
b14dad687d
* configure.in (with_headers): Skip copy if value is "yes".
...
(with_libs): Likewise.
2002-09-23 23:36:54 +00:00