summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * cygpath.cc: Include argz.h.Corinna Vinschen2007-05-232-127/+130
| | | | | | | | | | | | | | (options_from_file_flag): Move from main to global static variable. (mode_flag): Ditto. (do_sysfolders): Rename from dowin and accommodate throughout. Don't exit from here. (do_pathconv): Rename from doit and accommodate throughout. (print_version): Change copyright. (do_options): New function, centralizing option processing. Rework checking options for correctness. (action): New function, centralizing calling worker functions. (main): Simplify. Move option processing to do_options. Move calling worker functions to action. Rework getting arguments from files.
* * libc/argz/argz_create_sep.c (argz_create_sep): Initialize *argz_lenCorinna Vinschen2007-05-233-0/+19
| | | | | | to zero. * libc/include/argz.h: Guard against multiple inclusion. Guard for use with C++.
* * m68k/fido.sc (.data): Move .jcr to .text. Catch .got.pltKazu Hirata2007-05-232-1/+11
| | | | and .got.
* 2007-05-23 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini2007-05-232-1/+7
| | | | | PR bootstrap/32009 * mh-ppc-darwin: Temporarily disable.
* * path.cc (cwdstuff::set): Revert useless acquire check.Corinna Vinschen2007-05-222-2/+5
|
* * path.cc (cwdstuff::set): Avoid double aquiring of cwd_lock.Corinna Vinschen2007-05-222-2/+8
| | | | Open directory with inheriting enabled.
* * fhandler_floppy.cc (fhandler_dev_floppy::lseek): Don't invalidateCorinna Vinschen2007-05-222-1/+20
| | | | devbuf if new position is within buffered range.
* Move entry for modification to dwarf2.h (for adding ability to reportCaroline Tice2007-05-211-0/+5
| | | | when a variable's value is uninitialized) to the correct ChangeLog file.
* moved to the attic to please handling of src-support modulePaolo Bonzini2007-05-213-0/+0
|
* add this momentarily, will move them to the attic soonPaolo Bonzini2007-05-213-0/+0
|
* * include/search.h (hsearch_r): Provide declaration.Corinna Vinschen2007-05-212-0/+5
|
* * fhandler_floppy.cc (fhandler_dev_floppy::lseek): Set buf size toCorinna Vinschen2007-05-212-4/+13
| | | | | sector size. Simplify non-sector aligned case. Handle errors from raw_read.
* 2007-05-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2007-05-192-0/+6
| | | | * include/shellapi.h (NIN_POPUPOPEN, NIN_POPUPCLOSE): Define.
* Add ability to report when a variable's value is uninitialized,Caroline Tice2007-05-181-0/+1
| | | | | based on information provided by the compiler. Also add new DWARF OP, DW_OP_GNU_uninit, for this purpose.
* * libc/stdio/vfprintf.c [_WANT_IO_LONG_LONG]: Allow non-gccEric Blake2007-05-183-3/+11
| | | | | compilers. * libc/stdio/vfscanf.c: Likewise.
* 2007-05-17 Cary R. <cygcary <at> yahoo.com>Jeff Johnston2007-05-173-52/+6
| | | | | | * libm/math/w_atan2.c: Fix atan2 to be consistent with glibc (atan2(+0,-0), atan2(-0,-0) and atan(-0,+0)) * libm/math/wf_atan2.c: Ditto.
* 2007-05-17 Yaakov Selkowitz <yselkowitz <at> users.sourceforge.net>Jeff Johnston2007-05-178-56/+374
| | | | | | | | | | | | | | * libm/common/Makefile.am: Add support for exp10, exp10f, pow10, and pow10f functions. * libm/common/Makefile.in: Regenerated. * libm/common/s_pow10.c: New file. * libm/common/sf_pow10.c: Ditto. * libm/common/s_exp10.c: Ditto. * libm/common/sf_exp10.c: Ditto. * libc/include/math.h [!pow10]: New pow10 prototype. [!pow10f]: New pow10f prototype. [!exp10]: New exp10 prototype. [!exp10f]: New exp10f prototype.
* * stdio/tmpfile.c: Include <sys/stat.h>.Eric Blake2007-05-173-0/+7
| | | | * stdio64/tmpfile64.c: Ditto.
* Close security hole in tmpfile.Eric Blake2007-05-163-7/+43
| | | | | | * libc/stdio/tmpfile.c (_tmpfile_r): Avoid window between filename generation and opening the fd. * libc/stdio64/tmpfile64.c (_tmpfile64_r): Likewise.
* * libc/include/math.h (INFINITY, NAN, FP_ILOGB0, FP_ILOGBNAN)Eric Blake2007-05-163-49/+74
| | | | | | | (MATH_ERRNO, MATH_ERREXCEPT, math_errhandling): Add macros required by POSIX. * libc/stdlib/ldtoa.c (USE_INFINITY): Rename from INFINITY, to avoid clash with <math.h>.
* * libc/stdlib/wctomb_r.c (_wctomb_r): Avoid gcc warnings on cygwin.Eric Blake2007-05-163-2/+15
| | | | * libc/search/hash.c (__hash_open): Likewise.
* 2007-05-16 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini2007-05-164-184/+443
| | | | | | | | | | * Makefile.def (bootstrap_stage): Replace stage_make_flags with stage_cflags. * Makefile.tpl (POSTSTAGE1_HOST_EXPORTS, POSTSTAGE1_FLAGS_TO_PASS): Remove CFLAGS/LIBCFLAGS. (configure-stage[+id+]-[+prefix+][+module+], all-stage[+id+]-[+prefix+][+module+]): Pass it from [+stage_cflags+]. * Makefile.in: Regenerate.
* * fhandler_socket.cc (adjust_socket_file_mode): New inline function.Corinna Vinschen2007-05-152-4/+24
| | | | | | (fhandler_socket::fchmod): Squeeze mode through adjust_socket_file_mode before using it. (fhandler_socket::bind): Ditto.
* * path.cc (fs_info::update): Set and use is_cdrom.Christopher Faylor2007-05-153-14/+54
| | | | | | | | | | | * path.cc (fillout_mntent): Set ret.mnt_type to something more Linux-like, based on data from fs_info. Move "system" and "user" strings from mnt_type to mnt_opts. * path.h (struct fs_info): Add is_cdrom field. * path.h (fs_info::clear): Initialize is_cdrom. * path.h (struct fs_info): Add IMPLEMENT_STATUS_FLAG(bool,is_cdrom). * path.h (class path_conv): Add fs_is_cdrom method. Add missing fs_is_netapp method.
* * cygwin.din (asnprintf, dprint, _Exit, vasnprintf, vdprintf): Export.Christopher Faylor2007-05-153-1/+12
| | | | * include/cygwin/version.h: Bump API minor number.
* Reduce stack size of *printf.Eric Blake2007-05-142-103/+93
| | | | | | | | * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix use of decimal point in %f. Avoid malloc when possible for %S. (BUF): Improve stack locality by using smaller size. (MAXEXPLEN, _PRINTF_FLOAT_TYPE): Define. (exponent): Use smaller stack size.
* include/elf/Alan Modra2007-05-122-2/+8
| | | | | | | * spu.h (R_SPU_ADDR16X): Define. (R_SPU_PPU32, R_SPU_PPU64): Renumber. bfd/ * elf32-spu.c (elf_howto_table): Add howto for R_SPU_ADDR16X.
* Minimize printf/scanf size on platforms that don't need C99.Eric Blake2007-05-118-63/+187
| | | | | | | | | | | | | * acconfig.h (_WANT_IO_C99_FORMATS): New macro. * newlib.hin (_WANT_IO_C99_FORMATS): Likewise. * configure.in (newlib-io-c99-formats): New configure option. (_WANT_IO_C99_FORMATS): Define appropriately. * configure.host (*-linux*, cygwin): Default c99-formats to yes. * libc/stdio/vfprintf.c (_VFPRINTF_R) [!_WANT_IO_C99_FORMATS]: Cripple ' flag; hh, z, j, t sizes; a, A, F, C, S specifiers. * libc/stdio/vfscanf.c (_VFSCANF_R) [!_WANT_IO_C99_FORMATS]: Likewise. * configure: Regenerate.
* * libc/stdio/vfprintf.c (_VFPRINTF_R, cvt, exponent, chclass)Eric Blake2007-05-112-84/+148
| | | | (get_arg): Support '%a' and '%A'.
* 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.