1. 29 Mar, 2018 15 commits
  2. 28 Mar, 2018 17 commits
    • revert: rs6000-builtin.def (BU_FP_1MISC_1): Add define macro. · 604e36ed
      gcc/ChangeLog:
      
      2018-03-20 Carl Love  <cel@us.ibm.com>
      
      	Revert
      	2017-09-27  Carl Love  <cel@us.ibm.com>
      
      	* config/rs6000/rs6000-builtin.def (BU_FP_1MISC_1): Add define macro.
      	(FCTID, FCTIW): Add BU_FP_MISC_1 macro expansion for builtins.
      	* config/rs6000/rs6000.md (lrintsfsi2): Add define_insn for the
      	fctiw instruction.
      
      gcc/testsuite/ChangeLog:
      
      2018-03-20  Carl Love  <cel@us.ibm.com>
      
      	Revert
      	2017-09-27  Carl Love  <cel@us.ibm.com>
      
      	* gcc.target/powerpc/builtin-fctid-fctiw-runnable.c: New test file
      	for the __builtin_fctid and __builtin_fctiw.
      
      From-SVN: r258942
      Carl Love committed
    • xmmintrin.h (_mm_max_pi16): Use __vector __bool instead of __vector bool. · 69c94135
      2018-03-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
      
      	* config/rs6000/xmmintrin.h (_mm_max_pi16): Use __vector __bool
      	instead of __vector bool.
      	(_mm_max_pu8): Likewise.
      	(_mm_min_pi16): Likewise.
      
      From-SVN: r258936
      Bill Schmidt committed
    • re PR fortran/69497 (ICE in gfc_free_namespace, at fortran/symbol.c:3701) · 9b0588e9
      
      	PR fortran/69497
      	* symbol.c (gfc_symbol_done_2): Start freeing namespaces
      	from the root.
      	(gfc_free_namespace): Restore assert (revert r258839).
      
      From-SVN: r258935
      Mikael Morin committed
    • Fix typo in last ChangeLog entry · e8b8462d
      From-SVN: r258934
      Peter Bergner committed
    • re PR target/84912 (__builtin_divde* produce Internal Compiler Error when compiled -m32) · 1429da42
      gcc/
      	PR target/84912
      	* config/rs6000/rs6000-builtin.def (DIVWEO): Delete macro expansion.
      	(DIVWEUO): Likewise.
      	(DIVDEO): Likewise.
      	(DIVDEUO): Likewise.
      	* config/rs6000/rs6000.c (builtin_function_type): Remove support for
      	DIVWEUO and DIVDEUO.
      	* config/rs6000/rs6000.md (UNSPEC_DIVEO, UNSPEC_DIVEUO): Delete unspecs.
      	(UNSPEC_DIV_EXTEND): Remove deleted unspecs.
      	(div_extend): Likewise.
      	* doc/extend.texi (__builtin_divweo): Remove documention for deleted
      	builtin function.
      	(__builtin_divweuo): Likewise.
      	(__builtin_divdeo): Likewise.
      	(__builtin_divdeuo): Likewise.
      
      gcc/testsuite/
      	PR target/84912
      	* gcc.target/powerpc/extend-divide-1.c (div_weo): Remove test for
      	deleted builtin function.
      	(div_weuo): Likewise.
      	* gcc.target/powerpc/extend-divide-2.c (div_deo): Likewise.
      	(div_deuo): Likewise.
      
      From-SVN: r258933
      Peter Bergner committed
    • re PR c++/85028 (ICE on invalid C++ code: in tsubst_default_argument, at cp/pt.c:12340) · 427d369c
      /cp
      2018-03-28  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/85028
      	* pt.c (tsubst_default_argument): Early return if the type of the
      	parameter is erroneous.
      
      /testsuite
      2018-03-28  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/85028
      	* g++.dg/other/default13.C: New.
      
      From-SVN: r258932
      Paolo Carlini committed
    • re PR target/85095 (worse code generated) · 0a5c6d78
      	PR target/85095
      	* config/i386/i386.md (*add<mode>3_carry_0, *addsi3_carry_zext_0,
      	*sub<mode>3_carry_0, *subsi3_carry_zext_0): New patterns.
      
      	* gcc.target/i386/pr85095-1.c: New test.
      	* gcc.target/i386/pr85095-2.c: New test.
      	* gcc.c-torture/execute/pr85095.c: New test.
      
      From-SVN: r258931
      Jakub Jelinek committed
    • re PR middle-end/82004 (SPEC CPU2017 628.pop2_s miscompare) · 30a2c10e
      	PR tree-optimization/82004
      	* gimple-match-head.c (optimize_pow_to_exp): New function.
      	* match.pd (pow(C,x) -> exp(log(C)*x)): Wrap with #if GIMPLE.
      	Don't fold to exp if optimize_pow_to_exp is false.
      
      	* gcc.dg/pr82004.c: New test.
      
      From-SVN: r258930
      Jakub Jelinek committed
    • Fix typos (PR other/84819). · cefc0906
      2018-03-28  Martin Liska  <mliska@suse.cz>
      
      	PR other/84819
      	* calls.c (initialize_argument_information): Fix trailing space.
      	* common.opt: Fix typo and provide better explanation for
      	-fsanitize-coverage option.
      	* config/i386/i386.opt: Fix typo.
      
      From-SVN: r258925
      Martin Liska committed
    • Fix wrong use-after-scope sanitization for omp variable (PR sanitizer/85081). · d838c2d5
      2018-03-28  Jakub Jelinek  <jakub@redhat.com>
      	    Martin Liska  <mliska@suse.cz>
      
      	PR sanitizer/85081
      	* gimplify.c (asan_poison_variable): Don't do the check for
      	gimplify_omp_ctxp here.
      	(gimplify_decl_expr): Do it here.
      	(gimplify_target_expr): Likewise.
      2018-03-28  Jakub Jelinek  <jakub@redhat.com>
      	    Martin Liska  <mliska@suse.cz>
      
      	PR sanitizer/85081
      	* g++.dg/asan/pr85081.C: New test.
      
      Co-Authored-By: Martin Liska <mliska@suse.cz>
      
      From-SVN: r258924
      Jakub Jelinek committed
    • Do not call chkp_type_bounds_count if MPX is not enabled (PR target/84988). · a48b4234
      2018-03-28  Martin Liska  <mliska@suse.cz>
      
      	PR target/84988
      	* config/i386/i386.c (ix86_function_arg_advance): Do not call
      	chkp_type_bounds_count if MPX is not enabled.
      
      From-SVN: r258923
      Martin Liska committed
    • [NDS32] Adjust BRANCH_COST to prevent too much jump when compile with -Os. · 15c193e2
      gcc/
      	* config/nds32/nds32.h (BRANCH_COST): Adjust cost.
      
      From-SVN: r258921
      Chung-Ju Wu committed
    • gfortran.h (gfc_dt): Rename default_exp field to dec_ext. · 7ee4f6f3
      	* gfortran.h (gfc_dt): Rename default_exp field to dec_ext.
      	* ioparm.def (IOPARM_dt_default_exp): Rename to ...
      	(IOPARM_dt_dec_ext): ... this.
      	* trans-io.c (build_dt): Adjust for default_exp renaming to
      	dec_ext and IOPARM_dt_default_exp renaming to IOPARM_dt_dec_ext.
      	* io.c (match_io): Likewise.
      
      	* io/io.h (IOPARM_DT_DEFAULT_EXP): Rename to ...
      	(IOPARM_DT_DEC_EXT): ... this.
      	* io/list_read.c (parse_real): Adjust for IOPARM_DT_DEFAULT_EXP
      	renaming to IOPARM_DT_DEC_EXT.
      	(read_real): Likewise.
      	* io/read.c (read_f): Likewise.
      
      From-SVN: r258920
      Jakub Jelinek committed
    • [PR c++/84789] adjust testcase for -fconcepts · 5b1a758d
      When compiling with -fconcepts,
      cp_parser_template_declaration_after_export calls
      cp_parser_template_introduction and that preparses qualified-ids not
      preceded by typename in such a way that, when we get to
      cp_parser_parse_and_diagnose_invalid_type_name and then
      cp_parser_diagnose_invalid_type_name, the nested name specifier no
      longer carries the previous template-dependent context, so we don't
      stand a chance to suggest the use of 'typename' any more.  Thus,
      tolerate in the testcase the poorer error messages we get.
      
      for  gcc/testsuite/ChangeLog
      
      	PR c++/84789
      	* g++.dg/template/pr84789.C: Adjust for testing with
      	-fconcepts too.
      
      From-SVN: r258915
      Alexandre Oliva committed
    • [PR c++/84973] don't defer output of uninstantiated templates · 977bc3ee
      When an anon struct gets a name through a typedef, we reset its
      linkage and that of its members.  Member functions may get vague
      linkage, which schedules them for deferred output, but we don't want
      to add them to the queue if they're uninstantiated templates,
      e.g. because the enclosing function is a template.  They will be added
      as needed when the enclosing template is instantiated.
      
      
      for  gcc/cp/ChangeLog
      
      	PR c++/84973
      	* decl2.c (note_vague_linkage_fn): Don't defer uninstantiated
      	templates.
      
      for  gcc/testsuite/ChangeLog
      
      	PR c++/84973
      	* g++.dg/template/pr84973.C: New.
      	* g++.dg/template/pr84973-2.C: New.
      	* g++.dg/template/pr84973-3.C: New.
      
      From-SVN: r258914
      Alexandre Oliva committed
    • [PR c++/84968] reject stmt-exprs in noexcept constexprs · 04acc378
      We reject extended statement-expressions in template parameters, so we
      might as well reject them in constant expressions used in noexcept
      specifications.
      
      for  gcc/cp/ChangeLog
      
      	PR c++/84968
      	* tree.c (strip_typedefs_expr): Reject STATEMENT_LISTs.
      
      for  gcc/testsuite/ChangeLog
      
      	PR c++/84968
      	* g++.dg/eh/pr84968.C: New.
      
      From-SVN: r258913
      Alexandre Oliva committed
    • Daily bump. · d80bb039
      From-SVN: r258912
      GCC Administrator committed
  3. 27 Mar, 2018 8 commits