aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2010-06-03Check MAX_FIXED_MODE_SIZE on bit-field in C++.H.J. Lu7-10/+26
gcc/ada/ 2010-06-03 H.J. Lu <hongjiu.lu@intel.com> PR c++/44294 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed. gcc/cp/ 2010-06-03 H.J. Lu <hongjiu.lu@intel.com> PR c++/44294 * class.c (layout_class_type): Check MAX_FIXED_MODE_SIZE on bit-field. gcc/ 2010-06-03 H.J. Lu <hongjiu.lu@intel.com> PR c++/44294 * defaults.h (MAX_FIXED_MODE_SIZE): New. * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed. From-SVN: r160229
2010-06-03re PR lto/41921 (Cross language don't work with typedef unnamed structs)Richard Biener1-1/+8
2010-06-03 Richard Guenther <rguenther@suse.de> PR lto/41921 * lib/lto.exp: Always load gcc.exp. (lto-obj): For C source files invoke gcc_target_compile. * g++.dg/lto/20100603-1_0.C: New testcase. * g++.dg/lto/20100603-1_1.c: Likewise. From-SVN: r160227
2010-06-03re PR lto/41921 (Cross language don't work with typedef unnamed structs)Richard Guenther3-0/+24
2010-06-03 Richard Guenther <rguenther@suse.de> PR lto/41921 * lib/lto.exp: Always load gcc.exp. (lto-obj): For C source files invoke gcc_target_compile. * g++.dg/lto/20100603-1_0.C: New testcase. * g++.dg/lto/20100603-1_1.c: Likewise. From-SVN: r160226
2010-06-03Add a testcasef for PR tree-optimization/43688.H.J. Lu2-0/+16
2010-06-03 H.J. Lu <hongjiu.lu@intel.com> PR tree-optimization/43688 * gfortran.dg/pr43688.f90: New. From-SVN: r160224
2010-06-03re PR lto/41584 (WHOPR doesn't grok empty units)Richard Guenther4-0/+20
2010-06-03 Richard Guenther <rguenther@suse.de> PR lto/41584 * gcc.dg/lto/20100603-1_0.c: New testcase. * gcc.dg/lto/20100603-2_0.c: Likewise. * gcc.dg/lto/20100603-3_0.c: Likewise. From-SVN: r160223
2010-06-03re PR debug/44375 (goto_locus lost at -O0 during cfg cleanup)Jakub Jelinek2-0/+24
PR debug/44375 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0 return false if merging the bbs would lead to goto_locus location being lost from the IL. From-SVN: r160219
2010-06-03var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if ...Jakub Jelinek1-2/+2
* var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if set->regs[i] is NULL or has just one entry. From-SVN: r160217
2010-06-03var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if ...Jakub Jelinek2-1/+12
* var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if set->regs[i] is NULL or has just one entry. From-SVN: r160216
2010-06-03lto-cgraph.c (lto_varpool_encoder_size): Remove.Jan Hubicka3-8/+13
* lto-cgraph.c (lto_varpool_encoder_size): Remove. * lto-streamer.h (lto_varpool_encoder_size): New inline function. From-SVN: r160215
2010-06-03Missed part of recent tm_p.h patch in c-common.cKai Tietz1-1/+1
From-SVN: r160214
2010-06-03arm.c (FL_TUNE): Define.Paul Brook2-111/+86
2010-06-03 Paul Brook <paul@codesourcery.com> gcc/ * config/arm/arm.c (FL_TUNE): Define. (arm_default_cpu, arm_cpu_select): Remove. (all_cores): Populate core field. (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New. (arm_find_cpu): New function. (arm_handle_option): Lookup cpu/architecture names. (arm_override_options): Cleanup mcpu/march/mtune handling. (arm_file_start): Ditto. From-SVN: r160213
2010-06-03re PR rtl-optimization/44169 (Wrong code while generating TLS offsets)Alan Modra3-16/+22
PR target/44169 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand. * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label rtx to gen_load_toc_v4_PIC_1b. Tidy. (rs6000_emit_load_toc_table): Likewise. From-SVN: r160206
2010-06-03passes.c (init_optimization_passes): Put ipa reference after ipa pure-const.Jan Hubicka2-1/+6
* passes.c (init_optimization_passes): Put ipa reference after ipa pure-const. From-SVN: r160205
2010-06-03ipa-reference.c (ipa_reference_local_vars_info_d): Remove calls_read_all and ↵Jan Hubicka2-129/+221
calls_write_all. * ipa-reference.c (ipa_reference_local_vars_info_d): Remove calls_read_all and calls_write_all. (get_reference_optimization_summary): Fix formatting. (is_proper_for_analysis): Check that decl is not readonly. (propagate_bits): Check CONST/PURE/noreturn flags. (ipa_init): Move all_module_statics to optimization_summary_obstack. (analyze_function): Ignore indirect edges. (copy_global_bitmap): For all module statics, do nothing. (generate_summary): Do not print calls_read_all/calls_write_all. (read_write_all_from_decl): Take node as argument; check cgraph_node_cannot_return. (propagate): Reorganize read_all/write_all computation; check indirect edges; check ecf flags; use all_module_statics in the results; do not free all_module_statics. (stream_out_bitmap): Handle all_module_statics. (ipa_reference_write_optimization_summary): Likewise; use varpool/cgraph encoders to get boundaries. (ipa_reference_read_optimization_summary): Read in all_module_statics; use it when possible. From-SVN: r160204
2010-06-03Daily bump.GCC Administrator1-1/+1
From-SVN: r160203
2010-06-03PR target/44218, improve -mrecip on powerpcMichael Meissner25-454/+2112
From-SVN: r160199
2010-06-02parser.c (cp_parser_mem_initializer_list): Change error text.Jonathan Wakely2-1/+5
2010-06-02 Jonathan Wakely <jwakely.gcc@gmail.com> * parser.c (cp_parser_mem_initializer_list): Change error text. From-SVN: r160198
2010-06-02re PR middle-end/44291 (ICE in set_user_assembler_libfunc)Richard Guenther2-2/+8
2010-06-03 Richard Guenther <rguenther@suse.de> PR middle-end/44291 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE. (set_user_assembler_libfunc): Likewise. From-SVN: r160197
2010-06-02mkconfig.sh: Include insn-flags.h and insn-constants.h before defaults.h.Steven Bosscher5-181/+231
* mkconfig.sh: Include insn-flags.h and insn-constants.h before defaults.h. * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS to defaults.h * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO, DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING, FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE, STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN, STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP, STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT, STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE, STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h. * defaults.h: Updated for above mentioned changes. From-SVN: r160195
2010-06-02Use __SIZE_TYPE__ to define size_t.H.J. Lu2-1/+5
2010-06-02 H.J. Lu <hongjiu.lu@intel.com> * g++.dg/torture/pr44295.C (size_t): Use __SIZE_TYPE__. From-SVN: r160193
2010-06-02c-common.c: Remove header include of tm_p.h.Kai Tietz2-3/+5
2010-06-02 Kai Tietz <kai.tietz@onevision.com> * c-common.c: Remove header include of tm_p.h. * Makefile.in (c-common.o): Remove TM_P_H dependency. From-SVN: r160191
2010-06-02re PR c++/44361 (-Wunused-but-set-variable vs. explicit void cast)Jakub Jelinek1-4/+3
PR c++/44361 * cvt.c (convert_to_void): If implicit is NULL, call mark_rvalue_use instead of calling mark_exp_read only when not an assignment. From-SVN: r160188
2010-06-02re PR debug/44367 (-O0 -g wrong DW_AT_location on c++ class retval)Jakub Jelinek2-12/+21
PR debug/44367 * semantics.c (finalize_nrv): Don't copy DECL_ARTIFICIAL, DECL_IGNORED_P, DECL_SOURCE_LOCATION and DECL_ABSTRACT_ORIGIN from var to result. Set DECL_VALUE_EXPR on var. From-SVN: r160187
2010-06-02re PR debug/44367 (-O0 -g wrong DW_AT_location on c++ class retval)Jakub Jelinek2-5/+11
PR debug/44367 * semantics.c (finalize_nrv): Don't copy DECL_ARTIFICIAL, DECL_IGNORED_P, DECL_SOURCE_LOCATION and DECL_ABSTRACT_ORIGIN from var to result. Set DECL_VALUE_EXPR on var. From-SVN: r160186
2010-06-02tree.h (struct tree_decl_map): New type.Jakub Jelinek5-35/+75
* tree.h (struct tree_decl_map): New type. (tree_decl_map_eq, tree_decl_map_marked_p): Define. (tree_decl_map_hash): New prototype. (debug_expr_for_decl, value_expr_for_decl): Change into tree_decl_map hashtab from tree_map. (init_ttree): Adjust initialization. (tree_decl_map_hash): New function. (decl_debug_expr_lookup, decl_debug_expr_insert, decl_value_expr_lookup, decl_value_expr_insert): Adjust. cp/ * cp-objcp-common.c (shadowed_var_for_decl): Change into tree_decl_map hashtab from tree_map. (decl_shadowed_for_var_lookup, decl_shadowed_for_var_insert): Adjust. (init_shadowed_var_for_decl): Adjust initialization. From-SVN: r160185
2010-06-02* error.c (dump_type): Improve typedef handling.Jason Merrill4-1/+24
From-SVN: r160184
2010-06-02re PR c++/44333 (Ambiguity with typedef and using namespace)Jason Merrill4-5/+45
PR c++/44333 * name-lookup.c (same_entity_p): New. (ambiguous_decl): Multiple declarations of the same entity are not ambiguous. From-SVN: r160183
2010-06-02configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2 linker ↵Rainer Orth6-5/+100
emulations. * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2 linker emulations. * configure: Regenerate. * config.in: Regenerate. * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define. (X86_64_EMULATION): Define. (TARGET_LD_EMULATION): Use them. * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define. (SPARC64_EMULATION): Define. (LINK_ARCH_SPEC): Use them. From-SVN: r160178
2010-06-02Remove testsuite/ from filenames.H.J. Lu1-29/+29
From-SVN: r160170
2010-06-02Add a testcase for PR middle-end/44372.H.J. Lu2-0/+53
2010-06-02 H.J. Lu <hongjiu.lu@intel.com> PR middle-end/44372 * g++.dg/ipa/pr44372.C: New. From-SVN: r160169
2010-06-02Use smallest_mode_for_size for computing the precision types of new graphite ↵Sebastian Pop2-1/+17
IVs. 2010-06-02 Sebastian Pop <sebastian.pop@amd.com> * graphite-clast-to-gimple.c (gcc_type_for_interval): Use smallest_mode_for_size for computing the precision types of new graphite IVs. Do not call lang_hooks.types.type_for_size. From-SVN: r160165
2010-06-02Only reset the GIMPLE_DEBUG information in the code gen of if-conversion.Sebastian Pop2-14/+28
2010-06-02 Sebastian Pop <sebastian.pop@amd.com> * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG information. (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information. From-SVN: r160164
2010-06-02Fix PR44363: don't abort when the ifcvt analysis fails to recognize a Gimple ↵Sebastian Pop2-6/+9
stmt. 2010-06-02 Sebastian Pop <sebastian.pop@amd.com> PR middle-end/44363 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable, return false instead. From-SVN: r160163
2010-06-02re PR middle-end/44295 (Failed to build 483.xalancbmk in SPEC CPU 2006)Jan Hubicka4-1/+188
PR middle-end/44295 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not create new cgraph node to check callee. * testsuite/g++.dg/torture/pr44295.C: Neww testcase. From-SVN: r160159
2010-06-02* gcc.dg/tree-ssa/loadpre6.c: Update.Jan Hubicka2-1/+6
From-SVN: r160158
2010-06-02header_plugin.c: Include cp-tree.h before diagnostic.h.Richard Guenther2-1/+6
2010-06-02 Richard Guenther <rguenther@suse.de> * g++.dg/plugin/header_plugin.c: Include cp-tree.h before diagnostic.h. From-SVN: r160155
2010-06-02lto-streamer-in.c (input_gimple_stmt): Fix typo.Richard Guenther2-1/+5
2010-06-02 Richard Guenther <rguenther@suse.de> * lto-streamer-in.c (input_gimple_stmt): Fix typo. From-SVN: r160154
2010-06-02lto-wrapper.c (lto_wrapper_exit): Rename to ...Richard Guenther3-29/+76
2010-06-02 Richard Guenther <rguenther@suse.de> * lto-wrapper.c (lto_wrapper_exit): Rename to ... (lto_wrapper_cleanup): ... this. Do not exit. (fatal): Adjust. Exit here. (fatal_perror): Likewise. (fatal_signal): New function. (main): Set up signal handlers to cleanup temporary files. * Makefile.in (lto-wrapper.o): Adjust dependencies. From-SVN: r160153
2010-06-02re PR tree-optimization/44377 (ICE: gimple check: expected ↵Richard Guenther2-1/+5
gimple_return(error_mark), have gimple_call() in gimple_return_retval, at gimple.h:4311 with -fipa-pta) 2010-06-02 Richard Guenther <rguenther@suse.de> PR tree-optimization/44377 * tree-ssa-structalias.c (find_func_aliases): Fix typo. From-SVN: r160152
2010-06-022097.md (z10_fhex): Remove insn reservation.Andreas Krebbel4-79/+38
2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * config/s390/2097.md (z10_fhex): Remove insn reservation. * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant. (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF, *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero instruction. * config/s390/s390.c: Don't accept fp zeros as valid constants anymore. From-SVN: r160151
2010-06-02bitmap.c (bitmap_descriptor): Add search_iter.Jan Hubicka2-7/+27
* bitmap.c (bitmap_descriptor): Add search_iter. (bitmap_find_bit): Increment it. (print_statistics): Print it. From-SVN: r160148
2010-06-02tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call instead ↵Nathan Froyd2-9/+7
of gimple_build_call_vec. * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call instead of gimple_build_call_vec. Delete unnecessary local variable. From-SVN: r160147
2010-06-02gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling" change ↵Steven Bosscher2-0/+9
from yesterday. * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling" change from yesterday. From-SVN: r160144
2010-06-02* c-ada-spec.c: Clean up redundant includes.Steven Bosscher2-10/+5
From-SVN: r160143
2010-06-02lto.exp (lto-link-and-maybe-run): Show the options in the link fail message.Iain Sandoe2-1/+6
* lib/lto.exp (lto-link-and-maybe-run): Show the options in the link fail message. From-SVN: r160141
2010-06-02re PR fortran/44360 (wrong-code: host-associated procedure wrongly favoured ↵Tobias Burnus4-0/+57
to use-associated one) 2010-06-02 Tobias Burnus <burnus@net-b.de> PR fortran/44360 * parse.c (gfc_fixup_sibling_symbols): Do not "fix" use-associated symbols. 2010-06-02 Tobias Burnus <burnus@net-b.de> PR fortran/44360 * gfortran.dg/use_13.f90: New test case. From-SVN: r160138
2010-06-02re PR fortran/44371 (STOP parsing rejects valid code)Jerry DeLisle2-0/+6
2010-06-01 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/44371 * gfortran.dg/error_stop_2.f08: Minor update. From-SVN: r160135
2010-06-02re PR fortran/44371 (STOP parsing rejects valid code)Jerry DeLisle3-0/+21
2010-06-01 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/44371 * gfortran.dg/error_stop_1.f08: New test. * gfortran.dg/error_stop_2.f08: New test. From-SVN: r160134
2010-06-02re PR fortran/44371 (STOP parsing rejects valid code)Jerry DeLisle2-3/+9
2010-06-01 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/44371 * match.c (gfc_match_stopcode): Move gfc_match_eos call inside condition block. From-SVN: r160133
2010-06-01DR 990Jason Merrill8-73/+166
DR 990 * call.c (add_list_candidates): Prefer the default constructor. (build_aggr_conv): Treat missing initializers like { }. * typeck2.c (process_init_constructor_record): Likewise. * init.c (expand_default_init): Use digest_init for direct aggregate initialization, too. * call.c (add_list_candidates): Split out... (build_user_type_conversion_1): ...from here. (build_new_method_call): And here. (implicit_conversion): Propagate LOOKUP_NO_NARROWING. From-SVN: r160132