1. 27 Aug, 2013 2 commits
  2. 26 Aug, 2013 22 commits
  3. 25 Aug, 2013 8 commits
    • re PR fortran/58146 (Array slice bounds checking) · 8cd61b3c
      2013-08-26  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
      	PR fortran/58146
      	* array.c (gfc_ref_dimen_size):  If possible, use
      	gfc_dep_difference to calculate array refrence
      	sizes.  Fall back to integer code otherwise.
      	* dependency.c (discard_nops).  Move up.
      	Also discarde widening integer conversions.
      	(gfc_dep_compare_expr):  Use discard_nops.
      
      2013-08-26  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
      	PR fortran/58146
      	* gfortran.dg/bounds_check_18.f90:  New test.
      
      From-SVN: r201981
      Thomas Koenig committed
    • c-pretty-print.h (c_pretty_printer::primary_expression): Now a virtua member function. · 7ecc2600
      c-family/
      	* c-pretty-print.h (c_pretty_printer::primary_expression): Now a
      	virtua member function.
      	(pp_primary_expression): Adjust.
      	(pp_c_primary_expression): Remove.
      	* c-pretty-print.c (c_pretty_printer::primary_expression): Rename
      	from pp_c_primary_expression.  Adjust.
      	(pp_c_initializer_list): Use pp_primary_expression.
      	(c_pretty_printer::c_pretty_printer): Do not assign to
      	primary_expression.
      
      cp/
      	* cxx-pretty-print.h (cxx_pretty_printer::primary_expression): Now
      	an overrider of c_pretty_printer::primary_expression.
      	* cxx-pretty-print.c (cxx_pretty_printer::primary_expression):
      	Rename from pp_cxx_primary_expression.  Adjust.
      	(pp_cxx_postfix_expression): Use pp_primary_expression.
      	(pp_cxx_ctor_initializer): Likewise.
      	(cxx_pretty_printer::cxx_pretty_printer): Do not assign to
      	primary_expression.
      
      From-SVN: r201978
      Gabriel Dos Reis committed
    • cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output. · d5c3d3ef
      	* cgraph.c (cgraph_turn_edge_to_speculative):
      	Fix debug output.
      
      From-SVN: r201977
      Jan Hubicka committed
    • * g++.dg/ipa/devirt-14.C: Fix typo. · 4b0809ef
      From-SVN: r201976
      Jan Hubicka committed
    • tree.h (TYPE_FINAL_P, [...]): New macros. · 5b1e7435
      
      	* tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
      	(tree_decl_with_vis): Add FINAL field.
      
      	* cp-tree.h (struct lang_type_class): Free is_final bit.
      	(CLASSTYPE_FINAL): Define using TYPE_FINAL_P.
      	(DECL_FINAL_P): Remove.
      	* pt.c (instantiate_class_template_1): Guard that CLASSTYPE_FINAL
      	is called on CLASS_TYPE_P.
      
      From-SVN: r201975
      Jan Hubicka committed
    • c-pretty-print.h (c_pretty_printer::translate_string): Declare. · 0691175f
      c-family/
      	* c-pretty-print.h (c_pretty_printer::translate_string): Declare.
      	* c-pretty-print.c (M_): Remove.
      	(c_pretty_printer::translate_string): Define.
      	(pp_c_type_specifier): Use it.
      	(pp_c_primary_expression): Likewise.
      	(pp_c_expression): Likewise.
      
      cp/
      	* cxx-pretty-print.c (M_): Remove.
      	(pp_cxx_unqualified_id): Use translate_string instead of M_.
      	(pp_cxx_canonical_template_parameter): Likewise.
      
      From-SVN: r201974
      Gabriel Dos Reis committed
    • c-pretty-print.h (c_pretty_printer::id_expression): Now a virtual function. · 66dfe4c4
      c-family/
      	* c-pretty-print.h (c_pretty_printer::id_expression): Now a
      	virtual function.
      	(pp_c_id_expression): Remove.
      	(pp_id_expression): Adjust.
      	* c-pretty-print.c (c_pretty_printer::id_expression): Rename from
      	pp_c_id_expression.  Adjust.
      	(pp_c_postfix_expression): Use pp_id_expression.
      	(c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
      
      cp/
      	* cxx-pretty-print.h (cxx_pretty_printer::id_expression): Declare.
      	* cxx-pretty-print.c (cxx_pretty_printer::id_expression): Rename
      	from pp_cxx_id_expression.  Adjust.
      	(pp_cxx_userdef_literal): Use pp_id_expression.
      	(pp_cxx_primary_expression): Likewise.
      	(pp_cxx_direct_declarator): Likewise.
      	(cxx_pretty_printer::cxx_pretty_printer): Do not assign to
      	id_expression.
      
      From-SVN: r201973
      Gabriel Dos Reis committed
    • Daily bump. · 84deafd2
      From-SVN: r201972
      GCC Administrator committed
  4. 24 Aug, 2013 3 commits
  5. 23 Aug, 2013 5 commits
    • diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer. · 025311c4
      	* diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
      	* gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
      	* pretty-print.c (pp_formatted_text_data): Likewise.
      	(pp_write_text_to_stream): Likewise.
      	(pp_write_text_as_dot_label_to_stream): Likewise.
      	(pp_append_r): Likewise.
      	(pp_format): Likewise.
      	(pp_flush): Likewise.
      	(pp_clear_output_area): Likewise.
      	(pp_append_text): Likewise.
      	(pp_formatted_text): Likewise.
      	(pp_remaining_character_count_for_line): Likewise.
      	(pp_newline): Likewise.
      	(pp_character): Likewise.
      	(output_buffer::~output_buffer): Define.
      	(pretty_printer::~pretty_printer): Destruct output buffer.
      	* pretty-print.h (output_buffer::~output_buffer): Declare.
      	(pretty_printer::~pretty_printer): Declare virtual.
      
      c/
      	* c-objc-common.c (c_tree_printer): Document the nature of the cast.
      	(c_initialize_diagnostics): Call a destructor for the early printer.
      
      cp/
      	* cp-objcp-common.c (cxx_initialize_diagnostics): Call a
      	destructor for the early printer.
      	* error.c (type_to_string): Use pp_buffer.
      
      From-SVN: r201956
      Gabriel Dos Reis committed
    • re PR other/57324 (Undefined behavior issues found with clang's -fsanitize=undefined) · 0cadbfaa
      2013-08-24  Marc Glisse  <marc.glisse@inria.fr>
      
      	PR other/57324
      	* hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
      	HOST_WIDE_INT_M1U): New macros.
      	* fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
      	fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
      	unsigned -1 for lshift.
      	* cse.c (cse_insn): Likewise.
      	* double-int.c (rshift_double, lshift_double): Likewise.
      	* builtins.c (fold_builtin_bitop): Likewise.
      	* combine.c (force_to_mode): Likewise.
      	* tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
      	* simplify-rtx.c (simplify_const_unary_operation,
      	simplify_const_binary_operation): Likewise.
      	* tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
      	check_va_list_escapes): Likewise.
      	* rtlanal.c (nonzero_bits1): Likewise.
      	* expmed.c (expand_smod_pow2): Likewise.
      	* tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
      
      From-SVN: r201953
      Marc Glisse committed
    • compiler: don't export embedded builtins. · 4500f676
      The panic in test/fixedbugs/bug461.go was caused by the fact that
      reflect expects unexported fields in a struct to have a valid
      package path. If a struct field is an embedded built-in type, it is
      now given the package name of the currently compiling package, so it
      remains unexported for purposes of reflect.
      
      Fixed Issue 25.
      
      From-SVN: r201951
      Ian Lance Taylor committed
    • cgraph.c (cgraph_turn_edge_to_speculative): Mark target node as having address taken. · 009e5353
      
      
      	* cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
      	as having address taken.
      
      From-SVN: r201948
      Jan Hubicka committed
    • re PR fortran/57798 (Incorrect handling of sum over first dimension of a product… · 1f65468a
      re PR fortran/57798 (Incorrect handling of sum over first dimension of a product of automatic arrays)
      
      fortran/
      	PR fortran/57798
      	* trans-array.c (gfc_conv_ss_startstride, set_loop_bounds,
      	gfc_set_delta): Generate preliminary code before the outermost loop.
      
      testsuite/
      	PR fortran/57798
      	* gfortran.dg/inline_sum_5.f90: New.
      
      From-SVN: r201947
      Mikael Morin committed