1. 07 Nov, 2011 24 commits
  2. 06 Nov, 2011 16 commits
    • c-decl.c (shadow_tag_warned, [...]): Handle _Alignas specifiers. · d19fa6b5
      	* c-decl.c (shadow_tag_warned, grokdeclarator): Handle _Alignas
      	specifiers.
      	(build_null_declspecs): Initialize align_log and alignas_p fields.
      	(declspecs_add_alignas): New.
      	* c-parser.c (c_token_starts_declspecs): Handle RID_ALIGNAS.
      	(c_parser_declspecs): Handle _Alignas specifiers.
      	(c_parser_alignas_specifier): New.
      	(c_parser_alignof_expression): Diagnose alignof use for non-C1X.
      	Diagnose _Alignof (expression).
      	* c-tree.h (struct c_declspecs): Add align_log and alignas_p
      	fields.
      	(declspecs_add_alignas): Declare.
      	* ginclude/stddef.h (max_align_t): Define for C1X and C++11.
      	* ginclude/stdalign.h: New.
      	* Makefile.in (USER_H): Add stdalign.h.
      
      c-family:
      	* c-common.c (c_common_reswords): Add _Alignas and _Alignof.
      	(c_sizeof_or_alignof_type): Diagnose alignof applied to a function
      	type.
      	(check_user_alignment): New.  Split out of
      	handle_aligned_attribute.  Disallow integer constants with
      	noninteger types.  Conditionally allow zero.
      	(handle_aligned_attribute): Use check_user_alignment.
      	* c-common.h (RID_ALIGNAS, check_user_alignment): New.
      
      testsuite:
      	* g++.dg/cpp0x/alignof3.C, gcc.dg/c1x-align-1.c,
      	gcc.dg/c1x-align-2.c, gcc.dg/c1x-align-3.c, gcc.dg/c1x-align-4.c,
      	gcc.dg/c90-align-1.c, gcc.dg/c99-align-1.c: New tests.
      	* gcc.dg/gnu89-const-expr-1.c, gcc.dg/gnu90-const-expr-1.c,
      	gcc.dg/gnu99-const-expr-1.c, gcc.dg/gnu99-static-1.c: Update
      	expected diagnostics.
      
      From-SVN: r181048
      Joseph Myers committed
    • backwards_compatibility.xml: Fix autoconf tests for C++11 compiler features and library headers. · 55d2e499
      	* doc/xml/manual/backwards_compatibility.xml: Fix autoconf tests for
      	C++11 compiler features and library headers. Add stable id
      	attributes. Use <filename> element for headers and surround in angle
      	brackets. Use <classname> for classes.
      	* doc/html/*: Regenerate.
      
      From-SVN: r181047
      Jonathan Wakely committed
    • regset.h (fixed_reg_set_regset): Declare. · 9e582b1d
              * regset.h (fixed_reg_set_regset): Declare.
              * dse.c: Include regset.h .
              (struct insn_info): Add member fixed_regs_live.
              (note_add_store_info): New typedef.
              (note_add_store): New function.
              (emit_inc_dec_insn_before): Expect arg to be of type insn_info_t .
              Use gen_add3_insn / gen_move_insn.
              Check new insn for unwanted clobbers before emitting it.
              (check_for_inc_dec): Rename to...
              (check_for_inc_dec_1:) ... this.  Return bool.  Take insn_info
              parameter.  Changed all callers in file.
              (check_for_inc_dec, copy_fixed_regs): New functions.
              (scan_insn): Set fixed_regs_live field of insn_info.
              * rtl.h (check_for_inc_dec): Update prototype.
              * postreload.c (reload_cse_simplify): Take new signature of
              check_ind_dec into account.
              * reginfo.c (fixed_reg_set_regset): New variable.
              (init_reg_sets_1): Initialize it.
      
      Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>
      
      From-SVN: r181046
      Joern Rennecke committed
    • status_cxx2011.xml: Document <cuchar> and <cstdalign> as missing. · 57899d2f
      	* doc/xml/manual/status_cxx2011.xml: Document <cuchar> and
      	<cstdalign> as missing.
      
      From-SVN: r181045
      Jonathan Wakely committed
    • gfortran.h (gfc_extend_expr): Modified prototype. · eaee02a5
      2011-11-06  Janus Weil  <janus@gcc.gnu.org>
      
      	* gfortran.h (gfc_extend_expr): Modified prototype.
      	* interface.c (gfc_extend_expr): Return 'match' instead of 'gfc_try'.
      	Remove argument 'real_error'.
      	* resolve.c (resolve_operator): Modified call to 'gfc_extend_expr'.
      
      From-SVN: r181044
      Janus Weil committed
    • re PR c++/47695 ([C++0X] Calling a deleted function fails twice) · 9965f21f
      2011-11-06  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/47695
      	* decl2.c (mark_used): Early return false after error or sorry.
      	* cp-tree.h (mark_used): Adjust declaration.
      	* semantics.c (finish_id_expression): Check mark_used return value.
      
      From-SVN: r181042
      Paolo Carlini committed
    • faq.xml: Replace references to C++0x with C++11. · f25481f4
      	* doc/xml/faq.xml: Replace references to C++0x with C++11.
      	* doc/xml/manual/intro.xml: Likewise.
      	* doc/xml/manual/backwards_compatibility.xml: Likewise.
      	* doc/xml/manual/shared_ptr.xml: Likewise.
      	* doc/xml/manual/configure.xml: Likewise.
      	* doc/xml/manual/evolution.xml: Likewise.
      	* doc/xml/manual/using.xml: Likewise.
      	* doc/xml/manual/strings.xml: Likewise.
      	* doc/xml/manual/debug_mode.xml: Likewise.
      	* doc/xml/manual/policy_data_structures.xml: Likewise.
      	* doc/xml/manual/extensions.xml: Likewise.
      	* doc/xml/manual/diagnostics.xml: Likewise.
      	* doc/xml/manual/test.xml: Likewise.
      	* doc/xml/manual/status_cxx200x.xml: Likewise, and rename to...
      	* doc/xml/manual/status_cxx2011.xml: Here.
      	* doc/Makefile.am: Rename status_cxx200x.xml.
      	* doc/Makefile.in: Regenerate.
      	* doc/html/*: Regenerate.
      
      From-SVN: r181041
      Jonathan Wakely committed
    • tree-cfg.c (gimple_can_merge_blocks_p): For -O0 don't remove any user labels. · 4a7ab00c
      	* tree-cfg.c (gimple_can_merge_blocks_p): For -O0 don't remove
      	any user labels.
      
      From-SVN: r181040
      Jakub Jelinek committed
    • re PR other/50991 (crtstuff.c:65:23: fatal error: libgcc_tm.h: No such file or directory) · 5e490f2a
      	PR other/50991
      	* Makefile.in: Make EXTRA_PARTS depend on libgcc_tm.h instead of
      	extra-parts.
      
      From-SVN: r181039
      John David Anglin committed
    • pa.c (pa_hpux_init_libfuncs): Rename to pa_init_libfuncs. · 50bbeefb
      	* config/pa/pa.c (pa_hpux_init_libfuncs): Rename to pa_init_libfuncs.
      	Remove dependence of declaration and target define on definition of
      	HPUX_LONG_DOUBLE_LIBRARY.  Update implementation.
      
      From-SVN: r181038
      John David Anglin committed
    • 41975.cc: Add tests to check performance with or without cache of hash code and with... · ba3aa0e6
      2011-11-06  François Dumont <fdumont@gcc.gnu.org>
      
      	* testsuite/performance/23_containers/insert_erase/41975.cc: Add
      	tests to check performance with or without cache of hash code and with
      	string type that has a costlier hash functor than int type.
      
      From-SVN: r181037
      François Dumont committed
    • Check in patch/merge from cxx-mem-model Branch · 86951993
      From-SVN: r181031
      Andrew Macleod committed
    • 2011-11-6 Richard Guenther <rguenther@suse.de> · a7a296ab
      	* ipa-prop.c (ipa_modify_call_arguments): Re-compute
      	inlinable flag.
      
      From-SVN: r181027
      Richard Guenther committed
    • tree-vectorizer.h (vectorizable_condition): Add argument. · f7e531cf
      
              * tree-vectorizer.h (vectorizable_condition): Add argument.
              * tree-vect-loop.c (vectorizable_reduction): Fail for condition
              in SLP.  Update calls to vectorizable_condition.
              * tree-vect-stmts.c (vect_is_simple_cond): Add basic block info
              to the arguments.  Pass it to vect_is_simple_use_1.
              (vectorizable_condition): Add slp_node to the arguments.
              Support vectorization of basic blocks.  Fail for reduction in
              SLP.  Update calls to vect_is_simple_cond and
              vect_is_simple_use.  Support SLP: call vect_get_slp_defs to get
              vector operands.
              (vect_analyze_stmt): Update calls to vectorizable_condition.
              (vect_transform_stmt): Likewise.
              * tree-vect-slp.c (vect_create_new_slp_node): Handle COND_EXPR.
              (vect_get_and_check_slp_defs): Handle COND_EXPR.  Allow pattern
              def stmts.
              (vect_build_slp_tree): Handle COND_EXPR.
              (vect_analyze_slp_instance): Push pattern statements to root
              node.
              (vect_get_constant_vectors): Fix comments.  Handle COND_EXPR.
      
      From-SVN: r181026
      Ira Rosen committed
    • More improvements to sparc VIS vec_init code generation. · 79cad86d
      gcc/
      
      	* config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
      	(zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
      	(*zero_extend_v8qi_<P:mode>_insn,
      	*zero_extend_v4hi_<P:mode>_insn): New insns.
      	* config/sparc/sparc.c (vector_init_move_words,
      	vector_init_prepare_elts, sparc_expand_vector_init_vis2,
      	sparc_expand_vector_init_vis1): New functions.
      	(vector_init_bshuffle): Rewrite to handle more cases and make use
      	of locs[] array prepared by vector_init_prepare_elts.
      	(vector_init_fpmerge, vector_init_faligndata): Delete.
      	(sparc_expand_vector_init): Rewrite using new infrastructure.
      
      gcc/testsuite/
      
      	* lib/test-supports.exp
      	(check_effective_target_ultrasparc_vis2_hw): New proc.
      	(check_effective_target_ultrasparc_vis3_hw): New proc.
      	* gcc.target/sparc/vec-init-1.inc: New vector init common code.
      	* gcc.target/sparc/vec-init-2.inc: Likewise.
      	* gcc.target/sparc/vec-init-3.inc: Likewise.
      	* gcc.target/sparc/vec-init-1-vis1.c: New test.
      	* gcc.target/sparc/vec-init-1-vis2.c: New test.
      	* gcc.target/sparc/vec-init-1-vis3.c: New test.
      	* gcc.target/sparc/vec-init-2-vis1.c: New test.
      	* gcc.target/sparc/vec-init-2-vis2.c: New test.
      	* gcc.target/sparc/vec-init-2-vis3.c: New test.
      	* gcc.target/sparc/vec-init-3-vis1.c: New test.
      	* gcc.target/sparc/vec-init-3-vis2.c: New test.
      	* gcc.target/sparc/vec-init-3-vis3.c: New test.
      
      From-SVN: r181024
      David S. Miller committed