Commit Graph

76678 Commits

Author SHA1 Message Date
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
Eric Christopher
1cc8c7b292 asm-support-darwin.s: New.
2006-09-12  Eric Christopher  <echristo@apple.com>

        * gcc.target/x86_64/abi/asm-support-darwin.s: New.
        * gcc.target/x86_64/abi/abi-x86_64.exp: Use.

From-SVN: r116916
2006-09-13 01:07:27 +00:00
Joseph Myers
c663e30103 re PR c/28768 (Preprocessor doesn't parse tokens correctly?)
libcpp:
	PR c/28768
	PR preprocessor/14634
	* lex.c (lex_string): Pedwarn for unterminated literals.

libgomp:
	* configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
	to AC_DEFINE.
	* configure: Regenerate.

gcc/testsuite:
	* gcc.dg/cpp/include2.c, gcc.dg/cpp/macspace1.c,
	gcc.dg/cpp/macspace2.c, gcc.dg/cpp/multiline.c,
	gcc.dg/cpp/trad/literals-2.c: Update expected diagnostics.

From-SVN: r116915
2006-09-13 02:04:18 +01:00
GCC Administrator
48de786822 Daily bump.
From-SVN: r116913
2006-09-13 00:17:09 +00:00
Jan Hubicka
26eeea9405 * cfganal.c (compute_dominance_frontiers_1): Don't be quadratic.
From-SVN: r116909
2006-09-12 22:54:38 +00:00
Eric Botcazou
7e721950cb re PR rtl-optimization/28243 (internal consistency failure when building fontforge with -O3 -fPIC -ftracer)
PR rtl-optimization/28243
	* combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
	the insn to which the note was originally attached.

From-SVN: r116906
2006-09-12 21:48:40 +00:00
Tom Tromey
ff68219131 * expr.c (push_value): Always flush quick stack.
From-SVN: r116905
2006-09-12 19:51:08 +00:00
Paul Thomas
6df7764520 re PR fortran/28971 (ICE: Segmentation fault on valid code)
2006-09-12  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/28971
	gfortran.dg/pr28971.f90: New test to act as a backstop in case
	this undiagnosed regression reappears.

From-SVN: r116904
2006-09-12 19:38:48 +00:00
Andrew Pinski
66cccea671 dwarf2out.c (file_table_last_lookup): Move this GC'd declaration outside of #ifdef DWARF2_DEBUGGING_INFO to fix...
* dwarf2out.c (file_table_last_lookup): Move this GC'd declaration
	outside of #ifdef DWARF2_DEBUGGING_INFO to fix bootstrap failure
	on platforms that don't use dwarf for debug info.


Co-Authored-By: Roger Sayle <roger@eyesopen.com>

From-SVN: r116903
2006-09-12 19:31:09 +00:00
Tom Tromey
f8248aaa3b re PR java/29013 (gcj generates a MetalLookAndFeel class that fails cacao's verifier)
gcc/java
	PR java/29013:
	* jcf-write.c (generate_bytecode_insns) <CALL_EXPR>: Always note
	the push of the called method's return result.
libjava
	PR java/29013:
	* testsuite/libjava.lang/PR29013.out: Likewise.
	* testsuite/libjava.lang/PR29013.java: New file.

From-SVN: r116902
2006-09-12 19:00:48 +00:00