OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
19 years ago * gas/mips/mips.exp: Move tls tests to main $elf block.
rsandifo [Thu, 3 Mar 2005 15:01:48 +0000 (15:01 +0000)]
* gas/mips/mips.exp: Move tls tests to main $elf block.

19 years ago* gas/arm/arch6zk.s: Add three nop instructions in order to pad the .text
nickc [Thu, 3 Mar 2005 14:41:34 +0000 (14:41 +0000)]
* gas/arm/arch6zk.s: Add three nop instructions in order to pad the .text
   section out to a 32-byte boundary as will automatically be done by the
   arm-aout target.
* gas/arm/arch6zk.d: Add expected nop disassemblies.

19 years ago(tc_gen_reloc): Handle the case where the reloc is the difference of two
nickc [Thu, 3 Mar 2005 13:49:56 +0000 (13:49 +0000)]
(tc_gen_reloc): Handle the case where the reloc is the difference of two
symbols defined in the same section.

19 years ago(line_comment_chars): Include the # character as otherwise this breaks
nickc [Thu, 3 Mar 2005 13:03:44 +0000 (13:03 +0000)]
(line_comment_chars): Include the # character as otherwise this breaks
#APP/#NO_APP processing.

19 years agoRemove listing lines that are no longer emitted and fix up expected binary
nickc [Thu, 3 Mar 2005 12:35:17 +0000 (12:35 +0000)]
Remove listing lines that are no longer emitted and fix up expected binary
encoding.

19 years ago2005-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
ramana [Thu, 3 Mar 2005 12:13:16 +0000 (12:13 +0000)]
2005-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>

* gas/arc/extensions.s: Add tests for extcoreregister
* gas/arc/extensions.d: Likewise.
* gas/arc/warn.s: Warnings for readonly core registers
accessed .
* gas/arc/warn.d:Likewise.
* testsuite/gas/arc/arc.exp:Run extensions testcase.

19 years agoupdate copyright dates
amodra [Thu, 3 Mar 2005 12:05:12 +0000 (12:05 +0000)]
update copyright dates

19 years agoupdate copyright dates
amodra [Thu, 3 Mar 2005 11:58:00 +0000 (11:58 +0000)]
update copyright dates

19 years agoupdate copyright dates
amodra [Thu, 3 Mar 2005 11:51:55 +0000 (11:51 +0000)]
update copyright dates

19 years agoupdate copyright dates
amodra [Thu, 3 Mar 2005 11:49:47 +0000 (11:49 +0000)]
update copyright dates

19 years agoupdate copyright dates
amodra [Thu, 3 Mar 2005 11:47:45 +0000 (11:47 +0000)]
update copyright dates

19 years agoupdate copyright dates
amodra [Thu, 3 Mar 2005 11:46:12 +0000 (11:46 +0000)]
update copyright dates

19 years agoupdate copyright dates
amodra [Thu, 3 Mar 2005 11:40:55 +0000 (11:40 +0000)]
update copyright dates

19 years ago * gas/mips/noat-1.d: Add -mips1 to assembler options.
rsandifo [Thu, 3 Mar 2005 10:32:09 +0000 (10:32 +0000)]
* gas/mips/noat-1.d: Add -mips1 to assembler options.

19 years ago2005-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
ramana [Thu, 3 Mar 2005 05:31:40 +0000 (05:31 +0000)]
2005-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>

* gas/arc/ld.s:Add checks for short immediates with ld
* gas/arc/ld.d:Likewise.

19 years ago2005-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
ramana [Thu, 3 Mar 2005 05:30:10 +0000 (05:30 +0000)]
2005-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>

        * config/tc-arc.c(md_assemble): Remove dead code for handling
        immediate indexing with ld and st.

19 years ago2005-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
ramana [Thu, 3 Mar 2005 05:30:01 +0000 (05:30 +0000)]
2005-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>

        * config/tc-arc.c(md_assemble): Remove dead code for handling
        immediate indexing with ld and st.

19 years agoupdate copyright dates
amodra [Thu, 3 Mar 2005 01:29:52 +0000 (01:29 +0000)]
update copyright dates

19 years agoformatting, tack emacs control vars at end
amodra [Thu, 3 Mar 2005 01:27:10 +0000 (01:27 +0000)]
formatting, tack emacs control vars at end

19 years agofix changelog garbling
cgf [Thu, 3 Mar 2005 01:06:30 +0000 (01:06 +0000)]
fix changelog garbling

19 years ago* autoload.cc (std_dll_init): Save and restore fpu control register around
cgf [Thu, 3 Mar 2005 00:49:51 +0000 (00:49 +0000)]
* autoload.cc (std_dll_init): Save and restore fpu control register around
LoadAddress to prevent loaded dlls (like msvcrt.dll) from setting unwanted
stuff.

19 years ago* cygtls.cc (_cygtls::remove): Don't attempt any removal activities if exitsock
cgf [Thu, 3 Mar 2005 00:36:49 +0000 (00:36 +0000)]
* cygtls.cc (_cygtls::remove): Don't attempt any removal activities if exitsock
is zero.

19 years ago* cygtls.cc (_cygtls::init_thread): Move exitsock setting later. It should
cgf [Thu, 3 Mar 2005 00:32:57 +0000 (00:32 +0000)]
* cygtls.cc (_cygtls::init_thread): Move exitsock setting later.  It should
always be set.
(_cygtls::remove): Detect zero exitsock.  Not quite sure why this is needed.

19 years ago*** empty log message ***
gdbadmin [Thu, 3 Mar 2005 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

19 years agodaily update
amodra [Wed, 2 Mar 2005 23:00:05 +0000 (23:00 +0000)]
daily update

19 years ago * config/tc-mips.c (percent_op): Add %tlsgd, %tlsldm, %dtprel_hi,
drow [Wed, 2 Mar 2005 21:23:32 +0000 (21:23 +0000)]
* config/tc-mips.c (percent_op): Add %tlsgd, %tlsldm, %dtprel_hi,
%dtprel_lo, %tprel_hi, %tprel_lo, and %gottprel.
(parse_relocation): Check for a word break after a relocation
operator.
(md_apply_fix3): Handle TLS relocations, and mark thread-local
symbols.

19 years ago * elfxx-mips.c (struct mips_got_entry): Add tls_type.
drow [Wed, 2 Mar 2005 21:23:18 +0000 (21:23 +0000)]
* elfxx-mips.c (struct mips_got_entry): Add tls_type.
(struct mips_got_info): Add tls_gotno, tls_assigned_gotno,
and tls_ldm_offset.
(struct mips_elf_got_per_bfd_arg): Add global_count.
(struct mips_elf_count_tls_arg): New.
(struct mips_elf_hash_sort_data): Update comment for min_got_dynindx.
(struct mips_elf_link_hash_entry): Add tls_type and tls_got_offset.
(GOT_NORMAL, GOT_TLS_GD, GOT_TLS_LDM, GOT_TLS_IE)
(GOT_TLS_OFFSET_DONE, GOT_TLS_DONE): Define.
(TLS_RELOC_P): Define.
(TP_OFFSET, DTP_OFFSET): Define.
(dtprel_base, tprel_base): New functions.
(mips_elf_link_hash_newfunc): Initialize tls_type.
(mips_elf_got_entry_hash, mips_elf_got_entry_eq)
(mips_elf_multi_got_entry_hash, mips_elf_multi_got_entry_eq): Handle
TLS entries.
(mips_tls_got_relocs, mips_elf_count_local_tls_relocs)
(mips_elf_count_global_tls_entries, mips_elf_count_global_tls_relocs)
(mips_elf_output_dynamic_relocation, mips_elf_initialize_tls_slots)
(mips_tls_got_index): New functions.
(mips_elf_local_got_index): Add new R_SYMNDX, H, and R_TYPE
arguments.  Pass them to mips_elf_create_local_got_entry.  Use
mips_tls_got_index.
(mips_elf_global_got_index): Add new R_TYPE and INFO arguments.
Handle TLS entries.
(mips_elf_got_page, mips_elf_got16_entry): Update calls to
mips_elf_create_local_got_entry.
(mips_elf_create_local_got_entry): Add new R_SYMNDX, H, and R_TYPE
arguments.  Handle TLS entries.
(mips_elf_sort_hash_table_f): Add non-TLS assertions.
(mips_elf_record_local_got_symbol): Add new TLS_FLAG argument.  Handle
TLS entries.
(mips_elf_record_global_got_symbol): Likewise.
(mips_elf_make_got_per_bfd): Initialize new mips_got_info members.
Count TLS entries.
(mips_elf_merge_gots): Handle TLS entries when merging.
(mips_elf_initialize_tls_index): New function.
(mips_elf_set_global_got_offset): Handle TLS entries.
(mips_elf_adjust_gp): Handle TLS.
(mips_elf_multi_got): Remove redundant call to
mips_elf_resolve_final_got_entries.  Initialize global_count.
Correct a comment.  Initialize new TLS members of mips_got_info.
Assign TLS GOT indexes for new GOTs.
(mips_elf_create_got_section): Initialize new TLS members of
mips_got_info.
(mips_elf_calculate_relocation): Handle TLS relocs.
(_bfd_mips_elf_check_relocs): Likewise.  Update calls to changed
functions.
(_bfd_mips_elf_always_size_sections): Handle TLS.
(_bfd_mips_elf_size_dynamic_sections): Likewise.
(_bfd_mips_elf_finish_dynamic_symbol): Likewise.  Update calls to
changed functions.
(_bfd_mips_elf_copy_indirect_symbol): Copy tls_type.
(_bfd_mips_elf_hide_symbol): Handle TLS.
* elfn32-mips.c (elf_mips_howto_table_rel, elf_mips_howto_table_rela)
(mips_reloc_map): Add TLS relocs.
* elf32-mips.c (elf_mips_howto_table_rel, mips_reloc_map): Likewise.
* elf64-mips.c (mips_elf64_howto_table_rel)
(mips_elf64_howto_table_rela, mips_reloc_map): Likewise.
* reloc.c: Define new MIPS TLS relocations.
* libbfd.h, bfd-in2.h: Regenerated.

19 years ago * ld-mips-elf/tlsbin-o32.s, ld-mips-elf/mips-dyn.ld,
drow [Wed, 2 Mar 2005 21:22:56 +0000 (21:22 +0000)]
* ld-mips-elf/tlsbin-o32.s, ld-mips-elf/mips-dyn.ld,
ld-mips-elf/tlslib-o32.got, ld-mips-elf/tlslib-o32.d,
ld-mips-elf/tlslib-o32.s, ld-mips-elf/mips-lib.ld,
ld-mips-elf/tlsbin-o32.got, ld-mips-elf/tlsdyn-o32.d,
ld-mips-elf/tlsdyn-o32.got, ld-mips-elf/tlsbin-o32.d,
ld-mips-elf/tlsdyn-o32.s, ld-mips-elf/tls-multi-got-1.got,
ld-mips-elf/tls-multi-got-1-1.s, ld-mips-elf/tls-multi-got-1.d,
ld-mips-elf/tls-multi-got-1.r, ld-mips-elf/tls-multi-got-1-2.s,
ld-mips-elf/tlslib-o32-ver.got, ld-mips-elf/tlslib.ver,
ld-mips-elf/tlslib-o32-hidden.got, ld-mips-elf/tlslib-hidden.ver,
ld-mips-elf/tlsdyn-o32-1.d, ld-mips-elf/tlsdyn-o32-3.got,
ld-mips-elf/tlsdyn-o32-2.d, ld-mips-elf/tlsdyn-o32-2.s,
ld-mips-elf/tlsdyn-o32-3.d, ld-mips-elf/tlsdyn-o32-1.got,
ld-mips-elf/tlsdyn-o32-2.got: New files.
* ld-mips-elf/mips-elf.exp: Run the new tests.

19 years ago * gas/mips/tls-o32.d, gas/mips/tls-o32.s, gas/mips/tls-ill.l,
drow [Wed, 2 Mar 2005 21:22:46 +0000 (21:22 +0000)]
* gas/mips/tls-o32.d, gas/mips/tls-o32.s, gas/mips/tls-ill.l,
gas/mips/tls-ill.s: New files.
* gas/mips/mips.exp: Run TLS tests.

19 years ago * mips.h: Define MIPS TLS relocations.
drow [Wed, 2 Mar 2005 21:21:50 +0000 (21:21 +0000)]
* mips.h: Define MIPS TLS relocations.

19 years ago* autoload.cc (LoadDLLprime): Mask error code to low-order 16 bits.
cgf [Wed, 2 Mar 2005 16:13:20 +0000 (16:13 +0000)]
* autoload.cc (LoadDLLprime): Mask error code to low-order 16 bits.
(noload): Preserve sign when returning error code.

19 years ago* spawn.cc (do_cleanup): Properly restore SIGINT/SIGQUIT even if they had
cgf [Wed, 2 Mar 2005 15:32:29 +0000 (15:32 +0000)]
* spawn.cc (do_cleanup): Properly restore SIGINT/SIGQUIT even if they had
previously been SIG_DFL.

19 years ago * linux-nat.c (linux_supports_tracevforkdone, child_follow_fork):
drow [Wed, 2 Mar 2005 15:07:49 +0000 (15:07 +0000)]
* linux-nat.c (linux_supports_tracevforkdone, child_follow_fork):
Use LWP IDs.

19 years ago * linux-nat.c (linux_supports_tracevforkdone, child_follow_fork):
drow [Wed, 2 Mar 2005 15:07:39 +0000 (15:07 +0000)]
* linux-nat.c (linux_supports_tracevforkdone, child_follow_fork):
Use LWP IDs.

19 years ago * gas/ppc/astest.d: Adjust for relocs reduced to section sym.
amodra [Wed, 2 Mar 2005 13:25:00 +0000 (13:25 +0000)]
* gas/ppc/astest.d: Adjust for relocs reduced to section sym.
* gas/ppc/astest2.d: Likewise.
* gas/ppc/astest2_64.d: Likewise.
* ppc/astest64.d: Likewise.
* ppc/booke.d: Likewise.
* ppc/power4.d: Likewise.
* ppc/test1elf32.d: Likewise.
* ppc/test1elf64.d: Likewise.

19 years ago * config/tc-ppc.c (ppc_fix_adjustable <ELF>): Remove bogus checks.
amodra [Wed, 2 Mar 2005 13:23:56 +0000 (13:23 +0000)]
* config/tc-ppc.c (ppc_fix_adjustable <ELF>): Remove bogus checks.

19 years agobfd/
jbeulich [Wed, 2 Mar 2005 09:03:45 +0000 (09:03 +0000)]
bfd/
2005-03-02  Jan Beulich  <jbeulich@novell.com>

* Makefile.am: Add dependency of cache.o on libiberty.h.
* cache.c: Include libiberty.h.
(bfd_open_file): Use unlink_if_ordinary instead of unlink.

binutils/
2005-03-02  Jan Beulich  <jbeulich@novell.com>

* ar.c (remove_output): Use unlink_if_ordinary instead of unlink.
* objcopy.c (copy_file): Likewise.
(strip_main): Likewise.

gas/
2005-03-02  Jan Beulich  <jbeulich@novell.com>

* as.c (main): Use unlink_if_ordinary instead of unlink.
* messages.c (as_fatal): Likewise.

ld/
2005-03-02  Jan Beulich  <jbeulich@novell.com>

* ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
* pe-dll.c (pe_dll_generate_implib): Likewise.

19 years ago * fhandler_disk_file.cc (fhandler_disk_file::touch_ctime): Replace
corinna [Wed, 2 Mar 2005 08:28:46 +0000 (08:28 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::touch_ctime): Replace
GetSystemTime/SystemTimeToFileTime with GetSystemTimeAsFileTime.
* times.cc (time_as_timestruc_t): Ditto.
(time): Ditto.

19 years agogas/
jbeulich [Wed, 2 Mar 2005 08:01:19 +0000 (08:01 +0000)]
gas/
2005-03-02  Jan Beulich  <jbeulich@novell.com>

* config/tc-i386.c (build_modrm_byte): Add lock prefix for cr8...15
accesses.
(parse_register): Allow cr8...15 in all modes.

gas/testsuite/
2005-03-02  Jan Beulich  <jbeulich@novell.com>

* gas/i386/cr-err.[ls]: New.
* gas/i386/crx.[ds]: New.
* gas/i386/i386.exp: Run new tests.

opcodes/
2005-03-02  Jan Beulich  <jbeulich@novell.com>

* i386-dis.c (print_insn): Suppress lock prefix printing for cr8...15
accesses.
(OP_C): Consider lock prefix in non-64-bit modes.

19 years agogas/
jbeulich [Wed, 2 Mar 2005 07:54:54 +0000 (07:54 +0000)]
gas/
2005-03-02  Jan Beulich  <jbeulich@novell.com>

* config/tc-i386.c (intel_e11): If not followed by T_PTR, treat T_BYTE
etc. like normal symbol references (T_ID).

gas/testsuite/
2005-03-02  Jan Beulich  <jbeulich@novell.com>

* gas/i386/intelok.d: Add -r to objdump options. Adjust expectations.
* gas/i386/intelok.s: Add checks for various special memory operands.

19 years ago * elf.c (bfd_section_from_shdr <default case>): Call
zack [Wed, 2 Mar 2005 04:47:19 +0000 (04:47 +0000)]
* elf.c (bfd_section_from_shdr <default case>): Call
elf_backend_section_from_shdr hook unconditionally, and return
what it returns.
(bfd_section_from_phdr): Similarly, for elf_backend_section_from_phdr.
* elfxx-target.h (elf_backend_section_from_shdr)
(elf_backend_section_from_phdr): Default to
_bfd_elf_make_section_from_shdr and _bfd_elf_make_section_from_phdr
respectively.

19 years ago * symbols.c (fb_label_name): Fix silly thinko in last change.
amodra [Wed, 2 Mar 2005 00:11:29 +0000 (00:11 +0000)]
* symbols.c (fb_label_name): Fix silly thinko in last change.

19 years ago*** empty log message ***
gdbadmin [Wed, 2 Mar 2005 00:00:35 +0000 (00:00 +0000)]
*** empty log message ***

19 years agodaily update
amodra [Tue, 1 Mar 2005 23:00:05 +0000 (23:00 +0000)]
daily update

19 years ago * expr.c (integer_constant): Remove TARGET_WORD_SIZE hack.
amodra [Tue, 1 Mar 2005 22:35:20 +0000 (22:35 +0000)]
* expr.c (integer_constant): Remove TARGET_WORD_SIZE hack.
* config/tc-m68k.h (TARGET_WORD_SIZE): Delete.

19 years agoPR libgcj/20160
aoliva [Tue, 1 Mar 2005 22:33:54 +0000 (22:33 +0000)]
PR libgcj/20160
* ltmain.sh: Avoid creating archives with components that have
duplicate basenames.

19 years ago * symbols.c (fb_label_name): Allow an augend of 2 for mmix.
amodra [Tue, 1 Mar 2005 22:24:12 +0000 (22:24 +0000)]
* symbols.c (fb_label_name): Allow an augend of 2 for mmix.
also fix last changelog entry.

19 years ago* include/cygwin/version.h: Bump DLL minor number to 14.
cgf [Tue, 1 Mar 2005 20:20:41 +0000 (20:20 +0000)]
* include/cygwin/version.h: Bump DLL minor number to 14.

19 years agoRevert previous delta
nickc [Tue, 1 Mar 2005 17:11:49 +0000 (17:11 +0000)]
Revert previous delta

19 years agold-d10v/default_layout.d: Adjust expected offsets to allow for section alignment.
nickc [Tue, 1 Mar 2005 17:07:50 +0000 (17:07 +0000)]
ld-d10v/default_layout.d: Adjust expected offsets to allow for section alignment.

ld-discard/extern.d: Adjust expected warning to take into account the fact that
the linker's name might be included and that the reloc might have been adjusted
to be against the section symbol.

19 years ago* ld-cris/warn3.d: Only run this version of the test for cris-aout targets.
nickc [Tue, 1 Mar 2005 16:14:26 +0000 (16:14 +0000)]
* ld-cris/warn3.d: Only run this version of the test for cris-aout targets.
* ld-cris/warn4.d: Only run this version of the test for cris-elf targets.

19 years agoFix undefined local label test for COFF based ARM ports
nickc [Tue, 1 Mar 2005 15:39:56 +0000 (15:39 +0000)]
Fix undefined local label test for COFF based ARM ports

19 years agoobjdump.c: Fix coding for DISASSEMBLER_NEEDS_RELOC:
nickc [Tue, 1 Mar 2005 15:18:40 +0000 (15:18 +0000)]
objdump.c: Fix coding for DISASSEMBLER_NEEDS_RELOC:
(struct objdump_disasm_info): Add 'reloc' field.
(disassemble_bytes): Fix check for when an insn has a reloc associated with it.
Improve comment explaining why the use of octets is wrong.  Set the 'reloc'
field in objdump_disasm_info structure.
(objdump_print_addr): Use new 'reloc' field to lookup the correct address for
the symbol associated with the current instruction's relocation.
(disassemble_info): Initialise 'reloc' field.

gas/arm/inst.d: Allow for ARM ports which decode the reloc associated with
branches and so show the exact symbolic destination address rather than an
offset from the start of the section.

gas/arm/pic.d: Likewise.

19 years ago2005-03-01 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
ramana [Tue, 1 Mar 2005 15:05:24 +0000 (15:05 +0000)]
2005-03-01  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>

PR gas/708
* config/tc-arc.c(md_assemble):Initialize suffix for extension
suffixes also.
* testsuite/gas/arc/extensions.s:New file
* testsuite/gas/arc/extensions.d:New file

19 years agomerge from gcc
dj [Tue, 1 Mar 2005 14:32:59 +0000 (14:32 +0000)]
merge from gcc

19 years agomerge from gcc
dj [Tue, 1 Mar 2005 14:32:30 +0000 (14:32 +0000)]
merge from gcc

19 years ago * fhandler_clipboard.cc (fhandler_dev_clipboard::write): Never set
corinna [Tue, 1 Mar 2005 11:51:25 +0000 (11:51 +0000)]
* fhandler_clipboard.cc (fhandler_dev_clipboard::write): Never set
errno to 0.
(fhandler_dev_clipboard::read): Ditto.
* fhandler_windows.cc (fhandler_windows::read): Ditto.
* scandir.cc (scandir): Ditto.
* syscalls.cc (_fstat64_r): Ditto.
(_fstat_r): Ditto.
(_stat64_r): Ditto.
(_stat_r): Ditto.

* mmap.cc (mmap64): Fix /dev/zero mapping.

19 years ago * config/obj-coff.c (fixup_segment): Delete sy_mri_common assertion.
amodra [Tue, 1 Mar 2005 11:24:31 +0000 (11:24 +0000)]
* config/obj-coff.c (fixup_segment): Delete sy_mri_common assertion.

19 years ago * config/obj-coff.c (fixup_segment): Delete sy_mri_common assertion.
amodra [Tue, 1 Mar 2005 11:24:18 +0000 (11:24 +0000)]
* config/obj-coff.c (fixup_segment): Delete sy_mri_common assertion.

19 years ago * gas/m68k/mcf-emac.d: Allow for 64-bit addresses.
amodra [Tue, 1 Mar 2005 03:52:54 +0000 (03:52 +0000)]
* gas/m68k/mcf-emac.d: Allow for 64-bit addresses.
* gas/m68k/mcf-mac.d: Likewise.
* gas/m68k/mcf-mov3q.d: Likewise.
* gas/m68k/mode5.d: Likewise.

19 years agomerge from gcc
dj [Tue, 1 Mar 2005 02:22:06 +0000 (02:22 +0000)]
merge from gcc

19 years ago * as.h (assert): Warning fix.
amodra [Tue, 1 Mar 2005 02:00:13 +0000 (02:00 +0000)]
* as.h (assert): Warning fix.
* expr.c (expr): Correct assertion.
* read.c (s_comm_internal): Remove assertion.
* write.c (relax_segment): Enable vma assertion only for BFD_ASSEMBLER.
(fixup_segment): Remove assertion.
* config/tc-dlx.c (machine_ip): Remove untrue assertions.
(md_apply_fix3): Likewise.
* config/tc-i370.c (md_begin): Correct assertion.
(i370_macro): Warning fix for assertion.

19 years ago * config/tc-m68k.c (md_assemble): Don't use sizeof host short.
amodra [Tue, 1 Mar 2005 01:57:38 +0000 (01:57 +0000)]
* config/tc-m68k.c (md_assemble): Don't use sizeof host short.

19 years ago * targets.h: Typo fix.
amodra [Tue, 1 Mar 2005 01:56:26 +0000 (01:56 +0000)]
* targets.h: Typo fix.
* bfd-in2.h: Regenerate.

19 years ago * configure.in (AC_C_BIGENDIAN): Invoke.
amodra [Tue, 1 Mar 2005 00:43:47 +0000 (00:43 +0000)]
* configure.in (AC_C_BIGENDIAN): Invoke.
* configure: Regenerate.
* write.c (write_object_file <!BFD_ASSEMBLER>): Don't use sizeof
host variable to set string header size.
* config/obj-aout.c (obj_header_append): Don't use host structs.
(obj_symbol_to_chars): Likewise.
(obj_emit_strings): Likewise.  Use the passed in output pointer.
* config/obj-aout.h (H_GET_FILE_SIZE): Include H_GET_LINENO_SIZE.
* config/obj-bout.c (obj_emit_relocations): Use md_reloc_size,
not sizeof host struct.
(obj_header_append, obj_symbol_to_chars): Don't use host structs.
(obj_emit_strings): Likewise.
* config/obj-bout.h (EXEC_BYTES_SIZE): Define.
(N_TXTOFF, H_GET_FILE_SIZE, H_GET_HEADER_SIZE): Use instead of
sizeof host struct.
(H_SET_SYMBOL_TABLE_SIZE): Hard code sym size rather than using
sizeof host struct.
(host_number_to_chars): Define.
* config/obj-hp300.c (hp300_header_append): Don't use sizeof
host internal struct to set header sizes.
* config/tc-i960.c (md_number_to_field): Warning fix.
(md_ri_to_chars): Use host byte order.
(get_cdisp, md_apply_fix3): Warning fix.

19 years ago * bout.c (b_out_write_object_contents): Don't use sizeof on host
amodra [Tue, 1 Mar 2005 00:38:48 +0000 (00:38 +0000)]
* bout.c (b_out_write_object_contents): Don't use sizeof on host
structs to size on-disk structures.
(b_out_set_section_contents): Size the external struct, not the
internal one for on-disk size.
(b_out_sizeof_headers): Likewise.

19 years ago*** empty log message ***
gdbadmin [Tue, 1 Mar 2005 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

19 years ago * elf64-ppc.c (ppc64_elf_size_stubs): Override defined dot-sym
amodra [Mon, 28 Feb 2005 23:00:40 +0000 (23:00 +0000)]
* elf64-ppc.c (ppc64_elf_size_stubs): Override defined dot-sym
entry points with the func descriptor as well as undefweak.

19 years agodaily update
amodra [Mon, 28 Feb 2005 23:00:05 +0000 (23:00 +0000)]
daily update

19 years ago2005-02-28 Paul Brook <paul@codesourcery.com>
pbrook [Mon, 28 Feb 2005 22:03:03 +0000 (22:03 +0000)]
2005-02-28  Paul Brook  <paul@codesourcery.com>

* doc/c-arc.texi: Add missing @code.

19 years agoUpdate documentation about ARC's extension instructions.
nickc [Mon, 28 Feb 2005 18:05:05 +0000 (18:05 +0000)]
Update documentation about ARC's extension instructions.

19 years ago * dwarf2loc.c (loclist_read_variable): Set optimized_out
drow [Mon, 28 Feb 2005 17:00:48 +0000 (17:00 +0000)]
* dwarf2loc.c (loclist_read_variable): Set optimized_out
instead of reporting an error.
* valprint.c (value_check_printable): New function.
(common_val_print): New function.  Use value_check_printable.
(value_print): Use value_check_printable.
* value.h (common_val_print): Add prototype.

* c-valprint.c (c_val_print): Use common_val_print.
* cp-valprint.c (cp_print_value_fields): Likewise.
(cp_print_hpacc_virtual_table_entries): Likewise.
* f-valprint.c (f_val_print): Likewise.
* jv-valprint.c (java_value_print, java_print_value_fields):
Likewise.
* scm-valprint.c (scm_value_print): Likewise.
* stack.c (print_frame_args): Likewise.
* varobj.c (c_value_of_variable): Likewise.
* p-valprint.c (pascal_val_print, pascal_value_print): Likewise.
(pascal_object_print_value_fields): Likewise.  Update call to
pascal_object_print_static_field.
(pascal_object_print_static_field): Remove TYPE argument.  Use
common_val_print.

19 years ago * dwarf2loc.c (loclist_read_variable): Set optimized_out
drow [Mon, 28 Feb 2005 17:00:38 +0000 (17:00 +0000)]
* dwarf2loc.c (loclist_read_variable): Set optimized_out
instead of reporting an error.
* valprint.c (value_check_printable): New function.
(common_val_print): New function.  Use value_check_printable.
(value_print): Use value_check_printable.
* value.h (common_val_print): Add prototype.

* c-valprint.c (c_val_print): Use common_val_print.
* cp-valprint.c (cp_print_value_fields): Likewise.
(cp_print_hpacc_virtual_table_entries): Likewise.
* f-valprint.c (f_val_print): Likewise.
* jv-valprint.c (java_value_print, java_print_value_fields):
Likewise.
* scm-valprint.c (scm_value_print): Likewise.
* stack.c (print_frame_args): Likewise.
* varobj.c (c_value_of_variable): Likewise.
* p-valprint.c (pascal_val_print, pascal_value_print): Likewise.
(pascal_object_print_value_fields): Likewise.  Update call to
pascal_object_print_static_field.
(pascal_object_print_static_field): Remove TYPE argument.  Use
common_val_print.

19 years ago(pe_ILF_build_a_bfd): Do not assume that an @ will be present when
nickc [Mon, 28 Feb 2005 16:07:27 +0000 (16:07 +0000)]
(pe_ILF_build_a_bfd): Do not assume that an @ will be present when
IMPORT_NAME_UNDOECRATE is used.

19 years ago2005-02-28 H.J. Lu <hongjiu.lu@intel.com>
hjl [Mon, 28 Feb 2005 15:57:08 +0000 (15:57 +0000)]
2005-02-28  H.J. Lu  <hongjiu.lu@intel.com>

PR 757
* elf-bfd.h (_bfd_elf_merge_symbol): Add a pointer to unsigned
int.

* elf32-sh-symbian.c (sh_symbian_relocate_section): Pass NULL
to _bfd_elf_merge_symbol.

* elflink.c (_bfd_elf_merge_symbol): Use the pointer to
unsigned int to return the alignment of the old common symbol
in the dynamic object.
(_bfd_elf_add_default_symbol): Pass NULL to
_bfd_elf_merge_symbol.
(elf_link_add_object_symbols): Pass &old_alignment to
_bfd_elf_merge_symbol. Get the alignment of the new common
symbol in the dynamic object.

19 years ago * readelf.c (get_file_type, get_machine_name, get_osabi_name,
jakub [Mon, 28 Feb 2005 15:27:14 +0000 (15:27 +0000)]
* readelf.c (get_file_type, get_machine_name, get_osabi_name,
get_segment_type, get_section_type_name, get_elf_class,
get_data_encoding, get_group_flags, dynamic_section_mips_val,
get_symbol_binding, get_symbol_type, get_TAG_name, get_FORM_name,
get_AT_name, process_mips_specific, process_gnu_liblist,
get_note_type, get_netbsd_elfcore_note_type): Use snprintf instead of
sprintf where needed.
(get_dynamic_type): Likewise.  Increase buff to 64 bytes.
(get_elf_section_flags): Increase buff to 33 bytes.  Avoid
using strcat.
(get_dynamic_flags): Renamed to...
(print_dynamic_flags): ... this.  Print the flags to stdout instead
of returning them as string.
(process_dynamic_section): Adjust caller.

19 years ago2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
bonzini [Mon, 28 Feb 2005 15:13:42 +0000 (15:13 +0000)]
2005-02-28  Andrew Pinski  <pinskia@physics.uc.edu>

        PR bootstrap/20250
        * Makefile.tpl (HOST target installs): Fix copy and pasto, use install
        instead of check.
        * Makefile.in: Regenerate.

19 years ago2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
bonzini [Mon, 28 Feb 2005 15:13:31 +0000 (15:13 +0000)]
2005-02-28  Andrew Pinski  <pinskia@physics.uc.edu>

        PR bootstrap/20250
        * Makefile.tpl (HOST target installs): Fix copy and pasto, use install
        instead of check.
        * Makefile.in: Regenerate.

19 years ago2005-02-28 Paolo Bonzini <bonzini@gnu.org>
bonzini [Mon, 28 Feb 2005 14:06:55 +0000 (14:06 +0000)]
2005-02-28  Paolo Bonzini  <bonzini@gnu.org>

Sync from gcc.

2005-02-28  Paolo Bonzini  <bonzini@gnu.org>

PR bootstrap/17383
* Makefile.def (target_modules): Remove "stage", now unnecessary.
* Makefile.tpl (HOST_SUBDIR): New substitution.
(STAGE_HOST_EXPORTS, EXPECT, HOST_LIB_PATH, USUAL_AR_FOR_TARGET,
USUAL_AS_FOR_TARGET, USUAL_DLLTOOL_FOR_TARGET, USUAL_GCC_FOR_TARGET,
USUAL_LD_FOR_TARGET, USUAL_NM_FOR_TARGET, USUAL_OBJDUMP_FOR_TARGET,
USUAL_RANLIB_FOR_TARGET, USUAL_WINDRES_FOR_TARGET): Use it.
(Host modules, Bootstrapped modules): Use it.
(Build modules, Target modules): Do not create symlink trees,
always configure out-of-srcdir.
(distclean): Try removing $(host_subdir) with rm before using rm -rf.
* configure.in (FLAGS_FOR_TARGET, CC_FOR_TARGET, GCJ_FOR_TARGET,
GFORTRAN_FOR_TARGET, CXX_FOR_TARGET, RAW_CXX_FOR_TARGET): Use
$(HOST_SUBDIR).  Create a symlink for host_subdir.

* Makefile.in: Regenerate.
* configure: Regenerate.

Merged from libada-gnattools-branch:
2004-11-28  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.def: Add gnattools as a module, depending on target-libada.
* Makefile.in: Regenerate.
* configure.in: Include gnattools in host_tools; disable it if ada
is disabled.
* configure: Regenerate.

config:
2005-02-28  Paolo Bonzini  <bonzini@gnu.org>

PR bootstrap/17383
* acx.m4 (GCC_TOPLEV_SUBDIRS): Set HOST_SUBDIR if an in-src
gcc build is going.

19 years ago * fhandler.h (class fhandler_socket): Declare new method
corinna [Mon, 28 Feb 2005 13:11:47 +0000 (13:11 +0000)]
* fhandler.h (class fhandler_socket): Declare new method
set_socketpair_eids.
* fhandler_socket.cc (fhandler_socket::set_socketpair_eids): New method.
(fhandler_socket::dup): Duplicate sec_pipe if necessary.
(fhandler_socket::listen): Only create sec_pipe if named pipes are
available. Initialized sec_peer_pid to 0 as on Linux.
(fhandler_socket::connect): Only run eid credential transaction if
named pipes are available.  Fake otherwise. Initialized sec_peer_pid
to 0 as on Linux.
(fhandler_socket::accept): Ditto.
(fhandler_socket::close): Move closing sec_pipe handle from here...
(fhandler_socket::~fhandler_socket): ... to here.
* net.cc (socketpair): Set eid credentials by calling
fhandler_socket::set_socketpair_eids() on both socket ends.
* wincap.h (wincaps::has_named_pipes): New element.
* wincap.cc: Implement above element throughout.

19 years agoremove unneeded blank line
cgf [Mon, 28 Feb 2005 01:55:45 +0000 (01:55 +0000)]
remove unneeded blank line

19 years ago*** empty log message ***
gdbadmin [Mon, 28 Feb 2005 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

19 years agodaily update
amodra [Sun, 27 Feb 2005 23:00:05 +0000 (23:00 +0000)]
daily update

19 years agoChanged my own mail address
sveinse [Sun, 27 Feb 2005 18:44:47 +0000 (18:44 +0000)]
Changed my own mail address

19 years ago* regtool.cc (opts): The argument to 'K' is not optional.
cgf [Sun, 27 Feb 2005 17:55:54 +0000 (17:55 +0000)]
* regtool.cc (opts): The argument to 'K' is not optional.
(main): Revert previous change.  Just let getopt deal with missing argument.

19 years ago* regtool.cc (main): Avoid a SEGV when nothing follows -K.
cgf [Sun, 27 Feb 2005 06:10:58 +0000 (06:10 +0000)]
* regtool.cc (main): Avoid a SEGV when nothing follows -K.

19 years ago* sigproc.cc (_pinfo::set_ctty): Move function
cgf [Sun, 27 Feb 2005 04:30:06 +0000 (04:30 +0000)]
* sigproc.cc (_pinfo::set_ctty): Move function
* pinfo.cc (_pinfo::set_ctty): to here.
* fhandler_mem.cc (fhandler_dev_mem::fstat): Don't fill out structure if this
is an on-disk device rather than an "auto" device.
* fhandler_raw.cc (fhandler_dev_raw::fstat): Ditto.
* path.cc (normalize_posix_path): Don't treat a standalone '//' as introducing
a UNC path.
(normalize_win32_path): Ditto.

19 years ago* kill (getsig): Avoid buffer overflow when generating a signal name.
cgf [Sun, 27 Feb 2005 03:03:19 +0000 (03:03 +0000)]
* kill (getsig): Avoid buffer overflow when generating a signal name.
* strace.cc (handle_output_debug_string): Make error a little more specific.

19 years ago*** empty log message ***
gdbadmin [Sun, 27 Feb 2005 00:00:07 +0000 (00:00 +0000)]
*** empty log message ***

19 years agodaily update
amodra [Sat, 26 Feb 2005 23:00:07 +0000 (23:00 +0000)]
daily update

19 years ago* debug.cc (delete_handle): Report on handle value in debugging output.
cgf [Sat, 26 Feb 2005 20:50:24 +0000 (20:50 +0000)]
* debug.cc (delete_handle): Report on handle value in debugging output.
* pinfo.h (_pinfo::exists): Declare "new" function.
(_pinfo::kill): Ditto.
* fhandler_termios.cc (tty_min::kill_pgrp): Use _pinfo::exists rather than
proc_exists.
* pinfo.cc (pinfo::init): Ditto.  Don't do a low_priority_sleep(0) when looping
to find exec'ed procinfo.
(pinfo::release): Be more careful about unmapping and closing.
* signal.cc (_pinfo::kill): Rename from kill_worker.  Accommodate entry into
_pinfo class.
(kill0): Use _pinfo::kill rather than kill_worker.
(kill_pgrp): Ditto.  Use _pinfo::exists rather than proc_exists.
* sigproc.cc (_pinfo::exists): Rename from proc_exists.
(pid_exists): Use _pinfo::exists rather than proc_exists.
(remove_proc): Ditto.
* sigproc.h (proc_exists): Delete declaration.

19 years ago2005-02-25 Mark Kettenis <kettenis@gnu.org>
ezannoni [Sat, 26 Feb 2005 04:32:53 +0000 (04:32 +0000)]
2005-02-25 Mark Kettenis  <kettenis@gnu.org>

Committed by Elena Zannoni <ezannoni@redhat.com>

* dwarf2read.c (dwarf2_build_psymtabs_hard): Adjust
info_ptr before building psymtabs for included files.
(create_all_comp_units): Initailize initial length size of
compilation header to zero.
(read_initial_length): Complain if both 32-bit and 64-bit DWARF
sections are encountered within the same compilation header.
(dwarf_decode_line_header): Pass compilation header in call to
read_initial_length.

19 years ago*** empty log message ***
gdbadmin [Sat, 26 Feb 2005 00:00:10 +0000 (00:00 +0000)]
*** empty log message ***

19 years agodaily update
amodra [Fri, 25 Feb 2005 23:00:06 +0000 (23:00 +0000)]
daily update

19 years ago2005-02-25 Ralf Corsepious <ralf.corsepius@rtems.org>
jjohnstn [Fri, 25 Feb 2005 22:38:44 +0000 (22:38 +0000)]
2005-02-25  Ralf Corsepious  <ralf.corsepius@rtems.org>

        * libm/common/fdlibm.h (FLT_UWORD_MAX, FLT_UWORD_HALF_MAX): Add
        L qualifier for these long constants.

19 years ago2005-02-25 Eric Blake <ebb9@byu.net>
jjohnstn [Fri, 25 Feb 2005 22:31:20 +0000 (22:31 +0000)]
2005-02-25  Eric Blake  <ebb9@byu.net>

        * libc/include/time.h (__tzrule_struct): Make offset long, since
        a 16-bit int overflows on a 12-hour offset.
        * libc/sys/linux/include/time.h: Ditto.
        * libc/time/mktime.c (mktime): Use new type of __tzrule.offset.
        * libc/time/mktm_r.c: Ditto.
        * libc/time/gettzinfo.c: Ditto.
        * libc/time/strftime.c (strftime): Fix '%x' to deal with negative
        years.  Fix '%z' to use long, not int.

19 years ago * generic/gdbtk.c (gdbtk_source_start_file): In the _WIN32 case,
kseitz [Fri, 25 Feb 2005 22:23:25 +0000 (22:23 +0000)]
    * generic/gdbtk.c (gdbtk_source_start_file): In the _WIN32 case,
        use throw_exception (struct exception).

19 years ago2005-02-25 H.J. Lu <hongjiu.lu@intel.com>
hjl [Fri, 25 Feb 2005 22:12:11 +0000 (22:12 +0000)]
2005-02-25  H.J. Lu  <hongjiu.lu@intel.com>

* readelf.c (display_debug_ranges): Print out offset for end of
list.

19 years ago * fhandler.h (class fhandler_base): Declare fixup_mmap_after_fork
corinna [Fri, 25 Feb 2005 21:23:14 +0000 (21:23 +0000)]
* fhandler.h (class fhandler_base): Declare fixup_mmap_after_fork
with additional flags parameter.  Change offset parameter to _off64_t.
(class fhandler_disk_file): Ditto.
(class fhandler_dev_mem): Ditto.
* fhandler_mem.cc (fhandler_dev_mem::fixup_mmap_after_fork):
Accomodate new parameters.
* mmap.cc: Include ntdll.h.
(class mmap_record): Add flags member.
(mmap_record::mmap_record): Add flags parameter.
(mmap_record::get_flags): New method.
(class map): Add next_anon_addr member to store next anonymous mapping
address suggestion.
(map::get_next_anon_addr): New method.
(map::set_next_anon_addr): New method.
(mmap64): Don't align offset and length to granularity in case of
MAP_ANONYMOUS on NT.  Check for already existing mapping only on 9x.
Call mmap_record::mmap_record with additional flags argument.
(fhandler_base::fixup_mmap_after_fork): Accomodate new parameters.
(fhandler_disk_file::mmap): Use NtMapViewOfSection with
AT_ROUND_TO_PAGE flag for anonymous mappings on NT.  If addr is NULL,
try to map adjacent to previous mapping.
(fhandler_disk_file::fixup_mmap_after_fork): Add flags argument.
Change offset parameter to _off64_t.  Use NtMapViewOfSection to
re-create anonymous mappings on NT.
(fixup_mmaps_after_fork): Accomodate new parameters when calling
fhandler's fixup_mmaps_after_fork function.
* ntdll.h (AT_ROUND_TO_PAGE): New define.

19 years ago * Fix ChangeLog entries.
corinna [Fri, 25 Feb 2005 11:48:02 +0000 (11:48 +0000)]
* Fix ChangeLog entries.