Commit Graph

68782 Commits

Author SHA1 Message Date
GCC Administrator cc2f3fa620 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r100412.2
2005-06-01 00:16:31 +00:00
Zdenek Dvorak 60407f7a65 re PR tree-optimization/21817 (ICE in for_each_index, at tree-ssa-loop-im.c:200)
PR tree-optimization/21817
	* tree-ssa-loop-im.c (for_each_index): Handle VECTOR_CST.

From-SVN: r100410
2005-05-31 23:07:25 +00:00
Pat Haugen ec22e73ba8 loop.c (loop_invariant_p, [...]): Revert last change.
2005-05-31  Pat Haugen  <pthaugen@us.ibm.com>

        * loop.c (loop_invariant_p, valid_initial_value_p): Revert last
        change.

From-SVN: r100408
2005-05-31 17:29:05 -04:00
Paolo Carlini 87d33b419b PR libstdc++/20534 (contd)
2005-05-31  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/20534 (contd)
	* include/debug/macros.h: Add _GLIBCXX_DEBUG_ABORT, using
	__gnu_debug::__fancy_abort.
	* src/debug.cc: Define the latter.
	* include/debug/debug.h: Use _GLIBCXX_DEBUG_ABORT instead of
	assert.
	* config/linker-map.gnu (__gnu_debug::__fancy_abort): Add.

From-SVN: r100405
2005-05-31 18:31:55 +00:00
Nathan Sidwell 8bd46447b3 re PR c++/21165 (bogus error on a user-defined conversion in a template)
cp:
PR c++/21165
	* init.c (integral_constant_value): Check the type of the
	initializer, not the decl.
testsuite:
	PR c++/21165
	* g++.dg/template/init5.C: New.

From-SVN: r100402
2005-05-31 17:43:26 +00:00
Paul Thomas fba53b18ab char_initialiser_actual.f90: Test character initialisers as actual arguments.
2005-05-30  Paul Thomas  <pault@gcc.gnu.org>

	* gfortran.dg/char_initialiser_actual.f90:
	Test character initialisers as actual arguments.
	* gfortran.dg/char_pointer_comp_assign.f90:
	Test character pointer structure component assignments.
	* gfortran.dg/char_array_structure_constructor.f90:
	Test character components in structure constructors.

From-SVN: r100401
2005-05-31 17:39:03 +00:00
Paul Thomas 2b052ce2f5 re PR fortran/18109 (ICE with explicit array of strings)
2005-05-30  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/18109
	PR fortran/18283
	PR fortran/19107
	* fortran/trans-array.c (gfc_conv_expr_descriptor): Obtain the
	string length from the expression typespec character length value
	and set temp_ss->stringlength and backend_decl. Obtain the
	tree expression from gfc_conv_expr rather than gfc_conv_expr_val.
	Dereference the expression to obtain the character.
	* fortran/trans-expr.c (gfc_conv_component_ref): Remove the
	dereference of scalar character pointer structure components.
	* fortran/trans-expr.c (gfc_trans_subarray_assign): Obtain the
	string length for the structure component from the component
	expression.

From-SVN: r100400
2005-05-31 17:19:11 +00:00
Andrew Pinski d763bb1005 [multiple changes]
2005-05-31  Andrew pinski  <pinskia@physics.uc.edu>

        PR middle-end/20931
        * g++.dg/opt/pr20931.C: New test.

2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/20931
        PR middle-end/20946
        * fold-const.c (fold_checksum_tree): Copy types also if
        TYPE_CONTAINS_PLACEHOLDER_INTERNAL is set.
        Don't call fold_checksum_tree for TREE_LIST's TREE_CHAIN
        first.
        Tail recurse TREE_LIST's TREE_CHAIN.

From-SVN: r100397
2005-05-31 09:40:09 -07:00
Andrew Pinski fb03baf210 re PR tree-optimization/21732 (-ftree-dump-all-details hangs during *.c.t24.copyprop or *.c.t38.copyprop2)
2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/21732
        * tree-ssa-copy.c (dump_copy_of): Create a bitmap and don't visit a
        SSA_NAME twice and cause the loop to become finite.  Remove the test
        for val.

From-SVN: r100396
2005-05-31 09:29:16 -07:00
Andreas Jaeger 8c7a0ea6ed re PR testsuite/20772 (x86 tests should run on both i?86 and x86_64)
PR testsuite/20772
	* g++.dg/abi/dtor1.C, g++.dg/abi/empty10.C, g++.dg/abi/layout3.C,
	g++.dg/eh/simd-2.C, g++.dg/opt/cse2.C,
	g++.old-deja/g++.ext/asmspec1.C,
	g++.old-deja/g++.other/regstack.C,
	gcc.dg/20000614-1.c, gcc.dg/20000807-1.c, gcc.dg/20000904-1.c,
	gcc.dg/20001127-1.c, gcc.dg/20010202-1.c, gcc.dg/20010520-1.c,
	gcc.dg/20011009-1.c, gcc.dg/20011029-2.c, gcc.dg/20020224-1.c,
	gcc.dg/20020531-1.c, gcc.dg/20020616-1.c, gcc.dg/980226-1.c,
	gcc.dg/980414-1.c, gcc.dg/980520-1.c, gcc.dg/980709-1.c,
	gcc.dg/990117-1.c, gcc.dg/990130-1.c, gcc.dg/990213-2.c,
	gcc.dg/990214-1.c, gcc.dg/991129-1.c, gcc.dg/991209-1.c,
	gcc.dg/991214-1.c, gcc.dg/asm-1.c, gcc.dg/attr-returns_twice-1.c,
	gcc.dg/clobbers.c, gcc.dg/i386-387-7.c, gcc.dg/i386-387-8.c,
	gcc.dg/i386-3dnowA-1.c, gcc.dg/i386-3dnowA-2.c, gcc.dg/i386-asm-1.c
	gcc.dg/i386-asm-2.c, gcc.dg/i386-asm-3.c, gcc.dg/i386-bitfield3.c
	gcc.dg/i386-call-1.c, gcc.dg/i386-memset-1.c,
	gcc.dg/i386-signbit-3.c, gcc.dg/i386-ssefn-1.c,
	gcc.dg/i386-ssefn-2.c, gcc.dg/i386-ssefn-3.c, gcc.dg/i386-ssefn-4.c
	gcc.dg/i386-volatile-1.c, gcc.dg/i386-xorps.c, gcc.dg/pr12092-1.c
	gcc.dg/pr14289-1.c, gcc.dg/pr19236-1.c, gcc.dg/pr20204.c,
	gcc.dg/pr9771-1.c, gcc.dg/register-var-1.c,
	gcc.dg/sibcall-5.c, gcc.dg/charset/asm3.c,
	gcc.dg/cpp/trad/num-sign.c: Run tests also on x86_64.

From-SVN: r100394
2005-05-31 18:28:30 +02:00
Andrew Pinski 9c69196161 tree-cfg.c (verify_expr): Add checking for COND_EXPR's conditional expression.
2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>

        * tree-cfg.c (verify_expr): Add checking for COND_EXPR's conditional
        expression.

From-SVN: r100393
2005-05-31 09:21:08 -07:00
Richard Sandiford 8d932be3e1 tm.texi (TARGET_GET_PCH_VALIDITY, [...]): Tweak the documentation to make it more future-proof.
* doc/tm.texi (TARGET_GET_PCH_VALIDITY, TARGET_PCH_VALID_P): Tweak
	the documentation to make it more future-proof.
	(TARGET_CHECK_PCH_TARGET_FLAGS): Document this new hook.
	* target.h (gcc_target): Add check_pch_target_flags.
	* target-def.h (TARGET_CHECK_PCH_TARGET_FLAGS): New macro.
	(TARGET_INITIALIZER): Include it.
	* toplev.c (default_pch_valid_p): Use targetm.check_pch_target_flags.
	* config/sh/sh.h (sh_pch_valid_p): Delete.
	* config/sh/sh.c (TARGET_PCH_VALID_P, sh_pch_valid_p): Delete.
	(sh_check_pch_target_flags): New function.
	(TARGET_CHECK_PCH_TARGET_FLAGS): Override default.

From-SVN: r100392
2005-05-31 15:51:42 +00:00
Jeff Law 4ea73bfac3 fold-const.c (extract_array_ref): Handle more cases, do some useful canonicalization of the base.
* fold-const.c (extract_array_ref): Handle more cases,
        do some useful canonicalization of the base.
        (fold_binary): Explicitly deal with arrays of zero-sized
        structures during folding of &a[i] == &a[j].

        * gcc.dg/tree-ssa/foldaddr-1.c: New test.

From-SVN: r100391
2005-05-31 08:33:29 -06:00
Joseph Myers aa7f910204 * sv.po: Update.
From-SVN: r100389
2005-05-31 14:34:33 +01:00
Eric Botcazou dd48afcde0 install.texi (sparc-sun-solaris2*): Update note about Sun bug 4910101.
* doc/install.texi (sparc-sun-solaris2*): Update note
	about Sun bug 4910101.

From-SVN: r100385
2005-05-31 12:56:43 +00:00
Eric Botcazou 661f4f904a install.texi (sparc-sun-solaris2.7): Document bootstrap failure with Sun WorkShop 6 99/08/18 as.
* doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
	failure with Sun WorkShop 6 99/08/18 as.

From-SVN: r100383
2005-05-31 12:26:38 +00:00
GCC Administrator 994d1b20ab Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r100380.2
2005-05-31 00:16:47 +00:00
Pat Haugen 3c6fcc101a loop.c (loop_invariant_p, [...]): Use regs_invalidated_by_call instead of call_used_regs.
2005-05-30  Pat Haugen  <pthaugen@us.ibm.com>

        * loop.c (loop_invariant_p, valid_initial_value_p): Use
        regs_invalidated_by_call instead of call_used_regs.

From-SVN: r100378
2005-05-30 19:34:08 -04:00
Roger Sayle c0309c74ca gfortran.h (GFC_STD_LEGACY): New "standard" macro.
* gfortran.h (GFC_STD_LEGACY): New "standard" macro.  Reindent.
	* options.c (gfc_init_options): By default, allow legacy extensions
	but warn about them.
	(gfc_post_options): Make -pedantic warn about legacy extensions
	even with -std=legacy.
	(gfc_handle_option): Make -std=gnu follow the default behaviour
	of warning about legacy extensions, but allowing them. Make the
	new -std=legacy accept everything and warn about nothing.
	* lang.opt (std=legacy): New F95 command line option.
	* invoke.texi: Document both -std=f2003 and -std=legacy.
	* gfortran.texi: Explain the two types of extensions and document
	how they are affected by the various -std= command line options.

From-SVN: r100377
2005-05-30 22:16:08 +00:00
Paolo Carlini d5c405cc71 std_complex.h (log(const complex<_Tp>&)): When _GLIBCXX_USE_C99_COMPLEX, forward to __builtin_clog/clogf/clogl.
2005-05-30  Paolo Carlini  <pcarlini@suse.de>

	* include/std/std_complex.h (log(const complex<_Tp>&)): When
	_GLIBCXX_USE_C99_COMPLEX, forward to __builtin_clog/clogf/clogl.

From-SVN: r100376
2005-05-30 22:02:30 +00:00
Paolo Carlini 7f177cf707 re PR middle-end/21743 (Enable __builtin_clog)
2005-05-30  Paolo Carlini  <pcarlini@suse.de>

	PR middle-end/21743
	* gcc.dg/builtins-1.c: Activate disabled clog test.
	* gcc.dg/torture/builtin-attr-1.c: Likewise.

From-SVN: r100375
2005-05-30 20:16:59 +00:00
Paolo Carlini c3887ef239 re PR middle-end/21743 (Enable __builtin_clog)
2005-05-30  Paolo Carlini  <pcarlini@suse.de>

	PR middle-end/21743
	* builtins.def (BUILT_IN_CLOG, BUILT_IN_CLOGF, BUILT_IN_CLOGL):
	Enable.
	* doc/extend.texi: Add clog, clogf, clogl.

From-SVN: r100374
2005-05-30 20:15:46 +00:00
Paul Thomas e0a80504dc re PR fortran/16939 (Pointers not passed as subroutine arguments)
2005-05-29 Paul Thomas  <pault@gcc.gnu.org>

	* testsuite/Changelog: Make up for my omission
	to update for PR16939 etc patches.

From-SVN: r100373
2005-05-30 20:00:50 +00:00
Paul Thomas 5b1a826cc7 re PR fortran/16939 (Pointers not passed as subroutine arguments)
2005-05-29 Paul Thomas  <pault@gcc.gnu.org>

	* fortran/Changelog: Make up for my omission
	to update for PR16939 etc patches.

From-SVN: r100372
2005-05-30 19:52:02 +00:00
H.J. Lu be1b1c9bc6 re PR c/20303 ([4.0 only] Can't push more than 16 nested visibility)
2005-05-30  H.J. Lu  <hongjiu.lu@intel.com>

	PR middle-end/20303
	* c-pragma.c: Include "vec.h".
	(handle_pragma_visibility): Use VEC.

	* doc/invoke.texi: Remove the nested visibility push limit.

From-SVN: r100371
2005-05-30 11:48:59 -07:00
Roger Sayle 385e0e0837 re PR rtl-optimization/15422 (fmod loop exposes non-efficient code generation in reg-stack.c)
PR rtl-optimization/15422
	* reg-stack.c (starting_stack_p): New static global.
	(straighten_stack): Delete prototype. Change to update the stack
	before the current insn.
	(subst_stack_regs): Update call to straighten stack.
	(emit_swap_insn): Delete prototype.  For the first insn in a
	basic block, update stack_in instead of emitting a real swap.
	(change_stack): When changing the stack before the first insn
	in a basic block, update stack_in instead of emitting real code.
	(compensate_edges): Clear starting_stack_p during compensation.
	(convert_regs_1): Keep track of starting_stack_p whilst processing
	a basic block.

From-SVN: r100370
2005-05-30 18:02:08 +00:00
Mark Mitchell c13971f389 Fix typo
From-SVN: r100369
2005-05-30 16:29:22 +00:00
Mark Mitchell 9b4692cd01 Fix typo
From-SVN: r100366
2005-05-30 16:22:53 +00:00
Mark Mitchell d035c29621 re PR c++/21784 (Using vs builtin names)
PR c++/21784
	* name-lookup.c (do_nonmember_using_decl): Ignore builtin
	functions, even	when the used name is not a function.

	PR c++/21784
	* g++.dg/lookup/using14.C: New test.

From-SVN: r100365
2005-05-30 16:20:29 +00:00
Bryce McKinlay 2a2ea37674 re PR libgcj/21821 (MAXPATHLEN usage in libjava)
2005-05-30  Bryce McKinlay  <mckinlay@redhat.com>

	PR libgcj/21821
	* gnu/java/nio/channels/natFileChannelPosix.cc (open): Don't use
	MAXPATHLEN. Format exception message using a StringBuffer instead.

From-SVN: r100364
2005-05-30 17:02:38 +01:00
Kazu Hirata 2a8a8f8fc2 * operators.def, optimize.c: Update copyright.
From-SVN: r100363
2005-05-30 15:44:28 +00:00
Kazu Hirata 897f1a8b3c * trans-expr.c: Fix comment typos.
From-SVN: r100362
2005-05-30 15:33:32 +00:00
Kazu Hirata 404f435148 * tree-ssa-ccp.c (const_val): Make it static.
From-SVN: r100361
2005-05-30 15:23:54 +00:00
Kazu Hirata d83d092e97 c99-math-double-1.c, [...]: Remove trailing ^M.
* gcc.dg/c99-math-double-1.c, gcc.dg/c99-math-float-1.c,
	gcc.dg/c99-math-long-double-1.c, gcc.dg/c99-math.h: Remove
	trailing ^M.

From-SVN: r100360
2005-05-30 15:13:30 +00:00
Kazu Hirata ec09945c8e * trans-expr.c: Remove trailing ^M.
From-SVN: r100359
2005-05-30 15:03:46 +00:00
François-Xavier Coudert 771e816bd8 * libgfortran/ChangeLog: fix date for previous commit.
From-SVN: r100354
2005-05-30 07:41:23 +00:00
Francois-Xavier Coudert 12e59662e3 re PR libfortran/20179 (cannot mix C and Fortran I/O)
PR libfortran/20179
	* io/unix.c (fd_close): Add test so that we don't close()
	stdout and stderr.

From-SVN: r100353
2005-05-30 07:38:36 +00:00
Geoffrey Keating 66859ace31 re PR target/21761 (mainline gcc causing internal compiler error.)
2005-05-29  Geoffrey Keating  <geoffk@apple.com>

	PR target/21761
	* config/rs6000/rs6000.md: Remove stray TARGET_32BIT from
	pattern involving `:P'.

Index: testsuite/ChangeLog
2005-05-29  Geoffrey Keating  <geoffk@apple.com>

	PR target/21761
	* gcc.c-torture/compile/pr21761.c: New.

From-SVN: r100352
2005-05-30 06:10:05 +00:00
Geoffrey Keating 8eebd8f716 badalloc1.C: Make XFAIL only on darwin before darwin8.
* g++.old-deja/g++.eh/badalloc1.C: Make XFAIL only on darwin
	before darwin8.

From-SVN: r100351
2005-05-30 05:58:49 +00:00
Geoffrey Keating 47b528da25 * Makefile.in (install-cpp): Depend on installdirs.
From-SVN: r100350
2005-05-30 05:53:21 +00:00
Kazu Hirata a9b31c40b3 tree-outof-ssa.c (_elim_graph): Change the type of edge_list to VEC(int,heap)*.
* tree-outof-ssa.c (_elim_graph): Change the type of edge_list
	to VEC(int,heap)*.
	(new_elim_graph, clear_elim_graph, delete_elim_graph,
	elim_graph_add_edge, elim_graph_remove_succ_edge,
	FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED): Use VEC
	instead of VARRAY.

From-SVN: r100349
2005-05-30 02:12:42 +00:00
Michael Koch ad821074cb re PR libgcj/20273 (LinkedHashMap breaks linked list when access() is called)
2005-05-29  Michael Koch  <konqueror@gmx.de>

	PR libgcj/20273:
	* java/util/LinkedHashMap.java (access): Set 'root.pred'.

From-SVN: r100347
2005-05-30 02:01:15 +00:00
Kaveh R. Ghazi 7b9997f307 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
From-SVN: r100346
2005-05-30 01:54:08 +00:00
Janne Blomqvist c74a1edd8c Credit Janne for the issue patch.
From-SVN: r100343
2005-05-30 00:27:11 +00:00
Steven G. Kargl 36eb88745d re PR fortran/20846 (inquire(FILE=..., UNIT=...) not flagged as error)
PR fortran/20846
* gfortran.dg/inquire_8.f90: New test.

From-SVN: r100339
2005-05-30 00:19:43 +00:00
Janne Blomqvist 44998b6526 re PR fortran/20846 (inquire(FILE=..., UNIT=...) not flagged as error)
fortran/PR20846
 * io.c (gfc_match_inquire): Implement constraints on UNIT and FILE usage.

From-SVN: r100338
2005-05-30 00:17:03 +00:00
GCC Administrator 93ef85a292 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r100336.2
2005-05-30 00:16:15 +00:00
Kaveh R. Ghazi b6e0f0b0d7 * ansidecl.h: Add ATTRIBUTE_FPTR_PRINTF.
From-SVN: r100334
2005-05-30 00:04:09 +00:00
Kazu Hirata cc9795d4aa cgraphunit.c, [...]: Fix typos and follow spelling conventions in error/dump messages.
* cgraphunit.c, ipa-inline.c, loop-iv.c, modulo-sched.c,
	opts.c, postreload-gcse.c, tree-browser.def, tree-eh.c,
	tree-ssa-copyrename.c, tree-vect-analyze.c: Fix typos and
	follow spelling conventions in error/dump messages.

From-SVN: r100330
2005-05-29 19:38:34 +00:00
Roger Sayle cb275d32f7 ifcvt.c (noce_emit_move_insn): Construct a SET pattern directly if the RHS isn't suitable for calling...
* ifcvt.c (noce_emit_move_insn): Construct a SET pattern directly
	if the RHS isn't suitable for calling emit_move_insn.

Co-Authored-By: Richard Henderson <rth@redhat.com>

From-SVN: r100329
2005-05-29 18:56:42 +00:00