Jeff Johnston
79978d2076
2007-09-21 Patrick Mansfield <patmans@us.ibm.com>
...
* spu/dirfuncs.c: New file, holds the opendir, closedir, readdir,
rewinddir, seekdir and telldir implementations. These are
grouped in one file so that we do not need a separate file for
the struct dirent and DIR allocation code.
* spu/jsre.h: Add JSRE_OPENDIR and other dir opcodes.
* spu/Makefile.in: Add dirfuncs.o.
2007-09-21 20:40:52 +00:00
Jeff Johnston
63fbe1fd64
2007-09-21 Patrick Mansfield <patmans@us.ibm.com>
...
* libc/machine/spu/sys/dirent.h: New file, add prototypes and SPU
specific struct and typedef.
2007-09-21 20:36:02 +00:00
Richard Sandiford
512d8d8bac
config/
...
* mt-sde (CFLAGS_FOR_TARGET): Replace -fno-optimize-sibling-calls
with -minterlink-mips16.
(CXXFLAGS_FOR_TARGET): Likewise.
2007-09-21 07:34:10 +00:00
DJ Delorie
a8c17d427e
Merge from gcc:
...
2007-09-19 Benjamin Kosnik <bkoz@redhat.com>
* configure.ac (TOPLEVEL_CONFIGURE_ARGUMENTS): Move libgomp before
libstdc++.
* Makefile.def: Add libgomp config as a maybe dependency for libstdc++.
* configure: Regenerate.
* Makefile.in: Regenerate.
2007-09-20 21:56:16 +00:00
Richard Sandiford
2d2e75dd67
* configure.ac (mipsisa*-*-elfoabi*): New stanza.
...
* configure: Regenerate.
config/
* mt-mips-elfoabi: New file.
2007-09-20 20:03:31 +00:00
Corinna Vinschen
1ceec140c0
* ntdll.h (STATUS_OBJECT_NAME_INVALID): Define.
2007-09-20 15:14:13 +00:00
Jeff Johnston
cebf33e402
2007-09-18 Patrick Mansfield <patmans@us.ibm.com>
...
* libc/include/sys/types.h: Use __dev_t, __uid_t, and __gid_t to
typedef dev_t, gid_t, and uid_t.
* libc/include/sys/_types.h: Move previous dev_t, uid_t and gid_t
types.h code to here, but typedef __dev_t, __uid_t, and __gid_t instead.
Change to lower case for all __foo_t_defined names.
* libc/machine/spu/machine/_types.h: Add SPU specific __dev_t,
__uid_t, and __gid_t making them all four bytes. Change to lower case
for all __foo_t_defined names.
2007-09-18 20:05:17 +00:00
Jeff Johnston
3908c98592
2007-09-18 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/reent/renamer.c: New file.
* libc/reent/Makefile.am: Add new file.
* libc/reent/Makefile.in: Regenerated.
* libc/stdio/rename.c: Break out _rename_r code into reent/renamer.c
and add check for rename syscall.
2007-09-18 19:32:43 +00:00
Corinna Vinschen
4090f565a8
* mmap.cc (fh_disk_file): Delete as global static variable and...
...
(mmap64): ...define as local pointer to make mmap thread-safe.
Accommodate throughout. Only initialize fh_disk_file after file could
be opened with GENERIC_EXECUTE access. Call fstat_by_handle instead of
fstat to avoid overhead.
2007-09-18 15:59:50 +00:00
Corinna Vinschen
d81b646dc3
* security.cc (set_file_sd): Open file with FILE_OPEN_FOR_BACKUP_INTENT
...
too.
2007-09-18 14:36:29 +00:00
Corinna Vinschen
6c8c58e7f4
* path.cc (symlink_info::check): Check for STATUS_OBJECT_NAME_INVALID.
...
Add comment.
2007-09-18 11:05:44 +00:00
H.J. Lu
668b4a9519
bfd/
...
2007-09-17 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/3281
PR binutils/5037
* elf-bfd.h (elf_obj_tdata): Remove relro.
* elf.c (get_program_header_size): Check info->relro instead
of elf_tdata (abfd)->relro.
(_bfd_elf_map_sections_to_segments): Likewise.
(assign_file_positions_for_load_sections): Don't set
PT_GNU_RELRO segment alignment here.
(assign_file_positions_for_non_load_sections): Properly set up
PT_GNU_RELRO segment for copying executable/shared library.
(rewrite_elf_program_header): Remove PT_GNU_RELRO segment.
(copy_elf_program_header): Set p_size and p_size_valid fields for
PT_GNU_RELRO segment.
include/elf/
2007-09-17 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/3281
PR binutils/5037
* internal.h (elf_segment_map): Add p_size and p_size_valid.
(ELF_IS_SECTION_IN_SEGMENT): Allow SHF_TLS sections in
PT_GNU_RELRO segments.
ld/
2007-09-17 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/3281
PR binutils/5037
* ldexp.h (ldexp_control): Add relro, relro_start_stat and
relro_end_stat.
* ldexp.c (fold_binary): Set expld.dataseg.relro to
exp_dataseg_relro_start or exp_dataseg_relro_end when
seeing DATA_SEGMENT_ALIGN or DATA_SEGMENT_RELRO_END,
respectively.
* ldlang.c (lang_size_sections_1): Properly set
expld.dataseg.relro_start_stat and
expld.dataseg.relro_end_stat.
(find_relro_section_callback): New function.
(lang_find_relro_sections_1): Likewise.
(lang_find_relro_sections): Likewise.
(lang_process): Call lang_find_relro_sections for
non-relocatable link.
ld/testsuite/
2007-09-17 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/3281
PR binutils/5037
* ld-elf/binutils.exp: Update "-z relro" tests to use relro1.s.
Add "-z relro" tests with relro2.s. Add "-z relro" tests with
TLS for objcopy.
* ld-elf/relro1.s: New file.
* ld-elf/relro2.s: Likewise.
2007-09-18 00:25:07 +00:00
Andreas Schwab
76053dfb52
* configure.ac: Raise minimum makeinfo version to 4.6.
...
* configure: Regenerate.
2007-09-17 20:59:06 +00:00
Eric Blake
ba21046d03
Obey POSIX on printf("%.s", (char*)NULL).
...
* libc/stdio/vfprintf.c (_VFPRINTF_R): Take precision into account
for %s on NULL. Skip NULL check when optimizing for size.
2007-09-17 20:14:29 +00:00
Corinna Vinschen
8e34786463
* fhandler.cc (fhandler_base::open): Partly revert change from
...
2007-08-24: Call has_acls to avoid permission problems getting
a handle to a file on a remote share. Add comment.
2007-09-17 16:48:14 +00:00
Alan Modra
70e728c2db
* configure.ac: Correct makeinfo version check.
...
* configure: Regenerate.
2007-09-14 15:47:01 +00:00
Richard Sandiford
524e457026
* configure.ac (mips*-sde-elf*): New stanza. Add target-libiberty
...
to $skipdirs and only disable gprof for newlib. Use the normal
mips*-elf* handling in other respects.
* configure: Regnerate.
2007-09-14 14:51:36 +00:00
DJ Delorie
130377028d
Rearrange to sync with gcc.
2007-09-12 18:51:47 +00:00
David Daney
1b410bcf08
2007-09-12 David Daney <ddaney@avtrex.com>
...
* configure.ac: Remove mips64*-*-linux* noconfigdirs section, thus
enabling libgcj.
* configure: Regenerate.
2007-09-12 Richard Guenther <rguenther@suse.de>
* configure.ac (--enable-stage1-checking): If neither --enable-checking
nor --disable-checking is provided also turn on yes and types
checking for stage1.
* configure: Re-generate.
2007-09-12 17:51:22 +00:00
H.J. Lu
420cb19173
Move the last entry to proper ChangeLog.
2007-09-12 04:42:14 +00:00
Kazu Hirata
cfc7cd1274
bfd/
...
* archures.c: Add bfd_mach_mcf_isa_c_nodiv,
bfd_mach_mcf_isa_c_nodiv_mac & bfd_mach_mcf_isa_c_nodiv_emac.
* ieee.c (ieee_write_processor): Update coldfire architecture
list.
* bfd-in2.h: Rebuilt.
* cpu-m68k.c (arch_info_struct): Add isa_c nodiv architectures.
(m68k_arch_features): Likewise.
* elf32-m68k.c (elf32_m68k_object_p): Add EF_M68K_CF_ISA_C_NODIV.
(elf32_m68k_print_private_bfd_data): Likewise.
gas/
* config/tc-m68k.c (m68k_ip): Add mcfisa_c case.
(m68k_elf_final_processing): Add EF_M68K_CF_ISA_C_NODIV.
include/elf/
* m68k.h (EF_M68K_CF_ISA_C_NODIV): New.
2007-09-11 16:07:50 +00:00
Andrew Haley
fd1c1753af
2007-09-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
...
PR target/33281
* configure.ac: Use config/mh-mingw on mingw.
* configure: Regenerate.
* config/mh-mingw: New host makefile fragment.
2007-09-11 13:10:20 +00:00
DJ Delorie
46093329c3
2007-09-10 Rask Ingemann Lambertsen <rask@sygehus.dk>
...
PR other/32154
* configure.ac: For libgloss targets, point the linker to the linker
script, startup code and simulator library.
* configure: Regenerate.
2007-09-11 00:22:05 +00:00
Andrew Haley
602c33ba46
2007-09-09 Andrew Haley <aph@redhat.com>
...
* configure.ac (noconfigdirs): Remove target-libffi and
target-libjava.
2007-09-09 08:19:50 +00:00
Brian Dessent
1515ce296a
* include/cygwin/config.h: Conditionalize inline __getreent()
...
definition on _COMPILING_NEWLIB.
2007-09-08 10:51:37 +00:00
Jeff Johnston
e5ae72300f
2007-09-07 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/sys/_types.h: Protect all types with flag
checks to allow definition in machine/_types.h.
2007-09-07 21:24:55 +00:00
Jeff Johnston
36fe6da675
2007-09-07 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/sys/_types.h: Add _fpos_t and _fpos64_t
definitions in light of the previous change.
2007-09-07 21:18:03 +00:00
Jeff Johnston
dde223343c
2007-09-07 Patrick Mansfield <patmans@us.ibm.com>
...
* libc/include/machine/_default_types.h: New file, contains what
was previously in libc/include/machine/_types.h.
* libc/include/machine/_types.h: Now only includes
machine/_default_types.h.
* libc/include/sys/reent.h: Remove _fpos_t and _fpos64_t.
* libc/include/sys/_types.h: Move _fpos_t and _fpos64_t to here,
with conditional declarations.
* libc/machine/spu/machine/_types.h: New file, add SPU specific
typedefs for _fpos_t and _fpos64_t.
2007-09-07 21:16:25 +00:00
Jeff Johnston
78e66fb978
2007-09-07 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/math.h (_M_LOG2E): Replace with..
(_M_LOG2_E): New macro.
(log2, log2f, M_LOG2_E): Use _M_LOG2_E.
2007-09-07 15:30:59 +00:00
Richard Sandiford
e57c0627c3
config/
...
* mt-sde (CFLAGS_FOR_TARGET): Add -mno-gpopt.
(CXXFLAGS_FOR_TARGET): Likewise.
2007-09-07 07:38:47 +00:00
Brian Dessent
345c159562
* libc/reent/getreent.c: Allow for case where __getreent is
...
defined as a macro.
2007-09-07 00:45:55 +00:00
Brian Dessent
6e08b2f7f8
* include/cygwin/config.h (__getreent): Define inline version.
2007-09-07 00:44:27 +00:00
Jeff Johnston
e65aa07ac6
Fix typo in ChangeLog and math.h.
2007-09-06 19:55:34 +00:00
Jeff Johnston
6494ee837c
2007-09-06 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/math.h (_M_LOG2E): New log2 of e macro.
(log2): Use _M_LOG2E instead of M_LOG2E.
(log2f): Ditto.
(M_LOG2E): Define to be _M_LOG2E.
2007-09-06 19:51:46 +00:00
Brian Dessent
1eb76b8f84
* include/sys/stdio.h (_flockfile): Don't try to lock a FILE
...
that has the __SSTR flag set.
(_ftrylockfile): Likewise.
(_funlockfile): Likewise.
2007-09-06 18:47:44 +00:00
DJ Delorie
b95701711b
merge from gcc
2007-09-06 17:22:36 +00:00
Jeff Johnston
86a934d225
2007-09-04 Kazunori Asayama <asayama@sm.sony.co.jp>
...
* libm/math/wf_tgamma.c: Add missing include.
2007-09-04 17:33:10 +00:00
Christopher Faylor
3509dfbbca
* configure: Regenerate.
2007-08-31 23:11:04 +00:00
Jeff Johnston
6ddf8bef40
2007-08-31 Antony King <antony.king@st.com>
...
* libc/stdlib/mprec.h [_DOUBLE_IS_32BITS}: Define IEEE_Arith
bits and redefine associated dword0 macro (rvalue issue).
* libc/stdio/vfieeefp.h: Ditto.
* libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
to prevent setting dword1 which is an rvalue only.
2007-08-31 21:21:27 +00:00
DJ Delorie
95500c2eff
merge from gcc
2007-08-31 20:20:44 +00:00
Dave Korn
d848b3419f
2007-08-31 Dave Korn <dave.korn@artimi.com>
...
* mkgroup.c (enum_groups): Use MAX_PREFERRED_LENGTH in netgroupenum
call so that it will automatically size returned buffer sufficiently.
2007-08-31 00:39:41 +00:00
Richard Sandiford
b440439a89
Move changelog
2007-08-30 20:22:12 +00:00
Nick Clifton
7132f76c96
* config.sub, config.guess: Update from upstream sources.
2007-08-29 15:23:21 +00:00
Nick Clifton
d48946a61e
* config.sub: Add support for cr16 target.
2007-08-29 08:57:40 +00:00
Jeff Johnston
d4a2788652
2007-08-28 Hans Kester <hans.kester@ellips.nl>
...
* configure.host: Added support for x86_64.
* libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for x86_64.
* libc/include/machine/setjmp.h: Define _JBTYPE and _JBLEN for x86_64.
* libc/machine/x86_64/aclocal.m4: Generated.
* libc/machine/x86_64/configure.in: New.
* libc/machine/x86_64/configure: Generated.
* libc/machine/x86_64/Makefile.am: New.
* libc/machine/x86_64/Makefile.in: Generated.
* libc/machine/x86_64/setjmp.S: New.
* libc/machine/x86_64/memcpy.S: New.
* libc/machine/x86_64/memset.S: New.
* libc/machine/configure.in: Added support for x86_64.
* libc/machine/configure: Regenerated.
2007-08-28 21:56:50 +00:00
Keith Marshall
01cd95204e
Make snprintf() and vsnprintf() conform to C99.
2007-08-25 13:49:37 +00:00
Alan Modra
80bed8e0a4
include/elf/
...
* common.h (NT_SPU): Define.
bfd/
* elf.c (elfcore_grok_spu_note): New function.
(elf_parse_notes): Call it.
binutils/
* readelf.c (process_note): Recognize SPU core file notes.
2007-08-25 13:20:40 +00:00
Jeff Johnston
309faeb5ca
2007-08-24 Jeff Johnston <jjohnstn@redhat.com>
...
* libm/common/sf_lround.c (lroundf): Cast sizeof calculation
to int before comparing it to a signed int value.
2007-08-24 20:49:59 +00:00
Corinna Vinschen
70650b2db4
* syscalls.cc (open): Don't follow symlinks if O_EXCL is given.
2007-08-24 14:55:56 +00:00
Christopher Faylor
c60c72d718
* dll.sgml: myprog.ca -> myprog.c
2007-08-24 14:52:39 +00:00