Jeff Johnston
ff20d12a66
2006-02-24 Paul Brook <paul@codesourcery.com>
...
* arm/redboot-crt0.S: Use cps in Thumb-2 mode.
2006-02-24 20:43:19 +00:00
Paul Brook
70b232636f
2006-02-24 Paul Brook <paul@codesourcery.com>
...
gas/
* config/arm/tc-arm.c (arm_ext_v6_notm, arm_ext_div, arm_ext_v7,
arm_ext_v7a, arm_ext_v7r, arm_ext_v7m): New variables.
(struct asm_barrier_opt): Define.
(arm_v7m_psr_hsh, arm_barrier_opt_hsh): New variables.
(parse_psr): Accept V7M psr names.
(parse_barrier): New function.
(enum operand_parse_code): Add OP_oBARRIER.
(parse_operands): Implement OP_oBARRIER.
(do_barrier): New function.
(do_dbg, do_pli, do_t_barrier, do_t_dbg, do_t_div): New functions.
(do_t_cpsi): Add V7M restrictions.
(do_t_mrs, do_t_msr): Validate V7M variants.
(md_assemble): Check for NULL variants.
(v7m_psrs, barrier_opt_names): New tables.
(insns): Add V7 instructions. Mark V6 instructions absent from V7M.
(md_begin): Initialize arm_v7m_psr_hsh and arm_barrier_opt_hsh.
(arm_cpu_option_table): Add Cortex-M3, R4 and A8.
(arm_arch_option_table): Add armv7, armv7a, armv7r and armv7m.
(struct cpu_arch_ver_table): Define.
(cpu_arch_ver): New.
(aeabi_set_public_attributes): Use cpu_arch_ver. Set
Tag_CPU_arch_profile.
* doc/c-arm.texi: Document new cpu and arch options.
gas/testsuite/
* gas/arm/thumb32.d: Fix expected msr and mrs output.
* gas/arm/arch7.d: New test.
* gas/arm/arch7.s: New test.
* gas/arm/arch7m-bad.l: New test.
* gas/arm/arch7m-bad.d: New test.
* gas/arm/arch7m-bad.s: New test.
include/opcode/
* arm.h: Add V7 feature bits.
opcodes/
* arm-dis.c (arm_opcodes): Add V7 instructions.
(thumb32_opcodes): Ditto. Handle V7M MSR/MRS variants.
(print_arm_address): New function.
(print_insn_arm): Use it. Add 'P' and 'U' cases.
(psr_name): New function.
(print_insn_thumb32): Add 'U', 'C' and 'D' cases.
2006-02-24 15:36:36 +00:00
Christopher Faylor
1b845df5ac
* cygwin.din (_exit): Use signal front end.
...
(exit): Ditto.
2006-02-24 02:08:56 +00:00
H.J. Lu
67f0a0341c
bfd/
...
2006-02-23 H.J. Lu <hongjiu.lu@intel.com>
* cpu-ia64-opc.c (ins_immu5b): New.
(ext_immu5b): Likewise.
(elf64_ia64_operands): Add IMMU5b.
gas/
2006-02-23 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-ia64.c (operand_match): Handle IA64_OPND_IMMU5b.
gas/testsuite/
2006-02-23 H.J. Lu <hongjiu.lu@intel.com>
* gas/ia64/opc-i.s: Add tests for tf.
* gas/ia64/pseudo.s: Likewise.
* gas/ia64/opc-i.d: Updated.
* gas/ia64/pseudo.d: Likewise.
include/opcode/
2006-02-23 H.J. Lu <hongjiu.lu@intel.com>
* ia64.h (ia64_opnd): Add IA64_OPND_IMMU5b.
opcodes/
2006-02-23 H.J. Lu <hongjiu.lu@intel.com>
* ia64-opc-i.c (bXc): New.
(mXc): Likewise.
(OpX2TaTbYaXcC): Likewise.
(TF). Likewise.
(TFCM). Likewise.
(ia64_opcodes_i): Add instructions for tf.
* ia64-opc.h (IMMU5b): New.
* ia64-asmtab.c: Regenerated.
2006-02-23 21:36:17 +00:00
Christopher Faylor
7fbfec2b64
* winsup.h (cygwin_hmodule): Declare.
...
* exceptions.cc (inside_kernel): Reverse return values to reflect function
name. Return true if we're in cygwin1.dll or if we're executing in dll_entry.
(_cygtls::interrupt_now): Reflect reversal of inside_kernel return value.
* hookapi.cc (cygwin_hmodule): Remove declaration.
* init.cc (dll_entry): Use in_dllentry global to record that we are executing
in dllentry.
2006-02-23 19:21:21 +00:00
Jeff Johnston
7db9cdd24e
2006-02-22 Nathan Sidwell <nathan@codesourcery.com>
...
* m68k/Makefile.in (CF_SCRIPTS): New.
(all): Add CF_SCRIPTS.
(m5208evb.ld, m5213evb.ld, m5235evb.ld, m5272c3.ld,
m5282evb.ld): New targets
(install): Iterate over CF_SCRIPTS.
* m68k/crt0.S: Don't use dbra on any cf chips.
* m68k/dbug-cf.sc: New.
2006-02-22 18:02:54 +00:00
Corinna Vinschen
2eecb0478c
* exceptions.cc (_cygtls::interrupt_now): Reorder conditional
...
to call inside_kernel only if this isn't locked.
2006-02-22 17:06:14 +00:00
Corinna Vinschen
b65479ca2e
* fhandler.cc (fhandler_base::open): Add FILE_READ_ATTRIBUTES to
...
access flags in case of query_read_control case, add FILE_READ_DATA
in case of query_stat_control.
2006-02-22 16:40:42 +00:00
Danny Smith
f41c4c7ced
* include/ddk/ntifs,h (FILE_ID_FULL_DIRECTORY_INFORMATION): Revert
...
last change.
Remove file level #pragma pack(push,4)/#pragma pop.
2006-02-21 08:28:01 +00:00
Jeff Johnston
99db626d21
2006-02-20 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/stdio/fflush.c (fflush): For an fflush on a read-only
stream, turn off fseek/rewind optimization as per POSIX/SUSv3.
* libc/stdio/fseek.c (_fseek_r): After a successful unoptimized
seek, turn off the __SNPT no-optimization flag.
2006-02-20 23:24:00 +00:00
Christopher Faylor
8aaf07c7a2
fix typo
2006-02-20 16:26:16 +00:00
Christopher Faylor
0a5f931a43
* spawn.cc (av::fixup): Check for .bat and friends specifically now since these
...
extensions are no longer automatically detected.
2006-02-20 16:15:51 +00:00
Paolo Bonzini
ec92c4d6ab
2006-02-20 Paolo Bonzini <bonzini@gnu.org>
...
PR bootstrap/25670
* Makefile.tpl ([+compare-target+]): Print explanation messages.
* Makefile.def (ADAFLAGS, BOOT_ADAFLAGS, LANGUAGES): New flags_to_pass.
* Makefile.tpl (BASE_FLAGS_TO_PASS): Support optional flags_to_pass.
(EXTRA_GCC_FLAGS): Remove ADAFLAGS, BOOT_ADAFLAGS, LANGUAGES,
BUILD_PREFIX, BUILD_PREFIX_1.
* configure.in: (BUILD_PREFIX, BUILD_PREFIX_1): Don't substitute.
* Makefile.def (bootstrap stage 1): Pass LIBCFLAGS too.
* Makefile.tpl (POSTSTAGE1_FLAGS_TO_PASS): Override LIBCFLAGS too.
* Makefile.tpl (configure-stage[+id+]-[+prefix+][+module+],
all-stage[+id+]-[+prefix+][+module+], : Use $(current_stage) instead
of `cat stage_current`. Always provide the `r' and `s' variables.
(clean-stage[+id+]-[+prefix+][+module+]): Likewise, and make it into
a single shell execution.
(configure-[+prefix+][+module+], all-[+prefix+][+module+]): For
bootstrapped modules, make the stage1 module if the build was not
started yet, else build the current stage.
(all-host, all-target): Omit bootstrapped modules (if bootstrapping).
(all-build, all-host, all-target, [+make_target+]-host,
[+make_target+]-target): Do not use \-continued lines.
(target modules): Depend on stage_last, not all-gcc, if bootstrapping.
(current_stage, restrap, stage_last): New.
* Makefile.in: Regenerate.
* configure: Regenerate.
2006-02-20 08:34:53 +00:00
Christopher Faylor
badc494165
revert erroneous checkin
2006-02-20 02:06:37 +00:00
Christopher Faylor
a339c989c7
* exceptions.cc (stackdump): Avoid dumping more than once.
2006-02-20 02:04:31 +00:00
Christopher Faylor
6d61866578
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Use NtOpenFile to open
...
the directory.
(fhandler_disk_file::readdir): Use NT_SUCCESS to determine if status represents
success.
2006-02-19 21:18:36 +00:00
Corinna Vinschen
84a447aa08
* include/ddk/ntifs.h (FILE_ID_FULL_DIRECTORY_INFORMATION): Add filler
...
value to force correct alignment.
2006-02-19 10:56:20 +00:00
Danny Smith
25109ea7f3
* include/commctrl.h (LPNMLVCACHEHINT): Correct spelling.
...
Thanks to: Sebastian Pipping <hartwork at users dot sf dot net>
(PNM_CACHEHINT): Add backward compatibilty define.
(LPNM_CACHEHINT): Likewise.
2006-02-19 09:22:00 +00:00
Corinna Vinschen
d4e9248df3
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Drop generating
...
path_conv for root.
2006-02-19 08:34:25 +00:00
Corinna Vinschen
408b92dbb5
* fhandler_disk_file.cc (FS_IS_SAMBA): Move out of
...
path_conv::hasgood_inode.
(path_conv::is_samba): New method.
(fhandler_base::fstat_by_handle): Don't even try to use
FileIdBothDirectoryInformation on Samba.
* path.h (class path_conv): Declare is_samba method.
2006-02-18 10:46:53 +00:00
Christopher Faylor
753702223c
* path.cc (conv_path_list): Eat empty paths when converting to POSIX.
...
(cygwin_conv_to_win32_path): Deal with Cygwin's necessity of adding a '/' to
the end of a path ending in '.'.
2006-02-17 20:12:11 +00:00
Nick Clifton
3cfeb52a18
Add support for the Infineon XC16X.
2006-02-17 14:36:26 +00:00
Corinna Vinschen
4fc92aa730
* cygpath.cc (get_long_name): Load GetLongPathNameA instead of incorrect
...
GetLongPathName.
(doit): Create mixed filename after converting to short or long pathname
respectively.
2006-02-17 12:17:47 +00:00
Corinna Vinschen
32410d2175
* ps.cc (main): Set aflag if -p option is given.
2006-02-17 11:16:23 +00:00
Jeff Johnston
49103e2ba4
2006-02-16 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit
will be defined.
* libc/sys/linux/sys/types.h: Move <sys/config.h> ahead of
<features.h> to preset special flags.
2006-02-16 21:25:45 +00:00
Corinna Vinschen
c6e48b1cd1
* cygwin.din: Export sigignore and sigset.
...
* exceptions.cc (sigset): New function.
(sigignore): New function.
* include/cygwin/signal.h (SIG_HOLD): Define.
(sigignore): Declare.
(sigset): Declare.
* include/cygwin/version.h: Bump API minor number to 154.
2006-02-16 18:21:49 +00:00
Corinna Vinschen
df4f13b723
* ps.cc (longopts): Add --process option.
...
(opts): Add -p option.
(usage): Mention -p/--process option.
(main): Handle -p option.
* utils.sgml: Describe -p/--process option.
2006-02-16 11:17:19 +00:00
Christopher Faylor
5e8b96517c
minor comment restructuring
2006-02-15 22:11:13 +00:00
Corinna Vinschen
96a4362c92
* regtool.cc (usage): Clarify help for "-K".
2006-02-15 10:57:17 +00:00
Corinna Vinschen
680e0f1ffd
* libc/include/sys/time.h (struct timeval): Change member types
...
according to SUSv3.
* libc/include/sys/types.h (useconds_t): Change to unsigned
according to SUSv3.
(suseconds_t): Define type.
2006-02-15 10:26:30 +00:00
Paolo Bonzini
00bc9d7ff2
2006-02-14 Paolo Bonzini <bonzini@gnu.org>
...
Sync from gcc:
2006-01-31 Richard Guenther <rguenther@suse.de>
Paolo Bonzini <bonzini@gnu.org>
* Makefile.def (target_modules): Add libgcc-math target module.
* configure.in (target_libraries): Add libgcc-math target library.
(--enable-libgcc-math): New configure switch.
* Makefile.in: Re-generate.
* configure: Re-generate.
* libgcc-math: New toplevel directory.
2006-01-18 Richard Henderson <rth@redhat.com>
Jakub Jelinek <jakub@redhat.com>
Diego Novillo <dnovillo@redhat.com>
* libgomp: New directory.
* Makefile.def: Add target_module libgomp.
* Makefile.in: Regenerate.
* configure.in (target_libraries): Add target-libgomp.
* configure: Regenerate.
2006-02-14 09:29:42 +00:00
Paolo Bonzini
207258c87d
2006-02-14 Paolo Bonzini <bonzini@gnu.org>
...
Andreas Schwab <schwab@suse.de>
* configure: Regenerate.
config:
2006-02-14 Paolo Bonzini <bonzini@gnu.org>
Andreas Schwab <schwab@suse.de>
* acx.m4 (NCN_STRICT_CHECK_TARGET_TOOLS): Use correct program name.
(ACX_CHECK_INSTALLED_TARGET_TOOL): Likewise, and always set $1.
2006-02-14 09:22:15 +00:00
Christopher Faylor
49bc9a6939
* include/mntent.h: Add missing #include.
2006-02-13 19:01:32 +00:00
Christopher Faylor
462c98e96a
* gentls_offsets: Fix typo in error message.
2006-02-13 18:59:01 +00:00
Jeff Johnston
d6593503c6
2006-02-13 Jeff Johnston <jjohnstn@redhat.com>
...
David Carne <davidcarne@gmail.com>
* libc/string/strndup_r.c (_strndup_r): Use strnlen logic
instead of strlen to determine number of bytes to copy.
* libc/string/strnlen.c (strnlen): Fix so check for max limit occurs
before looking at storage location.
2006-02-13 17:27:50 +00:00
Earnie Boyd
3801e59ad8
2006-02-13 Earnie Boyd <earnie@users.sf.net>
...
* Makefile.in (libmsvcr80.a): Add import lib.
(libmsvcr80d.a): Ditto.
2006-02-13 13:33:07 +00:00
Christopher Faylor
472130e897
* fhandler_process.cc (format_process_stat): Use cygwin-derived start time even
...
on NT since it is the logical start time of the "process".
* pinfo.cc (set_myself): Don't set start time when it should have already been
set previously.
2006-02-11 04:53:14 +00:00
Christopher Faylor
5a8a5efcfd
revert previously applied patch.
2006-02-11 00:07:43 +00:00
Christopher Faylor
7f8c7bff6f
* times.cc (clock_getres): Use correct conversion from milliseconds to
...
seconds/nanoseconds.
(clock_setres): Use correct conversion to nanoseconds.
2006-02-11 00:06:50 +00:00
Christopher Faylor
9a08fd5a50
* external.cc (sync_winenv): Rename from "setup_winenv". Use same mechanism as
...
spawn to determine environment variables which should be converted back to
windows form.
(cygwin_internal): Reflect setup_winenv -> sync_winenv name change.
* include/sys/cygwin.h: Ditto.
2006-02-10 17:22:34 +00:00
H.J. Lu
2bf61bfe9b
bfd/
...
2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/2258
* elf.c (copy_private_bfd_data): Renamed to ...
(rewrite_elf_program_header): This.
(copy_elf_program_header): New function.
(copy_private_bfd_data): Likewise.
binutils/
2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/2258
* readelf.c (process_program_headers): Use
ELF_IS_SECTION_IN_SEGMENT_MEMORY.
include/elf/
2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/2258
* internal.h (ELF_IS_SECTION_IN_SEGMENT_FILE): New.
(ELF_IS_SECTION_IN_SEGMENT_MEMORY): Likewise.
2006-02-10 15:04:19 +00:00
Corinna Vinschen
30f1c8a675
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Only set
...
the dirent_get_d_ino flag on filesystems having useful File IDs.
Add comment explaining why.
2006-02-09 14:42:48 +00:00
Corinna Vinschen
9d1c0a6053
* cygcheck.cc (find_on_path): Update copyright text.
2006-02-08 14:19:40 +00:00
Corinna Vinschen
e699adfce5
* cygcheck.cc (find_on_path): Create copy of rv on successful access
...
check, since rv can be reused in subsequent calls.
2006-02-08 14:13:28 +00:00
Nathan Sidwell
86fdf2166a
* bfd/archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
...
bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
(bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
bfd_mach_mcf_isa_b_usp_float_emac): New.
(bfd_default_scan): Update coldfire mapping.
* bfd/bfd-in.h (bfd_m68k_mach_to_features,
bfd_m68k_features_to_mach): Declare.
* bfd/bfd-in2.h: Rebuilt.
* bfd/cpu-m68k.c (arch_info_struct): Add new coldfire machines,
adjust legacy names.
(m68k_arch_features): New.
(bfd_m68k_mach_to_features,
bfd_m68k_features_to_mach): Define.
* bfd/elf32-m68k.c (elf32_m68k_object_p): New.
(elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
(elf32_m68k_print_private_bfd_data): Print the CF EF flags.
(elf_backend_object_p): Define.
* bfd/ieee.c (ieee_write_processor): Update coldfire machines.
* bfd/libbfd.h: Rebuilt.
* gas/config/tc-m68k.c (mcf5208_control_regs, mcf5213_control_regs,
mcf5329_control_regs): New.
(not_current_architecture, selected_arch, selected_cpu): New.
(m68k_archs, m68k_extensions): New.
(archs): Renamed to ...
(m68k_cpus): ... here. Adjust.
(n_arches): Remove.
(md_pseudo_table): Add arch and cpu directives.
(find_cf_chip, m68k_ip): Adjust table scanning.
(no_68851, no_68881): Remove.
(md_assemble): Lazily initialize.
(select_control_regs): Adjust cpu names. Add 5208, 5213, 5329.
(md_init_after_args): Move functionality to m68k_init_arch.
(mri_chip): Adjust table scanning.
(md_parse_option): Reimplement 'm' processing to add -march & -mcpu
options with saner parsing.
(m68k_lookup_cpu, m68k_set_arch, m68k_set_cpu, m68k_set_extension,
m68k_init_arch): New.
(s_m68k_cpu, s_m68k_arch): New.
(md_show_usage): Adjust.
(m68k_elf_final_processing): Set CF EF flags.
* gas/config/tc-m68k.h (m68k_init_after_args): Remove.
(tc_init_after_args): Remove.
* gas/doc/c-m68k.texi (M68K-Opts): Document -march, -mcpu options.
(M68k-Directives): Document .arch and .cpu directives.
* gas/testsuite/gas/m68k/all.exp: Add arch-cpu-1 test.
* gas/testsuite/gas/m68k/arch-cpu-1.[sd]: New.
* include/elf/m68k.h (EF_CPU32, EF_M68000, EF_CFV4E): Rename to ...
(EF_M68K_CPU32, EF_M68K_M68000, EF_M68K_CFV4E): ... here.
(EF_M68K_ISA_MASK, EF_M68K_ISA_A, EF_M68K_M68K_ISA_A_PLUS,
EF_M68K_ISA_B, EF_M68K_HW_DIV, EF_M68K_MAC_MASK, EF_M68K_MAC,
EF_M68K_EMAC, EF_M68K_USP, EF_M68K_FLOAT): New.
* include/opcode/m68k.h (m68008, m68ec030, m68882): Remove.
(m68k_mask): New.
(cpu_m68k, cpu_cf): New.
(mcf5200, mcf5206e, mcf521x, mcf5249, mcf528x, mcf5307, mcf5407,
mcf5470, mcf5480): Rename to cpu_<foo>. Add m680x0 variants.
* opcodes/m68k-dis.c (print_insn_m68k): Use
bfd_m68k_mach_to_features.
* binutils/readelf.c (get_machine_flags): Add logic for EF_M68K flags.
2006-02-07 19:01:10 +00:00
Jeff Johnston
f9fa511d46
2006-02-07 Paul Brook <paul@codesourcery.com>
...
* arm/crt0.S: Add Thumb-2 startup code.
* arm/redboot-crt0.S: Ditto.
* arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
* arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
* arm/trap.S: Disable for Thumb-2.
2006-02-07 18:46:23 +00:00
Jeff Johnston
9bbe6d5d28
2006-02-07 Paul Brook <paul@codesourcery.com>
...
* libc/machine/arm/setjmp.S: Add Thumb-2 support.
* libc/sys/arm/crt0.S: Add Thumb-2 startup code.
* libc/sys/arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
* libc/sys/arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
* libc/sys/arm/trap.S: Disable for Thumb-2.
2006-02-07 18:44:54 +00:00
Corinna Vinschen
03a49a00ab
* dtable.cc (handle_to_fn): Accomodate new argument order in call to
...
sys_wcstombs.
* fhandler_disk_file.cc (fhandler_disk_file::readdir): Call sys_wcstombs
instead of just wcstombs to accomodate OEM codepages.
* miscfuncs.cc (sys_wcstombs): Split len argument in source and target
length. Always 0-terminate result in target string.
* security.cc (lsa2wchar): Remove unused function.
(lsa2str): Ditto.
(get_lsa_srv_inf): Ditto.
(get_logon_server): Accomodate new argument order in call to
sys_wcstombs.
(get_user_groups): Ditto.
(get_user_local_groups): Ditto.
(get_priv_list): Call sys_wcstombs directly instead of lsa2str.
* uinfo.cc (cygheap_user::ontherange): Accomodate new argument order
in call to sys_wcstombs.
* winsup.h (sys_wcstombs): Change prototype to match new argument order.
2006-02-07 15:49:08 +00:00
Corinna Vinschen
3cb155a97f
* init.cc (respawn_wow64_process): Exit with the exit code returned
...
by the respawned process.
2006-02-07 09:57:43 +00:00
Danny Smith
3d1172c133
2006-02-04 Ron Lee <ronl@users.sourceforge.net>
...
* include/winnls.h: Remove stray end ';' from preprocessor defines.
2006-02-06 22:05:09 +00:00