Commit Graph

62363 Commits

Author SHA1 Message Date
Tobias Schlüter
5d874166a8 primary.c (match_boz_constant): Allow kind parameter suffixes.
fortran/
* primary.c (match_boz_constant): Allow kind parameter suffixes.
Move standard warning further to the front.

testsuite/
* gfortran.fortran-torture/execute/intrinsic_mvbits.f90,
gfortran.dg/ishft.f90: Add more tests.

From-SVN: r88690
2004-10-07 17:12:06 +02:00
Zdenek Dvorak
14de86fa0a re PR tree-optimization/17749 (ICE with recursive function)
PR tree-optimization/17749
	* tree-tailcall.c (find_tail_calls): Check that parameter is
	a gimple_reg.

From-SVN: r88689
2004-10-07 14:21:15 +00:00
Andrew Pinski
ca05904340 parser.c (cp_parser_asm_definition): Look passed the CLEANUP_POINT_EXPR to get the asm expression.
cp/ChangeLog:
	* parser.c (cp_parser_asm_definition): Look passed the
	CLEANUP_POINT_EXPR to get the asm expression.

testsuite/ChangeLog:
	* g++.dg/ext/asm6.C: Remove extraneous semicolon.

From-SVN: r88688
2004-10-07 06:48:27 -07:00
Kazu Hirata
93348822aa * config/ia64/ia64.c: Fix a comment typo.
From-SVN: r88686
2004-10-07 13:18:34 +00:00
Kazu Hirata
54c2d93172 * trans-stmt.c: Fix a comment typo.
From-SVN: r88685
2004-10-07 13:16:16 +00:00
Eric Botcazou
224edf728f * doc/install.texi (*-*-solaris2*): Fix marker for URL.
From-SVN: r88682
2004-10-07 12:14:45 +00:00
Giovanni Bajo
09ebcffa19 re PR c++/17115 (-Winline does not respect __attribute__((__noinline__)))
PR c++/17115
	* tree-inline.c (expand_call_inline): Do not warn for functions
	marked with attribute noinline.

	PR c++/17115
	* g++.dg/warn/Winline-4.C: New test.

From-SVN: r88678
2004-10-07 08:36:28 +00:00
Eric Botcazou
22d66adf5d re PR target/17862 (internal compiler error: in sparc_asm_function_prologue)
PR target/17862
	* config/sparc/sparc.c (sparc_output_mi_thunk): Set
	current_function_uses_only_leaf_regs as well as sparc_leaf_function_p.

	* config/sparc/sparc.c (sparc_gimplify_va_arg): Pass 'false' instead
	of 0 as 4th argument to pass_by_reference.
	Call build_va_arg_indirect_ref instead of build_fold_indirect_ref.

From-SVN: r88674
2004-10-07 07:55:39 +00:00
Eric Christopher
298321642a sh.c (sh_dwarf_calling_convention): Fix renesas dwarf attribute.
2004-10-06  Eric Christopher  <echristo@redhat.com>

	* config/sh/sh.c (sh_dwarf_calling_convention): Fix renesas dwarf
	attribute.

From-SVN: r88671
2004-10-07 06:48:22 +00:00
Richard Sandiford
ac6b57e5ec re PR target/17770 (No NOP after LWL with -mips1)
PR target/17770
	* config/mips/mips.md (mov_<load>l): Remove hazard=none attribute.

From-SVN: r88670
2004-10-07 06:41:25 +00:00
Zdenek Dvorak
a82bbcbbbe re PR rtl-optimization/17791 (doloop can produce wrong code causes Ada bootstrap failure)
PR rtl-optimization/17791
	* loop-doloop.c (doloop_modify): Take number of iterations as
	argument.
	(doloop_optimize): Extend or shorten the number of iterations
	when changing mode of counter register.
	* loop-iv.c (lowpart_subreg): Export.
	* rtl.h (lowpart_subreg): Declare.

From-SVN: r88668
2004-10-07 06:20:34 +00:00
Christian Ehrhardt
1313b31fbb Fix wrong attribution.
From-SVN: r88666
2004-10-07 06:15:40 +00:00
Zdenek Dvorak
a746fd8cdd re PR tree-optimization/17806 (compiler error: in verify_loop_structure, at cfgloop.c:1491 , works -O2, breaks with -O3)
PR tree-optimization/17806
	* cfghooks.c (split_edge): Update IRREDUCIBLE_LOOP flags.
	* cfgloopmanip.c (loop_split_edge_with): Updating of IRREDUCIBLE_LOOP
	flags moved to split_edge.

From-SVN: r88665
2004-10-07 06:14:15 +00:00
Christian Ehrhardt
cc67d2fa80 * gcc.c-torture/compile/20041007-1.c: New test.
From-SVN: r88662
2004-10-07 06:08:15 +00:00
Eric Botcazou
38636eac43 re PR middle-end/17835 (stage2 compiler is broken because it is built with -fomit-frame-pointer)
PR middle-end/17835
	* expmed.c (expand_sdiv_pow2): Force a stack adjustment
	before tentatively building the conditional move sequence.

From-SVN: r88661
2004-10-07 05:56:51 +00:00
Richard Sandiford
ae8c97546b re PR middle-end/16815 (MIPS n32/n64 inefficient code for float arguments)
PR target/16815
	* function.c (assign_parm_setup_block_p): Tighten BLOCK_REG_PADDING
	check.
	* config/pa/pa.h (BLOCK_REG_PADDING): Define in terms of
	function_arg_padding.

From-SVN: r88660
2004-10-07 05:34:30 +00:00
Richard Sandiford
ed00ab959d re PR bootstrap/17857 (fixproto can't find fix-header)
PR bootstrap/17857
	* Makefile.in (stmp-fixproto): Pass FIX_HEADER=build/... to fixproto.

From-SVN: r88659
2004-10-07 05:28:46 +00:00
Kazu Hirata
a8b0957ebb MAINTAINERS (Language Front Ends Maintainers): New.
* MAINTAINERS (Language Front Ends Maintainers): New.  Move
	entries belonging to this category.

From-SVN: r88658
2004-10-07 04:03:44 +00:00
Kazu Hirata
5ac6107c32 hooks.c (hook_int_void_1, [...]): Remove.
* hooks.c (hook_int_void_1, hook_void_int): Remove.
	* hooks.h: Remove the corresponding prototypes.

From-SVN: r88657
2004-10-07 04:00:55 +00:00
Paul Brook
2b58638b46 re PR fortran/17678 (USE statement incorrectly initializes allocatable array)
PR fortran/17678
	* trans-array.c (gfc_trans_deferred_array): Leave use associated
	variables alone.
testsuite/
	* gfortran.dg/use_allocated_1.f90: New test.

From-SVN: r88655
2004-10-07 00:43:21 +00:00
GCC Administrator
d1d525310b Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r88653.2
2004-10-07 00:17:18 +00:00
GCC Administrator
4095901c48 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r88652.2
2004-10-07 00:17:13 +00:00
Andrew Pinski
a3ed9870e8 re PR middle-end/17849 (intrinsic_pack.f90)
2004-10-06  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/17849
        * gfortran.fortran-torture/compile/nested.f90: New test


2004-10-06  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/17849
        * tree-nested.c (walk_stmt_info): Add changed field.
        (convert_nonlocal_reference): Set changed to when we
        change a decl to unnested decl.
        <case ADDR_EXPR>: Instead of checking if the immediate part
        of the ADDR_EXPR changed, check the field changed.
        Use recompute_tree_invarant_for_addr_expr instead of unsetting
        TREE_INVARIANT.
        (convert_local_reference):  Set changed to when we
        change a decl to unnested decl.
        <case ADDR_EXPR>: Instead of checking if the immediate part
        of the ADDR_EXPR changed, check the field changed.
        Also call recompute_tree_invarant_for_addr_expr on the ADDR_EXPR.

From-SVN: r88650
2004-10-06 16:45:48 -07:00
Tobias Schlüter
c45abcaf8f * simplify.c (gfc_simplify_abs): Use mpfr_hypot for CABS.
From-SVN: r88647
2004-10-07 01:16:43 +02:00
Kazu Hirata
9e749a8b42 defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
* defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
	* dwarf2out.c (dwarf2out_init): Remove references to
	DWARF2_GENERATE_TEXT_SECTION_LABEL.
	* system.h: Poison DWARF2_GENERATE_TEXT_SECTION_LABEL.
	* doc/tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.

From-SVN: r88631
2004-10-06 22:20:31 +00:00
Joseph Myers
03dafa6108 c-typeck.c (convert_arguments): Take expression for called function rather than its name.
* c-typeck.c (convert_arguments): Take expression for called
	function rather than its name.  Handle ObjC selectors directly
	rather than relying on warn_for_assignment to do so.  Call warning
	directly rather than warn_for_assignment.  Use %qE in diagnostics.
	Say "argument" rather than "arg" in diagnostics.
	(build_function_call): Update call to convert_arguments.

testsuite:
	* gcc.dg/Wconversion-2.c, gcc.dg/func-args-1.c: New tests.

From-SVN: r88630
2004-10-06 23:16:29 +01:00
Andrew Pinski
75917fc032 re PR debug/17787 (Ada does not bootstrap on darwin because of -feliminate-unused-debug-symbols)
2004-10-06  Andrew Pinski  <pinskia@physics.uc.edu>

        PR debug/17787
        * dbxout.c (dbxout_symbol): Really handle RECORD, UNION, and
        ENUMs specially instead of just saying we do.

From-SVN: r88629
2004-10-06 15:13:14 -07:00
Benjamin Kosnik
e3f78d9b11 acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
2004-10-06  Benjamin Kosnik  <bkoz@redhat.com>

	* acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
	(GLIBCXX_CONFIGURE_TESTSUITE): Use it.
	* configure: Regenerated.
	* testsuite/Makefile.am (CLEANFILES): Add TEST for
	check-performance executables.
	(stamp_thread): New.
	(all-local): Use it.
	* testsuite/Makefile.in: Regenerate.
	* scripts/create_testsuite_files: Filter thread tests.

	* testsuite/thread/pthread1.cc: Remove macro conditionals: this
	file will only be run by thread enabled configurations.
	* testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
	* testsuite/thread/pthread6.cc: Same.
	* testsuite/thread/pthread5.cc: Same.
	* testsuite/thread/pthread4.cc: Same.
	* testsuite/thread/pthread3.cc: Same.
	* testsuite/thread/pthread2.cc: Same.

	* testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
	* testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
	* testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
	* testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
	* testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here.
	* testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
	* testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
	* testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
	* testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.

From-SVN: r88628
2004-10-06 22:12:34 +00:00
Andrew Pinski
564060c32a [multiple changes]
2004-10-05  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/17368
        * semantics.c (finish_asm_stmt): Asm expressions need cleanup
        also.

2004-10-06  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/17368
        * g++.dg/ext/asm6.C: New test.

From-SVN: r88627
2004-10-06 15:09:25 -07:00
Eric Christopher
df7d2d8064 dwarf2.h: Sync with include/elf/dwarf2.h
2004-10-06  Eric Christopher  <echristo@redhat.com>

	* dwarf2.h: Sync with include/elf/dwarf2.h

From-SVN: r88626
2004-10-06 20:27:15 +00:00
Daniel Berlin
55e9452ed5 tree-pretty-print.c (dump_generic_node): Fix printing of BINFO and TREE_VEC nodes.
2004-10-06  Daniel Berlin  <dberlin@dberlin.org>

	* tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
	and TREE_VEC nodes.

From-SVN: r88624
2004-10-06 20:14:28 +00:00
Daniel Berlin
44301a5952 It would have been nice to commit the changelog as well.
sigh

From-SVN: r88623
2004-10-06 19:51:22 +00:00
Daniel Berlin
feb075f482 lambda-code.c (lambda_loopnest_to_gcc_loopnest): Convert to use FOR_EACH_SSA_USE_OPERAND iterator, and propagate_value.
2004-10-06  Daniel Berlin  <dberlin@dberlin.org>

	* lambda-code.c (lambda_loopnest_to_gcc_loopnest): Convert
	to use FOR_EACH_SSA_USE_OPERAND iterator, and propagate_value.

2004-10-06  Daniel Berlin  <dberlin@dberlin.org>

	* lambda-code.c (compute_nest_using_fourier_motzkin): New
	function.
	(lambda_compute_auxillary_space): Split from here.

2004-10-06  Daniel Berlin  <dberlin@dberlin.org>

	* tree-ssa-loop-ivopts.c (expr_invariant_in_loop): Make non-static.
	* tree-flow.h: Add prototype.
	* lambda-code.c (invariant_in_loop_and_outer_loops): Use
	expr_invariant_in_loop.

From-SVN: r88622
2004-10-06 19:40:54 +00:00
Kenneth Zadeck
8813c94428 added changelog entry for prior commit.
From-SVN: r88620
2004-10-06 19:31:31 +00:00
Kazu Hirata
4c1d660f6a tree-cfg.c (thread_jumps): Remove a duplicate check for EXIT_BLOCK_PTR.
* tree-cfg.c (thread_jumps): Remove a duplicate check for
	EXIT_BLOCK_PTR.

From-SVN: r88619
2004-10-06 19:05:12 +00:00
Paul Brook
7726f633fa re PR libfortran/17709 (NULL I/O list and Format error.)
PR libfortran/17709
	* io/transfer.c (data_transfer_init): Reset sf_seen_eor.
testsuite/
	* gfortran.dg/empty_format_1.f90: New test.

From-SVN: r88615
2004-10-06 18:27:58 +00:00
Ulrich Weigand
575f7c2bd2 s390-protos.h (s_imm_operand): Remove.
* config/s390/s390-protos.h (s_imm_operand): Remove.
	(s390_pool_operand): Add prototype.
	* config/s390/s390.c (general_s_operand): Remove.
	(s_imm_operand): Remove.
	(s_operand): Merge contents of general_s_operand.
	(s390_pool_operand): New function.
	* config/s390/s390.h (PREDICATE_CODES): Remove s_imm_operand.
	* config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct"): New insns.
	("*cmpdi_ccu"): Merge Q->Q alternative.
	("*cmpsi_ccu", "*cmphi_ccu"): Likewise.
	("*cmpqi_ccu"): Merge Q->Q, n->Q, n->S alternatives.
	("*cli"): Remove.
	("*cmpdi_ccu_mem", "*cmpsi_ccu_mem"): Likewise.
	("*cmphi_ccu_mem", "*cmpqi_ccu_mem"): Likewise.
	("*movstricthi"): Use memory_operand instead of s_imm_operand.

From-SVN: r88614
2004-10-06 18:22:00 +00:00
Kenneth Zadeck
71dfe05195 Added missing memory attribute to asm instruction.
From-SVN: r88612
2004-10-06 16:54:58 +00:00
Benjamin Kosnik
8470634361 re PR libstdc++/17780 (std::allocator vs. static init)
2004-10-06  Benjamin Kosnik  <bkoz@redhat.com>
	    Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/17780
	* src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
	to old locking order.

Co-Authored-By: Paolo Carlini <pcarlini@suse.de>

From-SVN: r88611
2004-10-06 16:31:19 +00:00
Tobias Schlüter
3b0cff13e4 re PR fortran/17283 (UNPACK issues)
PR fortran/17283
* gfortran.fortran-torture/execute/intrinsic_pack.f90: Enable new
tests.

From-SVN: r88610
2004-10-06 18:24:30 +02:00
Tobias Schlüter
5d24a9774e re PR fortran/17568 (ISHFT intrinsic: bogus overflow error)
fortran/
PR fortran/17568
* simplify.c (twos_complement): New function.
(gfc_simplify_ishft, gfc_simplify_ishftc): Revise.

testsuite/
PR fortran/17568
* gfortran.dg/ishft.f90: New test.

From-SVN: r88609
2004-10-06 18:21:42 +02:00
Steve Ellcey
d13256a357 ia64.h (FUNCTION_ARG_BOUNDARY): Change macro to call ia64_function_arg_boundary.
* config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Change macro to
	call ia64_function_arg_boundary.
	* config/ia64/ia64-protos.h (ia64_function_arg_boundary): New.
	* config/ia64/ia64.c (ia64_function_arg_boundary): New.
	(ia64_function_arg_advance): Do not put 128 bit floats into
	FP registers.

From-SVN: r88608
2004-10-06 16:07:03 +00:00
Paul Brook
fbdad37d85 trans-stmt.c (gfc_trans_simple_do): New function.
* trans-stmt.c (gfc_trans_simple_do): New function.
	(gfc_trans_do): Use it.  Evaluate iteration bounds before entering
	loop.  Update comments.
testsuite/
	* gfortran.dg/do_1.f90: New test.

From-SVN: r88607
2004-10-06 15:29:25 +00:00
Ulrich Weigand
5a6aa19c25 parse.y (issue_warning_error_from_context): Use va_list * instead of va_list parameter.
* parse.y (issue_warning_error_from_context): Use va_list *
	instead of va_list parameter.
	(parse_error_context): Update call.
	(parse_warning_context): Likewise.

From-SVN: r88605
2004-10-06 14:02:19 +00:00
Kaveh R. Ghazi
609ae0e2ce builtins.c (expand_builtin_strcpy): Delete duplicate code.
* builtins.c (expand_builtin_strcpy): Delete duplicate code.
	Accept an expression instead of an arglist.
	(expand_builtin_stpcpy): Accept an expression instead of an
	arglist.

testsuite:
	* gcc.c-torture/execute/builtins/lib/strcpy.c: Don't abort when
	optimizing for size.

From-SVN: r88604
2004-10-06 13:23:30 +00:00
Josef Zlomek
96836f6194 * MAINTAINERS: Update my e-mail address.
From-SVN: r88598
2004-10-06 11:59:51 +00:00
Eric Botcazou
51e9a60c15 re PR target/16007 (Use of static template members results in broken executables)
PR target/16007
	* doc/install.texi (*-*-solaris2*): Mention potential problem
	with Sun assembler + GNU linker and C++ programs.
	Document status of binutils 2.15 release.

From-SVN: r88595
2004-10-06 11:01:43 +00:00
Paolo Bonzini
7e0b5752fe [multiple changes]
2004-10-06  Paolo Bonzini  <bonzini@gnu.org>

	Fix wrong conflict resolution in:

	2004-08-16  Paolo Bonzini  <bonzini@gnu.org>

	* Makefile.in: Regenerate.
	* Makefile.tpl (Autogenerated `all-*' targets): Invoke $(TARGET-*)
	in the recursive `make', instead of hardwiring `all'.
	(Autogenerated TARGET-* variables): New.

From-SVN: r88594
2004-10-06 10:09:29 +00:00
Paolo Carlini
dbb8bfe8c5 [multiple changes]
2004-10-06  Paolo Carlini  <pcarlini@suse.de>

	* include/std/std_sstream.h (_M_sync): When the caller is
	setbuf, don't trust _M_string.capacity() to be the size of
	the buffer area, use _M_string.size() in this case.
	* testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
	* testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.

	* include/bits/sstream.tcc (overflow): Avoid calling string::assign
	unnecessarily when the current _M_string is empty.

2004-10-06  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
	Avoid iterator postincrement.
	(__rotate): Likewise.

	* include/bits/stl_algo.h: Minor formatting tweaks.

2004-10-06  Christopher Jefferson <caj@cs.york.ac.uk>

	* include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
	Avoid iterator postincrement; fix swapping middle element with
	itself on odd-length inputs.

From-SVN: r88593
2004-10-06 09:06:59 +00:00
Jan Hubicka
490e962939 * cse.c (cse_main): Kill push/pop context.
From-SVN: r88592
2004-10-06 07:30:12 +00:00