1. 17 Dec, 2014 27 commits
  2. 16 Dec, 2014 13 commits
    • re PR c++/58650 ([c++11] ICE with invalid friend declaration) · 0007ff03
      /cp
      2014-12-16  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/58650
      	* parser.c (cp_parser_member_declaration): Fix error recovery for
      	initialized non-static data member declared friend.
      
      /testsuite
      2014-12-16  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/58650
      	* g++.dg/parse/friend12.C: New.
      
      From-SVN: r218801
      Paolo Carlini committed
    • compiler: Don't built hash/equality functions for thunk structs. · e0d475db
      They are never necessary, and they can cause problems when a
      thunk is used to pass an unexported type from a different
      package to a function defined in that package.  The resulting
      struct type may need to call the comparison routine from the
      other package, which will fail because the type is not
      exported.  This will be bug492 in the master testsuite.
      
      From-SVN: r218798
      Ian Lance Taylor committed
    • ipa-inline-analysis.c (will_be_nonconstant_predicate): Consider return values of… · 061ddf67
      ipa-inline-analysis.c (will_be_nonconstant_predicate): Consider return values of const calls as constants.
      
      	* ipa-inline-analysis.c (will_be_nonconstant_predicate): Consider
      	return values of const calls as constants.
      	(estimate_function_body_sizes): Expect calls to have false predicates.
      
      From-SVN: r218796
      Jan Hubicka committed
    • re PR target/54089 ([SH] Refactor shift patterns) · 8c7d662b
      gcc/testsuite/
      	PR target/54089
      	* gcc.target/sh/pr54089-1.c: Change optimization level from -O1 to -O2.
      
      From-SVN: r218795
      Oleg Endo committed
    • re PR go/61246 (gccgo: ICE in do_determine_types [GoSmith]) · ea9b01d4
      	PR go/61246
      compiler: Switch expression comparisons should be boolean typed.
      
      From-SVN: r218794
      Ian Lance Taylor committed
    • re PR target/53513 ([SH] Add support for fpchg insn and improve fenv support) · e49aee92
      gcc/testsuite/
      	PR target/53513
      	* gcc.target/sh/fpchg.c: Rename to ...
      	* gcc.target/sh/pr53513-1.c: ... this.  Adjust test case to work for
      	-m4a and -m4a-single.
      
      From-SVN: r218793
      Oleg Endo committed
    • re PR fortran/54687 (Use gcc option machinery for gfortran) · c61819ff
      2014-12-16  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/54687
              * gfortran.h (gfc_option_t): Remove flags which now
              have a Var().
              * lang.opt (flag-aggressive_function_elimination,
              flag-align_commons, flag-all_intrinsics,
              flag-allow_leading_underscore, flag-automatic, flag-backslash,
              flag-backtrace, flag-blas_matmul_limit, flag-cray_pointer,
              flag-dollar_ok, flag-dump_fortran_original,
              flag-dump_fortran_optimized, flag-external_blas, flag-f2c,
              flag-implicit_none, flag-max_array_constructor,
              flag-module_private, flag-pack_derived, flag-range_check,
              flag-recursive, flag-repack_arrays, flag-sign_zero,
              flag-underscoring): Add Var() and, where applicable, Enum().
              * options.c (gfc_init_options, gfc_post_options,
              gfc_handle_option): Update for *.opt changes.
              * arith.c: Update for flag-variable name changes.
              * array.c: Ditto.
              * cpp.c: Ditto.
              * decl.c: Ditto.
              * expr.c: Ditto.
              * f95-lang.c: Ditto.
              * frontend-passes.c: Ditto.
              * intrinsic.c: Ditto.
              * io.c: Ditto.
              * match.c: Ditto.
              * module.c: Ditto.
              * parse.c: Ditto.
              * primary.c: Ditto.
              * resolve.c: Ditto.
              * scanner.c: Ditto.
              * simplify.c: Ditto.
              * symbol.c: Ditto.
              * trans-array.c: Ditto.
              * trans-common.c: Ditto.
              * trans-decl.c: Ditto.
              * trans-expr.c: Ditto.
              * trans-intrinsic.c: Ditto.
              * trans-openmp.c: Ditto.
              * trans-types.c: Ditto.
      
      From-SVN: r218792
      Tobias Burnus committed
    • hwint.c (abs_hwi, absu_hwi): Move to ... · 931977d9
      
      	* hwint.c (abs_hwi, absu_hwi): Move to ...
      	* hwint.h (abs_hwi, absu_hwi): ... here; make inline.
      
      From-SVN: r218791
      Jan Hubicka committed
    • 2014-12-15 Tobias Burnus <burnus@net-b.de> · 203c7ebf
              * lang.opt (fsecond-underscore, frecord-marker=8,
              * frecord-marker=4,
              frealloc-lhs, freal-8-real-16, freal-8-real-10, freal-8-real-4,
              freal-4-real-16, freal-4-real-10, freal-4-real-8, fprotect-parens,
              fstack-arrays, fmax-stack-var-size=, fmax-subrecord-length=,
              ffrontend-optimize, ffree-line-length-, ffixed-line-length-,
              finteger-4-integer-8, fdefault-real-8, fdefault-integer-8,
              fdefault-double-8): Add Var() and Init().
              * gfortran.h (gfc_option_t): Remove moved flags.
              * options.c (gfc_init_options, gfc_handle_option): Ditto.
              (gfc_post_options): Update for name change.
              * decl.c (gfc_match_old_kind_spec, gfc_match_kind_spec): Handle
              flag-name change.
              * frontend-passes.c (gfc_run_passes): Ditto.
              * module.c (use_iso_fortran_env_module): Ditto.
              * primary.c (match_integer_constant, match_real_constant):
              * Ditto.
              * resolve.c (resolve_ordinary_assign): Ditto.
              * scanner.c (gfc_next_char_literal, load_line): Ditto.
              * trans-array.c (gfc_trans_allocate_array_storage,
              gfc_conv_resolve_dependencies, gfc_trans_auto_array_allocation,
              gfc_conv_ss_startstride): Ditto.
              * trans-common.c (gfc_sym_mangled_common_id): Ditto.
              * trans-decl.c (gfc_sym_mangled_function_id,
              create_main_function): Ditto.
              * trans-expr.c (gfc_conv_expr_op, gfc_conv_procedure_call,
              arrayfunc_assign_needs_temporary, gfc_trans_arrayfunc_assign,
              gfc_trans_assignment_1): Ditto.
              * trans-stmt.c (gfc_trans_allocate): Ditto.
              * trans-types.c (gfc_init_kinds): Ditto.
      
      From-SVN: r218790
      Tobias Burnus committed
    • re PR go/61264 (gccgo: ICE in __normal_iterator [GoSmith]) · 6a85804b
      	PR go/61264
      compiler: Fix copying behavior for empty composite literals.
      
      From-SVN: r218789
      Ian Lance Taylor committed
    • re PR go/61273 (gccgo: ICE in Unsafe_type_conversion_expression::do_get_backend [GoSmith]) · 8c54c36b
      	PR go/61273
      compiler: Send statements should contextually permit composite literals.
      
      From-SVN: r218788
      Ian Lance Taylor committed
    • re PR middle-end/64309 (if (1 & (1 << n)) not simplified to if (n == 0)) · 01ada710
      	PR middle-end/64309
      	* match.pd: Add ((1 << A) & 1) != 0 -> A == 0 and
      	((1 << A) & 1) == 0 -> A != 0.
      
      	* gcc.dg/pr64309.c: New test.
      
      From-SVN: r218787
      Marek Polacek committed