1. 21 May, 2014 21 commits
    • config.gcc (*-*-dragonfly*): New target. · dbed5a9b
      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
    • [multiple changes] · 17cf9038
      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
    • tree.def (VOID_CST): New. · 632f2871
      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
    • [multiple changes] · 31382249
      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
    • [multiple changes] · 6413dd81
      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
    • [multiple changes] · 2735b82d
      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
    • einfo.ads (Can_Never_Be_Null): Minor comment update. · 149604e4
      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
    • Amend: yes · c1c84c5e
      * g++.dg/cpp0x/pr61038.C (operator "" _s): Use size_t.
      
      From-SVN: r210687
      Andreas Schwab committed
    • Fix misapplied ChangeLog patch. · bffe67e7
      From-SVN: r210686
      Bernd Schmidt committed
    • Improve reload code generation by ignoring init insns for reloads. · 41203287
          	* 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
    • Make the Blackfin port build again. · 0836b77f
      	* config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
      	more places.
      
      From-SVN: r210684
      Bernd Schmidt committed
    • Stop the cfglayout code from failing an assert when called from hw-doloop. · 8a9e6b45
      	* 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
    • re PR target/54236 ([SH] Improve addc and subc insn utilization) · c4e5de1b
      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)… · decaaec8
      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
    • re PR c++/60189 (ICE with invalid use of _Cilk_sync) · c3d96270
      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
    • re PR tree-optimization/60899 (undef reference generated with -fdevirtualize-speculatively) · 3aaf0529
      
      	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
    • re PR bootstrap/60984 (AIX: gcc-4.9.0 bootstrap fails in stage-2) · 1bbb87c4
      
      	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… · d5ce4663
      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
    • re PR libgcc/60166 (ARM default NAN encoding violates EABI) · 1ec380e5
      	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
    • re PR c++/61038 (g++ -E is unusable with UDL strings) · 49039169
      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
    • Daily bump. · 956dd093
      From-SVN: r210665
      GCC Administrator committed
  2. 20 May, 2014 19 commits