0986f93365
merge from gcc
2009-09-25 19:02:00 +00:00
5ceb291210
* setup2.sgml (setup-locale-problems): Fix charset names of codepages
...
936 and 949.
2009-09-25 16:42:36 +00:00
3dbe243afa
Fix faccessat(,0) and access() semantics.
...
* fhandler.h (fhandler_base::fhaccess): Add parameter.
* security.h (check_file_access, check_registry_access): Likewise.
* security.cc (check_file_access, check_registry_access)
(check_access): Implement new parameter.
* fhandler.cc (fhandler_base::fhaccess): Likewise.
(device_access_denied): Update caller.
* syscalls.cc (access, faccessat): Update callers.
* spawn.cc (find_exec, fixup): Likewise.
2009-09-25 13:44:45 +00:00
5386cd8ecc
* setup2.sgml (setup-locale-problems): Document how to install
...
non-default charsets.
2009-09-25 12:27:46 +00:00
005012ce6b
include/
...
* dwarf2.h (DW_TAG_rvalue_reference_type, DW_TAG_template_alias):
New tags.
(DW_FORM_ref_sig8): New name for DW_FORM_sig8.
(DW_AT_main_subprogram, DW_AT_data_bit_offset, DW_AT_const_expr,
DW_AT_enum_class, DW_AT_linkage_name, DW_AT_GNU_guarded_by,
DW_AT_GNU_pt_guarded_by, DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded,
DW_AT_GNU_locks_excluded, DW_AT_GNU_exclusive_locks_required,
DW_AT_GNU_shared_locks_required, DW_AT_GNU_odr_signature): New
attributes.
(DW_LANG_Python): New language.
binutils/
* dwarf.c (get_TAG_name): Add missing DWARF-3 and new DWARF-4 tags.
(get_FORM_name): Add new DWARF-4 forms.
(read_and_display_attr_value): Add DW_FORM_ref_sig8, DW_LANG_Python.
(get_AT_name): Add new DWARF-4 and GNU-specific attributes.
(process_debug_info): Add do_types parameter; change all callers.
Add support for .debug_types sections.
(display_debug_types): New function.
(debug_displays): Add .debug_types section.
* readelf.c (process_section_headers): Add .debug_types section.
(display_debug_section): Simplify call to streq.
2009-09-24 20:52:07 +00:00
599d462dfa
* posix_ipc.cc (mq_open): Avoid closing the same descriptor twice in
...
case of errors.
(sem_open): Ditto.
2009-09-24 09:25:35 +00:00
1c23aff7a3
* kernel32.cc (CreateMutexW): Use correct access mask.
...
(CreateSemaphoreW): Ditto.
2009-09-24 09:09:45 +00:00
c1754722ee
* libc/locale/locale.c: Drop Cygwin-specific windows.h include.
...
(loadlocale): Call __set_charset_from_codepage with 0 codepage.
2009-09-23 17:19:00 +00:00
8e3607fcee
* strfuncs.cc (__set_charset_from_codepage): Fetch current ANSI
...
codepage if cp is 0.
2009-09-23 17:13:55 +00:00
565d6ede3f
Fix typo.
2009-09-23 12:01:42 +00:00
e664429d77
* strfuncs.cc (sys_cp_wcstombs): Convert lone surrogate pair
...
second halves to unambiguous ASCII SO sequence. When converting
chars invalid in current codepage to ASCII SO sequence, make
sure to check for surrogate pair second half only if ct least
one wide characters is left. Decrement nwc if valid second half has
been converted.
(sys_cp_mbstowcs): Improve ASCII SO handling. Never break from loop
if invalid character has been found. Recognize ASCII SO sequence
representing originally invalid mulitbyte char converted into a
lone surrogate pair second half. Convert accordingly.
2009-09-23 11:31:00 +00:00
70ecec052a
* config.sub, config.guess: Update from upstream sources.
2009-09-23 09:51:31 +00:00
515575eaae
merge from gcc
2009-09-22 21:52:47 +00:00
2ad8d17a16
2009-09-22 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* libc/include/stdlib.h: Add posix_memalign.
2009-09-22 21:49:20 +00:00
bdb08ed44f
2009-09-22 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* configure.host (*-rtems*): Remove -DMISSING_SYSCALL_NAMES.
Add -DHAVE_BLKSIZE, -D_NO_WORDEXP -D_NO_POPEN.
2009-09-22 21:24:55 +00:00
c3f3d59e43
2009-09-22 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* configure.host (m32c): Move setting -DABORT_PROVIDED to second
"case $host".
2009-09-22 21:23:13 +00:00
8980b9ad03
Error out if building separately but srcdir has build remnants.
...
/:
PR bootstrap/32272
* configure.ac: Error out if $srcdir isn't '.' but contains
host-${host_noncanonical}.
* configure: Regenerate.
2009-09-22 18:00:40 +00:00
5e8d7527af
* autoload.cc (WSARecv): Define.
...
* fhandler_socket.cc (fhandler_socket::recv_internal): Call WSARecv
instead of WSARecvFrom if no name parameter is given. Explain why.
2009-09-22 14:27:57 +00:00
74a67d01a5
Make *at functions more like Linux.
...
* syscalls.cc (faccessat): Fix typo, reject bad flags.
(fchmodat, fchownat, fstatat, utimensat, linkat, unlinkat): Reject
bad flags.
2009-09-22 12:13:53 +00:00
abe6b5a3e2
* strfuncs.cc (sys_cp_mbstowcs): Reset shift state after handling
...
invalid multibyte sequence.
2009-09-22 09:44:32 +00:00
4401b147bb
* path.cc (symlink_worker): Rework error handling to generate Linux
...
compatible errno in case of trailing slash in newpath.
2009-09-22 09:24:30 +00:00
29bca9bb0c
Match dup2 and fcntl error values to POSIX.
...
* dtable.h (OPEN_MAX_MAX): New macro.
* resource.cc (getrlimit) [RLIMIT_NOFILE]: Use it.
* dtable.cc (dtable::extend): Likewise.
* fcntl.cc (fcntl64): Obey POSIX rule with too-large F_DUPFD.
* syscalls.cc (dup2): Likewise.
2009-09-22 04:09:03 +00:00
a7b24e14d7
* ChangeLog-2002: Fix typo.
...
* ChangeLog-2008: Likewise.
2009-09-22 02:49:15 +00:00
35f452c3e2
o * ppc.h (ppc_cpu_t): Typedef to uint64_t.
2009-09-22 02:36:26 +00:00
9d1fd371d1
Require c++ in stage1_languages with --enable-gold in combined bootstrap.
...
/:
* configure.ac: If bootstrapping a combined tree with
--enable-gold, require c++ in stage1_languages.
* configure: Regenerate.
2009-09-21 20:32:59 +00:00
e1762cf3a4
toplevel configure: bootstrap target_libs of stage1_languages.
...
/:
* configure.ac: Also add target_libs of stage1_languages to
bootstrap_target_libs.
* configure: Regenerate.
2009-09-21 20:31:02 +00:00
ee42ccd3a2
* cygheap.h (cwdstuff::get_posix): Convert to const inline method just
...
returning pointer to posix path.
(cwdstuff::reset_posix): Convert to non-inline method taking a wchar_t
pointer.
* path.cc (cwdstuff::set): Revert change from 2009-05-13. Set posix
to valid incoming path again.
(cwdstuff::reset_posix): New implementation setting posix path from
incoming wchar_t path. Explain usage.
(cwdstuff::get_posix): Drop implementation.
(cwdstuff::get): Drop special case to handle empty posix path.
* syscalls.cc (internal_setlocale): Store old posix cwd as wide char
path. Restore posix cwd using new charset. Explain why.
2009-09-21 19:29:16 +00:00
92763ad9ba
Diagnose --enable-build-with-cxx --enable-bootstrap --enable-languages w/o c++
...
/:
* configure.ac: Diagnose --enable-build-with-cxx bootstrap
with --enable-languages not containing c++.
* configure: Regenerate.
2009-09-21 19:25:05 +00:00
07ad8d11ca
2009-09-21 Ken Werner <ken.werner@de.ibm.com>
...
* spu/getpagesize.c: Align getpagesize implementation to POSIX
2009-09-21 16:07:34 +00:00
cd6dd861a3
include/elf/
...
* ppc.h (DT_PPC_TLSOPT): Define.
* ppc64.h (DT_PPC64_TLSOPT): Define.
bfd/
* elf32-ppc.c (TLS_GET_ADDR_GLINK_SIZE): Define.
(ADD_3_12_2, BEQLR, CMPWI_11_0, LWZ_11_3, LWZ_12_3): Define.
(MR_0_3, MR_3_0): Define.
(struct ppc_elf_link_hash_table): Add no_tls_get_addr_opt.
(ppc_elf_select_plt_layout): Save emit_stub_syms param earlier.
(ppc_elf_tls_setup): Add no_tls_get_addr_opt param and save to hash
table. Check for presense of __tls_get_addr_opt
(allocate_dynrelocs): Increase glink entry size for __tls_get_addr.
(ppc_elf_size_dynamic_sections): Add DT_PPC_TLS_OPT tag.
(write_glink_stub): Add param p.
(ppc_elf_relocate_section): Adjust write_glink_stub call.
(ppc_elf_finish_dynamic_symbol): Emit special glink call stub for
__tls_get_addr.
* elf32-ppc.h (ppc_elf_tls_setup): Update prototype.
* elf64-ppc.c (struct ppc_link_hash_table): Add no_tls_get_addr_opt.
(ppc64_elf_tls_setup): Add no_tls_get_addr_opt param and save to hash
table. Check for presense of __tls_get_addr_opt.
(ppc64_elf_size_dynamic_sections): Add DT_PPC64_TLS_OPT tag.
(LD_R11_0R3, LD_R12_0R3, MR_R0_R3, CMPDI_R11_0, ADD_R3_R12_R13,
BEQLR, MR_R3_R0, MFLR_R11, STD_R11_0R1, BCTRL, LD_R11_0R1,
LD_R2_0R1, MTLR_R11): Define.
(build_tls_get_addr_stub): New function.
(ppc_build_one_stub): Call it.
(ppc_size_one_stub): Add extra size for __tls_get_addr stub.
(ppc64_elf_relocate_section): Don't change nop to ld 2,40(1) for
__tls_get_addr plt call.
* elf64-ppc.h (ppc64_elf_tls_setup): Update prototype.
binutils/
* readelf.c (get_ppc_dynamic_type): Add TLSOPT.
(get_ppc64_dynamic_type): Likewise.
ld/
* emultempl/ppc32elf.em (no_tls_get_addr_opt): New var.
(ppc_before_allocation): Pass to ppc_elf_tls_setup.
(OPTION_NO_TLS_GET_ADDR_OPT): Define. Redefine other options in
terms of previous option.
(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add
--no-tls-get-addr-optimize.
(PARSE_AND_LIST_ARGS_CASES): Handle it.
* emultempl/ppc64elf.em (no_tls_get_addr_opt): New var.
(ppc_before_allocation): Pass to ppc64_elf_tls_setup.
(OPTION_NO_TLS_GET_ADDR_OPT): Define.
(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add
--no-tls-get-addr-optimize.
(PARSE_AND_LIST_ARGS_CASES): Handle it.
ld/testsuite/
* ld-powerpc/tlslib.s: Delete dot-symbol entry syms. Add
__tls_get_addr_opt.
* ld-powerpc/tlslib32.s: Add __tls_get_addr_opt.
* ld-powerpc/oldtlslib.s: New file, old-abi version of tlslib.s.
* ld-powerpc/powerpc.exp: Build old-abi library and use it in
two new link tests.
* ld-powerpc/tlsexe.d: Update for new __tls_get_addr stub.
* ld-powerpc/tlsexe.g, * ld-powerpc/tlsexe.r, *ld-powerpc/tlsexe32.d,
* ld-powerpc/tlsexe32.g, * ld-powerpc/tlsexe32.r,
* ld-powerpc/tlsexetoc.d, * ld-powerpc/tlsexetoc.g,
* ld-powerpc/tlsexetoc.r: Likewise.
2009-09-21 11:51:01 +00:00
8fd422fe4e
* new-features.sgml (ov-new1.7-file): Add new hardlink behaviour on
...
filesystems not supporting hardlinks.
* overview2.sgml (ov-hi-files): Change descripton accordingly.
2009-09-21 11:01:19 +00:00
6cabe044dd
* fhandler_disk_file.cc (fhandler_disk_file::link): Drop faking hardlink
...
creation on filesystems not supporting hardlinks.
2009-09-21 10:56:50 +00:00
991caa7310
gas/
...
* config/tc-ppc.c (md_show_usage): Document -mpcca2.
* doc/c-ppc.texi (PowerPC-Opts): Document -mppca2.
gas/testsuite/
* gas/ppc/a2.s: New.
* gas/ppc/a2.d: Likewise.
* gas/ppc/ppc.exp: Run the a2 dump test.
include/opcode/
* ppc.h (PPC_OPCODE_PPCA2): New.
opcodes/
* ppc-dis.c (ppc_opts): Add "ppca2" entry.
* ppc-opc.c (powerpc_opcodes): Add eratilx, eratsx, eratsx.,
eratre, wchkall, eratwe, ldawx., mdfcrx., mfdcr. mtdcrx., icswx,
icswx., mtdcr., dci, wclrone, wclrall, wclr, erativax, tlbsrx.,
ici mnemonics.
(ERAT_T): New operand.
(XWC_MASK): New mask.
(XOPL2): New macro.
(PPCA2): Define.
2009-09-21 10:29:07 +00:00
92c4330f5b
* dcrt0.cc (dll_crt0_1): Add another hack to REALLY make sure that cxx_malloc
...
is always set to the cygwin version.
2009-09-21 02:32:06 +00:00
adfbdcdb07
* external.cc (cygwin_internal): Add hack to always reset cxx_malloc to proper
...
value.
* lib/_cygwin_crt0_common.cc (_cygwin_crt0_common): Relocate wayward comment.
2009-09-21 02:19:31 +00:00
50a8741474
* exceptions.cc (sigpacket::process): Explicitly set thread-specific handler
...
function to zero to avoid transferring to incorrect location.
(_cygtls::call_signal_handler): Don't transfer to handler if there is no
handler to transfer to.
2009-09-19 15:34:19 +00:00
4945cb2af0
* libc/include/sys/unistd.h: Declare getpagesize as returning POSIX-mandated
...
int.
* libc/sys/linux/sys/unistd.h: Ditto.
2009-09-19 02:30:51 +00:00
7b9f3ce02c
* exceptions.cc (sigpacket::process): Give sigwait() processing precedence even
...
when a handler is present.
* syscalls.cc (getpagesize): Change return to 'int'.
2009-09-18 21:27:02 +00:00
a7f0112577
* ntea.c (write_ea): Don't abort if not-samba.
2009-09-16 16:23:51 +00:00
4834826e92
2009-09-16 Mike Frysinger <michael.frysinger@analog.com>
...
* bfin/include/cdefBF512.h, bfin/include/cdefBF514.h,
bfin/include/cdefBF516.h, bfin/include/cdefBF518.h,
bfin/include/cdefBF51x_base.h, bfin/include/cdefBF523.h,
bfin/include/cdefBF524.h, bfin/include/cdefBF526.h,
bfin/include/cdefBF542M.h, bfin/include/cdefBF544M.h,
bfin/include/cdefBF547M.h, bfin/include/cdefBF548M.h,
bfin/include/cdefBF549M.h, bfin/include/defBF512.h,
bfin/include/defBF514.h, bfin/include/defBF516.h,
bfin/include/defBF518.h, bfin/include/defBF51x_base.h,
bfin/include/defBF523.h, bfin/include/defBF524.h,
bfin/include/defBF526.h, bfin/include/defBF542M.h,
bfin/include/defBF544M.h, bfin/include/defBF547M.h,
bfin/include/defBF548M.h, bfin/include/defBF549M.h:
New file.
* bfin/include/ccblkfn.h, bfin/include/cdefBF525.h,
bfin/include/cdefBF527.h, bfin/include/cdefBF52x_base.h,
bfin/include/cdefBF532.h, bfin/include/cdefBF534.h,
bfin/include/cdefBF535.h, bfin/include/cdefBF538.h,
bfin/include/cdefBF539.h, bfin/include/cdefBF542.h,
bfin/include/cdefBF544.h, bfin/include/cdefBF547.h,
bfin/include/cdefBF548.h, bfin/include/cdefBF549.h,
bfin/include/cdefBF54x_base.h, bfin/include/cdefBF561.h,
bfin/include/cdefblackfin.h, bfin/include/cdef_LPBlackfin.h,
bfin/include/cplb.h, bfin/include/defBF527.h,
bfin/include/defBF52x_base.h, bfin/include/defBF532.h,
bfin/include/defBF534.h, bfin/include/defBF535.h,
bfin/include/defBF537.h, bfin/include/defBF538.h,
bfin/include/defBF539.h, bfin/include/defBF542.h,
bfin/include/defBF544.h, bfin/include/defBF547.h,
bfin/include/defBF548.h, bfin/include/defBF549.h,
bfin/include/defBF54x_base.h, bfin/include/defBF561.h,
bfin/include/defblackfin.h, bfin/include/def_LPBlackfin.h,
bfin/include/sys/_adi_platform.h,
bfin/include/sys/anomaly_macros_rtl.h,
bfin/include/sys/exception.h, bfin/include/sysreg.h:
Update to Visual DSP 5.0 Update 6.
2009-09-16 16:08:27 +00:00
5e0fdf685b
2009-09-16 Mike Frysinger <michael.frysinger@analog.com>
...
* bfin/Makefile.in (BOARD_SCRIPTS): Add bf512.ld, bf514.ld,
and bf516.ld, bf518.ld.
* bfin/bf512.ld: New file.
* bfin/bf514.ld: Likewise.
* bfin/bf516.ld: Likewise.
* bfin/bf518.ld: Likewise
2009-09-16 15:59:40 +00:00
38254ca29a
2009-09-16 Jie Zhang <jie.zhang@analog.com>
...
* bfin/*.ld: Fix typos in comments.
2009-09-16 15:56:58 +00:00
24adf76a1d
* configure.ac: Disable java and boehm-gc for bfin-*-*.
...
* configure: Regenerate.
2009-09-16 00:45:55 +00:00
04d4bd2271
Updated soruces in bfd/* to compile cleanly with -Wc++-compat.
...
* bfd/aoutx.h: Add casts.
* bfd/archive.c: Add casts.
* bfd/archive64.c: Add casts.
* bfd/archures.c: Add casts.
* bfd/bfd-in2.h: Regenerated.
* bfd/bfd.c: Add casts. (enum bfd_direction): Move out to top
level.
* bfd/bfdio.c: Add casts.
* bfd/binary.c: Add casts.
* bfd/cache.c (cache_bseek,cache_bread_1,cache_bwrite): Updated
parameter to use enum value instead of int.
* bfd/coffcode.h: Add casts.
* bfd/coffgen.c: Add casts.
* bfd/cofflink.c: Add casts.
* bfd/compress.c: Add casts.
* bfd/dwarf1.c: Add casts.
* bfd/dwarf2.c: Add casts. (struct dwarf2_debug): Rename member
bfd to bfd_ptr. Update code to use new name.
* bfd/elf-attrs.c: Add casts.
* bfd/elf-bfd.h (elf_link_virtual_table_entry): Gives name to
anonymous struct. (union gotplt_union, struct
elf_link_virtual_table_entry): Move to top level.
* bfd/elf-eh-frame.c: Add casts.
* bfd/elf-strtab.c: Add casts.
* bfd/elf.c: Add casts. (_bfd_elm_make_Section_from_phdr): Change
argument name from typename to type_name.
* bfd/elf32-i386.c: Add casts.
* bfd/elf64-x86-64.c: Add casts.
* bfd/elfcode.h: Add casts.
* bfd/elfcore.h: Add casts.
* bfd/elflink.c: Add casts.
* bfd/format.c: Add casts.
* bfd/hash.c: Add casts.
* bfd/ihex.c: Add casts.
* bfd/libaout.h (enum aout_subformat, enum aout_magic): Move to
top level.
* bfd/libbfd.c: Add casts.
* bfd/linker.c: Add casts.
* bfd/merge.c: Add casts.
* bfd/opncls.c: Add casts.
* bfd/peXXigen.c: Add casts.
* bfd/peicode.h: Add casts.
* bfd/reloc.c: Add casts.
* bfd/section.c: Add casts.
* bfd/simple.c: Add casts.
* bfd/srec.c: Add casts.
* bfd/stabs.c: Add casts.
* bfd/syms.c: Add casts.
* bfd/targets.c: Add casts.
* bfd/tekhex.c: Add casts.
* bfd/verilog.c: Add casts.
* include/bfdlink.h (struct bfd_link_hash_common_entry): Move to
top level.
2009-09-09 21:38:59 +00:00
8e50471e14
config:
...
2009-09-09 Paolo Bonzini <bonzini@gnu.org >
* stdint.m4 (GCC_HEADER_STDINT): Revert changes to this macro in
the previous two patches.
bfd:
2009-09-09 Paolo Bonzini <bonzini@gnu.org >
* configure: Regenerate.
2009-09-09 19:46:39 +00:00
8a9753f968
config:
...
2009-09-09 Paolo Bonzini <bonzini@gnu.org >
* stdint.m4: Store temporary file in $tmp/_GCC_STDINT_H.
bfd:
2009-09-09 Paolo Bonzini <bonzini@gnu.org >
* configure: Regnerate.
2009-09-09 17:05:42 +00:00
899b4718a2
2009-09-08 Bernd Schmidt <bernd.schmidt@analog.com>
...
* bfin/include/ccblkfn.h: New file.
2009-09-08 21:22:06 +00:00
580295f6a8
2009-09-08 Mike Frysinger <michael.frysinger@analog.com>
...
* bfin/include/sys/_adi_platform.h: Convert __ASSEMBLY__ to
__ASSEMBLER__.
* bfin/include/sys/pll.h: Likewise
2009-09-08 21:20:12 +00:00
18384f4fdf
2009-09-08 Jie Zhang <jie.zhang@analog.com>
...
* bfin/Makefile.in (basiccrt.o, basiccrts.o): Don't use
-mcpu=bf532-any for the default multilib.
2009-09-08 21:17:58 +00:00
94f4a7b95d
Fix toplevel config.status for HP-UX sed.
...
/:
* configure.ac: Do not use $extrasub for replacing @if/@endif
parts in Makefile; instead, use additional arguments to
AC_CONFIG_COMMANDS to do the replacement manually, with several
sed invocations, to avoid HP-UX sed command limits.
* configure: Regenerate.
2009-09-08 17:55:50 +00:00