1. 03 Jul, 2007 8 commits
    • combine.c (recog_for_combine): Log the success or failure of matching new insn… · b6bcd676
      combine.c (recog_for_combine): Log the success or failure of matching new insn patterns against the machine...
      
      	* combine.c (recog_for_combine): Log the success or failure of
      	  matching new insn patterns against the machine description in
      	  detailed dumps.
      
      From-SVN: r126251
      Rask Ingemann Lambertsen committed
    • modulo-sched: print sccs and check it · 8cec1624
      From-SVN: r126249
      Revital Eres committed
    • re PR fortran/20888 (dereferencing NULL still accepted) · bb9e683e
      2007-07-03  Tobias Burnus  <burnus@net-b.de>
      
      	PR fortran/20888
      	* resolve.c (resolve_operator): Check for NULL as operand.
      
      2007-07-03  Tobias Burnus  <burnus@net-b.de>
      
      	PR fortran/20888
      	* gfortran.dg/null_2.f90: New.
      
      From-SVN: r126247
      Tobias Burnus committed
    • configure.ac: Rewrite 'configure --help' strings to look nicer. · 30b74385
      2007-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
      
      	* configure.ac: Rewrite 'configure --help' strings to look nicer.
      	* configure: Regenerate.
      
      2007-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
      
      	* configure.ac: Add some missing m4 quotation.
      	* configure: Regenerate.
      
      From-SVN: r126246
      Ralf Wildenhues committed
    • re PR middle-end/32176 (ICE tree-type mismatch: expected integer_cst, have… · 2f575701
      re PR middle-end/32176 (ICE tree-type mismatch: expected integer_cst, have plus_expr in int_cst_value, at tree.c:7720)
      
      	PR middle-end/32176
      	* gcc.dg/pr32176.c: New test.
      
      
      Co-Authored-By: Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
      
      From-SVN: r126245
      Uros Bizjak committed
    • cpplib.h (CPP_N_WIDTH_MD, [...]): Add new constants. · c77cd3d1
      libcpp/ChangeLog:
      
      	* include/cpplib.h (CPP_N_WIDTH_MD, CPP_N_MD_W, CPP_N_MD_Q):
      	Add new constants.
      	* expr.c (interpret_float_suffix): Process 'w', 'W', 'q' and 'Q'
      	suffixes.  Return CPP_N_MD_W for 'w' or 'W' suffixes and CPP_N_MD_Q
      	for 'q' or 'Q' suffixes.
      
      gcc/ChangeLog:
      
      	* targhooks.h (default_mode_for_suffix): New function declaration.
      	* targhooks.c (default_mode_for_suffix): New default target hook.
      	* target.h (struct c): New structure in the targetm struct.
      	(mode_for_suffix): New target hook as part of struct c.
      	target-def.h (TARGET_C_MODE_FOR_SUFFIX): Define as
      	default_mode_for_suffix.
      	(TARGET_C): New define.
      	* c-lex.c: Include "target.h".
      	(interpret_float): Use targetm.c.mode_for_suffix to determine
      	the mode for a given non-standard suffix.
      	Makefile.in (c-lex.o): Depend on $(TARGET_H).
      
      	* config/i386/i386.c (ix86_c_mode_for_suffix): New static function.
      	(TARGET_C_MODE_FOR_SUFFIX): Define to ix86_c_mode_for_suffix.
      
      	* doc/extend.texi (Floating Types): New node.  Document __float80 and
      	__float128 types.  Document 'w', 'W', 'q' and 'Q' suffixes.
      
      testsuite/ChangeLog:
      
      	* gcc.dg/const-float80.c : New test.
      	* gcc.dg/const-float128.c : New test.
      	* gcc.dg/const-float80-ped.c : New test.
      	* gcc.dg/const-float128-ped.c : New test.
      
      From-SVN: r126244
      Uros Bizjak committed
    • re PR target/32506 (cross compile sh64-superh-linux-gnu internal compiler error:… · 1ed50f71
      re PR target/32506 (cross compile sh64-superh-linux-gnu internal compiler error: in change_address_1, at emit-rtl.c:1800)
      
      	PR target/32506
      	* config/sh/sh.md (udivsi3_i1_media): Use target_reg_operand
      	predicate instead of target_operand.
      	(divsi3_i1_media, divsi3_media_2): Likewise.
      
      From-SVN: r126243
      Kaz Kojima committed
    • Daily bump. · 370f2044
      From-SVN: r126241
      GCC Administrator committed
  2. 02 Jul, 2007 32 commits
    • [multiple changes] · 8eacc23d
      2007-07-02  Steven G. Kargl  <kargl@gcc.gnu.org>
      
      	Restore collateral damage from ISO C Binding merge.
      
              2007-06-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libgfortran/32456
      	* io/unit.c (filename_from_unit): Don't use find_unit, instead search
      	for unit directly.
      
      From-SVN: r126238
      Steven G. Kargl committed
    • c99-math.h: Fix typo. · 5cc48455
      	* gcc.dg/c99-math.h: Fix typo.
      
      From-SVN: r126235
      Kaveh R. Ghazi committed
    • tree.h (alias_sets_might_conflict_p): Rename into alias_sets_must_conflict_p. · 836f7794
      	* tree.h (alias_sets_might_conflict_p): Rename into
      	alias_sets_must_conflict_p.
      	* alias.c (alias_sets_might_conflict_p): Likewise.
      	(alias_sets_conflict_p): Use it.
      	(objects_must_conflict_p): Likewise.
      	* c-common.c (strict_aliasing_warning): Adjust.
      
      From-SVN: r126233
      Eric Botcazou committed
    • Makefile.in: Regenerated with automake 1.9.6. · f4e9e7fa
      2007-07-02  Steven G. Kargl  <kargl@gcc.gnu.org>
      
              * Makefile.in:  Regenerated with automake 1.9.6.
      
      From-SVN: r126232
      Steven G. Kargl committed
    • rtlhooks.c (gen_lowpart_if_possible): Check for invalid subreg before calling gen_lowpart_SUBREG. · e4950e42
      2007-07-02  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              * rtlhooks.c (gen_lowpart_if_possible): Check for
              invalid subreg before calling gen_lowpart_SUBREG.
      
      From-SVN: r126230
      Andrew Pinski committed
    • darwin9.h: Add copyright notice. · 22f70bff
      	* config/darwin9.h: Add copyright notice.
      	(LINK_COMMAND_SPEC): Add comment.
      	(DARWIN_LIBSYSTEM_HAS_UNWIND): Define.
      	* config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Conditionalise on
      	DARWIN_LIBSYSTEM_HAS_UNWIND.
      
      From-SVN: r126229
      Geoffrey Keating committed
    • re PR libgomp/32468 (number of threads in a parallel region depends on number of… · 69f1837b
      re PR libgomp/32468 (number of threads in a parallel region depends on number of SECTIONs and MAX_THREADS)
      
      	PR libgomp/32468
      	* omp-low.c (check_combined_parallel): New function.
      	(lower_omp_parallel): Call it via walk_stmts, set
      	OMP_PARALLEL_COMBINED if appropriate.
      	(determine_parallel_type): If OMP_FOR resp. OMP_SECTIONS
      	isn't the only statement in WS_ENTRY_BB or OMP_RETURN
      	the only one in PAR_EXIT_BB and not OMP_PARALLEL_COMBINED,
      	don't consider it as combined parallel.
      
      	* gcc.dg/gomp/pr32468-1.c: New test.
      
      From-SVN: r126226
      Jakub Jelinek committed
    • configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix). · 15c723f3
      gcc/
      	* configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
      	(gcc_tooldir): Likewise.
      	* configure: Regenerate.
      	* Makefile.in (libsubdir_to_prefix): New variable, based on the
      	old configure.ac gcc_tooldir setting.
      	(prefix_to_exec_prefix): New variable.
      	(DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
      	rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
      
      From-SVN: r126225
      Richard Sandiford committed
    • re PR libgomp/32468 (number of threads in a parallel region depends on number of… · 4f9c450c
      re PR libgomp/32468 (number of threads in a parallel region depends on number of SECTIONs and MAX_THREADS)
      
      	PR libgomp/32468
      	* sections.c (GOMP_parallel_sections_start): Only decrease
      	number of threads to COUNT if dyn_var is true.
      	* testsuite/libgomp.c/pr32468.c: New test.
      
      From-SVN: r126224
      Jakub Jelinek committed
    • mips.exp (setup_mips_tests): Treat -mfp* as an ABI option. · 83cc1ba1
      gcc/testsuite/
      	* gcc.target/mips/mips.exp (setup_mips_tests): Treat -mfp* as
      	an ABI option.
      
      From-SVN: r126223
      Richard Sandiford committed
    • Fix PR tree-optimization/32583 Fix PR tree-optimization/32584 · f8b04195
      2007-07-02  Daniel Berlin  <dberlin@dberlin.org>
      
      	Fix PR tree-optimization/32583
      	Fix PR tree-optimization/32584
      	* tree-ssa-pre.c (phi_translate): Always pass seen bitmap.
      	(phi_translate_set): Use phi_translate directly now.
      	(make_values_for_stmt): Don't value number RHS if we already know
      	it is constant.
      
      From-SVN: r126222
      Daniel Berlin committed
    • MAINTAINERS (Write After Approval): Add myself. · 943c54ce
      2007-07-02  Simon Baldwin  <simonb@google.com>
      
              * MAINTAINERS (Write After Approval): Add myself.
      
      From-SVN: r126221
      Simon Baldwin committed
    • Makefile.in: Remove extraneous kill.lo rule. · 0afff512
      2007-07-02  Steven G. Kargl  <kargl@gcc.gnu.org>
      
              * Makefile.in:  Remove extraneous kill.lo rule.
      
      From-SVN: r126220
      Steven G. Kargl committed
    • parser.c (cp_parser_elaborated_type_specifier): Added a warning for inner-style… · 2a7b8343
      parser.c (cp_parser_elaborated_type_specifier): Added a warning for inner-style nested forward declarations that don't declare...
      
      2007-07-02  Simon Baldwin  <simonb@google.com>
      
              * parser.c (cp_parser_elaborated_type_specifier): Added a warning
              for inner-style nested forward declarations that don't declare
              anything useful.
      
      From-SVN: r126219
      Simon Baldwin committed
    • using16.C: Merge dg-errors with common line. · d4934326
      	* g++.dg/lookup/using16.C: Merge dg-errors with common line.
      	* g++.dg/lookup/using17.C: Merge dg-errors with common line.
      
      From-SVN: r126218
      Ollie Wild committed
    • argv.c (writeargv): Removed declaration of unused variable. · 38bb3485
      2007-07-02  Simon Baldwin <simonb@google.com>
      
              * argv.c (writeargv): Removed declaration of unused variable.
      
      From-SVN: r126217
      Simon Baldwin committed
    • re PR target/31684 (ICE in get_attr_first_insn, at config/ia64/itanium2.md:1839 at -O2) · 05742530
      	PR target/31684
      	* haifa-sched.c (add_to_speculative_block): Change copy_rtx to
      	copy_insn.
      
      Co-Authored-By: James E Wilson <wilson@specifixinc.com>
      
      From-SVN: r126216
      Steve Ellcey committed
    • Forgot to delete these during yesterdays commit. · f6b55636
      2007-07-02  Janne Blomqvist  <jb@gcc.gnu.org>
      
      	PR fortran/32239
      	* generated/pow_r*_i4.c: Removed.
      
      From-SVN: r126215
      Janne Blomqvist committed
    • ChangeLog: Add following to my previous description: · 312360e8
              * ChangeLog: Add following to my previous description:
      
              (if_convertible_loop_p): Clear aux field of incoming edges if bb
              contains phi node.
      
      From-SVN: r126214
      Uros Bizjak committed
    • re PR boehm-gc/21940 (boehm-gc gctest fails on Solaris 10/x86) · 28e2ff77
      	PR boehm-gc/21940
      	PR boehm-gc/21942
      	* configure.ac (GC_SOLARIS_THREADS): Don't define on *-*-solaris*.
      	Use alternate thread library in /usr/lib/lwp.
      	* configure: Regenerate.
      	* dyn_load.c: Use GC_SOLARIS_PTHREADS.
      	* include/gc_config_macros.h (GC_SOLARIS_THREADS): Don't define.
      	* include/private/gcconfig.h: Handle 64-bit Solaris 2/x86.
      	(GC_SOLARIS_THREADS): Don't define.
      	* include/private/solaris_threads.h: Remove.
      	* pthread_support.c (GC_thr_init) [GC_SOLARIS_PTHREADS]: Determine
      	GC_nprocs via sysconf().
      	* Makefile.am (libgcjgc_la_SOURCES): Remove solaris_pthreads.c and
      	solaris_threads.c.
      	(gctest_LDADD): Use THREADLIBS instead of THREADDLLIBS.
      	* Makefile.in: Regenerate.	 
      	* solaris_pthreads.c: Remove.
      	* solaris_threads.c: Remove.
      
      From-SVN: r126211
      Rainer Orth committed
    • re PR libgcj/30513 (Bootstrap failure with libgcj on sparc-sun-solaris2.10) · a3b7729c
      	PR libgcj/30513
      	* configure.host (i[3-6]86-*): Undef sun.
      
      From-SVN: r126210
      Rainer Orth committed
    • re PR libgomp/26308 (libgomp bootstrap failure on Tru64 UNIX V4.0F) · 28c67ed7
      	PR libgomp/26308
      	* config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
      
      From-SVN: r126208
      Rainer Orth committed
    • mips-protos.h (mips16e_save_restore_info): New struct. · e1260576
      gcc/
      2007-07-02  Sandra Loosemore  <sandra@codesourcery.com>
      	    Richard Sandiford  <richard@codesourcery.com>
      	    Nigel Stephens  <nigel@mips.com>
      
      	* config/mips/mips-protos.h (mips16e_save_restore_info): New struct.
      	(mips16e_output_save_restore): Declare.
      	(mips16e_save_restore_pattern_p): Likewise.
      	* config/mips/mips.h (GENERATE_MIPS16E_SAVE_RESTORE): New macro.
      	* config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Return 0x7f8
      	for GENERATE_MIPS16E_SAVE_RESTORE.  Return 0x400 for TARGET_MIPS16
      	&& !GENERATE_MIPS16E_SAVE_RESTORE && !TARGET_64BIT.
      	(BITSET_P): New global macro, extracted from...
      	(mips_for_each_saved_reg): ...here.
      	(mips16e_save_restore_info): New struct.
      	(mips16e_s2_s8_regs, mips16e_a0_a3_regs): New variables.
      	(mips16e_save_restore_regs): New variable.
      	(mips_split_plus, mips16e_find_first_register): New functions.
      	(mips16e_mask_registers): New function.
      	(compute_frame_size): Expand the commentary before the function.
      	Enforce the MIPS16e save and restore register range restrictions.
      	Pad the general register save area at the low end.
      	(mips16e_save_restore_reg, mips16e_build_save_restore)
      	(mips16e_save_restore_pattern_p, mips16e_add_register_range)
      	(mips16e_output_save_restore, mips16e_collect_propagate_value)
      	(mips16e_collect_argument_save, mips16e_collect_argument_saves):
      	New functions.
      	(mips_expand_prologue, mips_expand_epilogue): Handle
      	GENERATE_MIPS16E_SAVE_RESTORE.
      	* config/mips/mips.md (*mips16e_save_restore): New pattern.
      
      gcc/testsuite/
      	* gcc.target/mips/save-restore-1.c: New test.
      	* gcc.target/mips/save-restore-2.c: Likewise.
      	* gcc.target/mips/save-restore-3.c: Likewise.
      	* gcc.target/mips/save-restore-4.c: Likewise.
      
      From-SVN: r126207
      Richard Sandiford committed
    • re PR tree-optimization/31966 (Miscompiles valid code with -ftree-vectorize) · 8ad02175
      	PR tree-optimization/31966
      	PR tree-optimization/32533
      	* tree-if-conv.c (add_to_dst_predicate_list): Use "edge", not
      	"basic_block" description as its third argument.  Update function
      	calls to get destination bb from "edge" argument.  Save "cond" into
      	aux field of the edge.  Update prototype for changed arguments.
      	(find_phi_replacement_condition): Operate on incoming edges, not
      	on predecessor blocks.  If there is a condition saved in the
      	incoming edge aux field, AND it with incoming bb predicate.
      	Return source bb of the first edge.
      	(clean_predicate_lists): Clean aux field of outgoing node edges.
      	(tree_if_conversion): Do not initialize cond variable. Move
      	variable declaration into the loop.
      	(replace_phi_with_cond_gimple_modify_stmt): Remove unneded
      	initializations of new_stmt, arg0 and arg1 variables.
      
      testsuite/ChangeLog:
      
      	PR tree-optimization/31966
      	PR tree-optimization/32533
      	* gcc.dg/tree-ssa/pr31966.c: New runtime test.
      	* gfortran.dg/pr32533.f90: Ditto.
      
      From-SVN: r126206
      Uros Bizjak committed
    • Fixed Changelog entry on unreverted patch. · bc90eb85
      From-SVN: r126205
      Kenneth Zadeck committed
    • ChangeLog: Remove conflict marker, fix typo in date. · 72ad03ef
      2007-07-02  Richard Guenther  <rguenther@suse.de>
      
      	* testsuite/ChangeLog: Remove conflict marker, fix typo in date.
      
      From-SVN: r126204
      Richard Biener committed
    • typedefs_neg.cc: Tweak line numbers. · 269ef14d
      2007-07-02  Douglas Gregor  <doug.gregor@gmail.com>
      
              * testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
              Tweak line numbers.
              * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
              Ditto.
              * testsuite/20_util/make_unsigned/requirements/typedefs-1.cc:
              Don't try to create an unsigned wchar_t.
              * testsuite/20_util/make_unsigned/requirements/typedefs-2.cc:
              Don't try to create an unsigned wchar_t.
              * testsuite/util/testsuite_hooks.h: Remove a stray semicolon.
      
      From-SVN: r126203
      Douglas Gregor committed
    • re PR c++/31748 (bad diagnostic for invalid private clause) · 76dc15d4
      	PR c++/31748
      	* semantics.c (finish_omp_clauses): Use %qD instead of %qE for
      	DECL_P in not a variable and appears more than once error messages.
      
      	* g++.dg/gomp/pr31748.C: New test.
      
      From-SVN: r126201
      Jakub Jelinek committed
    • tree-nrv.c (dest_safe_for_nrv_p): Grok any handled_component_p, SSA_NAMEs,… · a2daf82c
      tree-nrv.c (dest_safe_for_nrv_p): Grok any handled_component_p, SSA_NAMEs, RESULT_DECLs and PARM_DECLs.
      
      	* tree-nrv.c (dest_safe_for_nrv_p): Grok any handled_component_p,
      	SSA_NAMEs, RESULT_DECLs and PARM_DECLs.
      
      	* g++.dg/opt/nrv12.C: New test.
      	* gcc.target/i386/nrv1.c: New test.
      
      From-SVN: r126200
      Jakub Jelinek committed
    • tree-ssa.c (useless_type_conversion_p): Document future intent as defining the… · 85b19f61
      tree-ssa.c (useless_type_conversion_p): Document future intent as defining the middle-end type system.
      
      2007-07-02  Richard Guenther  <rguenther@suse.de>
      
      	* tree-ssa.c (useless_type_conversion_p): Document
      	future intent as defining the middle-end type system.
      	Re-structure to call langhook last, group by type class,
      	mark questionable parts.
      
      From-SVN: r126199
      Richard Guenther committed
    • re PR middle-end/15988 (ICE in fold_convert with pointer-to-member-function) · f4088621
      2007-07-02  Richard Guenther  <rguenther@suse.de>
      
      	* tree-flow.h (types_compatible_p): Declare.
      	* tree-ssa.c (types_compatible_p): New function.
      	* ipa-type-escape.c (discover_unique_type): Use
      	types_compatible_p instead of lang_hooks.types_compatible_p.
      	* tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
      	* tree-vn.c (expressions_equal_p): Likewise.
      	* tree.c (fields_compatible_p): Likewise.
      	* tree-ssa-dom.c (avail_expr_eq): Likewise.
      	(cprop_operand): Use useless_type_conversion_p instead of
      	lang_hooks.types_compatible_p.
      	* tree-inline.c (setup_one_parameter): Likewise.
      	(declare_return_variable): Likewise.
      	* tree-nrv.c (tree_nrv): Likewise.
      	* tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
      	(maybe_fold_offset_to_component_ref): Likewise.
      	(maybe_fold_offset_to_reference): Likewise.
      	* tree-ssa-copy.c (may_propagate_copy): Likewise.
      	(merge_alias_info): Likewise.
      	* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
      	* tree-ssa-phiopt.c (conditional_replacement): Likewise.
      	* tree-ssa-reassoc.c (optimize_ops_list): Likewise.
      	* tree-tailcall.c (find_tail_calls): Likewise.
      	* tree-vect-generic.c (expand_vector_operations_1): Likewise.
      	* gimplify.c (canonicalize_addr_expr): Likewise.
      	(fold_indirect_ref_rhs): Likewise.
      	(gimplify_addr_expr): Likewise.  Swap parameters to cpt_same_type.
      	(cpt_same_type): Likewise.
      	(check_pointer_types_r): Swap parameters to cpt_same_type
      	where appropriate.
      	* fold-const.c (fold_convert): Revert fix for PR15988.
      	* tree-inline.c (setup_one_parameter): Instead fix it here by
      	using fold_build1 instead of fold_convert and checking for
      	error_mark_node.  Convert only if the conversion is necessary.
      
      From-SVN: r126198
      Richard Guenther committed
    • configure.ac: Check for .gnu_attribute on Power. · e51917ae
      	* configure.ac: Check for .gnu_attribute on Power.
      	* configure: Regenerate.
      	* config/rs6000/rs6000.c (rs6000_file_start): If supported, output
      	attribute for floating-point ABI.
      
      From-SVN: r126197
      Joseph Myers committed