Commit Graph

72208 Commits

Author SHA1 Message Date
Nathan Sidwell
9e28024aeb * vec.h (VEC_block_remove): New.
From-SVN: r107817
2005-12-01 12:20:20 +00:00
Gabriel Dos Reis
5d352b2d0a re PR c++/13384 (error: non-lvalue in assignment - message a little misleading for C++)
PR c/13384
        * c-common.c (lvalue_error): Fix wording.
testsuite/
        PR c/13384
        * gcc.dg/pr17730-1.c: Adjust.
        * gcc.dg/lvalue1.c (main): Likewise.
        * gcc.dg/lvalue-2.c: Likewise.
        * g++.dg/pr7503-3.C

From-SVN: r107816
2005-12-01 12:00:17 +00:00
Richard Guenther
4288927194 tree-ssa-forwprop.c (forward_propagate_addr_expr): Fix thinko in last patch.
2005-12-01  Richard Guenther  <rguenther@suse.de>

        * tree-ssa-forwprop.c (forward_propagate_addr_expr): Fix
        thinko in last patch.

From-SVN: r107814
2005-12-01 09:44:26 +00:00
Geoffrey Keating
de384a00ef t-slibgcc-darwin (SHLIB_LINK): Use -single_module rather than -flat_namespace.
* config/t-slibgcc-darwin (SHLIB_LINK): Use -single_module rather
	than -flat_namespace.

From-SVN: r107813
2005-12-01 08:42:31 +00:00
Geoffrey Keating
8ab7c30a50 pr18096-1.c: Be more liberal about possible error messages.
* gcc.target/powerpc/pr18096-1.c: Be more liberal about possible
	error messages.

From-SVN: r107812
2005-12-01 08:35:48 +00:00
Geoffrey Keating
2b6f297e79 libjava.exp (test_libjava_from_javac): Support xfail-byte-exec.
* testsuite/lib/libjava.exp (test_libjava_from_javac): Support
	xfail-byte-exec.
	* testsuite/libjava.lang/Array_3.xfail: New file.

From-SVN: r107811
2005-12-01 08:25:36 +00:00
Joseph Myers
31c61ecd10 be.po, [...]: Update.
* be.po, ca.po, da.po, de.po, el.po, es.po, fr.po, ja.po, nl.po,
	rw.po, sv.po, tr.po, vi.po: Update.

From-SVN: r107808
2005-12-01 08:21:28 +00:00
Joseph Myers
ce9d76ed18 be.po, [...]: Update.
* be.po, ca.po, da.po, de.po, el.po, es.po, fr.po, ja.po, nl.po,
	rw.po, sv.po, tr.po, zh_CN.po: Update.

From-SVN: r107807
2005-12-01 08:14:28 +00:00
Paul Thomas
a41baa6442 re PR fortran/24789 ([gfortran] ICE when assigning to array of strings)
2005-12-01  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/24789
	* trans-decl.c (gfc_get_symbol_decl):  Move the expression for
	unit size of automatic character length, dummy pointer array
	elements down a few lines from the version that fixed PR15809.

2005-12-01  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/24789
	*  gfortran.dg/auto_char_dummy_array_2.f90: New test.

From-SVN: r107805
2005-12-01 06:58:04 +00:00
Uros Bizjak
ada8006795 re PR target/24475 (gcc.dg/tls/pr24428.c execution test and gcc.dg/tls/pr24428-2.c execution test fail on IA32)
PR target/24475
	* lib/target-supports.exp (check_effective_target_tls): New.
	(check_effective_target_tls_runtime): New.
	* gcc.dg/tls/tls.exp, g++.dg/tls/tls.exp: Remove check
	for TLS support.
	* gcc.dg/tls/opt-1.c, gcc.dg/tls/opt-2.c, gcc.dg/tls/opt-3.c,
	gcc.dg/tls/opt-4.c, gcc.dg/tls/opt-5.c, gcc.dg/tls/opt-6.c,
	gcc.dg/tls/opt-7.c, gcc.dg/tls/opt-8.c, gcc.dg/tls/opt-9.c,
	gcc.dg/tls/opt-10.c, gcc.dg/tls/diag-1.c, gcc.dg/tls/diag-2.c,
	gcc.dg/tls/diag-3.c, gcc.dg/tls/diag-4.c, gcc.dg/tls/diag-5.c,
	gcc.dg/tls/alias-1.c, gcc.dg/tls/alpha-1.c, gcc.dg/tls/asm-1.c,
	gcc.dg/tls/debug-1.c, gcc.dg/tls/init-1.c, gcc.dg/tls/nonpic-1.c,
	gcc.dg/tls/pic-1.c, gcc.dg/tls/section-1.c, gcc.dg/tls/struct-1.c,
	gcc.dg/tls/trivial.c, g++.dg/tls/diag-1.C, g++.dg/tls/diag-2.C,
	g++.dg/tls/diag-3.C, g++.dg/tls/diag-4.C, g++.dg/tls/init-1.C,
	g++.dg/tls/init-2.C, g++.dg/tls/trivial.C: Require
	effective-target TLS.
	* gcc.dg/tls/pr24428-2.c, gcc.dg/tls/pr24428.c, gcc.dg/tls/opt-11.c, 
	g++.dg/tls/static-1a.cc, g++.dg/tls/static-1.C: Require
	effective-target TLS runtime.

From-SVN: r107804
2005-12-01 07:52:11 +01:00
Uros Bizjak
d1a478d444 gcov.exp (clean-gcov): Also remove $base.h.gcov files.
* lib/gcov.exp (clean-gcov): Also remove $base.h.gcov files.

From-SVN: r107803
2005-12-01 07:41:33 +01:00
Ben Elliston
108ada4469 Makefile.in (libdecnumber_a_SOURCES): Drop decLibrary.c.
* Makefile.in (libdecnumber_a_SOURCES): Drop decLibrary.c.
	* decUtility.c (__dec_byte_swap): Move from here ..
	* decLibrary.c: .. to here.

From-SVN: r107802
2005-12-01 16:20:39 +11:00
Ben Elliston
8d11ad8ef4 mklibgcc.in: Parameterise the script to build soft float functions by iterating over each...
* mklibgcc.in: Parameterise the script to build soft float
	functions by iterating over each type, rather than cloning the
	code for each type.

From-SVN: r107800
2005-12-01 14:39:45 +11:00
Kaveh R. Ghazi
625a34391b re PR middle-end/25158 (FAIL: gcc.c-torture/execute/builtins/fprintf.c compilation)
PR middle-end/25158
	* builtins.c (fold_builtin_fputs): Defer check for missing
	replacement functions.

From-SVN: r107762
2005-12-01 02:31:49 +00:00
Kean Johnston
57fdce262e i386.c: Check the value of SUPPORTS_ONE_ONLY...
* config/i386/i386.c: Check the value of SUPPORTS_ONE_ONLY, not
	simply its presense in case targets #define SUPPORTS_ONE_ONLY 0.

From-SVN: r107759
2005-12-01 01:44:45 +00:00
Hans-Peter Nilsson
8a7b5cc43d 20041106-1.c, [...]: Match "attribute ignored" warnings when "packing" is the same as the ABI layout.
* gcc.dg/20041106-1.c, gcc.dg/20030321-1.c, gcc.dg/pr17112-1.c,
	gcc.dg/pr17112-1.c, g++.dg/other/packed1.C,
	g++.dg/other/crash-4.C, g++.dg/ext/packed8.C: Match "attribute
	ignored" warnings when "packing" is the same as the ABI layout.

From-SVN: r107758
2005-12-01 01:24:16 +00:00
GCC Administrator
2331bffb94 Daily bump.
From-SVN: r107753
2005-12-01 00:17:22 +00:00
Alan Modra
9cc20fa152 stacktrace.cc (UnwindTraceFn): Use UNWRAP_FUNCTION_DESCRIPTOR to compare _Jv_InterpMethod::run against current...
* stacktrace.cc (UnwindTraceFn): Use UNWRAP_FUNCTION_DESCRIPTOR
	to compare _Jv_InterpMethod::run against current func.

From-SVN: r107746
2005-12-01 10:28:16 +10:30
Bernhard Fischer
16ab8e74da re PR fortran/21302 (Max line length in free form mode)
2005-11-30  Bernhard Fischer <rep.nop@aon.at>
	PR fortran/21302
	* lang.opt: New options -ffree-line-length- and -ffree-line-length-none.
	* gfortran.h: Add free_line_length and add description of
	free_line_length and fixed_line_length.
	* options.c (gfc_init_options, gfc_handle_option): Initialize
	and set free_line_length and fixed_line_length.
	* scanner.c (load_line): Set free_line_length to 132 and
	fixed_line_length to 72 or user requested values.
	* scanner.c: Typo in comment.
	* invoke.texi: Document -ffree-line-length- and
	-ffree-line-length-none

	gfortran.dg/line_length_1.f: New test:
	gfortran.dg/line_length_2.f90: Ditto.

From-SVN: r107745
2005-11-30 23:57:44 +00:00
Richard Guenther
4b860192e4 re PR tree-optimization/21655 (g++.dg/tree-ssa/pr14814.C scan-tree-dump-times &this 0 fails)
2005-11-30  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/21655
        * g++.dg/tree-ssa/pr14814.C: Remove XFAIL.

From-SVN: r107739
2005-11-30 21:07:10 +00:00
Jason Merrill
5b009a9670 re PR c++/21123 (ICE in cp_expr_size, at cp/cp-objcp-common.c:101)
PR c++/21123
        * cp-gimplify.c (cp_genericize_r): Don't dereference invisible reference
        parms in a thunk.

From-SVN: r107738
2005-11-30 15:58:27 -05:00
Richard Guenther
d090221b94 re PR tree-optimization/22501 ([meta-bug] tramp3d-v4 missed optimizations)
2005-11-30  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/22501
	* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
	function split out from ...
	(forward_propagate_addr_expr): ... here.  Use it to propagate
	ADDR_EXPRs to all uses.

From-SVN: r107737
2005-11-30 20:55:41 +00:00
Volker Reichelt
ea6a662747 tree.h (CASE_FLT_FN, [...]): New macros.
* tree.h (CASE_FLT_FN, CASE_INT_FN): New macros.
	* builtins.c (expand_builtin_mathfn): Use them.
	(expand_builtin_mathfn_2): Likewise.
	(expand_builtin_mathfn_3): Likewise.
	(expand_builtin_int_roundingfn): Likewise.
	(expand_builtin): Likewise.
	(integer_valued_real_p): Likewise.
	(fold_builtin_int_roundingfn): Likewise.
	(fold_builtin_bitop): Likewise.
	(fold_builtin_logarithm): Likewise.
	(fold_builtin_1): Likewise.
	* convert.c (convert_to_integer): Likewise.
	* fold-const.c (negate_mathfn_p): Likewise.
	(tree_expr_nonnegative_p): Likewise.

From-SVN: r107733
2005-11-30 19:59:50 +00:00
Dale Johannesen
f6173932d3 combine.c (find_split_point): Sign extend bitmask when changing bitfield assignment to IOR of AND.
2005-11-30  Dale Johannesen  <dalej@apple.com>
            Andrew Pinski  <pinskia@physics.uc.edu>

	* combine.c (find_split_point):  Sign extend bitmask
	when changing bitfield assignment to IOR of AND.

2005-11-30  Dale Johannesen  <dalej@apple.com>

	* gcc.c-torture/compile/pr24930.c:  New.


Co-Authored-By: Andrew Pinski <pinskia@physics.uc.edu>

From-SVN: r107731
2005-11-30 18:19:16 +00:00
Paul Thomas
99c7ab426c [multiple changes]
2005-11-30  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/15809
	* trans-decl.c (gfc_get_symbol_decl):  In the case of automatic
	character length, dummy pointer arrays, build an expression for
	unit size of the array elements, to be picked up and used in the
	descriptor dtype.
	* trans-io.c (gfc_trans_transfer):  Modify the detection of
	components of derived type arrays to use the gfc_expr references
	instead of the array descriptor dtype.  This allows the latter
	to contain expressions.

2005-11-30  Erik Edelmann  <erik.edelmann@iki.fi>

	PR fortran/15809
	* trans-array.c (gfc_trans_deferred_array):  Allow PARM_DECLs past
	in addition to VAR_DECLs.

2005-11-30  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/15809
	*  gfortran.dg/auto_char_dummy_array.f90: New test.

From-SVN: r107727
2005-11-30 17:26:40 +00:00
Nathan Sidwell
e541c31f4c ms1.md (decrement_and_branch_until_zero): Add early clobber to scratch reg.
* config/ms1/ms1.md (decrement_and_branch_until_zero): Add early
	clobber to scratch reg.
	(*decrement_and_branch_until_zero_no_clobber): Remove.
	(decrement_and_branch peephole): Add dummy scratch reg to pattern.
	(mulhish3): Use TARGET_MS1_16_003, TARGET_MS2.
	* config/ms1/ms1.opt (mmul): Remove.
	* config/ms1/ms1.h (ASM_SPEC): Cope with uppercase arch names.
	(LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Default to 16-002.

From-SVN: r107720
2005-11-30 16:29:43 +00:00
John David Anglin
ec96361103 predicates.md (symbolic_operand): Add comment.
* pa/predicates.md (symbolic_operand): Add comment.
	* pa/pa.md (reload_insi_r1, reload_indi_r1): New reload expanders.
	* pa/pa-protos.h (pa_secondary_reload_class): Delete.
	* pa/pa.c (TARGET_SECONDARY_RELOAD): Define.
	(pa_secondary_reload_class): Delete.
	(pa_secondary_reload): New function derived from SECONDARY_RELOAD_CLASS
	and pa_secondary_reload_class.  Reorder some checks.  Update inline
	copy of symbolic operand.
	* pa/pa.h (SECONDARY_RELOAD_CLASS): Delete.


Co-Authored-By: Bernd Schmidt <bernd.schmidt@analog.com>

From-SVN: r107719
2005-11-30 13:51:32 +00:00
Andrew Haley
b6a8dc3ad6 Makefile.am (resources): Use `cp -p'.
2005-11-30  Andrew Haley  <aph@redhat.com>

	* classpath/lib/Makefile.am (resources): Use `cp -p'.
	Remove `@' from start of line.

From-SVN: r107714
2005-11-30 12:50:52 +00:00
Nathan Sidwell
f937df35a4 loop-doloop.c (add_test): Only add jump notes if we did emit a jump.
* loop-doloop.c (add_test): Only add jump notes if we did emit a
	jump.

From-SVN: r107713
2005-11-30 11:12:36 +00:00
Jeff Law
224b4faf20 tree-ssa-uncprop.c (associate_equivalences_with_edges): Properly handle SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
* tree-ssa-uncprop.c (associate_equivalences_with_edges): Properly
        handle SSA_NAME_OCCURS_IN_ABNORMAL_PHI.

        * g++.old-deja/g++.law/pr25000.C: New test.

From-SVN: r107710
2005-11-30 01:53:22 -07:00
Eric Botcazou
a488b14d1b libgfortran.h (ILP32 typedefs): Define _UINT8_T, _UINT32_T and _UINT64_T on Solaris.
* libgfortran.h (ILP32 typedefs): Define _UINT8_T, _UINT32_T and
	_UINT64_T on Solaris.

From-SVN: r107708
2005-11-30 08:45:25 +00:00
Jakub Jelinek
b15b83fb3b ia64.c (ia64_expand_tls_address): Add ORIG_OP1 argument.
* config/ia64/ia64.c (ia64_expand_tls_address): Add ORIG_OP1 argument.
	Move ADDEND_{HI,LO} computation into TLS_MODEL_INITIAL_EXEC case.
	(ia64_expand_move): Adjust caller.

	* gcc.dg/tls/opt-11.c: New test.

From-SVN: r107704
2005-11-30 09:32:16 +01:00
Jakub Jelinek
dca1376799 ia64.c (ia64_expand_atomic_op): Only use fetchadd{4,8}.acq instruction if CODE is PLUS or MINUS...
* config/ia64/ia64.c (ia64_expand_atomic_op): Only use
	fetchadd{4,8}.acq instruction if CODE is PLUS or MINUS, for MINUS
	negate VAL.

From-SVN: r107703
2005-11-30 09:30:48 +01:00
Paolo Bonzini
1941069a58 simplify-rtx.c (simplify_plus_minus): Remove final parameter.
2005-11-30  Paolo Bonzini  <bonzini@gnu.org>

	* simplify-rtx.c (simplify_plus_minus): Remove final parameter.
	Always produce an output if we can remove NEGs or canonicalize
	(minus (minus ...)) expressions.  Provide a fast path for the
	two-operand case.
	(simplify_gen_binary): Do not call simplify_plus_minus.
	(simplify_binary_operation_1): Reassociate at the end of the
	function.

From-SVN: r107702
2005-11-30 08:20:23 +00:00
David S. Miller
77bfa77887 * tree-into-ssa.c (rewrite_into_ssa): Fix comment typo.
From-SVN: r107701
2005-11-29 23:06:54 -08:00
Evan Cheng
be7724ed74 xmmintrin.h (_MM_TRANSPOSE4_PS): Rewrite using high/low moves and unpack to speed up.
2005-11-29  Evan Cheng  <evan.cheng@apple.com>

        * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS): Rewrite using high/low
        moves and unpack to speed up.

From-SVN: r107700
2005-11-30 06:29:07 +00:00
David S. Miller
7e04157d14 sparc.c (gen_compare_reg): Kill 2nd and 3rd argument, they are always sparc_compare_op0 and sparc_compare_op1.
* config/sparc/sparc.c (gen_compare_reg): Kill 2nd and 3rd
	argument, they are always sparc_compare_op0 and sparc_compare_op1.
	(gen_v9_scc): Update callers.
	* config/sparc/sparc.md: Likewise.
	* config/sparc/sparc-protos.h: Update extern declaration.

From-SVN: r107696
2005-11-29 18:03:37 -08:00
Gerald Pfeifer
da817a2fea decContext.h: Properly guard inclusion of stdint.h
* decContext.h: Properly guard inclusion of stdint.h
	* decContext.c: Include config.h
	* decLibrary.c: Ditto.
	* decNumber.c: Ditto.
	* decRound.c: Ditto.
	* decUtility.c: Ditto.
	* decimal32.c: Ditto.
	* decimal64.c: Ditto.
	* decimal128.c: Ditto.

From-SVN: r107695
2005-11-30 01:53:08 +00:00
GCC Administrator
d2739ff50c Daily bump.
From-SVN: r107691
2005-11-30 00:17:18 +00:00
Andrew Pinski
8bce9e986f fold-const.c (negate_expr): Add break after the if.
2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>

        * fold-const.c (negate_expr) <case BIT_NOT_EXPR>: Add break after
        the if.

From-SVN: r107682
2005-11-29 14:18:04 -08:00
Tom Tromey
9b4ca617e8 compress.c (write_data): Mark 'ze' as unused.
* compress.c (write_data): Mark 'ze' as unused.
	* jartool.h (__attribute__): New define.
	* shift.c (shift_up): Added cast.
	(shift_down): Likewise.
	* jartool.c (help): Split string constant.

From-SVN: r107681
2005-11-29 21:46:02 +00:00
Tom Tromey
3141ed0fe0 re PR java/18278 (JNI functions cannot return a weak reference)
gcc/java:
	PR java/18278:
	* expr.c (build_jni_stub): Unwrap the return value.
	* java-tree.h (soft_unwrapjni_node): New define.
	(enum java_tree_index): Added JTI_SOFT_UNWRAPJNI_NODE.
	* decl.c (java_init_decl_processing): Initialize
	soft_unwrapjni_node.
libjava:
	PR java/18278:
	* testsuite/libjava.jni/pr18278.out: New file.
	* testsuite/libjava.jni/pr18278.c: New file.
	* testsuite/libjava.jni/pr18278.java: New file.
	* include/jvm.h (_Jv_UnwrapJNIweakReference): Declare.
	* jni.cc (_Jv_UnwrapJNIweakReference): New function.
	(call): Unwrap return value if needed.

From-SVN: r107676
2005-11-29 18:34:58 +00:00
Joseph Myers
4311c8e54c fp-int-convert-timode.c: XFAIL only on lp64 targets.
* gcc.dg/torture/fp-int-convert-timode.c: XFAIL only on lp64
	targets.
	* gcc.dg/torture/fp-int-convert-float128-timode.c: XFAIL also for
	LP64 ia64.

From-SVN: r107674
2005-11-29 17:52:43 +00:00
Andrew Pinski
189d4130c0 fold-const.c (negate_expr_p): Return true for BIT_NOT_EXPR.
2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>

        * fold-const.c (negate_expr_p): Return true for BIT_NOT_EXPR.
        (fold_unary) <case NEGATE_EXPR>: Move -(~a) transformation to ...
        (negate_expr): Here.

From-SVN: r107671
2005-11-29 07:26:21 -08:00
Ben Elliston
719fbd9932 * typeck.c (build_x_unary_op): Correct spelling in error message.
From-SVN: r107670
2005-11-30 00:10:24 +11:00
Ben Elliston
ead903e9ee i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Fix typo in comment.
* config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN):
	Fix typo in comment.

From-SVN: r107669
2005-11-30 00:02:50 +11:00
Ben Elliston
2f3bdde794 Makefile.tpl (clean-target-libgcc): Invoke clean-target-libgcc from the gcc build directory.
* Makefile.tpl (clean-target-libgcc): Invoke clean-target-libgcc
	from the gcc build directory.
	* Makefile.in: Regenerate.
gcc/
	* Makefile.in (clean-target): Depend on clean-target-libgcc.
	(clean-target-libgcc): Import rule from the top-level Makefile.in.

From-SVN: r107668
2005-11-29 23:31:26 +11:00
Jakub Jelinek
1e90e92f6d io.c (gfc_resolve_open): RESOLVE_TAG access field as well.
* io.c (gfc_resolve_open): RESOLVE_TAG access field as well.

	* gfortran.dg/open_access_1.f90: New test.

From-SVN: r107665
2005-11-29 13:00:01 +01:00
Ben Elliston
a4b6c45ad3 Start building libdecnumber at the top-level:
* Makefile.def: Add new libdecnumber host_module.  Make all-gcc
	depend on all-libdecnumber.
	* configure.in (host_libs): Include libdecnumber.
	* Makefile.in: Regenerate.
	* configure: Likewise.

From-SVN: r107659
2005-11-29 18:44:59 +11:00
Ben Elliston
fbdb1ec65a Some cleanups from dfp-branch:
* decUtility.c: Remove redundant #includes.
	* decUtility.h (__dec_byte_swap): Remove prototype.

From-SVN: r107658
2005-11-29 18:41:30 +11:00