summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* include/elf/Alan Modra2007-05-112-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * spu.h (R_SPU_PPU32, R_SPU_PPU64): Define. bfd/ * reloc.c (BFD_RELOC_SPU_PPU32, BFD_RELOC_SPU_PPU64): Define. * elf-bfd.h (struct elf_backend_data): Change return type of elf_backend_relocate_section to int. * elf32-spu.c (elf_howto_table): Add howtos for R_SPU_PPU32 and R_SPU_PPU64. (spu_elf_bfd_to_reloc_type): Convert new relocs. (spu_elf_count_relocs): New function. (elf_backend_count_relocs): Define. (spu_elf_relocate_section): Arrange to emit R_SPU_PPU32 and R_SPU_PPU64 relocs. * elflink.c (elf_link_input_bfd): Emit relocs if relocate_section returns 2. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. gas/ * config/tc-spu.c (md_pseudo_table): Add int, long, quad. Call spu_cons for word. (md_assemble): Tidy use of insn.flag. (get_imm): Likewise. Handle uppercase input too. (spu_cons): New function. * config/tc-spu.h (tc_fix_adjustable): Don't adjust SPU_PPU relocs. (TC_FORCE_RELOCATION): Don't resolve them either. binutils/ * embedspu.sh (find_prog): Prefer prog in same dir as embedspu over one found on the users path. (main): Generate .reloc for each R_SPU_PPU* reloc.
* Allow zero size with non-null buf in *asnprintf.Eric Blake2007-05-095-0/+15
| | | | | | | | * libc/stdio/asnprintf.c (_asnprintf_r, asnprintf): Avoid free'ing user's buf. * libc/stdio/asniprintf.c (_asniprintf_r, asniprintf): Likewise. * libc/stdio/vasniprintf.c (_vasniprintf_r): Likewise. * libc/stdio/vasnprintf.c (_vasnprintf_r): Likewise.
* * libc/stdio/vfprintf.c: Fix typo in comments that breaks docs.Eric Blake2007-05-082-1/+5
|
* * include/stdint.h (intptr_t): Fix typo.Danny Smith2007-05-082-2/+7
| | | | Thanks to Charles Wilson for report.
* merge from gccDJ Delorie2007-05-082-0/+8
|
* * include/stdint.h (intptr_t): Protect with _INTPTR_T_DEFINED.Danny Smith2007-05-072-10/+43
| | | | | | | | | | Condition on _WIN64. (uintptr_t): Protect with _UINTPTR_T_DEFINED. Condition on _WIN64. (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Condition on _WIN64. (PTRDIFF_MIN): Define as INTPTR_MIN. (PTRDIFF_MAX): Define as INTPTR_MAX. (SIG_ATOMIC_MIN): Define as INTPTR_MIN. (SIG_ATOMIC_MAX): Define as INTPTR_MAX.
* 2007-05-07 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2007-05-072-16/+11
| | | | | * spu/open.c: Unconditionally set the "mode" to fix a bug where mode was not properly set.
* Add support for asnprintf, and improve *printf documentation.Eric Blake2007-05-0426-690/+1268
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/stdio/Makefile.am (ELIX_SOURCES): Rename... (ELIX_2_SOURCES): ...to this. (ELIX_4_SOURCES): Add new variable. Build asnprintf. (GENERAL_SOURCES): Move dprintf to ELIX_4_SOURCES. (CHEWOUT_FILES): Include diprintf in documentation. * libc/stdio/Makefile.in: Regenerate. * libc/stdio/diprintf.c: Improve documentation. * libc/stdio/dprintf.c: Likewise. * libc/stdio/siprintf.c: Likewise. * libc/stdio/sprintf.c: Likewise. * libc/stdio/vfprintf.c: Likewise. * libc/stdio/viprintf.c: Likewise. * libc/stdio/vsniprintf.c: Consolidate documentation. * libc/stdio/asiprintf.c: Refer to documentation. * libc/stdio/asprintf.c: Likewise. * libc/stdio/fiprintf.c: Likewise. * libc/stdio/fprintf.c: Likewise. * libc/stdio/iprintf.c: Likewise. * libc/stdio/printf.c: Likewise. * libc/stdio/sniprintf.c: Likewise. * libc/stdio/vdiprintf.c: Likewise. * libc/stdio/vdprintf.c: Likewise. * libc/stdio/vsiprintf.c: Likewise. * libc/stdio/fvwrite.c (__sfvwrite_r): Handle asnprintf. * libc/stdio/asniprintf.c (asniprintf, _asniprintf_r): New file. * libc/stdio/asnprintf.c (asnprintf, _asnprintf_r): New file. * libc/stdio/vasniprintf.c (vasniprintf, _vasniprintf_r): New file. * libc/stdio/vasnprintf.c (vasnprintf, _vasnprintf_r): New file. * libc/stdio/vdprintf.c (_vdprintf_r): Rewrite to avoid malloc in typical case. * libc/stdio/vdiprintf.c (_vdiprintf_r): Likewise. * libc/include/stdio.h: Add prototypes for new functions; sort existing functions.
* * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.SKazu Hirata2007-05-035-5/+28
| | | | | | | and memset.S. * libc/machine/m68k/Makefile.in: Regenerate. * libc/machine/m68k/memcpy.S: Use sub.l followed by dbra. * libc/machine/m68k/memset.S: Likewise.
* * m68k/fido-_exit.c (_exit): Use stop #0x700.Kazu Hirata2007-05-032-4/+7
|
* include/elf/Alan Modra2007-05-022-18/+23
| | | | | | | | | | | | * internal.h (ELF_IS_SECTION_IN_SEGMENT): Check both file offset and vma for appropriate sections. bfd/ * elf.c (assign_file_positions_for_load_sections): Set sh_offset here. Set sh_type to SHT_NOBITS if we won't be allocating file space. Don't bump p_memsz for non-alloc sections. Adjust section-in-segment check. (assign_file_positions_for_non_load_sections): Don't set sh_offset here for sections that have already been handled above.
* gas/Alan Modra2007-05-022-1/+5
| | | | | | | | PR 4448 * config/tc-ppc.c (ppc_insert_operand): Don't increase min for PPC_OPERAND_PLUS1. include/opcode/ * ppc.h (PPC_OPERAND_PLUS1): Update comment.
* * libc/stdio64/local64.h: Delete, move contents to...Eric Blake2007-05-0112-45/+70
| | | | | | | | | | | | | | * libc/stdio/local.h: ...here. * libc/stdio64/fdopen64.c: Update includes. * libc/stdio64/fopen64.c: Likewise. * libc/stdio64/freopen64.c: Likewise. * libc/stdio64/fseeko64.c: Likewise. * libc/stdio64/ftello64.c: Likewise. * libc/stdio/findfp.c (std) [__LARGE64_FILES]: Open stdin, stdout, and stderr with 64-bit offset. * libc/stdio/fseek.c (_fseek_r): Avoid compile warning. * libc/stdio/makebuf.c (__smakebuf_r): Likewise. * libc/stdio/mktemp.c (_gettemp): Likewise.
* 2007-05-01 Cary R. <cygcary <at> yahoo.com>Jeff Johnston2007-05-0113-15/+38
| | | | | | | | | | | | | | | | * libm/math/e_pow.c: Fix to be consistent with glibc with regards to treatment of NaN and +-inf arguments. * libm/math/ef_pow.c: Ditto. * libm/math/w_pow.c: Ditto. * libm/math/wf_pow.c: Ditto. * libm/math/w_acos.c: Fix domain errors to return NaN. * libm/math/w_asin.c: Ditto. * libm/math/wf_acos.c: Ditto. * libm/math/wf_asin.c: Ditto. * libm/math/w_log.c: Fix to return NaN for negative number inputs. * libm/math/wf_log.c: Ditto. * libm/math/wf_log10.c: Ditto. * libm/math/w_log10.c: Ditto.
* bfd/Alan Modra2007-04-302-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * elf32-spu.c (struct spu_link_hash_table): Add stack_analysis and emit_stack_syms bitfields. (get_sym_h): Read all symbols if stack analysis will be done. (spu_elf_create_sections): Add stack_analysis and emit_stack_syms params, and stash in hash table. (is_hint): Split off from.. (is_branch): ..here. Adjust callers. (spu_elf_size_stubs): Add stack_analysis param. Arrange to read and keep all syms. (write_one_stub): Fix mem leak. (find_function_stack_adjust): New function. (sort_syms_syms, sort_syms_psecs): New vars. (sort_syms): New function. (struct call_info, struct function_info): New. (struct spu_elf_stack_info): New. (alloc_stack_info, maybe_insert_function, func_name): New functions. (is_nop, insns_at_end, check_function_ranges): Likewise. (find_function, insert_callee, mark_functions_via_relocs): Likewise. (pasted_function, interesting_section, discover_functions): Likewise. (mark_non_root, call_graph_traverse, build_call_tree): Likewise. (sum_stack, spu_elf_stack_analysis, spu_elf_final_link): Likewise. (bfd_elf32_bfd_final_link): Define. * elf32-spu.h (struct _spu_elf_section_data): Add stack_info field. (spu_elf_create_sections, spu_elf_size_stubs): Update prototypes. include/ * bfdlink.h (struct bfd_link_info): Add "info" and "minfo". ld/ * ldmain.c (link_callbacks): Init info and minfo fields. * ldmisc.c (minfo): Do nothing if no map file. * emultempl/spuelf.em (stack_analysis, emit_stack_syms): New vars. (spu_after_open): Adjust spu_elf_create_sections call. (spu_before_allocation): Likewise for spu_elf_size_stubs. (OPTION_SPU_STACK_ANALYSIS, OPTION_SPU_STACK_SYMS): Define. (PARSE_AND_LIST_LONGOPTS): Add new entries. (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise. * gen-doc.texi: Add @set for SPU and other missing targets. * ld.texinfo: Update man page selection to match gen-doc.texi. Document SPU features.
* 2007-04-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-04-273-16/+10
| | | | | | | * libc/machine/m68k/Makefile.am: Temporarily remove memcpy.S and memset.S until logic can be confirmed for !(__mcoldfile__) case. * libc/machine/m68k/Makefile.in: Regenerated.
* 2007-04-27 Kazu Hirata <kazu@codesourcery.com>Jeff Johnston2007-04-275-3/+213
| | | | | | | * libc/machine/m68k/Makefile.am (lib_a_SOURCES): Add memcpy.S and memset.S. * libc/machine/m68k/Makefile.in: Regenerate. * libc/machine/m68k/memcpy.S, libc/machine/m68k/memset.S: New.
* 2007-04-27 Kazu Hirata <kazu@codesourcery.com>Jeff Johnston2007-04-272-16/+25
| | | | | | * libgloss/m68k/fido.sc: Catch .text.*, .rodata.*, .data.*, .bss.*, .ctor.*, and .dtor.*. Wrap ctor/dtor-related sections with KEEP.
* * include/cygwin/time.h: Use __cdecl on declaration. RemoveChristopher Faylor2007-04-271-7/+6
| | | | declarations which are duplicated in include/time.h.
* Write Mimi's name in ASCII.Alan Modra2007-04-272-5/+5
|
* 2007-04-26 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2007-04-2613-11/+390
| | | | | | | | | | | | | | | | | | * libc/include/ieeefp.h: use prefixed __ieeefp_ macros that can be overridden via machine/ieeefp.h. * libc/include/machine/ieeefp.h: Add SPU specific C99 and ieeefp macros for isnan and related macros. * libc/include/math.h: Allow C99 isfinite, isinf, and isnan to be overridden via machine/ieeefp.h. * libm/machine/spu/Makefile.am: Add new files. * libm/machine/spu/Makefile.in: Autogenerate with new files. * libm/machine/spu/sf_fpclassify.c: Add SPU specific __fpclassifyf. * libm/machine/spu/sf_finite.c: Add SPU specific finitef. * libm/machine/spu/sf_isinf.c: Add SPU specific isinff. * libm/machine/spu/sf_isinff.c: Add SPU specific __isinff. * libm/machine/spu/sf_isnan.c: Add SPU specific isnanf. * libm/machine/spu/sf_isnanf.c: Add SPU specific __isnanf. * libm/machine/spu/sf_nan.c: Add SPU specific nanf.
* Revert the value change of DT_ENCODING from 2003-01-17. Luckily (andJan Beulich2007-04-262-1/+6
| | | | | | | | | | | surprisingly) the value isn't really being used anywhere, henc no other changes are needed. include/elf/ 2007-04-26 Jan Beulich <jbeulich@novell.com> * common.h (DT_ENCODING): Correct value (back to spec mandated value).
* merge from gccDJ Delorie2007-04-262-14/+27
|
* 2007-04-25 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-04-255-30/+53
| | | | | | | * libm/common/s_fpclassify.c (__fpclassifyf): Move this to... * libm/common/sf_fpclassify.c: ...here. New file. * libm/common/Makefile.am: Add sf_fpclassify.c. * libm/common/Makefile.in: Regenerated.
* 2007-04-25 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2007-04-252-0/+191
| | | | | | * libc/machine/spu/sys/errno.h: New file, so spu errno values match ppu linux values. This file is a copy of the cris/sys/errno.h plus a few changes (see spu errno.h comments).
* 2007-04-25 Eric Blake <ebb9@byu.net>Jeff Johnston2007-04-252-28/+14
| | | | | * libc/stdio/vfprintf.c (get_arg): Support %1$lc. Simplify types that promote to int.
* 2007-04-25 Patrick Mansfield <patmans@us.ibm.com>Jeff Johnston2007-04-252-1/+6
| | | | | * feholdexcept.h: Use *envp not env so we clear the proper bits in the fpscr, and don't set some random ones.
* * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't zero pad on infinityEric Blake2007-04-242-2/+14
| | | | or NaN with %05f.
* * libc/stdio/vfprintf.c (_VFPRINTF_R): Avoid multibyte when notEric Blake2007-04-242-14/+22
| | | | _MB_CAPABLE.
* * libc/include/limits.h (NL_ARGMAX): Define a default value.Eric Blake2007-04-243-2/+22
| | | | | * libc/stdio/vfprintf.c (MAX_POS_ARGS): Define in terms of NL_ARGMAX, if present.
* 2007-04-23 Ralf Wildenhues <Ralf.Wildenhues <at> gmx.de>Jeff Johnston2007-04-2363-198/+511
| | | | | | | | | | | | | | | * confsubdir.m4 (AC_CONFIG_SUBDIRS, _AC_OUTPUT_SUBDIRS): New file. Override Autoconf-2.59's version of these macros with fixed handling of multiple adjacent whitespace in arguments. * aclocal.m4: Regenerated forcefully. * configure: Ditto. * Makefile.in: Ditto. * libc/*Makefile.in: Ditto. * libc/*aclocal.m4: Ditto. * libc/*configure: Ditto. * libm/*Makefile.in: Ditto. * libm/*aclocal.m4: Ditto. * libm/*configure: Ditto.
* 2007-04-23 Brian Dessent <brian@dessent.net>Jeff Johnston2007-04-231-1/+1
| | | | | | * libc/stdio/vfprintf.c (_vfprintf_r): When the alternate-form flag has been specified with types 'f', 'F', 'g', or 'G', ensure the trailing decimal is printed.
* 2007-04-23 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-04-234-5/+58
| | | | | | | * libc/sys/arc/dummy.S: Dummy file to force .S.o suffix rule. * libc/sys/arc/Makefile.am: Add dummy.S to EXTRA_lib_a_SOURCES and set lib_a_CCASFLAGS so crto.o will use .S.o default suffix rule. * libc/sys/arc/Makefile.in: Regenerated.
* gas/testsuite/Nathan Sidwell2007-04-232-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gas/m68k/br-isaa.s: New. * gas/m68k/br-isaa.d: New. * gas/m68k/br-isab.s: New. * gas/m68k/br-isab.d: New. * gas/m68k/br-isac.s: New. * gas/m68k/br-isac.d: New. * gas/m68k/all.exp: Adjust. gas/ * config/tc-m68k.c (mcf54455_ctrl): New. (HAVE_LONG_DISP, HAVE_LONG_CALL, HAVE_LONG_COND): New. (m68k_archs): Add isac. (m68k_cpus): Add 54455 family. (m68k_ip): Split Bg into Bb, Bs, Bg. (m68k_elf_final_processing): Add ISA_C. * doc/c-m68k.texi (M680x0 Options): Add isac. include/opcode/ * m68k.h (mcfisa_c): New. (mcfusp, mcf_mask): Adjust. bfd/ * archures.c (bfd_mach_mcf_isa_c, bfd_mach_mcf_isa_c_mac, bfd_mach_mcf_isa_c_emac): New. * elf32-m68k.c (ISAC_PLT_ENTRY_SIZE, elf_isac_plt0_entry, elf_isac_plt_entry, elf_isac_plt_info): New. (elf32_m68k_object_p): Add ISA_C. (elf32_m68k_print_private_bfd_data): Print ISA_C. (elf32_m68k_get_plt_info): Detect ISA_C. * cpu-m68k.c (arch_info): Add ISAC. (m68k_arch_features): Likewise, (bfd_m68k_compatible): ISAs B & C are not compatible. opcodes/ * m68k-opc.c: Mark mcfisa_c instructions.
* 2007-04-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2007-04-222-38/+50
| | | | | * include/shellapi.h (NOTIFYICONDATAA, NOTIFYICONDATAW): Updated to support Vista.
* 2007-04-20 Matthias Miller <matthiasmiller@users.sourceforge.net>Chris Sutcliffe2007-04-202-113/+128
| | | | | * include/wincrypt.h (CRYPTPROTECT_PROMPTSTRUCT, CRYPTPROTECT_UI_FORBIDDEN, CRYPTPROTECT_LOCAL_MACHINE): Define.
* include/opcode/Alan Modra2007-04-202-29/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ppc.h (struct powerpc_operand): Replace "bits" with "bitm". (num_powerpc_operands): Declare. (PPC_OPERAND_SIGNED et al): Redefine as hex. (PPC_OPERAND_PLUS1): Define. opcodes/ * ppc-dis.c (print_insn_powerpc): Adjust for struct powerpc_operand change. * ppc-opc.c (powerpc_operands): Replace bit count with bit mask in all entries. Add PPC_OPERAND_SIGNED to DE entry. Remove references to following deleted functions. (insert_bd, extract_bd, insert_dq, extract_dq): Delete. (insert_ds, extract_ds, insert_de, extract_de): Delete. (insert_des, extract_des, insert_li, extract_li): Delete. (insert_nb, insert_rsq, insert_rtq, insert_ev2, extract_ev2): Delete. (insert_ev4, extract_ev4, insert_ev8, extract_ev8): Delete. (num_powerpc_operands): New constant. (XSPRG_MASK): Remove entire SPRG field. (powerpc_opcodes <bcctre, bcctrel>): Use XLBB_MASK not XLYBB_MASK. gas/ * messages.c (as_internal_value_out_of_range): Extend to report errors for values with invalid low bits set. * config/tc-ppc.c (ppc_setup_opcodes): Check powerpc_operands bitm fields. Check that operands and opcode fields are disjoint. (ppc_insert_operand): Check operands using mask rather than bit count. Check low bits too. Handle PPC_OPERAND_PLUS1. Adjust insertion code. (md_apply_fix): Adjust for struct powerpc_operand change.
* Correct erroneous ChangeLog commit.Mark Shinwell2007-04-201-13/+0
|
* * Makefile.in: Adjust dependencies of m68klinux-tdep.c.Mark Shinwell2007-04-201-0/+13
| | | | | | | | | | | | * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New. (m68k_linux_sigcontext_reg_offset): Fix typo. (target_is_uclinux): New. (m68k_linux_inferior_created): New. (m68k_linux_get_sigtramp_info): Check for uClinux or normal Linux. Use m68k_uclinux_sigcontext_reg_offset for uClinux. (_initialize_m68k_linux_tdep): Register m68k_linux_inferior_created.
* * cygwin.sc: Remove duplicated .debug_macinfo section.Brian Dessent2007-04-183-2/+9
| | | | * dllfixdbg: Also copy DWARF-2 sections into .dbg file.
* 2007-04-17 Brian Dessent <brian@dessent.net>Jeff Johnston2007-04-173-4/+63
| | | | | * libc/stdio/sscanf.c: Update documentation comments. * libc/stdio/vfscanf.c (__SVFSCANF_R): Handle j, t, and z modifiers.
* 2007-04-15 Piotr Wyderski <piotr.wyderski@wp.pl>Chris Sutcliffe2007-04-152-0/+7
| | | | | * include/winbase.h (SetInformationJobObject, QueryInformationJobObject): Define.
* * config-ml.in: Update from GCC.Steve Ellcey2007-04-142-1/+5
|
* * libc/stdio/vfprintf.c (_VFPRINTF_F, cvt): Don't confuse %F with %e.Eric Blake2007-04-132-1219/+1230
| | | | | (chclass): Recognize 'F', 'X', 'n', and not 'W'. (get_arg): Handle %1$F, %1$n.
* config:Paolo Bonzini2007-04-122-0/+44
| | | | | | | 2007-04-11 Kai Tietz <kai.tietz@onevision.com> * stdint.m4: Make template compatible with older cygwin types.h, wrapping each type in a __XXX_t_defined #ifdef.
* bfd/Richard Henderson2007-04-102-0/+9
| | | | | | | | | | | | | | * elf64-alpha.c (struct alpha_elf_link_hash_table): Add relax_trip. (elf64_alpha_size_got_sections): Remove unused something_changed local. (elf64_alpha_size_plt_section): Return void. (elf64_alpha_size_rela_got_section): Likewise. (elf64_alpha_relax_section): Only regenerate got+plt if the relax_trip counter has changed. include/ * bfdlink.h (struct bfd_link_info): Add relax_trip. ld/ * ldlang.c (relax_sections): Initialize and increment link_info.relax_trip.
* * libc/include/stdio.h (_ELIDABLE_INLINE): Work even when usingEric Blake2007-04-102-1/+6
| | | | CFLAGS=-O0.
* * libc/include/stdio.h: Add gcc format attributes to printf andEric Blake2007-04-102-349/+426
| | | | scanf families.
* 2007-04-09 Joel Schopp <jschopp@austin.ibm.com>Jeff Johnston2007-04-092-8/+10
| | | | | | | * libc/machine/spu/strxfrm.c: Fix strxfrm so we still copy data even if the passed in length n is shorter than the source string. This matches both the non-spu specific and the glibc strxfrm behaviour.
* * src-release (do-proto-toplev): Process the support directories beforeDaniel Jacobowitz2007-04-092-1/+6
| | | | | | | | | the tool directory. * Makefile.am (bfdver.h): Do not generate doc/bfdver.texi. * doc/Makefile.am (DOCFILES): Add bfdver.texi. (bfdver.texi): New rule. * Makefile.in, doc/Makefile.in: Regenerated.