gcc.git
10 years agomips.c (mips_isa_rev): New variable.
Richard Sandiford [Sat, 3 May 2014 19:18:40 +0000 (19:18 +0000)]
mips.c (mips_isa_rev): New variable.

gcc/
* config/mips/mips.c (mips_isa_rev): New variable.
(mips_set_architecture): Set it.
* config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
from mips_isa_rev.
(ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
(ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
(ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
(ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
(ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
conditions in terms of mips_isa_rev.
(mips_isa_rev): Declare.

From-SVN: r210038

10 years agosh-mem.cc: Use tabs instead of spaces.
Oleg Endo [Sat, 3 May 2014 17:47:27 +0000 (17:47 +0000)]
sh-mem.cc: Use tabs instead of spaces.

* config/sh/sh-mem.cc: Use tabs instead of spaces.
(prob_unlikely, prob_likely): Make variables const.

From-SVN: r210037

10 years agoavr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
Denis Chertykov [Sat, 3 May 2014 14:23:24 +0000 (18:23 +0400)]
avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.

* config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.

From-SVN: r210035

10 years ago2014-05-03 Dominique d'Humieres <dominiq@lps.ens.fr>
Dominique d'Humieres [Sat, 3 May 2014 12:16:53 +0000 (14:16 +0200)]
2014-05-03  Dominique d'Humieres <dominiq@lps.ens.fr>

        Fix typos in log entries.

From-SVN: r210034

10 years agosh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
Oleg Endo [Sat, 3 May 2014 11:50:38 +0000 (11:50 +0000)]
sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.

* config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.

From-SVN: r210033

10 years agosh.h (ROUND_ADVANCE): Delete macro.
Oleg Endo [Sat, 3 May 2014 09:42:52 +0000 (09:42 +0000)]
sh.h (ROUND_ADVANCE): Delete macro.

* config/sh/sh.h (ROUND_ADVANCE): Delete macro.
(ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
* config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
functions.
(sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
sh_pass_in_reg_p.
Replace usage of ROUND_REG with sh_round_reg.
Use CEIL instead of ROUND_ADVANCE.

From-SVN: r210032

10 years agore PR testsuite/61025 (FAIL: gfortran.dg/coarray_lib_this_image_1.f90)
Dominique d'Humieres [Sat, 3 May 2014 09:08:15 +0000 (11:08 +0200)]
re PR testsuite/61025 (FAIL: gfortran.dg/coarray_lib_this_image_1.f90)

2014-05-03  Dominique d'Humieres <dominiq@lps.ens.fr>

PR fortran/61025
* gfortran.dg/coarray_lib_this_image_1.f90: Adjust the dg-final
regexps for -m32.
* gfortran.dg/coarray_lib_this_image_2.f90: Likewise.
* gfortran.dg/coarray_poly_7.f90: Likewise.
* gfortran.dg/coarray_poly_8.f90: Likewise.
* gfortran.dg/coarray_poly_9.f90: Likewise.

From-SVN: r210031

10 years agore PR target/61026 (sh-rtems4.11 build of 4.9.0 fails on FreeBSD 10 c++ (clang).)
Oleg Endo [Sat, 3 May 2014 07:51:02 +0000 (07:51 +0000)]
re PR target/61026 (sh-rtems4.11 build of 4.9.0 fails on FreeBSD 10 c++ (clang).)

PR target/61026
* config/sh/sh.c: Include stdlib headers before everything else.

From-SVN: r210028

10 years agoDaily bump.
GCC Administrator [Sat, 3 May 2014 00:16:48 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r210026

10 years ago* decl2.c (vague_linkage_p): Local statics have vague linkage.
Jason Merrill [Fri, 2 May 2014 20:56:41 +0000 (16:56 -0400)]
* decl2.c (vague_linkage_p): Local statics have vague linkage.

From-SVN: r210019

10 years agore PR c++/60992 (ICE in tsubst_copy, at cp/pt.c:12637)
Jason Merrill [Fri, 2 May 2014 19:47:40 +0000 (15:47 -0400)]
re PR c++/60992 (ICE in tsubst_copy, at cp/pt.c:12637)

PR c++/60992
* lambda.c (lambda_capture_field_type): Wrap anything dependent
other than 'this'.
(add_capture): Check for VLA before calling it.
* semantics.c (is_this_parameter): Accept any 'this' parameter, not
just the current one.  Make non-static.
* cp-tree.h: Declare it.
* pt.c (tsubst_copy) [VAR_DECL]: Also build a new VAR_DECL if
the operand was static or constant.

From-SVN: r210017

10 years agore PR libstdc++/61036 (shared_ptr<void>(new T) rejected)
Jonathan Wakely [Fri, 2 May 2014 18:29:48 +0000 (19:29 +0100)]
re PR libstdc++/61036 (shared_ptr<void>(new T) rejected)

PR libstdc++/61036
* include/bits/shared_ptr_base.h (__shared_ptr::__shared_ptr(_Tp1*)):
Check the correct type in the static assertion.
* testsuite/20_util/shared_ptr/cons/61036.cc: New.

From-SVN: r210015

10 years agore PR c/25801 (bad diagnostic for increment/decrement of pointer to incomplete array)
Marek Polacek [Fri, 2 May 2014 18:13:43 +0000 (18:13 +0000)]
re PR c/25801 (bad diagnostic for increment/decrement of pointer to incomplete array)

PR c/25801
* c-typeck.c (c_size_in_bytes): Update comment.  Don't call error.
Return size_one_node when the type is not complete.
(pointer_diff): Remove comment.
(build_unary_op): Improve error messages.

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

From-SVN: r210013

10 years agoc-typeck.c (c_finish_return): Separate warning_at calls.
Marek Polacek [Fri, 2 May 2014 18:09:42 +0000 (18:09 +0000)]
c-typeck.c (c_finish_return): Separate warning_at calls.

c/
* c-typeck.c (c_finish_return): Separate warning_at calls.
cp/
* typeck.c (maybe_warn_about_returning_address_of_local): Separate
warning_at calls.

From-SVN: r210012

10 years ago* c.opt (Wsizeof-pointer-memaccess): Describe option.
Marek Polacek [Fri, 2 May 2014 18:07:40 +0000 (18:07 +0000)]
* c.opt (Wsizeof-pointer-memaccess): Describe option.

From-SVN: r210011

10 years agogimplify.c (gimplify_adjust_omp_clauses_1): Handle GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
Jakub Jelinek [Fri, 2 May 2014 17:43:40 +0000 (19:43 +0200)]
gimplify.c (gimplify_adjust_omp_clauses_1): Handle GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.

* gimplify.c (gimplify_adjust_omp_clauses_1): Handle
GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
(gimplify_adjust_omp_clauses): Simd region is never
directly nested in combined parallel.  Instead, for linear
with copyin/copyout, if in combined for simd loop, make decl
firstprivate/lastprivate on OMP_FOR.
* omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
expand_omp_for_static_chunk): When setting endvar, also set
fd->loop.v to the same value.
libgomp/
* testsuite/libgomp.c/simd-10.c: New test.
* testsuite/libgomp.c/simd-11.c: New test.
* testsuite/libgomp.c/simd-12.c: New test.
* testsuite/libgomp.c/simd-13.c: New test.

From-SVN: r210009

10 years agore PR libstdc++/59476 (gdb pretty-printer cannot print C++11 _Rb_tree_iterator)
Jonathan Wakely [Fri, 2 May 2014 16:01:30 +0000 (17:01 +0100)]
re PR libstdc++/59476 (gdb pretty-printer cannot print C++11 _Rb_tree_iterator)

PR libstdc++/59476
* python/libstdcxx/v6/printers.py (get_value_from_Rb_tree_node): New
function to handle both C++03 and C++11 _Rb_tree_node implementations.
(StdRbtreeIteratorPrinter, StdMapPrinter, StdSetPrinter): Use it.
* testsuite/libstdc++-prettyprinters/simple.cc: Update comment to
refer to...
* testsuite/libstdc++-prettyprinters/simple11.cc: New.

From-SVN: r210008

10 years agohwint.h (zext_hwi): Fix signed overflow for prec == 63.
Richard Sandiford [Fri, 2 May 2014 15:35:33 +0000 (15:35 +0000)]
hwint.h (zext_hwi): Fix signed overflow for prec == 63.

gcc/
* hwint.h (zext_hwi): Fix signed overflow for prec == 63.

From-SVN: r210006

10 years agoOne-line tidy of bit-twiddle expression in aarch64.c
Alan Lawrence [Fri, 2 May 2014 15:11:04 +0000 (15:11 +0000)]
One-line tidy of bit-twiddle expression in aarch64.c

* config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
expression.

From-SVN: r210005

10 years ago* doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
Marek Polacek [Fri, 2 May 2014 08:24:49 +0000 (08:24 +0000)]
* doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.

From-SVN: r210002

10 years agoc-tree.h (error_init): Remove declaration.
Marek Polacek [Fri, 2 May 2014 07:57:59 +0000 (07:57 +0000)]
c-tree.h (error_init): Remove declaration.

* c-tree.h (error_init): Remove declaration.
(pedwarn_init): Likewise.
* c-typeck.c (error_init): Make static and move above.
(pedwarn_init): Likewise.
(warning_init): Move above.
(maybe_warn_string_init): Likewise.

From-SVN: r210001

10 years agodefaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER to a C expression...
Kito Cheng [Fri, 2 May 2014 06:03:22 +0000 (06:03 +0000)]
defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER to a C expression marco.

2014-02-26  Kito Cheng  <kito@0xlab.org>

* defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
to a C expression marco.
* ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
* config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
* config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
* doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
HONOR_REG_ALLOC_ORDER.
* doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.

From-SVN: r210000

10 years agorevert: c-parser.c (c_parser_sizeof_expression): Reorganize slightly to avoid goto.
Jeff Law [Fri, 2 May 2014 05:46:38 +0000 (23:46 -0600)]
revert: c-parser.c (c_parser_sizeof_expression): Reorganize slightly to avoid goto.

2014-05-01  Jeff Law  <law@redhat.com>

Revert:

2014-04-24  Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
* c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
avoid goto.

From-SVN: r209999

10 years agore PR c/60784 (Spurious -Wmissing-field-initializers warning for anonymous structure)
Marek Polacek [Fri, 2 May 2014 05:40:38 +0000 (05:40 +0000)]
re PR c/60784 (Spurious -Wmissing-field-initializers warning for anonymous structure)

PR c/60784
* c-typeck.c (push_init_level): Set constructor_designated to
p->designated for structures.

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

From-SVN: r209998

10 years ago[multiple changes]
Jeff Law [Fri, 2 May 2014 03:54:33 +0000 (21:54 -0600)]
[multiple changes]

2014-05-01  Jeff Law  <law@redhat.com>

* Revert:
2014-04-24  Jincheng Miao  <jincheng.miao@gmail.com>

* zh_CN.po: Fix typo for -mfentry.

From-SVN: r209997

10 years agoDaily bump.
GCC Administrator [Fri, 2 May 2014 00:17:21 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r209996

10 years ago* sv.po: Update.
Joseph Myers [Thu, 1 May 2014 21:33:52 +0000 (22:33 +0100)]
* sv.po: Update.

From-SVN: r209989

10 years ago* config.sub, config.guess: Import from upstream.
Richard Sandiford [Thu, 1 May 2014 20:51:11 +0000 (20:51 +0000)]
* config.sub, config.guess: Import from upstream.

From-SVN: r209988

10 years agocompiler: Use backend interface for heap expressions.
Ian Lance Taylor [Thu, 1 May 2014 19:18:56 +0000 (19:18 +0000)]
compiler: Use backend interface for heap expressions.

From-SVN: r209983

10 years agolonglong.h: Use 'defined()' to check __mips16.
Steve Ellcey [Thu, 1 May 2014 15:07:00 +0000 (15:07 +0000)]
longlong.h: Use 'defined()' to check __mips16.

2014-05-01  Steve Ellcey  <sellcey@mips.com>

* include/longlong.h: Use 'defined()' to check __mips16.

From-SVN: r209980

10 years agoarc.c (TARGET_LRA_P): Undef before redefine.
Jan-Benedict Glaw [Thu, 1 May 2014 13:00:10 +0000 (13:00 +0000)]
arc.c (TARGET_LRA_P): Undef before redefine.

2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

* config/arc/arc.c (TARGET_LRA_P): Undef before redefine.

From-SVN: r209979

10 years agoarc.c (arc_select_cc_mode): Fix typo.
Jan-Benedict Glaw [Thu, 1 May 2014 12:16:42 +0000 (12:16 +0000)]
arc.c (arc_select_cc_mode): Fix typo.

2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

* config/arc/arc.c (arc_select_cc_mode): Fix typo.

From-SVN: r209978

10 years agore PR c/60915 (confusing diagnostic from attribute on function definition)
Marek Polacek [Thu, 1 May 2014 07:40:26 +0000 (07:40 +0000)]
re PR c/60915 (confusing diagnostic from attribute on function definition)

PR c/60915
* c-parser.c (c_parser_declaration_or_fndef): Give better error if
function-definition has an attribute after the declarator.

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

From-SVN: r209975

10 years agore PR c/60257 (Incorrect column number and confusing message in -Woverride-init)
Marek Polacek [Thu, 1 May 2014 07:35:05 +0000 (07:35 +0000)]
re PR c/60257 (Incorrect column number and confusing message in -Woverride-init)

PR c/60257
* c-typeck.c (warning_init): Add location_t parameter.  Call
warning_at instead of warning.
(push_init_level): Pass input_location to warning_init.
(add_pending_init): Add location_t parameter.  Pass loc to
warning_init.
(set_nonincremental_init): Pass input_location to add_pending_init.
(set_nonincremental_init_from_string): Likewise.
(output_init_element): Pass loc to warning_init and to
add_pending_init.

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

From-SVN: r209974

10 years agore PR c/43395 (Gcc warns label as local variable)
Marek Polacek [Thu, 1 May 2014 07:29:38 +0000 (07:29 +0000)]
re PR c/43395 (Gcc warns label as local variable)

PR c/43395
c/
* c-typeck.c (c_finish_return): Distinguish between label and variable
when warning about returning local address.
cp/
* typeck.c (maybe_warn_about_returning_address_of_local): Distinguish
between label and variable when warning about returning local address.
testsuite/
* c-c++-common/pr43395.c: New test.

From-SVN: r209973

10 years agotree-if-conv.c (is_cond_scalar_reduction): New function.
Yuri Rumyantsev [Thu, 1 May 2014 07:23:06 +0000 (07:23 +0000)]
tree-if-conv.c (is_cond_scalar_reduction): New function.

gcc/
* tree-if-conv.c (is_cond_scalar_reduction): New function.
(convert_scalar_cond_reduction): Likewise.
(predicate_scalar_phi): Add recognition and transformation
of simple conditioanl reduction to be vectorizable.

gcc/testsuite/
* gcc.dg/cond-reduc-1.c: New test.
* gcc.dg/cond-reduc-2.c: Likewise.

From-SVN: r209972

10 years agore PR c/29467 (-ansi -pedantic accepts _Bool without diagnostic)
Marek Polacek [Thu, 1 May 2014 07:21:07 +0000 (07:21 +0000)]
re PR c/29467 (-ansi -pedantic accepts _Bool without diagnostic)

PR c/29467
* c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
in C89 mode.

* gcc.dg/pr29467.c: New test.
* gcc.dg/declspec-13.c: Renumber some dg-warnings.  Add dg-warnings
about boolean types.
* gfortran.dg/bind_c_usage_24_c.c: Include <stdbool.h>.  Change _Bool
to bool.
* gfortran.dg/c_f_pointer_logical_driver.c: Change _Bool to bool.

From-SVN: r209971

10 years agore PR c/43245 (add option to control "discarding qualifiers" warnings)
Marek Polacek [Thu, 1 May 2014 07:16:10 +0000 (07:16 +0000)]
re PR c/43245 (add option to control "discarding qualifiers" warnings)

PR c/43245
* doc/invoke.texi: Document -Wdiscarded-qualifiers.
c-family/
* c.opt (Wdiscarded-qualifiers): Add.
c/
* c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
instead of 0 to WARN_FOR_QUALIFIERS.
testsuite/
* gcc.dg/pr43245.c: New test.

From-SVN: r209970

10 years agore PR c/56989 (wrong location in error message)
Marek Polacek [Thu, 1 May 2014 07:08:19 +0000 (07:08 +0000)]
re PR c/56989 (wrong location in error message)

PR c/56989
* c-typeck.c (default_conversion): Use better location for
error call.

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

From-SVN: r209969

10 years agogo-backend.c: #include "diagnostics.h".
Chris Manghane [Thu, 1 May 2014 01:20:07 +0000 (01:20 +0000)]
go-backend.c: #include "diagnostics.h".

* go-backend.c: #include "diagnostics.h".
(saw_errors): New function.
* go-c.h (saw_errors): Declare.
* Make-lang.in (GO_OBJS): Remove go/gogo-tree.o.

From-SVN: r209968

10 years agoruntime: ask $GOC rather than $CC for the version and multi-os-directory
Ian Lance Taylor [Thu, 1 May 2014 00:35:58 +0000 (00:35 +0000)]
runtime: ask $GOC rather than $CC for the version and multi-os-directory

The Go compiler may have different values for these than the C compiler.

From-SVN: r209967

10 years agoDaily bump.
GCC Administrator [Thu, 1 May 2014 00:17:03 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r209966

10 years agogo-test.exp (go-gc-tests): For rundir...
Ian Lance Taylor [Wed, 30 Apr 2014 21:39:41 +0000 (21:39 +0000)]
go-test.exp (go-gc-tests): For rundir...

* go.test/go-test.exp (go-gc-tests): For rundir, pass extra files
in go_compile_args rather than in argument to go-torture-execute.

From-SVN: r209959

10 years agopr58419.c: Use dummy no-inline function instead of getpid.
Soundararajan Dhakshinamoorthy [Wed, 30 Apr 2014 21:09:21 +0000 (21:09 +0000)]
pr58419.c: Use dummy no-inline function instead of getpid.

2014-04-30  Soundararajan Dhakshinamoorthy  <sounderarajan.d@atmel.com>

* gcc.c-torture/execute/pr58419.c: Use dummy no-inline function
instead of getpid.

From-SVN: r209957

10 years agotrans-decl.c (create_function_arglist): Add hidden coarray
Tobias Burnus [Wed, 30 Apr 2014 19:10:16 +0000 (21:10 +0200)]
trans-decl.c (create_function_arglist): Add hidden coarray

2014-04-30  Tobias Burnus  <burnus@net-b.de>

        * trans-decl.c (create_function_arglist): Add hidden coarray
        * arguments
        also for polymorphic coarrays.
        * trans-expr.c (gfc_conv_procedure_call): Pass hidden coarray
        arguments also for polymorphic coarrays.

2014-04-30  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/coarray_poly_7.f90
        * gfortran.dg/coarray_poly_8.f90
        * gfortran.dg/coarray_poly_9.f90

From-SVN: r209953

10 years agoresolve.c (resolve_function): Don't do assumed-size check for lcobound/ucobound.
Tobias Burnus [Wed, 30 Apr 2014 19:08:19 +0000 (21:08 +0200)]
resolve.c (resolve_function): Don't do assumed-size check for lcobound/ucobound.

2014-04-30  Tobias Burnus  <burnus@net-b.de>

        * resolve.c (resolve_function): Don't do
        assumed-size check for lcobound/ucobound.
        * trans-types.c (gfc_build_array_type): Only build an array
        descriptor with codimensions for allocatable coarrays.

2014-04-30  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/coarray_lib_this_image_2.f90: Update dump.
        * gfortran.dg/coarray_lib_token_4.f90: Ditto.
        * gfortran.dg/coarray/codimension.f90: New.

From-SVN: r209952

10 years agogfortran.h (gfc_init_coarray_decl): Remove.
Tobias Burnus [Wed, 30 Apr 2014 19:02:23 +0000 (21:02 +0200)]
gfortran.h (gfc_init_coarray_decl): Remove.

2014-04-30  Tobias Burnus  <burnus@net-b.de>

        * gfortran.h (gfc_init_coarray_decl): Remove.
        * parse.c (translate_all_program_units): Remove call to it.
        (gfc_parse_file): Update call.
        * trans.h (gfor_fndecl_caf_this_image,
        gfor_fndecl_caf_num_images): Add.
        (gfort_gvar_caf_num_images,
        gfort_gvar_caf_this_image): Remove.
        * trans-decl.c (gfor_fndecl_caf_this_image,
        gfor_fndecl_caf_num_images): Add.
        (gfort_gvar_caf_num_images,
        gfort_gvar_caf_this_image): Remove.
        (gfc_build_builtin_function_decls): Init new decl.
        (gfc_init_coarray_dec): Remove.
        (create_main_function): Change calls.
        * trans-intrinsic.c (trans_this_image, trans_image_index,
        conv_intrinsic_cobound): Generate call to new library function
        instead of to a static variable.
        * trans-stmt.c (gfc_trans_sync): Ditto.

2014-04-30  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/coarray_lib_this_image_1.f90: New.
        * gfortran.dg/coarray_lib_this_image_2.f90: New.

2014-04-30  Tobias Burnus  <burnus@net-b.de>

        * caf/libcaf.h (_gfortran_caf_this_image,
        * _gfortran_caf_num_images):
        New prototypes.
        (_gfortran_caf_init): Change prototype.
        (mpi_token_t): New typedef.
        (TOKEN): New define.
        * caf/mpi.c (_gfortran_caf_this_image,
        * _gfortran_caf_num_images):
        New functions.
        (_gfortran_caf_init): Update.
        (_gfortran_caf_finalize, _gfortran_caf_register,
        _gfortran_caf_deregister): Use mpi_token_t.
        * caf/single.c (_gfortran_caf_this_image,
        * _gfortran_caf_num_images):
        New functions.
        (_gfortran_caf_init): Update.
        (_gfortran_caf_finalize, _gfortran_caf_register,
        _gfortran_caf_deregister): Use mpi_token_t, simplify.

From-SVN: r209951

10 years agotrans-expr.c (get_tree_for_caf_expr): Fix handling of
Tobias Burnus [Wed, 30 Apr 2014 18:39:15 +0000 (20:39 +0200)]
trans-expr.c (get_tree_for_caf_expr): Fix handling of

2014-04-30  Tobias Burnus  <burnus@net-b.de>

        * trans-expr.c (get_tree_for_caf_expr): Fix handling of
        * polymorphic
        and derived-type coarrays.

2014-04-30  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/coarray_poly_4.f90: New.
        * gfortran.dg/coarray_poly_5.f90: New.

From-SVN: r209948

10 years agoAdd execution tests of ARM UZP Intrinsics.
Alan Lawrence [Wed, 30 Apr 2014 18:10:56 +0000 (18:10 +0000)]
Add execution tests of ARM UZP Intrinsics.

* gcc.target/arm/simd/vuzpqf32_1.c: New file.
* gcc.target/arm/simd/vuzpqp16_1.c: New file.
* gcc.target/arm/simd/vuzpqp8_1.c: New file.
* gcc.target/arm/simd/vuzpqs16_1.c: New file.
* gcc.target/arm/simd/vuzpqs32_1.c: New file.
* gcc.target/arm/simd/vuzpqs8_1.c: New file.
* gcc.target/arm/simd/vuzpqu16_1.c: New file.
* gcc.target/arm/simd/vuzpqu32_1.c: New file.
* gcc.target/arm/simd/vuzpqu8_1.c: New file.
* gcc.target/arm/simd/vuzpf32_1.c: New file.
* gcc.target/arm/simd/vuzpp16_1.c: New file.
* gcc.target/arm/simd/vuzpp8_1.c: New file.
* gcc.target/arm/simd/vuzps16_1.c: New file.
* gcc.target/arm/simd/vuzps32_1.c: New file.
* gcc.target/arm/simd/vuzps8_1.c: New file.
* gcc.target/arm/simd/vuzpu16_1.c: New file.
* gcc.target/arm/simd/vuzpu32_1.c: New file.
* gcc.target/arm/simd/vuzpu8_1.c: New file.

From-SVN: r209947

10 years agocompiler: Remove GCC langhooks from frontend proper.
Chris Manghane [Wed, 30 Apr 2014 17:55:59 +0000 (17:55 +0000)]
compiler: Remove GCC langhooks from frontend proper.

* go-lang.c (go_langhook_type_for_size): Do it here, rather than
calling into Go frontend.
(go_langhook_type_for_mode): Likewise.
* go-c.h (go_type_for_size, go_type_for_mode): Don't declare.

From-SVN: r209945

10 years agoRewrite AArch64 UZP Intrinsics using __builtin_shuffle.
Alan Lawrence [Wed, 30 Apr 2014 17:04:53 +0000 (17:04 +0000)]
Rewrite AArch64 UZP Intrinsics using __builtin_shuffle.

gcc/testsuite/ChangeLog:

* gcc.target/aarch64/vuzps32_1.c: Expect zip1/2 insn rather than uzp1/2.
* gcc.target/aarch64/vuzpu32_1.c: Likewise.
* gcc.target/aarch64/vuzpf32_1.c: Likewise.

gcc/ChangeLog:

* config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.

From-SVN: r209943

10 years agoWork around for current cygwin32 build problems.
Bernd Edlinger [Wed, 30 Apr 2014 16:53:51 +0000 (16:53 +0000)]
Work around for current cygwin32 build problems.

2014-04-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        Work around for current cygwin32 build problems.
        * config/i386/cygming-crtbegin.c (__register_frame_info,
        __deregister_frame_info, _Jv_RegisterClasses): Compile weak default
        functions only for 64-bit systems.

From-SVN: r209942

10 years agogo-gcc.cc: #include "langhooks.h".
Chris Manghane [Wed, 30 Apr 2014 16:47:02 +0000 (16:47 +0000)]
go-gcc.cc: #include "langhooks.h".

* go-gcc.cc: #include "langhooks.h".
(Gcc_backend::Gcc_backend): Add constructor.
(Gcc_backend::lookup_function): New function.
(Gcc_backend::define_builtin): New private function.
(Gcc_backend::gcc_backend): Remove.
(go_get_backend): Use new to create new Gcc_backend.

From-SVN: r209941

10 years agoAdd execution + assembler tests of AArch64 UZP Intrinsics.
Alan Lawrence [Wed, 30 Apr 2014 16:36:07 +0000 (16:36 +0000)]
Add execution + assembler tests of AArch64 UZP Intrinsics.

* gcc.target/aarch64/simd/vuzpf32_1.c: New file.
* gcc.target/aarch64/simd/vuzpf32.x: New file.
* gcc.target/aarch64/simd/vuzpp16_1.c: New file.
* gcc.target/aarch64/simd/vuzpp16.x: New file.
* gcc.target/aarch64/simd/vuzpp8_1.c: New file.
* gcc.target/aarch64/simd/vuzpp8.x: New file.
* gcc.target/aarch64/simd/vuzpqf32_1.c: New file.
* gcc.target/aarch64/simd/vuzpqf32.x: New file.
* gcc.target/aarch64/simd/vuzpqp16_1.c: New file.
* gcc.target/aarch64/simd/vuzpqp16.x: New file.
* gcc.target/aarch64/simd/vuzpqp8_1.c: New file.
* gcc.target/aarch64/simd/vuzpqp8.x: New file.
* gcc.target/aarch64/simd/vuzpqs16_1.c: New file.
* gcc.target/aarch64/simd/vuzpqs16.x: New file.
* gcc.target/aarch64/simd/vuzpqs32_1.c: New file.
* gcc.target/aarch64/simd/vuzpqs32.x: New file.
* gcc.target/aarch64/simd/vuzpqs8_1.c: New file.
* gcc.target/aarch64/simd/vuzpqs8.x: New file.
* gcc.target/aarch64/simd/vuzpqu16_1.c: New file.
* gcc.target/aarch64/simd/vuzpqu16.x: New file.
* gcc.target/aarch64/simd/vuzpqu32_1.c: New file.
* gcc.target/aarch64/simd/vuzpqu32.x: New file.
* gcc.target/aarch64/simd/vuzpqu8_1.c: New file.
* gcc.target/aarch64/simd/vuzpqu8.x: New file.
* gcc.target/aarch64/simd/vuzps16_1.c: New file.
* gcc.target/aarch64/simd/vuzps16.x: New file.
* gcc.target/aarch64/simd/vuzps32_1.c: New file.
* gcc.target/aarch64/simd/vuzps32.x: New file.
* gcc.target/aarch64/simd/vuzps8_1.c: New file.
* gcc.target/aarch64/simd/vuzps8.x: New file.
* gcc.target/aarch64/simd/vuzpu16_1.c: New file.
* gcc.target/aarch64/simd/vuzpu16.x: New file.
* gcc.target/aarch64/simd/vuzpu32_1.c: New file.
* gcc.target/aarch64/simd/vuzpu32.x: New file.
* gcc.target/aarch64/simd/vuzpu8_1.c: New file.
* gcc.target/aarch64/simd/vuzpu8.x: New file.

From-SVN: r209940

10 years agoarc.opt (mlra): Move comment above option name to avoid mis-parsing as language options.
Joern Rennecke [Wed, 30 Apr 2014 16:06:07 +0000 (16:06 +0000)]
arc.opt (mlra): Move comment above option name to avoid mis-parsing as language options.

        * config/arc/arc.opt (mlra): Move comment above option name
        to avoid mis-parsing as language options.

From-SVN: r209939

10 years agore PR c++/60980 (ICE in build_special_member_call, at cp/call.c:7447)
Jason Merrill [Wed, 30 Apr 2014 14:23:18 +0000 (10:23 -0400)]
re PR c++/60980 (ICE in build_special_member_call, at cp/call.c:7447)

PR c++/60980
* init.c (build_value_init): Don't try to call an array constructor.

From-SVN: r209934

10 years agore PR c++/60951 ([C++11] ICE with braced-init-list assignment and constexpr constructor)
Jason Merrill [Wed, 30 Apr 2014 14:23:11 +0000 (10:23 -0400)]
re PR c++/60951 ([C++11] ICE with braced-init-list assignment and constexpr constructor)

PR c++/60951
* typeck2.c (massage_init_elt): Use maybe_constant_init.

From-SVN: r209933

10 years agolonglong.h (__i386__): Remove W_TYPE_SIZE==64 handling.
Richard Sandiford [Wed, 30 Apr 2014 14:12:32 +0000 (14:12 +0000)]
longlong.h (__i386__): Remove W_TYPE_SIZE==64 handling.

include/
* longlong.h (__i386__): Remove W_TYPE_SIZE==64 handling.

From-SVN: r209932

10 years agoSimplify Solaris 2 configuration
Rainer Orth [Wed, 30 Apr 2014 14:10:44 +0000 (14:10 +0000)]
Simplify Solaris 2 configuration

* config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
* config/sol2.h: ... here.
* config/sol2-10.h: Remove.

* config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
(WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
(DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
(LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
(LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
* config/sol2.h: ... here.
(SECTION_NAME_FORMAT): Don't redefine.
(STARTFILE_ARCH32_SPEC): Rename to ...
(STARTFILE_ARCH_SPEC): ... this.
(ASM_OUTPUT_ALIGNED_COMMON): Move ...
* config/sparc/sol2.h: ... here.
(SECTION_NAME_FORMAT): Don't undef.
* config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
(SUBTARGET_EXTRA_SPECS): Remove.
* config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.

* config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
(MD_STARTFILE_PREFIX): Remove.
(SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
(ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
(ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
(ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
(ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
(USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
* config/i386/sol2.h: ... here.
(TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
* config/i386/sol2-bi.h: Remove.
* config/sol2.h (MD_STARTFILE_PREFIX): Remove.
(LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.

* config/i386/t-sol2-64: Rename to ...
* config/i386/t-sol2: ... this.
* config/sparc/t-sol2-64: Rename to ...
* config/sparc/t-sol2: ... this.

* config.gcc (*-*-solaris2*): Split sol2_tm_file into
sol2_tm_file_head, sol2_tm_file_tail.
Include ${cpu_type}/sol2.h before sol2.h.
Remove sol2-10.h.
(i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
Reflect i386/t-sol2-64 renaming.
(sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
Reflect sparc/t-sol2-64 renaming.

From-SVN: r209931

10 years agore PR tree-optimization/48329 (Missed vectorization of reduction due to PRE)
Richard Biener [Wed, 30 Apr 2014 11:43:41 +0000 (11:43 +0000)]
re PR tree-optimization/48329 (Missed vectorization of reduction due to PRE)

2014-04-30  Richard Biener  <rguenther@suse.de>

PR tree-optimization/48329
* gfortran.dg/vect/pr48329.f90: New testcase.

From-SVN: r209930

10 years agopasses.c (execute_function_todo): Move TODO_verify_stmts and TODO_verify_ssa under...
Richard Biener [Wed, 30 Apr 2014 08:06:49 +0000 (08:06 +0000)]
passes.c (execute_function_todo): Move TODO_verify_stmts and TODO_verify_ssa under the TODO_verify_il umbrella.

2014-04-30  Richard Biener  <rguenther@suse.de>

* passes.c (execute_function_todo): Move TODO_verify_stmts
and TODO_verify_ssa under the TODO_verify_il umbrella.
* tree-ssa.h (verify_ssa): Adjust prototype.
* tree-ssa.c (verify_ssa): Add parameter to tell whether
we should verify SSA operands.
* tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
* tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
whether we should verify whether not throwing stmts have EH info.
* graphite-scop-detection.c (create_sese_edges): Adjust.
* tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
* tree-eh.c (lower_try_finally_switch): Do not add the
default case label twice.

From-SVN: r209928

10 years agogcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
Marek Polacek [Wed, 30 Apr 2014 07:34:43 +0000 (07:34 +0000)]
gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.

* gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
* builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
* flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
* opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
c-family/
* c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs.  Perform
INT_MIN / -1 sanitization only for integer types.
c/
* c-typeck.c (build_binary_op): Call ubsan_instrument_division
also when SANITIZE_FLOAT_DIVIDE is on.
cp/
* typeck.c (cp_build_binary_op): Call ubsan_instrument_division
even when SANITIZE_FLOAT_DIVIDE is on.  Set doing_div_or_mod even
for non-integer types.
testsuite/
* c-c++-common/ubsan/div-by-zero-5.c: Fix formatting.
* c-c++-common/ubsan/float-div-by-zero-1.c: New test.

From-SVN: r209927

10 years agore PR c/60139 (Imprecise column number for -pedantic on non-computable initializer...
Marek Polacek [Wed, 30 Apr 2014 06:14:39 +0000 (06:14 +0000)]
re PR c/60139 (Imprecise column number for -pedantic on non-computable initializer element)

PR c/60139
* c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
and pedwarn_init.  Use loc insted of input_location.

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

From-SVN: r209926

10 years agore PR c/60351 (Incorrect column number for warning on "right shift count is negative")
Marek Polacek [Wed, 30 Apr 2014 06:08:17 +0000 (06:08 +0000)]
re PR c/60351 (Incorrect column number for warning on "right shift count is negative")

PR c/60351
* c-typeck.c (build_binary_op): Use location when warning about
shift count.

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

From-SVN: r209925

10 years agocompiler: Don't overwrite memory if an archive has a bad file name.
Ian Lance Taylor [Wed, 30 Apr 2014 02:38:30 +0000 (02:38 +0000)]
compiler: Don't overwrite memory if an archive has a bad file name.

From-SVN: r209924

10 years agoDaily bump.
GCC Administrator [Wed, 30 Apr 2014 00:18:00 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r209922

10 years agoAdd execution tests of ARM ZIP Intrinsics.
Alan Lawrence [Tue, 29 Apr 2014 19:14:43 +0000 (19:14 +0000)]
Add execution tests of ARM ZIP Intrinsics.

* gcc.target/arm/simd/simd.exp: New file.
* gcc.target/arm/simd/vzipqf32_1.c: New file.
* gcc.target/arm/simd/vzipqp16_1.c: New file.
* gcc.target/arm/simd/vzipqp8_1.c: New file.
* gcc.target/arm/simd/vzipqs16_1.c: New file.
* gcc.target/arm/simd/vzipqs32_1.c: New file.
* gcc.target/arm/simd/vzipqs8_1.c: New file.
* gcc.target/arm/simd/vzipqu16_1.c: New file.
* gcc.target/arm/simd/vzipqu32_1.c: New file.
* gcc.target/arm/simd/vzipqu8_1.c: New file.
* gcc.target/arm/simd/vzipf32_1.c: New file.
* gcc.target/arm/simd/vzipp16_1.c: New file.
* gcc.target/arm/simd/vzipp8_1.c: New file.
* gcc.target/arm/simd/vzips16_1.c: New file.
* gcc.target/arm/simd/vzips32_1.c: New file.
* gcc.target/arm/simd/vzips8_1.c: New file.
* gcc.target/arm/simd/vzipu16_1.c: New file.
* gcc.target/arm/simd/vzipu32_1.c: New file.
* gcc.target/arm/simd/vzipu8_1.c: New file.

From-SVN: r209908

10 years agoDR 1351 Represent the unevaluated exception specification of an implicitly declared...
Jason Merrill [Tue, 29 Apr 2014 18:04:50 +0000 (14:04 -0400)]
DR 1351 Represent the unevaluated exception specification of an implicitly declared or deleted function with a simple placeholder...

DR 1351
Represent the unevaluated exception specification of an implicitly
declared or deleted function with a simple placeholder, not a list
of functions.
* cp-tree.h (UNEVALUATED_NOEXCEPT_SPEC_P): New.
* except.c (unevaluated_noexcept_spec): New.
* class.c (deduce_noexcept_on_destructor): Use it.
* decl.c (check_redeclaration_exception_specification): Call
maybe_instantiate_noexcept.
(duplicate_decls): Call it before merge_types.
(start_preparsed_function): Call maybe_instantiate_noexcept.
* decl2.c (mark_used): Call maybe_instantiate_noexcept earlier.
* init.c (get_nsdmi): Factor out of perform_member_init.
* method.c (process_subob_fn): Call maybe_instantiate_noexcept.
(walk_field_subobs): Consider NSDMI for EH spec.
(get_defaulted_eh_spec): New.
(implicitly_declare_fn): Use unevaluated_noexcept_spec.
(defaulted_late_check): Defer EH checking in non-template classes.
(after_nsdmi_defaulted_late_checks): New.
* parser.c (cp_parser_class_specifier_1): Use it.
(unparsed_classes): New macro.
* parser.h (cp_unparsed_functions_entry_d): Add classes field.
* pt.c (maybe_instantiate_noexcept): Use get_defaulted_eh_spec.
Remove list-of-functions handling.
* typeck2.c (merge_exception_specifiers): Remove list-of-functions
handling and FN parameter.
* typeck.c (merge_types): Adjust.

From-SVN: r209907

10 years agoarm_neon.h (vzip1_f32, [...]): Replace inline __asm__ with __builtin_shuffle.
Alan Lawrence [Tue, 29 Apr 2014 16:55:48 +0000 (16:55 +0000)]
arm_neon.h (vzip1_f32, [...]): Replace inline __asm__ with __builtin_shuffle.

* config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.

From-SVN: r209906

10 years agore PR c++/51707 ([c++11] constexpr constructor cannot initialize const reference...
Paolo Carlini [Tue, 29 Apr 2014 16:53:27 +0000 (16:53 +0000)]
re PR c++/51707 ([c++11] constexpr constructor cannot initialize const reference member)

2014-04-29  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/51707
* g++.dg/cpp0x/constexpr-51707.C: New.

From-SVN: r209905

10 years agoDump the return type of functions in gimple dumps
David Malcolm [Tue, 29 Apr 2014 15:02:16 +0000 (15:02 +0000)]
Dump the return type of functions in gimple dumps

gcc/
* tree-cfg.c (dump_function_to_file): Dump the return type of
functions, in a line to itself before the function body, mimicking
the layout of a C function.

gcc/testsuite/
* gcc.dg/tree-ssa/pr23401.c: Update the expected number of
occurrences of "int" in the gimple dump to reflect that the return
types of functions now show up in such dumps.
* gcc.dg/tree-ssa/pr27810.c: Likewise.

From-SVN: r209902

10 years agore PR tree-optimization/60971 (Wrong code when coercing unsigned char to bool)
Jakub Jelinek [Tue, 29 Apr 2014 14:44:07 +0000 (16:44 +0200)]
re PR tree-optimization/60971 (Wrong code when coercing unsigned char to bool)

PR tree-optimization/60971
* tree-tailcall.c (process_assignment): Reject conversions which
reduce precision.

* c-c++-common/turtore/pr60971.c: New test.

From-SVN: r209900

10 years agomsp430.md (umulsidi): Fix typo.
Nick Clifton [Tue, 29 Apr 2014 13:59:00 +0000 (13:59 +0000)]
msp430.md (umulsidi): Fix typo.

* config/msp430/msp430.md (umulsidi): Fix typo.
(mulhisi3): Enable even inside interrupt handlers.
* config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
bigger return address pushed in large mode.

From-SVN: r209898

10 years agoRemove PUSH_ARGS_REVERSED from the RTL expander.
James Greenhalgh [Tue, 29 Apr 2014 13:46:23 +0000 (13:46 +0000)]
Remove PUSH_ARGS_REVERSED from the RTL expander.

gcc/

* calls.c (initialize_argument_information): Always treat
PUSH_ARGS_REVERSED as 1, simplify code accordingly.
(expand_call): Likewise.
(emit_library_call_calue_1): Likewise.
* expr.c (PUSH_ARGS_REVERSED): Do not define.
(emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
code accordingly.

From-SVN: r209897

10 years agoMAINTAINERS (Write After Approval): Put myself in correct order.
Alan Lawrence [Tue, 29 Apr 2014 13:20:52 +0000 (13:20 +0000)]
MAINTAINERS (Write After Approval): Put myself in correct order.

* MAINTAINERS (Write After Approval): Put myself in correct order.

From-SVN: r209896

10 years agoMAINTAINERS (Write After Approval): Add myself.
Alan Lawrence [Tue, 29 Apr 2014 13:14:38 +0000 (13:14 +0000)]
MAINTAINERS (Write After Approval): Add myself.

* MAINTAINERS (Write After Approval): Add myself.

From-SVN: r209895

10 years agoarc.c (arc_select_cc_mode): Fix parentheses.
Nick Clifton [Tue, 29 Apr 2014 13:09:03 +0000 (13:09 +0000)]
arc.c (arc_select_cc_mode): Fix parentheses.

* config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
(arc_init_reg_tables): Use a machine_mode enum to iterate over
available modes.
* config/m32r/m32r.c (init_reg_tables): Likewise.
* config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
enum to hold the modes.

From-SVN: r209894

10 years agoAdd execution + assembler tests of the AArch64 ZIP Intrinsics.
Alan Lawrence [Tue, 29 Apr 2014 13:08:46 +0000 (13:08 +0000)]
Add execution + assembler tests of the AArch64 ZIP Intrinsics.

* gcc.target/aarch64/simd/simd.exp: New file.
* gcc.target/aarch64/simd/vzipf32_1.c: New file.
* gcc.target/aarch64/simd/vzipf32.x: New file.
* gcc.target/aarch64/simd/vzipp16_1.c: New file.
* gcc.target/aarch64/simd/vzipp16.x: New file.
* gcc.target/aarch64/simd/vzipp8_1.c: New file.
* gcc.target/aarch64/simd/vzipp8.x: New file.
* gcc.target/aarch64/simd/vzipqf32_1.c: New file.
* gcc.target/aarch64/simd/vzipqf32.x: New file.
* gcc.target/aarch64/simd/vzipqp16_1.c: New file.
* gcc.target/aarch64/simd/vzipqp16.x: New file.
* gcc.target/aarch64/simd/vzipqp8_1.c: New file.
* gcc.target/aarch64/simd/vzipqp8.x: New file.
* gcc.target/aarch64/simd/vzipqs16_1.c: New file.
* gcc.target/aarch64/simd/vzipqs16.x: New file.
* gcc.target/aarch64/simd/vzipqs32_1.c: New file.
* gcc.target/aarch64/simd/vzipqs32.x: New file.
* gcc.target/aarch64/simd/vzipqs8_1.c: New file.
* gcc.target/aarch64/simd/vzipqs8.x: New file.
* gcc.target/aarch64/simd/vzipqu16_1.c: New file.
* gcc.target/aarch64/simd/vzipqu16.x: New file.
* gcc.target/aarch64/simd/vzipqu32_1.c: New file.
* gcc.target/aarch64/simd/vzipqu32.x: New file.
* gcc.target/aarch64/simd/vzipqu8_1.c: New file.
* gcc.target/aarch64/simd/vzipqu8.x: New file.
* gcc.target/aarch64/simd/vzips16_1.c: New file.
* gcc.target/aarch64/simd/vzips16.x: New file.
* gcc.target/aarch64/simd/vzips32_1.c: New file.
* gcc.target/aarch64/simd/vzips32.x: New file.
* gcc.target/aarch64/simd/vzips8_1.c: New file.
* gcc.target/aarch64/simd/vzips8.x: New file.
* gcc.target/aarch64/simd/vzipu16_1.c: New file.
* gcc.target/aarch64/simd/vzipu16.x: New file.
* gcc.target/aarch64/simd/vzipu32_1.c: New file.
* gcc.target/aarch64/simd/vzipu32.x: New file.
* gcc.target/aarch64/simd/vzipu8_1.c: New file.
* gcc.target/aarch64/simd/vzipu8.x: New file.

From-SVN: r209893

10 years agodominance.c (free_dominance_info): Add overload with function parameter.
Richard Biener [Tue, 29 Apr 2014 11:37:55 +0000 (11:37 +0000)]
dominance.c (free_dominance_info): Add overload with function parameter.

2014-04-29  Richard Biener  <rguenther@suse.de>

* dominance.c (free_dominance_info): Add overload with
function parameter.
(dom_info_state): Likewise.
(dom_info_available_p): Likewise.
* basic-block.h (free_dominance_info, dom_info_state,
dom_info_available_p): Declare overloads.
* passes.c (execute_function_todo): Verify that verifiers
don't change dominator info state.  Drop dominator info
for IPA pass invocations.
* cgraph.c (release_function_body): Restore asserts that
dominator information is released.

From-SVN: r209892

10 years agoinvoke.texi: Fix typo.
Patrick Palka [Tue, 29 Apr 2014 09:30:20 +0000 (16:30 +0700)]
invoke.texi: Fix typo.

2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>

* doc/invoke.texi: Fix typo.
* tree-vrp.c: Fix typos.
* gimple.c (infer_nonnull_range): Reorder operands of an &&
condition.

From-SVN: r209891

10 years agoaarch64.md (mov<mode>cc): New for GPF.
Zhenqiang Chen [Tue, 29 Apr 2014 05:10:11 +0000 (05:10 +0000)]
aarch64.md (mov<mode>cc): New for GPF.

2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>

* config/aarch64/aarch64.md (mov<mode>cc): New for GPF.

2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>

* gcc.target/aarch64/fcsel_1.c: New test case.

From-SVN: r209889

10 years agore PR fortran/60810 (list directed io from array results in end of file)
Jerry DeLisle [Tue, 29 Apr 2014 03:13:34 +0000 (03:13 +0000)]
re PR fortran/60810 (list directed io from array results in end of file)

2014-04-28  Jerry DeLisle  <jvdelisle@gcc.gnu>

PR libfortran/60810
* gfortran.dg/arrayio_13.f90: New test.

From-SVN: r209888

10 years agoDaily bump.
GCC Administrator [Tue, 29 Apr 2014 00:16:39 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r209887

10 years ago[AArch64] Improve vst4_lane intrinsics
James Greenhalgh [Mon, 28 Apr 2014 21:05:51 +0000 (21:05 +0000)]
[AArch64] Improve vst4_lane intrinsics

gcc/

* config/aarch64/aarch64-builtins.c
(aarch64_types_storestruct_lane_qualifiers): New.
(TYPES_STORESTRUCT_LANE): Likewise.
* config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
(st3_lane): Likewise.
(st4_lane): Likewise.
* config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
(vec_store_lanesci_lane<mode>): Likewise.
(vec_store_lanesxi_lane<mode>): Likewise.
(aarch64_st2_lane<VQ:mode>): Likewise.
(aarch64_st3_lane<VQ:mode>): Likewise.
(aarch64_st4_lane<VQ:mode>): Likewise.
* config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
* config/aarch64/arm_neon.h
(__ST2_LANE_FUNC): Rewrite using builtins, update use points to
use new macro arguments.
(__ST3_LANE_FUNC): Likewise.
(__ST4_LANE_FUNC): Likewise.
* config/aarch64/iterators.md (V_TWO_ELEM): New.
(V_THREE_ELEM): Likewise.
(V_FOUR_ELEM): Likewise.

From-SVN: r209880

10 years agoAdd a class hierarchy diagram to gimple.texi
David Malcolm [Mon, 28 Apr 2014 21:02:28 +0000 (21:02 +0000)]
Add a class hierarchy diagram to gimple.texi

2014-04-28  David Malcolm  <dmalcolm@redhat.com>

* doc/gimple.texi: Replace the description of the now-defunct
union gimple_statement_d with a diagram showing the
gimple_statement_base class hierarchy and its relationships to
the GSS_ and GIMPLE_ enums.

From-SVN: r209879

10 years ago[AArch64] Relax modes_tieable_p and cannot_change_mode_class
James Greenhalgh [Mon, 28 Apr 2014 21:00:38 +0000 (21:00 +0000)]
[AArch64] Relax modes_tieable_p and cannot_change_mode_class

gcc/

* config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
* config/aarch64/aarch64.c
(aarch64_cannot_change_mode_class): Weaken conditions.
(aarch64_modes_tieable_p): New.
* config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.

From-SVN: r209878

10 years agosync.md (AINT mode_iterator): Move definition.
Pat Haugen [Mon, 28 Apr 2014 20:21:29 +0000 (20:21 +0000)]
sync.md (AINT mode_iterator): Move definition.

* config/rs6000/sync.md (AINT mode_iterator): Move definition.
(loadsync_<mode>): Change mode.
(load_quadpti, store_quadpti): New.
(atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
* config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.

From-SVN: r209873

10 years agoEnable ada for aarch64-linux
Richard Henderson [Mon, 28 Apr 2014 19:33:08 +0000 (12:33 -0700)]
Enable ada for aarch64-linux

        * gcc-interface/Makefile.in: Support aarch64-linux.

From-SVN: r209871

10 years agotree-sra.c (sra_modify_expr): Generate new memory accesses with same alias type as...
Martin Jambor [Mon, 28 Apr 2014 16:55:40 +0000 (18:55 +0200)]
tree-sra.c (sra_modify_expr): Generate new memory accesses with same alias type as the original statement.

2014-04-28  Martin Jambor  <mjambor@suse.cz>

* tree-sra.c (sra_modify_expr): Generate new memory accesses with
same alias type as the original statement.
(subreplacement_assignment_data): New type.
(handle_unscalarized_data_in_subtree): New type of parameter,
generate new memory accesses with same alias type as the original
statement.
(load_assign_lhs_subreplacements): Likewise.
(sra_modify_constructor_assign): Generate new memory accesses with
same alias type as the original statement.

testsuite/
        * gcc.dg/tree-ssa/sra-14.c: New test.

From-SVN: r209868

10 years agoexp_dbug.ads (Get_External_Name): Add 'False' default to Has_Suffix, add 'Suffix...
Eric Botcazou [Mon, 28 Apr 2014 14:58:28 +0000 (14:58 +0000)]
exp_dbug.ads (Get_External_Name): Add 'False' default to Has_Suffix, add 'Suffix' parameter and adjust comment.

* exp_dbug.ads (Get_External_Name): Add 'False' default to Has_Suffix,
add 'Suffix' parameter and adjust comment.
(Get_External_Name_With_Suffix): Delete.
* exp_dbug.adb (Get_External_Name_With_Suffix): Merge into...
(Get_External_Name): ...here.  Add 'False' default to Has_Suffix, add
'Suffix' parameter.
(Get_Encoded_Name): Remove 2nd argument in call to Get_External_Name.
Call Get_External_Name instead of Get_External_Name_With_Suffix.
(Get_Secondary_DT_External_Name): Likewise.
* exp_cg.adb (Write_Call_Info): Likewise.
* exp_disp.adb (Export_DT): Likewise.
(Import_DT): Likewise.
* comperr.ads (Compiler_Abort): Remove Code parameter and add From_GCC
parameter with False default.
* comperr.adb (Compiler_Abort): Likewise.  Adjust accordingly.
* types.h (Fat_Pointer): Rename into...
(String_Pointer): ...this.  Add comment on interfacing rules.
* fe.h (Compiler_Abort): Adjust for above renaming.
(Error_Msg_N): Likewise.
(Error_Msg_NE): Likewise.
(Get_External_Name): Likewise.  Add third parameter.
(Get_External_Name_With_Suffix): Delete.
* gcc-interface/decl.c (STDCALL_PREFIX): Define.
(create_concat_name): Adjust call to Get_External_Name, remove call to
Get_External_Name_With_Suffix, use STDCALL_PREFIX, adjust for renaming.
* gcc-interface/trans.c (post_error): Likewise.
(post_error_ne): Likewise.
* gcc-interface/misc.c (internal_error_function): Likewise.

From-SVN: r209866

10 years agotree-pass.h (TODO_verify_il): Define.
Richard Biener [Mon, 28 Apr 2014 14:42:06 +0000 (14:42 +0000)]
tree-pass.h (TODO_verify_il): Define.

2014-04-28  Richard Biener  <rguenther@suse.de>

* tree-pass.h (TODO_verify_il): Define.
(TODO_verify_all): Complete properly.
* passes.c (execute_function_todo): Move existing loop-closed
SSA verification under TODO_verify_il.
(execute_one_pass): Trigger TODO_verify_il at todo-after time.
* graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
Fix tree sharing issue.

From-SVN: r209865

10 years agore PR middle-end/60092 (posix_memalign not recognized to derive alias and alignment...
Richard Biener [Mon, 28 Apr 2014 14:36:13 +0000 (14:36 +0000)]
re PR middle-end/60092 (posix_memalign not recognized to derive alias and alignment info)

2014-04-28  Richard Biener  <rguenther@suse.de>

PR middle-end/60092
* builtins.def (DEF_C11_BUILTIN): Add.
(BUILT_IN_ALIGNED_ALLOC): Likewise.
* coretypes.h (enum function_class): Add function_c11_misc.
* tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
(call_may_clobber_ref_p_1): Likewise.
* tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
(mark_all_reaching_defs_necessary_1): Likewise.
(propagate_necessity): Likewise.
(eliminate_unnecessary_stmts): Likewise.
* tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.

ada/
* gcc-interface/utils.c: Define flag_isoc11.

lto/
* lto-lang.c: Define flag_isoc11.

* gcc.dg/tree-ssa/alias-32.c: New testcase.
* gcc.dg/vect/pr60092.c: Likewise.

From-SVN: r209863

10 years agotree-vrp.c (vrp_var_may_overflow): Remove.
Richard Biener [Mon, 28 Apr 2014 14:07:51 +0000 (14:07 +0000)]
tree-vrp.c (vrp_var_may_overflow): Remove.

2014-04-28  Richard Biener  <rguenther@suse.de>

* tree-vrp.c (vrp_var_may_overflow): Remove.
(vrp_visit_phi_node): Rather than bumping to +-INF possibly
with overflow immediately bump to one before that value and
let iteration figure out overflow status.

* gcc.dg/tree-ssa/vrp91.c: New testcase.
* gcc.dg/Wstrict-overflow-14.c: XFAIL.
* gcc.dg/Wstrict-overflow-15.c: Likewise.
* gcc.dg/Wstrict-overflow-18.c: Remove XFAIL.

From-SVN: r209862

10 years agoconfigure.ac: Do valgrind header checks unconditionally.
Richard Biener [Mon, 28 Apr 2014 14:01:40 +0000 (14:01 +0000)]
configure.ac: Do valgrind header checks unconditionally.

2014-04-28  Richard Biener  <rguenther@suse.de>

* configure.ac: Do valgrind header checks unconditionally.
Add --enable-valgrind-annotations.
* system.h: Guard valgrind header inclusion with
ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
* alloc-pool.c (pool_alloc, pool_free): Use
ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
to guard possibly dead code.
* config.in: Regenerated.
* configure: Likewise.

From-SVN: r209861

10 years agore PR tree-optimization/60902 (ffmpeg built with gcc 4.9 RC produces incorrect flac...
Jeff Law [Mon, 28 Apr 2014 13:38:19 +0000 (07:38 -0600)]
re PR tree-optimization/60902 (ffmpeg built with gcc 4.9 RC produces incorrect flac playback code)

PR tree-optimization/60902
* tree-ssa-threadedge.c
(record_temporary_equivalences_from_stmts_at_dest): Only iterate
over real defs when invalidating outputs from statements that do not
produce useful outputs for threading.

From-SVN: r209860

10 years agore PR tree-optimization/60979 (ICE: in gimple_redirect_edge_and_branch_force, at...
Richard Biener [Mon, 28 Apr 2014 13:13:50 +0000 (13:13 +0000)]
re PR tree-optimization/60979 (ICE: in gimple_redirect_edge_and_branch_force, at tree-cfg.c:5544, w/ -O -ftree-loop-linear or -fgraphite-identity)

2014-04-28  Richard Biener  <rguenther@suse.de>

PR tree-optimization/60979
* graphite-scop-detection.c (scopdet_basic_block_info): Reject
SCOPs that end in a block with a successor with abnormal
predecessors.

* gcc.dg/graphite/pr60979.c: New testcase.

From-SVN: r209859

10 years ago[ARM/AArch64] Use signed chars in gcc.dg/pr60114.c.
Kyrylo Tkachov [Mon, 28 Apr 2014 12:42:54 +0000 (12:42 +0000)]
[ARM/AArch64] Use signed chars in gcc.dg/pr60114.c.

PR c/60983
* gcc.dg/pr60114.c: Use signed chars.

From-SVN: r209858

10 years agore PR c++/59120 ([c++11] ICE with invalid template alias)
Paolo Carlini [Mon, 28 Apr 2014 12:32:06 +0000 (12:32 +0000)]
re PR c++/59120 ([c++11] ICE with invalid template alias)

/cp
2014-04-28  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59120
* parser.c (cp_parser_alias_declaration): Check return value of
cp_parser_require.

/testsuite
2014-04-28  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59120
* g++.dg/cpp0x/alias-decl-43.C: New.

From-SVN: r209857

10 years agotree-pass.h (execute_pass_list): Adjust prototype.
Richard Biener [Mon, 28 Apr 2014 11:30:09 +0000 (11:30 +0000)]
tree-pass.h (execute_pass_list): Adjust prototype.

2014-04-28  Richard Biener  <rguenther@suse.de>

* tree-pass.h (execute_pass_list): Adjust prototype.
* passes.c (pass_manager::execute_early_local_passes):
Adjust.
(do_per_function): Change callback signature, push all actual
work to the callbals.
(do_per_function_toporder): Likewise.
(execute_function_dump): Adjust.
(execute_function_todo): Likewise.
(clear_last_verified): Likewise.
(verify_curr_properties): Likewise.
(update_properties_after_pass): Likewise.
(execute_pass_list_1): Split out from ...
(execute_pass_list): ... here.  Adjust.
(execute_ipa_pass_list): Likewise.
* cgraphunit.c (cgraph_add_new_function): Adjust.
(analyze_function): Likewise.
(expand_function): Likewise.
* cgraph.c (release_function_body): Free dominance info
here instead of asserting it was magically freed elsewhere.

From-SVN: r209856

10 years agoconfigure.ac: Tweak GAS check for LEON instructions on SPARC.
Eric Botcazou [Mon, 28 Apr 2014 10:03:46 +0000 (10:03 +0000)]
configure.ac: Tweak GAS check for LEON instructions on SPARC.

* configure.ac: Tweak GAS check for LEON instructions on SPARC.
* configure: Regenerate.
* config/sparc/sparc.opt (muser-mode): New option.
* config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
for LEON3.
(atomic_compare_and_swap_leon3_1): New instruction for LEON3.
* doc/invoke.texi (SPARC options): Document -muser-mode.

From-SVN: r209850