gcc.git
13 years agoDaily bump.
GCC Administrator [Thu, 30 Jun 2011 00:18:02 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r175678

13 years agore PR c++/49216 ([C++0x] ICE on compiling new-expression with braced-init-list for...
Jason Merrill [Wed, 29 Jun 2011 22:28:15 +0000 (18:28 -0400)]
re PR c++/49216 ([C++0x] ICE on compiling new-expression with braced-init-list for arrays)

PR c++/49216
* init.c (build_new_1): Pass {} down to build_vec_init.
(build_vec_init): Handle it.

From-SVN: r175674

13 years agoDR 1207 PR c++/49003
Jason Merrill [Wed, 29 Jun 2011 21:19:31 +0000 (17:19 -0400)]
DR 1207 PR c++/49003

DR 1207
PR c++/49003
* cp-tree.h (struct saved_scope): Add x_current_class_ptr,
x_current_class_ref.
(current_class_ptr, current_class_ref): Use them.
* decl.c (build_this_parm): Handle getting the class type.
* parser.c (cp_parser_late_return_type_opt): Set up 'this'
for use within the trailing return type.

From-SVN: r175671

13 years agopt.c (tsubst_decl): In unevaluated operand, don't tsubst DECL_INITIAL unless our...
Jason Merrill [Wed, 29 Jun 2011 21:19:22 +0000 (17:19 -0400)]
pt.c (tsubst_decl): In unevaluated operand, don't tsubst DECL_INITIAL unless our type use auto.

* pt.c (tsubst_decl) [VAR_DECL]: In unevaluated operand,
don't tsubst DECL_INITIAL unless our type use auto.

From-SVN: r175670

13 years agoset.h, [...]: Remove base class default constructor calls.
François Dumont [Wed, 29 Jun 2011 20:11:50 +0000 (22:11 +0200)]
set.h, [...]: Remove base class default constructor calls.

2011-06-29  François Dumont  <francois.cppdevs@free.fr>

* include/debug/set.h, unordered_map, multiset.h, forward_list,
unordered_set, vector, deque, string, list, multimap.h: Remove base
class default constructor calls.
* include/debug/map.h: Likewise and cleanup several redefinition of
base iterator typedef.

From-SVN: r175665

13 years agoAuto-vectorizer generates 128-bit AVX insns by default for bdver1.
Changpeng Fang [Wed, 29 Jun 2011 17:53:49 +0000 (17:53 +0000)]
Auto-vectorizer generates 128-bit AVX insns by default for bdver1.

* config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask option.
* config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL entry.
(TARGET_AVX128_OPTIMAL): New definition.
* config/i386/i386.c (initial_ix86_tune_features): Initialize
X86_TUNE_AVX128_OPTIMAL entry.
(ix86_option_override_internal): Enable the generation
of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
(ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
(ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.

From-SVN: r175661

13 years agore PR c++/49272 (FAIL: g++.old-deja/g++.jason/rfg10.C (test for errors, line 11))
Jason Merrill [Wed, 29 Jun 2011 17:38:53 +0000 (13:38 -0400)]
re PR c++/49272 (FAIL: g++.old-deja/g++.jason/rfg10.C  (test for errors, line 11))

PR c++/49272
* g++.old-deja/g++.jason/rfg10.C: Accept other overflow error too.

From-SVN: r175659

13 years agore PR c++/49520 ([C++0x] using-declaration and operator&& confuses constexpr)
Jason Merrill [Wed, 29 Jun 2011 17:15:16 +0000 (13:15 -0400)]
re PR c++/49520 ([C++0x] using-declaration and operator&& confuses constexpr)

PR c++/49520
* semantics.c (constexpr_fn_retval): Handle CLEANUP_POINT_EXPR here.
(massage_constexpr_body): Not here.

From-SVN: r175658

13 years agore PR c++/49554 ([C++0x] lambda capture causes "cannot call member function ... witho...
Jason Merrill [Wed, 29 Jun 2011 17:15:06 +0000 (13:15 -0400)]
re PR c++/49554 ([C++0x] lambda capture causes "cannot call member function ... without object")

PR c++/49554
* semantics.c (lambda_proxy_type): New.
(build_capture_proxy): Use it.
* cp-tree.h (DECLTYPE_FOR_LAMBDA_PROXY): New.
* pt.c (tsubst) [DECLTYPE_TYPE]: Use them.

From-SVN: r175657

13 years agore PR rtl-optimization/49114 ([x32] Reload failed to handle (set reg:X (plus:X (subre...
Ulrich Weigand [Wed, 29 Jun 2011 16:19:08 +0000 (16:19 +0000)]
re PR rtl-optimization/49114 ([x32] Reload failed to handle (set reg:X (plus:X (subreg:X (reg:Y) 0) (const_int))))

PR rtl-optimization/49114
* reload.c (push_reload): Define in_subreg_loc and out_subreg_loc
only if LIMIT_RELOAD_CLASS to avoid -Werror build breaks.

From-SVN: r175652

13 years agore PR tree-optimization/49539 (ICE building gnattools)
Eric Botcazou [Wed, 29 Jun 2011 16:02:56 +0000 (16:02 +0000)]
re PR tree-optimization/49539 (ICE building gnattools)

PR tree-optimization/49539
* tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
names by means of stmt_references_abnormal_ssa_name.
(associate_plusminus): Call can_propagate_from before propagating
from definition statements.
(ssa_forward_propagate_and_combine): Remove superfluous newline.

From-SVN: r175650

13 years agore PR c++/45923 (constexpr diagnostics, more more)
Jason Merrill [Wed, 29 Jun 2011 14:34:58 +0000 (10:34 -0400)]
re PR c++/45923 (constexpr diagnostics, more more)

PR c++/45923
* class.c (explain_non_literal_class): New.
(finalize_literal_type_property): Call it.
* cp-tree.h: Declare it.
* semantics.c (ensure_literal_type_for_constexpr_object): Call it.
(is_valid_constexpr_fn): Likewise.
(massage_constexpr_body): Split out from...
(register_constexpr_fundef): ...here.
(is_instantiation_of_constexpr): New.
(expand_or_defer_fn_1): Leave DECL_SAVED_TREE alone in that case.
(explain_invalid_constexpr_fn): New.
(cxx_eval_call_expression): Call it.
(potential_constant_expression_1): Likewise.  Avoid redundant errors.
* method.c (process_subob_fn): Diagnose non-constexpr.
(walk_field_subobs): Likewise.
(synthesized_method_walk): Don't shortcut if we want diagnostics.
(explain_implicit_non_constexpr): New.
(defaulted_late_check): Use it.
* call.c (build_cxx_call): Remember location.

From-SVN: r175646

13 years agomethod.c (maybe_explain_implicit_delete): Use pointer_set instead of htab.
Jason Merrill [Wed, 29 Jun 2011 14:34:47 +0000 (10:34 -0400)]
method.c (maybe_explain_implicit_delete): Use pointer_set instead of htab.

* method.c (maybe_explain_implicit_delete): Use pointer_set
instead of htab.

From-SVN: r175645

13 years agoclass.c (finalize_literal_type_property): Update conditions.
Jason Merrill [Wed, 29 Jun 2011 14:34:39 +0000 (10:34 -0400)]
class.c (finalize_literal_type_property): Update conditions.

* class.c (finalize_literal_type_property): Update conditions.
* method.c (defaulted_late_check): Set TYPE_HAS_CONSTEXPR_CTOR.

From-SVN: r175644

13 years agotree.c (build_vec_init_expr): Don't add TARGET_EXPR.
Jason Merrill [Wed, 29 Jun 2011 14:34:22 +0000 (10:34 -0400)]
tree.c (build_vec_init_expr): Don't add TARGET_EXPR.

* tree.c (build_vec_init_expr): Don't add TARGET_EXPR.
* typeck2.c (digest_init_r): Handle VEC_INIT_EXPR.
* semantics.c (cxx_eval_vec_init_1): Correct type.

From-SVN: r175643

13 years agoinvoke.texi: Document -scev dump modifier.
Richard Guenther [Wed, 29 Jun 2011 14:29:22 +0000 (14:29 +0000)]
invoke.texi: Document -scev dump modifier.

2011-06-29  Richard Guenther  <rguenther@suse.de>

* doc/invoke.texi: Document -scev dump modifier.
* tree-pass.h (TDF_SCEV): New dump flag.
* tree-dump.c (dump_option_value_in): Add scev.
* tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
* tree-scalar-evolution.c: Likewise.

* gcc.dg/tree-ssa/loop-17.c: Adjust.

From-SVN: r175642

13 years agounwind-arm.c (enum __cxa_type_match_result): New.
Nathan Sidwell [Wed, 29 Jun 2011 14:18:48 +0000 (14:18 +0000)]
unwind-arm.c (enum __cxa_type_match_result): New.

gcc/
* config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
(cxa_type_match): Correct declaration.
(__gnu_unwind_pr_common): Reconstruct
additional indirection when __cxa_type_match returns
succeeded_with_ptr_to_base.

libstdc++/
* libsupc++/eh_arm.c (__cxa_type_match): Construct address of
thrown object here.  Return succeded_with_ptr_to_base for all
pointer cases.

From-SVN: r175641

13 years agoinit.c (build_value_init): Decide whether or not to zero-initialize based on user...
Jason Merrill [Wed, 29 Jun 2011 14:09:03 +0000 (10:09 -0400)]
init.c (build_value_init): Decide whether or not to zero-initialize based on user-providedness of default...

* init.c (build_value_init): Decide whether or not to zero-initialize
based on user-providedness of default ctor, not any ctor.
(build_value_init_noctor): Adjust assert.

From-SVN: r175640

13 years agoDR 990
Jason Merrill [Wed, 29 Jun 2011 14:08:55 +0000 (10:08 -0400)]
DR 990

DR 990
* call.c (convert_like_real) [ck_user]: Handle value-initialization.
(build_new_method_call_1): Likewise.
* init.c (expand_default_init): Handle direct list-initialization
of aggregates.

From-SVN: r175639

13 years agocls_double_va.c: Move PR number to comment.
Rainer Orth [Wed, 29 Jun 2011 12:47:56 +0000 (12:47 +0000)]
cls_double_va.c: Move PR number to comment.

* testsuite/libffi.call/cls_double_va.c: Move PR number to comment.
* testsuite/libffi.call/cls_longdouble_va.c: Likewise.

From-SVN: r175632

13 years agore PR rtl-optimization/49114 ([x32] Reload failed to handle (set reg:X (plus:X (subre...
Ulrich Weigand [Wed, 29 Jun 2011 12:15:08 +0000 (12:15 +0000)]
re PR rtl-optimization/49114 ([x32] Reload failed to handle (set reg:X (plus:X (subreg:X (reg:Y) 0) (const_int))))

PR rtl-optimization/49114
* reload.c (struct replacement): Remove SUBREG_LOC member.
(push_reload): Do not set it.
(push_replacement): Likewise.
(subst_reload): Remove dead code.
(copy_replacements): Remove assertion.
(copy_replacements_1): Do not handle SUBREG_LOC.
(move_replacements): Likewise.
(find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
Detect subregs via recursive descent instead of via SUBREG_LOC.

From-SVN: r175631

13 years agoavr.c (avr_encode_section_info): Dispatch to default_encode_section_info.
Georg-Johann Lay [Wed, 29 Jun 2011 11:20:06 +0000 (11:20 +0000)]
avr.c (avr_encode_section_info): Dispatch to default_encode_section_info.

* config/avr/avr.c (avr_encode_section_info): Dispatch to
default_encode_section_info.

From-SVN: r175630

13 years agoavr.c (avr_encode_section_info): Dispatch to default_encode_section_info.
Georg-Johann Lay [Wed, 29 Jun 2011 11:17:50 +0000 (11:17 +0000)]
avr.c (avr_encode_section_info): Dispatch to default_encode_section_info.

* config/avr/avr.c (avr_encode_section_info): Dispatch to
default_encode_section_info.

From-SVN: r175629

13 years ago* MAINTAINERS (RTL optimizers): Add self.
Richard Sandiford [Wed, 29 Jun 2011 10:05:43 +0000 (10:05 +0000)]
* MAINTAINERS (RTL optimizers): Add self.

From-SVN: r175628

13 years agore PR middle-end/49545 (New C++ test failures)
Richard Sandiford [Wed, 29 Jun 2011 09:42:42 +0000 (09:42 +0000)]
re PR middle-end/49545 (New C++ test failures)

gcc/
PR tree-optimization/49545
* builtins.c (get_object_alignment_1): Update function comment.
Do not use DECL_ALIGN for functions, but test
TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
* fold-const.c (get_pointer_modulus_and_residue): Don't check
for functions here.
* tree-ssa-ccp.c (get_value_from_alignment): Likewise.

gcc/testsuite/
* gcc.dg/torture/pr49169.c: Restrict to ARM and MIPS targets.

From-SVN: r175627

13 years agoinline_1.c: Remove dg-excess-errors.
Rainer Orth [Wed, 29 Jun 2011 08:32:02 +0000 (08:32 +0000)]
inline_1.c: Remove dg-excess-errors.

* gcc.dg/inline_1.c: Remove dg-excess-errors.
* gcc.dg/inline_2.c: Likewise.
* gcc.dg/unroll_1.c: Likewise.

From-SVN: r175625

13 years ago* gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
Rainer Orth [Wed, 29 Jun 2011 08:24:13 +0000 (08:24 +0000)]
* gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).

From-SVN: r175624

13 years agore PR libgcj/49451 (FileHandleGcTest FAILS on IRIX)
Rainer Orth [Wed, 29 Jun 2011 08:19:08 +0000 (08:19 +0000)]
re PR libgcj/49451 (FileHandleGcTest FAILS on IRIX)

PR libgcj/49451
* include/private/gcconfig.h [IRIX5 && _MIPS_SZPTR == 64]
(ELF_CLASS): Define.
* dyn_load.c [IRIX5]: Include <elf.h>.
Include <obj.h> for O32, <objlist.h> for N32, N64.
[SUNOS5DL && USE_PROC_FOR_LIBRARIES] (obj_offset): Define.
[SUNOS4 && USE_PROC_FOR_LIBRARIES] (obj_offset): Define.
[IRIX5 && !USE_PROC_FOR_LIBRARIES] (struct link_map): Define.
(__rld_obj_head): Declare.
(l_next, l_addr, obj_offset): Define.
(GC_FirstDLOpenedLinkMap): New function.
[SUNOS4 || SUNOS5DL] (GC_register_dynamic_libraries): Also use on
IRIX5.
Use obj_offset.
[IRIX5 || (USE_PROC_FOR_LIBRARIES && !LINUX]
(GC_register_dynamic_libraries): Don't use /proc version on IRIX5.

From-SVN: r175623

13 years agore PR debug/49567 (ICE in mem_loc_descriptor due to typed DWARF stack changes)
Jakub Jelinek [Wed, 29 Jun 2011 08:15:00 +0000 (10:15 +0200)]
re PR debug/49567 (ICE in mem_loc_descriptor due to typed DWARF stack changes)

PR debug/49567
* dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up
for non-MODE_INT modes instead of asserting the mode has MODE_INT
class.

* gcc.target/i386/pr49567.c: New test.

From-SVN: r175622

13 years agore PR target/34734 ([avr] attribute((progmem)) not handled properly in C++)
Georg-Johann Lay [Wed, 29 Jun 2011 07:57:25 +0000 (07:57 +0000)]
re PR target/34734 ([avr] attribute((progmem)) not handled properly in C++)

PR target/34734
* config/avr/avr.c (avr_handle_progmem_attribute): Move warning
about uninitialized data attributed 'progmem' from here...
(avr_encode_section_info): ...to this new function.
(TARGET_ENCODE_SECTION_INFO): New define.
(avr_section_type_flags): For data in ".progmem.data", remove
section flag SECTION_WRITE.

From-SVN: r175621

13 years agot-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3, _xmulhisi3_exit.
Georg-Johann Lay [Wed, 29 Jun 2011 07:52:56 +0000 (07:52 +0000)]
t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3, _xmulhisi3_exit.

* config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
_xmulhisi3_exit.
* config/avr/libgcc.S (_xmulhisi3_exit): New Function.
(__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
(__umulhisi3): Ditto.
* config/avr/avr.md (mulhisi3): New insn expender.
(umulhisi3): New insn expender.
(*mulhisi3_call): New insn.
(*umulhisi3_call): New insn.

From-SVN: r175620

13 years agore PR libffi/46660 (cls_double_va.c, cls_longdouble_va.c FAIL on IRIX 6.5)
Rainer Orth [Wed, 29 Jun 2011 07:31:05 +0000 (07:31 +0000)]
re PR libffi/46660 (cls_double_va.c, cls_longdouble_va.c FAIL on IRIX 6.5)

PR libffi/46660
* testsuite/libffi.call/cls_double_va.c: xfail dg-output on
mips-sgi-irix6*.
* testsuite/libffi.call/cls_longdouble_va.c: Likewise.

From-SVN: r175618

13 years agoDaily bump.
GCC Administrator [Wed, 29 Jun 2011 00:18:52 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r175616

13 years ago* Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
Joseph Myers [Tue, 28 Jun 2011 22:54:42 +0000 (23:54 +0100)]
* Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.

From-SVN: r175607

13 years agoarm: Clean out dead code from thumb_pushpop.
Richard Henderson [Tue, 28 Jun 2011 22:25:59 +0000 (15:25 -0700)]
arm: Clean out dead code from thumb_pushpop.

Renaming to thumb_pop at the same time.  The important part
of this is removing the text-based dwarf2out calls.

        * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
        all code and arguments that handled pushes.  Update all callers.

From-SVN: r175606

13 years agoarm: Convert thumb1 prologue to rtl.
Richard Henderson [Tue, 28 Jun 2011 22:25:52 +0000 (15:25 -0700)]
arm: Convert thumb1 prologue to rtl.

* config/arm/arm.c (arm_output_function_prologue): Don't call
thumb1_output_function_prologue.
(arm_expand_prologue): Avoid dead store.
(number_of_first_bit_set): Use ctz_hwi.
(thumb1_emit_multi_reg_push): New.
(thumb1_expand_prologue): Merge thumb1_output_function_prologue
to emit the entire prologue as rtl.
(thumb1_output_interwork): Split out from
thumb1_output_function_prologue.
(thumb1_output_function_prologue): Remove.
(arm_attr_length_push_multi): Handle thumb1.
* config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
(prologue_thumb1_interwork): New.
(*push_multi): Allow thumb1; use push_mult_memory_operand.
* config/arm/predicates.md (push_mult_memory_operand): New.

From-SVN: r175605

13 years agosync.md (*stbar): Delete.
Eric Botcazou [Tue, 28 Jun 2011 22:03:44 +0000 (22:03 +0000)]
sync.md (*stbar): Delete.

* config/sparc/sync.md (*stbar): Delete.
(*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.

From-SVN: r175604

13 years ago* tree-ssa-dom.c (initialize_hash_element): Fix oversight.
Eric Botcazou [Tue, 28 Jun 2011 21:50:06 +0000 (21:50 +0000)]
* tree-ssa-dom.c (initialize_hash_element): Fix oversight.

From-SVN: r175600

13 years agoRemove gcc.target/arm/ivopts-6.c, didn't happen with patch.
Janis Johnson [Tue, 28 Jun 2011 19:36:45 +0000 (19:36 +0000)]
Remove gcc.target/arm/ivopts-6.c, didn't happen with patch.

From-SVN: r175597

13 years ago2011-06-28 Janis Johnson <janisjo@codesourcery.com>
Janis Johnson [Tue, 28 Jun 2011 19:33:06 +0000 (19:33 +0000)]
2011-06-28  Janis Johnson  <janisjo@codesourcery.com>
    Tom de Vries  <tom@codesourcery.com>

* lib/target-supports.exp (check_effective_target_arm_nothumb)
(check_effective_target_arm_thumb2): New effective targets.
* gcc.target/arm/ivopts.c: Remove -mthumb/-marm.  Guard object-size
properly.  Clean up temporary files.
* gcc.target/arm/ivopts-2.c: Likewise.
* gcc.target/arm/ivopts-3.c: Likewise.
* gcc.target/arm/ivopts-4.c: Likewise.
* gcc.target/arm/ivopts-5.c: Likewise.
* gcc.target/arm/ivopts-6.c: Remove duplicate of ivopts.c.

Co-Authored-By: Tom de Vries <tom@codesourcery.com>
From-SVN: r175596

13 years agore PR fortran/49479 (reshape / optionals / zero sized arrays)
Thomas Koenig [Tue, 28 Jun 2011 18:59:04 +0000 (18:59 +0000)]
re PR fortran/49479 (reshape / optionals / zero sized arrays)

2011-06-28  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/49479
* m4/reshape.m4: If source allocation is smaller than one, set it
to one.
* intrinsics/reshape_generic.c:  Likewise.
* generated/reshape_r16.c: Regenerated.
* generated/reshape_c4.c: Regenerated.
* generated/reshape_c16.c: Regenerated.
* generated/reshape_c8.c: Regenerated.
* generated/reshape_r4.c: Regenerated.
* generated/reshape_i4.c: Regenerated.
* generated/reshape_r10.c: Regenerated.
* generated/reshape_r8.c: Regenerated.
* generated/reshape_c10.c: Regenerated.
* generated/reshape_i8.c: Regenerated.
* generated/reshape_i16.c: Regenerated.

2011-06-28  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/49479
* gfortran.dg/reshape_zerosize_3.f90:  New test.

From-SVN: r175594

13 years agosol2-64.h (TARGET_DEFAULT): Remove.
Rainer Orth [Tue, 28 Jun 2011 17:50:50 +0000 (17:50 +0000)]
sol2-64.h (TARGET_DEFAULT): Remove.

* config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
(TARGET_64BIT_DEFAULT): Define.
* config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
of tm_file.
* config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.

From-SVN: r175593

13 years agocommon.opt (in_lto_p): New Variable entry.
Joseph Myers [Tue, 28 Jun 2011 17:00:59 +0000 (18:00 +0100)]
common.opt (in_lto_p): New Variable entry.

* common.opt (in_lto_p): New Variable entry.
* flags.h (in_lto_p): Move to common.opt.
* gcc.c: Include params.h.
(set_option_handlers): Also use common_handle_option and
target_handle_option.
(main): Call global_init_params, finish_params and
init_options_struct.
* opts.c (debug_type_names): Move from toplev.c.
(print_filtered_help): Access quiet_flag through opts pointer.
(common_handle_option): Return early in the driver for some
options.  Access in_lto_p, dwarf_version and
warn_maybe_uninitialized through opts pointer.
* toplev.c (in_lto_p): Move to common.opt.
(debug_type_names): Move to opts.c.
* Makefile.in (OBJS): Remove opts.o.
(OBJS-libcommon-target): Add opts.o.
(gcc.o): Update dependencies.

From-SVN: r175591

13 years agovfp-ldmdbs.c: Skip for soft float.
Janis Johnson [Tue, 28 Jun 2011 16:17:03 +0000 (16:17 +0000)]
vfp-ldmdbs.c: Skip for soft float.

* gcc.target/arm/vfp-ldmdbs.c: Skip for soft float.
* gcc.target/arm/vfp-ldmias.c: Likewise.
* gcc.target/arm/vfp-ldmdbd.c: Likewise.
* gcc.target/arm/vfp-stmdbs.c: Likewise.
* gcc.target/arm/vfp-ldmiad.c: Likewise.
* gcc.target/arm/vfp-stmias.c: Likewise.
* gcc.target/arm/vfp-stmdbd.c: Likewise.
* gcc.target/arm/vfp-stmiad.c: Likewise.

From-SVN: r175590

13 years agotree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
Kai Tietz [Tue, 28 Jun 2011 15:32:47 +0000 (17:32 +0200)]
tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.

2011-06-28  Kai Tietz  <ktietz@redhat.com>

        * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve
        type sinking.

From-SVN: r175589

13 years agoFix constraints.
Ramana Radhakrishnan [Tue, 28 Jun 2011 14:54:58 +0000 (14:54 +0000)]
Fix constraints.

2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>

       * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
       with '=' constraint modifier.
       (*divdf3_vfp): Likewise.
       ("*mulsf3_vfp"): Likewise.
       ("*muldf3_vfp"): Likewise.
       ("*mulsf3negsf_vfp"): Likewise.
       ("*muldf3negdf_vfp"): Likewise.

From-SVN: r175588

13 years agomn10300.h (LINK_SPEC): Do not use linker relaxation when performing an incremental...
Nick Clifton [Tue, 28 Jun 2011 13:59:28 +0000 (13:59 +0000)]
mn10300.h (LINK_SPEC): Do not use linker relaxation when performing an incremental link.

* config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
relaxation when performing an incremental link.

From-SVN: r175584

13 years agotree-ssa-math-opts.c (execute_optimize_bswap): Search within BB from last to first.
Kai Tietz [Tue, 28 Jun 2011 10:36:48 +0000 (12:36 +0200)]
tree-ssa-math-opts.c (execute_optimize_bswap): Search within BB from last to first.

2011-06-28  Kai Tietz  <ktietz@redhat.com>

        * tree-ssa-math-opts.c (execute_optimize_bswap): Search
        within BB from last to first.

From-SVN: r175580

13 years agogenattr-common.c: New.
Joseph Myers [Tue, 28 Jun 2011 10:28:09 +0000 (11:28 +0100)]
genattr-common.c: New.

* genattr-common.c: New.  Based on genattr.c.
* Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
(MOSTLYCLEANFILES): Add insn-attr-common.h.
(opts.o): Update dependencies.
(.PRECIOUS): Add insn-attr-common.h.
(simple_rtl_generated_h): Add insn-attr-common.h.
(build/genattr-common.o): New.
(genprogrtl): Add attr-common.
* genattr.c (main): Include insn-attr-common.h.  Don't generate
definitions of DELAY_SLOTS or INSN_SCHEDULING.
* opts.c: Include insn-attr-common.h instead of rtl.h and
insn-attr.h.

From-SVN: r175579

13 years agoRevert spurious change to mn10300_get_live_callee_saved_regs
Nick Clifton [Tue, 28 Jun 2011 08:50:45 +0000 (08:50 +0000)]
Revert spurious change to mn10300_get_live_callee_saved_regs

From-SVN: r175577

13 years ago* config.host: Recognize all V850 variants.
Nick Clifton [Tue, 28 Jun 2011 08:49:18 +0000 (08:49 +0000)]
* config.host: Recognize all V850 variants.

From-SVN: r175576

13 years agoconfig.gcc (tm_file): Add elfos.h and avr/elf.h for avr-*-* and avr-*-rtems* targets.
Georg-Johann Lay [Tue, 28 Jun 2011 07:26:09 +0000 (07:26 +0000)]
config.gcc (tm_file): Add elfos.h and avr/elf.h for avr-*-* and avr-*-rtems* targets.

* config.gcc (tm_file): Add elfos.h and avr/elf.h for
avr-*-* and avr-*-rtems* targets.
* config/avr/elf.h: New file.
(ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
(TARGET_ASM_SELECT_SECTION): Define.
(INIT_SECTION_ASM_OP): Undefine.
(FINI_SECTION_ASM_OP): Undefine.
(READONLY_DATA_SECTION_ASM_OP): Undefine.
(PCC_BITFIELD_TYPE_MATTERS): Undefine.
(TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
* config/avr/avr.h:
(PREFERRED_DEBUGGING_TYPE): Move to elf.h.
(TARGET_ASM_NAMED_SECTION): Move to elf.h.
(MAX_OFILE_ALIGNMENT): Move to elf.h.
(STRING_LIMIT): Move to elf.h.
(ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
(ASM_DECLARE_OBJECT_NAME): Remove.
(ESCAPES): Remove.
(ASM_OUTPUT_SKIP): Remove.
(DWARF2_DEBUGGING_INFO): Remove.
(OBJECT_FORMAT_ELF): Remove.
(USER_LABEL_PREFIX): Remove.
(ASM_OUTPUT_EXTERNAL): Remove.
(ASM_OUTPUT_ASCII): Remove.
(TYPE_ASM_OP): Remove.
(SIZE_ASM_OP): Remove.
(WEAK_ASM_OP): Remove.
(STRING_ASM_OP): Remove.
(SET_ASM_OP): Remove.
(ASM_WEAKEN_LABEL): Remove.
(TYPE_OPERAND_FMT): Remove.
(ASM_DECLARE_FUNCTION_SIZE): Remove.
(ASM_FINISH_DECLARE_OBJECT): Remove.
(NO_DOLLAR_IN_LABEL): Remove.
(ASM_GENERATE_INTERNAL_LABEL): Remove.
(ASM_OUTPUT_CASE_LABEL): Remove.
* config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
(gas_output_ascii): Remove.
(gas_output_limited_string): Remove.
(TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
* config/avr/avr-protos.h
(gas_output_ascii): Remove prototye.
(gas_output_limited_string): Remove prototype.

From-SVN: r175575

13 years agopr45701-1.c: Don't specify -march; remove dg-prune-output.
Janis Johnson [Tue, 28 Jun 2011 01:37:28 +0000 (01:37 +0000)]
pr45701-1.c: Don't specify -march; remove dg-prune-output.

* gcc.target/arm/pr45701-1.c: Don't specify -march; remove
dg-prune-output.
* gcc.target/arm/pr45701-2.c: Ditto.

From-SVN: r175573

13 years agoDaily bump.
GCC Administrator [Tue, 28 Jun 2011 00:18:34 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r175572

13 years agoMAINTAINERS (Write After Approval): Add myself.
Gabriel Charette [Mon, 27 Jun 2011 21:53:37 +0000 (21:53 +0000)]
MAINTAINERS (Write After Approval): Add myself.

2011-06-27  Gabriel Charette  <gchare@google.com>

* MAINTAINERS (Write After Approval): Add myself.

From-SVN: r175567

13 years agore PR target/48637 (%c in ARM inline asm leads to ICE (in arm_print_operand))
Richard Earnshaw [Mon, 27 Jun 2011 21:09:25 +0000 (21:09 +0000)]
re PR target/48637 (%c in ARM inline asm leads to ICE (in arm_print_operand))

PR target/48637
* arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
asm operands.

From-SVN: r175565

13 years agore PR fortran/49466 (Memory leak with assignment of extended derived types)
Janus Weil [Mon, 27 Jun 2011 20:59:12 +0000 (22:59 +0200)]
re PR fortran/49466 (Memory leak with assignment of extended derived types)

2011-06-27  Janus Weil  <janus@gcc.gnu.org>

PR fortran/49466
* trans-array.c (structure_alloc_comps): Make sure sub-components
and extended types are correctly deallocated.

2011-06-27  Janus Weil  <janus@gcc.gnu.org>

PR fortran/49466
* gfortran.dg/allocatable_scalar_9.f90: Modified.
* gfortran.dg/extends_14.f03: Modified.

From-SVN: r175563

13 years ago* de.po: Update.
Joseph Myers [Mon, 27 Jun 2011 20:56:40 +0000 (21:56 +0100)]
* de.po: Update.

From-SVN: r175561

13 years agoipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of node instead of...
Jan Hubicka [Mon, 27 Jun 2011 20:01:44 +0000 (22:01 +0200)]
ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of node instead of references in node.

* ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of node
instead of references in node.

From-SVN: r175555

13 years agoFix alpha and ia64 non-vms build.
Richard Henderson [Mon, 27 Jun 2011 19:57:09 +0000 (12:57 -0700)]
Fix alpha and ia64 non-vms build.

        * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
        * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
        inside ifdef.

From-SVN: r175554

13 years agotarget-supports-dg.exp (dg-require-effective-target): Return early if the test is...
Janis Johnson [Mon, 27 Jun 2011 18:40:18 +0000 (18:40 +0000)]
target-supports-dg.exp (dg-require-effective-target): Return early if the test is already being skipped.

* lib/target-supports-dg.exp (dg-require-effective-target): Return
early if the test is already being skipped.

From-SVN: r175547

13 years agoscanasm.exp (dg-scan, [...]): For missing file...
Janis Johnson [Mon, 27 Jun 2011 18:39:21 +0000 (18:39 +0000)]
scanasm.exp (dg-scan, [...]): For missing file...

* lib/scanasm.exp (dg-scan, scan-assembler-times, scan-assembler-dem,
scan-assembler-dem-not): For missing file, report unresolved with
same message as for pass/fail, with reason reported in log file.

From-SVN: r175546

13 years agotarget-supports.exp (add_options_for_arm_fp16): Renamed from add_options_for_arm_neon...
Janis Johnson [Mon, 27 Jun 2011 18:38:00 +0000 (18:38 +0000)]
target-supports.exp (add_options_for_arm_fp16): Renamed from add_options_for_arm_neon_fp16.

* lib/target-supports.exp (add_options_for_arm_fp16): Renamed
from add_options_for_arm_neon_fp16.
(check_effective_target_arm_fp16_ok_nocache): Renamed from
check_effective_target_arm_neon_fp16_ok_nocache.
Check -mfpu and -mfloat-abi options from current multilib.
Do not require neon support.
(check_effective_target_arm_fp16_ok): Renamed from
check_effecitve_target_arm_neon_fp16_ok.
* g++.dg/ext/arm-fp16/arm-fp16-ops-5.C: Use new names for
arm_neon_fp16_ok and arm_fp16.
* g++.dg/ext/arm-fp16/arm-fp16-ops-6.C: Likewise.
* gcc.dg/torture/arm-fp16-ops-5.c: Likewise.
* gcc.dg/torture/arm-fp16-ops-6.c: Likewise.
* gcc.target/arm/fp16-compile-vcvt.c: Likewise.

From-SVN: r175545

13 years agoc-common.h (c_tree_chain_next): New static inline function.
Jakub Jelinek [Mon, 27 Jun 2011 16:56:08 +0000 (18:56 +0200)]
c-common.h (c_tree_chain_next): New static inline function.

* c-common.h (c_tree_chain_next): New static inline function.

* c-decl.c (union lang_tree_node): Use it in chain_next expression.

* cp-tree.h (union lang_tree_node): Use it in chain_next expression.

From-SVN: r175542

13 years agobuiltin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
Jakub Jelinek [Mon, 27 Jun 2011 16:52:23 +0000 (18:52 +0200)]
builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.

* builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
* builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
* tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
* tree-ssa-ccp.c (bit_value_assume_aligned): New function.
(evaluate_stmt, execute_fold_all_builtins): Handle
BUILT_IN_ASSUME_ALIGNED.
* tree-ssa-dce.c (propagate_necessity): Likewise.
* tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
call_may_clobber_ref_p_1): Likewise.
* builtins.c (is_simple_builtin, expand_builtin): Likewise.
(expand_builtin_assume_aligned): New function.
* doc/extend.texi (__builtin_assume_aligned): Document.

* c-common.c (check_builtin_function_arguments): Handle
BUILT_IN_ASSUME_ALIGNED.

* gcc.dg/builtin-assume-aligned-1.c: New test.
* gcc.dg/builtin-assume-aligned-2.c: New test.
* gcc.target/i386/builtin-assume-aligned-1.c: New test.

From-SVN: r175541

13 years agore PR debug/49544 (ICE in new_elt_loc_list)
Jakub Jelinek [Mon, 27 Jun 2011 16:45:49 +0000 (18:45 +0200)]
re PR debug/49544 (ICE in new_elt_loc_list)

PR debug/49544
* cselib.c (promote_debug_loc): If cselib_preserve_constants
and l has two DEBUG_INSN owned locs instead of just one, adjust
the second location's setting_insn too.

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

From-SVN: r175540

13 years agore PR libmudflap/38738 (libmudflap could be enabled for Solaris when using GNU ld)
Rainer Orth [Mon, 27 Jun 2011 16:20:47 +0000 (16:20 +0000)]
re PR libmudflap/38738 (libmudflap could be enabled for Solaris when using GNU ld)

gcc:
PR libmudflap/38738
* config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.

libmudflap:
PR libmudflap/38738
* configure.ac: Check for sys/mnttab.h.
Check for library containing connect.
* configure: Regenerate.
* config.h.in: Regenerate.
* mf-hooks2.c [HAVE_SYS_MNTTAB_H]: Include <sys/mnttab.h>.
* testsuite/libmudflap.c/pass-stratcliff.c (main) [__sun__ &&
__svr4__]: Disable rawmemchr, stpcpy, mempcpy tests.

From-SVN: r175537

13 years agomn10300.md (clzsi2): Use XOR after BSCH to convert bit position of highest bit set...
Nick Clifton [Mon, 27 Jun 2011 15:52:26 +0000 (15:52 +0000)]
mn10300.md (clzsi2): Use XOR after BSCH to convert bit position of highest bit set into a count of...

* config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to
convert bit position of highest bit set into a count of the high
zero bits.

From-SVN: r175536

13 years ago* dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
Eric Botcazou [Mon, 27 Jun 2011 14:54:09 +0000 (14:54 +0000)]
* dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.

From-SVN: r175535

13 years agore PR lto/48492 (LTO bootstrap failure in copy_constant)
Eric Botcazou [Mon, 27 Jun 2011 14:34:05 +0000 (14:34 +0000)]
re PR lto/48492 (LTO bootstrap failure in copy_constant)

PR lto/48492
* dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
to a NULL parent.

From-SVN: r175533

13 years agore PR middle-end/49394 (libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc FAILs...
Richard Guenther [Mon, 27 Jun 2011 14:32:00 +0000 (14:32 +0000)]
re PR middle-end/49394 (libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc FAILs with -fipa-pta -fnon-call-exceptions)

2011-06-27  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/49394
* passes.c (execute_one_pass): Restore current_pass after
applying IPA transforms.

* g++.dg/torture/pr49394.C: New testcase.

From-SVN: r175532

13 years agotree-ssa-math-opts.c (do_shift_rotate): Zero bits out of type precision after operation.
Kai Tietz [Mon, 27 Jun 2011 13:44:52 +0000 (15:44 +0200)]
tree-ssa-math-opts.c (do_shift_rotate): Zero bits out of type precision after operation.

2011-06-27  Kai Tietz  <ktietz@redhat.com>

        * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
        out of type precision after operation.
        (find_bswap): Take for limit value the integer auto-
        promotion into account.

ChangeLog

2011-06-27  Kai Tietz  <ktietz@redhat.com>

        * gcc.dg/optimize-bswapdi-2.c: New test.

From-SVN: r175528

13 years agoreorg.c (fill_simple_delay_slots): Use stop_search_p to stop the forward scan as...
Eric Botcazou [Mon, 27 Jun 2011 12:59:56 +0000 (12:59 +0000)]
reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the forward scan as well.

* reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
forward scan as well.

From-SVN: r175524

13 years agore PR target/44241 (vms-crtl.h, vms-crtl-64.h need many more symbols)
Tristan Gingold [Mon, 27 Jun 2011 12:51:09 +0000 (12:51 +0000)]
re PR target/44241 (vms-crtl.h, vms-crtl-64.h need many more symbols)

2011-06-27  Tristan Gingold  <gingold@adacore.com>

PR target/44241
* config/vms/vms-protos.h: New file.
* config/vms/vms-crtlmap.map: New file.
* config/vms/vms.c: New file.
* config/vms/make-crtlmap.awk: New file.
* config/vms/vms-crtl.h: File removed.
* config/vms/vms-crtl-64.h: File removed.
* config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
* config/alpha/vms64.h: Do not include vms-crtl-64.h
* config/alpha/alpha.c (alpha_init_builtins): Remove code to
clear some builtins on VMS.  Calls vms_patch_builtins.
(avms_asm_output_external): Remove.
* config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
(struct crtl_name_spec): Remove
(DO_CTRL_NAMES): Remove.
* config/ia64/vms.h (struct crtl_name_spec): Remove
(DO_CTRL_NAMES): Remove.
* config/ia64/ia64.c (alpha_init_builtins): Remove code to
clear some builtins on VMS.  Calls vms_patch_builtins.
(ia64_asm_output_external): Remove DO_CRTL_NAME.
* config/ia64/vms64.h: Do not include vms-crtl-64.h
* config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles,
tm_p_file.

From-SVN: r175523

13 years agoalpha.c (alpha_end_function): Always generate .end directive on VMS.
Tristan Gingold [Mon, 27 Jun 2011 12:30:16 +0000 (12:30 +0000)]
alpha.c (alpha_end_function): Always generate .end directive on VMS.

2011-06-27  Tristan Gingold  <gingold@adacore.com>

* config/alpha/alpha.c (alpha_end_function): Always generate .end
directive on VMS.

From-SVN: r175522

13 years ago* de.po: Update.
Joseph Myers [Mon, 27 Jun 2011 12:12:08 +0000 (13:12 +0100)]
* de.po: Update.

From-SVN: r175519

13 years agosparc.c (sparc_frame_pointer_required): Return true if the function receives nonlocal...
Eric Botcazou [Mon, 27 Jun 2011 11:07:55 +0000 (11:07 +0000)]
sparc.c (sparc_frame_pointer_required): Return true if the function receives nonlocal gotos.

* config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
the function receives nonlocal gotos.

From-SVN: r175477

13 years agoupdate_version_svn (IGNORE_BRANCHES): Add gcc-4_3-branch.
Richard Guenther [Mon, 27 Jun 2011 11:05:50 +0000 (11:05 +0000)]
update_version_svn (IGNORE_BRANCHES): Add gcc-4_3-branch.

2011-06-27  Richard Guenther  <rguenther@suse.de>

* update_version_svn (IGNORE_BRANCHES): Add gcc-4_3-branch.

From-SVN: r175476

13 years agore PR middle-end/49536 (latent bug with creation of vector of arrays)
Richard Guenther [Mon, 27 Jun 2011 10:31:30 +0000 (10:31 +0000)]
re PR middle-end/49536 (latent bug with creation of vector of arrays)

2011-06-27  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/49536
* tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
For non-scalar inner types use a scalar type according to
the scalar inner mode.

From-SVN: r175475

13 years agore PR tree-optimization/49365 (436.cactusADM performance regression)
Richard Guenther [Mon, 27 Jun 2011 10:28:39 +0000 (10:28 +0000)]
re PR tree-optimization/49365 (436.cactusADM performance regression)

2011-06-27  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/49365
* params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.

From-SVN: r175474

13 years agore PR rtl-optimization/49169 (ARM: optimisations strip the Thumb/ARM mode bit off...
Richard Sandiford [Mon, 27 Jun 2011 09:33:06 +0000 (09:33 +0000)]
re PR rtl-optimization/49169 (ARM: optimisations strip the Thumb/ARM mode bit off function pointers)

gcc/
2011-07-24  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/49169
* fold-const.c (get_pointer_modulus_and_residue): Don't rely on
the alignment of function decls.

gcc/testsuite/
2011-07-24  Michael Hope  <michael.hope@linaro.org>
    Richard Sandiford  <richard.sandiford@linaro.org>

PR tree-optimization/49169
* gcc.dg/torture/pr49169.c: New test.

From-SVN: r175427

13 years agore PR testsuite/49529 (FAIL: gcc.dg/ipa/ipa-pta-17.c (test for excess errors))
John David Anglin [Mon, 27 Jun 2011 03:13:55 +0000 (03:13 +0000)]
re PR testsuite/49529 (FAIL: gcc.dg/ipa/ipa-pta-17.c (test for excess errors))

PR testsuite/49529
* gcc.dg/ipa/ipa-pta-17.c: Use dg-require-alias.

From-SVN: r175420

13 years agopr49294.c (dg-options): Add -fno-common to options on hppa*-*-hpux*.
John David Anglin [Mon, 27 Jun 2011 03:11:08 +0000 (03:11 +0000)]
pr49294.c (dg-options): Add -fno-common to options on hppa*-*-hpux*.

* gcc.dg/debug/pr49294.c (dg-options): Add -fno-common to options on
hppa*-*-hpux*.

From-SVN: r175419

13 years agore PR c++/49528 (g++ fails to destroy temporary object when subobject is used to...
Jason Merrill [Mon, 27 Jun 2011 01:07:34 +0000 (21:07 -0400)]
re PR c++/49528 (g++ fails to destroy temporary object when subobject is used to initialize a reference)

PR c++/49528
* semantics.c (potential_constant_expression_1): Check
for non-literality rather than cleanup.
(cxx_eval_constant_expression): Likewise.

From-SVN: r175417

13 years agoDaily bump.
GCC Administrator [Mon, 27 Jun 2011 00:19:07 +0000 (00:19 +0000)]
Daily bump.

From-SVN: r175416

13 years agofix changelog date from ci 175410
Iain Sandoe [Sun, 26 Jun 2011 17:22:42 +0000 (17:22 +0000)]
fix changelog date from ci 175410

From-SVN: r175411

13 years agore PR target/47997 (gcc on macosx: "ld: warning: -fwritable-strings not compatible...
Iain Sandoe [Sun, 26 Jun 2011 16:25:29 +0000 (16:25 +0000)]
re PR target/47997 (gcc on macosx: "ld: warning: -fwritable-strings not compatible with literal CF/NSString")

PR target/47997
* config/darwin.c (darwin_mergeable_string_section): Place string
constants in '.cstring' rather than '.const' when CF/NSStrings are
active.

From-SVN: r175410

13 years agore PR c++/49528 (g++ fails to destroy temporary object when subobject is used to...
Jason Merrill [Sun, 26 Jun 2011 14:00:33 +0000 (10:00 -0400)]
re PR c++/49528 (g++ fails to destroy temporary object when subobject is used to initialize a reference)

PR c++/49528
* semantics.c (potential_constant_expression_1): A TARGET_EXPR
with a cleanup isn't constant.
(cxx_eval_constant_expression): Likewise.
* init.c (expand_default_init): Use maybe_constant_init.

From-SVN: r175409

13 years ago[multiple changes]
Jakub Jelinek [Sun, 26 Jun 2011 07:57:30 +0000 (09:57 +0200)]
[multiple changes]

2011-06-26  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/48377
* gcc.dg/vect/pr48377.c: Add dg-require-effective-target
non_strict_align.

2011-06-26  Steve Ellcey  <sje@cup.hp.com>

PR middle-end/49191
* lib/target-supports.exp (check_effective_target_non_strict_align):
New.
* gcc.dg/memcpy-3.c: Add dg-require-effective-target non_strict_align.

From-SVN: r175408

13 years agosparc.c (save_local_or_in_reg_p): Adjust comment.
Eric Botcazou [Sun, 26 Jun 2011 07:57:24 +0000 (07:57 +0000)]
sparc.c (save_local_or_in_reg_p): Adjust comment.

* config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
(emit_save_register_window): Likewise.
(sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
(sparc_flat_expand_prologue): Add comment.  Always emit blockage.
Swap back %o7/%i7 in register naming.

From-SVN: r175407

13 years agochangelog correction
Jason Merrill [Sun, 26 Jun 2011 03:24:22 +0000 (23:24 -0400)]
changelog correction

From-SVN: r175406

13 years agodr 1188 comment
Jason Merrill [Sun, 26 Jun 2011 03:24:12 +0000 (23:24 -0400)]
dr 1188 comment

From-SVN: r175405

13 years agoDaily bump.
GCC Administrator [Sun, 26 Jun 2011 00:18:16 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r175404

13 years agore PR driver/49371 (xgcc: error: unrecognized option '-pie' on *-apple-darwin*)
Iain Sandoe [Sat, 25 Jun 2011 11:17:35 +0000 (11:17 +0000)]
re PR driver/49371 (xgcc: error: unrecognized option '-pie' on *-apple-darwin*)

PR driver/49371
* config/darwin.c (darwin_override_options): Improve warning when
mdynamic-no-pic is given together with fPIC/fpic, also warn when it
is given with fpie/fPIE.
* config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
* config/darwin9.h (PIE_SPEC): New.

From-SVN: r175397

13 years agotimevar.c (timevar_print): Increase width for display of timevar name.
Basile Starynkevitch [Sat, 25 Jun 2011 09:57:31 +0000 (09:57 +0000)]
timevar.c (timevar_print): Increase width for display of timevar name.

2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>

* timevar.c (timevar_print): Increase width for display of timevar
name.

From-SVN: r175396

13 years agoDaily bump.
GCC Administrator [Sat, 25 Jun 2011 00:18:08 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r175394

13 years agore PR c++/46400 (g++ Segmentation Fault on heavily templated project.)
Jakub Jelinek [Fri, 24 Jun 2011 21:11:16 +0000 (23:11 +0200)]
re PR c++/46400 (g++ Segmentation Fault on heavily templated project.)

PR c++/46400
* cp-tree.h (union lang_tree_node): Use TYPE_NEXT_VARIANT
instead of TYPE_CHAIN for chain_next for types.

* c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
instead of TYPE_CHAIN for chain_next for types.

From-SVN: r175389

13 years agosparc: Fix -mflat unwind info.
Richard Henderson [Fri, 24 Jun 2011 19:53:21 +0000 (12:53 -0700)]
sparc: Fix -mflat unwind info.

The old definition left a 2 instruction hole in which
unwind info was out-of-date.

From-SVN: r175388

13 years agore PR rtl-optimization/49429 (dse.c change (r175063) causes execution failures)
Easwaran Raman [Fri, 24 Jun 2011 17:10:18 +0000 (17:10 +0000)]
re PR rtl-optimization/49429 (dse.c change (r175063) causes execution failures)

2011-06-24  Easwaran Raman  <eraman@google.com>

      PR rtl-optimization/49429
      PR target/49454
      * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
      MEM_EXPR(y) addressable if emit_block_move_via_libcall is
      used to copy y into x.
      * calls.c (initialize_argument_information): Mark
      an argument addressable if it is passed by invisible reference.
      (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
      if it is passed by reference.

From-SVN: r175384

13 years agoProperly handle pointer addition/subtraction in num_sign_bit_copies1.
H.J. Lu [Fri, 24 Jun 2011 15:26:33 +0000 (15:26 +0000)]
Properly handle pointer addition/subtraction in num_sign_bit_copies1.

From-SVN: r175383