OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
14 years ago * configure.ac: Pass any --cache-file=/dev/null option on to
nickc [Fri, 25 Sep 2009 19:25:04 +0000 (19:25 +0000)]
    * configure.ac: Pass any --cache-file=/dev/null option on to
        subconfigures.
        * configure: Regenerate.

14 years ago Update soruces to make alpha, arc and arm targets compile cleanly
nickc [Fri, 25 Sep 2009 19:13:24 +0000 (19:13 +0000)]
    Update soruces to make alpha, arc and arm targets compile cleanly
        with -Wc++-compat:
        * config/tc-alpha.c: Add casts.
        (extended_bfd_reloc_code_real_type): New type. Used to avoid
        enumeration conversion warnings.
        (struct alpha_fixup, void assemble_insn, assemble_insn)
        (assemble_tokens): Use new type.
        * ecoff.c: Add casts. (mark_stabs): Use enumeration names.
        * config/obj-elf.c: Add cast
        * config/tc-arc.c: Add casts.
        * config/obj-aout.h (text_section,data_section,bss_section):
        Make extern.
        * config/obj-elf.c: Add cast.
        * config/tc-arm.c: Add casts.
        (X, TxCE, TxCE, TxC3, TxC3w, TxCM_, TxCM, TUE, TUF, CE, CL, cCE)
        (cCL, C3E, xCM_, nUF, nCE_tag): Change input format to avoid the
        need for keywords as arguments.
        * ecoff.c: Add casts.
        * ecofflink.c: Add casts.
        * elf64-alpha.c: Add casts.
        (struct alpha_elf_got_entry, struct alpha_elf_reloc_entry): Move
        to top level.
        (SKIP_HOWTO): Use enum name.
        * elf32-arm.c: Add casts.
        (elf32_arm_vxworks_bed): Update code to avoid multiple
        declarations.
        (struct map_stub): Move to top level.
        * arc-dis.c Fix casts.
        * arc-ext.c: Add casts.
        * arm-dis.c (enum opcode_sentinel_enum): Gave name to anonymous
        enum.
        * emultempl/armelf.em: Add casts.

14 years agomerge from gcc
dj [Fri, 25 Sep 2009 19:02:00 +0000 (19:02 +0000)]
merge from gcc

14 years ago2009-09-25 Nick Hudson <nick.hudson@gmx.co.uk>
skrll [Fri, 25 Sep 2009 18:58:58 +0000 (18:58 +0000)]
2009-09-25  Nick Hudson  <nick.hudson@gmx.co.uk>

* doc/c-mips.texi: Fix the singlefloat and doublefloat kindex
entries.

14 years ago * setup2.sgml (setup-locale-problems): Fix charset names of codepages
corinna [Fri, 25 Sep 2009 16:42:36 +0000 (16:42 +0000)]
* setup2.sgml (setup-locale-problems): Fix charset names of codepages
936 and 949.

14 years ago * m32r.cpu (stb-plus): Typo fix.
amodra [Fri, 25 Sep 2009 14:07:07 +0000 (14:07 +0000)]
* m32r.cpu (stb-plus): Typo fix.

14 years agoFix faccessat(,0) and access() semantics.
ericb [Fri, 25 Sep 2009 13:44:44 +0000 (13:44 +0000)]
Fix faccessat(,0) and access() semantics.

* fhandler.h (fhandler_base::fhaccess): Add parameter.
* security.h (check_file_access, check_registry_access): Likewise.
* security.cc (check_file_access, check_registry_access)
(check_access): Implement new parameter.
* fhandler.cc (fhandler_base::fhaccess): Likewise.
(device_access_denied): Update caller.
* syscalls.cc (access, faccessat): Update callers.
* spawn.cc (find_exec, fixup): Likewise.

14 years ago* setup2.sgml (setup-locale-problems): Document how to install
ericb [Fri, 25 Sep 2009 12:27:45 +0000 (12:27 +0000)]
* setup2.sgml (setup-locale-problems): Document how to install
non-default charsets.

14 years ago PR 10656
nickc [Fri, 25 Sep 2009 09:57:49 +0000 (09:57 +0000)]
    PR 10656
        * readelf.c: Remove duplicate declaration of variable do_wide.
        * dwarf.h: Add export of do_wide.

        * hist.h: Move declaration of histograms and num_histograms
        variables from here to...
        * hist.c: ...here.

14 years ago*** empty log message ***
nickrob [Fri, 25 Sep 2009 01:57:35 +0000 (01:57 +0000)]
*** empty log message ***

14 years agoRemove file.
nickrob [Fri, 25 Sep 2009 01:53:34 +0000 (01:53 +0000)]
Remove file.

14 years ago*** empty log message ***
gdbadmin [Fri, 25 Sep 2009 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
amodra [Fri, 25 Sep 2009 00:00:04 +0000 (00:00 +0000)]
daily update

14 years agoinclude/
ccoutant [Thu, 24 Sep 2009 20:52:07 +0000 (20:52 +0000)]
include/

* dwarf2.h (DW_TAG_rvalue_reference_type, DW_TAG_template_alias):
New tags.
(DW_FORM_ref_sig8): New name for DW_FORM_sig8.
(DW_AT_main_subprogram, DW_AT_data_bit_offset, DW_AT_const_expr,
DW_AT_enum_class, DW_AT_linkage_name, DW_AT_GNU_guarded_by,
DW_AT_GNU_pt_guarded_by, DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded,
DW_AT_GNU_locks_excluded, DW_AT_GNU_exclusive_locks_required,
DW_AT_GNU_shared_locks_required, DW_AT_GNU_odr_signature): New
attributes.
(DW_LANG_Python): New language.

binutils/

* dwarf.c (get_TAG_name): Add missing DWARF-3 and new DWARF-4 tags.
(get_FORM_name): Add new DWARF-4 forms.
(read_and_display_attr_value): Add DW_FORM_ref_sig8, DW_LANG_Python.
(get_AT_name): Add new DWARF-4 and GNU-specific attributes.
(process_debug_info): Add do_types parameter; change all callers.
Add support for .debug_types sections.
(display_debug_types): New function.
(debug_displays): Add .debug_types section.
* readelf.c (process_section_headers): Add .debug_types section.
(display_debug_section): Simplify call to streq.

14 years ago * record.c (record_open, record_store_registers, record_xfer_partial):
brobecke [Thu, 24 Sep 2009 17:58:04 +0000 (17:58 +0000)]
    * record.c (record_open, record_store_registers, record_xfer_partial):
        Replace calls to nquery by calls to query.

14 years ago * observer.texi (solib_unloaded): Document explicitly the fact that
brobecke [Thu, 24 Sep 2009 17:49:56 +0000 (17:49 +0000)]
    * observer.texi (solib_unloaded): Document explicitly the fact that
        this observer is called before the associated symbols are unloaded.

14 years agotweak last sid.scm changelog entry
devans [Thu, 24 Sep 2009 16:47:34 +0000 (16:47 +0000)]
tweak last sid.scm changelog entry

14 years agogas/
hjl [Thu, 24 Sep 2009 16:37:08 +0000 (16:37 +0000)]
gas/

2009-09-24  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (build_vex_prefix): Check vex == 2 instead
of vex256.

opcodes/

2009-09-24  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c (opcode_modifiers): Remove Vex256.
(set_bitfield): Handle XXX=V.

* i386-opc.h (Vex): Update comments.
(Vex256): Removed.
(VexNDS): Updated.
(i386_opcode_modifier): Change vex to 2 bits.  Remove vex256.

* i386-opc.tbl: Replace "Vex|Vex256" with Vex=2.
* i386-tbl.h: Regenerated.

14 years agobfd/
hjl [Thu, 24 Sep 2009 15:56:49 +0000 (15:56 +0000)]
bfd/

2009-09-24  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10630
* elflink.c (elf_link_output_extsym): Turn off visibility on
local symbol.
(bfd_elf_final_link): Turn off visibility on dynamic local
symbol.

ld/testsuite/

2009-09-24  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/10630
* ld-alpha/tlsbin.rd: Remove HIDDEN/.hidden on local symbols.
* ld-alpha/tlsbinr.rd: Likewise.
* ld-alpha/tlspic.rd: Likewise.
* ld-cris/libdso-2.d: Likewise.
* ld-cris/locref1.d: Likewise.
* ld-cris/locref2.d: Likewise.
* ld-cris/tls-e-20a.d: Likewise.
* ld-cris/tls-e-20.d: Likewise.
* ld-cris/tls-e-80.d: Likewise.
* ld-cris/tls-gc-68.d: Likewise.
* ld-cris/tls-gc-69.d: Likewise.
* ld-cris/tls-gc-70.d: Likewise.
* ld-cris/tls-gc-75.d: Likewise.
* ld-cris/tls-gc-76.d: Likewise.
* ld-cris/tls-gc-79.d: Likewise.
* ld-cris/tls-gd-1h.d: Likewise.
* ld-cris/tls-gd-2h.d: Likewise.
* ld-cris/tls-ld-4.d: Likewise.
* ld-cris/tls-ld-5.d: Likewise.
* ld-cris/tls-ld-6.d: Likewise.
* ld-cris/tls-ld-7.d: Likewise.
* ld-cris/tls-ldgd-14.d: Likewise.
* ld-cris/tls-ldgd-15.d: Likewise.
* ld-cris/tls-local-63.d: Likewise.
* ld-cris/tls-local-64.d: Likewise.
* ld-elf/pr9676.rd: Likewise.
* ld-elf/pr9679.rd: Likewise.
* ld-elfvsb/hidden2.d: Likewise.
* ld-i386/tlsbindesc.rd: Likewise.
* ld-i386/tlsbin.rd: Likewise.
* ld-i386/tlsdesc.rd: Likewise.
* ld-i386/tlsgdesc.rd: Likewise.
* ld-i386/tlsnopic.rd: Likewise.
* ld-i386/tlspic.rd: Likewise.
* ld-ia64/tlsbin.rd: Likewise.
* ld-ia64/tlspic.rd: Likewise.
* ld-powerpc/tlsexe32.r: Likewise.
* ld-powerpc/tlsexe.r: Likewise.
* ld-powerpc/tlsexetoc.r: Likewise.
* ld-powerpc/tlsso32.r: Likewise.
* ld-powerpc/tlsso.r: Likewise.
* ld-powerpc/tlstocso.r: Likewise.
* ld-s390/tlsbin_64.rd: Likewise.
* ld-s390/tlsbin.rd: Likewise.
* ld-s390/tlspic_64.rd: Likewise.
* ld-s390/tlspic.rd: Likewise.
* ld-sparc/gotop32.rd: Likewise.
* ld-sparc/gotop64.rd: Likewise.
* ld-sparc/tlssunbin32.rd: Likewise.
* ld-sparc/tlssunbin64.rd: Likewise.
* ld-sparc/tlssunnopic32.rd: Likewise.
* ld-sparc/tlssunnopic64.rd: Likewise.
* ld-sparc/tlssunpic32.rd: Likewise.
* ld-sparc/tlssunpic64.rd: Likewise.
* ld-x86-64/tlsbindesc.rd: Likewise.
* ld-x86-64/tlsbin.rd: Likewise.
* ld-x86-64/tlsdesc.rd: Likewise.
* ld-x86-64/tlsgdesc.rd: Likewise.
* ld-x86-64/tlspic.rd: Likewise.
* ld-xtensa/tlsbin.rd: Likewise.
* ld-xtensa/tlspic.rd: Likewise.

* ld-elf/local1.d: New.
* ld-elf/local1.map: Likewise.
* ld-elf/local1.s: Likewise.
* ld-ia64/local1.d: Likewise.
* ld-ia64/local1.map: Likewise.
* ld-ia64/local1.s: Likewise.

14 years ago * readelf.c (print_dynamic_symbol): Format entries as for
amodra [Thu, 24 Sep 2009 15:13:16 +0000 (15:13 +0000)]
* readelf.c (print_dynamic_symbol): Format entries as for
normal symbol table.
(process_symbol_table): Use -7s format string for visibility.

14 years agogas/
hjl [Thu, 24 Sep 2009 14:36:47 +0000 (14:36 +0000)]
gas/

2009-09-24  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/10677
* config/tc-i386.h (TC_FORCE_RELOCATION_LOCAL): Return true
for BFD_RELOC_X86_64_GOTPCREL.

gas/testsuite/

2009-09-24  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/10677
* gas/i386/i386.exp: Run x86-64-localpic.

* gas/i386/x86-64-localpic.d: New.
* gas/i386/x86-64-localpic.s: Likewise.

14 years ago * posix_ipc.cc (mq_open): Avoid closing the same descriptor twice in
corinna [Thu, 24 Sep 2009 09:25:34 +0000 (09:25 +0000)]
* posix_ipc.cc (mq_open): Avoid closing the same descriptor twice in
case of errors.
(sem_open): Ditto.

14 years ago * kernel32.cc (CreateMutexW): Use correct access mask.
corinna [Thu, 24 Sep 2009 09:09:45 +0000 (09:09 +0000)]
* kernel32.cc (CreateMutexW): Use correct access mask.
(CreateSemaphoreW): Ditto.

14 years ago2009-09-23 H.J. Lu <hongjiu.lu@intel.com>
hjl [Thu, 24 Sep 2009 05:08:23 +0000 (05:08 +0000)]
2009-09-23  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/localpic.d: Updated.

14 years agogas/
hjl [Thu, 24 Sep 2009 03:23:51 +0000 (03:23 +0000)]
gas/

2009-09-23  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.h (TC_FORCE_RELOCATION_LOCAL): Don't check
BFD_RELOC_386_GOT32.

gas/testsuite/

2009-09-23  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/i386.exp: Run localpic.

* gas/i386/localpic.d: New.
* gas/i386/localpic.s: Likewise.

14 years ago PR binutils/10654
amodra [Thu, 24 Sep 2009 00:11:50 +0000 (00:11 +0000)]
PR binutils/10654
* dwarf2.c (lookup_address_in_line_info_table): Remove workaround
for invalid location lists generated by gcc-2.95 and Intel 6.0 C++.
Remove "function" parm, adjust caller.

14 years ago*** empty log message ***
gdbadmin [Thu, 24 Sep 2009 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
amodra [Thu, 24 Sep 2009 00:00:04 +0000 (00:00 +0000)]
daily update

14 years ago * m32r.cpu (sth-plus): Fix address mode and calculation.
devans [Wed, 23 Sep 2009 22:30:55 +0000 (22:30 +0000)]
* m32r.cpu (sth-plus): Fix address mode and calculation.
(stb-plus): Ditto.
(clrpsw): Fix mask calculation.
(bset, bclr, btst): Make mode in bit calculation match expression.

* xc16x.cpu (rtl-version): Set to 0.8.
(gr-names, ext-names,psw-names): Update, print-name -> enum-prefix,
make uppercase.  Remove unnecessary name-prefix spec.
(grb-names, conditioncode-names, extconditioncode-names): Ditto.
(grb8-names, r8-names, regmem8-names, regdiv8-names): Ditto.
(reg0-name, reg0-name1, regbmem8-names, memgr8-names): Ditto.
(h-cr): New hardware.
(muls): Comment out parts that won't compile, add fixme.
(mulu, divl, divlu, jmpabs, jmpa-, jmprel, jbc, jnbs, callr): Ditto.
(scxti, scxtmg, scxtm, bclear, bclr18, bset19, bitset, bmov): Ditto.
(bmovn, band, bor, bxor, bcmp, bfldl, bfldh): Ditto.

14 years ago * xc16x.cpu (h-cr): New hardware.
devans [Wed, 23 Sep 2009 22:30:19 +0000 (22:30 +0000)]
* xc16x.cpu (h-cr): New hardware.
(muls): Comment out parts that won't compile, add fixme.
(mulu, divl, divlu, jmpabs, jmpa-, jmprel, jbc, jnbs, callr): Ditto.
(scxti, scxtmg, scxtm, bclear, bclr18, bset19, bitset, bmov): Ditto.
(bmovn, band, bor, bxor, bcmp, bfldl, bfldh): Ditto.

Rewrite rtl processing to require it to be "canonicalized" first,
and write a full canonicalizer / expression checker.
Remove all appearances of DFLT in canonical rtl.
* attr.scm (/attr-eval atval owner): Call rtx-canonicalize,
then rtx-simplify.
* iformat.scm (ifmt-analyze) Use canonical semantics.
* insn (<insn>): New member canonical-semantics.
* mach.scm (<arch>): New member multi-insns-instantiated?.
(/instantiate-multi-insns!): New function.
(/canonicalize-insns!): New function.
(arch-analyze-insns!): Canonicalize insn semantics before processing
them.
* mode.scm (/mode-set-word-params!): New function.
(mode-void?): New function.
(mode-compatible?): VOID is compatible with VOID.
(/mode-word-sizes-defined?): New global.
(mode-set-word-modes!): Use/set it.
(mode-ensure-word-sizes-defined): Update.
(mode-builtin!): New builtin "modes" SYM, INSN, MACH.
Redo WI/UWI/AI/IAI handling.
(op:new-mode): No longer accept DFLT.
(<derived-operand> constructor): Ensure all fields are initialized.
(<anyof-operand> constructor): Ditto.
(/derived-parse-ifield-assertion): Delete arg `args'.
All callers updated.
* rtl-c.scm (<rtl-c-eval-state>): New member `for-insn?'.
(rtl-c): Call rtx-canonicalize instead of rtx-compile.
(rtl-c-expr, rtl-c++): Ditto.
(/rtl-c-get): Use mode of operand, not containing expression.
(rtl-c-set-quiet, rtl-c-set-trace): Remove DFLT support.
(/rtx-use-sem-fn?): Don't check for (insn? owner), check
estate-for-insn? instead.
(s-unop): Use mode of expression, not first operand.
(s-binop, s-binop-with-bit, s-shop, s-cmpop): Ditto.
(s-sequence): Remove DFLT support.
(ifield): Use mode of expression, not UINT.
(pc): Comment out, unused.
(int-attr): New rtx kind.
(attr): Deprecate.
(set, set-quiet): Pass src to rtl-c-set-{trace,quiet} for expansion.
* rtl-traverse.scm (/rtx-canon-debug?): New global.
(/make-cstate): New function.
(/cstate-context, /cstate-outer-expr): New functions.
(/rtx-canon-error): New function.
(/rtx-lookup-hw, /rtx-pick-mode, /rtx-pick-mode3, /rtx-pick-op-mode,
/rtx-get-last-cond-case-rtx): New functions.
(/rtx-canon-*): New functions.
(/rtx-canner-table, /rtx-operand-canoners): New globals.
(/rtx-make-canon-table, /rtx-special-expr-canoners): New functions.
(/rtx-option, /rtx-option-list?): Rewrite.
(rtx-munge-mode&options): Replaces /rtx-munge-mode&options.
Rewritten, all callers updated.
(/rtx-canon-expr, /rtx-canon): New functions.
(rtx-canonicalize): Move here from rtl-xform.scm and rewrite.
(rtx-canonicalize-stmt): New function.
(tstate-make): Remove arg `set?'.  All callers updated.
(tstate-new-set?): Delete.
(/rtx-traverse-options, /rtx-traverse-*mode): Delete,
moved to /rtx-canon-*.
(/rtx-traverse-normal-operand): New function.
(/rtx-traverse-rtx-list): Delete arg `mode', all callers updated.
(/rtx-traverse-rtx, /rtx-traverse-setrtx,, /rtx-traverse-testrtx,
/rtx-traverse-condrtx, /rtx-traverse-casertx, /rtx-traverse-locals,
/rtx-traverse-iteration, /rtx-traverse-env, /rtx-traverse-attrs):
Ditto.
(/rtx-traverse-symbol, /rtx-traverse-string, /rtx-traverse-number,
/rtx-traverse-symornum, /rtx-traverse-object): Delete.
(/rtx-make-traverser-table): Update.
(/rtx-traverse-operands): Remove mode processing, now done during
canonicalization.
(/rtx-traverse-expr): Delete arg `mode', all callers updated.
(/rtx-traverse): Ditto.
(rtx-init-traverser-tables!): New function.
* rtl-xform (/rtx-verify-no-dflt-modes-expr-fn): New function.
(rtx-verify-no-dflt-modes): New function.
(/rtx-simplify-expr-fn): Update, `arg' mode deleted.
(rtx-simplify-insn): Use insn-canonical-semantics.
(rtx-canonicalize): Moved to rtl-traverse.scm.
(/compile-expr-fn, rtx-compile): Delete.
(/rtx-trim-rtx-list): New function.
(/rtx-trim-for-doc): Handle set, if.
* rtl.scm (<rtx-func>): New members result-mode, matchexpr-index.
(/rtx-valid-mode-types): Update.
(/rtx-valid-matches): Update.
(/rtx-find-matchexpr-index): New function.
(rtx-lookup): Require rtx-kind to be the rtx name.
(def-rtx-node): New arg result-mode, all callers updated.
(def-rtx-syntax-node, def-rtx-operand-node): Ditto.
(rtx-lazy-sem-mode): Delete.
(/rtx-closure-make): New arg `mode', all callers updated.
(rtx-make-ifield, rtx-make-operand, rtx-make-local): Ditto.
(rtx-operand-obj): Rewrite.
(rtx-make-xop): New functions.
(/hw): Renamed from `hw', all callers updated.
Use the correct mode instead of DFLT for the index.
(rtl-builtin!): Call rtx-init-traversal-tables!.
(rtl-finish!): Update.
* rtx-funcs.scm (all rtx functions): New parameter: result-mode.
Update mode arg-type.
(pc): Comment out.
(int-attr): New rtx kind.
(attr): Deprecate.
* sem-frags.scm (/frag-hash-compute!): Update, mode arg deleted.
(/frag-cost-compute!): Ditto.
* semantics.scm (/build-operand!): Delete args op-name, op.
New arg op-expr.  All callers updated.
(/build-mem-operand!): Remove DFLT support.
(semantic-compile): Update process-expr!, mode arg deleted.
* sid-cpu.scm (gen-semantic-code): Specify #:for-insn? in
rtl-c++ calls.
(/gen-sem-case, /gen-sfrag-code): Ditto.
* sid.scm (/op-gen-set-trace1): Renamed from /op-gen-set-trace.
(/op-gen-set-trace): New function.  If not doing profiling,
call /op-gen-set-quiet.
* sim-cpu.scm (gen-semantic-code): Specify #:for-insn? in rtl-c calls.
* utils-gen.scm (/gen-ifld-extract-base): Update call to rtl-c.
(/gen-ifld-extract-beyond, gen-multi-ifld-extract): Ditto.
* utils.scm (find-first-index): New function.
* doc/rtl.texi: Delete docs for `attr'.  Add `int-attr'.

14 years ago2009-09-23 Michael Eager <eager@eagercon.com>
eager [Wed, 23 Sep 2009 20:01:47 +0000 (20:01 +0000)]
2009-09-23  Michael Eager  <eager@eagercon.com>

       * configure: Add microblaze-*.* (not regenerated).
       * configure.ac: Likewise.
       * microblaze/config.in: New.
       * microblaze/configure: Generate.
       * microblaze/configure.ac: New.
       * microblaze/interp.c: New.
       * microblaze/Makefile.in: New.
       * microblaze/microblaze.h: New.
       * microblaze/microblaze.isa: New.
       * microblaze/sim-main.h: New.
       * microblaze/sysdep.h: New.

14 years agomerge from gcc
dj [Wed, 23 Sep 2009 17:59:27 +0000 (17:59 +0000)]
merge from gcc

14 years ago2009-09-23 John Wright <john.wright@hp.com>
tromey [Wed, 23 Sep 2009 17:27:39 +0000 (17:27 +0000)]
2009-09-23  John Wright  <john.wright@hp.com>

PR gdb/10684:
* event-top.c (command_line_handler): Terminate linebuffer before
xstrdup.

14 years ago * rtx-funcs.scm (eq,ne,lt,gt,le,ge,ltu,leu,gtu,geu): Change class
devans [Wed, 23 Sep 2009 17:19:23 +0000 (17:19 +0000)]
* rtx-funcs.scm (eq,ne,lt,gt,le,ge,ltu,leu,gtu,geu): Change class
to COMPARE.
* sem-frags.scm (/frag-cost-compute!): Add COMPARE.

14 years ago * libc/locale/locale.c: Drop Cygwin-specific windows.h include.
corinna [Wed, 23 Sep 2009 17:18:59 +0000 (17:18 +0000)]
* libc/locale/locale.c: Drop Cygwin-specific windows.h include.
(loadlocale): Call __set_charset_from_codepage with 0 codepage.

14 years ago * strfuncs.cc (__set_charset_from_codepage): Fetch current ANSI
corinna [Wed, 23 Sep 2009 17:13:55 +0000 (17:13 +0000)]
* strfuncs.cc (__set_charset_from_codepage): Fetch current ANSI
codepage if cp is 0.

14 years ago2009-09-22 Sterling Augustine <sterling@tensilica.com>
sterling [Wed, 23 Sep 2009 15:11:48 +0000 (15:11 +0000)]
2009-09-22  Sterling Augustine  <sterling@tensilica.com>

     * config/tc-xtensa.c (md_apply_fix): Remove check for constant
     with difference of of two symbols.
     (xtensa_fix_adjustable): Likewise.

14 years agobfd/
amodra [Wed, 23 Sep 2009 13:54:28 +0000 (13:54 +0000)]
bfd/
* bfd-in.h (bfd_elf_size_dynamic_sections): Add audit and depaudit
arguments.
* elflink.c (bfd_elf_size_dynamic_sections): Generate DT_AUDIT,
DT_DEPAUDIT from audit/depaudit arguments.
(elf_finalize_dynstr): Finalize DT_AUDIT and DT_DEPAUDIT strtab entries.
(elf_link_add_object_symbols): Set dt_audit target data when finding a
DT_AUDIT.
* bfd-in2.h: Regenerate.
* bfd-elf.h: Add dt_audit to elf_obj_tdata, and elf_dt_audit macro.
ld/
* emultempl/elf32.em (gld${EMULATION_NAME}_add_options): Add --audit,
--depaudit, and -P options.
(gld${EULATION_NAME}_handle_options): Ditto.
(gld${EULATION_NAME}_list_options): Ditto.
(gld${EMULATION_NAME}_append_to_separated_string): New function for
handling rpath-like colon separated strings.
(gld${EMULATION_NAME}_before_allocation): Pass the audit and depaudit
libs to bfd.  Propagate DT_AUDIT from needed libs to depaudit.
* ld.texinfo: Document new options.
ld/testsuite/
* ld-elf/audit.exp: New.
* ld-elf/audit.rd: New.
* ld-elf/depaudit.rd: New.
* ld-elf/depaudit2.rd: New.

14 years ago Fix typo.
corinna [Wed, 23 Sep 2009 12:01:42 +0000 (12:01 +0000)]
Fix typo.

14 years ago * strfuncs.cc (sys_cp_wcstombs): Convert lone surrogate pair
corinna [Wed, 23 Sep 2009 11:30:59 +0000 (11:30 +0000)]
* strfuncs.cc (sys_cp_wcstombs): Convert lone surrogate pair
second halves to unambiguous ASCII SO sequence.  When converting
chars invalid in current codepage to ASCII SO sequence, make
sure to check for surrogate pair second half only if ct least
one wide characters is left.  Decrement nwc if valid second half has
been converted.
(sys_cp_mbstowcs): Improve ASCII SO handling.  Never break from loop
if invalid character has been found.  Recognize ASCII SO sequence
representing originally invalid mulitbyte char converted into a
lone surrogate pair second half.  Convert accordingly.

14 years agoUpdated French and Vietnamese translations.
nickc [Wed, 23 Sep 2009 10:09:18 +0000 (10:09 +0000)]
Updated French and Vietnamese translations.

14 years ago * config.sub, config.guess: Update from upstream sources.
nickc [Wed, 23 Sep 2009 09:51:31 +0000 (09:51 +0000)]
    * config.sub, config.guess: Update from upstream sources.

14 years ago * ld-srec/srec.exp: Add xfails for bfin-*-linux-uclibc.
jiez [Wed, 23 Sep 2009 09:29:52 +0000 (09:29 +0000)]
* ld-srec/srec.exp: Add xfails for bfin-*-linux-uclibc.

14 years agoFix previous entry.
gingold [Wed, 23 Sep 2009 08:30:55 +0000 (08:30 +0000)]
Fix previous entry.

14 years ago2009-09-23 Tim E. Sneddon <tsneddon@kednos.com>
gingold [Wed, 23 Sep 2009 08:30:12 +0000 (08:30 +0000)]
2009-09-23  Tim E. Sneddon  <tsneddon@kednos.com>

       * gas/configure.com: Fix a typo.

14 years ago * elf32-bfin.c (_bfinfdpic_size_got_plt): Make sure empty
jiez [Wed, 23 Sep 2009 08:03:01 +0000 (08:03 +0000)]
* elf32-bfin.c (_bfinfdpic_size_got_plt): Make sure empty
.rel.plt and .plt sections are removed.
(elf32_bfinfdpic_size_dynamic_sections): Remove empty .dynbss
section.  Remove the duplicated removing of empty .rel.plt
section.

14 years ago * symbols.c (define_sym_at_dot): New function, extracted from..
amodra [Wed, 23 Sep 2009 06:10:08 +0000 (06:10 +0000)]
* symbols.c (define_sym_at_dot): New function, extracted from..
(colon): ..here.  Define error case cloned symbol.

14 years agoTolerate some whitespace differences in readelf output.
amodra [Wed, 23 Sep 2009 03:12:23 +0000 (03:12 +0000)]
Tolerate some whitespace differences in readelf output.

14 years ago*** empty log message ***
gdbadmin [Wed, 23 Sep 2009 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
amodra [Wed, 23 Sep 2009 00:00:04 +0000 (00:00 +0000)]
daily update

14 years ago * solib.c (solib_bfd_open): Relax a bit the compatibility check.
brobecke [Tue, 22 Sep 2009 23:03:30 +0000 (23:03 +0000)]
    * solib.c (solib_bfd_open): Relax a bit the compatibility check.

14 years ago * source.c (forget_cached_source_info): Clear last_source_visited.
drow [Tue, 22 Sep 2009 22:34:15 +0000 (22:34 +0000)]
* source.c (forget_cached_source_info): Clear last_source_visited.
(init_last_source_visited): Delete.
(directory_command): Do not clear last_source_visited.  Call
forget_cached_source_info only if required.
(unset_substitute_path_command, set_substitute_path_command): Call
forget_cached_source_info.
* mi/mi-cmd-env.c (mi_cmd_env_dir): Do not call
init_last_source_visited.
* defs.h (init_last_source_visited): Delete declaration.

14 years agomerge from gcc
dj [Tue, 22 Sep 2009 21:52:47 +0000 (21:52 +0000)]
merge from gcc

14 years ago2009-09-22 Ralf Corsépius <ralf.corsepius@rtems.org>
jjohnstn [Tue, 22 Sep 2009 21:49:19 +0000 (21:49 +0000)]
2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>

        * libc/include/stdlib.h: Add posix_memalign.

14 years ago2009-09-22 Sterling Augustine <sterling@jaw.hq.tensilica.com>
sterling [Tue, 22 Sep 2009 21:47:03 +0000 (21:47 +0000)]
2009-09-22  Sterling Augustine  <sterling@jaw.hq.tensilica.com>

* config/tc-xtensa.c (md_apply_fix): Remove check for constant with
difference of of two symbols.
(xtensa_fix_adjustable): Likewise.

14 years ago2009-09-22 Ralf Corsépius <ralf.corsepius@rtems.org>
jjohnstn [Tue, 22 Sep 2009 21:24:55 +0000 (21:24 +0000)]
2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>

        * configure.host (*-rtems*): Remove -DMISSING_SYSCALL_NAMES.
        Add -DHAVE_BLKSIZE, -D_NO_WORDEXP -D_NO_POPEN.

14 years ago2009-09-22 Ralf Corsépius <ralf.corsepius@rtems.org>
jjohnstn [Tue, 22 Sep 2009 21:23:13 +0000 (21:23 +0000)]
2009-09-22  Ralf Corsépius <ralf.corsepius@rtems.org>

        * configure.host (m32c): Move setting -DABORT_PROVIDED to second
        "case $host".

14 years ago PR gdb/10583:
tromey [Tue, 22 Sep 2009 21:14:56 +0000 (21:14 +0000)]
PR gdb/10583:
* python/py-value.c (valpy_int): Use PyLong_FromLongLong.
(valpy_long): Likewise.

14 years ago * testsuite/retain_symbols_file_test.sh (check_present): Change
ian [Tue, 22 Sep 2009 19:54:46 +0000 (19:54 +0000)]
* testsuite/retain_symbols_file_test.sh (check_present): Change
output file name to retain_symbols_file_test.stdout.
(check_absent): Likewise.

14 years agobinutils/
rsandifo [Tue, 22 Sep 2009 18:29:06 +0000 (18:29 +0000)]
binutils/
* objdump.c (disassemble_section): Use bfd_get_arch_size
instead of assuming that the address size is 32 bits.

14 years agoError out if building separately but srcdir has build remnants.
rwild [Tue, 22 Sep 2009 18:00:40 +0000 (18:00 +0000)]
Error out if building separately but srcdir has build remnants.

/:
PR bootstrap/32272
* configure.ac: Error out if $srcdir isn't '.' but contains
host-${host_noncanonical}.
* configure: Regenerate.

14 years ago(h-sint): add fixme
devans [Tue, 22 Sep 2009 17:44:01 +0000 (17:44 +0000)]
(h-sint): add fixme

14 years agogdb
tromey [Tue, 22 Sep 2009 17:39:52 +0000 (17:39 +0000)]
gdb
PR python/10680:
* eval.c (evaluate_subexp_standard) <do_call_it>: Handle internal
functions in EVAL_AVOID_SIDE_EFFECTS case.
gdb/testsuite
* gdb.python/py-function.exp: Add regression tests.

14 years ago2009-09-22 Ozkan Sezer <sezeroz@gmail.com>
ktietz [Tue, 22 Sep 2009 16:33:56 +0000 (16:33 +0000)]
2009-09-22  Ozkan Sezer  <sezeroz@gmail.com>

        * choose-temp.c: Include unistd.h for mingw targets.

14 years ago * main.c: Fix spelling error.
brobecke [Tue, 22 Sep 2009 15:44:12 +0000 (15:44 +0000)]
   * main.c: Fix spelling error.

14 years ago * autoload.cc (WSARecv): Define.
corinna [Tue, 22 Sep 2009 14:27:57 +0000 (14:27 +0000)]
* autoload.cc (WSARecv): Define.
* fhandler_socket.cc (fhandler_socket::recv_internal): Call WSARecv
instead of WSARecvFrom if no name parameter is given.  Explain why.

14 years agoMake *at functions more like Linux.
ericb [Tue, 22 Sep 2009 12:13:53 +0000 (12:13 +0000)]
Make *at functions more like Linux.

* syscalls.cc (faccessat): Fix typo, reject bad flags.
(fchmodat, fchownat, fstatat, utimensat, linkat, unlinkat): Reject
bad flags.

14 years ago * strfuncs.cc (sys_cp_mbstowcs): Reset shift state after handling
corinna [Tue, 22 Sep 2009 09:44:32 +0000 (09:44 +0000)]
* strfuncs.cc (sys_cp_mbstowcs): Reset shift state after handling
invalid multibyte sequence.

14 years ago * path.cc (symlink_worker): Rework error handling to generate Linux
corinna [Tue, 22 Sep 2009 09:24:29 +0000 (09:24 +0000)]
* path.cc (symlink_worker): Rework error handling to generate Linux
compatible errno in case of trailing slash in newpath.

14 years agoMatch dup2 and fcntl error values to POSIX.
ericb [Tue, 22 Sep 2009 04:09:02 +0000 (04:09 +0000)]
Match dup2 and fcntl error values to POSIX.

* dtable.h (OPEN_MAX_MAX): New macro.
* resource.cc (getrlimit) [RLIMIT_NOFILE]: Use it.
* dtable.cc (dtable::extend): Likewise.
* fcntl.cc (fcntl64): Obey POSIX rule with too-large F_DUPFD.
* syscalls.cc (dup2): Likewise.

14 years ago * MAINTAINERS: Add myself under Write After Approval.
jiez [Tue, 22 Sep 2009 03:22:58 +0000 (03:22 +0000)]
* MAINTAINERS: Add myself under Write After Approval.

14 years ago * gas/ppc/a2.d: Match PPC64 relocs.
amodra [Tue, 22 Sep 2009 03:10:24 +0000 (03:10 +0000)]
* gas/ppc/a2.d: Match PPC64 relocs.

14 years ago* rtl-c.scm (all rtx functions): Rename local estate to *estate*. It's an
devans [Tue, 22 Sep 2009 03:06:27 +0000 (03:06 +0000)]
* rtl-c.scm (all rtx functions): Rename local estate to *estate*.  It's an
artificial argument added to the rtx, so make it stand out.

14 years ago* ChangeLog-2002: Fix typo.
ericb [Tue, 22 Sep 2009 02:49:15 +0000 (02:49 +0000)]
* ChangeLog-2002: Fix typo.
* ChangeLog-2008: Likewise.

14 years ago * rtl-c.scm (/rtl-c-build-table): Renamed from rtl-c-build-table.
devans [Tue, 22 Sep 2009 02:37:27 +0000 (02:37 +0000)]
* rtl-c.scm (/rtl-c-build-table): Renamed from rtl-c-build-table.
All callers updated.  Add FIXME.

14 years agoo * ppc.h (ppc_cpu_t): Typedef to uint64_t.
amodra [Tue, 22 Sep 2009 02:36:26 +0000 (02:36 +0000)]
o * ppc.h (ppc_cpu_t): Typedef to uint64_t.

14 years agoDelete unused scripts.
amodra [Tue, 22 Sep 2009 00:17:48 +0000 (00:17 +0000)]
Delete unused scripts.

14 years agodaily update
amodra [Tue, 22 Sep 2009 00:00:04 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Tue, 22 Sep 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years ago * windows-nat.c (ctrl_c_handler): Also handle CTRL_BREAK_EVENT.
muller [Mon, 21 Sep 2009 22:37:59 +0000 (22:37 +0000)]
* windows-nat.c (ctrl_c_handler): Also handle CTRL_BREAK_EVENT.

14 years ago2009-09-21 H.J. Lu <hongjiu.lu@intel.com>
hjl [Mon, 21 Sep 2009 21:50:18 +0000 (21:50 +0000)]
2009-09-21  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c: Remove white spaces.

14 years agoRequire c++ in stage1_languages with --enable-gold in combined bootstrap.
rwild [Mon, 21 Sep 2009 20:32:58 +0000 (20:32 +0000)]
Require c++ in stage1_languages with --enable-gold in combined bootstrap.

/:
* configure.ac: If bootstrapping a combined tree with
--enable-gold, require c++ in stage1_languages.
* configure: Regenerate.

14 years agotoplevel configure: bootstrap target_libs of stage1_languages.
rwild [Mon, 21 Sep 2009 20:31:02 +0000 (20:31 +0000)]
toplevel configure: bootstrap target_libs of stage1_languages.

/:
* configure.ac: Also add target_libs of stage1_languages to
bootstrap_target_libs.
* configure: Regenerate.

14 years ago * cp-support.h (cp_validate_operator): Declare new function.
kseitz [Mon, 21 Sep 2009 19:46:42 +0000 (19:46 +0000)]
* cp-support.h (cp_validate_operator): Declare new function.
* cp-support.c (cp_validate_operator): New function.
* linespec.c (decode_compound): For C++ check for a valid operator.

14 years ago * gdb.cp/cplusfuncs.exp (do_tests): Add check for proper error message
kseitz [Mon, 21 Sep 2009 19:46:15 +0000 (19:46 +0000)]
* gdb.cp/cplusfuncs.exp (do_tests): Add check for proper error message
with invalid operator.

14 years ago * cygheap.h (cwdstuff::get_posix): Convert to const inline method just
corinna [Mon, 21 Sep 2009 19:29:15 +0000 (19:29 +0000)]
* cygheap.h (cwdstuff::get_posix): Convert to const inline method just
returning pointer to posix path.
(cwdstuff::reset_posix): Convert to non-inline method taking a wchar_t
pointer.
* path.cc (cwdstuff::set): Revert change from 2009-05-13.  Set posix
to valid incoming path again.
(cwdstuff::reset_posix): New implementation setting posix path from
incoming wchar_t path.  Explain usage.
(cwdstuff::get_posix): Drop implementation.
(cwdstuff::get): Drop special case to handle empty posix path.
* syscalls.cc (internal_setlocale): Store old posix cwd as wide char
path.  Restore posix cwd using new charset.  Explain why.

14 years agoDiagnose --enable-build-with-cxx --enable-bootstrap --enable-languages w/o c++
rwild [Mon, 21 Sep 2009 19:25:05 +0000 (19:25 +0000)]
Diagnose --enable-build-with-cxx --enable-bootstrap --enable-languages w/o c++

/:
* configure.ac: Diagnose --enable-build-with-cxx bootstrap
with --enable-languages not containing c++.
* configure: Regenerate.

14 years ago * c-exp.y (qualified_name): Call CHECK_TYPEDEF before deciding
kseitz [Mon, 21 Sep 2009 19:23:45 +0000 (19:23 +0000)]
* c-exp.y (qualified_name): Call CHECK_TYPEDEF before deciding
that a type is not an aggregate type.

14 years ago * gdb.cp/classes.exp (do_tests): Add tests to print a constructor
kseitz [Mon, 21 Sep 2009 19:23:22 +0000 (19:23 +0000)]
* gdb.cp/classes.exp (do_tests): Add tests to print a constructor
and destructor using typedef name of class.
* gdb.cp/classes.cc (class Base1): Add a destructor.
(base1): New typedef.
(use_methods): Instanitate an object of type base1.
* gdb.cp/templates.exp (test_template_typedef): New procedure.
(do_tests): Call test_template_typedef.
* gdb.cp/templates.cc (Baz::~Baz): New method.
(intBazOne): New typedef.
(main): Instantiate intBazOne.

14 years agold/testsuite/
rsandifo [Mon, 21 Sep 2009 19:11:50 +0000 (19:11 +0000)]
ld/testsuite/
PR ld/10681
* ld-elf/eh6.d: Expect absolute pointers in shared libraries to
be converted into PC-relative form.

14 years agobfd/
rsandifo [Mon, 21 Sep 2009 19:07:43 +0000 (19:07 +0000)]
bfd/
* elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Extend previous
patch to handle the new personality relaxation.

ld/testsuite/
* ld-mips-elf/eh-frame5.d: Expect PC-relative encodings
to include DW_EH_PE_sdata4.

14 years agobfd/
rsandifo [Mon, 21 Sep 2009 18:55:06 +0000 (18:55 +0000)]
bfd/
* elf-eh-frame.c (make_pc_relative): New function.
(_bfd_elf_write_section_eh_frame): Use it.

ld/testsuite/
* ld-mips-elf/eh-frame1-n32.d: Expect PC-relative encodings
to include DW_EH_PE_sdata4.
* ld-mips-elf/eh-frame2-n32.d: Likewise.
* ld-mips-elf/eh-frame1-n64.d: Expect PC-relative encodings
to include DW_EH_PE_sdata8.
* ld-mips-elf/eh-frame2-n64.d: Likewise.

14 years ago2009-09-21 Jason Orendorff <jason.orendorff@gmail.com>
tromey [Mon, 21 Sep 2009 16:18:39 +0000 (16:18 +0000)]
2009-09-21  Jason Orendorff  <jason.orendorff@gmail.com>

PR python/10666:
* python/py-function.c (fnpy_init): Use xstrdup.

14 years ago2009-09-21 Ken Werner <ken.werner@de.ibm.com>
jjohnstn [Mon, 21 Sep 2009 16:07:34 +0000 (16:07 +0000)]
2009-09-21  Ken Werner  <ken.werner@de.ibm.com>

        * spu/getpagesize.c: Align getpagesize implementation to POSIX

14 years ago * openrisc.cpu (or32 isa): Fix setup-semantics.
devans [Mon, 21 Sep 2009 15:32:13 +0000 (15:32 +0000)]
* openrisc.cpu (or32 isa): Fix setup-semantics.

14 years ago * rtl.scm (rtx-class-*?): Delete, unused.
devans [Mon, 21 Sep 2009 15:24:19 +0000 (15:24 +0000)]
* rtl.scm (rtx-class-*?): Delete, unused.
(rtx-style-function?, rtx-style-operand?, rtx-style-macro?): Ditto.

14 years ago * read.scm (/CGEN-RTL-VERSION): Initialize to #f.
devans [Mon, 21 Sep 2009 15:18:54 +0000 (15:18 +0000)]
* read.scm (/CGEN-RTL-VERSION): Initialize to #f.
(init-reader!): Set /CGEN-RTL-VERSION to default.

* read.scm (cpu-load): Print load parameters.

14 years ago * dev.scm (load-doc): Set verbose-level to 2.
devans [Mon, 21 Sep 2009 15:14:37 +0000 (15:14 +0000)]
* dev.scm (load-doc): Set verbose-level to 2.

14 years ago * lib/gas-defs.exp (gas_test_error): Mark internal error/assertion
macro [Mon, 21 Sep 2009 13:15:28 +0000 (13:15 +0000)]
* lib/gas-defs.exp (gas_test_error): Mark internal error/assertion
failures seen in output as fails.  Also record output being
matched for fails.

14 years ago * gas/mips/eret-1.d: Adjust regexps for robustness.
macro [Mon, 21 Sep 2009 13:13:04 +0000 (13:13 +0000)]
* gas/mips/eret-1.d: Adjust regexps for robustness.
* gas/mips/eret-2.d: Likewise.
* gas/mips/eret-3.d: Likewise.
* gas/mips/eret-1.s: Reformat for readability.  Add a label
at the beginning.
* gas/mips/eret-2.s: Add a label at the beginning.