H.J. Lu
fc49eaf437
Update ChangeLog entries.
2009-04-24 16:57:08 +00:00
Eli Zaretskii
1f445b924b
*** empty log message ***
2009-04-24 14:28:17 +00:00
Eli Zaretskii
e05488489f
* config.guess (pc:*:*:*): Return i586-pc-msdosdjgpp, for
...
consistency with config.sub. (Update from upstream sources.)
2009-04-24 14:27:20 +00:00
Eric Blake
190ccfc18c
Be namespace clean in ctype.h.
...
* libc/include/ctype.h (_tolower, _toupper, isalpha, isupper)
(islower, isdigit, isxdigit, isspace, ispunct, isalnum)
(isprint, isgraph, iscntrl, isblank, toupper, tolower)
(isascii, toascii): Don't use 'c' as macro parameter name.
2009-04-24 12:27:36 +00:00
Eric Blake
1335bf3c5d
Trigger gcc warning if isFoo macros are called with plain char.
...
* libc/include/ctype.h (isalpha, isupper, islower, isdigit)
(isxdigit, isspace, ispunct, isalnum, isprint, isgraph)
(iscntrl, isblank, toupper, tolower): Rewrite to let 'gcc -Wall'
warn when user calls macro with a char argument.
2009-04-24 12:20:07 +00:00
Jeff Johnston
5921804481
2009-04-23 Mike Burgess <wizardsguild@earthlink.net>
...
* libc/string/strcasecmp.c: Optimized rewrite.
* libc/string/strncasecmp.c: Fix description.
* libc/string/strlwr.c: Avoid passing signed char to tolower.
* libc/string/strupr.c: Avoid passing signed char to tolower.
2009-04-23 18:11:22 +00:00
Jeff Johnston
bbb9d4fde3
2009-04-23 Paul Brook <paul@codesourcery.com>
...
Kazu Hirata <kazu@codesourcery.com>
* libc/stdlib/__atexit.c (__register_exitproc): Use weak reference
to malloc. Allocate dynamically only if it is present.
* libc/stdlib/__call_atexit.c (__call_exitprocs): Use weak
reference to free. Call free only if it is present.
2009-04-23 17:54:22 +00:00
Jeff Johnston
2beb9fbb02
2009-04-22 Anthony Green <green@moxielogic.com>
...
* configure.host: Add moxie support.
* libc/machine/configure.in: Add moxie support.
* libc/machine/configure: Rebuilt.
* libc/machine/moxie/aclocal.m4: New file.
* libc/machine/moxie/configure: New file.
* libc/machine/moxie/configure.in: New file.
* libc/machine/moxie/Makefile.am: New file.
* libc/machine/moxie/Makefile.in: New file.
* libc/machine/moxie/setjmp.S: New file.
* libc/include/machine/setjmp.h (_JBLEN): Define for moxie.
* libc/include/machine/ieeefp.h: Add moxie support.
2009-04-22 19:52:49 +00:00
Jeff Johnston
bc6b90cc10
2009-04-22 Anthony Green <green@moxielogic.com>
...
* configure.in: Add moxie support.
* configure: Regenerate.
* moxie/aclocal.m4, moxie/configure, moxie/configure.in,
moxie/crt0.S, moxie/fstat.c, moxie/getpid.c, isatty.c,
moxie/kill.c, moxie/Makefile.in, moxie/moxie-elf-common.ld,
moxie/print.c, moxie/putnum.c, moxie/qemu.ld, moxie/qemu-time.c,
moxie/qemu-write.c, moxie/sbrk.c, moxie/sim-close.S,
moxie/sim-exit.S,
moxie/sim-inbyte.c, moxie/sim.ld, moxie/sim-lseek.c,
moxie/sim-lseek.S, moxie/sim-open.S, moxie/sim-read.S, moxie/sim-time.c,
moxie/sim-unlink.S, moxie/sim-write.S, moxie/stat.c: New files.
2009-04-22 19:48:07 +00:00
DJ Delorie
96baa3e74a
merge from gcc
2009-04-22 19:09:13 +00:00
Christopher Faylor
08825b6edc
* strace.cc (create_child): Set CYGWIN=noglob when starting new process so that
...
Cygwin will leave already-parsed the command line alonw.
2009-04-22 19:08:53 +00:00
DJ Delorie
819e574474
* mep/sim-crt0.S (_start): Fix typo.
2009-04-22 18:57:37 +00:00
Corinna Vinschen
755b125b77
* libc/stdio/local.h (__chclass, __state_table, __action_table):
...
Add extern to the declarations.
* libc/stdlib/local.h (__iso_8859_conv, __cp_conv): Likewise.
2009-04-22 08:30:03 +00:00
Corinna Vinschen
27378802ea
* ctype.cc (__set_ctype): Copy exact part of the current active
...
character class array.
2009-04-21 20:10:55 +00:00
Corinna Vinschen
c28545227a
* libc/ctype/ctype_.c (_CTYPE_DATA_128_255): Rename from
...
_CTYPE_DATA_128_256.
* libc/ctype/ctype_cp.h: Split off all character class values for
character 255 from the rest of the definitions.
(__ctype_cp): Use the new definitions. Make sure that the table
always contains 0 for EOF (-1).
* libc/ctype/ctype_iso.h: Ditto.
2009-04-21 20:09:01 +00:00
Jeff Johnston
161e368ac4
2009-04-21 Sandra Loosemore <sandra@codesourcery.com>
...
* libc/reent/impure.c (__sf_fake_stdin, __sf_fake_stdout)
(__sf_fake_stderr): Declare locally with weak attribute.
2009-04-21 18:38:53 +00:00
Jeff Johnston
15b71e6679
2009-04-21 Mark Mitchell <mark@codesourcery.com>
...
* libc/include/_ansi.h: Move C++ defines to top of file.
(_NOTHROW): New macro.
(_EXFUN_NOTHROW): Likewise.
* libc/include/stdlib.h (calloc): Declare with _EXFUN_NOTHROW.
(free): Likewise.
(malloc): Likewise.
(realloc): Likewise.
(_malloc_r): Likewise.
(_callor_r): Likewise.
(_free_r): Likewise.
(_realloc_r): Likewise.
2009-04-21 18:24:59 +00:00
DJ Delorie
6e9c1e8dd5
* mep/Makefile.in (SCRIPTS): Update to new config.
...
* mep/default.ld: New.
* mep/gmap_default.ld: Change default endian to little.
* mep/sim-crt0.S: Maintain 8-byte stack alignment.
* mep/sim-crtn.S: Likewise.
2009-04-21 18:13:32 +00:00
Joseph Myers
90791a1879
* texinfo/texinfo.tex: Update to version 2009-03-28.05.
2009-04-21 12:36:46 +00:00
Dave Korn
e050f18f22
bfd/ChangeLog
...
2009-04-21 Kai Tietz <kai.tietz@onevision.com>
* coff-x86_64.c (PEI_HEADERS): Protect includes.
(bfd_pe_print_pdata): Remove #ifdef PE variation.
* pei-x86_64.c (PEI_HEADERS): Define to prevent double
include in coff-x86_64.c of headers.
(PDATA_ROW_SIZE): New define.
(pex_regs[]): New static array.
(pex64_get_runtime_function): New static function.
(pex64_get_unwind_info): Likewise.
(pex64_get_scope_entry): Likewise.
(pex64_xdata_print_uwd_codes): Likewise.
(pep_get_section_by_rva): Likewise.
(pex64_dump_xdata): Likewise.
(pex64_bfd_print_pdata): Likewise.
(bfd_pe_print_pdata): Define as pex64_bfd_print_pdata.
* peXXigen.c (_bfd_pex64_print_pdata): Removed implementation.
* libpei.h (_bfd_pex64_print_pdata): Removed declaration.
include/ChangeLog
2009-04-21 Kai Tietz <kai.tietz@onevision.com>
* coff/pe.h (pex64_runtime_function): New structure.
(external_pex64_runtime_function): Likewise.
(pex64_unwind_code): Likewise.
(external_pex64_unwind_code): Likewise.
(pex64_unwind_info): Likewise.
(external_pex64_unwind_info): Likewise.
(external_pex64_scope): Likewise.
(pex64_scope): Likewise.
(pex64_scope_entry): Likewise.
(external_pex64_scope_entry): Likewise.
(PEX64_IS_RUNTIME_FUNCTION_CHAINED): New macro.
(PEX64_GET_UNWINDDATA_UNIFIED_RVA): Likewise.
(PEX64_UNWCODE_CODE): Likewise.
(PEX64_UNWCODE_INFO): Likewise.
(UWOP_...): Add defines for unwind code.
(UNW_FLAG_...): Add defined for unwind info flags.
(PEX64_SCOPE_ENTRY_SIZE): New macro.
(PEX64_UWI_VERSION): Likewise.
(PEX64_UWI_FLAGS): Likewise.
(PEX64_UWI_FRAMEREG): Likewise.
(PEX64_UWI_FRAMEOFF): Likewise.
(PEX64_UWI_SIZEOF_UWCODE_ARRAY): Likewise.
(PEX64_OFFSET_TO_UNWIND_CODE): Likewise.
(PEX64_OFFSET_TO_HANDLER_RVA): Likewise.
(PEX64_OFFSET_TO_SCOPE_COUNT): Likewise.
(PEX64_SCOPE_ENTRY): Likewise.
2009-04-21 02:13:48 +00:00
Jeff Johnston
bd5f034706
2009-04-20 Jeff johnston <jjohnstn@redhat.com>
...
* libc/include/math.h: Change _LDBL_EQ_DBL flag usage to
be _HAVE_LDBL_MATH.
* libc/include/stdlib.h: Change _LDBL_EQ_DBL flag usage to
be _HAVE_LDBL_STDLIB.
2009-04-20 18:06:14 +00:00
Corinna Vinschen
5698171a3f
* flock.cc (lf_setlock): Handle border case which results in WFMO loop
...
exiting with ret == WAIT_TIMEOUT gracefully. Add a system_printf to
uncover other potential problems with WFMO loop.
2009-04-20 17:13:19 +00:00
Christopher Faylor
b978c43ea0
* mkimport: Specify .text for stub explicitly.
...
* speclib: Add a dummy '.idata$7' section referring to the dll associated with
the real import library.
2009-04-18 17:23:45 +00:00
Corinna Vinschen
855762d6f4
* dcrt0.cc (globify): Only call mbtowc for non-ascii chars.
2009-04-18 11:08:37 +00:00
Jeff Johnston
1b8e360e06
2009-04-17 Jeff johnston <jjohnstn@redhat.com>
...
* libc/include/machine/ieeefp.h (_LDBL_EQ_DBL): Remove.
* libc/stdlib/local.h (_LDBL_EQ_DBL): Add.
* libc/stdlib/strtold.c: Include local.h.
* libc/stdlib/wcstold.c: Likewise.
* libm/common/atanl.c: Likewise.
* libm/common/cosl.c: Likewise.
* libm/common/sinl.c: Likewise.
* libm/common/modfl.c: Likewise.
* libm/common/frexpl.c: Likewise.
* libm/common/tanhl.c: Likewise.
* libm/common/tanl.c: Likewise.
* libm/common/expm1l.c: Likewise.
* libm/common/log1pl.c: Likewise.
* libm/common/ceill.c: Likewise.
* libm/common/fabsl.c: Likewise.
* libm/common/floorl.c: Likewise.
* libm/common/acosl.c: Likewise.
* libm/common/asinl.c: Likewise.
* libm/common/atan2l.c: Likewise.
* libm/common/coshl.c: Likewise.
* libm/common/expl.c: Likewise.
* libm/common/fmodl.c: Likewise.
* libm/common/hypotl.c: Likewise.
* libm/common/ldexpl.c: Likewise.
* libm/common/log10l.c: Likewise.
* libm/common/logl.c: Likewise.
* libm/common/powl.c: Likewise.
* libm/common/sqrtl.c: Likewise.
* libm/common/copysignl.c: Likewise.
* libm/common/ilogbl.c: Likewise.
* libm/common/nanl.c: Likewise.
* libm/common/cbrtl.c: Likewise.
* libm/common/asinhl.c: Likewise.
* libm/common/nextafterl.c: Likewise.
* libm/common/rintl.c: Likewise.
* libm/common/scalbnl.c: Likewise.
* libm/common/exp2l.c: Likewise.
* libm/common/fdiml.c: Likewise.
* libm/common/fmal.c: Likewise.
* libm/common/fmaxl.c: Likewise.
* libm/common/fminl.c: Likewise.
* libm/common/lrintl.c: Likewise.
* libm/common/lroundl.c: Likewise.
* libm/common/nearbyintl.c: Likewise.
* libm/common/remquol.c: Likewise.
* libm/common/roundl.c: Likewise.
* libm/common/scalblnl.c: Likewise.
* libm/common/truncl.c: Likewise.
* libm/common/acoshl.c: Likewise.
* libm/common/atanhl.c: Likewise.
* libm/common/erfcl.c: Likewise.
* libm/common/erfl.c: Likewise.
* libm/common/lgammal.c: Likewise.
* libm/common/remainderl.c: Likewise.
* libm/common/tgammal.c: Likewise.
* libm/common/sinhl.c: Likewise.
* libm/common/llroundl.c: Likewise.
* libm/common/llrintl.c: Likewise.
* libm/common/local.h: New file with _LDBL_EQ_DBL macro.
2009-04-17 22:15:43 +00:00
Jeff Johnston
ad9bb48fbe
2009-04-17 Ken Werner <ken.werner@de.ibm.com>
...
* libc/include/machine/ieeefp.h: _LDBL_EQ_DBL check fixed.
* libc/include/math.h (llrintl): Declare.
* libm/common/llrintl.c: New File.
* libm/common/Makefile.am: New File added.
* libm/common/Makefile.in: Regenerate.
2009-04-17 20:54:19 +00:00
Jeff Johnston
34d6b436e2
2009-04-17 Ken Werner <ken.werner@de.ibm.com>
...
* libc/configure.in: Change AC_TRY_COMPILE to AC_TRY_COMMAND to
avoid executable test.
* libc/configure: Regenerate.
2009-04-17 20:50:44 +00:00
Jeff Johnston
e3228f89a4
2009-04-17 Jeff johnston <jjohnstn@redhat.com>
...
* configure.in: Remove _HAVE_ARRAY_ALIASING check.
* configure: Regenerated.
* Makefile.in: Regenerated.
* newlib.hin: Remove _HAVE_ARRAY_ALIASING flag.
* libc/ctype/ctype_.c: Do not check for _HAVE_ARRAY_ALIASING.
* libm/configure.in: Change AC_TRY_COMPILE to AC_TRY_COMMAND to
avoid executable test.
* libm/configure: Regenerated.
2009-04-17 20:48:34 +00:00
Jeff Johnston
9c4032e768
2009-04-17 Jeff johnston <jjohnstn@redhat.com>
...
* configure.in: Remove _HAVE_ARRAY_ALIASING check.
* configure: Regenerated.
* newlib.hin: Remove _HAVE_ARRAY_ALIASING flag.
* libc/ctype/ctype_.c: Do not check for _HAVE_ARRAY_ALIASING.
* libm/configure.in: Change AC_TRY_COMPILE to AC_TRY_COMMAND to
avoid executable test.
* libm/configure: Regenerated.
2009-04-17 16:18:17 +00:00
H.J. Lu
33990d814f
bfd/
...
2009-04-17 H.J. Lu <hongjiu.lu@intel.com>
* peXXigen.c (_bfd_XX_print_private_bfd_data_common): Replace
IMAGE_SUBSYSTEM_EFI_ROM with IMAGE_SUBSYSTEM_SAL_RUNTIME_DRIVER.
binutils/
2009-04-17 H.J. Lu <hongjiu.lu@intel.com>
* objcopy.c (set_pe_subsystem): Replace efi-rom with sal-rtd.
* doc/binutils.texi: Likewise.
include/coff/
2009-04-17 H.J. Lu <hongjiu.lu@intel.com>
* pe.h (IMAGE_SUBSYSTEM_EFI_ROM): Renamed to ...
(IMAGE_SUBSYSTEM_SAL_RUNTIME_DRIVER): This.
2009-04-17 15:03:47 +00:00
Corinna Vinschen
0351fbd504
* dcrt0.cc (globify): Make multibyte-aware.
2009-04-17 14:51:44 +00:00
Corinna Vinschen
a74869c027
* flock.cc (class inode_t): Add i_wait member and matching methods
...
wait(), unwait(), and waiting().
(inode_t::inode_t): Initialize i_wait to 0.
(fhandler_disk_file::lock): Only remove node if no other thread is
waiting for a blocking lock.
(lf_setlock): Manipulate node->i_wait to signal that a thread is
waiting for a blocking lock in this node.
(lf_findoverlap): Reinstantiate SELF test as in original code.
2009-04-17 13:29:08 +00:00
Ben Elliston
5bbd5ae0bb
* config.sub, config.guess: Update from upstream sources.
2009-04-17 11:40:14 +00:00
Jeff Johnston
c4c8a3fd46
2009-04-16 Jeff johnston <jjohnstn@redhat.com>
...
* libc/misc/init.c (__libc_fini_array): Process fini_array in
reverse order as compliant with the ELF specification.
2009-04-16 19:16:41 +00:00
Jeff Johnston
f22a7456a1
2009-04-16 Ken Werner <ken.werner@de.ibm.com>
...
* libc/machine/spu/Makefile.am: Add new File.
* libc/machine/spu/Makefile.in: Regenerate.
* libc/machine/spu/fdopen.c: New file.
2009-04-16 18:38:23 +00:00
Jeff Johnston
34c5e58ebb
2009-04-16 Hans-Peter Nilsson <hp@axis.com>
...
* libc/include/stdint.h (INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX): Define.
2009-04-16 18:29:51 +00:00
Jeff Johnston
65f414dc16
2009-04-16 Ken Werner <ken.werner@de.ibm.com>
...
* libm/libm.texinfo: Add long double function support chapter.
* libc/include/machine/ieeefp.h: Add _LDBL_EQ_DBL define.
* libc/include/stdlib.h: Include <machine/ieeefp.h>.
(strtold, wcstold): Declare.
* libc/stdlib/strtold.c: New File.
* libc/stdlib/wcstold.c: Likewise.
* libc/configure.in: Add long double check.
* libc/configure: Regenerate.
* libc/stdlib/Makefile.am: Add strtold.c and wcstold.c.
* libc/stdlib/Makefile.in: Regenerate.
* libc/include/math.h (atanl, cosl, sinl, tanl, tanhl): Declare.
(frexpl, modfl, ceill, fabsl, floorl, log1pl, expm1l, acosl): Ditto.
(asinl, atan2l, coshl, sinhl, expl, ldexpl, logl, log10l, powl): Ditto.
(sqrtl, fmodl, hypotl, copysignl, nanl, ilogbl, asinhl, cbrt): Ditto.
(nextafterl, rintl, scalbnl, exp2l, scalblnl, tgammal): Ditto.
(nearbyintl, lrintl, llrintl, roundl, lroundl, llround): Ditto.
(llroundl, truncl, remquol, fdiml, fmaxl, fminl, fmal, acoshl): Ditto.
(atanhl, remainderl, lgammal, erfl, erfcl): Ditto.
* libm/common/atanl.c: New File.
* libm/common/cosl.c: Likewise.
* libm/common/sinl.c: Likewise.
* libm/common/modfl.c: Likewise.
* libm/common/frexpl.c: Likewise.
* libm/common/tanhl.c: Likewise.
* libm/common/tanl.c: Likewise.
* libm/common/expm1l.c: Likewise.
* libm/common/log1pl.c: Likewise.
* libm/common/ceill.c: Likewise.
* libm/common/fabsl.c: Likewise.
* libm/common/floorl.c: Likewise.
* libm/common/acosl.c: Likewise.
* libm/common/asinl.c: Likewise.
* libm/common/atan2l.c: Likewise.
* libm/common/coshl.c: Likewise.
* libm/common/expl.c: Likewise.
* libm/common/fmodl.c: Likewise.
* libm/common/hypotl.c: Likewise.
* libm/common/ldexpl.c: Likewise.
* libm/common/log10l.c: Likewise.
* libm/common/logl.c: Likewise.
* libm/common/powl.c: Likewise.
* libm/common/sqrtl.c: Likewise.
* libm/common/copysignl.c: Likewise.
* libm/common/ilogbl.c: Likewise.
* libm/common/nanl.c: Likewise.
* libm/common/cbrtl.c: Likewise.
* libm/common/asinhl.c: Likewise.
* libm/common/nextafterl.c: Likewise.
* libm/common/rintl.c: Likewise.
* libm/common/scalbnl.c: Likewise.
* libm/common/exp2l.c: Likewise.
* libm/common/fdiml.c: Likewise.
* libm/common/fmal.c: Likewise.
* libm/common/fmaxl.c: Likewise.
* libm/common/fminl.c: Likewise.
* libm/common/lrintl.c: Likewise.
* libm/common/lroundl.c: Likewise.
* libm/common/nearbyintl.c: Likewise.
* libm/common/remquol.c: Likewise.
* libm/common/roundl.c: Likewise.
* libm/common/scalblnl.c: Likewise.
* libm/common/truncl.c: Likewise.
* libm/common/acoshl.c: Likewise.
* libm/common/atanhl.c: Likewise.
* libm/common/erfcl.c: Likewise.
* libm/common/erfl.c: Likewise.
* libm/common/lgammal.c: Likewise.
* libm/common/remainderl.c: Likewise.
* libm/common/tgammal.c: Likewise.
* libm/common/sinhl.c: Likewise.
* libm/common/llroundl.c: Likewise.
* libm/configure.in: Add long double check.
* libm/configure: Regenerate.
* libm/common/Makefile.am: Add new files.
* libm/common/Makefile.in: Regenerate.
2009-04-16 18:24:35 +00:00
Nick Clifton
47d39ee0b6
Fix typo in previous commit.
2009-04-16 17:11:21 +00:00
Corinna Vinschen
54155bc37b
* dlfcn.cc (get_full_path_of_dll): Just return a bool value. Drop
...
local path_conv in favor of getting it as parameter. Add local string
buffer instead of getting it as parameter.
(dlopen): Accommodate get_full_path_of_dll change. Fetch WCHAR Windows
path from path_conv variable and call LoadLibraryW.
2009-04-16 16:17:58 +00:00
Nick Clifton
cc0748930b
Add new binutils target: moxie
2009-04-16 15:39:46 +00:00
Corinna Vinschen
03897d8dda
* ntdll.h (STATUS_LOCK_NOT_GRANTED): Define.
...
* syscalls.cc (unlink_nt): Handle STATUS_LOCK_NOT_GRANTED same as
STATUS_SHARING_VIOLATION. Add lengthy comment to explain why.
2009-04-16 12:16:35 +00:00
Corinna Vinschen
8c3a79bb97
* cygpath.cc (do_pathconv): Only skip \\?\ prefix if it's really
...
given. Do backslash to slash conversion for mixed paths after
handling \\?\ prefix.
2009-04-15 10:00:40 +00:00
Corinna Vinschen
ca027229d5
* path.cc (path_conv::get_wide_win32_path): Allow relative paths.
...
(cygwin_conv_path): In case of CCP_POSIX_TO_WIN_W, convert relative
paths to absolute paths if the relative pathname length exceeds
MAX_PATH.
2009-04-15 09:58:41 +00:00
Corinna Vinschen
d370bb56c8
* libc/bsdlib.cc: Align copyright with upstream.
...
* libc/fnmatch.c: Ditto.
* libc/fts.c: Ditto.
* libc/inet_addr.c: Ditto.
* libc/inet_network.c: Ditto.
* libc/rcmd.cc: Ditto.
* libc/rexec.cc: Ditto.
2009-04-15 08:20:47 +00:00
Christopher Faylor
fcea4c1c3d
* speclib: Really revert to using tempdir.
2009-04-14 15:10:28 +00:00
Christopher Faylor
d295466636
* speclib: Revert to using tempdir.
2009-04-14 14:28:34 +00:00
Corinna Vinschen
51291d61e2
* localtime.cc (tzload): Implement setting __tzrule's offset member
...
using newlib's __gettzinfo () interface also when tzload returns
successfully.
2009-04-14 12:08:07 +00:00
Dave Korn
03d59fb47d
* include/stdint.h (intptr_t): Remove long from type.
...
(uintptr_t): Likewise.
(INTPTR_MIN): Remove 'L' suffix.
(INTPTR_MAX, UINTPTR_MAX): Likewise.
2009-04-13 22:55:00 +00:00
Dave Korn
228f0b11fd
* Makefile.in (dumper.exe): Add -lz to ALL_LDFLAGS.
2009-04-13 22:51:02 +00:00
Christopher Faylor
73bd57524a
* speclib: Initial stab at cleaning up temp files. More work needed.
...
* mkimport: Ditto.
2009-04-12 05:11:08 +00:00