aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-10-13* gcc-interface/Makefile.in: Fix typo.Arnaud Charlet2-1/+5
From-SVN: r179900
2011-10-13[multiple changes]Arnaud Charlet9-15/+415
2011-10-13 Ed Schonberg <schonberg@adacore.com> * sem_ch12.adb (Analyze_Formal_{Floating_Type, Signed_Integer_Type, Decimal_Fixed_Point_Type, Discrete_Type}): Use sloc of defining identifier of farmal type declaration, as sloc of generated internal entity, to prevent misplaced references in ali. 2011-10-13 Ed Schonberg <schonberg@adacore.com> * sem_intr.adb (Check_Intrinsic_Operator): Check that type is fully defined before checking that it is a numeric type. 2011-10-13 Ed Schonberg <schonberg@adacore.com> * sem_aggr.adb (Resolve_Record_Aggregate): If a component association for component X has a box, then X is covered in the aggregate even if there is not default value for X in the type declaration, and X has to be default-initialized. 2011-10-13 Ed Schonberg <schonberg@adacore.com> * sem_attr.adb (Check_Enum_Image, Analyze_Attribute case 'Value): Mark literals as referenced only if reference is in current source unit. 2011-10-13 Matthew Heaney <heaney@adacore.com> * a-csquin.ads (Enque, Dequeue): Mark interface operations as entries. 2011-10-13 Olivier Hainque <hainque@adacore.com> * sigtramp.h: New file. Prototype and spec of the signal trampoline to be called by an established handler to provide dwarf call frame info before the real signal processing code. * sigtramp-ppcvxw.c: New file. Implementation of the signal trampoline for ppc-vxworks. * init.c (vxworks section): Use it for ppc. From-SVN: r179899
2011-10-13[multiple changes]Arnaud Charlet16-450/+365
2011-10-13 Thomas Quinot <quinot@adacore.com> * par-ch2.adb, par.adb, par-util.adb, par-ch3.adb (Check_Future_Identifier): New subprogram, factors duplicated code from Par.Ch2.P_Identifier and Par.Ch3.P_Defining_Identifier. 2011-10-13 Thomas Quinot <quinot@adacore.com> * s-taprop-posix.adb (Initialize): Always raise Storage_Error if we fail to initialize CV attributes or CV. 2011-10-13 Thomas Quinot <quinot@adacore.com> * s-tasren.adb (Timed_Selective_Wait, case Accept_Alternative_Selected): Use Defer_Abort_Nestable, since we know abortion is already deferred. 2011-10-13 Hristian Kirtchev <kirtchev@adacore.com> * exp_ch3.adb (Build_Class_Wide_Master): Moved to exp_ch9. (Build_Master_Renaming (function)): Removed. (Build_Master_Renaming (procedure)): Moved to exp_ch9. (Expand_Full_Type_Declaration): Alphabetize variables. Reformatting of code and comments. Rewrite the section on processing of anonymous access-to-task types in record components. * exp_ch3.ads (Build_Class_Wide_Master): Moved to exp_ch9. (Build_Master_Renaming): Moved to exp_ch9. * exp_ch9.adb (Build_Class_Wide_Master): Moved from exp_ch3. (Build_Master_Entity): Add formal parameter Use_Current. Reformatting of code and comments. (Build_Master_Renaming): Moved from exp_ch3. * exp_ch9.ads (Build_Class_Wide_Master): Moved from exp_ch3. Update comment on usage. (Build_Master_Entity): Add formal parameter Use_Current. Update comment on usage. (Build_Master_Renaming): Moved from exp_ch3. * sem_ch3.adb (Access_Definition): Remove redundant code to create a _master and a renaming. 2011-10-13 Ed Schonberg <schonberg@adacore.com> * lib-xref.adb: Do no emit reference to overridden operation, if it is internally generated. 2011-10-13 Vincent Celier <celier@adacore.com> * bindgen.adb: Remove any processing related to g-trasym * Makefile.rtl: Add g-trasym.o to GNATRTL_NONTASKING_OBJS * mlib-prj.adb: Remove any processing related to g-trasym. From-SVN: r179898
2011-10-13memcpy-4.c: New test.Tom de Vries2-0/+15
2011-10-13 Tom de Vries <tom@codesourcery.com> * gcc.dg/memcpy-4.c: New test. From-SVN: r179897
2011-10-13emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P for static ↵Tom de Vries3-1/+14
const strings. 2011-10-13 Tom de Vries <tom@codesourcery.com> * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P for static const strings. * varasm.c (build_constant_desc): Generate the memory location of the constant using gen_const_mem. From-SVN: r179896
2011-10-13re PR tree-optimization/50698 (pretending to create versioning for alias ↵Richard Guenther4-3/+38
when not required) 2011-10-13 Richard Guenther <rguenther@suse.de> PR tree-optimization/50698 * tree-data-ref.c (split_constant_offset_1): Also process offsets of &MEM. * g++.dg/vect/pr50698.cc: New testcase. From-SVN: r179895
2011-10-13Daily bump.GCC Administrator1-1/+1
From-SVN: r179885
2011-10-12Makefile.in (LOOSE_WARN): Delete.Eric Botcazou12-178/+97
gnattools/ * Makefile.in (LOOSE_WARN): Delete. (GCC_WARN_CFLAGS): Set to -W -Wall. (TOOLS_FLAGS_TO_PASS_1): Delete. (TOOLS_FLAGS_TO_PASS_1re): Rename into... (TOOLS_FLAGS_TO_PASS_RE): ...this. (gnattools-native): Use TOOLS_FLAGS_TO_PASS_NATIVE. (regnattools): Use TOOLS_FLAGS_TO_PASS_RE. libada/ * Makefile.in (LOOSE_WARN): Delete. (GCC_WARN_CFLAGS): Likewise. (WARN_CFLAGS): Likewise. (GNATLIBFLAGS): Add -nostdinc. (GNATLIBCFLAGS_FOR_C): Add -W -Wall. (LIBADA_FLAGS_TO_PASS): Remove WARN_CFLAGS. * configure.ac (warn_cflags): Delete. * configure: Regenerate. gcc/ada/ * sem_util.adb (Denotes_Same_Prefix): Fix fatal warning. * gcc-interface/Make-lang.in (WARN_ADAFLAGS): New. (ALL_ADAFLAGS): Include WARN_ADAFLAGS. (ADA_FLAGS_TO_PASS): Likewise. (COMMON_FLAGS_TO_PASS): New. (ADA_TOOLS_FLAGS_TO_PASS): Use COMMON_FLAGS_TO_PASS. In the regular native case, also use FLAGS_TO_PASS and ADA_FLAGS_TO_PASS. (gnatlib): Use COMMON_FLAGS_TO_PASS. (ada.install-common): Likewise. (install-gnatlib): Likewise. (install-gnatlib-obj): Likewise. (gnattools): Use ADA_TOOLS_FLAGS_TO_PASS for gnattools1 as well. (gnat-cross): Delete. (gnatboot): Likewise. (gnatboot2): Likewise. (gnatboot3): Likewise. (gnatstage1): Likewise. (gnatstage2): Likewise. * gcc-interface/Makefile.in (SOME_ADAFLAGS): Likewise. (MOST_ADAFLAGS): Likewise. (LOOSE_CFLAGS): Likewise. (gnat-cross): Likewise. (GNATLIBFLAGS): Add -W -Wall. (GNATLIBCFLAGS_FOR_C): Likewise. * gcc-interface/lang.opt: Remove C-specific warnings. Add doc lines. * gcc-interface/misc.c (gnat_handle_option): Remove obsolete cases. From-SVN: r179878
2011-10-12warn-1.c: Skip if not powerpc_vsx_ok.Janis Johnson3-0/+5
* gcc.target/powerpc/warn-1.c: Skip if not powerpc_vsx_ok. * gcc.target/powerpc/warn-2.c: Ditto. From-SVN: r179877
2011-10-12ppc-fma-3.c: Require powerpc_fprs.Janis Johnson15-0/+31
* gcc.target/powerpc/ppc-fma-3.c: Require powerpc_fprs. * gcc.target/powerpc/ppc-fma-4.c: Likewise. * gcc.target/powerpc/ppc-fma-5.c: Likewise. * gcc.target/powerpc/ppc-fma-7.c: Likewise. * gcc.target/powerpc/ppc-fpconv-11.c: Likewise. * gcc.target/powerpc/ppc-fpconv-3.c: Likewise. * gcc.target/powerpc/ppc-fpconv-7.c: Likewise. * gcc.target/powerpc/ppc-fpconv-8.c: Likewise. * gcc.target/powerpc/ppc-pow.c: Likewise. * gcc.target/powerpc/recip-1.c: Likewise. * gcc.target/powerpc/recip-2.c: Likewise. * gcc.target/powerpc/recip-3.c: Likewise. * gcc.target/powerpc/recip-4.c: Likewise. * gcc.target/powerpc/recip-5.c: Likewise. From-SVN: r179876
2011-10-12Fix sparc when assembler lacks support for vis3/fmaf instructions.David S. Miller13-23/+43
gcc/ * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF to zero when assembler lacks support for such instructions. * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3 and MASK_FMAF in defaults when assembler lacks necessary support. gcc/testsuite/ * gcc.target/sparc/cmask.c: Remove 'vis3' target check and specify '-mvis3' instead of 'mcpu=niagara3' in options. * gcc.target/sparc/fhalve.c: Likewise. * gcc.target/sparc/fnegop.c: Likewise. * gcc.target/sparc/fpadds.c: Likewise. * gcc.target/sparc/fshift.c: Likewise. * gcc.target/sparc/fucmp.c: Likewise. * gcc.target/sparc/lzd.c: Likewise. * gcc.target/sparc/vis3misc.c: Likewise. * gcc.target/sparc/xmul.c: Likewise. From-SVN: r179875
2011-10-12trans.c (Attribute_to_gnu): Use remove_conversions.Eric Botcazou4-32/+29
* gcc-interface/trans.c (Attribute_to_gnu): Use remove_conversions. (push_range_check_info): Likewise. (gnat_to_gnu) <N_Code_Statement>: Likewise. * gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: Likewise. (gnat_invariant_expr): Likewise. * gcc-interface/utils.c (compute_related_constant): Likewise. (max_size): Fix handling of SAVE_EXPR. (remove_conversions): Fix formatting. From-SVN: r179873
2011-10-13sse.md (vec_unpacks_lo_<mode>, [...]): Change VI124_128 mode to VI124_AVX2.Jakub Jelinek3-5/+46
* config/i386/sse.md (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>, vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2. * config/i386/i386.c (ix86_expand_sse_unpack): Handle V32QImode, V16HImode and V8SImode for TARGET_AVX2. From-SVN: r179872
2011-10-13sse.md (vec_avx2): New mode_attr.Jakub Jelinek2-16/+34
* config/i386/sse.md (vec_avx2): New mode_attr. (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ... (mul<mode>3): ... this. From-SVN: r179871
2011-10-13i386.md (UNSPEC_VPERMDI): Remove.Jakub Jelinek4-112/+701
* config/i386/i386.md (UNSPEC_VPERMDI): Remove. * config/i386/i386.c (ix86_expand_vec_perm): Handle V16QImode and V32QImode for TARGET_AVX2. (MAX_VECT_LEN): Increase to 32. (expand_vec_perm_blend): Add support for 32-byte integer vectors with TARGET_AVX2. (valid_perm_using_mode_p): New function. (expand_vec_perm_pshufb): Add support for 32-byte integer vectors with TARGET_AVX2. (expand_vec_perm_vpshufb2_vpermq): New function. (expand_vec_perm_vpshufb2_vpermq_even_odd): New function. (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors with TARGET_AVX2. (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq and expand_vec_perm_vpshufb2_vpermq_even_odd. * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2 32-byte integer vector modes. (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128. (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto. (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate 4 new operands. (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use match_dup, instead add 4 new operands and require they have right cross-lane values. (avx2_permv4di): Change into define_expand. (avx2_permv4di_1): New instruction. (avx2_permv2ti): Use nonimmediate_operand instead of register_operand for "xm" constrained operand. (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2. From-SVN: r179870
2011-10-13sse.md (avx2_gathersi<mode>, [...]): Add clobber of match_scratch...Jakub Jelinek3-54/+75
* config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of match_scratch, change memory_operand to register_operand, add (mem:BLK (scratch)) use. (*avx2_gathersi<mode>, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>256): Add clobber of match_scratch, add earlyclobber to the output operand and match_scratch, add (mem:BLK (scratch)) use, change the other mem to match_operand. Use %p6 instead of %c6 in the pattern. * config/i386/i386.c (ix86_expand_builtin): Adjust for operand 2 being a Pmode register_operand instead of memory_operand. From-SVN: r179869
2011-10-12ada-tree.h (DECL_LOOP_PARM_P): New flag.Eric Botcazou27-69/+1325
* gcc-interface/ada-tree.h (DECL_LOOP_PARM_P): New flag. (DECL_INDUCTION_VAR): New macro. (SET_DECL_INDUCTION_VAR): Likewise. * gcc-interface/gigi.h (convert_to_index_type): Declare. (gnat_invariant_expr): Likewise. * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: If this is a loop parameter, set DECL_LOOP_PARM_P on it. * gcc-interface/misc.c (gnat_print_decl) <VAR_DECL>: If DECL_LOOP_PARM_P is set, print DECL_INDUCTION_VAR instead of DECL_RENAMED_OBJECT. * gcc-interface/trans.c (gnu_loop_label_stack): Delete. (struct range_check_info_d): New type. (struct loop_info_d): Likewise. (gnu_loop_stack): New stack. (Identifier_to_gnu): Set TREE_READONLY flag on the first dereference built for a by-double-ref read-only parameter. If DECL_LOOP_PARM_P is set, do not test DECL_RENAMED_OBJECT. (push_range_check_info): New function. (Loop_Statement_to_gnu): Push a new struct loop_info_d instead of just the label. Reference the label and the iteration variable from it. Build the special induction variable in the unsigned version of the size type, if it is larger than the base type. And attach it to the iteration variable if the latter isn't by-ref. In the iteration scheme case, initialize the invariant conditions in front of the loop if deemed profitable. Use gnu_loop_stack. (gnat_to_gnu) <N_Exit_Statement>: Use gnu_loop_stack. <N_Raise_Constraint_Error>: Always process the reason. In the range check and related cases, and if loop unswitching is enabled, compute invariant conditions and push this information onto the stack. Do not translate again the condition if it has been already translated. * gcc-interface/utils.c (record_global_renaming_pointer): Assert that DECL_LOOP_PARM_P isn't set. (convert_to_index_type): New function. * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Use it in order to convert the index from the base index type to sizetype. (gnat_invariant_expr): New function. From-SVN: r179868
2011-10-12re PR c++/50594 (Option -fwhole-program discards replaced new operator for ↵Paolo Carlini15-33/+152
std::string) 2011-10-12 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50594 * decl.c (cxx_init_decl_processing): Add __attribute__((externally_visible)) to operator new and operator delete library fn. 2011-10-12 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50594 * libsupc++/new (operator new, operator delete): Decorate with __attribute__((__externally_visible__)). * include/bits/c++config: Add _GLIBCXX_THROW. * libsupc++/del_op.cc: Adjust. * libsupc++/del_opv.cc: Likewise. * libsupc++/del_opnt.cc: Likewise. * libsupc++/del_opvnt.cc: Likewise. * libsupc++/new_op.cc: Likewise. * libsupc++/new_opv.cc: Likewise. * libsupc++/new_opnt.cc: Likewise. * libsupc++/new_opvnt.cc: Likewise. * testsuite/18_support/50594.cc: New. * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line number. From-SVN: r179863
2011-10-12Add -mfpmath=sse/-mtune=generic to FMA tests.H.J. Lu25-60/+53
2011-10-12 H.J. Lu <hongjiu.lu@intel.com> * gcc.target/i386/fma_run_double_1.c: Add -mfpmath=sse. * gcc.target/i386/fma_run_double_2.c: Likewise. * gcc.target/i386/fma_run_double_3.c: Likewise. * gcc.target/i386/fma_run_double_4.c: Likewise. * gcc.target/i386/fma_run_double_5.c: Likewise. * gcc.target/i386/fma_run_double_6.c: Likewise. * gcc.target/i386/fma_run_float_1.c: Likewise. * gcc.target/i386/fma_run_float_2.c: Likewise. * gcc.target/i386/fma_run_float_3.c: Likewise. * gcc.target/i386/fma_run_float_4.c: Likewise. * gcc.target/i386/fma_run_float_5.c: Likewise. * gcc.target/i386/fma_run_float_6.c: Likewise. * gcc.target/i386/l_fma_double_1.c: Add -mtune=generic and remove the extra dg-options. * gcc.target/i386/l_fma_double_2.c: Likewise. * gcc.target/i386/l_fma_double_3.c: Likewise. * gcc.target/i386/l_fma_double_4.c: Likewise. * gcc.target/i386/l_fma_double_5.c: Likewise. * gcc.target/i386/l_fma_double_6.c: Likewise. * gcc.target/i386/l_fma_float_1.c: Likewise. * gcc.target/i386/l_fma_float_2.c: Likewise. * gcc.target/i386/l_fma_float_3.c: Likewise. * gcc.target/i386/l_fma_float_4.c: Likewise. * gcc.target/i386/l_fma_float_5.c: Likewise. * gcc.target/i386/l_fma_float_6.c: Likewise. From-SVN: r179861
2011-10-12i386.md (simple_return): Disable if TARGET_SEH is active.Kai Tietz2-1/+10
* config/i386/i386.md (simple_return): Disable if TARGET_SEH is active. From-SVN: r179860
2011-10-12ia64.c (ia64_init_builtins): Fix unbalanced parentheses.Steve Ellcey2-3/+7
2011-10-12 Steve Ellcey <sje@cup.hp.com> * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses. From-SVN: r179859
2011-10-12tree-ssa-alias.c (maybe_skip_until): Cache also at the point of the first ↵Richard Guenther2-6/+41
store we visit in a basic-block. 2011-10-12 Richard Guenther <rguenther@suse.de> * tree-ssa-alias.c (maybe_skip_until): Cache also at the point of the first store we visit in a basic-block. (get_continuation_for_phi): Search for a candidate VUSE that might dominates all others. Do pairwise disambiguation against that candidate. From-SVN: r179858
2011-10-12re PR middle-end/50189 (Wrong code error in -O2 [-fstrict-enums] compile, ↵Paul Koning4-5/+137
target independent) 2011-10-12 Paul Koning <pkoning@gcc.gnu.org> PR tree-optimization/50189 * tree-vrp.c (extract_range_from_assert): Use the type of the variable, not the limit. * g++.dg/torture/pr50189.C: New testcase. From-SVN: r179857
2011-10-12invoke.texi (-fwhole-file): Update wording since -fwhole-file is now enabled ↵Tobias Burnus2-8/+17
by default. 2011-10-11 Tobias Burnus <burnus@net-b.de> Janus Weil <janus@gcc.gnu.org> * invoke.texi (-fwhole-file): Update wording since -fwhole-file is now enabled by default. Co-Authored-By: Janus Weil <janus@gcc.gnu.org> From-SVN: r179854
2011-10-12re PR middle-end/50700 (__builtin_object_size computed wrong)Richard Guenther4-14/+46
2011-10-12 Richard Guenther <rguenther@suse.de> PR tree-optimization/50700 * tree-object-size.c (addr_object_size): Simplify and treat MEM_REF bases consistently. * gcc.dg/builtin-object-size-12.c: New testcase. From-SVN: r179850
2011-10-12function.c (prepare_shrink_wrap, [...]): New function.Bernd Schmidt2-12/+154
* function.c (prepare_shrink_wrap, bb_active_p): New function. (thread_prologue_and_epilogue_insns): Use bb_active_p. Call prepare_shrink_wrap, then recompute bb_active_p for the last block. From-SVN: r179848
2011-10-12re PR c/50565 (initializer element is not computable at load time)Joseph Myers5-0/+29
PR c/50565 * convert.c (convert_to_integer): Do not narrow operands of pointer subtraction. testsuite: * gcc.c-torture/compile/pr50565-1.c, gcc.c-torture/compile/pr50565-2.c: New tests. From-SVN: r179845
2011-10-12arm.h (EMIT_EABI_ATTRIBUTE): New macro.Nick Clifton4-147/+156
* config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro. Used to emit a .eabi_attribute assembler directive, possibly with a comment attached. * config/arm/arm.c (arm_file_start): Use the new macro. * config/arm/arm-c.c (arm_output_c_attributes): Likewise. From-SVN: r179844
2011-10-12re PR target/49939 ([avr] Skip 2-word instructions if applicable)Georg-Johann Lay3-4/+64
PR target/49939 * config/avr/avr.md (*movqi): Rename to movqi_insn. (*call_insn): Rename to call_insn. (*call_value_insn): Rename to call_value_insn. * config/avr/avr.c (avr_2word_insn_p): New static function. (jump_over_one_insn_p): Use it. From-SVN: r179843
2011-10-12expr.h (copy_blkmode_to_reg): Declare.Richard Sandiford5-113/+165
gcc/ * expr.h (copy_blkmode_to_reg): Declare. * expr.c (copy_blkmode_to_reg): New function. (expand_assignment): Don't expand register RESULT_DECLs before the lhs. Use copy_blkmode_to_reg to copy BLKmode values into a RESULT_DECL register. (expand_expr_real_1): Handle BLKmode decls when looking for promotion. * stmt.c (expand_return): Move BLKmode-to-register code into copy_blkmode_to_reg. From-SVN: r179839
2011-10-12Daily bump.GCC Administrator1-1/+1
From-SVN: r179835
2011-10-11re PR target/49965 (libgomp.c++/reduction-4.C and libgomp.c++/task-8.C FAIL ↵Eric Botcazou2-10/+16
on Solaris 11/SPARC) PR target/49965 * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code. (mov<F:mode>cc): Likewise. From-SVN: r179827
2011-10-11Remove incorrect ChangeLog entry, correct spacing.Ian Lance Taylor2-11/+1
From-SVN: r179826
2011-10-11tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.Bill Schmidt2-1/+4
2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com> * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP. From-SVN: r179825
2011-10-11Convert standard builtin functions from being arrays to using a functional ↵Michael Meissner64-466/+853
interface From-SVN: r179820
2011-10-11tree.h (copy_ref_info): Expose existing function.Bill Schmidt4-58/+70
2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com> * tree.h (copy_ref_info): Expose existing function. * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to... * tree-ssa-address.c (copy_ref_info): ...here, and remove static token. From-SVN: r179818
2011-10-11avr-protos.h (avr_mode_code_base_reg_class): New prototype.Georg-Johann Lay4-39/+114
* config/avr/avr-protos.h (avr_mode_code_base_reg_class): New prototype. (avr_regno_mode_code_ok_for_base_p): New prototype. * config/avr/avr.h (BASE_REG_CLASS): Remove. (REGNO_OK_FOR_BASE_P): Remove. (REG_OK_FOR_BASE_NOSTRICT_P): Remove. (REG_OK_FOR_BASE_STRICT_P): Remove. (MODE_CODE_BASE_REG_CLASS): New define. (REGNO_MODE_CODE_OK_FOR_BASE_P): New define. * config/avr/avr.c (avr_mode_code_base_reg_class): New function. (avr_regno_mode_code_ok_for_base_p): New function. (avr_reg_ok_for_addr_p): New static function. (avr_legitimate_address_p): Use it. Beautify. From-SVN: r179817
2011-10-11re PR target/50447 ([avr] Better support of AND, OR, XOR and PLUS with ↵Georg-Johann Lay4-27/+93
constant integers for 16- and 32-bit values) PR target/50447 * config/avr/avr.md (cc): Add out_plus attribute alternative. (addsi3): Use it. Adapt avr_out_plus to new prototype. Use avr_out_plus for all CONST_INT addends. * config/avr/avr-protos.h (avr_out_plus): Change prototype. * config/avr/avr.c (notice_update_cc): Call avr_out_plus on CC_OUT_PLUS. (avr_out_plus_1): Change prototype and report effect on cc0. (avr_out_plus): Ditto. (adjust_insn_length): Adapt call to avr_out_plus to new prototype. From-SVN: r179816
2011-10-11re PR c++/49855 (internal compiler error: in fold_convert_const_int_from_real)Jason Merrill14-7/+120
PR c++/49855 PR c++/49896 * cp-tree.def (IMPLICIT_CONV_EXPR): New. * call.c (perform_implicit_conversion_flags): Build it instead of NOP_EXPR. * cp-objcp-common.c (cp_common_init_ts): It's typed. * cxx-pretty-print.c (pp_cxx_cast_expression): Handle it. (pp_cxx_expression): Likewise. * error.c (dump_expr): Likewise. * semantics.c (potential_constant_expression_1): Likewise. * tree.c (cp_tree_equal): Likewise. (cp_walk_subtrees): Likewise. * pt.c (iterative_hash_template_arg): Likewise. (for_each_template_parm_r): Likewise. (type_dependent_expression_p): Likewise. (tsubst_copy, tsubst_copy_and_build): Handle IMPLICIT_CONV_EXPR and CONVERT_EXPR. * cp-tree.h (IMPLICIT_CONV_EXPR_DIRECT_INIT): New. From-SVN: r179813
2011-10-11Remove the extra break.H.J. Lu2-1/+5
2011-10-11 H.J. Lu <hongjiu.lu@intel.com> * config/i386/i386.c (ix86_expand_special_args_builtin): Remove the extra break. From-SVN: r179812
2011-10-11New warning -Wvector-operation-performance.Artjoms Sinkarovs9-4/+120
From-SVN: r179807
2011-10-11pr49994-3.c: Add -mbackchain for s390 and s390x.Andreas Krebbel2-0/+5
2011-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * gcc.dg/pr49994-3.c: Add -mbackchain for s390 and s390x. From-SVN: r179805
2011-10-11re PR c++/50611 (Error reporting routines re-entered)Paolo Carlini2-1/+11
2011-10-11 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50611 * pt.c (tsubst_copy_and_build): If (complain & tf_error) is false do not call unqualified_name_lookup_error. From-SVN: r179802
2011-10-11re PR libstdc++/50661 (std::equal should use more efficient version for ↵Emil Wojak2-2/+9
arrays of pointers) 2011-10-11 Emil Wojak <emil@wojak.eu> PR c++/50661 * include/bits/stl_algobase.h (equal): Compare arrays of pointers too with memcmp. From-SVN: r179801
2011-10-11re PR tree-optimization/50204 (Missed fully redundant load found in crafty ↵Richard Guenther4-43/+107
(SPEC 2k)) 2011-10-11 Richard Guenther <rguenther@suse.de> PR tree-optimization/50204 * tree-ssa-alias.c (get_continuation_for_phi_1): Split out two argument handling from ... (get_continuation_for_phi): ... here. Handle arbitrary number of PHI args. * gcc.dg/tree-ssa/ssa-fre-36.c: New testcase. From-SVN: r179799
2011-10-1120090223-1.c: Add -Wno-attributes.Andreas Krebbel2-1/+5
2011-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * gcc.target/s390/20090223-1.c: Add -Wno-attributes. From-SVN: r179798
2011-10-11re PR c++/33067 (Awkward long decimal expansion for double literal in error.)Paolo Carlini2-1/+19
2011-10-11 Paolo Carlini <paolo.carlini@oracle.com> PR c++/33067 * c-family/c-pretty-print.c (pp_c_floating_constant): Output max_digits10 (in the ISO C++ WG N1822 sense) decimal digits. From-SVN: r179797
2011-10-11fma_double_1.c: Add -mfpmath=sse.Kirill Yukhin37-36/+75
* gcc.target/i386/fma_double_1.c: Add -mfpmath=sse. * gcc.target/i386/fma_double_2.c: Ditto. * gcc.target/i386/fma_double_3.c: Ditto. * gcc.target/i386/fma_double_4.c: Ditto. * gcc.target/i386/fma_double_5.c: Ditto. * gcc.target/i386/fma_double_6.c: Ditto. * gcc.target/i386/fma_float_1.c: Ditto. * gcc.target/i386/fma_float_2.c: Ditto. * gcc.target/i386/fma_float_3.c: Ditto. * gcc.target/i386/fma_float_4.c: Ditto. * gcc.target/i386/fma_float_5.c: Ditto. * gcc.target/i386/fma_float_6.c: Ditto. * gcc.target/i386/l_fma_double_1.c: Ditto. * gcc.target/i386/l_fma_double_2.c: Ditto. * gcc.target/i386/l_fma_double_3.c: Ditto. * gcc.target/i386/l_fma_double_4.c: Ditto. * gcc.target/i386/l_fma_double_5.c: Ditto. * gcc.target/i386/l_fma_double_6.c: Ditto. * gcc.target/i386/l_fma_float_1.c: Ditto. * gcc.target/i386/l_fma_float_2.c: Ditto. * gcc.target/i386/l_fma_float_3.c: Ditto. * gcc.target/i386/l_fma_float_4.c: Ditto. * gcc.target/i386/l_fma_float_5.c: Ditto. * gcc.target/i386/l_fma_float_6.c: Ditto. * gcc.target/i386/l_fma_run_double_1.c: Ditto. * gcc.target/i386/l_fma_run_double_2.c: Ditto. * gcc.target/i386/l_fma_run_double_3.c: Ditto. * gcc.target/i386/l_fma_run_double_4.c: Ditto. * gcc.target/i386/l_fma_run_double_5.c: Ditto. * gcc.target/i386/l_fma_run_double_6.c: Ditto. * gcc.target/i386/l_fma_run_float_1.c: Ditto. * gcc.target/i386/l_fma_run_float_2.c: Ditto. * gcc.target/i386/l_fma_run_float_3.c: Ditto. * gcc.target/i386/l_fma_run_float_4.c: Ditto. * gcc.target/i386/l_fma_run_float_5.c: Ditto. * gcc.target/i386/l_fma_run_float_6.c: Ditto. From-SVN: r179796
2011-10-11modulo-sched.c: Fix comment typo.Richard Sandiford2-2/+11
gcc/ * modulo-sched.c: Fix comment typo. Mention the possibility of using scheduling windows of II+1 cycles. From-SVN: r179788
2011-10-11c.opt: (fallow-parameterless-variadic-functions): New.Tristan Gingold8-5/+47
c-family/ChangeLog 2011-10-11 Tristan Gingold <gingold@adacore.com> * c.opt: (fallow-parameterless-variadic-functions): New. ChangeLog 2011-10-11 Tristan Gingold <gingold@adacore.com> * doc/invoke.texi (C Dialect Options): Document -fallow-parameterless-variadic-functions. * c-parser.c (c_parser_parms_list_declarator): Handle it. testsuite/ChangeLog 2011-10-11 Tristan Gingold <gingold@adacore.com> * gcc.dg/va-arg-4.c: New test. * gcc.dg/va-arg-5.c: Ditto. From-SVN: r179786