- 25 Mar, 2012 4 commits
-
-
re PR middle-end/51663 (Desirable/undesirable elimination of unused variables & functions at -O0, -O0 -flto and -O0 -fwhole-program) PR lto/51663 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here. (decide_is_variable_needed): Do not handle toplevel reorder here. * cgraph.h (varpool_can_remove_if_no_refs): Likewise. * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars even at -O0. From-SVN: r185777
Jan Hubicka committed -
re PR tree-optimization/51737 (g++ crashes (internal compiler error: Segmentation fault) when compiling quickbook) PR middle-end/51737 * g++.dg/torture/pr51737.C: New testcase From-SVN: r185776
Jan Hubicka committed -
2012-03-25 Janne Blomqvist <jb@gcc.gnu.org> * runtime/memory.c (xcalloc): New function. * libgfortran.h (xcalloc): New prototype. * io/list_read.c (push_char): Use xcalloc instead of get_mem and memset. (l_push_char): Likewise. * io/unit.c (insert_unit): Likewise. (get_internal_unit): Likewise. * io/unix.c (open_internal): Likewise. (open_internal4): Likewise. (fd_to_stream): Likewise. From-SVN: r185773
Janne Blomqvist committed -
From-SVN: r185772
GCC Administrator committed
-
- 24 Mar, 2012 5 commits
-
-
* cp-tree.h (FNDECL_USED_AUTO): New macro. (LAMBDA_EXPR_DEDUCE_RETURN_TYPE_P): Remove. (dependent_lambda_return_type_node): Remove. (CPTI_DEPENDENT_LAMBDA_RETURN_TYPE): Remove. (struct language_function): Add x_auto_return_pattern field. (current_function_auto_return_pattern): New. (enum tsubst_flags): Add tf_partial. * decl.c (decls_match): Handle auto return comparison. (duplicate_decls): Adjust error message for auto return. (cxx_init_decl_processing): Remove dependent_lambda_return_type_node. (cp_finish_decl): Don't do auto deduction for functions. (grokdeclarator): Allow auto return without trailing return type in C++1y mode. (check_function_type): Defer checking of deduced return type. (start_preparsed_function): Set current_function_auto_return_pattern. (finish_function): Set deduced return type to void if not previously deduced. * decl2.c (change_return_type): Handle error_mark_node. (mark_used): Always instantiate functions with deduced return type. Complain about use if deduction isn't done. * parser.c (cp_parser_lambda_declarator_opt): Use 'auto' for initial return type. (cp_parser_lambda_body): Don't deduce return type in a template. (cp_parser_conversion_type_id): Allow auto in C++1y. * pt.c (instantiate_class_template_1): Don't mess with LAMBDA_EXPR_DEDUCE_RETURN_TYPE_P. (tsubst_copy_and_build): Likewise. (fn_type_unification, tsubst): Don't reduce the template parm level of 'auto' during deduction. (unify): Compare 'auto' specially. (get_bindings): Change test. (always_instantiate_p): Always instantiate functions with deduced return type. (do_auto_deduction): Handle error_mark_node and lambda context. Don't check for use in initializer. (contains_auto_r): Remove. * search.c (lookup_conversions_r): Handle auto conversion function. * semantics.c (lambda_return_type): Handle null return. Don't mess with dependent_lambda_return_type_node. (apply_deduced_return_type): Rename from apply_lambda_return_type. * typeck.c (merge_types): Handle auto. (check_return_expr): Do auto deduction. * typeck2.c (add_exception_specifier): Fix complain check. From-SVN: r185768
Jason Merrill committed -
expr.c (optimize_bitfield_assignment_op): Use str_mode and str_bitsize instead of more convoluted expressions. * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode and str_bitsize instead of more convoluted expressions. From-SVN: r185767
Eric Botcazou committed -
PR target/52610 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon. From-SVN: r185765
Eric Botcazou committed -
PR target/52656 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto. From-SVN: r185764
Eric Botcazou committed -
From-SVN: r185756
GCC Administrator committed
-
- 23 Mar, 2012 14 commits
-
-
* inclhack.def (aix_malloc): New. * fixincl.x: Regenerate. * tests/base/malloc.h [AIX_MALLOC_CHECK]: New. From-SVN: r185752
David Edelsohn committed -
From-SVN: r185746
Ian Lance Taylor committed -
libstdc++-v3/ * config/abi/post/sparc-linux-gnu/baseline_symbols.txt: Update. From-SVN: r185745
David S. Miller committed -
2012-03-23 Benjamin Kosnik <bkoz@redhat.com> * scripts/testsuite_flags.in (--cxxflags): Let CXXFLAGS set -g -O2. * testsuite/lib/libstdc++.exp: Same. From-SVN: r185744
Benjamin Kosnik committed -
From-SVN: r185741
Andrew John Hughes committed -
2012-03-23 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/forward_list.h: Slightly tweak two comments. From-SVN: r185737
Paolo Carlini committed -
2012-03-23 Martin Jambor <mjambor@suse.cz> * tree-sra.c (build_accesses_from_assign): Remove FIXME comment. From-SVN: r185735
Martin Jambor committed -
re PR tree-optimization/52678 (internal compiler error: in vect_update_ivs_after_vectorizer, at tree-vect-loop-manip.c:1842) 2012-03-23 Richard Guenther <rguenther@suse.de> PR tree-optimization/52678 * tree-vectorizer.h (struct _stmt_vec_info): Add loop_phi_evolution_part member. (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define. * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize STMT_VINFO_LOOP_PHI_EVOLUTION_PART. * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Use the cached evolution part and the PHI nodes value from the loop preheader edge instead of re-analyzing the evolution. * gfortran.dg/pr52678.f: New testcase. From-SVN: r185734
Richard Guenther committed -
2012-03-23 Janne Blomqvist <jb@gcc.gnu.org> * gfortran.h (GFC_MAX_LINE): Remove unused macro. From-SVN: r185728
Janne Blomqvist committed -
2012-03-23 Richard Guenther <rguenther@suse.de> PR tree-optimization/52638 * g++.dg/torture/pr52638.C: New testcase. From-SVN: r185727
Richard Guenther committed -
2012-03-23 William Bader <williambader@hotmail.com> c-family/ * c-lex.c (c_lex_with_flags): Avoid declarations after stmts. From-SVN: r185725
William Bader committed -
re PR c++/52487 ([C++11] ICE at cp/semantics.c:5613 with lambda capturing reference to incomplete type by value) /cp 2012-03-22 Paolo Carlini <paolo.carlini@oracle.com> PR c++/52487 * class.c (check_field_decls): Call literal_type_p only on complete types. /testsuite 2012-03-22 Paolo Carlini <paolo.carlini@oracle.com> PR c++/52487 * g++.dg/cpp0x/lambda/lambda-ice7.C: New. From-SVN: r185722
Paolo Carlini committed -
From-SVN: r185721
GCC Administrator committed -
2012-03-22 Benjamin Kosnik <bkoz@redhat.com> * doc/Makefile.am: XML output names have only .xml suffix. * doc/Makefile.in: Regenerate. From-SVN: r185716
Benjamin Kosnik committed
-
- 22 Mar, 2012 17 commits
-
-
* config/mips/mips-tables.opt: Update. * config/mips/mips.md (processor): Add xlp. * config/mips/mips-cpus.def: Add xlp. * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from 5KF for now. * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp. * doc/invoke.texi: Mention XLP. From-SVN: r185712
Maxim Kuvyrkov committed -
PR c++/52671 * decl.c (check_tag_decl): Only use CLASSTYPE_TEMPLATE_INSTANTIATION on CLASS_TYPE_P types. * g++.dg/ext/attrib44.C: New test. From-SVN: r185709
Jakub Jelinek committed -
PR middle-end/52547 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars on any new_local_var_chain vars declared during recursing on GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body. * testsuite/libgomp.c/pr52547.c: New test. From-SVN: r185707
Jakub Jelinek committed -
From-SVN: r185702
Richard Earnshaw committed -
* config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h (ASM_OUTPUT_LOCAL): Ditto. (ASM_OUTPUT_COMMON): Remove. * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF. * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define. From-SVN: r185700
Uros Bizjak committed -
PR other/52626 * tests/base/pthread.h [SOLARIS_MUTEX_INIT_2_CHECK] (PTHREAD_COND_INITIALIZER): Adapt for solaris_cond_init removal. From-SVN: r185699
Rainer Orth committed -
* arm/lib1funcs.asm (ctzsi2): New function. * arm/t-elf (LIB1ASMFUNCS): Add _ctzsi2. * arm/t-linux (LIB1ASMFUNCS): Likewise. * arm/t-strongarm-elf (LIB1ASMFUNCS): Likewise. * arm/t-symbian (LIB1ASMFUNCS): Likewise. * arm/t-vxworks (LIB1ASMFUNCS): Likewise. * arm/t-wince-pe (LIB1ASMFUNCS): Likewise. From-SVN: r185698
Richard Earnshaw committed -
re PR tree-optimization/51737 (g++ crashes (internal compiler error: Segmentation fault) when compiling quickbook) PR middle-end/51737 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE parameter. * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype. * ipa-inline-transform.c (save_inline_function_body): Remove copied clone if needed. * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update. PR middle-end/51737 * g++.dg/torture/pr51737.C: New testcase From-SVN: r185694
Jan Hubicka committed -
2012-03-22 Richard Guenther <rguenther@suse.de> PR middle-end/52666 * fold-const.c (fold_ternary_loc): Fix typo. From-SVN: r185693
Richard Guenther committed -
PR target/52496 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER. (unspecv): Add UNSPECV_MEMORY_BARRIER. (cli_sei): Use unspec_volatile instead of unspec for memory barrier. (delay_cycles_1, delay_cycles_2): Ditto. (delay_cycles_3, delay_cycles_4): Ditto. (nopv, *nopv): Ditto. (sleep, *sleep): Ditto. (wdr, *wdr): Ditto. From-SVN: r185692
Georg-Johann Lay committed -
re PR tree-optimization/52548 (missed PRE optimization when function call follows to-be hoisted variable) 2012-03-22 Richard Guenther <rguenther@suse.de> PR tree-optimization/52548 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation because of clobbers. (prune_clobbered_mems): New function. (compute_antic_aux): Use it to prune ANTIC_OUT. (compute_partial_antic_aux): Use it to prune PA_IN. (compute_avail): Only insert expressions into EXP_GEN that are not invalidated when translated up to the beginning of the block. * gcc.dg/tree-ssa/ssa-pre-29.c: New testcase. From-SVN: r185691
Richard Guenther committed -
2012-03-22 Paolo Carlini <paolo.carlini@oracle.com> * include/std/array (array<>::at(size_type) const): Fix version for undefined __EXCEPTIONS. From-SVN: r185689
Paolo Carlini committed -
2012-03-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> * lib/fortran-modules.exp (list-module-names-1): Remove warning. From-SVN: r185688
Bernhard Reutner-Fischer committed -
2012-03-22 Richard Guenther <rguenther@suse.de> PR tree-optimization/52638 * tree-vect-stmts.c (vect_init_vector_1): New function, split out from ... (vect_init_vector): ... here. Handle scalar vector inits. (vect_get_vec_def_for_operand): Adjust. (vectorizable_load): Likewise. From-SVN: r185687
Richard Guenther committed -
2012-03-23 Richard Guenther <rguenther@suse.de> * crontab: Enable snapshots from gcc-4_7-branch. From-SVN: r185680
Richard Biener committed -
2012-03-22 Jiangning Liu <jiangning.liu@arm.com> PR tree-optimization/52563 * gcc.dg/tree-ssa/scev-3.c: XFAIL on lp64. * gcc.dg/tree-ssa/scev-4.c: XFAIL on lp64. * gcc.dg/tree-ssa/scev-5.c: New. From-SVN: r185678
Jiangning Liu committed -
* config.gcc (alpha*-*-linux*): Add elfos.h to tm_file. (alpha*-*-freebsd*): Ditto. (alpha*-*-netbsd*): Ditto. (alpha*-*-openbsd*): Ditto. * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove. (DWARF2_DEBUGGING_INFO): Remove. (PREFERRED_DEBUGGING_TYPE): Remove. (ASM_FINAL_SPEC): Remove. (IDENT_ASM_OP): Remove. (ASM_OUTPUT_IDENT): Remove. (SKIP_ASM_OP): Remove. (ASM_OUTPUT_SKIP): Remove. (ALIGN_ASM_OP): Remove. (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove. (ASM_OUTPUT_CASE_LABEL): Remove. (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove. (COMMON_ASM_OP): Remove. (ASM_OUTPUT_ALIGNED_COMMON): Remove. (ASCII_DATA_ASM_OP): Remove. (READONLY_DATA_SECTION_ASM_OP): Remove. (INIT_SECTION_ASM_OP): Remove. (FINI_SECTION_ASM_OP): Remove. (ASM_SECTION_START_OP): Remove. (ASM_OUTPUT_SECTION_START_FILE): Remove. (TARGET_ASM_NAMED_SECTION): Remove. (TARGET_ASM_SELECT_SECTION): Remove. (MAKE_DECL_ONE_ONLY): Remove. (TYPE_ASM_OP): Remove. (SIZE_ASM_OP): Remove. (ASM_WEAKEN_LABEL): Remove. (TYPE_OPERAND_FMT): Remove. (ASM_DECLARE_RESULT): Remove. (ASM_DECLARE_OBJECT_NAME): Remove. (ASM_FINISH_DECLARE_OBJECT): Remove. (ELF_ASCII_ESCAPES): Remove. (ELF_STRING_LIMIT): Remove. (STRING_ASM_OP): Remove. (ASM_OUTPUT_EXTERNAL): Remove. (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false. * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine before define. (ASM_DECLARE_FUNCTION_NAME): Ditto. (ASM_DECLARE_FUNCTION_SIZE): Ditto. (ASM_GENERATE_INTERNAL_LABEL): Ditto. (ASM_OUTPUT_SKIP): Ditto. (READONLY_DATA_SECTION_ASM_OP): Remove. (USER_LABEL_PREFIX): Remove. (ASM_OUTPUT_ASCII): Remove. (ASM_OUTPUT_CASE_LABEL): Remove. (NO_DOLLAR_IN_LABEL): Undefine. From-SVN: r185677
Uros Bizjak committed
-