- 21 May, 2014 21 commits
-
-
2014-05-21 John Marino <gnugcc@marino.st> gcc: * config.gcc (*-*-dragonfly*): New target. * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*). * configure: Regenerate. * config/dragonfly-stdint.h: New. * config/dragonfly.h: New. * config/dragonfly.opt: New. * config/i386/dragonfly.h: New. * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly. include: * liberty.h: Use basename function on DragonFly. libcilkrts: * runtime/os-unix.c (__DragonFly__): New target. libgcc: * config.host (*-*-dragonfly*): New target. * crtstuff.c: Make dl_iterate_support generic on *bsd. * enable-execute-stack-mprotect.c: Always mprotect on FreeBSD. * unwind-dw2-fde-dip.c: Add dl_iterate_phr support for DragonFly. * config/i386/dragonfly-unwind.h: New. libitm: * configure.tgt (*-*-dragonfly*): New target. libstdc++-v3: * acinclude.m4 (*-*-dragonfly*): New target. * configure: Regenerate. * configure.host (*-*-dragonfly*): New target. * config/locale/dragonfly/c_locale.cc: New. * config/locale/dragonfly/ctype_members.cc: New. * config/os/bsd/dragonfly/ctype_base.h: New. * config/os/bsd/dragonfly/ctype_configure_char.cc: New. * config/os/bsd/dragonfly/ctype_inline.h: New. * config/os/bsd/dragonfly/os_defines.h: New. From-SVN: r210694
John Marino committed -
2014-05-21 Robert Dewar <dewar@adacore.com> * gnat_ugn.texi: Clearly document -gnatw.g (GNAT warnings). Clearly document -gnatyg (GNAT style switches). * usage.adb: Add line line for -gnatw.g (GNAT warnings) More detail for line for -gnatyg (GNAT style switches) -gnatw.d/D is available for VMS after all. * warnsw.adb: Reorganize to eliminate duplicated code (Restore_Warnings): Add a couple of missing entries (Save_Warnings): Add a couple of missing entries. * warnsw.ads: Add missing entries to Warning_Record (not clear what the impact is). 2014-05-21 Robert Dewar <dewar@adacore.com> * errout.adb (Set_Msg_Insertion_Warning): Handle ?*? (restriction warning) case. * errout.ads: Document ?*? (restriction warning) insertion. * erroutc.adb (Get_Warning_Tag): Deal with ?*? (restriction warning) case. * erroutc.ads: Document use of * for restriction warning tag. * restrict.adb (Restriction_Msg): Tag with ?*? instead of ??. 2014-05-21 Ed Schonberg <schonberg@adacore.com> * sem_ch9.adb (Push_Scope_And_Install_Discriminants): Do not make discriminants immediately visible when analyzing an aspect of a subtype declaration. (Uninstall_Discriminants): Do not apply to the entity in a subtype declaration. From-SVN: r210693
Arnaud Charlet committed -
gcc/ * tree.def (VOID_CST): New. * tree-core.h (TI_VOID): New. * tree.h (void_node): New. * tree.c (tree_node_structure_for_code, tree_code_size) (iterative_hash_expr): Handle VOID_CST. (build_common_tree_nodes): Initialize void_node. gcc/c-family/ * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete. * c-common.c (c_common_nodes_and_builtins): Don't initialize void_zero_node. * c-pretty-print.c (pp_c_void_constant): New function. (c_pretty_printer::constant, c_pretty_printer::primary_expression) (c_pretty_printer::expression): Handle VOID_CST. * cilk.c (extract_free_variables): Likewise. * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift) (ubsan_instrument_vla): Use void_node instead of void_zero_node. gcc/c/ * c-array-notation.c (expand_array_notations): Use void_node instead of void_zero_node. gcc/cp/ * cvt.c (convert_to_void): Use void_node instead of void_zero_node. * cp-array-notation.c (replace_invariant_exprs): Likewise. (expand_array_notation): Handle VOID_CST. * error.c (dump_expr): Likewise. * cxx-pretty-print.c (cxx_pretty_printer::primary_expression) (cxx_pretty_printer::expression): Likewise. (pp_cxx_new_expression): Use void_node instead of void_zero_node. * decl.c (register_dtor_fn): Likewise. * init.c (build_raw_new_expr, build_new_1, build_vec_init) (build_delete, push_base_cleanups): Likewise. * mangle.c (write_expression): Likewise. * semantics.c (finish_break_stmt, empty_expr_stmt_p): Likewise. * pt.c (tsubst_decl, tsubst_copy_and_build): Likewise. (tsubst, tsubst_copy, build_non_dependent_expr): Handle VOID_CST. * tree.c (cp_tree_equal): Likewise. (build_dummy_object, is_dummy_object, stabilize_expr): Use void_node instead of void_zero_node. * typeck.c (check_return_expr): Likewise. * typeck2.c (build_functional_cast): Likewise. From-SVN: r210692
Richard Sandiford committed -
2014-05-21 Ed Schonberg <schonberg@adacore.com> * sem_util.adb: Code clean up. 2014-05-21 Eric Botcazou <ebotcazou@adacore.com> * gnat_ugn.texi: Document -Werror. From-SVN: r210691
Arnaud Charlet committed -
2014-05-21 Bob Duff <duff@adacore.com> * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): This was returning False if the Object is a constant view. Fix it to return True in that case, because it might be a view of a variable. (Has_Discriminant_Dependent_Constraint): Fix latent bug; this function was crashing when passed a discriminant. 2014-05-21 Robert Dewar <dewar@adacore.com> * gnat_ugn.texi: Remove misplaced section that is now obsolete. * s-arit64.adb: Minor code reorganization. * sem_prag.adb: Minor comment fix (remove erroneous use of the term erroneous). 2014-05-21 Robert Dewar <dewar@adacore.com> * g-table.adb, g-dyntab.adb (Reallocate): Fix possible overflow in computing new table size. From-SVN: r210690
Arnaud Charlet committed -
2014-05-21 Robert Dewar <dewar@adacore.com> * einfo.ads: Minor reformatting. * ceinfo.adb: Deal with slight format change of einfo.ads. 2014-05-21 Ed Schonberg <schonberg@adacore.com> * sem_prag.adb (Analyze_Part_Of): Further work on the proper implementation of the SPARK 2014 rule concerning private child units (LRM 7.2.6). 2014-05-21 Vincent Celier <celier@adacore.com> * makeusg.adb: Add switch -d to usage. 2014-05-21 Ed Schonberg <schonberg@adacore.com> * sem_util.adb (Find_Actual): If an actual that is the prefix of an enclosing prefixed call has been rewritten, use Nkind and Sloc to identify the corresponding formal, when handling deferred references. 2014-05-21 Robert Dewar <dewar@adacore.com> * debug.adb: Document -gnatd.z switch. * sem_eval.adb (Why_Non_Static): Test -gnatd.z switch. From-SVN: r210689
Arnaud Charlet committed -
2014-05-21 Robert Dewar <dewar@adacore.com> * einfo.ads (Can_Never_Be_Null): Minor comment update. * sem_prag.adb (Check_Arg_Is_Task_Dispatching_Policy): Minor error message change. * s-arit64.adb ("abs"): New function. Use expression functions for the simple conversions and arithmetic. From-SVN: r210688
Robert Dewar committed -
* g++.dg/cpp0x/pr61038.C (operator "" _s): Use size_t. From-SVN: r210687
Andreas Schwab committed -
From-SVN: r210686
Bernd Schmidt committed -
* reload1.c (remove_init_insns, will_delete_init_insn_p): New static functions. (reload, calculate_needs_all_insns, reload_as_needed): Use them. From-SVN: r210685
Bernd Schmidt committed -
* config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few more places. From-SVN: r210684
Bernd Schmidt committed -
* cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if flag_reorder_blocks_and_partition. * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set. From-SVN: r210683
Bernd Schmidt committed -
gcc/ PR target/54236 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty constraints. (*addc_r_t): Add new insn_and_split. gcc/testsuite/ PR target/54236 * gcc.target/sh/pr54236-3.c: New. From-SVN: r210682
Oleg Endo committed -
re PR middle-end/61252 (Invalid code produced for omp simd reduction(min:var) where var is reference) PR middle-end/61252 * omp-low.c (handle_simd_reference): New function. (lower_rec_input_clauses): Use it. Defer adding reference initialization even for reduction without placeholder if in simd, handle it properly later on. * testsuite/libgomp.c++/simd-9.C: New test. From-SVN: r210679
Jakub Jelinek committed -
gcc/cp PR c/60189 * parser.c (cp_parser_postfix_expression): Move handling of cilk_sync from here to... (cp_parser_statement): ...here. Make sure only semicolon can go after Cilk_sync. gcc/testsuite PR c++/60189 * c-c++-common/cilk-plus/CK/invalid_sync.cÑ: New test. From-SVN: r210678
Igor Zamyatin committed -
PR tree-optimization/60899 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup; assume all static symbols will have definition wile parsing and check the do have definition later in compilation; check that variable referring symbol will be output before concluding that reference is safe; be conservative for referring local statics; be more precise about when comdat is output in other partition. g++.dg/ipa/devirt-11.C: Update template. From-SVN: r210676
Jan Hubicka committed -
PR bootstrap/60984 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED parameter. * ipa-inline.c (inline_to_all_callers): If callee was removed; return. (ipa_inline): Loop inline_to_all_callers until no more aliases are removed. From-SVN: r210674
Jan Hubicka committed -
ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping; set writeonly flag only for vars actually written to. * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping; set writeonly flag only for vars actually written to. From-SVN: r210672
Jan Hubicka committed -
PR libgcc/60166 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANFRAC_S) (_FP_NANFRAC_D, _FP_NANSIGN_Q): Set the quiet bit. From-SVN: r210668
Maciej W. Rozycki committed -
gcc/testsuite/ 2014-05-20 Edward Smith-Rowland <3dw4rd@verizon.net> PR C++/61038 * g++.dg/cpp0x/pr61038.C: New. libcpp/ 2014-05-20 Edward Smith-Rowland <3dw4rd@verizon.net> PR C++/61038 * macro.c (stringify_arg (cpp_reader *, macro_arg *)): Check for user-defined literal strings and user-defined literal chars to escape necessary characters. From-SVN: r210666
Edward Smith-Rowland committed -
From-SVN: r210665
GCC Administrator committed
-
- 20 May, 2014 19 commits
-
-
ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count and callee count to get clone count. 2014-05-20 Dehao Chen <dehao@google.com> * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count and callee count to get clone count. * tree-inline.c (expand_call_inline): Use callee count instead of bb count in copy_body. From-SVN: r210660
Dehao Chen committed -
testsuite_flags.in (cxxflags): Remove @CXXFLAGS@ since libstdc++.exp imports those flags via getenv. 2014-05-20 Cesar Philippidis <cesar@codesourcery.com> libstdc++-v3/ * scripts/testsuite_flags.in (cxxflags): Remove @CXXFLAGS@ since libstdc++.exp imports those flags via getenv. * testsuite/lib/libstdc++.exp (libstdc++_init): Ensure that CXXFLAGS contains a '-O' flag. From-SVN: r210659
Cesar Philippidis committed -
re PR middle-end/61243 (verify_flow_info failed: No region crossing jump at section boundary in bb 65) gcc/ PR rtl-optimization/61243 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P. From-SVN: r210658
Richard Sandiford committed -
From-SVN: r210657
Xinliang David Li committed -
* config/msp430/msp430.md (split): Don't allow subregs when splitting SImode adds. (andneghi): Fix subtraction logic. * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New. From-SVN: r210655
DJ Delorie committed -
* tree.h (DECL_ONE_ONLY): Return true only for externally visible symbols. * except.c (switch_to_exception_section, resolve_unique_section, get_named_text_section, default_function_rodata_section, align_variable, get_block_for_decl, default_section_type_flags): Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY. * symtab.c (symtab_add_to_same_comdat_group, symtab_make_decl_local, fixup_same_cpp_alias_visibility, symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class): Likewise. * cgraphclones.c (cgraph_create_virtual_clone): Likewise. * bb-reorder.c (pass_partition_blocks::gate): Likewise. * config/c6x/c6x.c (c6x_elf_unique_section): Likewise. (c6x_function_in_section_p): Likewise. * config/darwin.c (machopic_select_section): Likewise. * config/arm/arm.c (arm_function_in_section_p): Likewise. * config/mips/mips.c (mips_function_rodata_section): Likewise. * config/mep/mep.c (mep_select_section): LIkewise. * config/i386/i386.c (x86_64_elf_unique_section): Likewise. From-SVN: r210654
Jan Hubicka committed -
re PR c++/58753 (Brace-initializing a vector with a direct-initialization NSDMI doesn't work in a template) /cp 2014-05-20 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58753 PR c++/58930 PR c++/58704 * typeck2.c (digest_nsdmi_init): New. * parser.c (cp_parser_late_parse_one_default_arg): Use it. * init.c (get_nsdmi): Likewise. * cp-tree.h (digest_nsdmi_init): Declare. /testsuite 2014-05-20 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58753 PR c++/58930 PR c++/58704 * g++.dg/cpp0x/nsdmi-template11.C: New. * g++.dg/cpp0x/nsdmi-template12.C: Likewise. * g++.dg/cpp0x/nsdmi-template13.C: Likewise. From-SVN: r210653
Paolo Carlini committed -
typeck.c (get_member_function_from_ptrfunc): Don't try to look up a virtual function in a dummy object. * typeck.c (get_member_function_from_ptrfunc): Don't try to look up a virtual function in a dummy object. From-SVN: r210651
Jason Merrill committed -
2014-05-20 Alexey Merzlyakov <alexey.merzlyakov@samsung.com> PR libstdc++/61223 Revert: 2014-05-16 Alexey Merzlyakov <alexey.merzlyakov@samsung.com> PR libstdc++/60758 * libsupc++/eh_arm.cc (__cxa_end_cleanup): Change r4 to lr in save/restore and add unwind directives. From-SVN: r210650
Alexey Merzlyakov committed -
tree-ssa-dom.c (hashable_expr_equal_p): Also compare the EH region of calls to pure functions that can throw an exception. * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the EH region of calls to pure functions that can throw an exception. * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test. (copy_reference_ops_from_call): Also copy the EH region of the call if it can throw an exception. From-SVN: r210649
Eric Botcazou committed -
* config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define. (msp430_gimplify_va_arg_expr): New function. (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)). From-SVN: r210648
Nick Clifton committed -
/cp 2014-05-20 Paolo Carlini <paolo.carlini@oracle.com> PR c++/60373 * decl.c (duplicate_decls): Replace pair of warning_at with warning_at + inform. (maybe_commonize_var): Likewise. /testsuite 2014-05-20 Paolo Carlini <paolo.carlini@oracle.com> PR c++/60373 * g++.dg/cpp0x/Wattributes1.C: New. * g++.dg/ext/visibility/redecl1.C: Adjust. * g++.dg/ext/visibility/visibility-7.C: Likewise. From-SVN: r210646
Paolo Carlini committed -
gcc/cp/ PR bootstrap/61210 * pt.c (tsubst_copy, tsubst_omp_for_iterator, tsubst_expr) (tsubst_copy_and_build): Perform recursive substitutions in a deterministic order. From-SVN: r210645
Richard Sandiford committed -
simplify-rtx.c (simplify_binary_operation_1): Optimize case of nested VEC_SELECTs that are inverses of each other. [gcc] 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com> * simplify-rtx.c (simplify_binary_operation_1): Optimize case of nested VEC_SELECTs that are inverses of each other. [gcc/testsuite] 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com> * gcc.target/powerpc/vsxcopy.c: New test. From-SVN: r210644
Bill Schmidt committed -
2014-05-20 Richard Biener <rguenther@suse.de> * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating, (extract_and_process_scc_for_name): not here. (cond_dom_walker::before_dom_children): Only process stmts that end the BB in interesting ways. (run_scc_vn): Mark param uses as visited. From-SVN: r210643
Richard Biener committed -
/cp 2014-05-20 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58664 * typeck2.c (cxx_incomplete_type_inform): New. (cxx_incomplete_type_diagnostic): Use it. * decl.c (grokdeclarator): Check the element type of an incomplete array type; call the above. * cp-tree.h (cxx_incomplete_type_inform): Declare. /testsuite 2014-05-20 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58664 * g++.dg/cpp0x/nsdmi-union6.C: New. * g++.dg/parse/pr58664.C: Likewise. * g++.dg/cpp0x/nsdmi6.C: Tweak. * g++.dg/parse/crash31.C: Likewise. * g++.dg/template/error2.C: Likewise. * g++.dg/template/inherit8.C: Likewise. * g++.dg/template/offsetof2.C: Likewise. From-SVN: r210642
Paolo Carlini committed -
* config/arm/arm.md (arith_shiftsi): Do not predicate for arm_restrict_it. From-SVN: r210640
Kyrylo Tkachov committed -
contrib/ * dg-extract-results.py (parse_run): Handle warnings that are printed before a test harness is run. From-SVN: r210637
Richard Sandiford committed -
msp430.md (zero_extendpsisi2): Use + constraint on operand 0 in order to prevent confusion about the number of... * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on operand 0 in order to prevent confusion about the number of registers involved. From-SVN: r210636
Nick Clifton committed
-