aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2007-04-17linkage.exp: Do not run on remote hosts.Mark Mitchell7-27/+52
* gcc.misc-tests/linkage.exp: Do not run on remote hosts. * lib/compat.exp (compat-run): Use file_on_host, not remote_file build. (compat-execute): Likewise. * lib/copy-file.exp (gcc_copy_files): Use remote_download to copy files to remote hosts. * lib/c-ctorture.exp (c-torture-compile): Likewise. (c-torture-execute): Likewise. * lib/dg-pch.exp (dg-pch): Use file_on_host, not remote_file build or plain file. Use remote_upload and remote_download to copy files about. * lib/scanasm.exp (dg-scan): Upload the file from the remote host before scanning it. From-SVN: r123914
2007-04-17re PR rtl-optimization/10692 ([m68k] miscompilation of perl with -O2 -fPIC)Bernd Schmidt2-14/+11
* reload1.c (delete_output_reload): Don't count output in n_inherited. Revert 2005-01-05 Richard Henderson <rth@redhat.com> PR rtl-opt/10692 * reload1.c (do_input_reload): Restrict the optimization deleteing a previous output reload to RELOAD_FOR_INPUT. From-SVN: r123913
2007-04-17arith.h: Update copyright years.Tobias Schlüter19-21/+50
* arith.h: Update copyright years. * dependency.h: Likewise. * gfortran.h: Likewise. * lang-specs.h: Likewise. * parse.h: Likewise. * symbol.c: Likewise. * trans.h: Likewise. * trans.c: Likewise. * trans-array.c: Likewise. * trans-common.c: Likewise. * trans-const.h: Likewise. * trans-const.c: Likewise. * trans-decl.c: Likewise. * trans-expr.c: Likewise. * trans-io.c: Likewise. * trans-openmp.c: Likewise. * trans-types.h: Likewise. * types.def: Likewise. From-SVN: r123911
2007-04-17tree-vectorizer.h (stmt_vec_info_type): Add enum value induc_vec_info_type.Dorit Nuzman7-61/+184
* tree-vectorizer.h (stmt_vec_info_type): Add enum value induc_vec_info_type. (vectorizable_induction): New function declaration. * tree-vect-transform.c (get_initial_def_for_induction): No need to check if already vectorized. Find first place in BB where new stmts can be inserted. Takes only one argument. (vectorizable_induction): New function. (vect_transform_stmt): Add case for induc_vec_info_type to call vectorizable_induction. (vect_transform_loop): Consider phis for vectorization. * tree-vect-analyze.c (vect_determine_vectorization_factor): Simplify condition. (analyze_operations): Call vectorizable_induction when analyzing phis. Fix comment. (vect_mark_stmts_to_be_vectorized): Remove redundant checks. (vect_mark_relevant): Include phis in relevance analysis. (vect_mark_stmts_to_be_vectorize): Likewise. * tree-vect-patterns.c (widened_name_p): Remove obsolete asserts. From-SVN: r123910
2007-04-17invoke.texi (Debugging Options): Add documentation for the ↵Lawrence Crowl35-10/+1955
-femit-struct-debug options... ./: * doc/invoke.texi (Debugging Options): Add documentation for the -femit-struct-debug options -femit-struct-debug-baseonly, -femit-struct-debug-reduced, and -femit-struct-debug-detailed[=...]. * c-opts.c (c_common_handle_option): Add OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced, and OPT_femit_struct_debug_detailed_. * c.opt: Add specifications for -femit-struct-debug-baseonly, -femit-struct-debug-reduced, and -femit-struct-debug-detailed[=...]. * opts.c (set_struct_debug_option): Parse the -femit-struct-debug-... options. * opts.c (matches_main_base, main_input_basename, main_input_baselength, base_of_path, matches_main_base): Add variables and functions to compare header base name to compilation unit base name. * opts.c (should_emit_struct_debug): Add to determine to emit a structure based on the option. (dump_struct_debug) Also disabled function to debug this function. * opts.c (handle_options): Save the base name of the compilation unit. * langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define. (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add. This hook indicates if a type is generic. Set it by default to "never generic". * langhooks.h (struct lang_hooks_for_types): Add a new hook to determine if a struct type is generic or not. * cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook. * cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook. * cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook with live C++ hook. * flags.h (enum debug_info_usage): Add an enumeration to describe a program's use of a structure type. * dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter to indicate the program's usage of the type. Filter structs based on the -femit-struct-debug-... specification. (gen_type_die): Split into two routines, gen_type_die and gen_type_die_with_usage. gen_type_die is now a wrapper that assumes direct usage. (gen_type_die_with_usage): Replace calls to gen_type_die with gen_type_die_with_usage adding the program usage of the referenced type. (dwarf2out_imported_module_or_decl): Suppress struct debug information using should_emit_struct_debug when appropriate. testsuite/: * g++.dg/other/fesd-any.C: Test -femit-struct-debug-detailed=any. * g++.dg/other/fesd-any.h: Test -femit-struct-debug-detailed=any. * g++.dg/other/fesd-baseonly.C: Test -femit-struct-debug-baseonly. * g++.dg/other/fesd-baseonly.h: Test -femit-struct-debug-baseonly. * g++.dg/other/fesd-none.C: Test -femit-struct-debug-detailed=none. * g++.dg/other/fesd-none.h: Test -femit-struct-debug-detailed=none. * g++.dg/other/fesd-reduced.C: Test -femit-struct-debug-reduced. * g++.dg/other/fesd-reduced.h: Test -femit-struct-debug-reduced. * g++.dg/other/fesd-sys.C: Test -femit-struct-debug-detailed=sys. * g++.dg/other/fesd-sys.h: Test -femit-struct-debug-detailed=sys. * g++.dg/other/fesd.h: Common to -femit-struct-debug-... tests. * gcc.dg/fesd-any.c: Test -femit-struct-debug-detailed=any. * gcc.dg/fesd-any.h: Test -femit-struct-debug-detailed=any. * gcc.dg/fesd-baseonly.c: Test -femit-struct-debug-baseonly. * gcc.dg/fesd-baseonly.h: Test -femit-struct-debug-baseonly. * gcc.dg/fesd-none.c: Test -femit-struct-debug-detailed=none. * gcc.dg/fesd-none.h: Test -femit-struct-debug-detailed=none. * gcc.dg/fesd-reduced.c: Test -femit-struct-debug-reduced. * gcc.dg/fesd-reduced.h: Test -femit-struct-debug-reduced. * gcc.dg/fesd-sys.c: Test -femit-struct-debug-detailed=sys. * gcc.dg/fesd-sys.h: Test -femit-struct-debug-detailed=sys. * gcc.dg/fesd.h: Common to -femit-struct-debug-... tests. From-SVN: r123909
2007-04-17re PR tree-optimization/31522 (False overflow warning with phi nodes)Ian Lance Taylor4-4/+42
./: PR tree-optimization/31522 * tree-vrp.c (vr_phi_edge_counts): New static variable. (vrp_initialize): Allocate vr_phi_edge_counts. (vrp_visit_phi_node): Don't push to infinity if we saw a new executable edge. Drop test for all constants. (vrp_finalize): Free vrp_phi_edge_counts. testsuite/: PR tree-optimization/31522 * gcc.dg/Wstrict-overflow-16.c: New test. From-SVN: r123908
2007-04-17cpp.texi (Common Predefined Macros): Clarify description of ↵Ian Lance Taylor2-9/+11
__GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__. * doc/cpp.texi (Common Predefined Macros): Clarify description of __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__. From-SVN: r123907
2007-04-17tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer predecessors ↵Ian Lance Taylor2-3/+24
at head rather than tail. * tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer predecessors at head rather than tail. From-SVN: r123906
2007-04-17* gcc.dg/cpp/_Pragma6.c: Skip on fido-*-* and m68k-*-*.Kazu Hirata2-2/+6
From-SVN: r123905
2007-04-17re PR fortran/31144 (gfortran module symbol names are not standard compliant)Tobias Schlüter4-2/+45
PR fortran/31144 fortran/ * decl.c (gfc_sym_mangled_identifier): Use capital letters in name mangling. (gfc_sym_mangled_function_id): Likewise. testsuite/ * gfortran.dg/module_naming_1.f90: New. From-SVN: r123904
2007-04-16Daily bump.GCC Administrator1-1/+1
From-SVN: r123900
2007-04-16linux.h (CPP_SPEC): Define.Matthias Klose3-1/+8
2007-04-16 Matthias Klose <doko@debian.org> * gcc/config/alpha/linux.h (CPP_SPEC): Define. * gcc/config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Extend. From-SVN: r123888
2007-04-16* function.h: Remove sequence_stack extern declaration.Aldy Hernandez2-2/+4
From-SVN: r123885
2007-04-16m68k.h (LONG_DOUBLE_TYPE_SIZE): Change to 64 on TARGET_FIDOA.Kazu Hirata2-3/+12
* config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Change to 64 on TARGET_FIDOA. (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Change to 64 if __mfido__ is defined. From-SVN: r123884
2007-04-16avr.c (avr_arch_types): Rearranging array.Anatoly Sokolov3-103/+119
* config/avr/avr.c (avr_arch_types): Rearranging array. (enum avr_arch): Add. (avr_mcu_types): Use avr_arch enumeration constants instead of numbers. * config/avr/avr.h (LINK_SPEC): Simplify. From-SVN: r123882
2007-04-16target-supports.exp (check_profiling_available): Return false for ↵Richard Sandiford2-0/+6
m68k-*-uclinux. * lib/target-supports.exp (check_profiling_available): Return false for m68k-*-uclinux. From-SVN: r123881
2007-04-16Correct the misplaced ChangeLog.Seongbae Park2-7/+7
From-SVN: r123880
2007-04-16re PR c++/29365 (Unnecessary anonymous namespace warnings)Seongbae Park5-4/+51
gcc/ChangeLog: 2007-04-16 Seongbae Park <seongbae.park@gmail.com> PR c++/29365 * cp/decl2.c (constrain_class_visibility): Do not warn about the use of anonymous namespace in the main input file. gcc/testsuite/ChangeLog: 2007-04-16 Seongbae Park <seongbae.park@gmail.com> PR c++/29365 Testcase for c++ anonymous namespace warning * g++.dg/warn/anonymous-namespace-1.C: New test * g++.dg/warn/anonymous-namespace-1.h: New test From-SVN: r123879
2007-04-16m68k.h (FRAME_POINTER_REGNUM): Use A6_REG instead.Kazu Hirata3-3/+8
* config/m68k/m68k.h (FRAME_POINTER_REGNUM): Use A6_REG instead. (M68K_REGNAME): Use A6_REG. * config/m68k/m68k.md (FP_REG): Rename to A6_REG. From-SVN: r123878
2007-04-16m68k.c (m68k_libcall_value, [...]): Use macros for register names more.Kazu Hirata2-3/+8
* config/m68k/m68k.c (m68k_libcall_value, m68k_function_value): Use macros for register names more. From-SVN: r123877
2007-04-16re PR middle-end/28071 (A file that can not be compiled in reasonable ↵Maxim Kuvyrkov4-16/+51
time/space) PR middle-end/28071 * sched-int.h (struct deps): Split field 'pending_lists_length' into 'pending_read_list_length' and 'pending_write_list_length'. Update comment. * sched-deps.c (add_insn_mem_dependence): Change signature. Update to handle two length counters instead of one. Update all uses. (flush_pending_lists, sched_analyze_1, init_deps): Update to handle two length counters instead of one. * sched-rgn.c (propagate_deps): Update to handle two length counters instead of one. From-SVN: r123874
2007-04-16Fix a typo in comments in revision 123866.H.J. Lu1-1/+1
From-SVN: r123871
2007-04-16Indentation fix.Tobias Schlüter1-1/+1
From-SVN: r123869
2007-04-16re PR target/31582 (ix86_expand_vec_set_builtin modifies source)H.J. Lu2-4/+15
2007-04-16 H.J. Lu <hongjiu.lu@intel.com> PR target/31582 * config/i386/i386.c (ix86_expand_vec_set_builtin): Make a copy of source, pass it to ix86_expand_vector_set and return it as target. From-SVN: r123866
2007-04-16mips.h (PROCESSOR_74KC, [...]): Define.David Ung6-4/+392
2007-04-16 David Ung <davidu@mips.com> Joseph Myers <joseph@codesourcery.com> * config/mips/mips.h (PROCESSOR_74KC, PROCESSOR_74KF, PROCESSOR_74KX, TUNE_74K, GENERATE_MADD_MSUB): Define. * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data): Add 74K processor information. * config/mips/mips.md: Include 74k.md. (cpu): Add 74kc,74kf,74kx. (ISA_HAS_MADD_MSUB): Change to GENERATE_MADD_MSUB throughout. * config/mips/74k.md: New. * doc/invoke.texi (MIPS Options): Document 74K support. Co-Authored-By: Joseph Myers <joseph@codesourcery.com> From-SVN: r123863
2007-04-16tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to ↵Dorit Nuzman3-161/+219
vectorizable_* functions. * tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to vectorizable_* functions. * tree-vect-transform.c (vectorizable_call): Add check for STMT_VINFO_RELEVANT_P, STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P. (vectorizable_store): likewise. (vectorizable_conversion): Add check for STMT_VINFO_DEF_TYPE. Add comments. (vectorizable_operation, vectorizable_type_demotion): Likewise. (vectorizable_type_promotion, vectorizable_load): Likewise. (vectorizable_live_operation, vectorizable_condition): Likewise. (vectorizable_assignment): Add check for STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P. (vect_transform_stmt): Reorganize calls to vectorizable_* functions. From-SVN: r123861
2007-04-15Daily bump.GCC Administrator1-1/+1
From-SVN: r123859
2007-04-15re PR testsuite/31578 (FAIL: gcc.dg/gnu89-init-4.c (test for excess errors))Andrew Pinski2-2/+7
2007-04-14 Andrew Pinski <andrew_pinski@playstation.sony.com> PR testsuite/31578 * gcc.dg/gnu89-init-4.c: Change to a compile only test. From-SVN: r123854
2007-04-15Fix typo in my last changelog entry.Andrew Pinski1-1/+1
From-SVN: r123853
2007-04-15warnings_are_errors_1.f90: Add -std=f95 to options.Jerry DeLisle2-1/+5
2007-04-15 Jerry DeLisle <jvdelisle@gcc.gnu.org> * gfortran.dg/warnings_are_errors_1.f90: Add -std=f95 to options. From-SVN: r123852
2007-04-15* cp-tree.h (current_template_parms): Fix typo in comment.Mark Mitchell2-1/+5
From-SVN: r123851
2007-04-15linux.h (FUNCTION_VALUE_REGNO_P): Use macros for register numbers more.Kazu Hirata7-14/+31
* config/m68k/linux.h (FUNCTION_VALUE_REGNO_P): Use macros for register numbers more. * config/m68k/m68k.h (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, STATIC_CHAIN_REGNUM, M68K_STRUCT_VALUE_REGNUM, FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Likewise. * config/m68k/m68kelf.h (M68K_STRUCT_VALUE_REGNUM, STATIC_CHAIN_REGNUM): Likewise. * config/m68k/m68kemb.h (FUNCTION_VALUE_REGNO_P): Likewise. * config/m68k/netbsd-elf.h (M68K_STRUCT_VALUE_REGNUM, STATIC_CHAIN_REGNUM, FUNCTION_VALUE_REGNO_P): Likewise. * config/m68k/m68k.md (FP_REG): New. From-SVN: r123850
2007-04-15re PR fortran/31204 (wrong host association of implied loop variable)Paul Thomas6-0/+94
2007-04-15 Paul Thomas <pault@gcc.gnu.org> PR fortran/31204 * primary.c (check_for_implicit_index): New function to check that a host associated variable is not an undeclared implied do loop index. (gfc_match_rvalue, match_variable): Use it and reset the implied_index attribute. * gfortran.h : Add the implied_index field to symbol_attribute. * match.c (gfc_match_iterator): Mark the iterator variable with the new attribute. * decl.c (build_sym): Reset the new attribute. 2007-04-15 Paul Thomas <pault@gcc.gnu.org> PR fortran/31204 * gfortran.dg/array_constructor_16.f90: New test. From-SVN: r123849
2007-04-15m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit alignment on fido.Kazu Hirata2-2/+8
* config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit alignment on fido. From-SVN: r123848
2007-04-15i386.c, [...]: Fix comment typos.Kazu Hirata7-9/+15
* config/i386/i386.c, config/s390/s390.c, config/s390/s390.md, tree-ssa-loop-niter.c, tree-ssa-structalias.c, tree-vrp.c: Fix comment typos. From-SVN: r123847
2007-04-15* cp-tree.h, error.c: Fix comment typos.Kazu Hirata3-2/+6
From-SVN: r123846
2007-04-15gfc-internals.texi: Fix typos.Kazu Hirata3-3/+8
* gfc-internals.texi: Fix typos. * simplify.c: Fix a comment typo. From-SVN: r123845
2007-04-15pr19340.c, [...]: XFAIL on fido-*-*.Kazu Hirata4-3/+9
* gcc.dg/pr19340.c, gcc.dg/tree-ssa/loop-1.c, gcc.dg/weak/typeof-2.c: XFAIL on fido-*-*. From-SVN: r123844
2007-04-15tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore cold loops.Zdenek Dvorak2-0/+12
* tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore cold loops. From-SVN: r123843
2007-04-15re PR rtl-optimization/31500 (FAIL: gcc.dg/Warray-bounds.c (internal ↵John David Anglin3-0/+8
compiler error)) PR rtl-optimization/31500 * gcc.dg/Warray-bounds.c: Skip on hppa*-*-*. * g++.dg/warn/Warray-bounds.C: Likewise. From-SVN: r123837
2007-04-14re PR c/31520 (Latent bug in finish_decl causing an errorous "array ↵Andrew Pinski4-1/+26
subscript is above array bounds") 2007-04-14 Andrew Pinski <andrew_pinski@playstation.sony.com> PR c/31520 * c-del.c (finish_decl): Grab the type of the decl after the call to store_init_value. 2007-04-14 Andrew Pinski <andrew_pinski@playstation.sony.com> PR C/31520 * testsuite/gcc.dg/gnu89-init-4.c: New testcase. From-SVN: r123835
2007-04-14Daily bump.GCC Administrator1-1/+1
From-SVN: r123833
2007-04-14* common.opt (fforward-propagate): Fix "Optimization" annotation.Steven Bosscher2-2/+6
From-SVN: r123830
2007-04-14re PR c++/25874 ([gomp] ICE in calc_dfs_tree())Jakub Jelinek5-0/+26
PR c++/25874 * omp-low.c (expand_omp_parallel): If child_cfun->cfg, free dominators, post dominators and cleanup cfg before returning. * gcc.dg/gomp/pr25874.c: Add dg-options. * g++.dg/gomp/pr25874.C: Add dg-options. From-SVN: r123822
2007-04-14+2007-04-14 Bernhard FischerBernhard Reutner-Fischer2-2/+8
* primary.c: Commentary typo fix; Add question about redundant (?) set. * ChangeLog: Fix formatting of previous ChangeLog entry which did not obey "'name" <name@there.tdl>' convention. From-SVN: r123821
2007-04-142007-04-14 Bernhard FischerBernhard Fischer3-0/+56
PR fortran/21061 * gfortran.dg/warnings_are_errors_1.f90: New testcase. * gfortran.dg/warnings_are_errors_1.f: New testcase. From-SVN: r123820
2007-04-14- commentary typo fixBernhard Reutner-Fischer1-1/+1
From-SVN: r123819
2007-04-14re PR fortran/31561 (FAIL: gfortran.dg/vect/vect-4.f90)Francois-Xavier Coudert2-2/+7
PR fortran/31561 * gfortran.dg/vect/vect-4.f90: xfail on vect_no_align targets. From-SVN: r123817
2007-04-14re PR fortran/29507 ([4.2 only] INDEX in an array initialization causes ICE)Paul Thomas4-1/+172
2007-04-14 Paul Thomas <pault@gcc.gnu.org> PR fortran/29507 PR fortran/31404 * expr.c (scalarize_intrinsic_call): New function to scalarize elemental intrinsic functions in initialization expressions. (check_init_expr): Detect elemental intrinsic functions in initalization expressions and call previous. 2007-04-14 Paul Thomas <pault@gcc.gnu.org> PR fortran/29507 PR fortran/31404 * gfortran.dg/initialization_6.f90: New test. From-SVN: r123815
2007-04-14bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.Bernd Schmidt3-7/+18
* config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied. * config/bfin/bfin.md (movsi_insn): Delete two unused alternatives. From-SVN: r123813