Commit Graph

143421 Commits

Author SHA1 Message Date
Mike Frysinger 66f49f07d8 libiberty: {count,dup,write}argv: constify argv input slightly
Would be more useful if we could use "const char * const *", but there's
a long standing bug where gcc warns about incompatible pointers when you
try to pass in "char **".  We can at least constify the array itself as
gcc will not warn in that case.

From-SVN: r232089
2016-01-05 20:23:30 +00:00
H.J. Lu acf93f1edc Use vector_operand on SSE with 16b memory operand
Add vector_operand, which is vector_memory_operand or register_operand,
and use it, instead of nonimmediate_operand, in SSE patterns with 16-byte
memory operand.

gcc/

	PR target/68991
	* config/i386/i386.c (ix86_expand_vector_logical_operator):
	Replace nonimmediate_operand with vector_operand.
	* config/i386/predicates.md (vector_operand): New predicate.
	(general_vector_operand): Replace nonimmediate_operand with
	vector_operand.
	* config/i386/sse.md: Replace nonimmediate_operand with
	vector_operand and m constraint with Bm constraint on SSE
	patterns with 16-byte memory operand.
	* config/i386/subst.md (round_nimm_predicate): Replace
	nonimmediate_operand with vector_operand.
	(round_saeonly_nimm_predicate): Likewise.
	(round_saeonly_nimm_scalar_predicate): New.

gcc/testsuite/

	PR target/68991
	* gcc.target/i386/pr68991.c: New test.

From-SVN: r232088
2016-01-05 12:19:16 -08:00
H.J. Lu 3f50525df2 Add vector_memory_operand and "Bm" constraint
SSE vector arithmetic and logic instructions only accept aligned memory
operand.  This patch adds vector_memory_operand and "Bm" constraint for
aligned SSE memory operand.  They are applied to SSE plusminus and
any_logic patterns.

gcc/

	PR target/68991
	* config/i386/constraints.md (Bm): New constraint.
	* config/i386/predicates.md (vector_memory_operand): New
	predicate.
	* config/i386/sse.md: Replace xm with xBm in plusminus and
	any_logic patterns.

gcc/testsuite/

	PR target/68991
	* g++.dg/pr68991-1.C: New test.
	* g++.dg/pr68991-2.C: Likewise.

From-SVN: r232087
2016-01-05 12:17:26 -08:00
Mike Frysinger ae120683c6 libiberty: dupargv: rewrite to use xstrdup
This func is basically open coding the xstrdup function, so gut it
and use that directly.

From-SVN: r232086
2016-01-05 19:55:21 +00:00
Sandra Loosemore ebd4a2097b re PR target/1078 (Problems with attributes documentation)
2016-01-05  Sandra Loosemore <sandra@codesourcery.com>

	PR 1078
	gcc/
	* doc/extend.texi (V850 Function Attributes): New section.
	(V850 Variable Attributes): New section.

From-SVN: r232085
2016-01-05 14:45:43 -05:00
Olivier Hainque a22189835a aix-unwind.h (ucontext_for): Handle AIX 7.1 specificities.
2016-01-05  Olivier Hainque  <hainque@adacore.com>

	* config/rs6000/aix-unwind.h (ucontext_for): Handle AIX 7.1
	specificities.

From-SVN: r232082
2016-01-05 18:10:31 +00:00
Sandra Loosemore 0d19c66df4 re PR target/1078 (Problems with attributes documentation)
2016-01-05  Sandra Loosemore <sandra@codesourcery.com>

	PR 1078
	gcc/
	* doc/extend.texi (MicroBlaze Function Attributes): Document
	interrupt_handler and fast_interrupt attributes.

From-SVN: r232081
2016-01-05 13:04:01 -05:00
Sergei Trofimovich face88a110 [PATCH v2] ia64: don't use dynamic relocations for local symbols PR other/60465
[PATCH v2] ia64: don't use dynamic relocations for local symbols
	PR other/60465
	* config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
	for local symbolic operands.
	* config/ia64/predicates.md (local_symbolic_operand64): New
	predicate.

        PR other/60465
	* gcc.target/ia64/pr60465-gprel64.c: New test.
	* gcc.target/ia64/pr60465-gprel64-c37.c: New test.

From-SVN: r232080
2016-01-05 10:57:05 -07:00
Kyrylo Tkachov a0866effcd [combine][v2] Canonicalise (r + r) to (r << 1) to aid recognition
PR rtl-optimization/68651
	* combine.c (combine_simplify_rtx): Canonicalize x + x into
	x << 1.

	* gcc.target/aarch64/pr68651_1.c: New test.

From-SVN: r232077
2016-01-05 16:06:06 +00:00
David Malcolm c589e97563 Fix PR c/69122 (-Wmisleading-indentation false positive with empty macros)
gcc/c-family/ChangeLog:
	PR c/69122
	* c-indentation.c (get_visual_column): Remove default argument.
	(should_warn_for_misleading_indentation): For the multiline case,
	update call to get_visual_column for next_stmt_exploc so that it
	captures the location of the first non-whitespace character in the
	relevant line.  Don't issue warnings if there is non-whitespace
	before the next statement.

gcc/testsuite/ChangeLog:
	PR c/69122
	* c-c++-common/Wmisleading-indentation.c (pr69122): New function.

From-SVN: r232076
2016-01-05 15:54:46 +00:00
Nathan Sidwell ce3e43d7c8 re PR c++/58583 ([c++11] ICE with invalid non-static data member initialization in template)
gcc/cp/
	PR c++/58583
	* pt.c (build_non_dependent_expr): Don't try a checking fold when
	parsing an nsdmi.

	gcc/testsuite/
	PR c++/58583
	* g++.dg/cpp0x/nsdmi-template14.C: Adjust test & errors.

From-SVN: r232075
2016-01-05 14:40:11 +00:00
Nathan Sidwell 929710d96c alias.c (compare_base_decls): Use symtab_node::get.
gcc/
	* alias.c (compare_base_decls): Use symtab_node::get.

	gcc/testsuite/
	* gcc.dg/alias-15.c: New.

From-SVN: r232073
2016-01-05 14:15:01 +00:00
Nick Clifton a2faef8e06 re PR target/68770 (Conditional jump or move depends on uninitialised value(s) default_secondary_reload() targhooks.c:940)
PR target/68770
	* ira-costs.c (copy_cost): Initialise the t_icode field of the
	secondary_reload_info structure.

tests:	* g++.dg/pr68770.C: New test.

From-SVN: r232072
2016-01-05 13:20:29 +00:00
Nick Clifton 3360dc9fc2 re PR target/66655 (miscompilation due to ipa-ra on MinGW)
PR target/66655
	* config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
	decls if weak support is available.

From-SVN: r232071
2016-01-05 10:57:01 +00:00
Martin Sebor 56f2741b17 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
From-SVN: r232070
2016-01-04 19:53:10 -07:00
GCC Administrator 9676acebc2 Daily bump.
From-SVN: r232069
2016-01-05 00:16:11 +00:00
Mike Stump 4ece61b644 (check_effective_target_cilkplus): Remove special case for NVPTX.
From-SVN: r232063
2016-01-04 20:01:15 +00:00
Mike Stump 4cfa76e33c target-supports.exp (check_effective_target_cilkplus): cilkplus targets require pthreads.
* lib/target-supports.exp (check_effective_target_cilkplus):
	cilkplus targets require pthreads.

From-SVN: r232062
2016-01-04 19:06:07 +00:00
Michael Meissner d290b03760 rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add OPTION_MASK_P9_DFORM.
2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>

	* config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
	OPTION_MASK_P9_DFORM.

From-SVN: r232061
2016-01-04 19:04:49 +00:00
Michael Meissner 4e8a3a35d8 constraints.md (wo constraint): New constraint for ISA 3.0 (power9).
[gcc]
2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>

	* config/rs6000/constraints.md (wo constraint): New constraint for
	ISA 3.0 (power9).

	* config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
	for wo constraint.
	(rs6000_init_hard_regno_mode_ok): Likewise.

	* config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
	wo constraint.

	* config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
	expanders not to have constraints.  Add support for ISA 3.0 xxperm
	instruction.  Add support for fusing xxlor with xxperm.
	(altivec_vperm_<mode>_internal): Likewise.
	(altivec_vperm_v8hiv16qi): Likewise.
	(altivec_vperm_<mode>v16q): Likewise.
	(altivec_vperm_<mode>_uns): Likewise.
	(vperm_v8hiv4si): Likewise.
	(vperm_v16qiv8hi): Likewise.

	* doc/md.texi (RS/6000 constraints): Document wo constraint.

[gcc/testsuite]
2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>

	* gcc.target/powerpc/p9-permute.c: New test for xxperm code
	generation.

From-SVN: r232060
2016-01-04 18:22:52 +00:00
Jakub Jelinek f29fa917a5 update-copyright.py (GCCCopyright): Add NVIDIA Corporation as external author.
* update-copyright.py (GCCCopyright): Add NVIDIA Corporation
	as external author.

From-SVN: r232056
2016-01-04 15:41:50 +01:00
Jakub Jelinek 818ab71a41 Update copyright years.
From-SVN: r232055
2016-01-04 15:30:50 +01:00
Jakub Jelinek 21fa2a29dc gcc.c (process_command): Update copyright notice dates.
gcc/
	* gcc.c (process_command): Update copyright notice dates.
	* gcov-dump.c (print_version): Ditto.
	* gcov.c (print_version): Ditto.
	* gcov-tool.c (print_version): Ditto.
	* gengtype.c (create_file): Ditto.
	* doc/cpp.texi: Bump @copying's copyright year.
	* doc/cppinternals.texi: Ditto.
	* doc/gcc.texi: Ditto.
	* doc/gccint.texi: Ditto.
	* doc/gcov.texi: Ditto.
	* doc/install.texi: Ditto.
	* doc/invoke.texi: Ditto.
gcc/ada/
	* gnat_ugn.texi: Bump @copying's copyright year.
	* gnat_rm.texi: Likewise.
gcc/fortran/
	* gfortranspec.c (lang_specific_driver): Update copyright notice
	dates.
	* gfc-internals.texi: Bump @copying's copyright year.
	* gfortran.texi: Ditto.
	* intrinsic.texi: Ditto.
	* invoke.texi: Ditto.
gcc/go/
	* gccgo.texi: Bump @copyrights-go year.
gcc/java/
	* jcf-dump.c (version): Update copyright notice dates.
libgomp/
	* libgomp.texi: Bump @copying's copyright year.
libitm/
	* libitm.texi: Bump @copying's copyright year.
libjava/
	* classpath/gnu/java/rmi/registry/RegistryImpl.java (version): Update
	copyright notice dates.
	* classpath/tools/gnu/classpath/tools/orbd/Main.java (run): Ditto.
	* gnu/gcj/convert/Convert.java (version): Update copyright notice
	dates.
	* gnu/gcj/tools/gcj_dbtool/Main.java (main): Ditto.
libquadmath/
	* libquadmath.texi: Bump @copying's copyright year.

From-SVN: r232053
2016-01-04 14:03:35 +01:00
Marek Polacek 2fe0a2080e re PR c/68908 (inefficient code for _Atomic operations)
PR c/68908
	* c-typeck.c (build_atomic_assign): Improve commentary.  Add
	optimization to use __atomic_fetch_* built-in if possible.

	* gcc.dg/atomic/c11-atomic-exec-6.c: New test.
	* gcc.dg/atomic/c11-atomic-exec-7.c: New test.
	* gcc.dg/atomic/stdatomic-op-5.c: New test.

From-SVN: r232052
2016-01-04 12:27:08 +00:00
Eric Botcazou 8db883aa82 arm.c (aapcs_vfp_allocate_return_reg): Treat all integer modes larger than TImode as TImode if NEON is not enabled.
* config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
	modes larger than TImode as TImode if NEON is not enabled.

From-SVN: r232051
2016-01-04 08:56:49 +00:00
Eric Botcazou 9e3b2fe375 re PR target/69100 (ICE in final_scan_insn with -msoft-float and __builtin_apply)
PR target/69100
	* config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
	mode for %f0-%f31 only if TARGET_FPU.

From-SVN: r232050
2016-01-04 08:14:12 +00:00
Eric Botcazou e8d65a35d5 re PR target/69072 (ICE in function_arg_record_value on 7th packed structure)
PR target/69072
	* config/sparc/sparc.c (scan_record_type): Take into account subfields
	to compute the PACKED_P predicate.
	(function_arg_record_value): Minor tweaks.

From-SVN: r232049
2016-01-04 08:06:52 +00:00
Thomas Preud'homme a10f2c253c install.texi (--with-multilib-list): Describe the meaning of the option for arm*-*-* targets.
2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/
    * doc/install.texi (--with-multilib-list): Describe the meaning of the
    option for arm*-*-* targets.

From-SVN: r232048
2016-01-04 05:40:53 +00:00
Sandra Loosemore 3c9511d8fa extend.texi (Common Function Attributes): Move docs for MSP430-specific attributes to....
2016-01-03  Sandra Loosemore <sandra@codesourcery.com>

	gcc/
	* doc/extend.texi (Common Function Attributes): Move docs for
	MSP430-specific attributes to....
	(MSP430 Function Attributes): ...here.  Delete the redundant
	entries and copy-edit the remaining text.
	(MSP430 Variable Attributes): Use uniform format for index
	entries and add a cross-reference to the corresponding function
	attribute docs.

From-SVN: r232047
2016-01-03 21:44:45 -05:00
Vladimír Čunát db750ef997 invoke.texi (RS/6000 and PowerPC Options): Fix -finite-math typo.
2016-01-03  Vladimír Čunát <vcunat@gmail.com>

	gcc/
	* doc/invoke.texi (RS/6000 and PowerPC Options): Fix
	-finite-math typo.
	(x86 Options): Likewise.

From-SVN: r232046
2016-01-03 21:03:07 -05:00
GCC Administrator 99a385240a Daily bump.
From-SVN: r232045
2016-01-04 00:16:12 +00:00
Paul Thomas 25ccfccdf2 re PR fortran/65045 ([F08] ICE when using the same name for a block and a variable)
2016-01-03  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/65045
	* gfortran.dg/pr65045.f90: New test.

From-SVN: r232042
2016-01-03 20:55:19 +00:00
Matthias Klose 0e8d41ab8f libtool-version: Bump soversion.
2016-01-03  Matthias Klose  <doko@ubuntu.com>

        * libtool-version: Bump soversion.
        * include/jvm.h (GCJ_CXX_ABI_VERSION): Don't encode __GNUC_MINOR__.

From-SVN: r232040
2016-01-03 11:38:51 +00:00
Eric Botcazou 783bfcce44 * gnatvsn.ads: Bump copyright year.
From-SVN: r232039
2016-01-03 00:41:43 +00:00
GCC Administrator 7ef85cdb60 Daily bump.
From-SVN: r232038
2016-01-03 00:16:16 +00:00
Eric Botcazou cb51d3827a * gnat.dg/specs/debug1.ads: Delete.
From-SVN: r232035
2016-01-02 23:45:25 +00:00
Sandra Loosemore d59224e6cd re PR target/1078 (Problems with attributes documentation)
2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>

	PR 1078

	gcc/
	* extend.texi (Common Function Attributes) <no_stack_limit>: New.
	* invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
	to corresponding attribute.

From-SVN: r232034
2016-01-01 22:45:32 -05:00
GCC Administrator b9596e0024 Daily bump.
From-SVN: r232033
2016-01-02 00:16:12 +00:00
Sandra Loosemore c9aa0b93a8 extend.texi (Common Function Attributes): Move to correct alphabetization of table.
2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* doc/extend.texi (Common Function Attributes) <noplt>: Move
	to correct alphabetization of table.  Copy-edit and correct
	markup.
	<stack_protect>: Likewise.
	<target_clones>: Likewise.
	<simd>: Likewise.
	* doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
	Correct punctuation.
	(Code Gen Options) <-fno-plt>: Copy-edit.

From-SVN: r232030
2016-01-01 18:54:10 -05:00
Jerry DeLisle 6eeaad6e3b re PR libfortran/68867 (numeric formatting problem in the fortran library)
2016-01-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/68867
	* gfortran.dg/default_format_denormal_2.f90: Fix the dg regular
	expression.

From-SVN: r232029
2016-01-01 19:01:24 +00:00
Bernd Edlinger fecd16d238 re PR target/68917 (test suite failure for builtin-bitops-1.c)
PR target/68917
	* config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
	SI values.  Explicitly convert SI to DI and vice-versa.

From-SVN: r232028
2016-01-01 18:45:41 +00:00
Jerry DeLisle 2f9686033d re PR libfortran/68867 (numeric formatting problem in the fortran library)
2016-01-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/68867
	* gfortran.dg/default_format_denormal_2.f90: XFAIL for all
	PowerPC.

From-SVN: r232027
2016-01-01 18:13:17 +00:00
Paul Thomas 591bb5e4bf re PR fortran/68864 (ICE: in gfc_get_descriptor_dimension, at fortran/trans-array.c:268)
2016-01-01  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/68864
	* trans-array.c (evaluate_bound): If deferred, test that 'desc'
	is an array descriptor before using gfc_conv_descriptor_xxx.


2016-01-01  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/68864
	* gfortran.dg/pr68864.f90: New test.

From-SVN: r232026
2016-01-01 17:02:51 +00:00
Jakub Jelinek 942a13194f re PR tree-optimization/69070 (ICE: tree check: expected real_cst, have ssa_name in gimple_expand_builtin_pow, at tree-ssa-math-opts.c:1541 with -fsignaling-nans and powl())
PR tree-optimization/69070
	* tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
	REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.

	* gcc.dg/pr69070.c: New test.

From-SVN: r232025
2016-01-01 12:55:59 +01:00
Jakub Jelinek 10dff63f98 re PR sanitizer/69055 (Internal compiler error -fsanitize=float-cast-overflow)
PR sanitizer/69055
	* ubsan.c (ubsan_instrument_float_cast): Call
	initialize_sanitizer_builtins.

	* gfortran.dg/pr69055.f90: New test.

From-SVN: r232024
2016-01-01 12:55:02 +01:00
GCC Administrator 3c5fc1380c Daily bump.
From-SVN: r232023
2016-01-01 00:16:13 +00:00
Jakub Jelinek f1e0620c75 re PR target/69015 (ICE: RTL check: expected code 'code_label', have 'return' in find_cond_trap, at ifcvt.c:3715 with -fno-if-conversion and __builtin_trap())
PR target/69015
	* ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).

	* gcc.dg/pr69015.c: New test.

From-SVN: r232020
2016-01-01 00:51:50 +01:00
Jakub Jelinek 2f883d1c18 Rotate ChangeLog.
From-SVN: r232019
2016-01-01 00:50:54 +01:00
Ben Elliston cfe67e0306 config.guess: Import version 2016-01-01.
* config.guess: Import version 2016-01-01.
	* config.sub: Likewise.

From-SVN: r232018
2016-01-01 08:13:28 +11:00
Nathan Sidwell 9310efbc1e loop-red-w-2.c: Correct dg-additional-options syntax.
* testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
	dg-additional-options syntax.
	* testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.

From-SVN: r232017
2015-12-31 14:07:52 +00:00