OSDN Git Service

pf3gnuchains/gcc-fork.git
11 years ago2010-03-12 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Fri, 12 Mar 2010 17:35:19 +0000 (17:35 +0000)]
2010-03-12  Benjamin Kosnik  <bkoz@redhat.com>

* scripts/run_doxygen: Adjust.
* doc/doxygen/user.cfg.in: Adjust latex, xml prefs.
* doc/xml/api.xml: Update.
* doc/Makefile.am: Re-do stamp rules.
* doc/Makefile.in: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157409 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoRemove band-aid no longer needed by the fix in PR 43431
meissner [Fri, 12 Mar 2010 15:11:25 +0000 (15:11 +0000)]
Remove band-aid no longer needed by the fix in PR 43431

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157408 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-03-12 Kai Tietz <kai.tietz@onevision.com>
ktietz [Fri, 12 Mar 2010 14:43:55 +0000 (14:43 +0000)]
2010-03-12  Kai Tietz  <kai.tietz@onevision.com>

        PR/42950
        * io/format.c (parse_format_list): Add to ERROR, WARNING,
        SILENT enumerators NOTIFICATION_ prefix.
        * runtime/error.c (notification_std): Likewise.
        * libgfortran.h (notification): Likewise.
        (GFC_LARGEST_BUF): Check for HAVE_GFC_INTEGER_16.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157407 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-03-12 Kai Tietz <kai.tietz@onevision.com>
ktietz [Fri, 12 Mar 2010 14:40:42 +0000 (14:40 +0000)]
2010-03-12  Kai Tietz  <kai.tietz@onevision.com>

        * gfortran.dg/default_format_denormal_1.f90: Don't assume
        fail for *-*-mingw* targets.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157406 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
jakub [Fri, 12 Mar 2010 13:27:43 +0000 (13:27 +0000)]
* cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
(cselib_preserve_definitely, cselib_clear_preserve): Remove.
(cselib_preserve_only_values): Remove retain argument, don't
traverse hash table with cselib_{preserve_definitely,clear_preserve}.
* cselib.h (cselib_preserve_only_values): Remove retain argument.
* var-tracking.c (micro_operation): Move insn field before union.
Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
(struct variable_tracking_info_def): Remove n_mos field, change
mos into a vector of micro_operations.
(count_uses, count_uses_1, count_stores, count_with_sets): Remove.
(bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
changing into a vector.
(add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
come before all other uops generated by add_stores.
(vt_add_function_parameters): Adjust for cselib_preserve_only_values
argument removal.
(vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
a vector.  Run just one pass over the bbs instead of separate counting
and computation phase.
(vt_finalize): Free VTI (bb)->mos vector instead of array.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157403 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR debug/43329
jakub [Fri, 12 Mar 2010 13:04:37 +0000 (13:04 +0000)]
PR debug/43329
* tree-inline.c (remap_decls): Put old_var rather than origin_var
into *nonlocalized_list vector.
* dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
even if origin is non-NULL.
(gen_variable_die): Likewise.
(process_scope_var): Don't change origin.
(gen_decl_die): Likewise.
* tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
before adding new edges instead of after it, fix moving over
debug stmts.

* gcc.dg/guality/pr43329-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157402 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoAdd comment about changing directory references.
korbb [Fri, 12 Mar 2010 05:21:19 +0000 (05:21 +0000)]
Add comment about changing directory references.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157401 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoRestore the "#undef" in the test text, too.
korbb [Fri, 12 Mar 2010 04:09:29 +0000 (04:09 +0000)]
Restore the "#undef" in the test text, too.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157400 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoundo some of the damage
korbb [Fri, 12 Mar 2010 04:00:32 +0000 (04:00 +0000)]
undo some of the damage

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157399 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agothe fixinc directory is now "fixincludes"
korbb [Fri, 12 Mar 2010 03:49:08 +0000 (03:49 +0000)]
the fixinc directory is now "fixincludes"

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157398 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple of four.
davem [Fri, 12 Mar 2010 02:54:17 +0000 (02:54 +0000)]
* configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple of four.
* configure: Rebuild.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157397 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Fri, 12 Mar 2010 00:17:11 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157396 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-03-11 Martin Jambor <mjambor@suse.cz>
jamborm [Thu, 11 Mar 2010 22:27:26 +0000 (22:27 +0000)]
2010-03-11  Martin Jambor  <mjambor@suse.cz>

PR tree-optimization/43257
* tree.c (assign_assembler_name_if_neeeded): New function.
(free_lang_data_in_cgraph): Assembler name assignment moved to the
above new function.
* tree.h (assign_assembler_name_if_neeeded): Declare.
* cgraphunit.c (cgraph_analyze_function): Create an assembler name for
the function if needed.

* testsuite/g++.dg/torture/pr43257.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157393 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-03-11 Chris Demetriou <cgd@google.com>
cgd [Thu, 11 Mar 2010 20:31:01 +0000 (20:31 +0000)]
2010-03-11  Chris Demetriou  <cgd@google.com>

        * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
        include/stdint-gcc.h, and include/stdint.h world-readable.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157392 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-03-11 Tobias Burnus <burnus@net-b.de>
burnus [Thu, 11 Mar 2010 16:06:37 +0000 (16:06 +0000)]
2010-03-11  Tobias Burnus  <burnus@net-b.de>

        PR fortran/43228
        * io/list_read.c (nml_parse_qualifier): Disable expanded_read
        for array sections.

2010-03-11  Tobias Burnus  <burnus@net-b.de>

        PR fortran/43228
        * gfortran.dg/namelist_61.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157389 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-03-11 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 11 Mar 2010 15:08:24 +0000 (15:08 +0000)]
2010-03-11  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/43255
* tree-vrp.c (process_assert_insertions_for): Do not insert
asserts for trivial conditions.

* gcc.c-torture/compile/pr43255.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157388 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Thu, 11 Mar 2010 13:51:00 +0000 (13:51 +0000)]
2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

PR tree-optimization/43280
* tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number generation.
Move calculation of size out of the if branch.
(find_bswap): Modify compare number generation.

2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gcc.dg/optimize-bswapdi-1.c: Add OpenSSL bswap variant.
* gcc.dg/pr43280.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157386 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-03-11 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 11 Mar 2010 13:13:53 +0000 (13:13 +0000)]
2010-03-11  Richard Guenther  <rguenther@suse.de>

PR lto/43200
* lto-streamer-in.c (maybe_fixup_decls): Simplify.
(input_gimple_stmt): Fixup handled component types during
operand read.  Also fix up decls in ADDR_EXPRs.

* gcc.dg/lto/20100227-1_0.c: New testcase.
* gcc.dg/lto/20100227-1_1.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157385 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago Fix entry note.
jvdelisle [Thu, 11 Mar 2010 02:28:33 +0000 (02:28 +0000)]
Fix entry note.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157379 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-03-10 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Thu, 11 Mar 2010 02:26:36 +0000 (02:26 +0000)]
2010-03-10  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/43320
PR libfortran/43265
* gfortran.dg/read_eof_6.f: New test
* gfortran.dg/read_x_eof.f90: Update test.
* gfortran.dg/read_x_past.f: Update test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157378 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-03-10 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Thu, 11 Mar 2010 02:15:33 +0000 (02:15 +0000)]
2010-03-10  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/43320
* io/transfer.c (next_record_r): Add hit_eof based on item_count
condition.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157377 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Thu, 11 Mar 2010 00:17:00 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157376 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-05-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Sun, 23 May 2010 00:00:17 +0000 (00:00 +0000)]
2010-05-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>

PR fortran/43851
* match.c (gfc_match_stopcode): Use gfc_match_init_expr. Go to cleanup
before returning MATCH_ERROR. Add check for scalar. Add check for
default integer kind.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159747 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agogcc/ChangeLog:
steven [Sat, 22 May 2010 22:24:53 +0000 (22:24 +0000)]
gcc/ChangeLog:
* coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
New core types.
* sbitmap.h (struct sbitmap_def): Do not typedef here.
* sbitmap.c: Include sbitmap.h.
* basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
hard-reg-set.h.  Split everything related to regsets out from here...
* regset.h: ...to here.  New file.
* df.h: Include regset.h and sbitmap.h.
* tree-flow.h: Likewise.
* cfgloop.h: Likewise.
* except.h: Do not include sbitmap.h.  Include hashtab.h.
* cgraph.h: Include vec.h and function.h.
* reload.h (struct insn_chain): Change types of live_throughout
and dead_or_set from regset_head to bitmap_head.
(compute_use_by_pseudos): Be defined also if regset.h is not included.
* ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
spilled_regs from regset_head to bitmap_head to avoid dependency
in regset.h.
* sel-sched-ir.h: Include regset.h.
* reload.c: Include df.h before reload.h.
* caller-save.c: Likewise.
* reload1.c: Likewise.
* ira.c: Likewise.
(mark_elimination): Update type of r to bitmap, consistent with
DF_LR_IN.
* dominance.c: Include bitmap.h.
* modulo-sched.c: Include df.h.
* cfganal.c: Include bitmap.h and sbitmap.h.
* cfgbuild.c: Include sbitmap.h.
* lcm.c: Include sbitmap.h.
* gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
* domwalk.c: Include sbitmap.h, exclude ggc.h.
* cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
* cselib.c: Include bitmap.h.
* tree-optimize.c: Include regset.h.
* stmt.c: Include bitmap.h.
* Makefile.in: Update dependencies.

cp/ChangeLog
* semantics.c: Include bitmap.h.
* Make-lang.in: Update dependencies.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159746 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-05-22 Janus Weil <janus@gcc.gnu.org>
janus [Sat, 22 May 2010 18:55:53 +0000 (18:55 +0000)]
2010-05-22  Janus Weil  <janus@gcc.gnu.org>

PR fortran/44212
* match.c (gfc_match_select_type): On error jump back out of the local
namespace.
* parse.c (parse_derived): Defer creation of vtab symbols to resolution
stage, more precisely to ...
* resolve.c (resolve_fl_derived): ... this place.

2010-05-22  Janus Weil  <janus@gcc.gnu.org>

PR fortran/44212
* gfortran.dg/class_22.f03: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159745 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agodarwin assembler does not support .type
iains [Sat, 22 May 2010 17:34:46 +0000 (17:34 +0000)]
darwin assembler does not support .type

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159700 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * decl2.c (maybe_emit_vtables): Produce same comdat group when outputting
hubicka [Sat, 22 May 2010 14:48:40 +0000 (14:48 +0000)]
* decl2.c (maybe_emit_vtables): Produce same comdat group when outputting
comdat vtables.
(cxx_callgraph_analyze_expr): Remove code marking vtables needed.

* cgraph.h (struct varpool_node): Add same_comdat_group.
* lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
pointer.
(output_varpool): Update call of lto_output_varpool_node.
(input_varpool): Read same_comdat_group pointer.
(input_varpool_1): Fixup same_comdat_group pointer.
* ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
group is needed, all are.
* varpool.c (varpool_remove_node): Remove node from same comdat group
linklist too.
(varpool_analyze_pending_decls): Walk same comdat groups.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159699 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * rtl.h (union rtunion_def): Remove rt_bit member.
steven [Sat, 22 May 2010 14:15:50 +0000 (14:15 +0000)]
* rtl.h (union rtunion_def): Remove rt_bit member.
(XBITMAP, X0BITMAP, XCBITMAP): Remove.
* print-rtl (print_rtx): Do not print the member.
* gengtype.c (adjust_field_rtx_def): Do not handle it.
* gengenrtl.c (type_from_format): Likewise.
(accessor_from_format): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159698 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * dbgcnt.c: Include toplev.h instead of errors.h.
jsm28 [Sat, 22 May 2010 13:46:01 +0000 (13:46 +0000)]
* dbgcnt.c: Include toplev.h instead of errors.h.
* ira-emit.c: Don't include errors.h.
* ira.c: Include toplev.h instead of errors.h.
* lto-compress.c: Include toplev.h instead of errors.h.
* Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
ira.o, dbgcnt.o): Update dependencies.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159697 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-05-22 Richard Guenther <rguenther@suse.de>
rguenth [Sat, 22 May 2010 12:56:53 +0000 (12:56 +0000)]
2010-05-22  Richard Guenther  <rguenther@suse.de>

* gimple.c (gimple_types_compatible_p): Check type qualifications
before merging pointer to complete and pointer to incomplete type.
* lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
we use our own resolution algorithm.  The gold linker plugin
doesn't do the job we want it to do here.

lto/
* lto.c (read_cgraph_and_symbols): Do not collect.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159696 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-05-22 Janus Weil <janus@gcc.gnu.org>
janus [Sat, 22 May 2010 10:21:32 +0000 (10:21 +0000)]
2010-05-22  Janus Weil  <janus@gcc.gnu.org>

PR fortran/44213
* resolve.c (ensure_not_abstract): Allow abstract types with
non-abstract ancestors.

2010-05-22  Janus Weil  <janus@gcc.gnu.org>

PR fortran/44213
* gfortran.dg/abstract_type_7.f03: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159695 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
aesok [Sat, 22 May 2010 09:15:37 +0000 (09:15 +0000)]
* config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
* config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
(sparc_mode_dependent_address_p): New function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159694 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Sat, 22 May 2010 00:17:24 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159691 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
steven [Fri, 21 May 2010 23:00:23 +0000 (23:00 +0000)]
* Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.

* timevar.c: Do not include any core headers.
(timevar_print): De-i18n-ize.
(print_time): Likewise.
* timevar.h (timevar_push, timevar_pop): Make inline functions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159687 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * cxx-pretty-print.c: Correct merge error.
jsm28 [Fri, 21 May 2010 22:58:12 +0000 (22:58 +0000)]
* cxx-pretty-print.c: Correct merge error.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159686 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
jsm28 [Fri, 21 May 2010 22:34:26 +0000 (22:34 +0000)]
* diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
langhooks-def.h.
(diagnostic_initialize): Initialize x_data not last_function.
(diagnostic_report_current_function): Move to tree-diagnostic.c.
(default_diagnostic_starter): Call
diagnostic_report_current_module not
diagnostic_report_current_function.
(diagnostic_report_diagnostic): Initialize x_data not
abstract_origin.
(verbatim): Likewise.
* diagnostic.h (struct diagnostic_info): Change abstract_origin to
x_data.
(struct diagnostic_context): Change last_function to x_data.
(diagnostic_auxiliary_data): Replace with
diagnostic_context_auxiliary_data and
diagnostic_info_auxiliary_data.
(diagnostic_last_function_changed, diagnostic_set_last_function,
diagnostic_report_current_function): Move to tree-diagnostic.h.
(print_declaration, dump_generic_node, print_generic_stmt,
print_generic_stmt_indented, print_generic_expr,
print_generic_decl, debug_c_tree, dump_omp_clauses,
print_call_name, debug_generic_expr, debug_generic_stmt,
debug_tree_chain, default_tree_printer): Move to
tree-pretty-print.h.
(debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
gimple-pretty-print.h.
* pretty-print.c: Don't include tree.h
(pp_base_format): Don't handle %K here.
(pp_base_tree_identifier): Move to tree-pretty-print.c.
* pretty-print.h (text_info): Change abstract_origin to x_data.
(pp_tree_identifier, pp_unsupported_tree,
pp_base_tree_identifier): Move to tree-pretty-print.h.
* gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
tree-pretty-print.h: New files.
* tree-pretty-print.c: Include tree-pretty-print.h.
(percent_K_format): New.  Moved from pretty-print.c.
(pp_base_tree_identifier): Move from pretty-print.c.
* c-objc-common.c: Include tree-pretty-print.h.
(c_tree_printer): Handle %K here.
* langhooks.c: Include tree-diagnostic.h.
(lhd_print_error_function): Use diagnostic_abstract_origin macro.
* toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
(default_tree_printer): Handle %K using percent_K_format.
(general_init): Use default_tree_diagnostic_starter.
* tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
(free_lang_data): Use default_tree_diagnostic_starter.
* c-pretty-print.c: Include tree-pretty-print.h.
* cfgexpand.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* cgraphunit.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* dwarf2out.c: Include tree-pretty-print.h.
* except.c: Include tree-pretty-print.h.
* gimple-pretty-print.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* gimplify.c: Include tree-pretty-print.h.
* graphite-poly.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* ipa-cp.c: Include tree-pretty-print.h.
* ipa-inline.c: Include gimple-pretty-print.h.
* ipa-prop.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* ipa-pure-const.c: Include gimple-pretty-print.h.
* ipa-struct-reorg.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* ipa-type-escape.c: Include tree-pretty-print.h.
* print-rtl.c: Include tree-pretty-print.h.
* print-tree.c: Include gimple-pretty-print.h.
* sese.c: Include tree-pretty-print.h.
* tree-affine.c: Include tree-pretty-print.h.
* tree-browser.c: Include tree-pretty-print.h.
* tree-call-cdce.c: Include gimple-pretty-print.h.
* tree-cfg.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-chrec.c: Include tree-pretty-print.h.
* tree-data-ref.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-dfa.c: Include tree-pretty-print.h.
* tree-if-conv.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-inline.c: Include tree-pretty-print.h.
* tree-into-ssa.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-nrv.c: Include tree-pretty-print.h.
* tree-object-size.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-outof-ssa.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-parloops.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-predcom.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-scalar-evolution.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-sra.c: Include tree-pretty-print.h.
* tree-ssa-address.c: Include tree-pretty-print.h.
* tree-ssa-alias.c: Include tree-pretty-print.h.
* tree-ssa-ccp.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-ssa-coalesce.c: Include tree-pretty-print.h.
* tree-ssa-copy.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-ssa-copyrename.c: Include tree-pretty-print.h.
* tree-ssa-dce.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-ssa-dom.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-ssa-dse.c: Include gimple-pretty-print.h.
* tree-ssa-forwprop.c: Include tree-pretty-print.h.
* tree-ssa-ifcombine.c: Include tree-pretty-print.h.
* tree-ssa-live.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-ssa-loop-im.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-ssa-loop-niter.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
* tree-ssa-math-opts.c: Include gimple-pretty-print.h.
* tree-ssa-operands.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-ssa-phiprop.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-ssa-pre.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-ssa-propagate.c: Include gimple-pretty-print.h.
* tree-ssa-reassoc.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-ssa-sccvn.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-ssa-sink.c: Include gimple-pretty-print.h.
* tree-ssa-ter.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-ssa-uninit.c: Include gimple-pretty-print.h.
* tree-ssa.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-stdarg.c: Include gimple-pretty-print.h.
* tree-switch-conversion.c: Include gimple-pretty-print.h.
* tree-tailcall.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-vect-data-refs.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-vect-loop-manip.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-vect-loop.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-vect-patterns.c: Include gimple-pretty-print.h.
* tree-vect-slp.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-vect-stmts.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* tree-vectorizer.c: Include tree-pretty-print.h.
* tree-vrp.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* value-prof.c: Include tree-pretty-print.h and
gimple-pretty-print.h.
* var-tracking.c: Include tree-pretty-print.h.
* Makefile.in (OBJS-common): Add tree-diagnostic.o.
(tree-diagnostic.o): New dependencies.
(c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
tree-ssa-address.o, tree-ssa-loop-niter.o,
tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
tree-parloops.o, tree-stdarg.o, tree-object-size.o,
gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
tree-switch-conversion.o, var-tracking.o, value-prof.o,
cfgexpand.o, pretty-print.o): Update dependencies.

cp:
* error.c: Include tree-diagnostic.h and tree-pretty-print.h.
(cp_print_error_function): Use diagnostic_abstract_origin macro.
(cp_printer): Handle %K here using percent_K_format.
* cxx-pretty-print.c: Include tree-pretty-print.h.
* Make-lang.in (cp/error.o, cp/cxx-pretty-print.o): Update
dependencies.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159685 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-05-22 Andreas Tobler <andreast@fgznet.ch>
andreast [Fri, 21 May 2010 22:19:12 +0000 (22:19 +0000)]
2010-05-22  Andreas Tobler  <andreast@fgznet.ch>

* tree-ssa-structalias.c: Remove tm_p.h from include.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159684 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
law [Fri, 21 May 2010 21:00:56 +0000 (21:00 +0000)]
* ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159683 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * tree-eh.c (cleanup_is_dead_in): New.
jason [Fri, 21 May 2010 19:32:29 +0000 (19:32 +0000)]
* tree-eh.c (cleanup_is_dead_in): New.
(lower_try_finally): Don't generate a dead cleanup region.
(lower_cleanup): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159682 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR debug/44223
jakub [Fri, 21 May 2010 18:45:29 +0000 (18:45 +0000)]
PR debug/44223
* haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
unchain each use from the cyclic next_regno_use chain first.

* gcc.target/i386/pr44223.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159680 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agogcc/ChangeLog:
steven [Fri, 21 May 2010 18:13:54 +0000 (18:13 +0000)]
gcc/ChangeLog:
* real: Do not include gmp.h, mpfr.h, and mpc.h.
(REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
(real_value_negate, real_value_abs): New prototypes.
(do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
* realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
new include file for interface between MPFR and REAL_VALUE_TYPE.
* real.c: Include realmpfr.h.
(real_arithmetic2): Remove legacy function.
(real_value_negate): New.
(real_value_abs): New.
(mfpr_from_real, real_from_mpfr): Move from here...
* realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
* builtins.c: Include realmpfr.h.
* fold-const.c: Include realmpfr.h.
(fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
(fold_negate_const): Likewise.
(fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
* toplev.c: Include realmpfr.h.
* simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
and real_value_negate.
* fixed-value.c (check_real_for_fixed_mode): Likewise.
* config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
(vfp3_const_double_index): Likewise.
(arm_print_operand): Likewise.
* Makefile.in: Update dependencies.

fortran/ChangeLog:
* trans-const.c: Include realmpfr.h.
* Make-lang.in: Update dependencies.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159679 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-05-21 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Fri, 21 May 2010 16:57:17 +0000 (16:57 +0000)]
2010-05-21  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/25306
* include/bits/stl_algobase.h (fill_n): Use a properly typed __niter
initialized to __n.
* include/bits/stl_algo.h (generate_n): Likewise.
* testsuite/25_algorithms/fill_n/25306.cc: New.
* testsuite/25_algorithms/generate_n/25306.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159677 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-05-21 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 21 May 2010 16:08:28 +0000 (16:08 +0000)]
2010-05-21  Richard Guenther  <rguenther@suse.de>

* lto-plugin.c (write_resolution): Do not assert syms is non-NULL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159676 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Fri, 21 May 2010 15:46:38 +0000 (15:46 +0000)]
2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/s390.c (override_options): Increase the default
of max-completely-peel-times.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159675 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago gcc/
jules [Fri, 21 May 2010 15:08:44 +0000 (15:08 +0000)]
gcc/
* config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
sibling calls for Thumb-1.
* config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
* config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
Thumb-2.
(*call_insn, *call_value_insn): Don't use for Thumb-2.
(sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
for Thumb-2.
(return): New expander.
(*arm_return): New name for ARM return insn.
* config/arm/thumb2.md (*thumb2_return): New insn pattern.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159672 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.target/i386/pr25993.c: Use @function as type specifier.
ro [Fri, 21 May 2010 15:03:26 +0000 (15:03 +0000)]
* gcc.target/i386/pr25993.c: Use @function as type specifier.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159671 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
joel [Fri, 21 May 2010 14:56:57 +0000 (14:56 +0000)]
2010-05-19  Joel Sherrill <joel.sherrill@oarcorp.com>

* config.host (sparc64-*-rtems*): New target.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159670 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
joel [Fri, 21 May 2010 14:56:39 +0000 (14:56 +0000)]
2010-05-19  Joel Sherrill <joel.sherrill@oarcorp.com>

* config.host (sparc64-*-rtems*): New target.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159669 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
joel [Fri, 21 May 2010 14:56:02 +0000 (14:56 +0000)]
2010-05-19  Joel Sherrill <joel.sherrill@oarcorp.com>

* config.gcc (sparc64-*-rtems*): New target.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159668 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * tree.c (build_function_decl_skip_args): Fix grammar.
froydnj [Fri, 21 May 2010 14:37:16 +0000 (14:37 +0000)]
* tree.c (build_function_decl_skip_args): Fix grammar.
(build_function_type_list_1): Fix typos, adjust formatting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159666 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Use GNU locale model for
jsm28 [Fri, 21 May 2010 14:07:00 +0000 (14:07 +0000)]
* acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Use GNU locale model for
glibc 2.3 and later, but not uClibc, without an execution test.
* configure: Regenerate.
* doc/xml/manual/configure.xml, doc/xml/manual/prerequisites.xml,
doc/xml/faq.xml: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159664 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agogcc/ChangeLog:
steven [Fri, 21 May 2010 13:53:22 +0000 (13:53 +0000)]
gcc/ChangeLog:
* tree.h: Include real.h and fixed-value.h as basic datatypes.
* dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
tree-pretty-print.c, tree-loop-distribution.c,
tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
config/score/score7.c, config/score/score.c, config/arm/arm.c,
config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
config/bfin/bfin.c:
Clean up redundant includes.
* Makefile.in: Update accordingly.

java/ChangeLog:
* typeck.c, decl.c, jcf-parse.c, except.c, expr.c:

cp/Changelog:
* error.c, tree.c, typeck2.c, cxx-pretty-print.c, mangle.c:
Clean up redundant includes.

fortran/ChangeLog:
* trans-const.c, trans-types.c, trans-intrinsic.c:
Clean up redundant includes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159663 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR middle-end/44204
froydnj [Fri, 21 May 2010 13:17:04 +0000 (13:17 +0000)]
PR middle-end/44204
* builtins.c (fold_call_stmt): Pass &error_mark_node if the call
statement has no arguments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159662 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-05-21 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Fri, 21 May 2010 12:59:30 +0000 (12:59 +0000)]
2010-05-21  Paolo Carlini  <paolo.carlini@oracle.com>

* include/tr1/functional: Use std::__addressof.
* include/tr1/hashtable_policy.h: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159661 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-05-21 Kai Tietz <kai.tietz@onevision.com>
ktietz [Fri, 21 May 2010 11:25:23 +0000 (11:25 +0000)]
2010-05-21  Kai Tietz  <kai.tietz@onevision.com>

        PR/44139
        * varasm.c (emutls_decl): Merge attributes to new decl.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159658 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR middle-end/44101
ebotcazou [Fri, 21 May 2010 10:02:07 +0000 (10:02 +0000)]
PR middle-end/44101
* gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
around the uniquized constructor if its type requires a conversion.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159655 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR debug/44205
jakub [Fri, 21 May 2010 09:26:31 +0000 (09:26 +0000)]
PR debug/44205
* tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
at -O0 goto_locus of any of the incoming edges differs from
goto_locus of outgoing edge, or gimple_location of any of the
labels differs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159652 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Fri, 21 May 2010 00:17:16 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159650 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * ira.c (ira_non_ordered_class_hard_regs): Define.
law [Thu, 20 May 2010 22:49:07 +0000 (22:49 +0000)]
   * ira.c (ira_non_ordered_class_hard_regs): Define.
        (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
        * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
        * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
        cost of unaligned hard regs when allocating multi-reg pseudos.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159644 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-05-20 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Thu, 20 May 2010 22:35:49 +0000 (22:35 +0000)]
2010-05-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/41792
* include/tr1_impl/array: Use std::__addressof.
* include/std/functional (reference_wrapper): Likewise.
* include/ext/throw_allocator.h: Likewise.
* include/ext/pool_allocator.h: Likewise.
* include/ext/bitmap_allocator.h: Likewise.
* include/ext/new_allocator.h: Likewise.
* include/ext/malloc_allocator.h: Likewise.
* include/ext/array_allocator.h: Likewise.
* include/ext/mt_allocator.h: Likewise.
* include/ext/extptr_allocator.h: Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/hashtable_policy.h: Likewise.
* include/bits/forward_list.h: Likewise.
* include/bits/stl_uninitialized.h: Likewise.
* include/bits/list.tcc: Likewise.
* include/bits/stl_construct.h: Likewise.
* include/bits/stl_tree.h: Likewise.
* testsuite/20_util/reference_wrapper/41792.cc: New.
* testsuite/23_containers/unordered_map/requirements/
explicit_instantiation/4.cc: Likewise.
* testsuite/23_containers/multimap/requirements/
explicit_instantiation/4.cc: Likewise.
* testsuite/23_containers/set/requirements/
explicit_instantiation/4.cc: Likewise.
* testsuite/23_containers/unordered_multimap/requirements/
explicit_instantiation/4.cc: Likewise.
* testsuite/23_containers/forward_list/requirements/
explicit_instantiation/4.cc: Likewise.
* testsuite/23_containers/unordered_set/requirements/
explicit_instantiation/4.cc: Likewise.
* testsuite/23_containers/vector/requirements/
explicit_instantiation/4.cc: Likewise.
* testsuite/23_containers/deque/requirements/
explicit_instantiation/4.cc: Likewise.
* testsuite/23_containers/multiset/requirements/
explicit_instantiation/4.cc: Likewise.
* testsuite/23_containers/list/requirements/
explicit_instantiation/4.cc: Likewise.
* testsuite/23_containers/unordered_multiset/requirements/
explicit_instantiation/4.cc: Likewise.
* testsuite/23_containers/map/requirements/
explicit_instantiation/4.cc: Likewise.
* testsuite/23_containers/array/requirements/
explicit_instantiation/3.cc: Likewise.
* testsuite/23_containers/forward_list/requirements/
dr438/assign_neg.cc: Adjust dg-error line numbers.
* testsuite/23_containers/forward_list/requirements/dr438/
insert_neg.cc: Likewise.
* testsuite/23_containers/forward_list/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/forward_list/requirements/dr438/
constructor_2_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/
assign_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/
insert_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/
constructor_2_neg.cc: Likewise.

2010-05-20  Peter Dimov  <pdimov@pdimov.com>
    Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/move.h (__addressof, addressof): Add.
* testsuite/util/testsuite_api.h (struct OverloadedAddress): Add.
* testsuite/20_util/addressof/requirements/
explicit_instantiation.cc: New.
* testsuite/20_util/addressof/1.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159643 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-05-08 Richard Sandiford <rdsandiford@googlemail.com>
rsandifo [Thu, 20 May 2010 22:20:34 +0000 (22:20 +0000)]
2010-05-08  Richard Sandiford  <rdsandiford@googlemail.com>
    Jim Wilson  <wilson@codesourcery.com>

gcc/
* config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
* config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
for TARGET_NO_FLOAT.
* config/mips/mips.c (mips_file_start): Expand conditional expression
into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
(mips_override_options): Move -mno-float override -msoft-float and
-mhard-float.
* config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
Condition(TARGET_SUPPORTS_NO_FLOAT).
* config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
__mips_no_float here.
(SUBTARGET_OVERRIDE_OPTIONS): Delete.
(TARGET_SUPPORTS_NO_FLOAT): Define.
* config/mips/sdemtk.opt: Delete.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159642 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agogcc/fortran/:
dfranke [Thu, 20 May 2010 21:49:07 +0000 (21:49 +0000)]
gcc/fortran/:
2010-05-20  Daniel Franke  <franke.daniel@gmail.com>

        PR fortran/38407
        * lang.opt (Wunused-dummy-argument): New option.
        * gfortran.h (gfc_option_t): Add warn_unused_dummy_argument.
        * options.c (gfc_init_options): Disable warn_unused_dummy_argument.
        (set_Wall): Enable warn_unused_dummy_argument.
        (gfc_handle_option): Set warn_unused_dummy_argument according to
        command line.
        * trans-decl.c (generate_local_decl): Separate warnings about
        unused variables and unused dummy arguments.
        * invoke.texi: Documented new option.

gcc/testsuite/:
2010-05-20  Daniel Franke  <franke.daniel@gmail.com>

        PR fortran/38407
        * warn_unused_dummy_argument_1.f90: New.
        * warn_unused_dummy_argument_2.f90: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159641 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * trans-expr.c: Do not include convert.h, ggc.h, real.h, and gimple.h.
steven [Thu, 20 May 2010 20:57:45 +0000 (20:57 +0000)]
* trans-expr.c: Do not include convert.h, ggc.h, real.h, and gimple.h.
(gfc_conv_string_tmp): Do not assert type comparibilty.
*  trans-array.c: Do not include gimple.h, ggc.h, and real.h.
(gfc_conv_expr_descriptor): Remove assert.
* trans-common.c: Clarify why rtl.h and tm.h are included.
* trans-openmp.c: Do not include ggc.h and real.h.
Explain why gimple.h is included.
* trans-const.c: Do not include ggc.h.
* trans-stmt.c: Do not include gimple.h, ggc.h, and real.h.
* trans.c: Do not include ggc.h and real.h.
Explain why gimple.h is included.
* trans-types.c: Do not include tm.h.  Explain why langhooks.h
and dwarf2out.h are included.
* trans-io.c: Do not include gimple.h and real.h.
* trans-decl.c: Explain why gimple.h, tm.h, and rtl.h are included.
* trans-intrinsic.c: Do not include gimple.h.  Explain why tm.h
is included.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159640 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
segher [Thu, 20 May 2010 20:14:39 +0000 (20:14 +0000)]
2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>

* ipa-prop.c (compute_complex_ancestor_jump_func): Bail
out if !cond.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159639 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-05-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Thu, 20 May 2010 19:40:30 +0000 (19:40 +0000)]
2010-05-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>

PR fortran/43851
* runtime/stop.c (stop_string): Make sure nothing is emitted for
blank stop.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159638 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago/cp
paolo [Thu, 20 May 2010 19:31:47 +0000 (19:31 +0000)]
/cp
2010-05-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/30298
* decl.c (xref_basetypes): Return false in case of ill-formed
redefinition.

/testsuite
2010-05-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/30298
* g++.dg/inherit/crash1.C: New.
* g++.dg/inherit/crash2.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159637 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR target/43733
uros [Thu, 20 May 2010 18:52:03 +0000 (18:52 +0000)]
PR target/43733
* configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
* configure: Regenerate.
* config.in: Regenerate.
* config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
instead of sahf only for 64bit targets.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159636 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR debug/43521
jakub [Thu, 20 May 2010 17:00:32 +0000 (17:00 +0000)]
PR debug/43521
* decl.c (start_java_method): Set DECL_ARTIFICIAL on the 'this'
PARM_DECL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159635 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR debug/44178
jakub [Thu, 20 May 2010 16:34:43 +0000 (16:34 +0000)]
PR debug/44178
* haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
setup_ref_regs for DEBUG_INSNs.

* g++.dg/debug/pr44178.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159632 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoFix PR44185: new prefetch test failures.
spop [Thu, 20 May 2010 15:29:40 +0000 (15:29 +0000)]
Fix PR44185: new prefetch test failures.

2010-05-20  Changpeng Fang  <changpeng.fang@amd.com>

PR middle-end/44185
* gcc.dg/tree-ssa/prefetch-6.c: Add --param min-insn-to-prefetch-ratio=6.
* gcc.dg/tree-ssa/prefetch-7.c: Remove --param max-unrolled-insns=1 to
        allow unrolling, and adjust the movnti count.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159630 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR middle-end/44197
hubicka [Thu, 20 May 2010 14:57:27 +0000 (14:57 +0000)]
PR middle-end/44197
* varpool.c (varpool_remove_node): Handle in-varpool aliases.
* gcc.c-torture/compile/pr44197.c: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159629 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-05-20 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Thu, 20 May 2010 14:08:53 +0000 (14:08 +0000)]
2010-05-20  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/stl_pair.h (pair<>::pair(const pair&)): Defaulted
in C++0x mode.
(pair<>::operator=(const pair<>&)): Add in C++0x mode.
* testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust dg-error
line number.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159628 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR bootstrap/43870
ro [Thu, 20 May 2010 12:05:54 +0000 (12:05 +0000)]
PR bootstrap/43870
* df-scan.c (df_ref_compare): Stabilize sort.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159625 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
jakub [Thu, 20 May 2010 10:35:04 +0000 (10:35 +0000)]
* dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
argument.  Don't use DW_OP_piece if offset is non-zero,
put offset into second DW_OP_bit_piece argument.
(dw_sra_loc_expr): Adjust callers.  For memory expressions
compute offset.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159623 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.target/i386/i386.exp (check_effective_target_3dnow):
uros [Thu, 20 May 2010 09:34:50 +0000 (09:34 +0000)]
* gcc.target/i386/i386.exp (check_effective_target_3dnow):
Fix test code.
(check_effective_target_xop): Remove __may_alias__ attribute.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159621 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-05-20 Tobias Burnus <burnus@net-b.de>
burnus [Thu, 20 May 2010 07:49:26 +0000 (07:49 +0000)]
2010-05-20  Tobias Burnus  <burnus@net-b.de>

        * options.c (gfc_init_options,gfc_post_options): Enable
        flag_associative_math by default.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159620 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago* config/mips/mips-dsp.md (add<DSPV:mode>3,
wilson [Thu, 20 May 2010 06:53:43 +0000 (06:53 +0000)]
* config/mips/mips-dsp.md (add<DSPV:mode>3,
mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159619 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR target/44202
hp [Thu, 20 May 2010 06:45:38 +0000 (06:45 +0000)]
PR target/44202
* config/cris/cris.md ("*addsi3_v32"): Correct "cc"
settings for 16-bit-constant "addo" alternative.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159612 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR target/44202
hp [Thu, 20 May 2010 06:44:45 +0000 (06:44 +0000)]
PR target/44202
* gcc.c-torture/execute/pr44202-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159611 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoPR target/43764
wilson [Thu, 20 May 2010 06:26:52 +0000 (06:26 +0000)]
PR target/43764
* mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
(mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159610 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-05-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Thu, 20 May 2010 04:44:11 +0000 (04:44 +0000)]
2010-05-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>

PR fortran/43851
* runtime/stop.c (error_stop_numeric): New function and updated comment.
Add declaration for stop_numeric and remove declaration for stop_string.
(stop_string): Use for blank STOP.
(stop_numeric): Remove use of special -1 stop code.
* runtime/pause.c (do_pause): Use stop_string for blank stop.
(pause_numeric): Remove use of special -1 pause code.
* gfortran.map: Add new symbol to run-time library.
* libgfortran.h: Move declaration for stop_string to here to make
function visible for do_pause. Remove declaration for stop_numeric.

2010-05-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>

PR fortran/43851
* trans-stmt.c (gfc_trans_stop): Add generation of call to
gfortran_error_stop_numeric. Fix up some whitespace. Use stop_string for
blank STOP, handling a null expression. (gfc_trans_pause): Use
pause_string for blank PAUSE.
* trans.h: Add external function declaration for error_stop_numeric.
* trans-decl.c (gfc_build_builtin_function_decls): Add the building of
the declaration for the library call. Adjust whitespaces.
* match.c (gfc_match_stopcode): Remove use of the actual stop code to
signal no stop code. Match the expression following the stop and pass
that to the translators. Remove the old use of digit matching.  Add
checks that the stop_code expression is INTEGER or CHARACTER, constant,
and if CHARACTER, default character KIND.

2010-05-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>

PR fortran/43851
* gfortran.dg/label_1.f90: Update test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159609 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Thu, 20 May 2010 00:18:01 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159608 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * gcc.dg/lto/ipareference2_0.c: New file.
hubicka [Wed, 19 May 2010 23:55:38 +0000 (23:55 +0000)]
* gcc.dg/lto/ipareference2_0.c: New file.
* gcc.dg/lto/ipareference2_1.c: New file.
* lto.c (promote_var, promote_fn): New functions.
(lto_promote_cross_file_statics): Compute correctly boundary including
static initializers of readonly vars.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159604 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * diagnostic.c (FLOAT, FFS): Don't undefine.
jsm28 [Wed, 19 May 2010 21:32:19 +0000 (21:32 +0000)]
* diagnostic.c (FLOAT, FFS): Don't undefine.
* passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
* cse.c, regmove.c: Remove comments about stdio.h and rtl.h
include ordering.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159602 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agogcc/
rsandifo [Wed, 19 May 2010 21:08:53 +0000 (21:08 +0000)]
gcc/
* combine.c (propagate_for_debug): Call make_compound_operation
on the source value.
(try_combine): When implementing a split chosen by find_split_point,
either copy i2src or set it to null.  Assert that i2src is not null
before substituting into CALL_INSN_FUNCTION_USAGE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159600 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * call.c (reference_binding): Use cp_build_qualified_type_real
jason [Wed, 19 May 2010 21:02:27 +0000 (21:02 +0000)]
* call.c (reference_binding): Use cp_build_qualified_type_real
and cp_type_quals consistently.
(add_function_candidate): Likewise.
(build_conditional_expr): Likewise.
(convert_like_real): Likewise.
(type_passed_as): Likewise.
* class.c (add_method): Likewise.
(same_signature_p): Likewise.
(layout_class_type): Likewise.
* decl.c (cxx_init_decl_processing): Likewise.
(cp_fname_init): Likewise.
(grokdeclarator): Likewise.
* decl2.c (cp_reconstruct_complex_type): Likewise.
* init.c (build_new_1): Likewise.
* method.c (do_build_copy_constructor): Likewise.
(implicitly_declare_fn): Likewise.
* pt.c (tsubst_aggr_type): Likewise.
(tsubst): Likewise.
* rtti.c (init_rtti_processing): Likewise.
(build_headof): Likewise.
(build_dynamic_cast_1): Likewise.
(tinfo_base_init): Likewise.
(emit_support_tinfos): Likewise.
* semantics.c (capture_decltype): Likewise.
* tree.c (cv_unqualified): Likewise.
* typeck.c (composite_pointer_type): Likewise.
(string_conv_p): Likewise.

* mangle.c (write_CV_qualifiers_for_type): Tweak.

* call.c (initialize_reference): Use CP_TYPE_CONST_P.
* decl.c (start_decl): Likewise.
* semantics.c (finish_compound_literal): Likewise.
* typeck.c (check_return_expr): Use CP_TYPE_VOLATILE_P.
(cp_type_readonly): Remove.
* cp-tree.h: Remove declaration.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159599 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * typeck.c (merge_types): Preserve memfn quals.
jason [Wed, 19 May 2010 21:02:16 +0000 (21:02 +0000)]
* typeck.c (merge_types): Preserve memfn quals.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159598 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * decl.c (grokdeclarator): Don't check quals on fn type.
jason [Wed, 19 May 2010 21:02:03 +0000 (21:02 +0000)]
* decl.c (grokdeclarator): Don't check quals on fn type.
* typeck.c (cp_apply_type_quals_to_decl): Likewise.
* tree.c (cp_build_qualified_type_real): Simplify qualifier checking.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159597 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR c++/44193
jason [Wed, 19 May 2010 21:01:50 +0000 (21:01 +0000)]
PR c++/44193
* typeck.c (type_memfn_quals): New fn.
(apply_memfn_quals): New fn.
(cp_type_quals): Return TYPE_UNQUALIFIED for FUNCTION_TYPE.
(cp_type_readonly): Use cp_type_quals.
* cp-tree.h: Add declarations.
* tree.c (cp_build_qualified_type_real): Don't set, but do
preserve, quals on FUNCTION_TYPE.
(strip_typedefs): Use apply_memfn_quals and type_memfn_quals.
* decl.c (build_ptrmem_type): Likewise.
(grokdeclarator): Likewise.
(static_fn_type): Likewise.
* decl2.c (change_return_type): Likewise.
(cp_reconstruct_complex_type): Likewise.
* pt.c (tsubst_function_type): Likewise.
(unify): Likewise.
(tsubst): Likewise.  Drop special FUNCTION_TYPE substitution code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159596 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * double-int.h (double_int_ior): New function.
aesok [Wed, 19 May 2010 20:09:57 +0000 (20:09 +0000)]
* double-int.h (double_int_ior): New function.
* tree.h (build_int_cst_wide_type): Remove.
* tree.c (build_int_cst_wide_type): Remove.
* fold-const.c (native_interpret_int): Use double_int_to_tree instead
of build_int_cst_wide_type.
* stor-layout.c (set_sizetype): (Ditto.).
* dojump.c (do_jump): Use build_int_cstu instead of
build_int_cst_wide_type.

/java
* jcf-parse.c (get_constant): Use double_int_to_tree instead of
build_int_cst_wide_type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159595 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-05-19 Jonathan Wakely <jwakely.gcc@gmail.com>
redi [Wed, 19 May 2010 18:48:48 +0000 (18:48 +0000)]
2010-05-19  Jonathan Wakely  <jwakely.gcc@gmail.com>

* testsuite/30_threads/future/members/wait.cc (wait): Rename.
* testsuite/30_threads/shared_future/members/wait.cc (wait): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159593 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
ebotcazou [Wed, 19 May 2010 17:53:58 +0000 (17:53 +0000)]
* langhooks.h (struct lang_hooks): Add new field deep_unsharing.
* langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
(LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
* gimplify.c: (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
propagate the 'data' argument to copy_tree_r.
(copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
Propagate 'data' argument to walk_tree.
(copy_if_shared): New function.
(unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
(unmark_visited): New function.
(unshare_body): Call copy_if_shared instead of doing it manually.
(unvisit_body): Call unmark_visited instead of doing it manually.
ada/
* gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
* gcc-interface/trans.c (unshare_save_expr): Delete.
(gigi): Do not unshare trees under SAVE_EXPRs here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159592 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agogcc/fortran/:
dfranke [Wed, 19 May 2010 16:35:34 +0000 (16:35 +0000)]
gcc/fortran/:
2010-05-19  Daniel Franke  <franke.daniel@gmail.com>

PR fortran/44055
* lang.opt (Wconversion-extra): New option.
* gfortran.h (gfc_option_t): Add warn_conversion_extra.
* options.c (gfc_init_options): Disable -Wconversion-extra by default.
(set_Wall): Enable -Wconversion.
(gfc_handle_option): Set warn_conversion_extra.
* intrinsic.c (gfc_convert_type_warn): Ignore kind conditions
introduced for -Wconversion if -Wconversion-extra is present.
* invoke.texi: Add -Wconversion to -Wall; document new behaviour of
-Wconversion; document -Wconversion-extra.

gcc/testsuite/:
2010-05-19  Daniel Franke  <franke.daniel@gmail.com>

PR fortran/44055
* gfortran.dg/c_sizeof_2.f90: Add -Wno-conversion to dg-options;
Fixed scope of C_SIZEOF.
* gfortran.dg/warn_conversion_2.f90: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159586 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
froydnj [Wed, 19 May 2010 16:23:27 +0000 (16:23 +0000)]
* hooks.h (hook_tree_tree_tree_bool_null): Rename to...
(hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
* hooks.c: Likewise.
* target-def.h (TARGET_FOLD_BUILTIN): Define to
hook_tree_tree_int_treep_bool_null.
* target.h: (struct gcc_target): Update signature of fold_builtin
field.
* doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
* builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
instead of the call expression.
(fold_builtin_call_array): Pass n and argarray directly.
(fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
consing a list.
* config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
`i' and use it in place of `arity'.
* config/sparc/sparc.c (sparc_fold_builtin): Update signature.
Dereference `args' directly.
* config/xtensa/xtensa (xtensa_fold_builtin): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159585 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago gcc:
ro [Wed, 19 May 2010 16:10:05 +0000 (16:10 +0000)]
gcc:
* doc/sourcebuild.texi (Effective-Target Keywords): Document
3dnow, sse3, sse2.
(Directives): Document optional dg-require-effective-target
selector.

gcc/testsuite:
* lib/target-supports.exp (check_effective_target_sse2): New proc.
* lib/target-supports-dg.exp (dg-require-effective-target): Allow
for optional selector.
* gcc.target/i386/i386.exp (check_effective_target_3dnow): New proc.
(check_effective_target_sse3): New proc.
* gcc.target/i386/math-torture/math-torture.exp: Load
target-supports.exp.
Only add options with -msse2 to MATH_TORTURE_OPTIONS if
check_effective_target_sse2.
* gcc.dg/vect/vect.exp: Return unless check_effective_target_sse2.
* gcc.dg/vect/costmodel/i386/i386-costmodel-vect.exp: Likewise.
* g++.dg/vect/vect.exp: Likewise.
* gfortran.dg/vect/vect.exp: Likewise.
* lib/fortran-torture.exp (get-fortran-torture-options): Only use
-msse2 if check_effective_target_sse2.

* gcc.target/i386/3dnow-1.c: Use dg-require-effective-target 3dnow.
* gcc.target/i386/3dnow-2.c: Likewise.
* gcc.target/i386/3dnowA-1.c: Likewise.
* gcc.target/i386/3dnowA-2.c: Likewise.
* gcc.target/i386/pr42549.c: Likewise.

* gcc.target/i386/sse3-addsubpd.c: Use dg-require-effective-target sse3.
* gcc.target/i386/sse3-addsubps.c: Likewise.
* gcc.target/i386/sse3-haddpd.c: Likewise.
* gcc.target/i386/sse3-haddps.c: Likewise.
* gcc.target/i386/sse3-hsubpd.c: Likewise.
* gcc.target/i386/sse3-hsubps.c: Likewise.
* gcc.target/i386/sse3-lddqu.c: Likewise.
* gcc.target/i386/sse3-movddup.c: Likewise.
* gcc.target/i386/sse3-movshdup.c: Likewise.
* gcc.target/i386/sse3-movsldup.c: Likewise.

* g++.dg/abi/mangle42.C: Use dg-require-effective-target sse2.
* g++.dg/ext/attrib35.C: Likewise.
* g++.dg/opt/pr40496.C: Likewise.
* g++.dg/other/i386-1.C: Likewise.
* g++.dg/other/i386-4.C: Likewise.
* g++.dg/other/pr34435.C: Likewise.
* g++.dg/other/pr39496.C: Likewise.
* g++.dg/other/pr40446.C: Likewise.
* gcc.dg/compat/union-m128-1_main.c: Likewise.
* gcc.dg/compat/vector-1a_main.c: Likewise.
* gcc.dg/compat/vector-2a_main.c: Likewise.
* gcc.dg/lto/20090206-1_0.c: Likewise.
* gcc.dg/pr34856.c: Likewise.
* gcc.dg/pr36584.c: Likewise.
* gcc.dg/pr36997.c: Likewise.  Adapt dg-message line number.
* gcc.dg/pr37544.c: Likewise.
* gcc.dg/torture/pr16104-1.c: Likewise.
* gcc.dg/torture/pr35771-1.c: Likewise.
* gcc.dg/torture/pr35771-2.c: Likewise.
* gcc.dg/torture/pr35771-3.c: Likewise.
* gcc.dg/torture/stackalign/alloca-2.c: Likewise.
* gcc.dg/torture/stackalign/alloca-3.c: Likewise.
* gcc.dg/torture/stackalign/push-1.c: Likewise.
* gcc.dg/torture/stackalign/vararg-3.c: Likewise.
* gcc.dg/tree-ssa/prefetch-6.c: Likewise.
* gcc.dg/tree-ssa/prefetch-7.c: Likewise.
* gcc.dg/vect/vect-debug-pr41926.c: Likewise.
* gcc.target/i386/20060512-1.c: Likewise.
* gcc.target/i386/20060512-3.c: Likewise.
* gcc.target/i386/all_one_m128i.c: Likewise.
* gcc.target/i386/float128-1.c: Likewise.
* gcc.target/i386/float128-2.c: Likewise.
* gcc.target/i386/fpcvt-1.c: Likewise.
* gcc.target/i386/fpcvt-2.c: Likewise.
* gcc.target/i386/fpcvt-3.c: Likewise.
* gcc.target/i386/fpprec-1.c: Likewise.
* gcc.target/i386/funcspec-9.c: Likewise.
* gcc.target/i386/incoming-1.c: Likewise.
* gcc.target/i386/incoming-12.c: Likewise.
* gcc.target/i386/incoming-2.c: Likewise.
* gcc.target/i386/incoming-3.c: Likewise.
* gcc.target/i386/incoming-4.c: Likewise.
* gcc.target/i386/incoming-6.c: Likewise.
* gcc.target/i386/incoming-7.c: Likewise.
* gcc.target/i386/incoming-8.c: Likewise.
* gcc.target/i386/opt-1.c: Likewise.
* gcc.target/i386/opt-2.c: Likewise.
* gcc.target/i386/ordcmp-1.c: Likewise.
* gcc.target/i386/pr17692.c: Likewise.
* gcc.target/i386/pr18614-1.c: Likewise.
* gcc.target/i386/pr22152.c: Likewise.
* gcc.target/i386/pr23570.c: Likewise.
* gcc.target/i386/pr23575.c: Likewise.
* gcc.target/i386/pr26449-1.c: Likewise.
* gcc.target/i386/pr26600.c: Likewise.
* gcc.target/i386/pr27790.c: Likewise.
* gcc.target/i386/pr28839.c: Likewise.
* gcc.target/i386/pr30970.c: Likewise.
* gcc.target/i386/pr32000-1.c: Likewise.
* gcc.target/i386/pr32000-2.c: Likewise.
* gcc.target/i386/pr32280.c: Likewise.
* gcc.target/i386/pr32661.c: Likewise.
* gcc.target/i386/pr32708-1.c: Likewise.
* gcc.target/i386/pr32961.c: Likewise.
* gcc.target/i386/pr33329.c: Likewise.
* gcc.target/i386/pr35714.c: Likewise.
* gcc.target/i386/pr35767-1.c: Likewise.
* gcc.target/i386/pr35767-1d.c: Likewise.
* gcc.target/i386/pr35767-1i.c: Likewise.
* gcc.target/i386/pr35767-2.c: Likewise.
* gcc.target/i386/pr35767-2d.c: Likewise.
* gcc.target/i386/pr35767-2i.c: Likewise.
* gcc.target/i386/pr35767-3.c: Likewise.
* gcc.target/i386/pr35767-5.c: Likewise.
* gcc.target/i386/pr36222-1.c: Likewise.
* gcc.target/i386/pr36578-1.c: Likewise.
* gcc.target/i386/pr36578-2.c: Likewise.
* gcc.target/i386/pr36992-1.c: Likewise.
* gcc.target/i386/pr37101.c: Likewise.
* gcc.target/i386/pr37216.c: Likewise.
* gcc.target/i386/pr37434-1.c: Likewise.
* gcc.target/i386/pr37434-2.c: Likewise.
* gcc.target/i386/pr37843-3.c: Likewise.
* gcc.target/i386/pr37843-4.c: Likewise.
* gcc.target/i386/pr39162.c: Likewise.
* gcc.target/i386/pr39315-1.c: Likewise.
* gcc.target/i386/pr39315-2.c: Likewise.
* gcc.target/i386/pr39315-3.c: Likewise.
* gcc.target/i386/pr39315-4.c: Likewise.
* gcc.target/i386/pr39445.c: Likewise.
* gcc.target/i386/pr39496.c: Likewise.
* gcc.target/i386/pr40809.c: Likewise.
* gcc.target/i386/pr40906-3.c: Likewise.
* gcc.target/i386/pr41019.c: Likewise.
* gcc.target/i386/pr42542-1.c: Likewise.
* gcc.target/i386/pr42542-2.c: Likewise.
* gcc.target/i386/pr42542-3.c: Likewise.
* gcc.target/i386/pr42542-3a.c: Likewise.
* gcc.target/i386/pr42881.c: Likewise.
* gcc.target/i386/push-1.c: Likewise.
* gcc.target/i386/quad-sse.c: Likewise.
* gcc.target/i386/reload-1.c: Likewise.
* gcc.target/i386/sse-10.c: Likewise.
* gcc.target/i386/sse-11.c: Likewise.
* gcc.target/i386/sse-15.c: Likewise.
* gcc.target/i386/sse-17.c: Likewise.
* gcc.target/i386/sse-18.c: Likewise.
* gcc.target/i386/sse-19.c: Likewise.
* gcc.target/i386/sse-4.c: Likewise.
* gcc.target/i386/sse-6.c: Likewise.
* gcc.target/i386/sse-vect-types.c: Likewise.
* gcc.target/i386/sse2-addpd-1.c: Likewise.
* gcc.target/i386/sse2-addsd-1.c: Likewise.
* gcc.target/i386/sse2-andnpd-1.c: Likewise.
* gcc.target/i386/sse2-andpd-1.c: Likewise.
* gcc.target/i386/sse2-cmpsd-1.c: Likewise.
* gcc.target/i386/sse2-comisd-1.c: Likewise.
* gcc.target/i386/sse2-comisd-2.c: Likewise.
* gcc.target/i386/sse2-comisd-3.c: Likewise.
* gcc.target/i386/sse2-comisd-4.c: Likewise.
* gcc.target/i386/sse2-comisd-5.c: Likewise.
* gcc.target/i386/sse2-comisd-6.c: Likewise.
* gcc.target/i386/sse2-copysign-vec.c: Likewise.
* gcc.target/i386/sse2-cvtdq2pd-1.c: Likewise.
* gcc.target/i386/sse2-cvtdq2ps-1.c: Likewise.
* gcc.target/i386/sse2-cvtpd2dq-1.c: Likewise.
* gcc.target/i386/sse2-cvtpd2ps-1.c: Likewise.
* gcc.target/i386/sse2-cvtps2dq-1.c: Likewise.
* gcc.target/i386/sse2-cvtps2pd-1.c: Likewise.
* gcc.target/i386/sse2-cvtsd2si-1.c: Likewise.
* gcc.target/i386/sse2-cvtsd2si-2.c: Likewise.
* gcc.target/i386/sse2-cvtsd2ss-1.c: Likewise.
* gcc.target/i386/sse2-cvtsi2sd-1.c: Likewise.
* gcc.target/i386/sse2-cvtsi2sd-2.c: Likewise.
* gcc.target/i386/sse2-cvtss2sd-1.c: Likewise.
* gcc.target/i386/sse2-cvttpd2dq-1.c: Likewise.
* gcc.target/i386/sse2-cvttps2dq-1.c: Likewise.
* gcc.target/i386/sse2-cvttsd2si-1.c: Likewise.
* gcc.target/i386/sse2-cvttsd2si-2.c: Likewise.
* gcc.target/i386/sse2-divpd-1.c: Likewise.
* gcc.target/i386/sse2-divsd-1.c: Likewise.
* gcc.target/i386/sse2-init-v16qi-1.c: Likewise.
* gcc.target/i386/sse2-init-v2di-1.c: Likewise.
* gcc.target/i386/sse2-init-v4si-1.c: Likewise.
* gcc.target/i386/sse2-init-v8hi-1.c: Likewise.
* gcc.target/i386/sse2-lrint-vec.c: Likewise.
* gcc.target/i386/sse2-lrintf-vec.c: Likewise.
* gcc.target/i386/sse2-maxpd-1.c: Likewise.
* gcc.target/i386/sse2-maxsd-1.c: Likewise.
* gcc.target/i386/sse2-minpd-1.c: Likewise.
* gcc.target/i386/sse2-minsd-1.c: Likewise.
* gcc.target/i386/sse2-mmx.c: Likewise.
* gcc.target/i386/sse2-movapd-1.c: Likewise.
* gcc.target/i386/sse2-movapd-2.c: Likewise.
* gcc.target/i386/sse2-movd-1.c: Likewise.
* gcc.target/i386/sse2-movd-2.c: Likewise.
* gcc.target/i386/sse2-movdqa-1.c: Likewise.
* gcc.target/i386/sse2-movdqa-2.c: Likewise.
* gcc.target/i386/sse2-movdqu-1.c: Likewise.
* gcc.target/i386/sse2-movdqu-2.c: Likewise.
* gcc.target/i386/sse2-movhpd-1.c: Likewise.
* gcc.target/i386/sse2-movhpd-2.c: Likewise.
* gcc.target/i386/sse2-movlpd-1.c: Likewise.
* gcc.target/i386/sse2-movlpd-2.c: Likewise.
* gcc.target/i386/sse2-movmskpd-1.c: Likewise.
* gcc.target/i386/sse2-movntdq-1.c: Likewise.
* gcc.target/i386/sse2-movntpd-1.c: Likewise.
* gcc.target/i386/sse2-movq-1.c: Likewise.
* gcc.target/i386/sse2-movq-2.c: Likewise.
* gcc.target/i386/sse2-movq-3.c: Likewise.
* gcc.target/i386/sse2-movsd-1.c: Likewise.
* gcc.target/i386/sse2-movsd-2.c: Likewise.
* gcc.target/i386/sse2-movupd-1.c: Likewise.
* gcc.target/i386/sse2-movupd-2.c: Likewise.
* gcc.target/i386/sse2-mulpd-1.c: Likewise.
* gcc.target/i386/sse2-mulsd-1.c: Likewise.
* gcc.target/i386/sse2-orpd-1.c: Likewise.
* gcc.target/i386/sse2-packssdw-1.c: Likewise.
* gcc.target/i386/sse2-packsswb-1.c: Likewise.
* gcc.target/i386/sse2-packuswb-1.c: Likewise.
* gcc.target/i386/sse2-paddb-1.c: Likewise.
* gcc.target/i386/sse2-paddd-1.c: Likewise.
* gcc.target/i386/sse2-paddq-1.c: Likewise.
* gcc.target/i386/sse2-paddsb-1.c: Likewise.
* gcc.target/i386/sse2-paddsw-1.c: Likewise.
* gcc.target/i386/sse2-paddusb-1.c: Likewise.
* gcc.target/i386/sse2-paddusw-1.c: Likewise.
* gcc.target/i386/sse2-paddw-1.c: Likewise.
* gcc.target/i386/sse2-pand-1.c: Likewise.
* gcc.target/i386/sse2-pandn-1.c: Likewise.
* gcc.target/i386/sse2-pavgb-1.c: Likewise.
* gcc.target/i386/sse2-pavgw-1.c: Likewise.
* gcc.target/i386/sse2-pcmpeqb-1.c: Likewise.
* gcc.target/i386/sse2-pcmpeqd-1.c: Likewise.
* gcc.target/i386/sse2-pcmpeqw-1.c: Likewise.
* gcc.target/i386/sse2-pcmpgtb-1.c: Likewise.
* gcc.target/i386/sse2-pcmpgtd-1.c: Likewise.
* gcc.target/i386/sse2-pcmpgtw-1.c: Likewise.
* gcc.target/i386/sse2-pmaddwd-1.c: Likewise.
* gcc.target/i386/sse2-pmaxsw-1.c: Likewise.
* gcc.target/i386/sse2-pmaxub-1.c: Likewise.
* gcc.target/i386/sse2-pminsw-1.c: Likewise.
* gcc.target/i386/sse2-pminub-1.c: Likewise.
* gcc.target/i386/sse2-pmovmskb-1.c: Likewise.
* gcc.target/i386/sse2-pmulhuw-1.c: Likewise.
* gcc.target/i386/sse2-pmulhw-1.c: Likewise.
* gcc.target/i386/sse2-pmullw-1.c: Likewise.
* gcc.target/i386/sse2-pmuludq-1.c: Likewise.
* gcc.target/i386/sse2-por-1.c: Likewise.
* gcc.target/i386/sse2-psadbw-1.c: Likewise.
* gcc.target/i386/sse2-pshufd-1.c: Likewise.
* gcc.target/i386/sse2-pshufhw-1.c: Likewise.
* gcc.target/i386/sse2-pshuflw-1.c: Likewise.
* gcc.target/i386/sse2-pslld-1.c: Likewise.
* gcc.target/i386/sse2-pslld-2.c: Likewise.
* gcc.target/i386/sse2-pslldq-1.c: Likewise.
* gcc.target/i386/sse2-psllq-1.c: Likewise.
* gcc.target/i386/sse2-psllq-2.c: Likewise.
* gcc.target/i386/sse2-psllw-1.c: Likewise.
* gcc.target/i386/sse2-psllw-2.c: Likewise.
* gcc.target/i386/sse2-psrad-1.c: Likewise.
* gcc.target/i386/sse2-psrad-2.c: Likewise.
* gcc.target/i386/sse2-psraw-1.c: Likewise.
* gcc.target/i386/sse2-psraw-2.c: Likewise.
* gcc.target/i386/sse2-psrld-1.c: Likewise.
* gcc.target/i386/sse2-psrld-2.c: Likewise.
* gcc.target/i386/sse2-psrldq-1.c: Likewise.
* gcc.target/i386/sse2-psrlq-1.c: Likewise.
* gcc.target/i386/sse2-psrlq-2.c: Likewise.
* gcc.target/i386/sse2-psrlw-1.c: Likewise.
* gcc.target/i386/sse2-psrlw-2.c: Likewise.
* gcc.target/i386/sse2-psubb-1.c: Likewise.
* gcc.target/i386/sse2-psubd-1.c: Likewise.
* gcc.target/i386/sse2-psubq-1.c: Likewise.
* gcc.target/i386/sse2-psubsb-1.c: Likewise.
* gcc.target/i386/sse2-psubsw-1.c: Likewise.
* gcc.target/i386/sse2-psubw-1.c: Likewise.
* gcc.target/i386/sse2-punpckhbw-1.c: Likewise.
* gcc.target/i386/sse2-punpckhdq-1.c: Likewise.
* gcc.target/i386/sse2-punpckhqdq-1.c: Likewise.
* gcc.target/i386/sse2-punpckhwd-1.c: Likewise.
* gcc.target/i386/sse2-punpcklbw-1.c: Likewise.
* gcc.target/i386/sse2-punpckldq-1.c: Likewise.
* gcc.target/i386/sse2-punpcklqdq-1.c: Likewise.
* gcc.target/i386/sse2-punpcklwd-1.c: Likewise.
* gcc.target/i386/sse2-pxor-1.c: Likewise.
* gcc.target/i386/sse2-set-epi32-1.c: Likewise.
* gcc.target/i386/sse2-set-epi64x-1.c: Likewise.
* gcc.target/i386/sse2-set-v16qi-1.c: Likewise.
* gcc.target/i386/sse2-set-v16qi-2.c: Likewise.
* gcc.target/i386/sse2-set-v16qi-3.c: Likewise.
* gcc.target/i386/sse2-set-v8hi-1.c: Likewise.
* gcc.target/i386/sse2-set-v8hi-1a.c: Likewise.
* gcc.target/i386/sse2-set-v8hi-2.c: Likewise.
* gcc.target/i386/sse2-set-v8hi-2a.c: Likewise.
* gcc.target/i386/sse2-shufpd-1.c: Likewise.
* gcc.target/i386/sse2-shufps-1.c: Likewise.
* gcc.target/i386/sse2-sqrtpd-1.c: Likewise.
* gcc.target/i386/sse2-subpd-1.c: Likewise.
* gcc.target/i386/sse2-subsd-1.c: Likewise.
* gcc.target/i386/sse2-ucomisd-1.c: Likewise.
* gcc.target/i386/sse2-ucomisd-2.c: Likewise.
* gcc.target/i386/sse2-ucomisd-3.c: Likewise.
* gcc.target/i386/sse2-ucomisd-4.c: Likewise.
* gcc.target/i386/sse2-ucomisd-5.c: Likewise.
* gcc.target/i386/sse2-ucomisd-6.c: Likewise.
* gcc.target/i386/sse2-unpack-1.c: Likewise.
* gcc.target/i386/sse2-unpckhpd-1.c: Likewise.
* gcc.target/i386/sse2-unpcklpd-1.c: Likewise.
* gcc.target/i386/sse2-vec-1.c: Likewise.
* gcc.target/i386/sse2-vec-2.c: Likewise.
* gcc.target/i386/sse2-vec-3.c: Likewise.
* gcc.target/i386/sse2-vec-4.c: Likewise.
* gcc.target/i386/sse2-vec-5.c: Likewise.
* gcc.target/i386/sse2-vec-6.c: Likewise.
* gcc.target/i386/sse2-xorpd-1.c: Likewise.
* gcc.target/i386/ssefn-2.c: Likewise.
* gcc.target/i386/ssefn-4.c: Likewise.
* gcc.target/i386/ssefp-1.c: Likewise.
* gcc.target/i386/ssefp-2.c: Likewise.
* gcc.target/i386/sseregparm-3.c: Likewise.
* gcc.target/i386/sseregparm-4.c: Likewise.
* gcc.target/i386/sseregparm-5.c: Likewise.
* gcc.target/i386/sseregparm-6.c: Likewise.
* gcc.target/i386/sseregparm-7.c: Likewise.
* gcc.target/i386/ssetype-1.c: Likewise.
* gcc.target/i386/ssetype-2.c: Likewise.
* gcc.target/i386/ssetype-3.c: Likewise.
* gcc.target/i386/ssetype-4.c: Likewise.
* gcc.target/i386/ssetype-5.c: Likewise.
* gcc.target/i386/unordcmp-1.c: Likewise.
* gcc.target/i386/vararg-1.c: Likewise.
* gcc.target/i386/vararg-2.c: Likewise.
* gcc.target/i386/vararg-3.c: Likewise.
* gcc.target/i386/vararg-4.c: Likewise.
* gcc.target/i386/vararg-7.c: Likewise.
* gcc.target/i386/vararg-8.c: Likewise.
* gcc.target/i386/vecinit-1.c: Likewise.
* gcc.target/i386/vecinit-2.c: Likewise.
* gcc.target/i386/vecinit-3.c: Likewise.
* gcc.target/i386/vecinit-4.c: Likewise.
* gcc.target/i386/vecinit-5.c: Likewise.
* gcc.target/i386/vecinit-6.c: Likewise.
* gcc.target/i386/vectorize2.c: Likewise.
* gcc.target/i386/vectorize3.c: Likewise.
* gcc.target/i386/vectorize4.c: Likewise.
* gcc.target/i386/vectorize6.c: Likewise.
* gcc.target/i386/vectorize7.c: Likewise.
* gcc.target/i386/vectorize8.c: Likewise.
* gcc.target/i386/vperm-v2df.c: Likewise.
* gcc.target/i386/vperm-v2di.c: Likewise.
* gcc.target/i386/vperm-v4si-1.c: Likewise.
* gcc.target/i386/xorps-sse2.c: Likewise.
* gcc.target/i386/xorps.c: Likewise.
* gfortran.dg/graphite/pr42326-1.f90: Likewise.
* gfortran.dg/graphite/pr42326.f90: Likewise.
* gfortran.dg/vect/fast-math-mgrid-resid.f: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159584 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-05-19 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 19 May 2010 15:57:17 +0000 (15:57 +0000)]
2010-05-19  Richard Guenther  <rguenther@suse.de>

PR lto/44196
* tree.c (find_decls_types_r): Walk BLOCKs and its vars.

* g++.dg/lto/20100519-1_0.C: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159582 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-05-19 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 19 May 2010 15:43:22 +0000 (15:43 +0000)]
2010-05-19  Richard Guenther  <rguenther@suse.de>

* doc/invoke.texi (-fwhopr): Document new optional jobs argument.
* common.opt (fwhopr=): New.
* opts.c (common_handle_option): Handle OPT_fwhopr.
* gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
* collect2.c (main): Match -fwhopr*.
* lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
Execute ltrans stage in parallel when jobs is bigger than 1.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159573 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * configure.ac (libffi_cv_as_x86_pcrel): Check for illegal in as
ro [Wed, 19 May 2010 15:31:36 +0000 (15:31 +0000)]
* configure.ac (libffi_cv_as_x86_pcrel): Check for illegal in as
output, too.
(libffi_cv_as_ascii_pseudo_op): Check for .ascii.
(libffi_cv_as_string_pseudo_op): Check for .string.
* configure: Regenerate.
* fficonfig.h.in: Regenerate.
* src/x86/sysv.S (.eh_frame): Use .ascii, .string or error.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159570 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago libgcc:
ro [Wed, 19 May 2010 15:31:00 +0000 (15:31 +0000)]
libgcc:
* config/i386/32/sfp-machine.h (FP_HANDLE_EXCEPTIONS): Support Sun
assembler syntax.

gcc:
* config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
pentiumpro on Solaris 8/x86 with Sun as.
* configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
hidden alias bug.
(gcc_cv_as_ix86_quad): Check for .quad directive.
* configure: Regenerate.
* config.in: Regenerate.
* config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159569 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agogcc/fortran/:
dfranke [Wed, 19 May 2010 13:07:25 +0000 (13:07 +0000)]
gcc/fortran/:
2010-05-19  Daniel Franke  <franke.daniel@gmail.com>

PR fortran/42360
* gfortran.h (gfc_has_default_initializer): New.
* expr.c (gfc_has_default_initializer): New.
* resolve.c (has_default_initializer): Removed, use
gfc_has_default_initializer() instead. Updated all callers.
* trans-array.c (has_default_initializer): Removed, use
gfc_has_default_initializer() instead. Updated all callers.
* trans-decl.c (generate_local_decl): Do not check the
first component only to check for initializers, but use
gfc_has_default_initializer() instead.

gcc/testsuite/:
2010-05-19  Daniel Franke  <franke.daniel@gmail.com>

PR fortran/42360
* gfortran.dg/warn_intent_out_not_set.f90: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159562 138bc75d-0d04-0410-961f-82ee72b054a4