summaryrefslogtreecommitdiff
path: root/gcc
Commit message (Collapse)AuthorAgeFilesLines
* * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...jason2010-01-2157-30/+1238
| | | | | | | | | | | | | | | | | | | | | | | (TYPE_TRANSPARENT_AGGR): this, for union and record. * calls.c (initialize argument_information): Handle it. * c-common.c (handle_transparent_union_attribute): Use new name. * c-decl.c (finish_struct): Ditto. * c-typeck.c (type_lists_compatible_p): Ditto. (convert_for_assignment): Use new name and also handle record. * function.c (aggregate_value_p): Handle it. (pass_by_reference): Ditto. (assign_parm_data_types): Ditto. * print-tree.c (print_node): Ditto. * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto. * lto-streamer-out.c (pack_ts_type_value_fields): Ditto. * tree.c (first_field): New fn. gcc/cp/ * mangle.c (write_type): Mangle transparent record as member type. * semantics.c (begin_class_definition): Recognize decimal classes and set TYPE_TRANSPARENT_AGGR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156106 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/42818davek2010-01-212-2/+8
| | | | | | | | | * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers, even when linking statically, for now. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156105 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/42338jason2010-01-213-2/+56
| | | | | | | | * mangle.c (write_expression): Handle tree codes that have extra arguments in the middle-end. * cp-demangle.c (d_print_comp): Fix array index printing. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156103 138bc75d-0d04-0410-961f-82ee72b054a4
* PR debug/42715jakub2010-01-214-7/+87
| | | | | | | | | | | | * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set without a cselib val. (count_uses): Accept MO_VAL_SET with no val on stores. (add_stores): Likewise. * gcc.dg/pr42715.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156102 138bc75d-0d04-0410-961f-82ee72b054a4
* * var-tracking.c (check_value_val): Add a compile time assertion.jakub2010-01-212-20/+23
| | | | | | | | | (dv_is_decl_p): Simplify. (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use gcc_assert if ENABLE_CHECKING. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156101 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2010-01-211-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156100 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2010-01-204-6/+26
| | | | | | | | | | | | | | | | | 2010-01-20 Paolo Carlini <paolo.carlini@oracle.com> PR c++/42038 * except.c (expand_start_catch_block): Deal correctly with do_begin_catch returning error_mark_node. /testsuite 2010-01-20 Paolo Carlini <paolo.carlini@oracle.com> PR c++/42038 * g++.dg/parse/crash55.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156094 138bc75d-0d04-0410-961f-82ee72b054a4
* PR debug/42782jakub2010-01-205-22/+88
| | | | | | | | | | | | | | | * var-tracking.c: Include tree-flow.h. (mem_dies_at_call): New. (dataflow_set_preserve_mem_locs): Use it. (dataflow_set_remove_mem_locs): Likewise. (dump_var): Renamed from dump_variable. Adjust all callers. (dump_var_slot): Renamed from dump_variable_slot. Likewise. * Makefile.in (var-tracking.o): Adjust deps. * gcc.dg/guality/pr42782.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156092 138bc75d-0d04-0410-961f-82ee72b054a4
* * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.amylaar2010-01-202-7/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156091 138bc75d-0d04-0410-961f-82ee72b054a4
* * g++.dg/parse/fn-typedef1.C: Add dg-do run.jason2010-01-201-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156089 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/41788jason2010-01-204-0/+36
| | | | | | | * class.c (layout_class_type): Set packed_maybe_necessary for packed non-PODs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156088 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/41920jason2010-01-204-0/+18
| | | | | | | * semantics.c (build_lambda_object): Call mark_used on captured variables. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156085 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/40750jason2010-01-205-3/+34
| | | | | | | | * decl.c (grokdeclarator): Clear type_quals for a member function declared using a typedef. Don't complain about adding cv-quals to a function typedef in C++0x mode. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156084 138bc75d-0d04-0410-961f-82ee72b054a4
* Testsuite cleanups for moxie.green2010-01-205-2/+14
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156081 138bc75d-0d04-0410-961f-82ee72b054a4
* * zh_CN.po: Update.jsm282010-01-202-336/+340
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156080 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-01-20 Richard Guenther <rguenther@suse.de>rguenth2010-01-204-50/+59
| | | | | | | | | | | | | | PR tree-optimization/42717 * tree-ssa-dce.c (get_live_post_dom): Remove. (forward_edge_to_pdom): Take an arbitrary edge to copy degenerate PHI args from. (remove_dead_stmt): Use the first post-dominator even if it does not contain live statements as redirection destination. * gcc.c-torture/compile/pr42717.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156076 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-01-20 Richard Guenther <rguenther@suse.de>rguenth2010-01-202-0/+10
| | | | | | | * tree-inline.c (estimate_num_insns): Handle EH builtins. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156073 138bc75d-0d04-0410-961f-82ee72b054a4
* * sel-sched.c (create_speculation_check): Remove set but not usedjakub2010-01-208-45/+35
| | | | | | | | | | | | | | | | | | | | | variable twin. (try_transformation_cache): Remove set but not used variable ds. (calculate_privileged_insns): Remove set but not used variables cur_insn and min_spec_insn. (find_best_expr): Remove set but not used variable avail_n. * tree-predcom.c (base_names_in_chain_on): Remove set but not used variable e. * cgraphunit.c (assemble_thunk): Remove set but not used variable false_label. * haifa-sched.c (remove_notes): Remove set but not used variable prev. * graphite-clast-to-gimple.c (gloog): Remove set but not used variable new_scop_exit_edge. * decl.c (create_array_type_for_decl): Remove set but not used variable error_msg. Remove break stmts after return stmts. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156072 138bc75d-0d04-0410-961f-82ee72b054a4
* PR bootstrap/42786uros2010-01-202-9/+22
| | | | | | | | | | * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx cpu types. Add support for *-sse3 cpu types. (x86_64-*-*): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156071 138bc75d-0d04-0410-961f-82ee72b054a4
* PR middle-end/42803jakub2010-01-204-54/+165
| | | | | | | | | | | | | | * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE argument, call initializer_constant_valid_p_1 instead of initializer_constant_valid_p, pass CACHE to it, return NULL immediately if first call returns NULL. (initializer_constant_valid_p_1): New function. (initializer_constant_valid_p): Use it. * g++.dg/parse/limits-initializer1.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156069 138bc75d-0d04-0410-961f-82ee72b054a4
* * jvspec.c (lang_specific_driver): Constify two variables named "p".amylaar2010-01-202-2/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156068 138bc75d-0d04-0410-961f-82ee72b054a4
* * tree.def (PLACEHOLDER_EXPR): Fix comment.ebotcazou2010-01-202-5/+9
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156067 138bc75d-0d04-0410-961f-82ee72b054a4
* * jcf-parse.c (set_source_filename): Constify variable "dot".amylaar2010-01-202-8/+9
| | | | | | | | (load_class): Constify variable "separator". Use get_identifier_with_length. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156066 138bc75d-0d04-0410-961f-82ee72b054a4
* * lang.c (java_post_options): Constify variable "dot".amylaar2010-01-202-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156064 138bc75d-0d04-0410-961f-82ee72b054a4
* * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD insteadjakub2010-01-205-7/+70
| | | | | | | | | | | | | | of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}. (loc_list_from_tree): Don't handle unsigned division. Handle signed modulo using DW_OP_{over,over,div,mul,minus}. * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned modulo instead of signed. * gcc.dg/cleanup-13.c: Expect DW_OP_mod to do unsigned modulo instead of signed, add a few new tests. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156063 138bc75d-0d04-0410-961f-82ee72b054a4
* PR bootstrap/42812amylaar2010-01-202-2/+7
| | | | | | | | * gfortran.h (struct gfc_namespace) <resolved>: Change to signed bitfield of width 2. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156062 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/h8300/h8300.c (F): Add "in_epilogue" flag.dj2010-01-202-13/+23
| | | | | | | | | | | (Fpa): Pass it (h8300_emit_stack_adjustment): Propogate it. (push): Pass it. (h8300_expand_prologue): Likewise. (h8300_expand_epilogue): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156056 138bc75d-0d04-0410-961f-82ee72b054a4
* * module.c (mio_f2k_derived): Use enumerator as initializer ofamylaar2010-01-202-1/+6
| | | | | | | enum variable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156055 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2010-01-201-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156053 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/fortran/janus2010-01-195-1/+88
| | | | | | | | | | | | | | | | | | | | 2010-01-19 Janus Weil <janus@gcc.gnu.org> PR fortran/42804 * resolve.c (extract_compcall_passed_object): Set locus for passed-object argument. (extract_ppc_passed_object): Set locus and correctly remove PPC reference. gcc/testsuite/ 2010-01-19 Janus Weil <janus@gcc.gnu.org> PR fortran/42804 * gfortran.dg/proc_ptr_comp_pass_6.f90: New test. * gfortran.dg/typebound_call_12.f03: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156049 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-01-19 Paul Thomas <pault@gcc.gnu.org>pault2010-01-194-16/+73
| | | | | | | | | | | | | | | | | | | | | PR fortran/42783 * trans-decl.c (add_argument_checking): Do not use the backend decl directly to test for the presence of an optional dummy argument. Use gfc_conv_expr_present, remembering to set the symbol referenced. PR fortran/42772 * trans-decl.c (gfc_generate_function_code): Small white space changes. If 'recurcheckvar' is NULL do not try to reset it. 2010-01-19 Paul Thomas <pault@gcc.gnu.org> PR fortran/42783 * gfortran.dg/bounds_check_15.f90 : New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156046 138bc75d-0d04-0410-961f-82ee72b054a4
* PR tree-optimization/41783matz2010-01-198-19/+154
| | | | | | | | | | | | | | | | | | | | | | | | * tree-data-ref.c (toplevel): Include flags.h. (dump_data_dependence_relation): Also dump the inputs if the result will be unknown. (split_constant_offset_1): Look through some conversions. * tree-predcom.c (determine_roots_comp): Restart a new chain if the offset from last element is too large. (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF. (reassociate_to_the_same_stmt): Handle vector registers. * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations (e.g. conversions). * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add wide_prolog_niters argument, emit widening instructions. (vect_do_peeling_for_alignment): Adjust caller, use widened variant of the iteration cound. * Makefile.in (tree-data-ref.o): Add $(FLAGS_H). testsuite/ * gfortran.dg/vect/fast-math-mgrid-resid.f: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156043 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix target/38697ramana2010-01-1915-22/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> PR target/38697 * config/arm/neon-testgen.m (emit_automatics): New parameter features. Adjust for Fixed_return_reg feature. (test_intrinsic): Call emit_automatics with new feature. * config/arm/neon.ml: Update copyright years. (features): New Fixed_return_reg feature. (ops): Update feature for Vget_low. 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> PR target/38697. * gcc.target/arm/neon/vget_lowf32.c: Regenerate. * gcc.target/arm/neon/vget_lowp16.c: Likewise. * gcc.target/arm/neon/vget_lowp8.c: Likewise. * gcc.target/arm/neon/vget_lows16.c: Likewise. * gcc.target/arm/neon/vget_lows32.c: Likewise. * gcc.target/arm/neon/vget_lows64.c: Likewise. * gcc.target/arm/neon/vget_lows8.c: Likewise. * gcc.target/arm/neon/vget_lowu16.c: Likewise. * gcc.target/arm/neon/vget_lowu32.c: Likewise. * gcc.target/arm/neon/vget_lowu64.c: Likewise. * gcc.target/arm/neon/vget_lowu8.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156042 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/fortran/janus2010-01-198-14/+64
| | | | | | | | | | | | | | | | | | | | | | 2010-01-19 Janus Weil <janus@gcc.gnu.org> PR fortran/42545 * resolve.c (resolve_fl_derived): Set the accessibility of the parent component for extended types. * symbol.c (gfc_find_component): Remove a wrongly-worded error message and take care of parent component accessibility. gcc/testsuite/ 2010-01-19 Janus Weil <janus@gcc.gnu.org> PR fortran/42545 * gfortran.dg/extends_6.f03: Modified an error message. * gfortran.dg/extends_10.f03: New test. * gfortran.dg/private_type_6.f03: Modified an error message. * gfortran.dg/structure_constructor_8.f03: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156040 138bc75d-0d04-0410-961f-82ee72b054a4
* PR tree-optimization/42719jakub2010-01-194-0/+23
| | | | | | | | | | * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug stmt uses. * gcc.dg/pr42719.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156038 138bc75d-0d04-0410-961f-82ee72b054a4
* PR debug/42728jakub2010-01-194-0/+28
| | | | | | | | | | * fwprop.c (all_uses_available_at): Return false if def_set dest is a REG that is used in def_insn. * gcc.dg/pr42728.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156037 138bc75d-0d04-0410-961f-82ee72b054a4
* * target.h (struct gcc_target) <secondary_reload>: Change typeamylaar2010-01-192-1/+4
| | | | | | | of last argument to secondary_reload_info *. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156035 138bc75d-0d04-0410-961f-82ee72b054a4
* * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.amylaar2010-01-192-5/+13
| | | | | | | | | | (TARGET_CC_MODES_COMPATIBLE): Put return value in braces. Add argument names. (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156034 138bc75d-0d04-0410-961f-82ee72b054a4
* Expect 20040204-1 to pass on moxie.green2010-01-192-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156033 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix asm-3.c test for moxie.green2010-01-192-0/+9
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156032 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2010-01-191-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156030 138bc75d-0d04-0410-961f-82ee72b054a4
* Revert fix of PR c++/dodji2010-01-184-37/+14
| | | | | | | | | | | | gcc/cp/ChangeLog: * error.c (dump_template_parms, count_non_default_template_args): Revert fix of PR c++/42634. gcc/testsuite/ChangeLog: * g++.dg/template/error45.C: reverted as part of reverting the fix of PR c++/42634. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156026 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix PR c++/42634dodji2010-01-184-4/+51
| | | | | | | | | | | | | | | | gcc/cp/ChangeLog: PR c++/42634 * error.c (dump_template_parms): Use innermost template arguments before calling count_non_default_template_args. (count_non_default_template_args): We are being called with template innermost arguments now. There is no need to ensure that again. gcc/testsuite/ChangeLog: PR c++/42634 * g++.dg/template/error45.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156022 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix PR c++/42766dodji2010-01-184-0/+29
| | | | | | | | | | | | gcc/cp/ChangeLog: PR c++/42766 * cvt.c (build_expr_type_conversion): Look through OVERLOAD. gcc/testsuite/ChangeLog: PR c++/42766 * g++.dg/conversion/op6.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156020 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.ebotcazou2010-01-182-3/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156018 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/42774uros2010-01-184-10/+59
| | | | | | | | | | | | | | | | * config/alpha/predicates.md (aligned_memory_operand): Return 0 for memory references with unaligned offsets. Remove CQImode handling. (unaligned_memory_operand): Return 1 for memory references with unaligned offsets. Remove CQImode handling. testsuite/ChangeLog: PR target/42774 * gcc.target/alpha/pr42774.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156017 138bc75d-0d04-0410-961f-82ee72b054a4
* PR middle-end/42068hubicka2010-01-181-1/+2
| | | | | | | | * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for unit local variables. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156016 138bc75d-0d04-0410-961f-82ee72b054a4
* PR middle-end/42068hubicka2010-01-182-7/+13
| | | | | | | (create_var_decl_1): Do not set COMMON flag for unit local variables. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156010 138bc75d-0d04-0410-961f-82ee72b054a4
* * zh_CN.po: Update.jsm282010-01-182-354/+350
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156009 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-01-18 Richard Guenther <rguenther@suse.de>rguenth2010-01-182-1/+23
| | | | | | | | | PR middle-end/39954 * cfgexpand.c (expand_call_stmt): TER pointer arguments in builtin calls. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156008 138bc75d-0d04-0410-961f-82ee72b054a4