aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2008-12-18re PR fortran/31822 (Missing run-time bound checks for character pointer => ↵Daniel Kraft11-26/+125
target) 2008-12-18 Daniel Kraft <d@domob.eu> PR fortran/31822 * gfortran.h (gfc_check_same_strlen): Made public. * trans.h (gfc_trans_same_strlen_check): Made public. * check.c (gfc_check_same_strlen): Made public and adapted error message output to be useful not only for intrinsics. (gfc_check_merge): Adapt to gfc_check_same_strlen change. * expr.c (gfc_check_pointer_assign): Use gfc_check_same_strlen for string length compile-time check. * trans-expr.c (gfc_trans_pointer_assignment): Add runtime-check for equal string lengths using gfc_trans_same_strlen_check. * trans-intrinsic.c (gfc_trans_same_strlen_check): Renamed and made public from conv_same_strlen_check. (gfc_conv_intrinsic_merge): Adapted accordingly. 2008-12-18 Daniel Kraft <d@domob.eu> PR fortran/31822 * gfortran.dg/char_pointer_assign_2.f90: Updated expected error message to be more detailed. * gfortran.dg/char_pointer_assign_4.f90: New test. * gfortran.dg/char_pointer_assign_5.f90: New test. From-SVN: r142808
2008-12-18re PR middle-end/38533 (tree-ssa-reassoc.c increases register pressure ↵Jakub Jelinek5-10/+112
several times) PR middle-end/38533 * tree-ssa-reassoc.c (remove_visited_stmt_chain): New function. (rewrite_expr_tree): Add moved argument, move stmts together if needed. Call remove_visited_stmt_chain. (linearize_expr_tree): Don't move stmts here. (reassociate_bb): Call remove_visited_stmt_chain if num ops is 1. Adjust rewrite_expr_tree caller. * gcc.dg/tree-ssa/pr38533.c: New test. * gcc.c-torture/execute/pr38533.c: New test. From-SVN: r142807
2008-12-18re PR middle-end/38505 (Revision 142061 caused ICE on __builtin_memcpy)Jakub Jelinek4-0/+39
PR middle-end/38505 * tree-ssa.c (useless_type_conversion_p_1): Return false if inner_type is incomplete and outer_type is complete. * gcc.c-torture/compile/pr38505.c: New test. From-SVN: r142806
2008-12-18Daily bump.GCC Administrator1-1/+1
From-SVN: r142803
2008-12-17semantics.c (describable_type): New function.Jason Merrill11-8/+224
gcc/cp: * semantics.c (describable_type): New function. (finish_decltype_type): Use it for dependent exprs. * cp-tree.h: Declare it. * mangle.c (write_type) [DECLTYPE_TYPE]: Set skip_evaluation. (write_expression): If skip_evaluation, use type stubs. * tree.c (cp_tree_equal): Handle PARM_DECLs from different declarations of a function. * init.c (build_new): Do auto deduction if type is describable. * decl.c (cp_finish_decl): Likewise. * parser.c (cp_parser_omp_for_loop): Likewise. gcc/testsuite: * g++.dg/cpp0x/auto6.C: Test more stuff. * g++.dg/cpp0x/auto12.C: New test. libiberty: * cp-demangle.c (d_expression): Handle rvalue stubs too. [DEMANGLE_COMPONENT_CAST]: Update mangling. (d_print_comp): Avoid extra ", " with empty template argument packs. Remove handling for obsolete T() mangling. From-SVN: r142799
2008-12-17install.texi (Prerequisites): Document PPL and CLooG-PPL dependences and the ↵Sebastian Pop2-0/+45
configure options. 2008-12-17 Sebastian Pop <sebastian.pop@amd.com> * doc/install.texi (Prerequisites): Document PPL and CLooG-PPL dependences and the configure options. (Configuration): Document --with-cloog, --with-ppl, --with-cloog-lib, --with-ppl-lib, --with-cloog-incude, --with-ppl-include. From-SVN: r142798
2008-12-17re PR middle-end/38556 (Revision 142792 breaks bootstrap)H.J. Lu2-2/+10
2008-12-17 H.J. Lu <hongjiu.lu@intel.com> PR middle-end/38556 * calls.c (expand_call): Check outgoing_reg_parm_stack_space only if REG_PARM_STACK_SPACE is defined. From-SVN: r142794
2008-12-17calls.c (expand_call): Do not sibcall if outgoing_reg_parm_stack_space does ↵Jan Hubicka2-0/+10
not match. * calls.c (expand_call): Do not sibcall if outgoing_reg_parm_stack_space does not match. Co-Authored-By: Kai Tietz <kai.tietz@onevision.com> From-SVN: r142792
2008-12-17re PR fortran/38137 (MERGE: -fbounds-check runtime check for same string length)Daniel Kraft4-1/+64
2008-12-17 Daniel Kraft <d@domob.eu> PR fortran/38137 * trans-intrinsic.c (conv_same_strlen_check): New method. (gfc_conv_intrinsic_merge): Call it here to actually do the check. 2008-12-17 Daniel Kraft <d@domob.eu> PR fortran/38137 * gfortran.dg/merge_char_3.f90: New test. From-SVN: r142791
2008-12-17Daily bump.GCC Administrator1-1/+1
From-SVN: r142789
2008-12-17avr.c (avr_mcu_t): Add attiny87...Anatoly Sokolov4-8/+55
* config/avr/avr.c (avr_mcu_t): Add attiny87, attiny327, at90pwm81, atmega16m1, at90scr100, atmega128rfa1, m3000f, m3000s and m3001b devices. * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.). * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.). From-SVN: r142783
2008-12-16re PR preprocessor/38842 (Problem with SystemC compilation using GCC 4.3.2)Hariharan Sandanagobalane2-4/+8
PR target/38842 * config/picochip/picochip.opt (mae): Squeezed the comments onto one line. From-SVN: r142781
2008-12-16configure.ac (gcc_cv_ld_hidden): Sun ld on Solaris 9 and up supports hidden.Rainer Orth3-2/+14
* configure.ac (gcc_cv_ld_hidden): Sun ld on Solaris 9 and up supports hidden. * configure: Regenerate. From-SVN: r142779
2008-12-16re PR target/37436 (arm-cross-g++. internal compiler error: in extract_insn, ↵Richard Earnshaw4-5/+23
at recog.c:1990) PR target/37436 * arm.c (arm_legitimate_index): Only accept addresses that are in canonical form. * predicates.md (arm_reg_or_extendqisi_mem_op): New predicate. * arm.md (extendqihi2): Use arm_reg_or_extendqisi_mem_op predicate for operand1. (extendqisi2): Likewise. (arm_extendqisi, arm_extendqisi_v6): Use arm_extendqisi_mem_op predicate for operand1. From-SVN: r142778
2008-12-16Daily bump.GCC Administrator1-1/+1
From-SVN: r142775
2008-12-15mips.c (mips_output_conditional_branch): Assert that openrands[1] is a ↵Adam Nemet2-0/+7
CODE_LABEL. * config/mips/mips.c (mips_output_conditional_branch): Assert that openrands[1] is a CODE_LABEL. From-SVN: r142772
2008-12-15mips.c (mips_expand_builtin_direct): Set TARGET to the result of ↵Richard Sandiford2-1/+7
mips_prepare_builtin_target. gcc/ * config/mips/mips.c (mips_expand_builtin_direct): Set TARGET to the result of mips_prepare_builtin_target. From-SVN: r142771
2008-12-15mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_abicalls if TARGET_ABICALLS ↵Richard Sandiford2-0/+10
is true. gcc/ * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_abicalls if TARGET_ABICALLS is true. From-SVN: r142770
2008-12-15mips.md (move_doubleword_fpr<mode>): Use TARGET_FLOAT64 && !TARGET_64BIT to ↵Richard Sandiford2-3/+8
detect the mxhc1 case. gcc/ * config/mips/mips.md (move_doubleword_fpr<mode>): Use TARGET_FLOAT64 && !TARGET_64BIT to detect the mxhc1 case. From-SVN: r142769
2008-12-15re PR fortran/38487 (Bogus Warning: INTENT(INOUT) actual argument might ↵Mikael Morin4-12/+71
interfere with actual argument) 2008-12-15 Mikael Morin <mikael.morin@tele2.fr> PR fortran/38487 * gfortran.dg/elemental_dependency_2.f90: New test. 2008-12-15 Mikael Morin <mikael.morin@tele2.fr> PR fortran/38487 * dependency.c (gfc_is_data_pointer): New function. (gfc_check_argument_var_dependency): Disable the warning in the pointer case. (gfc_check_dependency): Use gfc_is_data_pointer. From-SVN: r142766
2008-12-15picochip.c (picochip_override_options): Disable CFI asm and change the ↵Hariharan Sandanagobalane3-8/+21
signature of brev and byteSwap functions to use... * config/picochip/picochip.c (picochip_override_options): Disable CFI asm and change the signature of brev and byteSwap functions to use unsigned values. * config/picochip/picochip.md (commsTestPort): This is a complex instruction and should not be vliwed. Dont set insn type. From-SVN: r142765
2008-12-15re PR fortran/38113 (on warning/error: skip whitespaces, move position ↵Mikael Morin3-10/+11
marker to actual variable name) 2008-12-15 Mikael Morin <mikael.morin@tele2.fr> PR fortran/38113 * error.c (show_locus): Start counting columns at 0. * primary.c (match_actual_arg): Eat spaces before copying the current locus. (match_variable): Copy the locus before matching. From-SVN: r142763
2008-12-15s390.c (s390_swap_cmp): New function.Wolfgang Gellerich3-0/+117
2008-12-15 Wolfgang Gellerich <gellerich@de.ibm.com> * config/s390/s390.c (s390_swap_cmp): New function. (s390_non_addr_reg_read_p): New function. (s390_z10_optimize_cmp): New function. (s390_reorg): Added call to s390_optimize_cmp. * config/s390/s390.md (nop1): New insn. From-SVN: r142762
2008-12-15Daily bump.GCC Administrator1-1/+1
From-SVN: r142760
2008-12-14i386-5.C: Include x86intrin.h.Uros Bizjak3-11/+7
* g++.dg/other/i386-5.C: Include x86intrin.h. * g++.dg/other/i386-6.C: Ditto. From-SVN: r142752
2008-12-14re PR fortran/35937 (Wrong type for charlength of function)Paul Thomas4-1/+35
2008-12-14 Paul Thomas <pault@gcc.gnu.org> PR fortran/35937 * trans-expr.c (gfc_finish_interface_mapping): Fold convert the character length to gfc_charlen_type_node. 2008-12-14 Paul Thomas <pault@gcc.gnu.org> PR fortran/35937 * gfortran.dg/char_length_14.f90: New test. From-SVN: r142750
2008-12-14re PR fortran/38504 (double minus sign when printing integer?)Jerry DeLisle2-0/+21
2008-12-13 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/38504 * gfortran.dg/fmt_int_sign.f90: New test. From-SVN: r142748
2008-12-14Daily bump.GCC Administrator1-1/+1
From-SVN: r142745
2008-12-13pr38409.c: Fixed commit problem.Sebastian Pop2-24/+4
* gcc.dg/graphite/pr38409.c: Fixed commit problem. From-SVN: r142741
2008-12-13sse-12.c: Include x86intrin.h.Uros Bizjak6-28/+111
* gcc.target/i386/sse-12.c: Include x86intrin.h. (dg-options): Use -mavx instead of -msse4. Add -maes -mpclmul. * gcc.target/i386/sse-13.c: Include x86intrin.h. Define immintrin.h intrinsics that require immediate arguments. (dg-options): Use -mavx instead of -msse4. * gcc.target/i386/sse-14.c: Include x86intrin.h. Define immintrin.h intrinsics that require immediate arguments. (test_3): New macro. (dg-options): Use -mavx instead of -msse4. * g++.dg/other/i386-2.C: Include x86intrin.h. (dg-options): Use -mavx instead of -msse4. * g++.dg/other/i386-3.C: Include x86intrin.h. (dg-options): Use -mavx instead of -msse4. From-SVN: r142739
2008-12-13Daily bump.GCC Administrator1-1/+1
From-SVN: r142732
2008-12-13re PR bootstrap/38383 (fails to build cross gcc for target hppa64-hp-hpux11.00)Rainer Emrich2-1/+7
PR bootstrap/38383 * pa64-hpux.h (LINK_GCC_C_SEQUENCE_SPEC): Don't hardcode search path for the milli.a library. From-SVN: r142729
2008-12-12re PR target/24779 (Python miscompilation - TOC reload)Andrew Pinski2-28/+131
2008-12-12 Andrew Pinski <andrew_pinskia@playstation.sony.com> Peter Bergner <bergner@vnet.ibm.com> PR target/24779 * config/rs6000/rs6000.md (call_indirect_aix32): Move the load of the TOC into the call pattern. (call_indirect_aix64): Likewise. (call_value_indirect_aix32): Likewise. (call_value_indirect_aix64): Likewise. (call_indirect_nonlocal_aix32_internal): New insn and split patterns to split off the load of the TOC. (call_indirect_nonlocal_aix32): Enable only after reload. (call_indirect_nonlocal_aix64_internal): New insn and split patterns to split off the load of the TOC. (call_indirect_nonlocal_aix64): Enable only after reload. (call_value_indirect_nonlocal_aix32_internal): New insn and split patterns to split off the load of the TOC. (call_value_indirect_nonlocal_aix32): Enable only after reload. (call_value_indirect_nonlocal_aix64_internal): New insn and split patterns to split off the load of the TOC. (call_value_indirect_nonlocal_aix64): Enable only after reload. Co-Authored-By: Peter Bergner <bergner@vnet.ibm.com> From-SVN: r142727
2008-12-12re PR testsuite/38163 (gcc.dg/tree-ssa/loop-3.c failure at -m64 on ↵Uros Bizjak3-27/+27
i686-apple-darwin9) PR testsuite/38163 * gcc.dg/tree-ssa/loop-3.c: Compile only on nonpic x86 targets. Remove dg-skip-if directive. From-SVN: r142726
2008-12-12re PR libfortran/24685 (real(16) formatted input is broken for huge values ↵Janis Johnson2-1/+5
(gfortran.dg/default_format_2.f90)) PR libgfortran/24685 * gfortran.dg/default_format_denormal_2.f90: Change XFAIL to check for size of long double. From-SVN: r142724
2008-12-12re PR objc++/31032 (expected tree that contains 'decl with RTL' structure, ↵Janis Johnson2-2/+5
have 'field_decl' in assemble_external_real, at varasm.c:2225) PR objc++/31032 * obj-c++.dg/bitfield-1.mm: Remove XFAIL for ICE. From-SVN: r142723
2008-12-12revert: cfgrtl.c (rtl_verify_flow_info_1): Don't apply BLOCK_FOR_INSN on a ↵Andreas Schwab2-16/+22
BARRIER insn. Revert: 2008-12-12 Andreas Schwab <schwab@suse.de> * cfgrtl.c (rtl_verify_flow_info_1): Don't apply BLOCK_FOR_INSN on a BARRIER insn. From-SVN: r142721
2008-12-12* gcc.dg/pr35442.c: Ignore a possible warning.Janis Johnson2-0/+7
From-SVN: r142720
2008-12-12re PR tree-optimization/32044 (final value replacement too aggressive for ↵Zdenek Dvorak7-8/+133
e.g. targets with no native div/mod insns) PR tree-optimization/32044 * tree-scalar-evolution.h (expression_expensive_p): Declare. * tree-scalar-evolution.c (expression_expensive_p): New function. (scev_const_prop): Avoid introducing expensive expressions. * tree-ssa-loop-ivopts.c (may_eliminate_iv): Ditto. * gcc.dg/pr34027-1.c: Change outcome. * gcc.dg/tree-ssa/pr32044.c: New test. From-SVN: r142719
2008-12-12re PR target/11594 (testcase gcc.dg/20020103-1.c fails with ↵Janis Johnson2-1/+6
"scan-assembler-not LC") PR target/11594 * gcc.dg/20020103-1.c: Remove XFAIL for powerpc. From-SVN: r142718
2008-12-12re PR middle-end/38409 ([graphite] ICE : in canonicalize_loop_ivs, at ↵Sebastian Pop4-1/+60
tree-parloops.c:1384) 2008-12-12 Sebastian Pop <sebastian.pop@amd.com> PR middle-end/38409 * gcc.dg/graphite/pr38409.c: New. * graphite.c (nb_reductions_in_loop): Use simple_iv. From-SVN: r142716
2008-12-12x86intrin.h: New header file to support all x86 intrinsicsDwarakanath Rajagopal3-2/+83
2008-12-12 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> * config/i386/x86intrin.h: New header file to support all x86 intrinsics * config.gcc (extra_headers): For x86 and x86-64, add x86intrin.h From-SVN: r142713
2008-12-12re PR target/38402 (Undocumented Yz constraint)H.J. Lu2-2/+17
2008-12-12 H.J. Lu <hongjiu.lu@intel.com> PR target/38402 * gcc/doc/md.texi: Remove Y and document Yz, Y2, Yi and Ym constraints for x86. From-SVN: r142710
2008-12-12re PR fortran/36355 (matmul argument-check: wrong error messages)Daniel Franke4-2/+55
gcc/fortran: 2008-12-12 Daniel Franke <franke.daniel@gmail.com> PR fortran/36355 * check.c (gfc_check_matmul): Fixed error message for invalid types to correctly identify the offending argument, added check for mismatching types. gcc/testsuite: 2008-12-12 Daniel Franke <franke.daniel@gmail.com> PR fortran/36355 * gfortran.dg/matmul_argument_types.f90: New. From-SVN: r142709
2008-12-12(rtl_verify_flow_info_1): Don't apply BLOCK_FOR_INSN onAndreas Schwab2-1/+7
a BARRIER insn. From-SVN: r142708
2008-12-12sync.md (memory_barrier): Remove mem:BLK from operands.Uros Bizjak2-11/+17
* config/alpha/sync.md (memory_barrier): Remove mem:BLK from operands. Use Pmode for scratch reg. (*mb_internal): Use (match_dup 0) for unspec operand. From-SVN: r142705
2008-12-12tree-vrp.c (extract_range_from_binary_expr): Don't shift by floor_log2 of zero.Alexandre Oliva2-2/+7
* tree-vrp.c (extract_range_from_binary_expr): Don't shift by floor_log2 of zero. Negate widened zero. From-SVN: r142702
2008-12-12fp-bit.c (nan): Rename from this ..Ben Elliston2-5/+10
* config/fp-bit.c (nan): Rename from this .. (makenan): .. to this. From-SVN: r142701
2008-12-12Daily bump.GCC Administrator1-1/+1
From-SVN: r142699
2008-12-11re PR testsuite/29071 (gcc.dg/20020919-1.c compilation test fails on ↵Janis Johnson2-1/+6
powerpc-apple-darwin8 at -m64) PR testsuite/29071 * gcc.dg/20020919-1.c: Fix a preprocessor check. From-SVN: r142696