Commit Graph

76503 Commits

Author SHA1 Message Date
Tom Tromey
9721107704 removed old conflict marker
From-SVN: r117030
2006-09-18 17:10:36 +00:00
Gerald Pfeifer
fad257c316 * gcc_release (LC_ALL): Default to C.
From-SVN: r117029
2006-09-18 17:07:14 +00:00
Paolo Carlini
17cdf08234 locale_facets.tcc (_M_group_int): Remove redundant using-declaration.
2006-09-18  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (_M_group_int): Remove
	redundant using-declaration.

From-SVN: r117028
2006-09-18 16:05:25 +00:00
Steven Bosscher
ddd039d56c re PR c++/29087 (More than 35000 switch cases crash cc1plus)
PR c++/29087
        * parser.c (cp_parser_labeled_statement): Return nothing.  Do
        not take in_statement_expr and in_compound as arguments.  Rename
        to cp_parser_label_for_labeled_statement.  Parse only the label,
        not the statement.
        (cp_parser_statement): Parse the statement of a labeled-statement
        from here, using tail recursion.

From-SVN: r117026
2006-09-18 15:32:43 +00:00
Benjamin Kosnik
cbe5ba46e0 typelist.h (cond_type): Remove, use __conditional_type.
2006-09-18  Benjamin Kosnik  <bkoz@redhat.com>

	* include/ext/typelist.h (cond_type): Remove, use __conditional_type.

From-SVN: r117025
2006-09-18 13:57:19 +00:00
Benjamin Kosnik
105c6331b2 type_traits.h: New.
2006-09-18  Benjamin Kosnik  <bkoz@redhat.com>
	    Peter Doerfler  <gcc@pdoerfler.com>
	    Paolo Carlini  <pcarlini@suse.de>
	
	* include/ext/type_traits.h: New. 
	(__conditional_type): New.
	(__numeric_traits): New.
	(__add_unsigned): New.
	(__remove_unsigned): New.
	(__enable_if): New.
	* include/Makefile.am: Add.
	* include/Makefile.in: Regenerate.
	* include/ext/pb_ds/detail/type_utils.hpp: Use ext include,
	remove duplicates.
	* include/tr1/hashtable_policy.h (IF): Use __conditional_type.
	(_Max_digits10): Same.
	(identity): Use _Identity.
	(extract1st): Use _Select1st.
	* include/tr1/random (_Select): Use __conditional_type.
	(_To_Unsigned_Type): Use __add_unsigned. Linebreak fixups.
	* include/bits/locale_facets.tcc (__to_unsigned_type): Remove, use
	__add_unsigned.
	* include/tr1/random.tcc: Fixups as above.
	* include/tr1/unordered_map: Same.
	* include/tr1/hashtable: Same.
	* include/tr1/unordered_set: Same.
	* include/ext/pb_ds/detail/gp_hash_table_map_/
	standard_policies.hpp: Same.
	* include/ext/pb_ds/detail/standard_policies.hpp: Same.
	* include/ext/pb_ds/detail/typelist/typelist_filter.hpp: Same.
	* include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp: Same.
	* include/ext/pb_ds/detail/type_utils.hpp: Same.
	* include/ext/pb_ds/trie_policy.hpp: Same.
	* docs/html/ext/pb_ds/string_trie_e_access_traits.html: Same.
	
	* include/bits/cpp_type_traits.h (__enable_if): Move to ext, make
	boolean argument first.	
	* include/bits/locale_facets.h: Fixups for __enable_if argument
	and namespace switch.
	* include/bits/stl_algobase.h: Same.
	* include/bits/stl_algo.h: Same.
	* include/bits/stl_iterator.h: Same.
	* include/bits/streambuf_iterator.h: Same.
	* include/debug/safe_iterator.h: Same.
	* include/tr1/hashtable_policy.h: Same.
	* include/tr1/cmath: Same.
	* include/tr1/functional: Same.
	* include/tr1/functional_iterate.h: Same.
	* include/std/std_streambuf.h: Same.
	* include/c_std/std_cmath.h: Same.
	* testsuite/util/testsuite_tr1.h: Same.
	* testsuite/util/performance/assoc/multimap_common_type.hpp: Same.


Co-Authored-By: Paolo Carlini <pcarlini@suse.de>
Co-Authored-By: Peter Doerfler <gcc@pdoerfler.com>

From-SVN: r117024
2006-09-18 13:30:56 +00:00
Paolo Carlini
bcc4a44f6b re PR libstdc++/29063 (valarray does not undefine all temp macros)
2006-09-18  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/29063
	* include/bits/valarray_array.h: Fix typo, undefine
	_DEFINE_ARRAY_FUNCTION.
	* include/std/std_valarray.h: Undefine _DEFINE_BINARY_OPERATOR.

From-SVN: r117019
2006-09-18 09:19:36 +00:00
Paul Thomas
80f2bb6e3a re PR fortran/29060 (spread causes ICE in gfc_trans_array_constructor)
2006-09-18  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/29060
	* iresolve.c (resolve_spread): Build shape for result if the
	source shape is available and dim and ncopies are constants.

	PR fortran/28817
	PR fortran/21918
	* trans-decl.c (generate_local_decl): Change from 'warning' to
	'gfc_warning' to have line numbers correctly reported.

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

	PR fortran/29060
	* gfortran.dg/spread_shape_1.f90: New test.

From-SVN: r117014
2006-09-18 06:24:54 +00:00
Feng Wang
9adc3dc789 Fix ChangeLog format: Add * before filename.
From-SVN: r117013
2006-09-18 03:44:45 +00:00
Roger Sayle
aac8b8ed8a re PR tree-optimization/28887 (rejects valid code (bitfields and loops) with -O1 -fprefetch-loop-arrays)
2006-09-17  Zdenek Dvorak <dvorakz@suse.cz>

	PR tree-optimization/28887
	* tree-ssa-loop-prefetch.c (analyze_ref): Strip nonaddressable
	component parts from the reference.
	(gather_memory_references_ref): Record the reference without the
	nonaddressable component parts.

	* gcc.dg/prefetch-loop-arrays-1.c: New test case.

From-SVN: r117012
2006-09-18 01:54:33 +00:00
GCC Administrator
8e77de24de Daily bump.
From-SVN: r117010
2006-09-18 00:17:33 +00:00
Bernhard Fischer
c3382fba04 dg-cmp-results.sh (compare-$$.awk): Print name[old] and not non-existing nm[old].
2006-09-18  Bernhard Fischer  <aldot@gcc.gnu.org>

	* dg-cmp-results.sh (compare-$$.awk): Print name[old]
	and not non-existing nm[old].

From-SVN: r117006
2006-09-18 00:13:26 +02:00
Steven Bosscher
69723be2b3 re PR c/25993 (-std= produces incorrect preprocessor output for .S)
gcc/
	PR c/25993
	* c-opts.c (c_common_handle_option): Ignore the -std options
	if the input language is assembly.

testsuite/
	PR c/25993
	* gcc.dg/pr25993.c: New test.

From-SVN: r117005
2006-09-17 13:14:53 +00:00
Ira Rosen
7a7d38044d re PR tree-optimization/21591 (not vectorizing a loop with access to structs)
PR tree-opt/21591
        * tree-data-ref.c (ptr_decl_may_alias_p): Look for the name memory
        tag first.
        (ptr_ptr_may_alias_p): Likewise.
        (record_record_differ_p): New function.
        (base_object_differ_p): Call record_record_differ_p.

From-SVN: r117003
2006-09-17 09:17:51 +00:00
GCC Administrator
76c1a415eb Daily bump.
From-SVN: r117001
2006-09-17 00:17:14 +00:00
Andrew Pinski
a9fdb86b72 re PR tree-optimization/29059 (ICE: verify_stmts failed (invalid operand to unary operator ""[0];))
2006-09-16  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/29059
        * gcc.c-torture/compile/strcpy-1.c: New test.
        * gcc.c-torture/compile/strcpy-2.c: New test.
        * gcc.c-torture/compile/memcpy-1.c: New test.
        * gcc.c-torture/compile/memcpy-2.c: New test.

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

        PR tree-opt/29059
        * tree-ssa-propagate.c (set_rhs): Reject MODIFY_EXPR right
        away for the expr argument.

From-SVN: r116997
2006-09-16 15:52:11 -07:00
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