Danny Smith
22af2ce141
* include/stdint.h (intptr_t): Fix typo.
...
Thanks to Charles Wilson for report.
2007-05-08 03:19:28 +00:00
DJ Delorie
eb4b7204c2
merge from gcc
2007-05-08 01:29:28 +00:00
Danny Smith
993e75f677
* include/stdint.h (intptr_t): Protect with _INTPTR_T_DEFINED.
...
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 23:42:27 +00:00
Jeff Johnston
8f954ad3f8
2007-05-07 Patrick Mansfield <patmans@us.ibm.com>
...
* spu/open.c: Unconditionally set the "mode" to fix a bug where
mode was not properly set.
2007-05-07 22:22:05 +00:00
Eric Blake
b9db529222
Add support for asnprintf, and improve *printf documentation.
...
* 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.
2007-05-04 02:55:16 +00:00
Kazu Hirata
fb3937fade
* 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: Use sub.l followed by dbra.
* libc/machine/m68k/memset.S: Likewise.
2007-05-03 19:45:26 +00:00
Kazu Hirata
a562045661
* m68k/fido-_exit.c (_exit): Use stop #0x700.
2007-05-03 01:19:45 +00:00
Alan Modra
c7e9b095ac
include/elf/
...
* 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.
2007-05-02 13:44:36 +00:00
Alan Modra
211f9f1fce
gas/
...
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.
2007-05-02 11:24:17 +00:00
Eric Blake
b4f095585f
* libc/stdio64/local64.h: Delete, move contents to...
...
* 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 23:03:36 +00:00
Jeff Johnston
2babeb3d94
2007-05-01 Cary R. <cygcary <at> yahoo.com>
...
* 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.
2007-05-01 18:42:15 +00:00
Alan Modra
bb57ddfeb7
bfd/
...
* 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-30 14:06:40 +00:00
Jeff Johnston
643aff874d
2007-04-27 Jeff Johnston <jjohnstn@redhat.com>
...
* 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 22:10:47 +00:00
Jeff Johnston
9e5957de57
2007-04-27 Kazu Hirata <kazu@codesourcery.com>
...
* 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 16:05:35 +00:00
Jeff Johnston
7369eb7af3
2007-04-27 Kazu Hirata <kazu@codesourcery.com>
...
* libgloss/m68k/fido.sc: Catch .text.*, .rodata.*, .data.*,
.bss.*, .ctor.*, and .dtor.*. Wrap ctor/dtor-related sections
with KEEP.
2007-04-27 16:00:45 +00:00
Christopher Faylor
5682d0f1a7
* include/cygwin/time.h: Use __cdecl on declaration. Remove
...
declarations which are duplicated in include/time.h.
2007-04-27 13:34:25 +00:00
Alan Modra
2388178da8
Write Mimi's name in ASCII.
2007-04-27 03:37:43 +00:00
Jeff Johnston
976e9d281b
2007-04-26 Patrick Mansfield <patmans@us.ibm.com>
...
* 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.
2007-04-26 19:23:37 +00:00
Jan Beulich
0e78d0f675
Revert the value change of DT_ENCODING from 2003-01-17. Luckily (and
...
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).
2007-04-26 06:59:55 +00:00
DJ Delorie
9c6c22286c
merge from gcc
2007-04-26 03:13:46 +00:00
Jeff Johnston
34450bd565
2007-04-25 Jeff Johnston <jjohnstn@redhat.com>
...
* 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 22:28:19 +00:00
Jeff Johnston
42cd3e6c52
2007-04-25 Patrick Mansfield <patmans@us.ibm.com>
...
* 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 20:45:39 +00:00
Jeff Johnston
8b36608695
2007-04-25 Eric Blake <ebb9@byu.net>
...
* libc/stdio/vfprintf.c (get_arg): Support %1$lc. Simplify types
that promote to int.
2007-04-25 19:47:36 +00:00
Jeff Johnston
245240b5e9
2007-04-25 Patrick Mansfield <patmans@us.ibm.com>
...
* feholdexcept.h: Use *envp not env so we clear the proper bits in
the fpscr, and don't set some random ones.
2007-04-25 17:36:32 +00:00
Eric Blake
5866c02352
* libc/stdio/vfprintf.c (_VFPRINTF_R): Don't zero pad on infinity
...
or NaN with %05f.
2007-04-24 20:09:50 +00:00
Eric Blake
27e5e9ab05
* libc/stdio/vfprintf.c (_VFPRINTF_R): Avoid multibyte when not
...
_MB_CAPABLE.
2007-04-24 19:55:28 +00:00
Eric Blake
68f2517f72
* libc/include/limits.h (NL_ARGMAX): Define a default value.
...
* libc/stdio/vfprintf.c (MAX_POS_ARGS): Define in terms of
NL_ARGMAX, if present.
2007-04-24 16:01:15 +00:00
Jeff Johnston
714d0b7a88
2007-04-23 Ralf Wildenhues <Ralf.Wildenhues <at> gmx.de>
...
* 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 22:52:37 +00:00
Jeff Johnston
930b1861ce
2007-04-23 Brian Dessent <brian@dessent.net>
...
* 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 21:55:31 +00:00
Jeff Johnston
8aebc414ec
2007-04-23 Jeff Johnston <jjohnstn@redhat.com>
...
* 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.
2007-04-23 19:46:08 +00:00
Nathan Sidwell
1974731bb6
gas/testsuite/
...
* 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-23 07:51:30 +00:00
Chris Sutcliffe
862eba8666
2007-04-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
...
* include/shellapi.h (NOTIFYICONDATAA, NOTIFYICONDATAW): Updated to support
Vista.
2007-04-22 11:25:07 +00:00
Chris Sutcliffe
f1fc3a03b4
2007-04-20 Matthias Miller <matthiasmiller@users.sourceforge.net>
...
* include/wincrypt.h (CRYPTPROTECT_PROMPTSTRUCT, CRYPTPROTECT_UI_FORBIDDEN,
CRYPTPROTECT_LOCAL_MACHINE): Define.
2007-04-20 22:54:24 +00:00
Alan Modra
d8507ced8b
include/opcode/
...
* 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.
2007-04-20 12:25:12 +00:00
Mark Shinwell
c84ece703d
Correct erroneous ChangeLog commit.
2007-04-20 12:15:41 +00:00
Mark Shinwell
7b27f47ad0
* Makefile.in: Adjust dependencies of m68klinux-tdep.c.
...
* 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.
2007-04-20 12:13:51 +00:00
Brian Dessent
09e5bb8e60
* cygwin.sc: Remove duplicated .debug_macinfo section.
...
* dllfixdbg: Also copy DWARF-2 sections into .dbg file.
2007-04-18 13:11:35 +00:00
Jeff Johnston
fb5750bfb4
2007-04-17 Brian Dessent <brian@dessent.net>
...
* libc/stdio/sscanf.c: Update documentation comments.
* libc/stdio/vfscanf.c (__SVFSCANF_R): Handle j, t, and z modifiers.
2007-04-17 20:53:24 +00:00
Chris Sutcliffe
2351dd18b4
2007-04-15 Piotr Wyderski <piotr.wyderski@wp.pl>
...
* include/winbase.h (SetInformationJobObject, QueryInformationJobObject):
Define.
2007-04-15 17:26:46 +00:00
Steve Ellcey
644024118b
* config-ml.in: Update from GCC.
2007-04-14 20:35:07 +00:00
Eric Blake
ba3ccd633d
* libc/stdio/vfprintf.c (_VFPRINTF_F, cvt): Don't confuse %F with %e.
...
(chclass): Recognize 'F', 'X', 'n', and not 'W'.
(get_arg): Handle %1$F, %1$n.
2007-04-13 01:57:33 +00:00
Paolo Bonzini
5baf5714af
config:
...
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.
2007-04-12 13:06:01 +00:00
Richard Henderson
6302ce6d3c
bfd/
...
* 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.
2007-04-10 18:00:25 +00:00
Eric Blake
503e2d1c76
* libc/include/stdio.h (_ELIDABLE_INLINE): Work even when using
...
CFLAGS=-O0.
2007-04-10 12:49:18 +00:00
Eric Blake
17c0c97d7c
* libc/include/stdio.h: Add gcc format attributes to printf and
...
scanf families.
2007-04-10 12:47:13 +00:00
Jeff Johnston
abe43f4262
2007-04-09 Joel Schopp <jschopp@austin.ibm.com>
...
* 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.
2007-04-09 16:03:26 +00:00
Daniel Jacobowitz
69de39769d
* src-release (do-proto-toplev): Process the support directories before
...
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.
2007-04-09 15:36:41 +00:00
Chris Sutcliffe
2edb06ce62
2007-04-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
...
* Makefile.in: Removed mansuffix variable. Changed mansection to support
Cygwin man page location.
2007-04-07 10:16:52 +00:00
Corinna Vinschen
bde9647c6a
* include/stdint.h (WINT_MIN): Fix sign.
2007-04-06 08:25:28 +00:00
Chris Sutcliffe
f12b93442f
2007-04-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
...
* Makefile.in: Added mansection and mansuffix variables. Changed mandir
to support Cygwin man page location.
2007-04-05 20:44:29 +00:00