OSDN Git Service

pf3gnuchains/gcc-fork.git
14 years agoFix misapplied patch.
hubicka [Thu, 22 Oct 2009 11:42:29 +0000 (11:42 +0000)]
Fix misapplied patch.

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

14 years ago PR tree-optimize/40556
hubicka [Thu, 22 Oct 2009 11:40:18 +0000 (11:40 +0000)]
PR tree-optimize/40556
* ipa-reference.c (has_proper_scope_for_analysis): Add fixme about global vars.
(check_call): Handle only indirect calls.
(propagate_bits): Update comment.
(write_node_summary_p): Turn bogus check to assert.
(ipa_reference_write_summary): Stream calls_read_all properly.
(ipa_reference_read_summary): Stream in calls_read_all properly.
(read_write_all_from_decl): New function.
(propagate): Handle OVERWRITABLE nodes and external calls here.
* ipa-pre-const.c (check_call): In IPA mode handle indirect calls
only.
(analyze_function): Do not check visibility here.
(add_new_function): We summary OVERWRITABLE too.
(generate_summary): Stream OVERWRITABLE nodes too.
(propagate): Handle external calls and OVERWRITABLE nodes here.
(local_pure_const): Check visibility here.

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

14 years ago * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
hubicka [Thu, 22 Oct 2009 10:02:29 +0000 (10:02 +0000)]
* ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
(pass_ipa_cp): Register them.
(ipcp_init_stage): Analyze all functions for whopr/lto.
(ipcp_propagate_stage): Skip external calls.
(ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
* ipa-reference.c (write_node_summary_p): Fix thinko about availability.
* cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
when in ltrans, skip executing of ipa passes since everything should've
been done.
* ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
(inline_generate_summary): Likewise.
(inline_read_summary): New function.
(inline_write_summary): New function.
(pass_ipa_inline): Register new hooks.
* ipa-prop.c: Inlcude lto-streamer.h
(ipa_edge_args_vector): Update declaration.
(ipa_count_arguments, ipa_compute_jump_functions,
ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
(ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
ipa_read_node_info): New static functions.
(ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
(duplicate_array): Use xmalloc.
(duplicate_ggc_array): New.
(ipa_edge_duplication_hook): Use it.
(ipa_update_after_lto_read): New function.
* ipa-prop.h (ipa_prop_write_jump_functions,
ipa_prop_read_jump_functions): Declare.
(ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
(ipa_edge_args_vector): Move into GGC.
(ipa_check_create_edge_args): Update.
(ipa_update_after_lto_read): New.
* passes.c (ipa_write_summaries_1): When in wpa, do not write summaries.
(ipa_read_summaries): When in ltrans, so not read summaries.
* lto-streamer.c (lto_get_section_name): Add LTO_section_jump_functions.
* lto-streamer.h (LTO_section_jump_functions): New section.
(produce_asm): Declare.
* lto-cgraph.c (output_cgraph): Output edges in reverse order.
* lto-streamer-out.c (produce_asm): Export.
* lto-streamer-in.c: Include tree-pass.h
(input_function): Free dominance info when done.
(lto_read_body): Push ipa_inline in ltrans stage.
* gengtype.c (open_base_files): Add ipa-prop.h into includes.
* Makefile.in (GTFILES): Add ipa-prop.h

* lto.c (lto_fixup_jump_functions): New function.
(lto_fixup_decls): Use it.

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

14 years agogcc/
doko [Thu, 22 Oct 2009 09:25:51 +0000 (09:25 +0000)]
gcc/

2009-10-22  Matthias Klose  <doko@ubuntu.com>

        * doc/install.texi: Document --enable-browser-plugin.

libjava/

2009-10-22  Matthias Klose  <doko@ubuntu.com>

        * configure.ac: Rename --enable-plugin to --enable-browser-plugin,
        pass --{en,dis}able-plugin to the classpath configure.
        * configure: Regenerate.

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

14 years ago2009-10-22 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 22 Oct 2009 08:56:00 +0000 (08:56 +0000)]
2009-10-22  Richard Guenther  <rguenther@suse.de>

* configure.ac: Do not set LIBS for ppl/cloog checks.  Disable
cloog if the ppl version check failed.  Move flags saving
before setting in libelf check.
* configure: Regenerate.

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

14 years ago2009-10-22 Janus Weil <janus@gcc.gnu.org>
janus [Thu, 22 Oct 2009 08:53:26 +0000 (08:53 +0000)]
2009-10-22  Janus Weil  <janus@gcc.gnu.org>

PR fortran/41781
* resolve.c (resolve_codes): Don't clear 'cs_base' for BLOCK constructs,
to make sure labels are treated correctly.
* symbol.c (gfc_get_st_label): Create labels in the right namespace.
For BLOCK constructs go into the parent namespace.

2009-10-22  Janus Weil  <janus@gcc.gnu.org>

PR fortran/41781
* gfortran.dg/goto_8.f90: New test case.

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

14 years ago2009-10-21 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Thu, 22 Oct 2009 01:44:39 +0000 (01:44 +0000)]
2009-10-21  Vladimir Makarov  <vmakarov@redhat.com>

* doc/invoke.texi (fira-loop-pressure): Update default value.
* opts.c (decode_options): Remove default value setting for
flag_ira_loop_pressure.
* config/ia64/ia64.c (ia64_override_options): Set
flag_ira_loop_pressure up for -O3.
* config/rs6000/rs6000.c (rs6000_override_options): Ditto.

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

14 years agoDaily bump.
gccadmin [Thu, 22 Oct 2009 00:17:01 +0000 (00:17 +0000)]
Daily bump.

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

14 years ago PR tree-optimization/41497
spop [Wed, 21 Oct 2009 23:05:39 +0000 (23:05 +0000)]
PR tree-optimization/41497
* tree-scalar-evolution.c (analyze_evolution_in_loop): Return
chrec_dont_know if the evolution function returned by follow_ssa_edge
is constant in the analyzed loop and is not compatible with the
initial value before the loop.
* tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.

* gcc.dg/tree-ssa/pr41497.c: New.

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

14 years ago2009-10-21 Steve Ellcey <sje@cup.hp.com>
sje [Wed, 21 Oct 2009 18:13:34 +0000 (18:13 +0000)]
2009-10-21  Steve Ellcey  <sje@cup.hp.com>

* g++.dg/tree-ssa/copyprop.C: Use include to define free().

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

14 years ago2009-10-21 Steve Ellcey <sje@cup.hp.com>
sje [Wed, 21 Oct 2009 17:01:35 +0000 (17:01 +0000)]
2009-10-21  Steve Ellcey  <sje@cup.hp.com>

* inclhack.def (hpux_stdint_least_fast): Simplify.
* fixincl.x: Regenerate.
* tests/base/stdint.h: Update.

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

14 years ago * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
jsm28 [Wed, 21 Oct 2009 15:16:24 +0000 (15:16 +0000)]
* config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.

testsuite:
* gcc.dg/tls/pie-1.c: New test.

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

14 years ago * mangle.c (finish_mangling_get_identifier): Use
jakub [Wed, 21 Oct 2009 15:15:07 +0000 (15:15 +0000)]
* mangle.c (finish_mangling_get_identifier): Use
obstack_base (mangle_obstack) instead of name_base.

* g++.dg/abi/mangle33.C: New test.

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

14 years ago PR other/25507
jakub [Wed, 21 Oct 2009 15:13:21 +0000 (15:13 +0000)]
PR other/25507
* doc/invoke.texi: Document -print-multi-os-directory.

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

14 years ago2009-10-21 Jack Howarth <howarth@bromo.med.uc.edu>
pogma [Wed, 21 Oct 2009 15:07:59 +0000 (15:07 +0000)]
2009-10-21  Jack Howarth  <howarth@bromo.med.uc.edu>

PR c++/41313
* gcc/config/darwin10.h: Use default_emit_unwind_label.
* gcc/config/darwin.c: Disable -freorder-blocks-and-partition
when darwin_emit_unwind_label is used.

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

14 years ago2009-10-21 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 21 Oct 2009 11:40:17 +0000 (11:40 +0000)]
2009-10-21  Richard Guenther  <rguenther@suse.de>

* configure.ac: Adjust the ppl and cloog configure to work as
documented.  Disable cloog if ppl was disabled.  Omit the version
checks if they were disabled.
* configure: Re-generate.

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

14 years ago * gcc-interfaces/decl.c (build_subst_list): Convert the expression of
ebotcazou [Wed, 21 Oct 2009 10:20:06 +0000 (10:20 +0000)]
* gcc-interfaces/decl.c (build_subst_list): Convert the expression of
the constraint to the type of the discriminant.

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

14 years ago * gcc-interfaces/decl.c (gnat_to_gnu_entity): Do not create a new
ebotcazou [Wed, 21 Oct 2009 10:12:55 +0000 (10:12 +0000)]
* gcc-interfaces/decl.c (gnat_to_gnu_entity): Do not create a new
TYPE_DECL when a type is padded if there is already one and reset
TYPE_STUB_DECL in this case.

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

14 years ago * gcc-interfaces/utils.c (create_subprog_decl): Do not redefine
ebotcazou [Wed, 21 Oct 2009 10:11:33 +0000 (10:11 +0000)]
* gcc-interfaces/utils.c (create_subprog_decl): Do not redefine
main_identifier_node.

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

14 years ago * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
ebotcazou [Wed, 21 Oct 2009 10:08:39 +0000 (10:08 +0000)]
* tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
order of checks.

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

14 years ago * gcc.target/vsx-vectorize-?.c: Move to powerpc/ directory.
uros [Wed, 21 Oct 2009 09:57:01 +0000 (09:57 +0000)]
* gcc.target/vsx-vectorize-?.c: Move to powerpc/ directory.

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

14 years ago2009-10-21 Janus Weil <janus@gcc.gnu.org>
janus [Wed, 21 Oct 2009 08:56:56 +0000 (08:56 +0000)]
2009-10-21  Janus Weil  <janus@gcc.gnu.org>

PR fortran/41706
PR fortran/41766
* match.c (select_type_set_tmp): Set flavor for temporary.
* resolve.c (resolve_class_typebound_call): Correctly resolve actual
arguments.

2009-10-21  Janus Weil  <janus@gcc.gnu.org>

PR fortran/41706
PR fortran/41766
* gfortran.dg/class_9.f03: Extended test case.
* gfortran.dg/select_type_7.f03: New test case.

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

14 years agoDaily bump.
gccadmin [Wed, 21 Oct 2009 00:16:51 +0000 (00:16 +0000)]
Daily bump.

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

14 years ago * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
rth [Tue, 20 Oct 2009 22:54:28 +0000 (22:54 +0000)]
    * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
        before emit_post_landing_pad.

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

14 years ago * config/mips/mips.c (mips_binary_cost): Add new argument speed.
nemet [Tue, 20 Oct 2009 22:12:56 +0000 (22:12 +0000)]
* config/mips/mips.c (mips_binary_cost): Add new argument speed.
Use when calling rtx_costs.
(mips_rtx_costs): Fix formatting.  Use argument speed rather than the
global optimize_size.  Pass speed to mips_binary_cost.

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

14 years ago2009-10-20 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Tue, 20 Oct 2009 21:54:22 +0000 (21:54 +0000)]
2009-10-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/41773
Revert:
2009-10-20  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/basic_string.h (_S_construct(const _CharT*, size_type,
const _Alloc&)): New, declare.
(_S_construct(_CharT*, _CharT*, const _Alloc&),
_S_construct(const _CharT*, const _CharT*, const _Alloc&),
_S_construct(iterator, iterator, const _Alloc&),
_S_construct(const_iterator, const_iterator, const _Alloc&)): New,
forward to the latter.
* include/bits/basic_string.tcc (_S_construct(const _CharT*,
size_type, const _Alloc&)): Define.
(basic_string(const basic_string&, size_type, size_type),
basic_string(const basic_string&, size_type, size_type,
const _Alloc&), basic_string(const _CharT*, size_type,
const _Alloc&), basic_string(const _CharT*, const _Alloc&),
basic_string(initializer_list<>, const _Alloc&)): Call the latter.
* config/abi/pre/gnu.ver: Remove recently added exports.
* src/string-inst.cc: Remove instantiations.

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

14 years ago2009-10-20 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Tue, 20 Oct 2009 21:21:11 +0000 (21:21 +0000)]
2009-10-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/41763
* include/bits/valarray_array.h (__valarray_default_construct,
__valarray_fill_construct, __valarray_copy_construct, __valarray_sum
__valarray_destroy_elements, __valarray_product): Do not qualify with
__restrict__ pointers accessing data also accessed by other pointers.

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

14 years ago * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
jakub [Tue, 20 Oct 2009 21:01:35 +0000 (21:01 +0000)]
* config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
of TREE_CONSTANT.

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

14 years agogcc/
rsandifo [Tue, 20 Oct 2009 19:50:38 +0000 (19:50 +0000)]
gcc/
* rtl.h (simplify_replace_fn_rtx): Declare.
(wrap_constant, unwrap_constant): Delete.
* cfgexpand.c (unwrap_constant, wrap_constant): Delete.
(expand_debug_expr): Don't call wrap_constant.
* combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
(auto_adjust_pair): Fold into...
(propagate_for_debug_subst): ...here.  Only define for AUTO_INC_DEC.
Just return a new value.
(propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
otherwise use simplify_replace_rtx.
* cselib.c (wrap_constant): Reinstate old definition.
(cselib_expand_value_rtx_1): Don't wrap constants.
* gcse.c (try_replace_reg): Don't use copy_rtx in the call to
simplify_replace_rtx.
(bypass_block): Fix formatting in calls to simplify_replace_rtx.
* reload1.c (reload): Skip all uses for an insn before adjusting it.
Use simplify_replace_rtx.
* simplify-rtx.c (simplify_replace_fn_rtx): New function,
adapted from...
(simplify_replace_rtx): ...here.  Turn into a wrapper for
simplify_replace_fn_rtx.
(simplify_unary_operation): Don't unwrap CONSTs.
* var-tracking.c (check_wrap_constant): Delete.
(vt_expand_loc_callback): Don't call it.
(vt_expand_loc): Likewise.

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

14 years agoFix identation issue I missed to correct.
ktietz [Tue, 20 Oct 2009 19:46:00 +0000 (19:46 +0000)]
Fix identation issue I missed to correct.

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

14 years ago2009-10-20 Pascal Obry <obry@adacore.com>
ktietz [Tue, 20 Oct 2009 18:50:58 +0000 (18:50 +0000)]
2009-10-20  Pascal Obry  <obry@adacore.com>
            Eric Botcazou  <ebotcazou@adacore.com>

        * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.

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

14 years ago2009-10-20 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Tue, 20 Oct 2009 16:24:18 +0000 (16:24 +0000)]
2009-10-20  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/basic_string.h (_S_construct(const _CharT*, size_type,
const _Alloc&)): New, declare.
(_S_construct(_CharT*, _CharT*, const _Alloc&),
_S_construct(const _CharT*, const _CharT*, const _Alloc&),
_S_construct(iterator, iterator, const _Alloc&),
_S_construct(const_iterator, const_iterator, const _Alloc&)): New,
forward to the latter.
* include/bits/basic_string.tcc (_S_construct(const _CharT*,
size_type, const _Alloc&)): Define.
(basic_string(const basic_string&, size_type, size_type),
basic_string(const basic_string&, size_type, size_type,
const _Alloc&), basic_string(const _CharT*, size_type,
const _Alloc&), basic_string(const _CharT*, const _Alloc&),
basic_string(initializer_list<>, const _Alloc&)): Call the latter.
* config/abi/pre/gnu.ver: Remove recently added exports.
* src/string-inst.cc: Remove instantiations.

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

14 years ago* loop-invariant.c (create_new_invariant): Use different magic number.
matz [Tue, 20 Oct 2009 16:07:21 +0000 (16:07 +0000)]
* loop-invariant.c (create_new_invariant): Use different magic number.

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

14 years ago2009-10-20 Joel Dice <dicej@mailsnare.net>
aph [Tue, 20 Oct 2009 16:01:21 +0000 (16:01 +0000)]
2009-10-20  Joel Dice <dicej@mailsnare.net>

        PR java/28474
        * mangle_name.c (append_unicode_mangled_name): Fix mangling
        of names with multiple underscores and "U".
        (unicode_mangling_length): Likewise.

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

14 years ago2009-10-20 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 20 Oct 2009 15:26:49 +0000 (15:26 +0000)]
2009-10-20  Richard Guenther  <rguenther@suse.de>

* gcc.dg/lto/20091020-3_0.c: New testcase.

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

14 years ago PR target/39247
rearnsha [Tue, 20 Oct 2009 15:17:30 +0000 (15:17 +0000)]
PR target/39247
* arm.c (arm_override_options): Forcibly disable hot/cold block
partitioning.

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

14 years ago PR debug/41739
jakub [Tue, 20 Oct 2009 15:09:43 +0000 (15:09 +0000)]
PR debug/41739
* haifa-sched.c (try_ready): Skip debug deps updating speculation
status.

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

14 years ago2009-10-20 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 20 Oct 2009 14:15:52 +0000 (14:15 +0000)]
2009-10-20  Richard Guenther  <rguenther@suse.de>

* ggc-page.c: Include cfgloop.h.
(struct max_alignment): Drop long double, add void *.
(extra_order_size_table): Add low non-power-of-two multiples
of MAX_ALIGNMENT.  Drop small type-based entries, add
tree_type, cgraph_node and loop.
* alloc-pool.c (struct allocation_object_def): Drop long double
aligning element.

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

14 years ago2009-10-20 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Tue, 20 Oct 2009 13:52:34 +0000 (13:52 +0000)]
2009-10-20  Phil Muldoon <pmuldoon@redhat.com>

* python/libstdcxx/v6/printers.py (StdTuplePrinter): New printer.
(build_libstdcxx_dictionary): Add StdTuplePrinter registration.

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

14 years ago2009-10-20 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 20 Oct 2009 13:33:03 +0000 (13:33 +0000)]
2009-10-20  Richard Guenther  <rguenther@suse.de>

        PR lto/41761
* gimple.c (gimple_register_type): Make sure we register
the types main variant first.

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

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

14 years ago PR debug/41340
jakub [Tue, 20 Oct 2009 13:29:08 +0000 (13:29 +0000)]
PR debug/41340
* loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
referenced just in DEBUG_INSNs.

* gcc.dg/pr41340.c: New test.

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

14 years ago2009-10-20 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 20 Oct 2009 11:08:30 +0000 (11:08 +0000)]
2009-10-20  Richard Guenther  <rguenther@suse.de>

* gimple.c (gimple_types_compatible_p): Simplify.  Move
cheap checks before hashtable queries.  Add checks for
TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.

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

14 years ago * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
ebotcazou [Tue, 20 Oct 2009 09:19:17 +0000 (09:19 +0000)]
* tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
without size or with size that can't be represented as a host integer.

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

14 years ago * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
jakub [Tue, 20 Oct 2009 08:37:26 +0000 (08:37 +0000)]
* tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
the removal of a debug stmt as a significant change.

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

14 years ago2009-10-20 Wolfgang Gellerich <gellerich@de.ibm.com>
krebbel [Tue, 20 Oct 2009 08:16:23 +0000 (08:16 +0000)]
2009-10-20  Wolfgang Gellerich  <gellerich@de.ibm.com>

* config/s390/s390.md: Added agen condition to operand
forwarding bypasses.
Added bypass for early address generation use of int results.
Updated comments.

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

14 years ago * config/i386/i386.c: Remove signal.h #include.
uros [Tue, 20 Oct 2009 07:23:35 +0000 (07:23 +0000)]
* config/i386/i386.c: Remove signal.h #include.

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

14 years ago2009-10-20 Paul Thomas <pault@gcc.gnu.org>
pault [Tue, 20 Oct 2009 04:16:02 +0000 (04:16 +0000)]
2009-10-20  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/41706
* resolve.c (resolve_arg_exprs): New function.
(resolve_class_compcall): Call the above.
(resolve_class_typebound_call): The same.

2009-10-20  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/41706
* gfortran.dg/class_9 : New test.

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

14 years ago * simplify-rtx.c (simplify_const_unary_operation): Handle
jiez [Tue, 20 Oct 2009 03:33:57 +0000 (03:33 +0000)]
* simplify-rtx.c (simplify_const_unary_operation): Handle
SS_ABS.
* doc/rtl.texi: Document ss_abs.

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

14 years agoDaily bump.
gccadmin [Tue, 20 Oct 2009 00:17:13 +0000 (00:17 +0000)]
Daily bump.

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

14 years ago * charset.c (cpp_init_iconv): Initialize utf8_cset_desc.
jakub [Mon, 19 Oct 2009 21:41:15 +0000 (21:41 +0000)]
* charset.c (cpp_init_iconv): Initialize utf8_cset_desc.
(_cpp_destroy_iconv): Destroy utf8_cset_desc, char16_cset_desc
and char32_cset_desc.
(converter_for_type): Handle CPP_UTF8STRING.
(cpp_interpret_string): Handle CPP_UTF8STRING and raw-strings.
* directives.c (get__Pragma_string): Handle CPP_UTF8STRING.
(parse_include): Reject raw strings.
* include/cpplib.h (CPP_UTF8STRING): New token type.
* internal.h (struct cpp_reader): Add utf8_cset_desc field.
* lex.c (lex_raw_string): New function.
(lex_string): Handle u8 string literals, call lex_raw_string
for raw string literals.
(_cpp_lex_direct): Call lex_string even for u8" and {,u,U,L,u8}R"
sequences.
* macro.c (stringify_arg): Handle CPP_UTF8STRING.

* c-common.c (c_parse_error): Handle CPP_UTF8STRING.
* c-lex.c (c_lex_with_flags): Likewise.  Test C_LEX_STRING_NO_JOIN
instead of C_LEX_RAW_STRINGS.
(lex_string): Handle CPP_UTF8STRING.
* c-parser.c (c_parser_postfix_expression): Likewise.
* c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
(C_LEX_STRING_NO_JOIN): ... this.

* parser.c (cp_lexer_print_token, cp_parser_is_string_literal,
cp_parser_string_literal, cp_parser_primary_expression): Likewise.
(cp_lexer_get_preprocessor_token): Use C_LEX_STRING_JOIN instead
of C_LEX_RAW_STRINGS.

* gcc.dg/raw-string-1.c: New test.
* gcc.dg/raw-string-2.c: New test.
* gcc.dg/raw-string-3.c: New test.
* gcc.dg/raw-string-4.c: New test.
* gcc.dg/raw-string-5.c: New test.
* gcc.dg/raw-string-6.c: New test.
* gcc.dg/raw-string-7.c: New test.
* gcc.dg/utf8-1.c: New test.
* gcc.dg/utf8-2.c: New test.
* gcc.dg/utf-badconcat2.c: New test.
* gcc.dg/utf-dflt2.c: New test.
* gcc.dg/cpp/include6.c: New test.
* g++.dg/ext/raw-string-1.C: New test.
* g++.dg/ext/raw-string-2.C: New test.
* g++.dg/ext/raw-string-3.C: New test.
* g++.dg/ext/raw-string-4.C: New test.
* g++.dg/ext/raw-string-5.C: New test.
* g++.dg/ext/raw-string-6.C: New test.
* g++.dg/ext/raw-string-7.C: New test.
* g++.dg/ext/utf8-1.C: New test.
* g++.dg/ext/utf8-2.C: New test.
* g++.dg/ext/utf-badconcat2.C: New test.
* g++.dg/ext/utf-dflt2.C: New test.

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

14 years ago * config/cris/cris.c (cris_function_value, cris_libcall_value,
aesok [Mon, 19 Oct 2009 20:54:07 +0000 (20:54 +0000)]
* config/cris/cris.c (cris_function_value, cris_libcall_value,
cris_function_value_regno_p): New functions.
(cris_promote_function_mode): Update comment.
(TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
* config/cris/cris.h: (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
(FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
* config/cris/cris-protos.h (cris_function_value_regno_p): Declare.

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

14 years agoFix dates.
jakub [Mon, 19 Oct 2009 19:57:26 +0000 (19:57 +0000)]
Fix dates.

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

14 years ago * unwind-dw2.c (execute_stack_op): Fix operand order for
jakub [Mon, 19 Oct 2009 19:54:11 +0000 (19:54 +0000)]
* unwind-dw2.c (execute_stack_op): Fix operand order for
DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.

* gcc.dg/cleanup-13.c: New test.

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

14 years ago2009-10-19 Janus Weil <janus@gcc.gnu.org>
janus [Mon, 19 Oct 2009 19:21:18 +0000 (19:21 +0000)]
2009-10-19  Janus Weil  <janus@gcc.gnu.org>

PR fortran/41586
* parse.c (parse_derived): Correctly set 'alloc_comp' and 'pointer_comp'
for CLASS variables.
* trans-array.c (structure_alloc_comps): Handle deallocation and
nullification of allocatable scalar components.
* trans-decl.c (gfc_get_symbol_decl): Remember allocatable scalars for
automatic deallocation.
(gfc_trans_deferred_vars): Automatically deallocate allocatable scalars.

2009-10-19  Janus Weil  <janus@gcc.gnu.org>

PR fortran/41586
* gfortran.dg/auto_dealloc_1.f90: New test case.

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

14 years ago Port from redhat/gcc-4_4-branch:
jakub [Mon, 19 Oct 2009 19:10:20 +0000 (19:10 +0000)]
Port from redhat/gcc-4_4-branch:
2009-10-08  Jakub Jelinek  <jakub@redhat.com>
* gcc.dg/debug/vta-2.c: New test.

2009-09-30  Alexandre Oliva  <aoliva@redhat.com>
* gcc.dg/debug/vta-1.c: New.

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

14 years ago * gimple-low.c (struct lower_data): Add cannot_fallthru field.
ebotcazou [Mon, 19 Oct 2009 18:15:49 +0000 (18:15 +0000)]
* gimple-low.c (struct lower_data): Add cannot_fallthru field.
(lower_stmt) <GIMPLE_BIND>: Add comment.
<GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
and return.
<GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
Otherwise lower it and set cannot_fallthru to true.
<GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
<GIMPLE_CATCH, GIMPLE_EH_FILTER>; Set cannot_fallthru to false.
<GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
to true for a noreturn call.  Do not remove statements.
<GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
Set cannot_fallthru to false on function exit.
(gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
<GIMPLE_ASSIGN>: Remove.

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

14 years ago2009-10-19 Tobias Burnus <burnus@net-b.de>
burnus [Mon, 19 Oct 2009 18:03:02 +0000 (18:03 +0000)]
2009-10-19  Tobias Burnus  <burnus@net-b.de>
            Steven G. Kargl  <kargl@gcc.gnu.org>

        PR fortran/41755
        * symbol.c (gfc_undo_symbols): Add NULL check.
        * match.c (gfc_match_equivalence): Add check for
        missing comma.

2009-10-19  Tobias Burnus  <burnus@net-b.de>

        PR fortran/41755
        * gfortran.dg/equiv_8.f90: New test.
        * gfortran.dg/class_allocate_1.f03: Remove obsolete FIXME.

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

14 years agomissing changelog
espindola [Mon, 19 Oct 2009 16:23:38 +0000 (16:23 +0000)]
missing changelog

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

14 years ago2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Mon, 19 Oct 2009 15:43:27 +0000 (15:43 +0000)]
2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.

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

14 years ago2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Mon, 19 Oct 2009 15:41:52 +0000 (15:41 +0000)]
2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/s390.c (s390_z10_optimize_cmp): Use
next/prev_active_insn to skip DEBUG_INSNs as well.

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

14 years ago * config/arm/arm.c (output_move_neon): Use DImode in call to
jsm28 [Mon, 19 Oct 2009 15:22:15 +0000 (15:22 +0000)]
* config/arm/arm.c (output_move_neon): Use DImode in call to
adjust_address.

testsuite:
* gcc.target/arm/neon-thumb2-move.c: New test.

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

14 years agoinclude/
espindola [Mon, 19 Oct 2009 15:11:35 +0000 (15:11 +0000)]
include/
2009-10-09  Rafael Avila de Espindola  <espindola@google.com>

PR40790
* plugin-api.h: Don't include stdint.h unconditionally.

lto-plugin/
2009-10-09  Rafael Avila de Espindola  <espindola@google.com>

PR40790
* configure: Regenerate.
* configure.ac: Add AC_TYPE_UINT64_T.

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

14 years ago2009-10-19 Matthias Klose <doko@ubuntu.com>
doko [Mon, 19 Oct 2009 14:26:28 +0000 (14:26 +0000)]
2009-10-19  Matthias Klose  <doko@ubuntu.com>

        PR target/40134
        * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.

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

14 years ago2009-10-18 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 19 Oct 2009 08:45:43 +0000 (08:45 +0000)]
2009-10-18  Richard Guenther  <rguenther@suse.de>

PR fortran/41494
* trans-expr.c (gfc_trans_scalar_assign): Do not call
gfc_evaluate_now.

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

14 years ago * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM
jakub [Mon, 19 Oct 2009 07:39:43 +0000 (07:39 +0000)]
* cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM
op0.

* gcc.dg/debug/vta-3.c: New test.

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

14 years agoDaily bump.
gccadmin [Mon, 19 Oct 2009 00:16:47 +0000 (00:16 +0000)]
Daily bump.

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

14 years agoDaily bump.
gccadmin [Sun, 18 Oct 2009 00:16:47 +0000 (00:16 +0000)]
Daily bump.

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

14 years ago2009-10-17 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
hutchinsonandy [Sat, 17 Oct 2009 22:42:17 +0000 (22:42 +0000)]
2009-10-17  Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
PR middle-end/41738
* optabs.c (expand_binop): Make mode of shift count expression mode of shift count not target.
Remove indent nit.

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

14 years ago * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
ebotcazou [Sat, 17 Oct 2009 22:21:24 +0000 (22:21 +0000)]
* tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
case.  Force using values to replace references within the statement.
(convert_local_reference_stmt): Likewise.

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

14 years ago * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
ebotcazou [Sat, 17 Oct 2009 22:17:26 +0000 (22:17 +0000)]
* gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
remove a subsequent GOTO or RETURN statement.

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

14 years ago2009-10-17 Andy Hutchinson <hutchinsonandy@aim.com>
hutchinsonandy [Sat, 17 Oct 2009 22:15:45 +0000 (22:15 +0000)]
2009-10-17  Andy Hutchinson  <hutchinsonandy@aim.com>
* config/avr.md (*movqi): Add zero as equally preferable constraint as general register.
(*movhi): Ditto.

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

14 years ago2009-10-17 Janus Weil <janus@gcc.gnu.org>
pault [Sat, 17 Oct 2009 18:09:25 +0000 (18:09 +0000)]
2009-10-17  Janus Weil  <janus@gcc.gnu.org>
    Paul Thomas  <pault@gcc.gnu.org>

PR fortran/41608
* decl.c (gfc_match_data_decl): Add BT_CLASS for undefined type
and empty type errors.
* parse.c (gfc_build_block_ns): Only set recursive if parent ns
has a proc_name.

PR fortran/41629
PR fortran/41618
PR fortran/41587
* gfortran.h : Add class_ok bitfield to symbol_attr.
* decl.c (build_sym): Set attr.class_ok if dummy, pointer or
allocatable.
(build_struct): Use gfc_try 't' to carry errors past the call
to encapsulate_class_symbol.
(attr_decl1): For a CLASS object, apply the new attribute to
the data component.
* match.c (gfc_match_select_type): Set attr.class_ok for an
assigned selector.
* resolve.c (resolve_fl_variable_derived): Check a CLASS object
is dummy, pointer or allocatable by testing the class_ok and
the use_assoc attribute.

2009-10-17  Janus Weil  <janus@gcc.gnu.org>
    Paul Thomas  <pault@gcc.gnu.org>

PR fortran/41629
* gfortran.dg/class_6.f90: New test.

PR fortran/41608
PR fortran/41587
* gfortran.dg/class_7.f90: New test.

PR fortran/41618
* gfortran.dg/class_8.f90: New test.

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

14 years ago * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
ebotcazou [Sat, 17 Oct 2009 16:03:49 +0000 (16:03 +0000)]
* print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.

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

14 years ago2009-10-17 Richard Guenther <rguenther@suse.de>
rguenth [Sat, 17 Oct 2009 15:40:53 +0000 (15:40 +0000)]
2009-10-17  Richard Guenther  <rguenther@suse.de>

* lto-streamer-in.c (lto_input_location): Try to reuse
previous maps.

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

14 years ago2009-10-17 Richard Guenther <rguenther@suse.de>
rguenth [Sat, 17 Oct 2009 14:15:42 +0000 (14:15 +0000)]
2009-10-17  Richard Guenther  <rguenther@suse.de>

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

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

14 years ago * cpplib.pot: Regenerate.
jsm28 [Sat, 17 Oct 2009 13:46:26 +0000 (13:46 +0000)]
* cpplib.pot: Regenerate.

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

14 years ago * gcc.pot: Regenerate.
jsm28 [Sat, 17 Oct 2009 13:46:08 +0000 (13:46 +0000)]
* gcc.pot: Regenerate.

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

14 years ago * gnat.dg/unchecked_convert4.adb: Add missing rep clause.
ebotcazou [Sat, 17 Oct 2009 12:06:56 +0000 (12:06 +0000)]
* gnat.dg/unchecked_convert4.adb: Add missing rep clause.

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

14 years ago2009-10-17 Richard Guenther <rguenther@suse.de>
rguenth [Sat, 17 Oct 2009 11:47:56 +0000 (11:47 +0000)]
2009-10-17  Richard Guenther  <rguenther@suse.de>

* lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
operands in COMPONENT_REFs.

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

14 years agoFix typo
ebotcazou [Sat, 17 Oct 2009 11:23:23 +0000 (11:23 +0000)]
Fix typo

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

14 years ago * gcc-interface/utils.c (convert): When converting to a padded type
ebotcazou [Sat, 17 Oct 2009 11:17:27 +0000 (11:17 +0000)]
* gcc-interface/utils.c (convert): When converting to a padded type
with an inner type of self-referential size, pad the expression before
doing the unchecked conversion.

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

14 years ago * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Make
ebotcazou [Sat, 17 Oct 2009 11:05:35 +0000 (11:05 +0000)]
* gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Make
sure the element type is consistent.

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

14 years ago * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
aesok [Sat, 17 Oct 2009 10:46:18 +0000 (10:46 +0000)]
* targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
if not defined. Change type of second argument to const_rtx.
(default_function_value): Call gcc_unreachable if FUNCTION_VALUE
macro not defined.
* targhooks.h (default_libcall_value): Update prototype.
* target.h (struct gcc_target): Change type of second argument of
libcall_value to const_rtx.
* config/arm/arm.c (arm_libcall_value): Change type of second argument
to const_rtx.
(arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
* doc/tm.texi (TARGET_LIBCALL_VALUE):  Revise documentation.

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

14 years ago * gcc-interface/trans.c (addressable_p): Handle bitwise operations.
ebotcazou [Sat, 17 Oct 2009 10:39:11 +0000 (10:39 +0000)]
* gcc-interface/trans.c (addressable_p): Handle bitwise operations.

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

14 years agoFix libgomp without --enable-languages=fortran.
rwild [Sat, 17 Oct 2009 07:34:47 +0000 (07:34 +0000)]
Fix libgomp without --enable-languages=fortran.

libgomp/:
PR libgomp/41418
* configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
or a hyphen (happens with fortran language disabled).
* configure: Regenerate.

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

14 years ago PR debug/40521
jakub [Sat, 17 Oct 2009 07:28:13 +0000 (07:28 +0000)]
PR debug/40521
* debug.h (struct gcc_debug_hooks): Add assembly_start hook.
* cgraphunit.c (cgraph_optimize): Call it.
* dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
(dwarf2out_assembly_start): ... here.  New hook.
(dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
* debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
hook.
* dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
* sdbout.c (sdb_debug_hooks): Likewise.
* vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
(vmsdbgout_assembly_start): New hook.

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

14 years ago* rtl.h (RTL_LOCATION): Fix typo.
aoliva [Sat, 17 Oct 2009 06:29:47 +0000 (06:29 +0000)]
* rtl.h (RTL_LOCATION): Fix typo.

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

14 years ago* print-rtl.c (print_rtx): Print locators in asm_operands
aoliva [Sat, 17 Oct 2009 06:28:58 +0000 (06:28 +0000)]
* print-rtl.c (print_rtx): Print locators in asm_operands
and asm_input.

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

14 years agoPR debug/41535
aoliva [Sat, 17 Oct 2009 06:28:43 +0000 (06:28 +0000)]
PR debug/41535
* sched-deps.c (depl_on_debug_p): New.
(attach_dep_link): Reject debug deps before nondebug deps.
(add_to_deps_list): Insert debug deps after nondebug deps.
(sd_lists_empty_p): Stop at first nonempty list.  Disregard debug
deps.
(sd_add_dep): Do not reject debug deps.
(add_insn_mem_dependence): Don't count debug deps.
(remove_from_deps): Likewise.
(sched_analyze_2): Set up mem deps on debug insns.
(sched_analyze_insn): Record reg uses for deps on debug insns.
* haifa-sched.c (schedule_insn): Reset deferred debug insn.  Don't
try_ready nondebug insn after debug insn.
* ddg.c (create_ddg_dep_from_intra_loop_link,
create_ddg_dep_no_link): Don't reject debug deps.

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

14 years ago PR c++/38888
jason [Sat, 17 Oct 2009 06:11:21 +0000 (06:11 +0000)]
PR c++/38888
* error.c (dump_template_bindings): Wrap argument packs in {}.

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

14 years ago PR c++/38798
jason [Sat, 17 Oct 2009 06:11:08 +0000 (06:11 +0000)]
PR c++/38798
* parser.c (CP_PARSER_FLAGS_NO_TYPE_DEFINITIONS): New.
(cp_parser_type_specifier): Don't try to parse a class-specifier
or enum-specifier in that case.
(cp_parser_trailing_type_id): New.
(cp_parser_late_return_type_opt): Call it.
(cp_parser_type_id_1): Add is_trailing_return parm.
(cp_parser_type_specifier_seq): Likewise.

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

14 years agoDaily bump.
gccadmin [Sat, 17 Oct 2009 00:17:06 +0000 (00:17 +0000)]
Daily bump.

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

14 years ago2009-10-16 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 16 Oct 2009 21:17:31 +0000 (21:17 +0000)]
2009-10-16  Richard Guenther  <rguenther@suse.de>

* lto-symtab.c (merge_incomplete_and_complete_type): Remove.
(maybe_merge_incomplete_and_complete_type): Likewise.
(lto_symtab_merge): Do not call them.  Do not warn for
complete vs. incomplete compatible types.
(lto_symtab_merge_decls_2): Simplify.
* gimple.c (gimple_force_type_merge): Remove.
(gimple_types_compatible_p): Make it static.
* gimple.h (gimple_force_type_merge): Remove.
(gimple_types_compatible_p): Likewise.

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

14 years ago2009-10-16 Janus Weil <janus@gcc.gnu.org>
janus [Fri, 16 Oct 2009 21:10:43 +0000 (21:10 +0000)]
2009-10-16  Janus Weil  <janus@gcc.gnu.org>

PR fortran/41719
* resolve.c (resolve_ordinary_assign): Reject intrinsic assignments
to polymorphic variables.

2009-10-16  Janus Weil  <janus@gcc.gnu.org>

PR fortran/41719
* gfortran.dg/class_5.f03: New test case.
* gfortran.dg/typebound_operator_2.f03: Fixing invalid test case.
* gfortran.dg/typebound_operator_4.f03: Ditto.

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

14 years ago2009-10-16 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Fri, 16 Oct 2009 20:17:39 +0000 (20:17 +0000)]
2009-10-16  Benjamin Kosnik  <bkoz@redhat.com>

* include/c_compatibility/stdatomic.h: Include cstdatomic if
__cplusplus.

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

14 years ago * gcc-interface/ada-tree.h (TYPE_FAT_POINTER_P): Swap with...
ebotcazou [Fri, 16 Oct 2009 20:07:52 +0000 (20:07 +0000)]
* gcc-interface/ada-tree.h (TYPE_FAT_POINTER_P): Swap with...
(TYPE_IS_FAT_POINTER_P): ...this.
(TYPE_THIN_POINTER_P): Rename into...
(TYPE_IS_THIN_POINTER_P): ...this.
(TYPE_FAT_OR_THIN_POINTER_P): Rename into...
(TYPE_IS_FAT_OR_THIN_POINTER_P): ...this.
(TYPE_IS_PADDING_P): Change definition, move old one to...
(TYPE_PADDING_P): ...this.
* gcc-interface/decl.c (gnat_to_gnu_entity): Adjust for above changes.
(get_unpadded_type): Likewise.
(gnat_to_gnu_component_type): Likewise.
(gnat_to_gnu_param): Likewise.
(relate_alias_sets): Likewise.
(make_packable_type): Likewise.
(maybe_pad_type): Likewise.
(gnat_to_gnu_field): Likewise.
(is_variable_size): Likewise.
(annotate_object): Likewise.
(validate_size): Likewise.
(set_rm_size): Likewise.
(make_type_from_size): Likewise.
(rm_size): Likewise.
* gcc-interface/misc.c (gnat_print_type): Likewise.
(gnat_get_alias_set): Likewise.
* gcc-interface/trans.c (Identifier_to_gnu): Likewise.
(Attribute_to_gnu): Likewise.
(call_to_gnu): Likewise.
(gnat_to_gnu): Likewise.
(add_decl_expr): Likewise.
(convert_with_check): Likewise.
(addressable_p): Likewise.
(maybe_implicit_deref): Likewise.
(protect_multiple_eval): Likewise.
(gnat_stabilize_reference_1): Likewise.
* gcc-interface/utils.c (gnat_pushdecl): Likewise.
(finish_record_type): Likewise.
(rest_of_record_type_compilation): Likewise.
(create_type_decl): Likewise.
(gnat_types_compatible_p): Likewise.
(build_template): Likewise.
(convert_vms_descriptor64): Likewise.
(convert_vms_descriptor32): Likewise.
(build_unc_object_type_from_ptr): Likewise.
(update_pointer_to): Likewise.
(convert_to_fat_pointer): Likewise.
(convert_to_fat_pointer): Likewise.
(convert): Likewise.
(remove_conversions): Likewise.
(maybe_unconstrained_array): Likewise.
(unchecked_convert): Likewise.
(handle_vector_type_attribute): Likewise.
* gcc-interface/utils2.c (build_binary_op): Likewise.
(build_unary_op): Likewise.
(build_allocator): Likewise.

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

14 years ago * exp_dbug.ads: Adjust type names in comments.
ebotcazou [Fri, 16 Oct 2009 19:28:52 +0000 (19:28 +0000)]
* exp_dbug.ads: Adjust type names in comments.
* gcc-interface/decl.c (maybe_pad_type): Remove NAME_TRAILER parameter,
add new IS_COMPONENT_TYPE parameter.  Adjust.  Remove dead code.
(gnat_to_gnu_entity): Adjust for above change.
(gnat_to_gnu_component_type): Likewise.
(gnat_to_gnu_field): Likewise.
* gcc-interface/trans.c (call_to_gnu): Likewise.  Do not unnecessarily
call max_size.
* gcc-interface/utils.c (finish_record_type): Remove obsolete code.
* gcc-interface/gigi.h (maybe_pad_type): Adjust prototype.

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

14 years ago * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
jakub [Fri, 16 Oct 2009 18:21:09 +0000 (18:21 +0000)]
* dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.

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

14 years ago * g++.dg/ipa/iinline-1.C: Use dg-add-options bind_pic_locally.
ghazi [Fri, 16 Oct 2009 17:01:15 +0000 (17:01 +0000)]
* g++.dg/ipa/iinline-1.C: Use dg-add-options bind_pic_locally.
* g++.dg/other/first-global.C: Likewise.
* g++.dg/parse/attr-externally-visible-1.C: Likewise.
* g++.dg/torture/pr40323.C: Likewise.
* g++.dg/tree-ssa/nothrow-1.C: Likewise.
* gcc.dg/inline-33.c: Likewise.
* gcc.dg/ipa/ipa-1.c: Likewise.
* gcc.dg/ipa/ipa-2.c: Likewise.
* gcc.dg/ipa/ipa-3.c: Likewise.
* gcc.dg/ipa/ipa-4.c: Likewise.
* gcc.dg/ipa/ipa-5.c: Likewise.
* gcc.dg/ipa/ipa-7.c: Likewise.
* gcc.dg/ipa/ipacost-2.c: Likewise.
* gcc.dg/tree-ssa/inline-3.c: Likewise.
* gcc.dg/tree-ssa/local-pure-const.c: Likewise.
* gfortran.dg/whole_file_5.f90: Likewise.
* gfortran.dg/whole_file_6.f90: Likewise.

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

14 years ago2009-10-16 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 16 Oct 2009 16:57:31 +0000 (16:57 +0000)]
2009-10-16  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/41728
* tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
if fold_stmt did anything.

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

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