amodra [Fri, 6 Jun 2014 01:04:22 +0000 (01:04 +0000)]
PR target/61300
* doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
* doc/tm.texi: Regenerate.
* function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
Use throughout in place of REG_PARM_STACK_SPACE.
* config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
"incoming" param. Pass to rs6000_function_parms_need_stack.
(rs6000_function_parms_need_stack): Add "incoming" param, ignore
prototype_p when incoming. Use function decl when incoming
to handle K&R style functions.
* config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
(INCOMING_REG_PARM_STACK_SPACE): Define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211296
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Fri, 6 Jun 2014 00:17:00 +0000 (00:17 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211294
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Thu, 5 Jun 2014 20:55:44 +0000 (20:55 +0000)]
PR c++/43453
* decl.c (check_initializer): Collapse a TREE_LIST here.
* typeck2.c (store_init_value): Not here.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211290
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Thu, 5 Jun 2014 19:36:03 +0000 (19:36 +0000)]
2014-06-05 S. Gilles <sgilles@terpmail.umd.edu>
PR c/53119
* c-typeck.c (push_init_level, process_init_element,
pop_init_level): Correct check for zero initialization, move
missing brace warning to respect zero initialization.
PR c/53119
* gcc.dg/pr53119.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211289
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Thu, 5 Jun 2014 18:34:43 +0000 (18:34 +0000)]
PR target/52472
* cfgexpand.c (expand_debug_expr): Use address space of nested
TREE_TYPE for ADDR_EXPR and MEM_REF.
PR target/52472
* gcc.target/avr/pr52472.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211288
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Thu, 5 Jun 2014 18:25:02 +0000 (18:25 +0000)]
PR tree-optimization/61289
* tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
looking for those which match LHS. All callers changed.
(record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
parameters and code which manipulated them. All callers changed.
(record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
and DST_MAP parameters. Simplify invalidation code by just calling
invalidate_equivalences. All callers changed.
(thread_across_edge): Simplify now that we don't need to maintain
the map of equivalences to invalidate.
PR tree-optimization/61289
* g++.dg/pr61289.C: New test.
* g++.dg/pr61289-2.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211287
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Thu, 5 Jun 2014 17:34:48 +0000 (17:34 +0000)]
/cp
2014-06-05 Richard Biener <rguenther@suse.de>
Paolo Carlini <paolo.carlini@oracle.com>
PR c++/56961
* cp-gimplify.c (cp_gimplify_expr, [MODIFY_EXPR]): Rework
handling of empty classes.
/testsuite
2014-06-05 Richard Biener <rguenther@suse.de>
Paolo Carlini <paolo.carlini@oracle.com>
PR c++/56961
* g++.dg/parse/pr56961.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211286
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Thu, 5 Jun 2014 17:30:57 +0000 (17:30 +0000)]
* parser.c (cp_parser_diagnose_invalid_type_name): Give helpful note
for noexcept and thread_local, too.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211285
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Thu, 5 Jun 2014 17:30:51 +0000 (17:30 +0000)]
PR c++/61343
* decl.c (check_initializer): Maybe clear
DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211284
138bc75d-0d04-0410-961f-
82ee72b054a4
ktietz [Thu, 5 Jun 2014 17:03:52 +0000 (17:03 +0000)]
2014-06-05 Kai Tietz <ktietz@redhat.com>
Richard Henderson <rth@redhat.com>
PR target/46219
* config/i386/predicates.md (memory_nox32_operand): Add memory_operand
checking for !TARGET_X32.
* config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
(sibcall_intern): New define_insn, plus required peepholes.
(sibcall_pop_intern): Likewise.
(sibcall_value_intern): Likewise.
(sibcall_value_pop_intern): Likewise.
2014-06-05 Kai Tietz <ktietz@redhat.com>
PR target/46219
* gcc.target/i386/sibcall-4.c: Remove xfail.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211283
138bc75d-0d04-0410-961f-
82ee72b054a4
sandra [Thu, 5 Jun 2014 16:21:08 +0000 (16:21 +0000)]
2014-06-05 Julian Brown <julian@codesourcery.com>
Sandra Loosemore <sandra@codesourcery.com>
gcc/testsuite/
* gcc.target/arm/pr45094.c: Remove -mcpu=cortex-a8, dg-skip-if
options.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211282
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Thu, 5 Jun 2014 14:27:20 +0000 (14:27 +0000)]
2014-06-05 Richard Biener <rguenther@suse.de>
PR fortran/61418
* gfortranspec.c (spec_file): Remove.
(find_spec_file): Likewise.
(lang_specific_driver): Do not look for specs file in -L
or append -specs command line argument.
(lang_specific_pre_link): Always %:include libgfortran.spec.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211280
138bc75d-0d04-0410-961f-
82ee72b054a4
mshawcroft [Thu, 5 Jun 2014 13:19:44 +0000 (13:19 +0000)]
[AArch64] Add frame_size and hard_fp_offset to machine.frame
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211275
138bc75d-0d04-0410-961f-
82ee72b054a4
kyukhin [Thu, 5 Jun 2014 12:58:58 +0000 (12:58 +0000)]
gcc/
* tree-inline.c (tree_function_versioning): Check DF info existence
before accessing it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211274
138bc75d-0d04-0410-961f-
82ee72b054a4
mshawcroft [Thu, 5 Jun 2014 12:57:01 +0000 (12:57 +0000)]
[AArch64] Unify callee save slot allocation for X29 and X30.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211273
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Thu, 5 Jun 2014 12:42:29 +0000 (12:42 +0000)]
2014-06-05 Richard Biener <rguenther@suse.de>
PR c++/61004
* typeck.c (cp_build_indirect_ref): Do not emit strict-aliasing
warnings for accessing empty classes.
* g++.dg/diagnostic/pr61004.C: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211272
138bc75d-0d04-0410-961f-
82ee72b054a4
mshawcroft [Thu, 5 Jun 2014 12:22:07 +0000 (12:22 +0000)]
[AArch64] Restructure callee save slot allocation logic.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211271
138bc75d-0d04-0410-961f-
82ee72b054a4
mshawcroft [Thu, 5 Jun 2014 11:59:05 +0000 (11:59 +0000)]
[AArch64] Relocate saved_varargs_size.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211270
138bc75d-0d04-0410-961f-
82ee72b054a4
mshawcroft [Thu, 5 Jun 2014 11:37:44 +0000 (11:37 +0000)]
[AArch64] Clarify stack layout comment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211268
138bc75d-0d04-0410-961f-
82ee72b054a4
emsr [Thu, 5 Jun 2014 11:17:25 +0000 (11:17 +0000)]
PR c++/61038
I was asked to combine the escape logic for regular chars and strings
with the escape logic for user-defined literals chars and strings.
I just forgot the first time.
I forgot the ChangeLog!
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211267
138bc75d-0d04-0410-961f-
82ee72b054a4
emsr [Thu, 5 Jun 2014 11:12:08 +0000 (11:12 +0000)]
PR c++/61038
I was asked to combine the escape logic for regular chars and strings
with the escape logic for user-defined literals chars and strings.
I just forgot the first time.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211266
138bc75d-0d04-0410-961f-
82ee72b054a4
abennett [Thu, 5 Jun 2014 10:45:55 +0000 (10:45 +0000)]
2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
Prachi Godbole <Prachi.Godbole@imgtec.com>
* config/mips/mips-cpus.def: Add definition for p5600. Updated
mips32r5 entry to use PROCESSOR_P5600.
* config/mips/mips-tables.opt: Regenerate.
* config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
* config/mips/mips.c (mips_fmadd_bypass): New function.
(mips_rtx_cost_data): Add costs for p5600.
(mips_issue_rate): Add support for p5600.
(mips_multipass_dfa_lookahead): Likewise.
* config/mips/mips.h (TUNE_P5600): New define.
(TUNE_MACC_CHAINS): Add TUNE_P5600.
(MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
* config/mips/mips.md: Include p5600.md.
(processor): Add p5600.
* config/mips/p5600.md: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211265
138bc75d-0d04-0410-961f-
82ee72b054a4
kyukhin [Thu, 5 Jun 2014 10:26:18 +0000 (10:26 +0000)]
gcc/
* config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
* config/i386/predicates.md (palignr_operand): New.
Indicates if permutation is suitable for palignr instruction.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211264
138bc75d-0d04-0410-961f-
82ee72b054a4
kyukhin [Thu, 5 Jun 2014 10:24:22 +0000 (10:24 +0000)]
gcc/
PR tree-optimization/61319
* tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
stmt belongs to loop.
gcc/testsuite/
* gcc.dg/torture/pr61319.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211263
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Thu, 5 Jun 2014 09:53:19 +0000 (09:53 +0000)]
2014-06-05 Richard Biener <rguenther@suse.de>
* gimplify.c (create_tmp_from_val): Remove is_formal parameter
and set DECL_GIMPLE_REG_P unconditionally if appropriate.
(lookup_tmp_var): Adjust.
(prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211262
138bc75d-0d04-0410-961f-
82ee72b054a4
mpolacek [Thu, 5 Jun 2014 09:35:05 +0000 (09:35 +0000)]
PR c/56724
* c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass.
* gcc.dg/pr56724-3.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211261
138bc75d-0d04-0410-961f-
82ee72b054a4
schwab [Thu, 5 Jun 2014 08:09:39 +0000 (08:09 +0000)]
* g++.dg/cpp0x/initlist86.C (main): Initialize i.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211257
138bc75d-0d04-0410-961f-
82ee72b054a4
ramana [Thu, 5 Jun 2014 07:51:31 +0000 (07:51 +0000)]
Disable opt_enabled attribute.
2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
* config/arm/arm.md (enabled): Disable opt_enabled attribute.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211256
138bc75d-0d04-0410-961f-
82ee72b054a4
mpolacek [Thu, 5 Jun 2014 06:20:05 +0000 (06:20 +0000)]
PR c/49706
* doc/invoke.texi: Document -Wlogical-not-parentheses.
c-family/
* c-common.c (warn_logical_not_parentheses): New function.
* c-common.h (warn_logical_not_parentheses): Declare.
* c.opt (Wlogical-not-parentheses): New option.
c/
* c-typeck.c (parser_build_binary_op): Warn when logical not is used
on the left hand side operand of a comparison.
cp/
* parser.c (cp_parser_binary_expression): Warn when logical not is
used on the left hand side operand of a comparison.
testsuite/
* c-c++-common/pr49706.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211255
138bc75d-0d04-0410-961f-
82ee72b054a4
mpolacek [Thu, 5 Jun 2014 05:30:39 +0000 (05:30 +0000)]
PR c/48062
* c-decl.c (warn_if_shadowing): Call inform instead of warning_at.
Print note only if the warning was printed.
* gcc.dg/Wshadow-1.c: Use dg-message for "shadowed declaration".
* gcc.dg/Wshadow-3.c: Likewise.
* gcc.dg/pr48062.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211254
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Thu, 5 Jun 2014 00:17:16 +0000 (00:17 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211253
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Wed, 4 Jun 2014 23:15:33 +0000 (23:15 +0000)]
libgo: Merge from revision 18783:
00cce3a34d7e of master library.
This revision was committed January 7, 2014. The next
revision deleted runtime/mfinal.c. That will be done in a
subsequent merge.
This merge changes type descriptors to add a zero field,
pointing to a zero value for that type. This is implemented
as a common variable.
* go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
alignment parameters. Permit init parameter to be NULL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211249
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Wed, 4 Jun 2014 22:30:39 +0000 (22:30 +0000)]
/cp
2014-06-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/43453
* typeck.c (cp_build_modify_expr): Handle array of characters
initialized by a string literal.
* decl.c (check_initializer): Handle parenthesized string literal
as initializer.
* typeck2.c (store_init_value): Remove redundant check.
/testsuite
2014-06-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/43453
* g++.dg/init/pr43453.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211248
138bc75d-0d04-0410-961f-
82ee72b054a4
vries [Wed, 4 Jun 2014 20:18:47 +0000 (20:18 +0000)]
Use INTVAL only on CONST_INT in addptrdi3 and addptrsi3
2014-06-04 Tom de Vries <tom@codesourcery.com>
* config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
CONST_INT.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211246
138bc75d-0d04-0410-961f-
82ee72b054a4
glisse [Wed, 4 Jun 2014 18:38:18 +0000 (18:38 +0000)]
2014-06-04 Marc Glisse <marc.glisse@inria.fr>
PR tree-optimization/61385
gcc/
* tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
gcc/testsuite/
* gcc.dg/tree-ssa/pr61385.c: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211245
138bc75d-0d04-0410-961f-
82ee72b054a4
bernds [Wed, 4 Jun 2014 18:23:30 +0000 (18:23 +0000)]
* lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
changed to use fatal_error.
(main): Ensure lto_wrapper_cleanup is run atexit.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211243
138bc75d-0d04-0410-961f-
82ee72b054a4
rsandifo [Wed, 4 Jun 2014 17:44:09 +0000 (17:44 +0000)]
gcc/
* lra-constraints.c (valid_address_p): Move earlier in file.
(address_eliminator): New structure.
(satisfies_memory_constraint_p): New function.
(satisfies_address_constraint_p): Likewise.
(process_alt_operands, process_address, curr_insn_transform): Use them.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211242
138bc75d-0d04-0410-961f-
82ee72b054a4
rsandifo [Wed, 4 Jun 2014 17:34:49 +0000 (17:34 +0000)]
gcc/
* lra-int.h (lra_static_insn_data): Make operand_alternative a
const pointer.
(target_lra_int, default_target_lra_int, this_target_lra_int)
(op_alt_data): Delete.
* lra.h (lra_init): Delete.
* lra.c (default_target_lra_int, this_target_lra_int): Delete.
(init_insn_code_data_once): Remove op_alt_data handling.
(finish_insn_code_data_once): Likewise.
(init_op_alt_data): Delete.
(get_static_insn_data): Initialize operand_alternative to null.
(free_insn_recog_data): Cast operand_alternative before freeing it.
(setup_operand_alternative): Take the operand_alternative as
parameter and assume it isn't already cached in the static
insn data.
(lra_set_insn_recog_data): Update accordingly.
(lra_init): Delete.
* ira.c (ira_init): Don't call lra_init.
* target-globals.h (this_target_lra_int): Declare.
(target_globals): Remove lra_int.
(restore_target_globals): Update accordingly.
* target-globals.c: Don't include lra-int.h.
(default_target_globals, save_target_globals): Remove lra_int.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211241
138bc75d-0d04-0410-961f-
82ee72b054a4
rsandifo [Wed, 4 Jun 2014 17:34:40 +0000 (17:34 +0000)]
gcc/
* recog.h (operand_alternative): Convert reg_class, reject,
matched and matches into bitfields.
(preprocess_constraints): New overload.
(preprocess_insn_constraints): New function.
(preprocess_constraints): Take the insn as parameter.
(recog_op_alt): Change into a pointer.
(target_recog): Add x_op_alt.
* recog.c (asm_op_alt): New variable.
(recog_op_alt): Change into a pointer.
(preprocess_constraints): New overload, replacing the old function
definition with one that doesn't use global state.
(preprocess_insn_constraints): New function.
(preprocess_constraints): Use them. Take the insn as parameter.
Use asm_op_alt for asms.
(recog_init): Free existing x_op_alt entries.
* ira-lives.c (check_and_make_def_conflict): Make operand_alternative
pointer const.
(make_early_clobber_and_input_conflicts): Likewise.
(process_bb_node_lives): Pass the insn to process_constraints.
* reg-stack.c (check_asm_stack_operands): Likewise.
(subst_asm_stack_regs): Likewise.
* regcprop.c (copyprop_hardreg_forward_1): Likewise.
* regrename.c (build_def_use): Likewise.
* sched-deps.c (sched_analyze_insn): Likewise.
* sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
* config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
(note_invalid_constants): Likewise.
* config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
(ix86_legitimate_combined_insn): Make operand_alternative pointer
const.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211240
138bc75d-0d04-0410-961f-
82ee72b054a4
rsandifo [Wed, 4 Jun 2014 17:34:19 +0000 (17:34 +0000)]
gcc/
* recog.c (preprocess_constraints): Don't skip disabled alternatives.
* ira-lives.c (check_and_make_def_conflict): Check for disabled
alternatives.
(make_early_clobber_and_input_conflicts): Likewise.
* config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211239
138bc75d-0d04-0410-961f-
82ee72b054a4
rsandifo [Wed, 4 Jun 2014 17:34:03 +0000 (17:34 +0000)]
gcc/
* recog.h (alternative_class): New function.
(which_op_alt): Return a const recog_op_alt.
* reg-stack.c (check_asm_stack_operands): Update type accordingly.
(subst_asm_stack_regs): Likewise.
* config/arm/arm.c (note_invalid_constants): Likewise.
* regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
the operand_alternative; use alternative class instead.
* sel-sched.c (get_reg_class): Likewise.
* regrename.c (build_def_use): Likewise.
(hide_operands, restore_operands, record_out_operands): Update type
accordingly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211238
138bc75d-0d04-0410-961f-
82ee72b054a4
rsandifo [Wed, 4 Jun 2014 17:33:51 +0000 (17:33 +0000)]
gcc/
* recog.h (recog_op_alt): Convert to a flat array.
(which_op_alt): New function.
* recog.c (recog_op_alt): Convert to a flat array.
(preprocess_constraints): Update accordingly, grouping all
operands of the same alternative together, rather than the
other way around.
* ira-lives.c (check_and_make_def_conflict): Likewise.
(make_early_clobber_and_input_conflicts): Likewise.
* config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
* reg-stack.c (check_asm_stack_operands): Use which_op_alt.
(subst_asm_stack_regs): Likewise.
* regcprop.c (copyprop_hardreg_forward_1): Likewise.
* regrename.c (hide_operands, record_out_operands): Likewise.
(build_def_use): Likewise.
* sel-sched.c (get_reg_class): Likewise.
* config/arm/arm.c (note_invalid_constants): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211237
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 4 Jun 2014 15:51:01 +0000 (15:51 +0000)]
PR c++/51253
PR c++/61382
gcc/
* gimplify.c (gimplify_arg): Non-static.
* gimplify.h: Declare it.
gcc/cp/
* cp-gimplify.c (cp_gimplify_expr): Handle CALL_EXPR_LIST_INIT_P here.
* semantics.c (simplify_aggr_init_expr): Not here, just copy it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211235
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Wed, 4 Jun 2014 13:51:18 +0000 (13:51 +0000)]
2014-06-04 Richard Biener <rguenther@suse.de>
* tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
TREE_PUBLIC and DECL_EXTERNAL decls.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211233
138bc75d-0d04-0410-961f-
82ee72b054a4
abennett [Wed, 4 Jun 2014 13:10:49 +0000 (13:10 +0000)]
2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
gcc/
* regcprop.c (copyprop_hardreg_forward_1): Account for
HARD_REGNO_CALL_PART_CLOBBERED.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211230
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Wed, 4 Jun 2014 12:35:26 +0000 (12:35 +0000)]
2014-06-04 Richard Biener <rguenther@suse.de>
* configure.ac: Check whether the underlying type of int64_t
is long or long long.
* configure: Regenerate.
* config.in: Likewise.
* hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
(HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211228
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Wed, 4 Jun 2014 11:56:34 +0000 (11:56 +0000)]
2014-06-04 Richard Biener <rguenther@suse.de>
PR tree-optimization/60098
* tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
we hit a kill.
(dse_optimize_stmt): Simplify, now that we found a kill
earlier.
* gcc.dg/tree-ssa/ssa-dse-15.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211224
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Wed, 4 Jun 2014 11:55:29 +0000 (11:55 +0000)]
2014-06-04 Richard Biener <rguenther@suse.de>
* tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
of accesses with non-invariant address.
* gcc.dg/tree-ssa/ssa-dse-16.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211223
138bc75d-0d04-0410-961f-
82ee72b054a4
marxin [Wed, 4 Jun 2014 11:11:09 +0000 (11:11 +0000)]
New callgraph wrapper function creation added
* cgraph.h (cgraph_make_wrapper): New function introduced.
* cgraphunit.c (cgraph_make_wrapper): The function implementation.
* ipa-inline.h (inline_analyze_function): The function is global.
* ipa-inline-analysis.c (inline_analyze_function): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211222
138bc75d-0d04-0410-961f-
82ee72b054a4
kyukhin [Wed, 4 Jun 2014 10:07:21 +0000 (10:07 +0000)]
gcc/c/
PR c/58942
* c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
with a pointer.
gcc/cp/
PR c/58942
* cp-array-notation.c (expand_sec_reduce_builtin): Handle the case
with a pointer.
gcc/testsuite/
PR c/58942
* c-c++-common/cilk-plus/AN/pr58942.c: Check for correct handling of
the case with a pointer.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211220
138bc75d-0d04-0410-961f-
82ee72b054a4
marxin [Wed, 4 Jun 2014 09:44:33 +0000 (09:44 +0000)]
New attribute lookup function addition
* tree.h (private_lookup_attribute_starting): New function.
(lookup_attribute_starting): Likewise.
* tree.c (private_lookup_attribute_starting): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211219
138bc75d-0d04-0410-961f-
82ee72b054a4
marxin [Wed, 4 Jun 2014 09:39:24 +0000 (09:39 +0000)]
Enhancement of call graph API
* cgraph.h (expand_thunk): New argument added.
(address_taken_from_non_vtable_p): New global function.
* ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
* cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
* cgraphunit.c (analyze_function): Likewise.
(assemble_thunks_and_aliases): Argument added to call.
(expand_thunk): New argument forces to produce GIMPLE thunk.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211218
138bc75d-0d04-0410-961f-
82ee72b054a4
marxin [Wed, 4 Jun 2014 09:31:25 +0000 (09:31 +0000)]
Make coverage_compute_cfg_checksum callable with arg.
* coverage.h (coverage_compute_cfg_checksum): Argument added.
* coverage.c (coverage_compute_cfg_checksum): Likewise.
* profile.c (branch_prob): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211217
138bc75d-0d04-0410-961f-
82ee72b054a4
jamborm [Wed, 4 Jun 2014 09:23:52 +0000 (09:23 +0000)]
2014-06-04 Martin Jambor <mjambor@suse.cz>
PR ipa/61340
* ipa-pure-const.c (propagate_pure_const): Add unreachable default
handler for switch on an ipa_ref_use enum.
* ipa-reference.c (analyze_function): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211216
138bc75d-0d04-0410-961f-
82ee72b054a4
thopre01 [Wed, 4 Jun 2014 09:11:48 +0000 (09:11 +0000)]
Add myself to the MAINTAINERS file.
2014-06-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
* MAINTAINERS (Write After Approval): Add myself.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211215
138bc75d-0d04-0410-961f-
82ee72b054a4
ktietz [Wed, 4 Jun 2014 07:46:55 +0000 (07:46 +0000)]
* recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
from old call-instruction.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211213
138bc75d-0d04-0410-961f-
82ee72b054a4
mpolacek [Wed, 4 Jun 2014 07:26:06 +0000 (07:26 +0000)]
PR c/30020
* c-common.c (check_case_bounds): Add location parameter.
Use it.
(c_add_case_label): Pass loc to check_case_bounds.
* c-c++-common/pr30020.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211212
138bc75d-0d04-0410-961f-
82ee72b054a4
amker [Wed, 4 Jun 2014 03:45:50 +0000 (03:45 +0000)]
* config/aarch64/aarch64.c (aarch64_classify_address)
(aarch64_legitimize_reload_address): Support full addressing modes
for vector modes.
* config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
(*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211211
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Wed, 4 Jun 2014 00:17:09 +0000 (00:17 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211210
138bc75d-0d04-0410-961f-
82ee72b054a4
pinskia [Tue, 3 Jun 2014 22:44:39 +0000 (22:44 +0000)]
2014-06-03 Andrew Pinski <apinski@cavium.com>
* config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
for OP0.
2014-06-03 Andrew Pinski <apinski@cavium.com>
* gcc.c-torture/compile/
20140528-1.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211206
138bc75d-0d04-0410-961f-
82ee72b054a4
pinskia [Tue, 3 Jun 2014 22:42:47 +0000 (22:42 +0000)]
2014-06-03 Andrew Pinski <apinski@cavium.com>
* config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
(aarch64_rtx_costs): Use aarch64_if_then_else_costs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211205
138bc75d-0d04-0410-961f-
82ee72b054a4
ktietz [Tue, 3 Jun 2014 22:01:19 +0000 (22:01 +0000)]
* config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
for 64-bit ms-abi.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211204
138bc75d-0d04-0410-961f-
82ee72b054a4
dehao [Tue, 3 Jun 2014 21:36:05 +0000 (21:36 +0000)]
2014-06-03 Dehao Chen <dehao@google.com>
* tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
the same loop.
* gcc.dg/tree-prof/merge_block.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211202
138bc75d-0d04-0410-961f-
82ee72b054a4
uros [Tue, 3 Jun 2014 17:57:42 +0000 (17:57 +0000)]
* g++.dg/ext/mv14.C (dg-options): Add -march=x86-64.
* g++.dg/ext/mv15.C (dg-options): Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211196
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Tue, 3 Jun 2014 17:48:36 +0000 (17:48 +0000)]
gcc/cp
2014-06-03 Paolo Carlini <paolo.carlini@oracle.com>
DR 1423
PR c++/52174
* call.c (standard_conversion): Convert nullptr to bool only
in case of direct-initialization.
(convert_like_real): Provide informative error message.
gcc/testsuite
2014-06-03 Paolo Carlini <paolo.carlini@oracle.com>
DR 1423
PR c++/52174
* g++.dg/cpp0x/nullptr31.C: New.
* g++.dg/cpp0x/sfinae-nullptr1.C: Likewise.
* g++.dg/cpp0x/nullptr17.C: Update.
libstdc++-v3
2014-06-03 Paolo Carlini <paolo.carlini@oracle.com>
DR 1423
PR c++/52174
* testsuite/20_util/is_assignable/value.cc: Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211195
138bc75d-0d04-0410-961f-
82ee72b054a4
mpolacek [Tue, 3 Jun 2014 17:35:34 +0000 (17:35 +0000)]
PR c/60439
* doc/invoke.texi: Document -Wswitch-bool.
* function.c (stack_protect_epilogue): Cast controlling expression of
the switch to int.
* gengtype.c (walk_type): Generate switch expression with its
controlling expression cast to int.
c/
* c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
c_start_case.
* c-tree.h (c_start_case): Update.
* c-typeck.c (c_start_case): Add new boolean parameter. Warn if
switch condition has boolean value.
cp/
* semantics.c (finish_switch_cond): Warn if switch condition has
boolean value.
c-family/
* c.opt (Wswitch-bool): New option.
testsuite/
* c-c++-common/pr60439.c: New test.
* g++.dg/eh/scope1.C (f4): Add dg-warning.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211194
138bc75d-0d04-0410-961f-
82ee72b054a4
denisc [Tue, 3 Jun 2014 16:26:09 +0000 (16:26 +0000)]
* config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
and attiny841.
* config/avr/avr-tables.opt: Regenerate.
* config/avr/t-multilib: Regenerate.
* doc/avr-mmcu.texi: Regenerate.
* config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
(ata6617c, ata664251): Add new avr35 devices.
(ata6612c): Add new avr4 device.
(ata6613c, ata6614q): Add new avr5 devices.
* config/avr/avr-tables.opt: Regenerate.
* config/avr/t-multilib: Regenerate.
* doc/avr-mmcu.texi: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211189
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Tue, 3 Jun 2014 15:39:20 +0000 (15:39 +0000)]
PR c++/60992
* pt.c (tsubst_copy) [VAR_DECL]: Try lookup first. Add a new
variable to local_specializations.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211188
138bc75d-0d04-0410-961f-
82ee72b054a4
alalaw01 [Tue, 3 Jun 2014 15:06:01 +0000 (15:06 +0000)]
[PATCH AArch64 2/2] Correct signedness of builtins, remove casts from arm_neon.h
* gcc/config/aarch64/aarch64-builtins.c
(aarch64_types_binop_ssu_qualifiers): New static data.
(TYPES_BINOP_SSU): Define.
* gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
urshr_n, ushll_n): Use appropriate unsigned qualifiers.
* gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
suffix to builtin function name, remove cast.
(vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211186
138bc75d-0d04-0410-961f-
82ee72b054a4
alalaw01 [Tue, 3 Jun 2014 14:57:22 +0000 (14:57 +0000)]
[PATCH AArch64 1/2] Correct signedness of builtins, remove casts from arm_neon.h
* gcc/config/aarch64/aarch64-builtins.c
(aarch64_types_binop_uus_qualifiers,
aarch64_types_shift_to_unsigned_qualifiers,
aarch64_types_unsigned_shiftacc_qualifiers): Define.
* gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
sqshlu_n, uqshl_n): Update qualifiers.
* gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211185
138bc75d-0d04-0410-961f-
82ee72b054a4
tejohnson [Tue, 3 Jun 2014 14:12:51 +0000 (14:12 +0000)]
2014-06-03 Teresa Johnson <tejohnson@google.com>
* tree-sra.c (modify_function): Record caller nodes after rebuild.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211180
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Tue, 3 Jun 2014 14:11:10 +0000 (14:11 +0000)]
PR c++/60848
* call.c (is_std_init_list): Check CLASSTYPE_TEMPLATE_INFO.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211179
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Tue, 3 Jun 2014 11:56:58 +0000 (11:56 +0000)]
PR c++/61020
* varpool.c (ctor_for_folding): Handle uninitialized vtables.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211178
138bc75d-0d04-0410-961f-
82ee72b054a4
alalaw01 [Tue, 3 Jun 2014 11:56:24 +0000 (11:56 +0000)]
Detect EXT patterns to vec_perm_const, use for EXT intrinsics.
(part 2, fix ICE at -O0)
* config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
location == 0.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211177
138bc75d-0d04-0410-961f-
82ee72b054a4
alalaw01 [Tue, 3 Jun 2014 11:28:55 +0000 (11:28 +0000)]
Recognize shuffle patterns for REV instructions on AArch64, rewrite intrinsics.
* config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
New pattern.
* config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
(aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
* config/aarch64/iterators.md (REVERSE): New iterator.
(UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
(rev_op): New int_attribute.
* config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
Replace temporary __asm__ with __builtin_shuffle.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211174
138bc75d-0d04-0410-961f-
82ee72b054a4
abennett [Tue, 3 Jun 2014 11:10:05 +0000 (11:10 +0000)]
Add support for MIPS r3 and r5.
2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
* config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
mips64r5.
* config/mips/mips-tables.opt: Regenerate.
* config/mips/mips.c (mips_compute_frame_info): Changed if statement
to use mips_isa_rev rather than ISA_MIPS32R2.
* config/mips/mips.h (ISA_MIPS32R3): New define.
(ISA_MIPS32R5): New define.
(ISA_MIPS64R3): New define.
(ISA_MIPS64R5): New define.
(TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3, ISA_MIPS32R5,
ISA_MIPS64R3 and ISA_MIPS64R5.
(MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
and mips64r5.
(MIPS_ISA_SYNCI_SPEC): Likewise.
(ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
(LINK_SPEC): Added mips32r3 and mips32r5.
* config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
to mips32r2; and mips64r3 and mips64r5 to mips64r2.
* config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
* config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
* config/mips/t-sde (MULTILIB_MATCHES): Likewise.
* config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
* doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211173
138bc75d-0d04-0410-961f-
82ee72b054a4
abennett [Tue, 3 Jun 2014 10:22:09 +0000 (10:22 +0000)]
Add support for the MIPS -mxpa command line option.
2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
* doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
options.
* config/mips/mips.opt (mxpa): New option.
* config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
assembler.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211172
138bc75d-0d04-0410-961f-
82ee72b054a4
jamborm [Tue, 3 Jun 2014 10:09:20 +0000 (10:09 +0000)]
2014-06-03 Martin Jambor <mjambor@suse.cz>
PR ipa/61160
* ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
thunks.
testsuite/
* g++.dg/ipa/pr61160-1.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211170
138bc75d-0d04-0410-961f-
82ee72b054a4
abennett [Tue, 3 Jun 2014 09:37:13 +0000 (09:37 +0000)]
Add myself to the MAINTAINERS file.
2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
* MAINTAINERS (Write After Approval): Add myself.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211167
138bc75d-0d04-0410-961f-
82ee72b054a4
thopre01 [Tue, 3 Jun 2014 09:29:06 +0000 (09:29 +0000)]
2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
PR tree-optimization/61328
* tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
initialization from find_bswap_or_nop_1.
(find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
in source_expr2 before using the size value the function sets. Also
make use of init_symbolic_number () in both the old place and
find_bswap_or_nop_load () to avoid reading uninitialized memory when
doing recursion in the GIMPLE_BINARY_RHS case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211166
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Tue, 3 Jun 2014 08:48:28 +0000 (08:48 +0000)]
2014-06-03 Richard Biener <rguenther@suse.de>
PR tree-optimization/61383
* tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
stmts can't trap.
* gcc.dg/torture/pr61383-1.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211163
138bc75d-0d04-0410-961f-
82ee72b054a4
rsandifo [Tue, 3 Jun 2014 07:27:13 +0000 (07:27 +0000)]
gcc/
* defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
(EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
(CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
(REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
in this file.
(REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
(CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
* system.h: ...here and make it unconditional.
* target.def (conditional_register_usage): Mention
define_register_constraint instead of old-style constraint macros.
* doc/tm.texi.in: Remove documentation for old-style constraint macros.
* doc/tm.texi: Regenerate.
* genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
protected by !USE_MD_CONSTRAINTS.
* config/frv/frv.md: Remove quote from old version of documentation.
* config/frv/frv.c (frv_conditional_register_usage): Likewise.
* config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
CONST_DOUBLE_OK_FOR_LETTER.
* config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211161
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Tue, 3 Jun 2014 04:57:39 +0000 (04:57 +0000)]
PR c++/61046
* decl.c (reshape_init_class): Handle un-folded
constant-expressions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211160
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Tue, 3 Jun 2014 04:57:32 +0000 (04:57 +0000)]
PR c++/61134
* pt.c (pack_deducible_p): Handle canonicalization.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211159
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Tue, 3 Jun 2014 02:31:01 +0000 (02:31 +0000)]
2014-06-02 Paolo Carlini <paolo.carlini@oracle.com>
* pt.c (tsubst_function_type): Initialize arg_types.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211158
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Tue, 3 Jun 2014 00:17:07 +0000 (00:17 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211157
138bc75d-0d04-0410-961f-
82ee72b054a4
pinskia [Tue, 3 Jun 2014 00:06:41 +0000 (00:06 +0000)]
Fix formating in my last changelog entry.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211153
138bc75d-0d04-0410-961f-
82ee72b054a4
schwab [Mon, 2 Jun 2014 22:38:30 +0000 (22:38 +0000)]
* gcc.target/powerpc/vsxcopy.c (dg-options): Add -mvsx.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211152
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Mon, 2 Jun 2014 22:10:57 +0000 (22:10 +0000)]
PR debug/57519
* class.c (handle_using_decl): Pass the correct scope to
cp_emit_debug_info_for_using.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211151
138bc75d-0d04-0410-961f-
82ee72b054a4
pinskia [Mon, 2 Jun 2014 21:24:41 +0000 (21:24 +0000)]
2014-06-02 Andrew Pinski <apinski@cavium.com>
* config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
/lib/ld-linux32-aarch64.so.1 is used for ILP32.
(LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
file whose name depends on -mabi= and -mbig-endian.
* config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
Handle LP64 better and handle ilp32 too.
(MULTILIB_OPTIONS): Delete.
(MULTILIB_DIRNAMES): Delete.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211148
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Mon, 2 Jun 2014 20:47:55 +0000 (20:47 +0000)]
PR c++/59483
PR c++/61148
* search.c (accessible_p): Use current_nonlambda_class_type.
* semantics.c (check_accessibility_of_qualified_id): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211147
138bc75d-0d04-0410-961f-
82ee72b054a4
amacleod [Mon, 2 Jun 2014 20:13:44 +0000 (20:13 +0000)]
* expr.h: Remove prototypes of functions defined in builtins.c.
* tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
Remove prototypes of functions defined in builtins.c.
* builtins.h: Update prototype list to include all exported functions.
* builtins.c: (default_libc_has_function, gnu_libc_has_function,
no_c99_libc_has_function): Move to targhooks.c
(build_string_literal, build_call_expr_loc_array,
build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
to tree.c.
(expand_builtin_object_size, fold_builtin_object_size): Make static.
* targhooks.c (default_libc_has_function, gnu_libc_has_function,
no_c99_libc_has_function): Relocate from builtins.c.
* tree.c: Include builtins.h.
(build_call_expr_loc_array, build_call_expr_loc_vec,
build_call_expr_loc, build_call_expr, build_string_literal): Relocate
from builtins.c.
* fold-const.h (fold_fma): Move prototype to builtins.h.
* realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
* fortran/trans.c (trans_runtime_error_vararg): Call
fold_build_call_array_loc instead of fold_builtin_call_array.
* asan.c: Include builtins.h.
* cfgexpand.c: Likewise.
* convert.c: Likewise.
* emit-rtl.c: Likewise.
* except.c: Likewise.
* expr.c: Likewise.
* fold-const.c: Likewise.
* gimple-fold.c: Likewise.
* gimple-ssa-strength-reduction.c: Likewise.
* gimplify.c: Likewise.
* ipa-inline.c: Likewise.
* ipa-prop.c: Likewise.
* lto-streamer-out.c: Likewise.
* stmt.c: Likewise.
* tree-inline.c: Likewise.
* tree-object-size.c: Likewise.
* tree-sra.c: Likewise.
* tree-ssa-ccp.c: Likewise.
* tree-ssa-forwprop.c: Likewise.
* tree-ssa-loop-ivcanon.c: Likewise.
* tree-ssa-loop-ivopts.c: Likewise.
* tree-ssa-math-opts.c: Likewise.
* tree-ssa-reassoc.c: Likewise.
* tree-ssa-threadedge.c: Likewise.
* tree-streamer-in.c: Likewise.
* tree-vect-data-refs.c: Likewise.
* tree-vect-patterns.c: Likewise.
* tree-vect-stmts.c: Likewise.
c
* c-decl.c: Include builtins.h.
* c-parser.c: Likewise.
cp
* decl.c: Include builtins.h.
* semantics.c: Likewise.
go
* go-gcc.cc: Include builtins.h.
lto
* lto-symtab.c: Include builtins.h.
config
* aarch64/aarch64.c: Include builtins.h.
* alpha/alpha.c: Likewise.
* arc/arc.c: Likewise.
* arm/arm.c: Likewise.
* avr/avr.c: Likewise.
* bfin/bfin.c: Likewise.
* c6x/c6x.c: Likewise.
* cr16/cr16.c: Likewise.
* cris/cris.c: Likewise.
* epiphany/epiphany.c: Likewise.
* fr30/fr30.c: Likewise.
* frv/frv.c: Likewise.
* h8300/h8300.c: Likewise.
* i386/i386.c: Likewise.
* i386/winnt.c: Likewise.
* ia64/ia64.c: Likewise.
* iq2000/iq2000.c: Likewise.
* lm32/lm32.c: Likewise.
* m32c/m32c.c: Likewise.
* m32r/m32r.c: Likewise.
* m68k/m68k.c: Likewise.
* mcore/mcore.c: Likewise.
* mep/mep.c: Likewise.
* microblaze/microblaze.c: Likewise.
* mips/mips.c: Likewise.
* mmix/mmix.c: Likewise.
* mn10300/mn10300.c: Likewise.
* moxie/moxie.c: Likewise.
* msp430/msp430.c: Likewise.
* nds32/nds32.c: Likewise.
* pa/pa.c: Likewise.
* pdp11/pdp11.c: Likewise.
* picochip/picochip.c: Likewise.
* rl78/rl78.c: Likewise.
* rs6000/rs6000.c: Likewise.
* rx/rx.c: Likewise.
* s390/s390.c: Likewise.
* score/score.c: Likewise.
* sh/sh.c: Likewise.
* sparc/sparc.c: Likewise.
* spu/spu.c: Likewise.
* stormy16/stormy16.c: Likewise.
* tilegx/tilegx.c: Likewise.
* tilepro/tilepro.c: Likewise.
* v850/v850.c: Likewise.
* vax/vax.c: Likewise.
* xtensa/xtensa.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211145
138bc75d-0d04-0410-961f-
82ee72b054a4
redi [Mon, 2 Jun 2014 19:36:14 +0000 (19:36 +0000)]
* include/bits/regex_compiler.h (__detail::_BracketMatcher): Reorder
members to avoid wasted space when not using a cache.
(__detail::_BracketMatcher::_M_ready()): Sort and deduplicate set.
* include/bits/regex_compiler.tcc
(__detail::_BracketMatcher::_M_apply(_CharT, false_type)): Use binary
search on set.
* include/bits/regex_executor.h (__detail::_Executor::_Match_mode):
New enumeration type to indicate match mode.
(__detail::_Executor::_State_info): New type holding members only
needed in BFS-mode. Replace unique_ptr<vector<bool>> with
unique_ptr<bool[]>.
(__detail::_Executor::_M_rep_once_more, __detail::_Executor::_M_dfs):
Replace template parameter with run-time function parameter.
(__detail::_Executor::_M_main): Likewise. Dispatch to ...
(__detail::_Executor::_M_main_dispatch): New overloaded functions to
implement DFS and BFS mode.
* include/bits/regex_executor.tcc (__detail::_Executor::_M_main):
Split implementation into ...
(__detail::_Executor::_M_main_dispatch): New overloaded functions.
(__detail::_Executor::_M_lookahead): Create nested executor on stack.
(__detail::_Executor::_M_rep_once_more): Pass match mode as function
argument instead of template argument.
(__detail::_Executor::_M_dfs): Likewise.
* include/bits/regex_scanner.tcc: Fix typos in comments.
* testsuite/performance/28_regex/range.cc: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211143
138bc75d-0d04-0410-961f-
82ee72b054a4
law [Mon, 2 Jun 2014 19:12:08 +0000 (19:12 +0000)]
PR rtl-optimization/61094
* ree.c (combine_reaching_defs): Do not reextend an insn if it
was marked as do_no_reextend. If a copy is needed to eliminate
an extension, then mark it as do_not_reextend.
PR rtl-optimization/61094
* g++.dg/pr61094: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211142
138bc75d-0d04-0410-961f-
82ee72b054a4
mshawcroft [Mon, 2 Jun 2014 16:40:06 +0000 (16:40 +0000)]
[AArch64] Remove ISB after FPCR write.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211140
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Mon, 2 Jun 2014 16:27:41 +0000 (16:27 +0000)]
PR target/61336
* config/alpha/alpha.c (print_operand_address): Allow symbolic
addresses inside asms. Use output_operand_lossage instead of
gcc_unreachable.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211139
138bc75d-0d04-0410-961f-
82ee72b054a4
redi [Mon, 2 Jun 2014 15:45:09 +0000 (15:45 +0000)]
* include/std/condition_variable (condition_variable_any::_Unlock): Do
not swallow __forced_unwind.
* include/std/future (__future_base::_Task_setter): Likewise.
(__future_base::_Async_state_impl): Turn __forced_unwind into broken
promise and rethrow.
* include/std/mutex (try_lock): Likewise.
* testsuite/30_threads/async/forced_unwind.cc: New.
* testsuite/30_threads/packaged_task/forced_unwind.cc: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211138
138bc75d-0d04-0410-961f-
82ee72b054a4
redi [Mon, 2 Jun 2014 13:55:14 +0000 (13:55 +0000)]
2014-06-02 RĂ¼diger Sonderfeld <ruediger@c-plusplus.de>
Jonathan Wakely <jwakely@redhat.com>
* libstdc++-v3/include/std/type_traits (__strictest_alignment): New
helper struct.
(aligned_union): New struct (C++11).
(aligned_union_t): New type alias (C++14).
* doc/xml/manual/status_cxx2011.xml: Update.
* libstdc++-v3/testsuite/20_util/aligned_union/1.cc: New file.
* testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error
line number.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211137
138bc75d-0d04-0410-961f-
82ee72b054a4
uros [Mon, 2 Jun 2014 13:40:49 +0000 (13:40 +0000)]
* gcc.target/i386/xop-rotate1-vector.c (dg-options): Add -mno-avx2.
* gcc.target/i386/xop-rotate2-vector.c (dg-options): Ditto.
* gcc.target/i386/xop-rotate3-vector.c (dg-options): Ditto.
* gcc.target/i386/xop-imul32widen-vector.c (dg-options): Ditto.
* gcc.target/i386/xop-imul64-vector.c (dg-options): Ditto.
* gcc.target/i386/xop-shift1-vector.c (dg-options): Ditto.
* gcc.target/i386/xop-shift2-vector.c (dg-options): Ditto.
* gcc.target/i386/xop-shift3-vector.c (dg-options): Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211136
138bc75d-0d04-0410-961f-
82ee72b054a4
uros [Mon, 2 Jun 2014 13:22:34 +0000 (13:22 +0000)]
PR target/61239
* config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211134
138bc75d-0d04-0410-961f-
82ee72b054a4