platform/upstream/linaro-gcc.git
12 years ago Implement return type deduction for normal functions with -std=c++1y.
jason [Sat, 24 Mar 2012 20:56:08 +0000 (20:56 +0000)]
Implement return type deduction for normal functions with -std=c++1y.
* cp-tree.h (FNDECL_USED_AUTO): New macro.
(LAMBDA_EXPR_DEDUCE_RETURN_TYPE_P): Remove.
(dependent_lambda_return_type_node): Remove.
(CPTI_DEPENDENT_LAMBDA_RETURN_TYPE): Remove.
(struct language_function): Add x_auto_return_pattern field.
(current_function_auto_return_pattern): New.
(enum tsubst_flags): Add tf_partial.
* decl.c (decls_match): Handle auto return comparison.
(duplicate_decls): Adjust error message for auto return.
(cxx_init_decl_processing): Remove dependent_lambda_return_type_node.
(cp_finish_decl): Don't do auto deduction for functions.
(grokdeclarator): Allow auto return without trailing return type in
C++1y mode.
(check_function_type): Defer checking of deduced return type.
(start_preparsed_function): Set current_function_auto_return_pattern.
(finish_function): Set deduced return type to void if not previously
deduced.
* decl2.c (change_return_type): Handle error_mark_node.
(mark_used): Always instantiate functions with deduced return type.
Complain about use if deduction isn't done.
* parser.c (cp_parser_lambda_declarator_opt): Use 'auto' for
initial return type.
(cp_parser_lambda_body): Don't deduce return type in a template.
(cp_parser_conversion_type_id): Allow auto in C++1y.
* pt.c (instantiate_class_template_1): Don't mess with
LAMBDA_EXPR_DEDUCE_RETURN_TYPE_P.
(tsubst_copy_and_build): Likewise.
(fn_type_unification, tsubst): Don't reduce the template parm level
of 'auto' during deduction.
(unify): Compare 'auto' specially.
(get_bindings): Change test.
(always_instantiate_p): Always instantiate functions with deduced
return type.
(do_auto_deduction): Handle error_mark_node and lambda context.
Don't check for use in initializer.
(contains_auto_r): Remove.
* search.c (lookup_conversions_r): Handle auto conversion function.
* semantics.c (lambda_return_type): Handle null return.  Don't mess
with dependent_lambda_return_type_node.
(apply_deduced_return_type): Rename from apply_lambda_return_type.
* typeck.c (merge_types): Handle auto.
(check_return_expr): Do auto deduction.
* typeck2.c (add_exception_specifier): Fix complain check.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185768 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
ebotcazou [Sat, 24 Mar 2012 18:58:16 +0000 (18:58 +0000)]
* expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
and str_bitsize instead of more convoluted expressions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185767 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR target/52610
ebotcazou [Sat, 24 Mar 2012 18:47:38 +0000 (18:47 +0000)]
PR target/52610
* config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185765 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR target/52656
ebotcazou [Sat, 24 Mar 2012 18:42:24 +0000 (18:42 +0000)]
PR target/52656
* config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185764 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoDaily bump.
gccadmin [Sat, 24 Mar 2012 00:18:38 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185756 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * inclhack.def (aix_malloc): New.
dje [Fri, 23 Mar 2012 23:55:01 +0000 (23:55 +0000)]
   * inclhack.def (aix_malloc): New.
       * fixincl.x: Regenerate.
       * tests/base/malloc.h [AIX_MALLOC_CHECK]: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185752 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agosyscall: Fix errno handling in syscall.Syscall and friends.
ian [Fri, 23 Mar 2012 18:41:07 +0000 (18:41 +0000)]
syscall: Fix errno handling in syscall.Syscall and friends.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185746 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoUpdate sparc-linux-gnu libstdc++ ABI baseline.
davem [Fri, 23 Mar 2012 18:29:39 +0000 (18:29 +0000)]
Update sparc-linux-gnu libstdc++ ABI baseline.

libstdc++-v3/

* config/abi/post/sparc-linux-gnu/baseline_symbols.txt: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185745 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-23 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Fri, 23 Mar 2012 16:17:49 +0000 (16:17 +0000)]
2012-03-23  Benjamin Kosnik  <bkoz@redhat.com>

* scripts/testsuite_flags.in (--cxxflags): Let CXXFLAGS set -g -O2.
* testsuite/lib/libstdc++.exp: Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185744 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoMerge GNU Classpath 0.99 into libjava.
gandalf [Fri, 23 Mar 2012 15:19:26 +0000 (15:19 +0000)]
Merge GNU Classpath 0.99 into libjava.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185741 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-23 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Fri, 23 Mar 2012 13:26:49 +0000 (13:26 +0000)]
2012-03-23  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/forward_list.h: Slightly tweak two comments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185737 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-23 Martin Jambor <mjambor@suse.cz>
jamborm [Fri, 23 Mar 2012 11:45:08 +0000 (11:45 +0000)]
2012-03-23  Martin Jambor  <mjambor@suse.cz>

* tree-sra.c (build_accesses_from_assign): Remove FIXME comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185735 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-23 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 23 Mar 2012 11:34:32 +0000 (11:34 +0000)]
2012-03-23  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/52678
* tree-vectorizer.h (struct _stmt_vec_info): Add
loop_phi_evolution_part member.
(STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
* tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
* tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
Use the cached evolution part and the PHI nodes value from
the loop preheader edge instead of re-analyzing the evolution.

* gfortran.dg/pr52678.f: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185734 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoRemove unused GFC_MAX_LINE macro.
jb [Fri, 23 Mar 2012 08:54:05 +0000 (08:54 +0000)]
Remove unused GFC_MAX_LINE macro.

2012-03-23  Janne Blomqvist  <jb@gcc.gnu.org>

       * gfortran.h (GFC_MAX_LINE): Remove unused macro.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185728 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-23 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 23 Mar 2012 08:32:47 +0000 (08:32 +0000)]
2012-03-23  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/52638
* g++.dg/torture/pr52638.C: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185727 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-23 William Bader <williambader@hotmail.com>
rguenth [Fri, 23 Mar 2012 08:17:24 +0000 (08:17 +0000)]
2012-03-23  William Bader  <williambader@hotmail.com>

c-family/
* c-lex.c (c_lex_with_flags): Avoid declarations after stmts.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185725 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago/cp
paolo [Fri, 23 Mar 2012 00:35:33 +0000 (00:35 +0000)]
/cp
2012-03-22  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/52487
* class.c (check_field_decls): Call literal_type_p only
on complete types.

/testsuite
2012-03-22  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/52487
* g++.dg/cpp0x/lambda/lambda-ice7.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185722 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoDaily bump.
gccadmin [Fri, 23 Mar 2012 00:18:22 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185721 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-22 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Fri, 23 Mar 2012 00:00:58 +0000 (00:00 +0000)]
2012-03-22  Benjamin Kosnik  <bkoz@redhat.com>

* doc/Makefile.am: XML output names have only .xml suffix.
* doc/Makefile.in: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185716 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * config/mips/mips-tables.opt: Update.
mkuvyrkov [Thu, 22 Mar 2012 21:04:48 +0000 (21:04 +0000)]
* config/mips/mips-tables.opt: Update.
* config/mips/mips.md (processor): Add xlp.
* config/mips/mips-cpus.def: Add xlp.
* config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
5KF for now.
* config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
* doc/invoke.texi: Mention XLP.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185712 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR c++/52671
jakub [Thu, 22 Mar 2012 20:25:02 +0000 (20:25 +0000)]
PR c++/52671
* decl.c (check_tag_decl): Only use CLASSTYPE_TEMPLATE_INSTANTIATION
on CLASS_TYPE_P types.

* g++.dg/ext/attrib44.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185709 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR middle-end/52547
jakub [Thu, 22 Mar 2012 19:25:36 +0000 (19:25 +0000)]
PR middle-end/52547
* tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
on any new_local_var_chain vars declared during recursing on
GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.

* testsuite/libgomp.c/pr52547.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185707 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago* lex.c (search_line_fast): Provide Neon-optimized version for ARM.
rearnsha [Thu, 22 Mar 2012 17:54:55 +0000 (17:54 +0000)]
* lex.c (search_line_fast): Provide Neon-optimized version for ARM.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185702 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
uros [Thu, 22 Mar 2012 16:11:28 +0000 (16:11 +0000)]
* config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
(ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
(ASM_OUTPUT_LOCAL): Ditto.
(ASM_OUTPUT_COMMON): Remove.
* config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
* config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185700 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoFix pthread.h failure (PR other/52626)
ro [Thu, 22 Mar 2012 16:07:47 +0000 (16:07 +0000)]
Fix pthread.h failure (PR other/52626)

PR other/52626
* tests/base/pthread.h [SOLARIS_MUTEX_INIT_2_CHECK]
(PTHREAD_COND_INITIALIZER): Adapt for solaris_cond_init removal.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185699 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago* arm/lib1funcs.asm (ctzsi2): New function.
rearnsha [Thu, 22 Mar 2012 15:14:46 +0000 (15:14 +0000)]
* arm/lib1funcs.asm (ctzsi2): New function.
* arm/t-elf (LIB1ASMFUNCS): Add _ctzsi2.
* arm/t-linux (LIB1ASMFUNCS): Likewise.
* arm/t-strongarm-elf (LIB1ASMFUNCS): Likewise.
* arm/t-symbian (LIB1ASMFUNCS): Likewise.
* arm/t-vxworks (LIB1ASMFUNCS): Likewise.
* arm/t-wince-pe (LIB1ASMFUNCS): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185698 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR middle-end/51737
hubicka [Thu, 22 Mar 2012 14:33:27 +0000 (14:33 +0000)]
PR middle-end/51737
* cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
parameter.
* cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
* ipa-inline-transform.c (save_inline_function_body): Remove copied clone
if needed.
* tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.

PR middle-end/51737
* g++.dg/torture/pr51737.C: New testcase

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185694 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-22 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 22 Mar 2012 13:52:19 +0000 (13:52 +0000)]
2012-03-22  Richard Guenther  <rguenther@suse.de>

PR middle-end/52666
* fold-const.c (fold_ternary_loc): Fix typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185693 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR target/52496
gjl [Thu, 22 Mar 2012 13:17:16 +0000 (13:17 +0000)]
PR target/52496
* config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
(unspecv): Add UNSPECV_MEMORY_BARRIER.
(cli_sei): Use unspec_volatile instead of unspec for memory barrier.
(delay_cycles_1, delay_cycles_2): Ditto.
(delay_cycles_3, delay_cycles_4): Ditto.
(nopv, *nopv): Ditto.
(sleep, *sleep): Ditto.
(wdr, *wdr): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185692 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-22 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 22 Mar 2012 13:14:54 +0000 (13:14 +0000)]
2012-03-22  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/52548
* tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
because of clobbers.
(prune_clobbered_mems): New function.
(compute_antic_aux): Use it to prune ANTIC_OUT.
(compute_partial_antic_aux): Use it to prune PA_IN.
(compute_avail): Only insert expressions into EXP_GEN that
are not invalidated when translated up to the beginning of
the block.

* gcc.dg/tree-ssa/ssa-pre-29.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185691 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-22 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Thu, 22 Mar 2012 12:33:17 +0000 (12:33 +0000)]
2012-03-22  Paolo Carlini  <paolo.carlini@oracle.com>

* include/std/array (array<>::at(size_type) const): Fix version
for undefined __EXCEPTIONS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185689 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
aldot [Thu, 22 Mar 2012 12:18:16 +0000 (12:18 +0000)]
2012-03-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>

* lib/fortran-modules.exp (list-module-names-1): Remove
warning.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185688 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-22 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 22 Mar 2012 11:36:46 +0000 (11:36 +0000)]
2012-03-22  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/52638
* tree-vect-stmts.c (vect_init_vector_1): New function, split
out from ...
(vect_init_vector): ... here.  Handle scalar vector inits.
(vect_get_vec_def_for_operand): Adjust.
(vectorizable_load): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185687 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-23 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 22 Mar 2012 09:25:49 +0000 (09:25 +0000)]
2012-03-23  Richard Guenther  <rguenther@suse.de>

        * crontab: Enable snapshots from gcc-4_7-branch.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185680 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-22 Jiangning Liu <jiangning.liu@arm.com>
liujiangning [Thu, 22 Mar 2012 09:17:45 +0000 (09:17 +0000)]
2012-03-22  Jiangning Liu  <jiangning.liu@arm.com>

PR tree-optimization/52563
* gcc.dg/tree-ssa/scev-3.c: XFAIL on lp64.
* gcc.dg/tree-ssa/scev-4.c: XFAIL on lp64.
* gcc.dg/tree-ssa/scev-5.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185678 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
uros [Thu, 22 Mar 2012 07:41:38 +0000 (07:41 +0000)]
* config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
(alpha*-*-freebsd*): Ditto.
(alpha*-*-netbsd*): Ditto.
(alpha*-*-openbsd*): Ditto.
* config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
(DWARF2_DEBUGGING_INFO): Remove.
(PREFERRED_DEBUGGING_TYPE): Remove.
(ASM_FINAL_SPEC): Remove.
(IDENT_ASM_OP): Remove.
(ASM_OUTPUT_IDENT): Remove.
(SKIP_ASM_OP): Remove.
(ASM_OUTPUT_SKIP): Remove.
(ALIGN_ASM_OP): Remove.
(ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
(ASM_OUTPUT_CASE_LABEL): Remove.
(ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
(COMMON_ASM_OP): Remove.
(ASM_OUTPUT_ALIGNED_COMMON): Remove.
(ASCII_DATA_ASM_OP): Remove.
(READONLY_DATA_SECTION_ASM_OP): Remove.
(INIT_SECTION_ASM_OP): Remove.
(FINI_SECTION_ASM_OP): Remove.
(ASM_SECTION_START_OP): Remove.
(ASM_OUTPUT_SECTION_START_FILE): Remove.
(TARGET_ASM_NAMED_SECTION): Remove.
(TARGET_ASM_SELECT_SECTION): Remove.
(MAKE_DECL_ONE_ONLY): Remove.
(TYPE_ASM_OP): Remove.
(SIZE_ASM_OP): Remove.
(ASM_WEAKEN_LABEL): Remove.
(TYPE_OPERAND_FMT): Remove.
(ASM_DECLARE_RESULT): Remove.
(ASM_DECLARE_OBJECT_NAME): Remove.
(ASM_FINISH_DECLARE_OBJECT): Remove.
(ELF_ASCII_ESCAPES): Remove.
(ELF_STRING_LIMIT): Remove.
(STRING_ASM_OP): Remove.
(ASM_OUTPUT_EXTERNAL): Remove.
(TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
* config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
before define.
(ASM_DECLARE_FUNCTION_NAME): Ditto.
(ASM_DECLARE_FUNCTION_SIZE): Ditto.
(ASM_GENERATE_INTERNAL_LABEL): Ditto.
(ASM_OUTPUT_SKIP): Ditto.
(READONLY_DATA_SECTION_ASM_OP): Remove.
(USER_LABEL_PREFIX): Remove.
(ASM_OUTPUT_ASCII): Remove.
(ASM_OUTPUT_CASE_LABEL): Remove.
(NO_DOLLAR_IN_LABEL): Undefine.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185677 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-22 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 22 Mar 2012 07:29:30 +0000 (07:29 +0000)]
2012-03-22  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/52459
* tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
PHI insertion for calls.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185676 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoDaily bump.
gccadmin [Thu, 22 Mar 2012 00:19:09 +0000 (00:19 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185627 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
steven [Wed, 21 Mar 2012 23:01:42 +0000 (23:01 +0000)]
* cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
find_sets_in_insn, canonicalize_insn): Split out from ...
(cse_insn): ... here.
(invalidate_from_clobbers): Take an insn instead of the pattern.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185622 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * objc-act (objc_build_ivar_assignment): Do not call assemble_external.
steven [Wed, 21 Mar 2012 22:18:32 +0000 (22:18 +0000)]
* objc-act (objc_build_ivar_assignment): Do not call assemble_external.
(objc_build_global_assignment): Likewise.
(objc_build_strong_cast_assignment): Likewise.
* objc-next-runtime-abi-01.c: Cleanup commented-out assemble_external.
* objc-next-runtime-abi-02.c: Likewise.
* objc-gnu-runtime-abi-01.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185621 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-21 Andreas Tobler <andreast@fgznet.ch>
andreast [Wed, 21 Mar 2012 21:28:18 +0000 (21:28 +0000)]
2012-03-21  Andreas Tobler  <andreast@fgznet.ch>

* config/rs6000/freebsd64.h: Remove duplicated entries from last
commit.
* config/rs6000/t-freebsd64: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185620 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR target/50751
olegendo [Wed, 21 Mar 2012 20:27:50 +0000 (20:27 +0000)]
PR target/50751
* gcc/target/sh/pr50751-1.c: New.
* gcc/target/sh/pr50751-2.c: New.
* gcc/target/sh/pr50751-3.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185619 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago Fix ChangeLog formatting.
olegendo [Wed, 21 Mar 2012 20:26:00 +0000 (20:26 +0000)]
Fix ChangeLog formatting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185618 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR target/52479
olegendo [Wed, 21 Mar 2012 20:24:41 +0000 (20:24 +0000)]
PR target/52479
* config/sh/sh-protos.h (sh_fsca_df2int): Remove.
* config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
* config/sh/sh.md (sindf2, cosdf2): Remove.

* gcc.target/sh/sh4a-cos.c: Remove.
* gcc.target/sh/sh4a-sin.c: Remove.
* gcc.target/sh/sh4a-sincos.c: Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185617 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR/target 52642
olegendo [Wed, 21 Mar 2012 20:19:31 +0000 (20:19 +0000)]
PR/target 52642
* config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
prologue for unwinder and profiler.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185616 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-21 Andreas Tobler <andreast@fgznet.ch>
andreast [Wed, 21 Mar 2012 20:13:50 +0000 (20:13 +0000)]
2012-03-21  Andreas Tobler  <andreast@fgznet.ch>

        * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
        Introduce emul_name to select the right linker emulation for
        powerpc64-*-freebsd*.
        * configure: Regenerate.
        * config.gcc: Add bits to support powerpc64-*-freebsd*.
        * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
        * config/rs6000/freebsd64.h: New file.
        * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
        POWERPC_FREEBSD.
        (rs6000_savres_strategy): Likewise.
        (rs6000_savres_routine_name): Likewise.
        (rs6000_elf_file_end): Likewise.
        * config/rs6000/t-freebsd64: New file.
        * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
        rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185615 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-21 Andreas Tobler <andreast@fgznet.ch>
andreast [Wed, 21 Mar 2012 20:12:16 +0000 (20:12 +0000)]
2012-03-21  Andreas Tobler  <andreast@fgznet.ch>

        * config.host: Add bits to support powerpc64-*-freebsd*.
        * config/rs6000/freebsd-unwind.h: New file.
        * config/rs6000/t-freebsd64: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185614 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2013-03-21 Andreas Tobler <andreast@fgznet.ch>
andreast [Wed, 21 Mar 2012 20:11:14 +0000 (20:11 +0000)]
2013-03-21  Andreas Tobler  <andreast@fgznet.ch>

        * testsuite/23_containers/vector/bool/modifiers/insert/31370.cc:
        Skip this test on powerpc64-*-freebsd*.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185613 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR rtl-optimization/52543
gjl [Wed, 21 Mar 2012 13:20:20 +0000 (13:20 +0000)]
PR rtl-optimization/52543
PR target/52461
* config/avr/avr-protos.h (avr_load_lpm): New prototype.
* config/avr/avr.c (avr_mode_dependent_address_p): New function.
(TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
(avr_load_libgcc_p): Restrict to __flash loads.
(avr_out_lpm): Only handle 1-byte loads from __flash.
(avr_load_lpm): New function.
(avr_find_unused_d_reg): Remove.
(avr_out_lpm_no_lpmx): Remove.
(adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
* config/avr/avr.md (unspec): Add UNSPEC_LPM.
(load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
(load_<mode>, load_<mode>_clobber): New insns.
(mov<mode>): For multi-byte move from non-generic
16-bit address spaces: Expand to load_<mode> resp.
load_<mode>_clobber.
(load<mode>_libgcc): Remove expander.
(split-lpmx): Remove split.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185605 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago* neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
rearnsha [Wed, 21 Mar 2012 11:19:23 +0000 (11:19 +0000)]
* neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
* config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
All callers changed.
(Fixed_core_reg): New feature.
(Vget_lane [sizes S64 and U64]): Add Fixed_core_reg.  Allow fmrrd in
disassembly.
* neon-testgen.ml: Handle Fixed_core_reg.

* gcc.target/arm/neon/vgetQ_laneu64.c: Regenerated.
* gcc.target/arm/neon/vgetQ_lanes64.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185603 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR testsuite/52641
gjl [Wed, 21 Mar 2012 10:48:08 +0000 (10:48 +0000)]
PR testsuite/52641
* gcc.dg/misaligned-expand-1.c (cst): Cast to int.
* gcc.dg/misaligned-expand-2.c (cst): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185602 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-21 Andrew Stubbs <ams@codesourcery.com>
ams [Wed, 21 Mar 2012 10:41:46 +0000 (10:41 +0000)]
2012-03-21  Andrew Stubbs  <ams@codesourcery.com>

gcc/
* config/arm/arm.c (thumb2_reorg): Add complete support
for 16-bit instructions.
* config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.

gcc/testsuite/
* gcc.target/arm/thumb-16bit-ops.c: New file.
* gcc.target/arm/thumb-ifcvt.c: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185601 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-21 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 21 Mar 2012 08:05:51 +0000 (08:05 +0000)]
2012-03-21  Richard Guenther  <rguenther@suse.de>

PR tree-optimizer/52636
* tree-vect-slp.c (vect_get_constant_vectors): Convert constants
to the appropriate type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185599 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-21 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 21 Mar 2012 08:02:21 +0000 (08:02 +0000)]
2012-03-21  Richard Guenther  <rguenther@suse.de>

* Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
dependencies.
* cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
* passes.c (init_optimization_passes): Remove pass_init_function,
pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
* tree-pass.h (pass_init_function): Remove.
(pass_jump): Remove.
(pass_initial_value_sets): Remove.
(pass_unshare_all_rtl): Remove.
* integrate.c (pass_initial_value_sets): Remove.
* emit-rtl.c (pass_unshare_all_rtl): Remove.
* tree.h (init_function_for_compilation): Remove.
* function.c (init_function_for_compilation): Remove.
(pass_init_function): Remove.
* cfgcleanup.c (rest_of_handle_jump): Remove.
(pass_jump): Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185598 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * c-common.h (enum cxx_dialect): Add cxx1y.
jason [Wed, 21 Mar 2012 05:09:41 +0000 (05:09 +0000)]
* c-common.h (enum cxx_dialect): Add cxx1y.
* c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
test.
* c-cppbuiltin.c (c_cpp_builtins): Likewise.
* c-opts.c (c_common_post_options): Likewise.
(set_std_cxx1y): New.
(c_common_handle_option): Call it.
* c.opt (-std=c++1y, -std=gnu++1y): New flags.
cp/
* lex.c (init_reswords): Use >= for cxx_dialect test.
* parser.c (cp_parser_exception_specification_opt): Likewise.
testsuite/
* lib/target-supports.exp: Add { target c++1y }.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185596 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agogcc/cp/
jason [Wed, 21 Mar 2012 04:04:39 +0000 (04:04 +0000)]
gcc/cp/
* mangle.c (write_type): Handle 'auto'.
* init.c (build_new): Don't do auto deduction where it might
affect template mangling.
libiberty/
* cp-demangle.c (cplus_demangle_type): Handle 'auto'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185595 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoDaily bump.
gccadmin [Wed, 21 Mar 2012 00:17:50 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185593 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR testsuite/52641
gjl [Tue, 20 Mar 2012 19:38:51 +0000 (19:38 +0000)]
PR testsuite/52641
* gcc.dg/torture/pr48124-1.c: Add dg-require-effective-target
int32plus.
* gcc.dg/torture/pr48124-4.c: Ditto:
* gcc.dg/torture/pr52530.c: Use long instead of int if int=16.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185588 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR c++/52510
jason [Tue, 20 Mar 2012 19:14:29 +0000 (19:14 +0000)]
PR c++/52510
* decl.c (reshape_init_class): Handle repeated reshaping.
* search.c (lookup_field_1): Add sanity check.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185587 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * tree-streamer-in.c (streamer_alloc_tree): Call
jason [Tue, 20 Mar 2012 19:14:16 +0000 (19:14 +0000)]
* tree-streamer-in.c (streamer_alloc_tree): Call
ggc_alloc_zone_cleared_tree_node instead of
ggc_alloc_zone_cleared_tree_node_stat.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185586 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * doc/extend.texi (Template Instantiation): Remove anachronisms.
redi [Tue, 20 Mar 2012 17:47:07 +0000 (17:47 +0000)]
* doc/extend.texi (Template Instantiation): Remove anachronisms.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185584 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * gcc.target/avr/progmem.h (pgm_read_char): Define depending on
gjl [Tue, 20 Mar 2012 17:38:29 +0000 (17:38 +0000)]
* gcc.target/avr/progmem.h (pgm_read_char): Define depending on
__AVR_HAVE_LPMX__

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185583 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoCorrect date in ChangeLog.
redi [Tue, 20 Mar 2012 17:10:10 +0000 (17:10 +0000)]
Correct date in ChangeLog.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185582 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * include/bits/stl_list.h (list::_M_size): Use NSDMI.
redi [Tue, 20 Mar 2012 17:01:19 +0000 (17:01 +0000)]
* include/bits/stl_list.h (list::_M_size): Use NSDMI.
* testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
Adjust line numbers.
* testsuite/23_containers/list/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/
constructor_2_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185580 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR target/52607
jakub [Tue, 20 Mar 2012 16:51:41 +0000 (16:51 +0000)]
PR target/52607
* config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
(ix86_expand_vec_perm_const_1): Call it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185579 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * config/i386/i386.c (vselect_insn): New variable.
jakub [Tue, 20 Mar 2012 16:27:05 +0000 (16:27 +0000)]
* config/i386/i386.c (vselect_insn): New variable.
(init_vselect_insn): New function.
(expand_vselect, expand_vselect_insn): Add testing_p argument.
Call init_vselect_insn if vselect_insn is NULL.  Adjust
PATTERN (vselect_insn), instead of creating a new insn each time,
only emit a copy of it if not testing and recog has been successful.
(expand_vec_perm_pshufb, expand_vec_perm_1,
expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
callers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185578 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR target/52607
jakub [Tue, 20 Mar 2012 16:25:54 +0000 (16:25 +0000)]
PR target/52607
* config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
("enabled" attribute): Handle avx2 and noavx2 isas.
* config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
New insns.
(vec_dup<mode>): Add avx2 =x,x alternative.
(vec_dup<mode> splitter): Don't split if TARGET_AVX2.
(*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
* config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
for V8SFmode.
(expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
if possible, handle also V8SFmode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185577 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago* arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
rearnsha [Tue, 20 Mar 2012 14:11:05 +0000 (14:11 +0000)]
* arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
* arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
reg_or_zero_operand predicate.
(neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185573 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR target/49868
gjl [Tue, 20 Mar 2012 11:32:54 +0000 (11:32 +0000)]
PR target/49868
* gcc.target/avr/torture/addr-space-2.h: New file.
* gcc.target/avr/torture/addr-space-2-g.h: New test.
* gcc.target/avr/torture/addr-space-2-0.h: New test.
* gcc.target/avr/torture/addr-space-2-1.h: New test.
* gcc.target/avr/torture/addr-space-2-x.h: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185570 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-20 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 20 Mar 2012 11:18:57 +0000 (11:18 +0000)]
2012-03-20  Richard Guenther  <rguenther@suse.de>

PR gcov-profile/52627
* libgcov.c (init_mx): Fix mutex name.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185569 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
jakub [Tue, 20 Mar 2012 11:18:06 +0000 (11:18 +0000)]
* config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
If operand isn't UNSPEC, return 0.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185568 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoMinor reformatting.
charlet [Tue, 20 Mar 2012 10:01:05 +0000 (10:01 +0000)]
Minor reformatting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185567 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-20 Arnaud Charlet <charlet@adacore.com>
charlet [Tue, 20 Mar 2012 10:00:00 +0000 (10:00 +0000)]
2012-03-20  Arnaud Charlet  <charlet@adacore.com>

* hlo.ads, hlo.adb: Removed, no longer used.
* gcc-interface/Make-lang.in: Remove hlo.o. Update dependencies.
* gcc-interface/Makefile.in: Remove EXTRA_LIBGNAT_SRCS (temporarly)
and compute it from EXTRA_LIBGNAT_OBJS.
Clean up comments, reorder LIBGNAT_SRCS and LIBGNAT_OBJS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185565 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-20 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 20 Mar 2012 09:52:02 +0000 (09:52 +0000)]
2012-03-20  Richard Guenther  <rguenther@suse.de>

* tree-pass.h (pass_rtl_eh): Remove.
* except.c (gate_handle_eh): Likewise.
(rest_of_handle_eh): Likewise.
(pass_rtl_eh): Likewise.
(finish_eh_generation): Export.
* except.h (finish_eh_generation): Declare.
* passes.c (init_optimization_passes): Remove pass_rtl_eh.
* cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
after expanding stack alignment.  Instead of compacting blocks
call cleanup_cfg.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185564 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-20 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 20 Mar 2012 09:31:40 +0000 (09:31 +0000)]
2012-03-20  Richard Guenther  <rguenther@suse.de>

* stor-layout.c (finish_bitfield_representative): Fallback
to conservative maximum size if the padding up to the next
field cannot be computed as a constant.
(finish_bitfield_layout): If we cannot compute the distance
between the start of the bitfield representative and the
bitfield member start a new representative.
* expr.c (get_bit_range): The distance between the start of
the bitfield representative and the bitfield member is zero
if the field offsets are not constants.

* gnat.dg/pack16.adb: New testcase.
* gnat.dg/pack16_pkg.ads: Likewise.
* gnat.dg/specs/pack8.ads: Likewise.
* gnat.dg/specs/pack8_pkg.ads: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185563 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-20 Yannick Moy <moy@adacore.com>
charlet [Tue, 20 Mar 2012 09:23:26 +0000 (09:23 +0000)]
2012-03-20  Yannick Moy  <moy@adacore.com>

* gnat_rm.texi, sem_attr.ads: Update documentation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185562 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-20 Tristan Gingold <gingold@adacore.com>
gingold [Tue, 20 Mar 2012 08:47:27 +0000 (08:47 +0000)]
2012-03-20  Tristan Gingold  <gingold@adacore.com>

* tree.h (enum size_type_kind): Add stk_ prefix to constants,
convert in lowercase.
(sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
(size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
* stor-layout.c (sizetype_tab): Adjust.
(initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
* tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
instead of type_kind_last.
* tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
instead of size_int_kind.
* doc/tm.texi.in (Type Layout): Document SIZETYPE.
* doc/tm.texi: Regenerate.
* defaults.h (SIZETYPE): Provide a default value.
* config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
(SIZETYPE): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185561 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * config/sh/sh.md: Use braced string notation where applicable.
olegendo [Tue, 20 Mar 2012 00:37:19 +0000 (00:37 +0000)]
* config/sh/sh.md: Use braced string notation where applicable.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185555 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoDaily bump.
gccadmin [Tue, 20 Mar 2012 00:19:20 +0000 (00:19 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185552 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-19 Paweł Sikora <pawel.sikora@agmk.net>
paolo [Mon, 19 Mar 2012 23:48:16 +0000 (23:48 +0000)]
2012-03-19  PaweÅ‚ Sikora  <pawel.sikora@agmk.net>

PR libstdc++/52540
* include/Makefile.am (c++config.h): Fix sed rule to not break
the _GLIBCXX_EXTERN_TEMPLATE redefinition.
* include/Makefile.in: Regenerate.

2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

* testsuite/Makefile.in: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185548 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * config/i386/i386.md (allocate_stack): Simplify.
uros [Mon, 19 Mar 2012 22:16:45 +0000 (22:16 +0000)]
* config/i386/i386.md (allocate_stack): Simplify.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185545 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-19 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Mon, 19 Mar 2012 21:41:15 +0000 (21:41 +0000)]
2012-03-19  Benjamin Kosnik  <bkoz@redhat.com>

* include/bits/allocator.h (std::allocator): Base class is
__allocator_base.
(uses_allocator): Add to sub-grouping.
* include/ext/new_allocator.h: Doxygen markup for tparm.

* config/allocator/bitmap_allocator_base.h: Use __allocator_base
template alias in C++11.
* config/allocator/malloc_allocator_base.h: Same.
* config/allocator/mt_allocator_base.h: Same.
* config/allocator/new_allocator_base.h: Same.
* config/allocator/pool_allocator_base.h: Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185544 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-19 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Mon, 19 Mar 2012 20:43:30 +0000 (20:43 +0000)]
2012-03-19  Benjamin Kosnik  <bkoz@redhat.com>

* include/ext/pb_ds/detail/pat_trie_/
constructors_destructor_fn_imps.hpp: Increment after recursion.
* include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp: Convert
node_type markup from brief.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185542 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
uros [Mon, 19 Mar 2012 20:35:59 +0000 (20:35 +0000)]
* builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
copy_to_mode_reg (Pmode, ...).
(expand_builtin_frame_address): Ditto.
* expr.c (emit_block_move_via_libcall): Ditto.
(set_storage_via_libcall): Ditto.

* config/i386/i386.c (ix86_expand_movmem): Ditto.
(ix86_expand_setmem): Ditto.
(ix86_trampoline_init): DItto.
* config/i386/i386.md (cmpstrnsi): Ditto.
(allocate_stack): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185541 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
sandra [Mon, 19 Mar 2012 20:34:29 +0000 (20:34 +0000)]
2012-03-19  Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
* config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
* doc/invoke.texi (Option Summary): Remove -madjust-unroll.
(SH Options): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185540 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
uros [Mon, 19 Mar 2012 19:11:03 +0000 (19:11 +0000)]
* config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
(legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
(ix86_decompose_address): Allow zero extended UNSPEC_TP references.

Revert:
2012-03-13  Uros Bizjak  <ubizjak@gmail.com>

* config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
* config/i386/i386.c (ix86_decompose_address): Use
TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
(legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
thread pointer to a register.

Revert:
2012-03-10  H.J. Lu  <hongjiu.lu@intel.com>

* config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
if Pmode != word_mode.
(legitimize_tls_address): Call gen_tls_initial_exec_x32 if
Pmode == SImode for TARGET_X32.

* config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
(tls_initial_exec_x32): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185536 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago Fix ChangeLog formatting.
olegendo [Mon, 19 Mar 2012 19:04:20 +0000 (19:04 +0000)]
Fix ChangeLog formatting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185535 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR target/50751
olegendo [Mon, 19 Mar 2012 18:59:16 +0000 (18:59 +0000)]
PR target/50751
* config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
DISP_ADDR_OFFSET): New macros.
* config/sh/sh.c (sh_address_cost): Add SH2A special case.
(sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
(sh_legitimize_address): Add QImode displacement handling.
(sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
vector subregs.
(sh_secondary_reload): Add QImode displacement handling.
* config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
* config/sh/constraints.md (K04, Snd, Sdd): New constraints.
* config/sh/sh.md (extendqisi2): Remove constraints from expander.
(*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
to register operands only.
(*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
(extendqihi2): Change insn to expander.
(*extendqihi2_compact_reg): New insn.
(movqi_i, movqi): Replace with ...
(movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
*movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
Add new peepholes for QImode displacement addressing.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185534 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Mon, 19 Mar 2012 17:55:11 +0000 (17:55 +0000)]
2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/warn/Wuseless-cast.C: Extend.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185531 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Mon, 19 Mar 2012 17:23:40 +0000 (17:23 +0000)]
2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

Complete previous commit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185529 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-19 Yannick Moy <moy@adacore.com>
charlet [Mon, 19 Mar 2012 16:41:25 +0000 (16:41 +0000)]
2012-03-19  Yannick Moy  <moy@adacore.com>

* sem_ch6.adb: Minor code clean up.

2012-03-19  Vincent Celier  <celier@adacore.com>

* make.adb (Scan_Make_Arg): Make sure all significant -m switches
on the command line are counted.

2012-03-19  Robert Dewar  <dewar@adacore.com>

* sem_elab.adb (Generate_Elab_Warnings): Fix spec, fix attribute
reference case

2012-03-19  Robert Dewar  <dewar@adacore.com>

* par-ch4.adb (Check_Bad_Exp): New procedure

2012-03-19  Robert Dewar  <dewar@adacore.com>

* exp_attr.adb, sem_attr.adb, sem_attr.ads, snames.ads-tmpl: Add
initial framework for Valid_Scalars attribute.

2012-03-19  Robert Dewar  <dewar@adacore.com>

* scng.adb (Scan): Recognize incorrect preprocessor directive

2012-03-19  Robert Dewar  <dewar@adacore.com>

* atree.adb (Allocate_Initialize_Node): Use Num_Extension_Nodes
* atree.ads (Num_Extension_Nodes): New variable
* debug.adb: New debug flag -gnatd.N
* gnat1drv.adb (Adjust_Global_Switches): Adjust
Num_Extension_Nodes if -gnatd.N set

2012-03-19  Eric Botcazou  <ebotcazou@adacore.com>

* einfo.ads: Minor update to First_Rep_Item and Has_Gigi_Rep_Item
descriptions.

2012-03-19  Robert Dewar  <dewar@adacore.com>

* opt.ads: Remove HLO_Active flag.
* sem.adb: Remove call of high level optimizer.
* sem.ads (New_Nodes_OK): Removed.
* sem_ch10.adb: Remove references to New_Nodes_OK.
* switch-c.adb: Remove handling of -gnatH switch.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185528 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-19 Yannick Moy <moy@adacore.com>
charlet [Mon, 19 Mar 2012 16:31:20 +0000 (16:31 +0000)]
2012-03-19  Yannick Moy  <moy@adacore.com>

* sem_ch6.adb (Check_Subprogram_Contract): Do not emit warnings
on trivially True or False postconditions and Ensures components
of contract-cases.

2012-03-19  Robert Dewar  <dewar@adacore.com>

* gnat_ugn.texi: Fix index entry for -gnatei (now we have
ug_words entry).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185527 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-19 Hristian Kirtchev <kirtchev@adacore.com>
charlet [Mon, 19 Mar 2012 16:29:27 +0000 (16:29 +0000)]
2012-03-19  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_ch3.adb (Get_Discriminant_Value): Instead of looking
at the immediate correcponsing discriminant, traverse a
potential chain of discriminants produced by type derivations.
(Root_Corresponding_Discriminant): Traverse a chain of inherited
discriminants and return the topmost discriminant.

2012-03-19  Bob Duff  <duff@adacore.com>

* debug.adb: Minor comment change.
* gnat_ugn.texi: Update documentation for elaboration regarding
indirect calls.

2012-03-19  Gary Dismukes  <dismukes@adacore.com>

* exp_ch3.adb (Expand_N_Object_Declaration): In
the case of an object of a class-wide interface type, where the
declaration is rewritten as a renaming, call Set_Debug_Info_Needed
on the renaming entity so that Materialize_Entity will be
set. Also, change existing call (for other than interface cases)
to call Set_Debug_Info_Needed rather than Set_Needs_Debug_Info
(as specified for that flag).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185526 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-19 Hristian Kirtchev <kirtchev@adacore.com>
charlet [Mon, 19 Mar 2012 16:27:18 +0000 (16:27 +0000)]
2012-03-19  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_ch4.adb (Analyze_Allocator): Detect an allocator generated
by the build-in-place machinery where the designated type is
indefinite, but the underlying type is not. Do not emit errors
related to missing initialization in this case.

2012-03-19  Robert Dewar  <dewar@adacore.com>

* gnat_ugn.texi: Add documentation for -gnateinnn switch.
* sem_elab.adb, put_alfa.adb, lib-xref-alfa.adb: Minor reformatting.
* sem_prag.adb: Minor comment update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185525 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-03-16 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Mon, 19 Mar 2012 15:51:25 +0000 (15:51 +0000)]
2012-03-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/14710
* doc/invoke.texi: Document -Wuseless-cast.

/c-family
2012-03-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/14710
* c.opt ([Wuseless-cast]): Add.

/cp
2012-03-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/14710
* cp-tree.h (maybe_warn_about_useless_cast): Declare.
* typeck.c (maybe_warn_about_useless_cast): Define.
(build_reinterpret_cast, build_const_cast,
build_static_cast, cp_build_c_cast): Use it.
* rtti.c (build_dynamic_cast): Likewise.
* pt.c (tsubst_copy_and_build, case CAST_EXPR): Increment/decrement
c_inhibit_evaluation_warnings before/after the build_* calls.

/testsuite
2012-03-16  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/14710
* g++.dg/warn/Wuseless-cast.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185524 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
ebotcazou [Mon, 19 Mar 2012 15:35:55 +0000 (15:35 +0000)]
* tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
* tree.h (handled_component_p): Reorder cases.
* dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
not initialize unsignedp.
(loc_list_from_tree): Likewise.
(fortran_common): Likewise.
* simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185522 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
uros [Mon, 19 Mar 2012 13:09:44 +0000 (13:09 +0000)]
* config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
mode consistently.  Use ix86_gen_add3.  Assert that Pmode == DImode.
(ix86_expand_split_stack_prologue): Use ix86_gen_add3.
(ix86_split_long_move): Ditto.
(legitimize_tls_address): Use ix86_gen_sub3.
(construct_plt_address): Assert that Pmode == DImode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185520 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR fortran/52559
fxcoudert [Mon, 19 Mar 2012 09:50:35 +0000 (09:50 +0000)]
PR fortran/52559
* error.c (gfc_widechar_display_length): Consider tabs as
one character wide, as they're displayed as spaces.
(show_locus): Move tab handling to...
(print_wide_char_into_buffer): ... here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185517 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoDaily bump.
gccadmin [Mon, 19 Mar 2012 00:18:57 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185514 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * cpplib.pot: Regenerate.
jsm28 [Sun, 18 Mar 2012 14:07:21 +0000 (14:07 +0000)]
* cpplib.pot: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185508 138bc75d-0d04-0410-961f-82ee72b054a4