Peter Bergner
bc089f5083
include/opcode/
...
* ppc.h (ppc_cpu_t): New typedef.
(struct powerpc_opcode <flags>): Use it.
(struct powerpc_operand <insert, extract>): Likewise.
(struct powerpc_macro <flags>): Likewise.
gas/
* config/tc-ppc.c (ppc_cpu): Use ppc_cpu_t typedef.
(ppc_insert_operand): Likewise.
(ppc_machine): Likewise.
* config/tc-ppc.h: #include "opcode/ppc.h"
(struct _ppc_fix_extra <ppc_cpu>): Use ppc_cpu_t typedef.
(ppc_cpu): Update extern decl.
opcodes/
* ppc-dis.c (print_insn_powerpc): Update prototye to use new
ppc_cpu_t typedef.
(struct dis_private): New.
(POWERPC_DIALECT): New define.
(powerpc_dialect): Renamed to...
(powerpc_init_dialect): This. Update to use ppc_cpu_t and
struct dis_private.
(print_insn_big_powerpc): Update for using structure in
info->private_data.
(print_insn_little_powerpc): Likewise.
(operand_value_powerpc): Change type of dialect param to ppc_cpu_t.
(skip_optional_operands): Likewise.
(print_insn_powerpc): Likewise. Remove initialization of dialect.
* ppc-opc.c (extract_bat, extract_bba, extract_bdm, extract_bdp,
extract_bo, extract_boe, extract_fxm, extract_mb6, extract_mbe,
extract_nb, extract_nsi, extract_rbs, extract_sh6, extract_spr,
extract_sprg, extract_tbr insert_bat, insert_bba, insert_bdm,
insert_bdp, insert_bo, insert_boe, insert_fxm, insert_mb6, insert_mbe,
insert_nsi, insert_ral, insert_ram, insert_raq, insert_ras, insert_rbs,
insert_sh6, insert_spr, insert_sprg, insert_tbr): Change the dialect
param to be of type ppc_cpu_t. Update prototype.
2008-06-13 20:16:00 +00:00
Corinna Vinschen
0730461203
* mount.cc (mount_info::get_cygdrive_info): Fix usage of user and
...
system arguments. Strip trailing slash from path for backward
compatibility.
2008-06-13 15:22:59 +00:00
Julian Brown
d4ab21b1cc
* configure.ac (arm*-*-linux-gnueabi): Don't disable building
...
of libobjc for ARM EABI Linux.
* configure: Regenerate.
2008-06-13 13:05:13 +00:00
Nick Clifton
dc70030aba
* mips.h: Document new field descriptors +Q.
...
(OP_SH_SEQI, OP_MASK_SEQI): New bit mask and shift count for SEQI.
opcodes/
* mips-dis.c (print_insn_args): Handle field descriptor +Q.
* mips-opc.c (mips_builtin_opcodes): Add Octeon instructions seq,
seqi, sne and snei.
gas/
* config/tc-mips.c (validate_mips_insn): Handle field descriptor +Q.
(mips_ip): Likewise.
(macro_build): Likewise.
(CPU_HAS_SEQ): New macro.
(macro2) <M_SEQ_I, M_SNE_I>: Use it. Emit seq/sne and seqi/snei.
gas/testsuite/
* gas/mips/octeon.s, gas/mips/octeon.d: Add tests for seq* and sne*.
* gas/mips/octeon-ill.s, gas/mips/octeon-ill.s: Add tests for seqi
and snei.
2008-06-12 21:44:53 +00:00
DJ Delorie
637fe5e44f
* common.h (EM_M32C_NEW): Rename to EM_M32C.
...
(EM_M32C): Rename to EM_M32C_OLD.
* elf32-m32c.c (ELF_MACHINE_ALT1): Define as EM_M32C_OLD.
* readelf.c (guess_is_rela): Add EM_M32C_OLD.
(dump_relocations): Likewise.
(process_section_headers): Likewise.
(is_32bit_abs_reloc): Likewise.
(is_16bit_abs_reloc): Likewise.
2008-06-12 19:49:47 +00:00
David Edelsohn
4a386f084a
2008-06-12 David S. Miller <davem@davemloft.net>
...
David Edelsohn <edelsohn@gnu.org>
* configure.ac: Add powerpc*-*-* to gold supported targets.
* configure: Regenerate.
2008-06-12 17:07:34 +00:00
Nick Clifton
d73fd47d38
include/opcode/
...
* mips.h: Document new field descriptors +x, +X, +p, +P, +s, +S.
Update comment before MIPS16 field descriptors to mention MIPS16.
(OP_SH_BBITIND, OP_MASK_BBITIND): New bit mask and shift count for
BBIT.
(OP_SH_CINSPOS, OP_MASK_CINSPOS, OP_SH_CINSLM1, OP_MASK_CINSLM1):
New bit masks and shift counts for cins and exts.
gas/
* config/tc-mips.c (validate_mips_insn): Handle field descriptors
+x, +X, +p, +P, +s, +S.
(mips_ip): Likewise.
opcodes/
* mips-dis.c (print_insn_args): Handle field descriptors +x, +p,
+s, +S.
* mips-opc.c (mips_builtin_opcodes): Add Octeon instructions
baddu, bbit*, cins*, dmul, pop, dpop, exts*, mtm*, mtp*, syncs,
syncw, syncws, vm3mulu, vm0 and vmulu.
gas/testsuite/
* gas/mips/octeon.s, gas/mips/octeon.d: Add tests for baddu,
bbit*, cins*, dmul, pop, dpop, exts*, mtm*, mtp*, syncs, syncw,
syncws, vm3mulu, vm0 and vmulu.
* gas/mips/octeon-ill.s, gas/mips/octeon-ill.s: New test.
* gas/mips/mips.exp: Run it. Run octeon test with
run_dump_test_arches.
2008-06-12 16:14:52 +00:00
Corinna Vinschen
9cdaf8733f
* fhandler.h (set_console_state_for_spawn): Drop declaration.
...
* fhandler_console.cc (set_console_state_for_spawn): Remove.
(fhandler_console::open): Set console state last. Don't set
ENABLE_PROCESSED_INPUT flag.
* spawn.cc (spawn_guts): Drop call to set_console_state_for_spawn.
2008-06-12 15:57:23 +00:00
Christopher Faylor
a7e0bc7bbe
remove obsolete comment
2008-06-12 14:55:08 +00:00
Joseph Myers
345be70ea2
* common.h: Update e_machine table.
2008-06-12 12:44:01 +00:00
Jeff Johnston
2b4c1b417f
2008-06-11 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/machine/_default_types.h: Fix GNUC check to
handle 4.0 and greater.
2008-06-11 22:14:54 +00:00
Corinna Vinschen
24790b9cdb
* path.cc (get_nt_native_path): Drop considerations for DOS devices.
...
Keep relative paths relative.
(cygwin_conv_path): Don't try to skip native NT prefixes on relative
paths.
2008-06-11 14:06:05 +00:00
Corinna Vinschen
abe2834a49
* include/cygwin/version.h (CYGWIN_VERSION_MOUNT_REGISTRY): Bump.
...
(CYGWIN_INFO_CYGWIN_MOUNT_REGISTRY_NAME): Remove.
(CYGWIN_INFO_CYGDRIVE_FLAGS): Remove.
(CYGWIN_INFO_CYGDRIVE_PREFIX): Remove.
(CYGWIN_INFO_CYGDRIVE_DEFAULT_PREFIX): Add comment to differ from the
registry related defines.
2008-06-11 09:43:59 +00:00
Corinna Vinschen
373a7e22e2
* fhandler_procnet.cc (dad_to_flags): Fix comment.
2008-06-11 08:38:39 +00:00
Corinna Vinschen
c9227bf8a7
* fhandler_procnet.cc (get_scope): New static function to evaluate
...
scope.
(dad_to_flags): New static array to convert Windows DAD state to
Linux values.
(format_procnet_ifinet6): Drop asking for IfIndex, just use Ipv6IfIndex.
Use get_scope and dad_to_flags to generate more accurate linux-like
output.
2008-06-10 19:58:58 +00:00
Corinna Vinschen
bbfcc68ad2
* net.cc (if_nametoindex): Fix typo in call to get_adapters_addresses.
...
(if_indextoname): Prefer IPv6 loopback device name over IPv4 loopback
device name on pre-Vista systems.
(if_nameindex): Ditto.
2008-06-10 18:15:57 +00:00
Corinna Vinschen
7a2c0a0d6b
* fhandler_procnet.cc (format_procnet_ifinet6): Use sprintf rather than
...
__small_sprintf.
* net.cc (if_nametoindex): Prefer IPv6IfIndex over IfIndex for
consistency with /proc/net/if_inet6.
(if_indextoname): Ditto.
(if_nameindex): Ditto.
2008-06-10 17:24:00 +00:00
Corinna Vinschen
58014a9b46
* mount.cc (mount_info::from_fstab): Read sizeof (buf) - 2 bytes.
...
Add code to handle overly long lines.
2008-06-10 17:17:44 +00:00
Corinna Vinschen
93e9098f7c
* sec_auth.cc (lsaauth): Make returned token inheritable.
2008-06-10 15:16:01 +00:00
Corinna Vinschen
be5937cd97
* devices.cc: Regenerate.
2008-06-10 14:48:24 +00:00
Jeff Johnston
a0496b5e4f
2008-06-09 Ken Werner <ken.werner@de.ibm.com>
...
* libc/machine/spu/Makefile.am: Add new files.
* libc/machine/spu/Makefile.in: Likewise.
* libc/machine/spu/include/spu_timer.h: New file to add timer support
using interrupts.
* libc/machine/spu/spu_clock_stop.c: Likewise.
* libc/machine/spu/spu_clock_svcs.c: Likewise.
* libc/machine/spu/spu_timer_flih.S: Likewise.
* libc/machine/spu/spu_timer_free.c: Likewise.
* libc/machine/spu/spu_timer_internal.h: Likewise.
* libc/machine/spu/spu_timer_slih.c: Likewise.
* libc/machine/spu/spu_timer_slih_reg.c: Likewise.
* libc/machine/spu/spu_timer_stop.c: Likewise.
* libc/machine/spu/spu_timer_svcs.c: Likewise.
2008-06-10 02:13:22 +00:00
Kaz Kojima
27a07c4596
* sh.h (EF_SH_BFD_TABLE): Set bfd_mach_sh for EF_SH_UNKNOWN.
2008-06-09 22:20:46 +00:00
Jeff Johnston
3da06ba822
2008-06-09 Ken Werner <ken.werner@de.ibm.com>
...
* libc/machine/spu/strcat.c: Return value fixed.
* libc/machine/spu/strncat.c: Likewise.
2008-06-09 17:26:30 +00:00
Joseph Myers
f4b8818426
* common.h: Change registry@caldera.com to registry@sco.com.
2008-06-09 14:07:18 +00:00
Christopher Faylor
0498e171a5
* devices.in: Remove "Global" from tty device.
2008-06-09 14:01:40 +00:00
Christopher Faylor
c230ba2a1c
* signal.cc (abort): Only flush streams after signal handler.
2008-06-09 13:45:59 +00:00
Joseph Myers
7d6b567a4f
* Makefile.def (flags_to_pass): Add LDFLAGS_FOR_BUILD.
...
* Makefile.tpl (EXTRA_BUILD_FLAGS): Define.
(all prefix="build-"): Pass them to build-system sub-makes.
* Makefile.in: Regenerate.
config:
* config/mh-mingw (LDFLAGS): Define.
2008-06-08 16:19:22 +00:00
Alan Modra
0345ae5042
include/
...
* bfdlink.h (struct bfd_link_info): Add "path_separator".
bfd/
* elf32-spu.c (spu_elf_auto_overlay): Relax requirement that
file names be unique. Specify archive:path in overlay script.
ld/
* ldlang.c (name_match): New function.
(unique_section_p, walk_wild_consider_section): Use it here.
(walk_wild_section_general): And here.
(archive_path): New function.
(walk_wild): Match archive:path filespecs.
(open_input_bfds): Don't load archive:path files.
* emultempl/spuelf.em (choose_target): Set path_separator.
* emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output.
2008-06-06 06:01:53 +00:00
Danny Smith
f769e691e7
PR driver/35916
...
* mh-mingw (CFLAGS): Add -D__USE_MINGW_ACCESS.
2008-06-06 02:32:32 +00:00
Keith Marshall
47140f3cdb
Avoid precision errors in round(), lround() and llround() functions.
2008-06-03 18:42:21 +00:00
Christopher Faylor
585cd03044
* cygwin.sc: Remove unrequired and erroneous definition.
2008-06-03 02:22:36 +00:00
Christopher Faylor
11a36faaa6
* select.cc (peek_pipe): Semi-reinstate pipe NT-special write detection.
2008-05-30 17:56:37 +00:00
Christopher Faylor
4f3af63913
add missing entry
2008-05-29 17:09:10 +00:00
Christopher Faylor
2bae7a19e4
* devices.in: Change mapping for /dev/ttyS* and /dev/com*.
2008-05-29 17:08:45 +00:00
Chris Sutcliffe
3589c421a9
2008-05-28 Chris Sutcliffe <ir0nh34d@users.sf.net>
...
* include/commctrl.h (NMLVODSTATECHANGE): Define.
Thanks to Tim Kosse <botg at users dot sf dot net>.
2008-05-29 01:39:52 +00:00
Chris Sutcliffe
35d597a593
2008-05-28 Chris Sutcliffe <ir0nh34d@users.sf.net>
...
* include/winnt.h (SUBLANG_TIBETAN_BHUTAN): Fix definition.
Thanks to Nicola Di Nisio <nicoladinisio at users dot sf dot net>.
2008-05-29 01:26:45 +00:00
Eric Blake
2dd1fb6ff5
Fix bug in previous patch.
...
* libc/machine/i386/memset.S (memset): Mask second arg correctly.
2008-05-28 14:00:39 +00:00
Jeff Johnston
676ae29038
2008-05-27 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/string/memset.c: Fix documented prototype to remove
erroneous const attribute on first parameter.
2008-05-27 18:44:40 +00:00
Jeff Johnston
70bff2d503
2008-05-26 Eric Blake <ebb9@byu.net>
...
Optimize the generic and x86 memchr.
* libc/string/memchr.c (memchr) [!__OPTIMIZE_SIZE__]:
Pre-align pointer so unaligned searches aren't penalized.
* libc/machine/i386/memchr.S (memchr) [!__OPTIMIZE_SIZE__]: Word
operations are faster than repnz byte searches.
2008-05-26 23:31:08 +00:00
Jeff Johnston
a6bd72a278
2008-05-26 Eric Blake <ebb9@byu.net>
...
Optimize the generic and x86 memset.
* libc/string/memset.c (memset) [!__OPTIMIZE_SIZE__]:
Pre-align pointer so unaligned stores aren't penalized.
* libc/machine/i386/memset.S (memset): [!__OPTIMIZE_SIZE__]:
Pre-align pointer so unaligned stores aren't penalized. Prefer
8-byte over 4-byte alignment. Reduce register pressure.
2008-05-26 23:23:15 +00:00
Jeff Johnston
cae28869c1
2008-05-26 Eric Blake <ebb9@byu.net>
...
Optimize the generic and x86 strlen.
* libc/string/strlen.c (strlen) [!__OPTIMIZE_SIZE__]: Pre-align
data so unaligned searches aren't penalized.
* libc/machine/i386/strlen.S (strlen) [!__OPTIMIZE_SIZE__]:
Word operations are faster than repnz byte searches.
2008-05-26 22:56:14 +00:00
Christopher Faylor
12cf19762d
* mount.cc (mount_info::from_fstab): Use proper buffer size.
2008-05-25 23:51:32 +00:00
Christopher Faylor
f524521aab
* mount.cc (mount_info::init): Revert previous change.
...
(mount_info::from_fstab): Change system_printf to debug_printf. Just use a
local NT_MAX_PATH sized temporary buffer.
2008-05-24 15:59:01 +00:00
Corinna Vinschen
0fd62c686d
* mount.cc (mount_info::init): Recreate path when trying to read the
...
user fstab file.
2008-05-24 10:07:49 +00:00
Corinna Vinschen
362ce9fa99
* path.cc (symlink_info::check): Reorder test for nfs symlinks.
2008-05-24 09:54:32 +00:00
Corinna Vinschen
6afd630106
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Don't try to
...
use FileIdBothDirectoryInformation on NFS shares. Fix comment to
explain why.
* path.cc (symlink_info::check): Reinstantiate no_ea. Use in
erroneously changed condition.
2008-05-23 17:22:18 +00:00
Christopher Faylor
e765b3c0ad
* mount.cc (find_root_from_cygwin_dll): New function factored from from_fstab.
...
Avoid use of tls since it isn't necessarily initialized when cygwin1.dll is
dynamically loaded.
(mount_info::create_root_entry): Ditto.
(mount_info::init): Calculate cygwin root once. Use create_root_entry to
record it. Pass fstab location to from_fstab.
(mount_info::from_fstab): Move root calculation stuff elsewhere, as per above.
* shared_info.h (mount_info::from_fstab_line): Make private.
(mount_info::fstab): Ditto. Accommodate new arguments.
2008-05-23 16:38:51 +00:00
Christopher Faylor
7cd4542873
* mount.cc (mount_info::from_fstab): Use cygwin_hmodule rather than trying to
...
find handle based on cygwin1.dll.
* path.cc (symlink_info::check): Remove unused variable.
2008-05-23 15:33:03 +00:00
Corinna Vinschen
1fc3031588
* libc/include/sys/_default_fcntl.h: Include <sys/time.h> on Cygwin.
2008-05-23 12:33:50 +00:00
Corinna Vinschen
7075440208
* shared.cc (open_shared): Fix comments. Fix a condition which has
...
been overlooked to revert to its old state in change from 2008-04-18.
2008-05-23 11:59:37 +00:00