Commit Graph

84136 Commits

Author SHA1 Message Date
Paolo Carlini
f0112db9b3 stl_algobase.h (struct __miter_base): Add.
2007-10-27  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/stl_algobase.h (struct __miter_base): Add.
	(__copy_move_a2, __copy_move_backward_a2): Add.
	(copy, copy_backward, move, move_backward): Adjust, call *a2 helpers.
	* include/bits/cpp_type_traits.h (struct __is_move_iterator): Add.
	* include/bits/streambuf_iterator.h (__copy_move_a<>): Rename
	to __copy_move_a2.
	* include/std/streambuf (friend __copy_move_a<>): Likewise.
	* testsuite/25_algorithms/copy/move_iterators/1.cc: New.
	* testsuite/25_algorithms/copy_backward/move_iterators/1.cc: Likewise.

	* include/bits/stl_iterator.h (__normal_iterator<>::_Iterator_type):
	Rename to iterator_type.

From-SVN: r129678
2007-10-27 12:07:04 +00:00
Jakub Jelinek
094a5fe265 re PR c++/33842 (Broken diagnostic: 'offsetof_expr' not supported by dump_expr)
PR c++/33842
	* cxx-pretty-print.h (pp_cxx_offsetof_expression): New prototype.
	* cxx-pretty-print.c (pp_cxx_primary_expression): Handle
	OFFSETOF_EXPR.
	(pp_cxx_offsetof_expression_1, pp_cxx_offsetof_expression): New
	functions.
	* error.c (dump_expr): Handle OFFSETOF_EXPR.

	* g++.dg/template/error34.C: New test.

From-SVN: r129677
2007-10-27 13:58:26 +02:00
Uros Bizjak
d449b45833 ivopts-1.C: Also search for "offset: 4294967292".
* g++.dg/tree-ssa/ivopts-1.C: Also search for "offset: 4294967292".

From-SVN: r129676
2007-10-27 13:54:19 +02:00
Richard Guenther
03c4c2e0c7 re PR tree-optimization/33870 (miscompiles sqlite)
2007-10-27  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/33870
	* tree-ssa-operands.c (add_vars_for_offset): Reduce code
	duplication.  Remove redundant call to access_can_touch_variable.
	(add_vars_for_bitmap): New helper for recursing over MPT contents.
	(add_virtual_operand): Use it.

	* gcc.dg/tree-ssa/alias-15.c: New testcase.
	* gcc.c-torture/execute/pr33870.c: Likewise.

From-SVN: r129675
2007-10-27 11:10:09 +00:00
Jerry DeLisle
2bd1ffcd4a re PR fortran/33162 (INTRINSIC functions as ACTUAL argument)
2007-10-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/33162
	* gfortran.dg/argument_checking_9.f90: New test.

From-SVN: r129674
2007-10-27 00:57:26 +00:00
Jerry DeLisle
15ead8598a re PR fortran/33162 (INTRINSIC functions as ACTUAL argument)
2007-10-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/33162
	* intrinsic.h: Add prototypes for four new functions, gfc_check_datan2,
	gfc_check_dprod, gfc_check_fn_d, and gfc_check_x_yd.
	* intrinsic.c (add_functions): Add double precision checks for dabs,
	dacos, dacosh, dasin, dasinh, datan, datanh, datan2, dbesj0, dbesj1,
	dbesy0, dbesy1, dcos, dcosh, ddim, derf, derfc, dexp, dgamma,
	dlgama, dlog, dlog10, dmod, dsign, dsin, dsinh, dsqrt, dtan, and dtanh.
	Add real check dprod.
	* check.c (gfc_check_datan2): New function to check for double precision
	argumants. (gfc_check_dprod, gfc_check_fn_d, and gfc_check_x_yd): Ditto.

From-SVN: r129673
2007-10-27 00:54:20 +00:00
Paolo Carlini
61fcb9fb0c throw_allocator.h (throw_allocator<>:: construct<>(pointer, _Args&&...)): Add.
2007-10-26  Paolo Carlini  <pcarlini@suse.de>

	* include/ext/throw_allocator.h (throw_allocator<>::
	construct<>(pointer, _Args&&...)): Add.
	* include/ext/pool_allocator.h (__pool_alloc<>::
	construct<>(pointer, _Args&&...)): Likewise.
	(construct(pointer, const _Tp&)): Cast pointer to void*. 
	* include/ext/bitmap_allocator.h (bitmap_allocator<>::
	construct<>(pointer, _Args&&...)): Add.
	(construct(pointer, const _Tp&)): Cast pointer to void*.
	* include/ext/new_allocator.h (new_allocator<>::
	construct<>(pointer, _Args&&...)): Add.
	(construct(pointer, const _Tp&)): Cast pointer to void*.
	* include/ext/malloc_allocator.h (malloc_allocator<>::
	construct<>(pointer, _Args&&...)): Add.
	(construct(pointer, const _Tp&)): Cast pointer to void*.
	* include/ext/array_allocator.h (array_allocator<>::
	construct<>(pointer, _Args&&...)): Add.
	(construct(pointer, const _Tp&)): Cast pointer to void*.
	* include/ext/mt_allocator.h (__mt_alloc<>::
	construct<>(pointer, _Args&&...)): Add.
	(construct(pointer, const _Tp&)): Cast pointer to void*.
	* testsuite/util/testsuite_allocator.h (tracker_allocator<>::
	construct<>(pointer, _Args&&...)): Add.
	(construct(pointer, const _Tp&)): Cast pointer to void*.
 	(uneq_allocator<>::construct<>(pointer, _Args&&...)): Add.
	(construct(pointer, const _Tp&)): Cast pointer to void*.
	* testsuite/ext/mt_allocator/variadic_construct.cc: New.
	* testsuite/ext/new_allocator/variadic_construct.cc: Likewise.
	* testsuite/ext/throw_allocator/variadic_construct.cc: Likewise.
	* testsuite/ext/malloc_allocator/variadic_construct.cc: Likewise.
	* testsuite/ext/pool_allocator/variadic_construct.cc: Likewise.
	* testsuite/ext/bitmap_allocator/variadic_construct.cc: Likewise.
	* testsuite/ext/array_allocator/variadic_construct.cc: Likewise.

From-SVN: r129672
2007-10-27 00:41:21 +00:00
John David Anglin
00e65cfa89 re PR fortran/31608 (wrong types in character array/scalar binop)
PR fortran/31608
	* pa.h (ASM_PN_FORMAT): Delete define.

From-SVN: r129671
2007-10-27 00:21:02 +00:00
GCC Administrator
02c99cd052 Daily bump.
From-SVN: r129669
2007-10-27 00:17:28 +00:00
Janis Johnson
d228aace97 invoke.texi (Option Summary, [...]): Remove -fbounds-check.
* doc/invoke.texi (Option Summary, optimizations): Remove
	-fbounds-check.  Add -fassociative-math, -freciprocal-math,
	-ftree-vrp and -funit-at-a-time.  Change -fno-split-wide-types to
	-fsplit-wide-types to match later entry.  Break up a long line.
	(Option Summary, code gen options)  Add -fno-stack-limit.  Add
	missing @gol to the end of a line.
	(Optimization Options): Remove -fbounds-check, which is also
	documented under Code Generation Options.  Remove =n from
	index entry for -ftree-parallelize-loops.  Change -fno-cprop-registers
	to -fcprop-registers to match other options, and say when it is
	enabled rather than disabled.  Remove extra index entry for
	-fno-cx-limited-range.  Add index entries for -fstack-protector
	and -fstack-protector-all.
	(Code Gen Options): Add index entry for -ftls-model.

From-SVN: r129664
2007-10-26 22:03:57 +00:00
Jerry DeLisle
efb6658632 invoke.texi: Fix typo in -fmax-errors=.
2007-10-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	* invoke.texi: Fix typo in -fmax-errors=.

From-SVN: r129663
2007-10-26 21:59:07 +00:00
Anatoly Sokolov
96ac4c9bbd avr.c (avr_OS_task_function_p): Add new function.
* config/avr/avr.c (avr_OS_task_function_p): Add new function.
	(avr_regs_to_save): Handle functions with 'OS_task' attribute.
	(avr_simple_epilogue, expand_prologue, avr_asm_function_end_prologue,
	expand_epilogue, output_movhi): Don't handle 'main' function.
	(avr_attribute_table): Add 'OS_task' function attribute.
	* config/avr/avr.h (machine_function): Remove 'is_main' field, add
	'is_OS_task' field.
	* config/avr/avr.md (return_from_main_epilogue): Remove insn.
	(return_from_epilogue, return_from_interrupt_epilogue): Don't handle
	'main' function.
	* config/avr/avr.opt (minit-stack): Remove.

From-SVN: r129662
2007-10-27 01:36:25 +04:00
Eric Botcazou
bc4c8d897f tree-nested.c (get_trampoline_type): Fix thinko.
* tree-nested.c (get_trampoline_type): Fix thinko.

From-SVN: r129661
2007-10-26 21:20:36 +00:00
Jason Merrill
91a77d68e7 re PR c++/24791 (ICE on invalid instantiation of template's static member)
PR c++/24791
        * pt.c (get_template_info): New fn.
        (template_class_depth): Use it.
        (push_template_decl_real): Check that the template args of the
        definition match the args of the previous declaration.

From-SVN: r129660
2007-10-26 15:54:10 -04:00
Douglas Gregor
4552f5a2c8 re PR c++/33601 (ICE with pointers to members using "const C" as the class identifier)
2007-10-26  Douglas Gregor  <doug.gregor@gmail.com>

	PR c++/33601
	* tree.c (build_offset_type): Build canonical type based on the
	TYPE_MAIN_VARIANT of the base type.

2007-10-26  Douglas Gregor  <doug.gregor@gmail.com>

	* g++.dg/other/pr33601.C: New.

From-SVN: r129659
2007-10-26 19:34:03 +00:00
Tobias Burnus
84f2b1d168 mk-kinds-h.sh: Add "LANG=C".
2007-10-26  Tobias Burnus  <burnus@net-b.de>

       * mk-kinds-h.sh: Add "LANG=C".

From-SVN: r129658
2007-10-26 21:01:42 +02:00
Paolo Carlini
07021f8c63 re PR c++/31988 (new operator should not permit default first parameter)
cp/
2007-10-26  Paolo Carlini  <pcarlini@suse.de>

	PR c++/31988
	* decl2.c (coerce_new_type): Do not allow a default argument for
	the first parameter.

testsuite/
2007-10-26  Paolo Carlini  <pcarlini@suse.de>

	PR c++/31988
	* g++.dg/init/new25.C: New.

From-SVN: r129657
2007-10-26 18:32:41 +00:00
Douglas Gregor
2b536806af re PR c++/33839 (ICE with decltype)
2007-10-26  Douglas Gregor  <doug.gregor@gmail.com>

	PR c++/33839
	* parser.c (cp_parser_decltype): Return ERROR_MARK_NODE if we
	don't see the leading '('. Only lookup names if we get an
	IDENTIFIER_NODE.

2007-10-26  Douglas Gregor  <doug.gregor@gmail.com>

	* g++.dg/cpp0x/pr33839.C: New.

From-SVN: r129656
2007-10-26 17:53:56 +00:00
Benjamin Kosnik
3f28024c07 unordered_map: Fix for parallel mode.
2007-10-26  Benjamin Kosnik  <bkoz@redhat.com>

	* include/std/unordered_map: Fix for parallel mode.
	* include/std/unordered_set: Same.

From-SVN: r129654
2007-10-26 14:38:12 +00:00
Daniel Jacobowitz
90a1c3cea3 reorg.c (emit_delay_sequence): Move insn locator from the first insn to the sequence.
* reorg.c (emit_delay_sequence): Move insn locator from the
	first insn to the sequence.

From-SVN: r129651
2007-10-26 12:19:34 +00:00
Jakub Jelinek
0f1e332126 re PR c++/33744 (function-style cast and '>' not allowed in template argument)
PR c++/33744
	* parser.c (cp_parser_parenthesized_expression_list): Set
	greater_than_is_operator_p to true in between the parens.

	* g++.dg/template/arg6.C: New test.

From-SVN: r129648
2007-10-26 13:57:46 +02:00
Paolo Carlini
9b70c6b078 re PR c++/31747 (ICE combining static and extern)
cp/
2007-10-26  Paolo Carlini  <pcarlini@suse.de>

	PR c++/31747
	* decl.c (grokdeclarator): In case of conflicting specifiers
	just return error_mark_node.

testsuite/
2007-10-26  Paolo Carlini  <pcarlini@suse.de>

	PR c++/31747
	* g++.dg/parse/crash39.C: New.

From-SVN: r129647
2007-10-26 09:57:12 +00:00
Uros Bizjak
0f095169ae ivopts-1.C: Remove xfail on the search for "&x\\\[5\\\]" pattern.
* g++.dg/tree-ssa/ivopts-1.C: Remove xfail on the search for
	"&x\\\[5\\\]" pattern.  Search for "offset: 0x0f+fc" insetad of
	"offset: -4B".

From-SVN: r129646
2007-10-26 10:33:39 +02:00
Ollie Wild
3459ca230e expr.c (cxx_expand_expr): Removed.
gcc/cp/
	* expr.c (cxx_expand_expr): Removed.
	* cp-tree.h (exx_expand_expr): Removed.
	* cp-objcp-common.h (LANK_HOOKS_EXPAND_EXPR): Replace cxx_expand_expr
	with c_expand_expr.

From-SVN: r129645
2007-10-26 08:19:14 +00:00
Samuel Tardieu
eb80272af1 ipa-pure-const.c (check_decl): Return immediately when pure_const_state has been set to IPA_NEITHER.
* ipa-pure-const.c (check_decl): Return immediately when
        pure_const_state has been set to IPA_NEITHER.

From-SVN: r129644
2007-10-26 09:08:05 +02:00
GCC Administrator
70c0cfc9e5 Daily bump.
From-SVN: r129642
2007-10-26 00:17:11 +00:00
David Daney
ccbf3d066f * g++.dg/tree-ssa/copyprop-1.C: Remove xfail.
From-SVN: r129639
2007-10-26 00:06:51 +00:00
Paolo Carlini
6735e374b2 re PR c++/33843 (Broken diagnostic: 'bit_not_expr' not supported by pp_cxx_unqualified_id)
2007-10-25  Paolo Carlini  <pcarlini@suse.de>

	PR c++/33843
	* cxx-pretty-print.c (pp_cxx_unqualified_id): Deal with BIT_NOT_EXPR.

2007-10-25  Paolo Carlini  <pcarlini@suse.de>

	PR c++/33843
	* g++.dg/template/error32.C: New.

From-SVN: r129637
2007-10-25 23:42:49 +00:00
Francois-Xavier Coudert
1fa6df85b1 libgfortran.h (GFC_REAL_*_HUGE, [...]): Remove.
* libgfortran.h (GFC_REAL_*_HUGE, GFC_REAL_*_DIGITS,
	GFC_REAL_*_RADIX): Remove.
	* mk-kinds-h.sh: Define GFC_REAL_*_HUGE, GFC_REAL_*_DIGITS and
	GFC_REAL_*_RADIX. Don't define GFC_REAL_LARGEST_FORMAT and
	GFC_REAL_LARGEST.

From-SVN: r129636
2007-10-25 23:32:07 +00:00
Francois-Xavier Coudert
691307546e re PR fortran/29784 ([doc] No I/O conversion of logical/integer)
PR fortran/29784
	* gfortran.texi: Document that there is no logical/integer
	conversion performed during I/O operations.

From-SVN: r129635
2007-10-25 23:27:12 +00:00
Doug Evans
7ac6e35e01 Update my email address.
From-SVN: r129633
2007-10-25 21:07:12 +00:00
Jakub Jelinek
98a5fa9468 re PR libgomp/33275 (Transient libgomp.fortran/omp_parse3.f90 -O0 failure)
PR libgomp/33275
	* testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
	Make x and y integers rather than (implicit) reals.  Add private (j)
	clause to the last omp parallel.

From-SVN: r129631
2007-10-25 22:25:12 +02:00
Andreas Tobler
ef99c95ece Makefile.am (parallel_headers): Remove timing.h.
2007-10-25  Andreas Tobler  <a.tobler@schweiz.org>

	* include/Makefile.am (parallel_headers): Remove timing.h.
	* include/Makefile.in: Regenerate.

From-SVN: r129630
2007-10-25 22:22:40 +02:00
Johannes Singler
740936e08e multiway_merge.h: Removed Timing<inactive_tag>
2007-10-25  Johannes Singler  <singler@ira.uka.de>

      * include/parallel/multiway_merge.h: Removed Timing<inactive_tag>
      * include/parallel/random_shuffle.h: Same
      * include/parallel/set_operations.h: Same
      * include/parallel/tree.h: Same
      * include/parallel/multiway_mergesort.h: Same
      * include/parallel/timing.h: Removed completely

From-SVN: r129629
2007-10-25 17:07:56 +00:00
Ira Rosen
8d358a4aae re PR tree-optimization/33833 (ICE in build2_stat, at tree.c:3110 at -O3, tree-vectorizer)
PR tree-optimization/33833
	* tree-vect-analyze.c (vect_analyze_data_refs): Use POINTER_PLUS_EXPR
	and convert init to sizetype in inner_base construction.

From-SVN: r129628
2007-10-25 16:41:45 +00:00
David Daney
7f1d67caa7 * gcc.dg/tree-ssa/20040204-1.c: Un-xfail for mips*-*-*.
From-SVN: r129627
2007-10-25 16:11:27 +00:00
Richard Guenther
cfff829fc6 tree-flow.h (mem_sym_stats): Remove.
2007-10-25  Richard Guenther  <rguenther@suse.de>

	* tree-flow.h (mem_sym_stats): Remove.
	(dump_mem_sym_stats_for_var): Declare.
	* tree-dfa.c (dump_variable): Call dump_mem_sym_stats_for_var.
	(mem_sym_stats): Move ...
	* tree-ssa-alias.c (mem_sym_stats): ... here and make it static.
	(mem_sym_score): Rename from ...
	(pscore): ... this.  Remove.
	(dump_mem_sym_stats_for_var): New function.  Dump the score, but
	not the frequencies.
	(compare_mp_info_entries): Make sort stable by disambiguating
	on DECL_UID.

From-SVN: r129625
2007-10-25 12:38:38 +00:00
Paolo Carlini
1fcd0a2c50 stl_algo.h (__lg<>(_Size)): Slightly tweak.
2007-10-25  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/stl_algo.h (__lg<>(_Size)): Slightly tweak.
	(__lg(int), __lg(long), __lg(long long)): Add, overloads
	exploiting __builtin_clz*.

From-SVN: r129624
2007-10-25 10:11:58 +00:00
Ira Rosen
0bf2cf8907 re PR tree-optimization/33866 (ICE in vect_get_vec_def_for_stmt_copy, at tree-vect-transform.c:1937)
PR tree-optimization/33866
	* tree-vect-transform.c (vectorizable_store): Check operands of all the
	stmts in the group of strided accesses. Get def stmt type for each store
	in the group and pass it to vect_get_vec_def_for_stmt_copy ().

From-SVN: r129623
2007-10-25 07:25:55 +00:00
Uros Bizjak
e2520c41ed constraints.md (Y0): Rename register constraint to Yz.
* config/i386/constraints.md (Y0): Rename register constraint to Yz.
        (Yt): Rename register constraint to Y2.
        * config/i386/sse.md: Use renamed register constraints.
        * config/i386/mmx.md: Ditto.
        * config/i386/i386.md: Ditto.

        * config/i386/i386.md (*dummy_extendsfdf2): Fix operand 1 constraint.

From-SVN: r129622
2007-10-25 07:41:37 +02:00
Ben Elliston
acc48927fa MAINTAINERS (mercury): Remove entry.
* MAINTAINERS (mercury): Remove entry.
	(Write After Approval): Add Fergus Henderson <fjh@cs.mu.oz.au>.

From-SVN: r129621
2007-10-25 11:19:52 +10:00
Chao-ying Fu
9a9f6b5266 dwarf2out.c (base_type_die): Use DW_ATE_unsigned_fixed or DW_ATE_signed_fixed to describe FIXED_POINT_TYPE.
* dwarf2out.c (base_type_die): Use DW_ATE_unsigned_fixed or
	DW_ATE_signed_fixed to describe FIXED_POINT_TYPE.

From-SVN: r129620
2007-10-25 01:02:35 +00:00
GCC Administrator
7790f79410 Daily bump.
From-SVN: r129618
2007-10-25 00:17:27 +00:00
Samuel Tardieu
8d66f74218 ipa-struct-reorg.c (replace_field_acc): Make it clear to the compiler that wr.wrap and wr.domain are initialized in any...
2007-10-24  Samuel Tardieu  <sam@rfc1149.net>
            Olga Golovanevsky <olga@il.ibm.com>

	* ipa-struct-reorg.c (replace_field_acc): Make it clear to
	the compiler that wr.wrap and wr.domain are initialized in
	any case.

2007-10-24  Samuel Tardieu  <sam@rfc1149.net>

	* ipa-struct-reorg.c (sum_counts): Use HOST_WIDEST_PRINT_DEC
	to print gcov_type values.

Co-Authored-By: Olga Golovanevsky <olga@il.ibm.com>

From-SVN: r129615
2007-10-24 21:49:27 +00:00
Eric B. Weddington
1de59a139b avr.h: Do not include progmem_section definition when building with IN_TARGET_LIBS.
* config/avr/avr.h: Do not include progmem_section definition when
	building with IN_TARGET_LIBS.

From-SVN: r129614
2007-10-25 01:00:41 +04:00
Uros Bizjak
1e88911415 Forgot one file from my previous commit.
From-SVN: r129613
2007-10-24 22:57:14 +02:00
Uros Bizjak
1e204b2bf1 pr11001-*.c: Remove -m32 from compile flags.
* gcc.target/i386/pr11001-*.c: Remove -m32 from compile flags.
        Add -w to compile flags to suppress "call-clobbered register" warnings
        and remove dg-warning directives.

From-SVN: r129612
2007-10-24 22:55:28 +02:00
Uros Bizjak
6580453213 sms-2.c: Cleanup sms dump file.
* gcc.dg/sms-2.c: Cleanup sms dump file.
        * gcc.dg/tree-prof/tracer-1.c: Cleanup tracer dump file after the
        profile-use step.

From-SVN: r129611
2007-10-24 22:23:35 +02:00
Jason Merrill
7179604fa7 comment typo
From-SVN: r129610
2007-10-24 15:58:57 -04:00
David Daney
876fa8ec87 * gcc.dg/tree-ssa/update-threading.c: Remove xfail.
From-SVN: r129608
2007-10-24 18:02:34 +00:00