1. 11 Nov, 2018 12 commits
  2. 10 Nov, 2018 2 commits
    • combine: More make_more_copies · 16ac6fa5
      This makes make_more_copies do what its documentation says, that is,
      only make an intermediate pseudo if copying to a pseudo.
      
      This regressed generated code quality when we didn't keep the original
      notes that were on the copy, but since r265582 we do, and only allowing
      pseudos now is a win.  It also simplifies the code.
      
      
      	* combine.c (make_more_copies): Only make an intermediate copy if the
      	dest of a move is a pseudo.
      
      From-SVN: r266004
      Segher Boessenkool committed
    • Daily bump. · babe0c74
      From-SVN: r266001
      GCC Administrator committed
  3. 09 Nov, 2018 26 commits
    • re PR testsuite/87965 (Test cases c-c++-common/pr60226.c and gcc.dg/pr39323-1.c… · 397fd63d
      re PR testsuite/87965 (Test cases c-c++-common/pr60226.c and gcc.dg/pr39323-1.c fail starting with r265977)
      
      gcc/testsuite/ChangeLog:
      
      	PR testsuite/87965
      	* c-c++-common/pr60226.c: Adjust text of expected diagnostic.
      	* gcc.dg/pr39323-1.c: Ditto.
      
      From-SVN: r265998
      Martin Sebor committed
    • MAINTAINERS: add myself as or1k maintainer · 1dbff00c
      ChangeLog:
      
      yyyy-mm-dd  Stafford Horne  <shorne@gmail.com>
      
      	* MAINTAINERS (CPU Port Maintainers): Add myself for or1k.
      	(Write After Approval): Remove myself.
      
      From-SVN: r265996
      Stafford Horne committed
    • Walloca-16.c: Ignore conflicting types for built-in warnings. · 4476242b
      	* gcc.dg/Walloca-16.c: Ignore conflicting types for built-in
      	warnings.
      	* gcc.dg/Wrestrict-4.c: Ditto.
      	* gcc.dg/Wrestrict-5.c: Ditto.
      	* gcc.dg/pr83463.c: Ditto.
      	* gcc.dg/torture/pr55890-2.c: Ditto.
      	* gcc.dg/torture/pr55890-3.c: Ditto.
      	* gcc.dg/torture/pr71816.c: Ditto.
      
      From-SVN: r265995
      Paul Koning committed
    • re PR target/87221 (cannot build with -pie) · a0f503a0
      	PR target/87221
      	* config/netbsd-elf.h (NETBSD_STARTFILE_SPEC): Use crtbeginS.o for PIE.
      	(NETBSD_ENDFILE_SPEC): Use crtendS.o for PIE.
      
      From-SVN: r265994
      Maya Rashish committed
    • re PR driver/41179 (Documentation for "-fno-toplevel-reorder" is confusing (and wrong)) · e602e1f7
      2018-11-09  Sandra Loosemore  <sandra@codesourcery.com>
      
      	PR driver/41179
      	PR middle-end/65703
      
      	gcc/
      	* doc/invoke.texi (Optimize Options): Clarify default behavior
      	for -fno-toplevel-reorder, -fno-defer-pop, and -fno-branch-count-reg.
      
      From-SVN: r265993
      Sandra Loosemore committed
    • re PR tree-optimization/87940 (FAIL: gcc.dg/warn-strlen-no-nul.c) · ab386758
      2018-11-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
      
              PR tree-optimization/87940
              * expr.c (string_constant): Don't strip NOPS in subexpressions.
              Fold PLUS_EXPR correctly.
      
      From-SVN: r265992
      Bernd Edlinger committed
    • S/390: Allow relative addressing of literal pool entries · 340e0dd6
      r265490 allowed the compiler to choose in a more flexible way whether to
      use load or load-address-relative-long (LARL) instruction.  When it
      chose LARL for literal pool references, the latter ones were rewritten
      by pass_s390_early_mach to use UNSPEC_LTREF, which assumes base register
      usage, which in turn is not compatible with LARL.  The end result was an
      ICE because of unrecognizable insn.
      
      UNSPEC_LTREF and friends are necessary in order to communicate the
      dependency on the base register to pass_sched2.  When relative
      addressing is used, no base register is necessary, so in such cases the
      rewrite must be avoided.
      
      gcc/ChangeLog:
      
      2018-11-09  Ilya Leoshkevich  <iii@linux.ibm.com>
      
      	PR target/87762
      	* config/s390/s390.c (s390_safe_relative_long_p): New function.
      	(annotate_constant_pool_refs): Skip insns which support
      	relative addressing.
      	(annotate_constant_pool_refs_1): New helper function.
      	(find_constant_pool_ref): Skip insns which support relative
      	addression.
      	(find_constant_pool_ref_1): New helper function.
      	(replace_constant_pool_ref): Skip insns which support
      	relative addressing.
      	(replace_constant_pool_ref_1): New helper function.
      	(s390_mainpool_start): Adapt to the new signature.
      	(s390_mainpool_finish): Likewise.
      	(s390_chunkify_start): Likewise.
      	(s390_chunkify_finish): Likewise.
      	(pass_s390_early_mach::execute): Likewise.
      	(s390_prologue_plus_offset): Likewise.
      	(s390_emit_prologue): Likewise.
      	(s390_emit_epilogue): Likewise.
      
      From-SVN: r265991
      Ilya Leoshkevich committed
    • c-parser.c (c_parser_omp_clause_final): Use c_parser_expr_no_commas... · 81a227c6
      c/
      	* c-parser.c (c_parser_omp_clause_final): Use
      	c_parser_expr_no_commas, convert_lvalue_to_rvalue,
      	c_objc_common_truthvalue_conversion, c_fully_fold and parentheses
      	parsing instead of c_parser_paren_condition.
      	(c_parser_omp_clause_if): Use c_parser_expr_no_commas,
      	convert_lvalue_to_rvalue, c_objc_common_truthvalue_conversion and
      	c_fully_fold instead of c_parser_condition.
      	(c_parser_omp_clause_num_threads, c_parser_omp_clause_num_tasks,
      	c_parser_omp_clause_grainsize, c_parser_omp_clause_priority,
      	c_parser_omp_clause_hint, c_parser_omp_clause_num_teams,
      	c_parser_omp_clause_thread_limit, c_parser_omp_clause_linear): Use
      	c_parser_expr_no_commas instead of c_parser_expression.
      cp/
      	* parser.c (cp_parser_omp_clause_final, cp_parser_omp_clause_if): Use
      	cp_parser_assignment_expression instead of cp_parser_condition.
      	(cp_parser_omp_clause_num_threads, cp_parser_omp_clause_num_tasks,
      	cp_parser_omp_clause_grainsize, cp_parser_omp_clause_priority,
      	cp_parser_omp_clause_num_teams, cp_parser_omp_clause_thread_limit,
      	cp_parser_omp_clause_linear, cp_parser_omp_clause_device): Use
      	cp_parser_assignment_expression instead of cp_parser_expression.
      	(cp_parser_omp_clause_hint): Likewise.  Formatting fix.
      testsuite/
      	* c-c++-common/gomp/clauses-5.c: New test.
      
      From-SVN: r265990
      Jakub Jelinek committed
    • c-parser.c (c_parser_omp_clause_reduction): Call sorry_at on reduction clause with inscan modifier. · 98c91c56
      	* c-parser.c (c_parser_omp_clause_reduction): Call sorry_at on
      	reduction clause with inscan modifier.
      
      	* parser.c (cp_parser_omp_clause_reduction): Call sorry_at on
      	reduction clause with inscan modifier.
      
      From-SVN: r265989
      Jakub Jelinek committed
    • c-parser.c (c_parser_omp_requires): Call sorry_at on requires clauses other than… · 3179ebae
      c-parser.c (c_parser_omp_requires): Call sorry_at on requires clauses other than atomic_default_mem_order.
      
      	* c-parser.c (c_parser_omp_requires): Call sorry_at on requires
      	clauses other than atomic_default_mem_order.
      
      	* parser.c (cp_parser_omp_requires): Call sorry_at on requires
      	clauses other than atomic_default_mem_order.
      
      	* c-c++-common/gomp/requires-1.c: Prune not supported yet messages.
      	* c-c++-common/gomp/requires-2.c: Likewise.
      	* c-c++-common/gomp/requires-4.c: Likewise.
      
      From-SVN: r265988
      Jakub Jelinek committed
    • gimplify.c (gimplify_scan_omp_clauses): Call sorry_at for valid but unsupported… · 4302dd3d
      gimplify.c (gimplify_scan_omp_clauses): Call sorry_at for valid but unsupported lastprivate with conditional modifier.
      
      	* gimplify.c (gimplify_scan_omp_clauses): Call sorry_at for valid
      	but unsupported lastprivate with conditional modifier.
      
      	* c-c++-common/gomp/lastprivate-conditional-1.c: New test.
      	* c-c++-common/gomp/lastprivate-conditional-2.c: New test.
      
      From-SVN: r265987
      Jakub Jelinek committed
    • mips.c (mips_loongson_ext2_prefetch_cookie): Handle unused argument better. · c4c44802
      	* config/mips/mips.c (mips_loongson_ext2_prefetch_cookie): Handle
      	unused argument better.  Add gcc_unreachable to silence warning.
      
      From-SVN: r265986
      Jeff Law committed
    • affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H. · 9666c522
      	* affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
      	(gomp_display_affinity): Use __builtin_choose_expr to handle
      	properly handle argument having integral, or pointer or some other
      	type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
      	with uint64_t type instead of %llx and unsigned long long.
      
      From-SVN: r265985
      Jakub Jelinek committed
    • PR libstdc++/87787 fix UBsan error in std::vector · 213fd717
      	PR libstdc++/87787
      	* include/bits/stl_uninitialized.h (__relocate_a_1): Do not call
      	memmove when there's nothing to copy (and pointers could be null).
      
      From-SVN: r265984
      Jonathan Wakely committed
    • Fix whitespace in ChangeLog · fcc49972
      From-SVN: r265983
      Jonathan Wakely committed
    • gcc.dg/torture/stackalign/builtin-apply-2.c: Skip on v850. · fb9289be
      From-SVN: r265982
      Jeff Law committed
    • cmd/cgo: fix typo in gccgo name mangling recipe · 0d26cdf1
          
          The code to implement new-style gccgo name mangling had a recipe that
          didn't quite match the one in the compiler (incorrect handling for
          '.'). This showed up as a failure in the gotools cgo test if the
          directory containing the test run included a "." character.
          
          Reviewed-on: https://go-review.googlesource.com/c/147917
      
      From-SVN: r265981
      Ian Lance Taylor committed
    • PR middle-end/81824 - Warn for missing attributes with function aliases · 79a2c428
      gcc/c-family/ChangeLog:
      
      	PR middle-end/81824
      	* c-attribs.c (handle_copy_attribute): New function.
      
      gcc/cp/ChangeLog:
      
      	PR middle-end/81824
      	* pt.c (warn_spec_missing_attributes): Move code to attribs.c.
      	Call decls_mismatched_attributes.
      
      gcc/ChangeLog:
      
      	PR middle-end/81824
      	* attribs.c (has_attribute): New helper function.
      	(decls_mismatched_attributes, maybe_diag_alias_attributes): Same.
      	* attribs.h (decls_mismatched_attributes): Declare.
      	* cgraphunit.c (handle_alias_pairs): Call maybe_diag_alias_attributes.
      	(maybe_diag_incompatible_alias): Use OPT_Wattribute_alias_.
      	* common.opt (-Wattribute-alias): Take an argument.
      	(-Wno-attribute-alias): New option.
      	* doc/extend.texi (Common Function Attributes): Document copy.
      	(Common Variable Attributes): Same.
      	* doc/invoke.texi (-Wmissing-attributes): Document enhancement.
      	(-Wattribute-alias): Document new option argument.
      
      gcc/testsuite/ChangeLog:
      
      	PR middle-end/81824
      	* gcc.dg/Wattribute-alias.c: New test.
      	* gcc.dg/Wmissing-attributes.c: New test.
      	* gcc.dg/attr-copy.c: New test.
      	* gcc.dg/attr-copy-2.c: New test.
      	* gcc.dg/attr-copy-3.c: New test.
      	* gcc.dg/attr-copy-4.c: New test.
      
      From-SVN: r265980
      Martin Sebor committed
    • re PR fortran/78351 (comma not terminating READ of formatted input field - ok in… · 900dab13
      re PR fortran/78351 (comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419?)
      
      2018-11-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libfortran/78351
      	* io/transfer.c (read_sf_internal): Delete leftover
      	debug code.
      
      From-SVN: r265979
      Jerry DeLisle committed
    • arm - minor cleanups for CPU alias support · e82cb042
      A couple of very minor issues with the new support for CPU
      aliases.
      
      	* config/arm/parsecpu.awk (/alias/): Tighten invisible alias
      	matching criteria.  Remove unused array initializer.
      
      From-SVN: r265978
      Richard Earnshaw committed
    • PR c/87795 - Excessive alignment permitted for functions and labels · 4c7bd361
      gcc/c-family/ChangeLog:
      
      	PR c/87795
      	* c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT.
      
      gcc/testsuite/ChangeLog:
      
      	PR c/87795
      	* gcc.dg/attr-aligned.c: New test.
      
      From-SVN: r265977
      Martin Sebor committed
    • xmmintrin.h (_mm_cvtss_si32): Fix incorrect constraints by introducing a new temporary. · 32999d87
      2018-11-09  Bill Schmidt  <wschmidt@linux.ibm.com>
      	    Jinsong Ji  <jji@us.ibm.com>
      
      	* config/rs6000/xmmintrin.h (_mm_cvtss_si32): Fix incorrect
      	constraints by introducing a new temporary.
      	(_mm_cvtss_si64): Likewise.
      
      
      Co-Authored-By: Jinsong Ji <jji@us.ibm.com>
      
      From-SVN: r265975
      Bill Schmidt committed
    • syscall: change RLIM_INFINITY from 0xffffffffffffffff to -1 · 71caffb7
          
          For compatibility with the gc toolchain's syscall package.
          
          Fixes golang/go#28665
          
          Reviewed-on: https://go-review.googlesource.com/c/148697
      
      From-SVN: r265974
      Ian Lance Taylor committed
    • Update ChangeLog entry · 0b58e8b8
      From-SVN: r265971
      Peter Bergner committed
    • Come up with the flag -fipa-stack-alignment. · 47b840eb
      2018-11-09  Martin Liska  <mliska@suse.cz>
      
      	* common.opt: Add -fipa-stack-alignment flag.
      	* doc/invoke.texi: Document it.
      	* final.c (rest_of_clean_state): Guard stack
      	shrinking with flag.
      2018-11-09  Martin Liska  <mliska@suse.cz>
      
      	* gcc.target/i386/ipa-stack-alignment.c: New test.
      
      From-SVN: r265970
      Martin Liska committed
    • Come up with -fipa-reference-addressable flag. · 2e14744f
      2018-11-09  Martin Liska  <mliska@suse.cz>
      
      	* cgraph.h (ipa_discover_readonly_nonaddressable_vars): Rename
      	to ...
      	(ipa_discover_variable_flags): ... this.
      	* common.opt: Come up with new flag -fipa-reference-addressable.
      	* doc/invoke.texi: Document it.
      	* ipa-reference.c (propagate): Call the renamed fn.
      	* ipa-visibility.c (whole_program_function_and_variable_visibility):
      	Likewise.
      	* ipa.c (ipa_discover_readonly_nonaddressable_vars): Renamed to
      	...
      	(ipa_discover_variable_flags): ... this.  Discover
      	non-addressable variables only with the newly added flag.
      	* opts.c: Enable the newly added flag with -O1 and higher
      	optimization level.
      2018-11-09  Martin Liska  <mliska@suse.cz>
      
      	* gcc.dg/tree-ssa/writeonly-2.c: New test.
      
      From-SVN: r265969
      Martin Liska committed