Commit Graph

72238 Commits

Author SHA1 Message Date
Richard Guenther 0d45140575 tree-vrp.c (build_assert_expr_for, [...]): Use buildN instead of build.
2005-12-02  Richard Guenther  <rguenther@suse.de>

	* tree-vrp.c (build_assert_expr_for, process_assert_insertions_for,
	simplify_cond_using_ranges): Use buildN instead of build.
	* tree-tailcall.c (adjust_accumulator_values,
	adjust_return_value): Likewise.
	* tree-sra.c (generate_one_element_ref, generate_copy_inout,
	generate_element_copy, generate_element_zero,
	generate_one_element_init): Likewise.
	* tree-ssa-forwprop.c (forward_propagate_into_cond_1): Likewise.
	* lambda-code.c (gcc_loop_to_lambda_loop, lbv_to_gcc_expression,
	lle_to_gcc_expression, lambda_loopnest_to_gcc_loopnest,
	perfect_nestify): Likewise.

From-SVN: r107894
2005-12-02 14:40:40 +00:00
John David Anglin 69f8a2d68a pa.c (pa_secondary_reload): Revise initialization of variable regno.
* pa.c (pa_secondary_reload): Revise initialization of variable regno.

From-SVN: r107890
2005-12-02 12:56:47 +00:00
Volker Reichelt 631ba327ca re PR c++/24103 (ICE in simple_cst_equal)
PR c++/24103
	* g++.dg/other/default1.C: New test.

From-SVN: r107889
2005-12-02 12:48:06 +00:00
Gabriel Dos Reis 7767580e64 ggc.h (GGC_RESIZEVEC): New.
* ggc.h (GGC_RESIZEVEC): New.

cp/
        * parser.c (cp_lexer_new_main): Usr GGC_RESIZEVEC instead of 
        ggc_realloc.
        (cp_parser_template_argument_list): Use XRESIZEVEC instead of xrealloc.
        * class.c (pushclass): Likewise.

From-SVN: r107887
2005-12-02 12:37:15 +00:00
Volker Reichelt eeac616e62 * gcc.c (execute): Improve readability.
From-SVN: r107886
2005-12-02 12:26:25 +00:00
Richard Guenther 4e20d9c461 tree-cfg.c (mark_used_vars): New function.
2005-12-02  Richard Guenther  <rguenther@suse.de>

	* tree-cfg.c (mark_used_vars): New function.
	(dump_function_to_file): Dump only used VAR_DECLs.

	* gcc.dg/tree-ssa/20031106-6.c: Remove XFAIL.

From-SVN: r107885
2005-12-02 11:56:35 +00:00
Gabriel Dos Reis 0ac1b88953 decl2.c (get_priority_info): Use XNEW, not xmalloc.
* decl2.c (get_priority_info): Use XNEW, not xmalloc.
        * decl.c (push_switch): Likewise.
        * lex.c (handle_pragma_implementation): Likewise.
        * cp-objcp-common.c (decl_shadowed_for_var_insert): Use GGC_NEW,
        not ggc_alloc.
        (cxx_initialize_diagnostics): Use XNEW, not xmalloc.
        * class.c (init_class_processing): Use XNEWVEC, not xmalloc.
        * g++spec.c (lang_specific_driver): Likewise.
        * mangle.c (save_partially_mangled_name): Likewise.
        * parser.c (cp_lexer_new_main): Use GGC_NEWVEC, not ggc_alloc.
        (cp_parser_template_argument_list): Use XNEWVEC, nto xmalloc.
        (cp_parser_sizeof_operand): Likewise.
        * repo.c (open_repo_file, open_repo_file): Likewise.

From-SVN: r107884
2005-12-02 11:21:28 +00:00
Gabriel Dos Reis 20186b381a lvalue-2.c (f0): Put "error: " marker back.
* gcc.dg/lvalue-2.c (f0): Put "error: " marker back.

From-SVN: r107883
2005-12-02 09:54:01 +00:00
Richard Guenther da6d971d5f convert.c (convert_to_integer): Fix compare for nonpositive constant to use tree_int_cst_sgn <= 0.
2005-12-02  Richard Guenther  <rguenther@suse.de>

        * convert.c (convert_to_integer): Fix compare for nonpositive
        constant to use tree_int_cst_sgn <= 0.

From-SVN: r107882
2005-12-02 09:46:17 +00:00
Richard Guenther e7a6c1272c convert.c (convert_to_integer): Use fold_convert instead of fold_build1 (NOP_EXPR, ...).
2005-12-02  Richard Guenther  <rguenther@suse.de>

	* convert.c (convert_to_integer): Use fold_convert instead
	of fold_build1 (NOP_EXPR, ...).  Use tree_int_cst_sgn < 0
	instead of comparing against 0.  Use build_int_cst instead
	of converting integer_zero_node.

From-SVN: r107881
2005-12-02 09:38:57 +00:00
Richard Guenther de3d4fc2da tree-pretty-print.c (op_symbol): Handle LROTATE_EXPR and RROTATE_EXPR.
2005-12-02  Richard Guenther  <rguenther@suse.de>

	* tree-pretty-print.c (op_symbol): Handle LROTATE_EXPR
	and RROTATE_EXPR.

From-SVN: r107880
2005-12-02 09:37:03 +00:00
Alan Modra c378afbb0d re PR target/21017 (ppc 64bit target not using rlwinm)
PR target/21017
	* gcc.target/powerpc/rotate.c: New.

From-SVN: r107878
2005-12-02 19:23:56 +10:30
Jerry DeLisle d82ef8754a pr24489.f90: Delete, replaced by read_eor.f90.
2005-12-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	* gfortran.dg/pr24489.f90: Delete, replaced by read_eor.f90.
	* gfortran.dg/pr24584.f90: Delete, replaced by namelist_empty.f90.

From-SVN: r107874
2005-12-02 06:33:02 +00:00
Alan Modra c54293c6e8 re PR target/21017 (ppc 64bit target not using rlwinm)
PR target/21017
	* combine.c (simplify_logical <IOR>): Simplify more patterns to
	rotates.

From-SVN: r107873
2005-12-02 16:55:13 +10:30
Alan Modra 815eb8f0ca re PR middle-end/25176 ([4.0 only] FAIL: Array_3 -O3 execution - bytecode->native test)
PR middle-end/25176
	* function.c (expand_function_end): Emit blockage for unwinder
	after return label.

From-SVN: r107871
2005-12-02 16:45:54 +10:30
Roger Sayle 87f2a9f57b tree.h (TREE_OVERFLOW): Make this flag/predicate specific to constant nodes, i.e.
* tree.h (TREE_OVERFLOW): Make this flag/predicate specific to
	constant nodes, i.e. INTEGER_CST, REAL_CST, etc...
	* tree-vrp.c (compare_values): Only check TREE_OVERFLOW for
	integer constant comparisons.

ada/
	* utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
	nodes.

From-SVN: r107870
2005-12-02 04:40:05 +00:00
Ben Elliston cf84391c40 Missed in last check-in.
From-SVN: r107865
2005-12-02 14:02:19 +11:00
Ben Elliston 3e70ce6bad Missed in checkin. :-(
From-SVN: r107864
2005-12-02 14:00:10 +11:00
Jon Grimm 909e225622 dfp.h, dfp.c: New files.
2005-12-02  Jon Grimm  <jgrimm2@us.ibm.com>
	    Janis Johnson  <janis187@us.ibm.com>
	    David Edelsohn  <dje@watson.ibm.com>
	    Ben Elliston  <bje@au.ibm.com>

	* dfp.h, dfp.c: New files.
	* Makefile.in (DECNUM, DECNUMINC, LIBDECNUMBER): New variables.
	(DECNUM_H): Likewise.
	(LIBDEPS, LIBS, BACKEND): Append $(LIBDECNUMBER).
	(INCLUDES): Append $(DECNUMINC).
	(OBJS-common): Add dfp.o.
	(dfp.o): New rule.
	* real.h (EXP_BITS): Pinch one bit to ..
	(struct real_value): Add decimal field.
	(real_format): Change table size, update documentation.
	(REAL_MODE_FORMAT): Update for to handle float, decimal float.
	(real_from_string3): Declare.
	(decimal_single_format): Declare.
	(decimal_double_format): Declare.
	(decimal_quad_format): Declare.
	(REAL_VALUE_TO_TARGET_DECIMAL32): New.
	(REAL_VALUE_TO_TARGET_DECIMAL64): New.
	(REAL_VALUE_TO_TARGET_DECIMAL128): New.
	* real.c: Include dfp.h.
	(normalize): Early return for decimal floats.
	(do_add): Zero decimal field.
	(do_compare): Call do_decimal_compare for decimal floats.
	(do_fix_trunc): Likewise, call decimal_do_fix_trunc.
	(real_arithmetic): Call decimal_real_arithmetic for decimal
	floating point operands.
	(real_identical): If a and b are of differing radix, return false.
	(real_to_integer): Call decimal_real_to_integer if the value is a
	decimal float.
	(real_to_integer2): Likewise, call decimal_real_to_integer2.
	(real_to_decimal): Likewise, call decimal_real_to_decimal.
	(real_to_hexadecimal): Place "N/A" in the return string for
	decimal float.
	(real_from_string3): New variant, given a mode.
	(real_maxval): Use decimal_real_maxval for decimal floats.
	(round_for_format): Use decimal_round_for_format for decimals.
	(real_convert): Use decimal_real_convert where appropriate.
	(significand_size): Handle base 10.
	(encode_decimal_single, decode_decimal_single,
	encode_decimal_double, decode_decimal_double, encode_decimal_quad,
	decode_decimal_quad): New functions.
	(decimal_single_format): New.
	(decimal_double_format): New.
	(decimal_quad_format): New.
	* machmode.def: Add SD, DD and TD decimal floating point modes.
	* machmode.h (FLOAT_MODE_P, SCALAR_FLOAT_MODE_P, MODES_WIDEN_P):
	Include MODE_DECIMAL_FLOAT.
	(DECIMAL_FLOAT_MODE_P): New.
	* mode-classes.def (MODE_DECIMAL_FLOAT): New mode class.
	* genmodes.c (struct mode_data): Add counter field.
	(struct mode_data): Update comment for format.
	(blank_mode): Initialise counter field.
	(new_mode): Increment counter field for each mode defined.
	(complete_mode): Handle MODE_DECIMAL_FLOAT, update check for mode
	using a format.
	(make_complex_modes): Handle modes containing `D'.
	(DECIMAL_FLOAT_MODE, FRACTIONAL_DECIMAL_FLOAT_MODE): New.
	(make_decimal_float_mode): New.
	(reset_float_format): Handle MODE_DECIMAL_FLOAT.
	(cmp_modes): Compare counter field if other characteristics
	similar.
	(emit_real_format_for_mode): Support formats for decimal floats.
	* doc/rtl.texi (Machine Modes): Document SD, DD and TDmodes.
	Document MODE_DECIMAL_FLOAT.

Co-Authored-By: Ben Elliston <bje@au.ibm.com>
Co-Authored-By: David Edelsohn <dje@watson.ibm.com>
Co-Authored-By: Janis Johnson <janis187@us.ibm.com>

From-SVN: r107861
2005-12-02 13:30:42 +11:00
Gabriel Dos Reis 8da15291d0 parser.c (cp_parser_make_typename_type): Call make_typename_type with tf_none instead of magic value 0.
* parser.c (cp_parser_make_typename_type): Call make_typename_type
        with tf_none instead of magic value 0.
        (cp_parser_explicit_instantiation): Call do_type_instantiation
        with tf_error instead of magic value 1.
        (cp_parser_elaborated_type_specifier): Call make_typename_type
        with tf_error instead of magic value 1.
        (cp_parser_class_name): Likewise.
        (cp_parser_lookup_name): Likewise.

From-SVN: r107855
2005-12-02 01:31:42 +00:00
Erik Schnetter e45b3c7546 decl.c (gfc_match_old_kind_spec): Improve handling of old style COMPLEX*N
2005-12-01  Erik Schnetter  <schnetter@aei.mpg.de>

	* decl.c (gfc_match_old_kind_spec):  Improve handling of old style
	COMPLEX*N

From-SVN: r107853
2005-12-02 01:25:58 +00:00
GCC Administrator 86e1c63bec Daily bump.
From-SVN: r107847
2005-12-02 00:17:36 +00:00
David Billinghurst 8e28929764 re PR testsuite/25193 (libstdc++ testsuite fails on cygwin)
2005-12-02  David Billinghurst (David.Billinghurst@riotinto.com)

	PR testsuite/25193
	* testsuite/lib/libstdc++.exp (libstdc++-dg-test): Catch
	error if file cannot be deleted.

From-SVN: r107841
2005-12-01 23:57:28 +00:00
Alan Modra 36686ad6c0 simplify-rtx.c (simplify_plus_minus): Do simplify constants.
* simplify-rtx.c (simplify_plus_minus): Do simplify constants.
	Delete dead code.

From-SVN: r107840
2005-12-02 10:18:13 +10:30
Gabriel Dos Reis 728cdd0872 parser.c (cp_parser_declaration): Set token2.type to CPP_EOF, not RID_MAX.
* parser.c (cp_parser_declaration): Set token2.type to CPP_EOF,
        not RID_MAX.

From-SVN: r107838
2005-12-01 23:10:27 +00:00
Richard Henderson 6cc5062afa * optabs.c (expand_vec_cond_expr): Use EXPAND_NORMAL.
From-SVN: r107834
2005-12-01 14:49:31 -08:00
Kaveh R. Ghazi b53b5aa509 builtins.def (BUILT_IN_PUTC, [...]): New.
* builtins.def (BUILT_IN_PUTC, BUILT_IN_PUTC_UNLOCKED): New.

	* config/pa/pa.c (pa_init_builtins): If we detect
	DONT_HAVE_FPUTC_UNLOCKED, set builtin fputc_unlocked to
	putc_unlocked.

From-SVN: r107833
2005-12-01 22:46:14 +00:00
Anthony Green f860c253df re PR bootstrap/25207 (bootstrap fails on libjava if alsa headers present but no -lasound.)
2005-12-01  Anthony Green  <green@redhat.com>

	PR bootstrap/25207
	* configure.ac: Make sure we have an alsa library in addition to
	the headers.  This extra test is required for systems with
	multilibs.
	* configure: Rebuilt.

From-SVN: r107828
2005-12-01 19:33:42 +00:00
Richard Guenther b71b808628 fold-const.c (fold_binary): Use fold_build2, not fold (build (...)).
2005-12-01  Richard Guenther  <rguenther@suse.de>

        * fold-const.c (fold_binary): Use fold_build2, not
        fold (build (...)).

From-SVN: r107822
2005-12-01 16:32:28 +00:00
Nathan Sidwell 96fd03a4d5 * config/ms1/ms1.c (ms1_reorg_hazard): Don't count noop moves.
From-SVN: r107821
2005-12-01 15:03:23 +00:00
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