Commit Graph

76587 Commits

Author SHA1 Message Date
Steven Bosscher 0c5e4273d3 tree-vectorizer.c (vectorize_loops): Clear vect_loop_location before using it for dumping after vectorizing loops.
* tree-vectorizer.c (vectorize_loops): Clear vect_loop_location
	before using it for dumping after vectorizing loops.

From-SVN: r116996
2006-09-16 20:06:23 +00:00
Andrew Pinski 70fb00df82 re PR target/29030 (gcc.dg/array-9.c produces internal compiler error on Darwin at -m64)
2006-09-16   Andrew Pinski  <pinskia@physics.uc.edu>
             Jack Howarth  <howarth@bromo.med.uc.edu>

        PR target/29030
        * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_recurse)
        skip on error_mark_node.                                                                   (rs6000_darwin64_record_arg_recurse): Likewise.

Co-Authored-By: Jack Howarth <howarth@bromo.med.uc.edu>

From-SVN: r116994
2006-09-16 09:01:16 +00:00
Jack Howarth 3c40b0525e re PR testsuite/29055 (gcc.target/powerpc/darwin-bool-1.c fails on powerpc-apple-darwin8 at -m64)
2006-09-16  Jack Howarth  <howarth@bromo.med.uc.edu>

        PR testsuite/29055
        * gcc.target/powerpc/darwin-bool-1.c: Skip -m64

From-SVN: r116993
2006-09-16 08:55:54 +00:00
Steven Bosscher 1049f47570 rtl.h (LABEL_OUTSIDE_LOOP_P): Remove.
* rtl.h (LABEL_OUTSIDE_LOOP_P): Remove.
        * doc/rtl.texi: Remove related documentation.

From-SVN: r116992
2006-09-16 08:46:22 +00:00
Paul Thomas 9769e9e0b3 select_6.f90: Change message.
2006-09-16  Paul Thomas  <pault@gcc.gnu.org>

	* gfortran.dg/select_6.f90: Change message.

From-SVN: r116991
2006-09-16 04:28:44 +00:00
Kaveh R. Ghazi e757d6b231 decNumber.c (decNumberPower): Constify.
* decNumber.c (decNumberPower): Constify.
	* decNumber.h (decNumberPower): Likewise.

From-SVN: r116990
2006-09-16 02:54:29 +00:00
GCC Administrator a22719c100 Daily bump.
From-SVN: r116988
2006-09-16 00:17:17 +00:00
Bernd Schmidt 405f05879e loop-doloop.c (doloop_optimize): Remove bogus arg from debugging printf.
* loop-doloop.c (doloop_optimize): Remove bogus arg from debugging
	printf.

From-SVN: r116984
2006-09-15 23:32:58 +00:00
James E Wilson d0970db2ad Short term fix for PR 28490.
* config/ia64/ia64.c (ia64_legitimate_constant_p, cast CONST):
Handle symbol offsets same as they are handled in ia64_expand_move
and move_operand.

From-SVN: r116983
2006-09-15 16:05:40 -07:00
Andreas Tobler 7607bddac9 loop-doloop.c (doloop_optimize): Change type of max_cost to int.
2006-09-16  Andreas Tobler  <a.tobler@schweiz.org>

	* loop-doloop.c (doloop_optimize): Change type of max_cost to int.
	Add forgotten parameter to the fprintf call.

From-SVN: r116982
2006-09-16 00:47:26 +02:00
Eric Botcazou 41d9adc7fa re PR ada/15802 (ICE at expr.c:6764 (placeholder mechanism))
PR ada/15802
	* decl.c (same_discriminant_p): New static function.
	(gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
	subtype and we have discriminants, fix up the COMPONENT_REFs
	for the discriminants to make them reference the corresponding
	fields of the parent subtype after it has been built.

From-SVN: r116981
2006-09-15 18:32:24 +00:00
Steve Ellcey 7ee51a34b8 * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Add define.
From-SVN: r116980
2006-09-15 18:14:10 +00:00
Paul Thomas 8c5c0b80a4 re PR fortran/29051 (segfault when too few values are in data statement of character array)
2006-09-15  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/29051
	* decl.c (match_old_style_init): Set the 'where' field of the
	gfc_data structure 'newdata'.

	* match.c (match_case_eos): Add a comprehensible error message.

2006-09-15  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/29051
	* gfortran.dg/oldstyle_3.f90: New test.

From-SVN: r116977
2006-09-15 16:30:52 +00:00
Jerry DeLisle 906d8c784a re PR libfortran/29099 (secnds intrinsic gives wrong result)
2006-09-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/29099
	* gfortran.dg/secnds-1.f: New test.

From-SVN: r116976
2006-09-15 16:07:53 +00:00
Jerry DeLisle f49d5a7eca re PR libfortran/29099 (secnds intrinsic gives wrong result)
2006-09-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/29099
	* intrinsics/date_and_time.c (secnds): Fix case of zero time.

From-SVN: r116975
2006-09-15 16:03:52 +00:00
Uros Bizjak 615d37d2bb contrib.texi: Add my entry.
* doc/contrib.texi: Add my entry.

From-SVN: r116974
2006-09-15 17:59:33 +02:00
Nick Clifton a71b1c58dc md.texi (Processor pipeline description): Fix typo in example of how to use the absence_set directive and reword the...
* doc/md.texi (Processor pipeline description): Fix typo in
  example of how to use the absence_set directive and reword the
  description to make it slightly easier to read.

From-SVN: r116973
2006-09-15 15:27:43 +00:00
Bernd Schmidt e54273ebec bfin.c (struct loop_info): New members block_bitmap and bad.
* config/bfin/bfin.c (struct loop_info): New members block_bitmap and
	bad.
	(struct loop_work and related VEC declarations): Delete.
	(bfin_dump_loops): Print out new member bad.
	(bfin_bb_in_loop): Use plain bitmap test.  Don't recurse.
	(bfin_scan_loop): Don't recurse.
	(bfin_optimize_loop): Don't use a loop depth of -1 to indicate bad
	loops.  No longer need to update outer loops if the current one is
	found bad.  Move some validitiy checks to bfin_discover_loop.
	(bfin_discover_loop): New function, mostly split from bfin_reorg_loops,
	but changed not to check for nesting.  Also changed to use the new bad
	flag.
	(bfin_reorg_loops): Use bfin_discover_loop to find single loops one at a
	time.  Use bitmap based test to discover loop nesting.

From-SVN: r116972
2006-09-15 14:41:43 +00:00
Jerry DeLisle 61943a2165 re PR fortran/29053 (Consecutive STREAM I/O file positions mixed up)
2006-09-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/29053
	* gfortran.dg/streamio_9.f90: New test.
	* gfortran.dg/streamio_10.f90: New test.

From-SVN: r116971
2006-09-15 13:32:12 +00:00
Jerry DeLisle 701306112e re PR fortran/29053 (Consecutive STREAM I/O file positions mixed up)
2006-09-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/29053
	* io.h (gfc_unit): Add variable, strm_pos, to track
	STREAM I/O file position.
	* file_pos.c (st_rewind): Set strm_pos to beginning.
	* open.c (new_unit): Initialize strm_pos.
	* read.c (read_x): Bump strm_pos.
	* inquire.c (inquire_via_unit): Return strm_pos value.
	* transfer.c (read_block),(read_block_direct),(write_block)
	(write_buf): Seek to strm_pos - 1.  Update strm_pos when done.
	(pre_position): Initialize strm_pos.
	(data_transfer_init): Set strm_pos if DT_HAS_REC.
	(finalize_transfer): Flush file, no need to update strm_pos.

From-SVN: r116970
2006-09-15 13:16:15 +00:00
Bernd Schmidt 5419bc7f3d cfgrtl.c (emit_insn_at_entry): Use gcc_assert, not abort.
* cfgrtl.c (emit_insn_at_entry): Use gcc_assert, not abort.

From-SVN: r116969
2006-09-15 12:41:08 +00:00
Bernd Schmidt 11b904a1fc cfgrtl.c (emit_insn_at_entry): New function.
* cfgrtl.c (emit_insn_at_entry): New function.
	* rtl.h (emit_insn_at_entry): Declare it.
	* integrate.c (emit_initial_value_sets): Use it.

From-SVN: r116968
2006-09-15 12:35:43 +00:00
Bernd Schmidt 61066abfcd bfin.c (bfin_rtx_costs): Handle UDIV, UMOD.
* config/bfin/bfin.c (bfin_rtx_costs): Handle UDIV, UMOD.

From-SVN: r116967
2006-09-15 11:23:09 +00:00
Bernd Schmidt 45b9a14bd6 params.def (PARAM_MAX_ITERATIONS_COMPUTATION_COST): New.
* params.def (PARAM_MAX_ITERATIONS_COMPUTATION_COST): New.
	* loop-doloop.c (doloop_optimize): Use it to limit costs of
	expanding the number of iterations.

From-SVN: r116966
2006-09-15 11:17:18 +00:00
Roger Sayle 21cc37194e re PR ada/18817 (ACATS c380004 fails at run time)
PR ada/18817
	* utils.c (max_size): Perform constant folding of (A ? B : C) - D
	into A ? B - D : C - D when calculating the size of a MINUS_EXPR.

From-SVN: r116964
2006-09-15 08:59:02 +00:00
Andrew Pinski 9bdb04a2f5 re PR c++/29002 (ICE on array of ptr-to-member or struct containing ptr-to-member of unknown size)
2006-09-14  Andrew Pinski  <pinskia@physics.uc.edu>

        PR C++/29002
        * init.c (build_zero_init): If we have an error mark node for
        the array size, return.

2006-09-14  Andrew Pinski  <pinskia@physics.uc.edu>

        PR C++/29002
        * g++.dg/init/array22.C: New test.
        * g++.dg/init/array23.C: New test.

From-SVN: r116962
2006-09-14 21:50:04 -07:00
Kazu Hirata 0b35aac25d tm.texi (TARGET_FUNCTION_VALUE): Put @deftypefn all in one line.
* doc/tm.texi (TARGET_FUNCTION_VALUE): Put @deftypefn all in
	one line.

From-SVN: r116961
2006-09-15 02:13:04 +00:00
GCC Administrator 737f41105e Daily bump.
From-SVN: r116959
2006-09-15 00:17:14 +00:00
Benjamin Kosnik b128c5ef49 concurrence.h (__mutex::__mutex): Pass address of mutex to *_MUTEX_INIT_FUNCTION.
2006-09-14  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/concurrence.h (__mutex::__mutex): Pass address of
	mutex to *_MUTEX_INIT_FUNCTION.

From-SVN: r116954
2006-09-14 22:28:55 +00:00
Arnaud Charlet b00fef55d5 norun.lst: Adjust for previous change.
* norun.lst: Adjust for previous change.

From-SVN: r116953
2006-09-14 21:27:10 +00:00
Richard Guenther 1b03c58a81 re PR middle-end/28884 (TARGET_FUNCTION_VALUE not documented)
PR middle-end/28884.
	* doc/tm.texi (TARGET_FUNCTION_VALUE): Document.
	(FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE): Deprecate.
	Replace mentions of FUNCTION_VALUE and FUNCTION_OUTGOING_VALUE
	with TARGET_FUNCTION_VALUE.

Co-Authored-By: Kazu Hirata <kazu@codesourcery.com>

From-SVN: r116951
2006-09-14 21:15:12 +00:00
Anatoly Sokolov e8d0d6d2a8 re PR target/26504 (compute_frame_pointer_to_cfa_displacement error for avr target with --with-dwarf2)
PR target/26504
	* config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Define.

From-SVN: r116950
2006-09-15 01:11:33 +04:00
Tom Tromey 975147a4a4 re PR boehm-gc/29068 (Bootstrap fails building libjava on SPARC/Solaris)
libjava
	PR boehm-gc/29068:
	* boehm.cc (_Jv_GCAttachThread): Disable on Solaris.
	(_Jv_GCDetachThread): Likewise.
boehm-gc
	PR boehm-gc/29068.
	* misc.c (GC_init_inner): Don't use GC_get_thread_stack_base on
	Solaris.

From-SVN: r116948
2006-09-14 18:06:04 +00:00
Olivier Hainque 351272b977 in_out_parameter.adb: New test.
* gnat.dg/in_out_parameter.adb: New test.

From-SVN: r116945
2006-09-14 14:24:22 +00:00
Arnaud Charlet fc87142b85 Update list of tests requiring stack checking Add handling of tests using Ada...
Update list of tests requiring stack checking
Add handling of tests using Ada 95 semantics and thus requiring -gnat95 switch

From-SVN: r116944
2006-09-14 12:12:03 +02:00
Andreas Schwab f7ad6748b9 * posix-threads.cc: Include "posix.h".
From-SVN: r116943
2006-09-14 09:55:47 +00:00
Benjamin Kosnik 2e362c7474 atomicity.h: Move to...
2006-09-13  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/atomicity.h: Move to...
	* include/ext/atomicity.h: ...here.	
	* include/bits/concurrence.h: Move to...
	* include/ext/concurrence.h: ...here.
	* include/Makefile.am (ext_headers): Additions.
	(bits_headers): Subtractions.
	* include/Makefile.in: Regenerate.

	* include/ext/bitmap_allocator.h (_Mutex), __threads_enabled,
	_Lock, _Auto_Lock): Subsume into...
	* include/bits/concurrence.h (__mutex): ..this. Error check
	locking and unlocking.	
	(lock): Uglify to...
	(__scoped_lock): Use __mutex. 
	(__glibcxx_mutex_define_initialized): Remove.
	(__glibcxx_mutex_type): Remove.

	* include/tr1/boost_shared_ptr.h: Formating tweaks, adjustments.
	(_Lock_policy): Move from here...
	* include/ext/concurrence.h: ... to here.
	(__shared_ptr_default_lock_mode): To __default_lock_policy.
	(_S_lockfree): To _S_atomic.
	Document.

	* libsupc++/guard.cc (static_mutex): Subsume into and fixup for...
	* include/ext/concurrence.h (__recursive_mutex): ...this. Error
	check locking and unlocking.
	* libsupc++/eh_alloc.cc: Use __scoped_lock.

	* config/os/aix/atomicity.h: Fixups for include paths, mutex to
	__scoped_mutex change, removal of locking defines.
	* config/os/irix/atomicity.h: Same.
	* config/cpu/cris/atomicity.h: Same.
	* config/cpu/m68k/atomicity.h: Same.
	* config/cpu/hppa/atomicity.h: Same.
	* config/cpu/mips/atomicity.h: Same.
	* config/cpu/sparc/atomicity.h: Same.
	* config/cpu/i386/atomicity.h: Same.
	* config/cpu/i486/atomicity.h: Same.
	* config/cpu/sh/atomicity.h: Same.
	* config/cpu/generic/atomicity_mutex/atomicity.h: Same.
	* include/ext/pool_allocator.h: Same.
	* include/ext/bitmap_allocator.h: Same.
	* include/ext/rc_string_base.h: Same.
	* include/ext/mt_allocator.h: Same.
	* include/bits/locale_classes.h: Same.
	* include/bits/basic_string.h: Same.
	* include/bits/ios_base.h: Same.
	* include/tr1/memory: Same.
	* src/pool_allocator.cc: Same.
	* src/mt_allocator.cc: Same.
	* src/locale_init.cc: Same.
	* src/ios.cc: Same.
	* src/locale.cc: Same.
	* src/bitmap_allocator.cc: Same.
	* src/ios_init.cc: Same.
	* src/debug.cc: Same.

From-SVN: r116942
2006-09-14 09:48:15 +00:00
Geoffrey Keating 06fcf75439 posix.cc (_Jv_platform_nanotime): Return nanoseconds, not microseconds; use gettimeofday when available.
* posix.cc (_Jv_platform_nanotime): Return nanoseconds, not
	microseconds; use gettimeofday when available.
	* posix-threads.cc (_Jv_CondWait): Improve accuracy and range of
	timeout calculation.
	* testsuite/libjava.lang/Thread_Sleep_2.java: New.
	* testsuite/libjava.lang/Thread_Sleep_2.out: New.
	* testsuite/libjava.lang/Thread_Sleep_2.xfail: New.

From-SVN: r116941
2006-09-14 01:17:31 +00:00
Aldy Hernandez f5efb27f74 tree-ssa.texi (Jumps): RESULT_DECL can also be an operand of a RETURN_EXPR
* doc/tree-ssa.texi (Jumps): RESULT_DECL can also be an operand
        of a RETURN_EXPR

From-SVN: r116940
2006-09-14 01:17:15 +00:00
Andrew Pinski 3c3f1a6f39 re PR debug/28980 (ICE in loc_descriptor_from_tree_1 with -g)
2006-09-13  Andrew Pinski  <pinskia@physics.uc.edu>

	PR debug/28980
        * dwarf2out.c (loc_descriptor_from_tree_1): Handle
        FUNCTION_DECL.

2006-09-13  Andrew Pinski  <pinskia@physics.uc.edu>

	PR debug/28980
        * gcc.c-torture/compile/debugvlafunction-1.c: New test.

From-SVN: r116939
2006-09-13 17:37:14 -07:00
GCC Administrator 9dc7283180 Daily bump.
From-SVN: r116937
2006-09-14 00:17:28 +00:00
Eric Botcazou 2a0e366b51 re PR other/23541 (All error messages produce segfault)
PR other/23541
	PR other/26507
	Backport from gettext repository:

	2003-09-04  Bruno Haible  <bruno@clisp.org>
	* dgettext.c: Include <locale.h> after gettextP.h, not before. This
	ensures that libintl_dcgettext is correctly declared on Solaris.
	(Needed because Solaris <locale.h> includes libintl.h.)
	* dngettext.c: Likewise, for the libintl_dcngettext declaration.

From-SVN: r116931
2006-09-13 21:23:28 +00:00
Olivier Hainque 6f2789da07 re PR ada/29025 (procedure doesn't modify In Out parameter)
PR ada/29025
	* trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
	of a SAVE_EXPR, just make the operand addressable/not-readonly and
	let the common gimplifier code make and propagate a temporary copy.
	(call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
	out/in-out actuals and defer setting the addressable/readonly bits
	to the gimplifier.

From-SVN: r116929
2006-09-13 18:48:21 +00:00
Eric Botcazou efaa616eeb re PR ada/28591 (ICE in splice_child_die, at dwarf2out.c:5513)
PR ada/28591
	* decl.c (components_to_record): Defer emitting debug info for the
	record type associated with the variant until after we are sure to
	actually use it.

From-SVN: r116928
2006-09-13 18:40:26 +00:00
Eric Botcazou 2655f1c6dd re PR ada/21952 (Annoying "attribute directive ignored" warnings)
PR ada/21952
	* gigi.h (gnat_internal_attribute_table): Declare.
	* misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
	* utils.c (gnat_internal_attribute_table): New global variable.
	(builtin_function): Always call decl_attributes on the builtin.
	(handle_const_attribute): New static function.
	(handle_nothrow_attribute): Likewise.

From-SVN: r116926
2006-09-13 18:27:24 +00:00
Andreas Krebbel f66fd328ce basic-block.h (bb_has_eh_pred): Fix comment.
* basic-block.h (bb_has_eh_pred): Fix comment.

From-SVN: r116922
2006-09-13 13:00:57 +00:00
Wolfgang Gellerich 95cb77e64f trans-expr.c (gfc_add_interface_mapping): For characters, dereference pointer if necessary and then perform the cast.
2006-09-13  Wolfgang Gellerich  <gellerich@de.ibm.com>

	* trans-expr.c (gfc_add_interface_mapping): For characters, dereference
	pointer if necessary and then perform the cast.

From-SVN: r116921
2006-09-13 12:36:26 +00:00
Andreas Krebbel fcc42bcad4 flow.c (calculate_global_regs_live): Invalidate eh registers on eh edges.
2006-09-13  Andreas Krebbel  <krebbel1@de.ibm.com>

	* flow.c (calculate_global_regs_live): Invalidate eh registers
	on eh edges. Renamed invalidated_by_call to invalidated_by_eh_edge.
	(propagate_block): Handle eh registers as if they were set at basic
	block start.
	* except.c (dw2_build_landing_pads): Don't emit clobbers for eh
	registers.
	* global.c (global_conflicts): Make eh registers to conflict with
	pseudos live at basic block begin.
	* basic_block.h (bb_has_eh_pred): New function.

From-SVN: r116920
2006-09-13 10:59:03 +00:00
Richard Sandiford 4b7b277aff re PR rtl-optimization/28982 (Incorrect reloading of automodification expressions)
gcc/
	PR rtl-optimization/28982
	* reload.c (find_reloads_address_1): Use RELOAD_OTHER for the
	index of a PRE_MODIFY or POST_MODIFY address.
	* reload1.c (inc_for_reload): Use find_replacement on the original
	base and index registers.

gcc/testsuite/
	PR rtl-optimization/28982
	* gcc.c-torture/execute/pr28982a.c: New test.
	* gcc.c-torture/execute/pr28982b.c: Likewise.

From-SVN: r116919
2006-09-13 06:30:59 +00:00
H.J. Lu 04df96dded invoke.texi (mpreferred-stack-boundary): Remove exception for -Os.
2006-09-12  H.J. Lu  <hongjiu.lu@intel.com>

	* doc/invoke.texi (mpreferred-stack-boundary): Remove exception
	for -Os. Update __m128 alignment requirement.

From-SVN: r116917
2006-09-12 22:59:30 -07:00