Commit Graph

85478 Commits

Author SHA1 Message Date
Ben Elliston 3ca06a6878 * config.sub, config.guess: Update from upstream sources.
From-SVN: r131753
2008-01-23 13:37:40 +11:00
Bernd Schmidt fa8d4a0f09 bfin-protos.h (WA_RETS, [...]): New macros.
* config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
	* config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
	(cputype_selected): New static variable.
	(bfin_handle_option): Set it if -mcpu is used.
	(override_option): Select default set of workarounds if no cpu type
	selected on the command line.
	(workaround_rts_anomaly): Only run if ENABLE_WA_RETS.

From-SVN: r131752
2008-01-23 02:17:00 +00:00
Jakub Jelinek 24030e4c48 re PR c++/33984 (bit-fields, references and overloads)
gcc/cp/ChangeLog:
PR c++/33984
* call.c (reference_binding): For bitfields use the declared bitfield
type.
(add_builtin_candidates): Likewise.
* class.c (layout_class_type): For bitfields copy over the
original type quals.
gcc/testsuite/ChangeLog:
PR c++/33984
* g++.dg/conversion/bitfield7.C: New test.
* g++.dg/cpp0x/decltype4.C: Fixed xfail.

From-SVN: r131751
2008-01-23 01:50:45 +00:00
GCC Administrator 3573f8da19 Daily bump.
From-SVN: r131749
2008-01-23 00:17:08 +00:00
Bernd Schmidt 64882649ca gcc/
From  Michael Frysinger  <michael.frysinger@analog.com>
	* config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
	BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.

	* config/bfin/elf.h (LIB_SPEC): Use proper linker script
	for bf547, bf523, bf524, and bf526.
	* config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
	bf526.
	* config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
	__ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
	__ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
	__ADSPBF547__ and __ADSPBF54x__ for bf547.
	* doc/invoke.texi (Blackfin Options): Document that
	-mcpu now accept bf547, bf523, bf524, and bf526.

gcc/testsuite/
	From Michael Frysinger  <michael.frysinger@analog.com>
	* gcc.target/bfin/mcpu-bf547.c: New test.
	* gcc.target/bfin/mcpu-bf523.c: New test.
	* gcc.target/bfin/mcpu-bf524.c: New test.
	* gcc.target/bfin/mcpu-bf526.c: New test.

From-SVN: r131746
2008-01-22 23:55:43 +00:00
Eric Botcazou df1a98aeca re PR rtl-optimization/34628 (problems with inlining on ARM)
PR rtl-optimization/34628
	* combine.c (try_combine): Stop and undo after the first combination
	if an autoincrement side-effect on the first insn has effectively
	been lost.

From-SVN: r131744
2008-01-22 22:27:47 +00:00
Tom Tromey ec46053bfa re PR c++/34859 (g++ -D__STDC_LIMIT_MACROS -D__STDC_LIMIT_MACROS causes error)
libcpp
	PR c++/34859:
	* macro.c (_cpp_create_definition): Handle __STDC_LIMIT_MACROS and
	__STDC_CONSTANT_MACROS.
gcc/testsuite
	PR c++/34859:
	* gcc.dg/cpp/pr34859.c: New file.

From-SVN: r131743
2008-01-22 21:43:49 +00:00
Paul Thomas c63173ddb0 re PR fortran/34875 (read into vector-valued section doesn't transfer any values)
2008-01-22  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34875
	* trans-io.c (gfc_trans_transfer): If the array reference in a
	read has a vector subscript, use gfc_conv_subref_array_arg to
	copy back the temporary.

2008-01-22  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34875
	* gfortran.dg/vector_subscript_3.f90: New test.

From-SVN: r131742
2008-01-22 21:22:13 +00:00
David Edelsohn 1a23970d0e re PR target/34529 (Wrong code with altivec stores and offsets)
PR target/34529
        * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
        Offset addresses are not valid for Altivec or paired float modes.

From-SVN: r131741
2008-01-22 16:12:05 -05:00
Jason Merrill 7655e009c8 re PR c++/34912 (ICE with friend in local class)
PR c++/34912
        * friend.c (do_friend): Check for prior declaration of a friend
        function of a local class.
        * name-lookup.c (lookup_name_innermost_nonclass_level):
        No longer static.
        * name-lookup.h: Declare it.

From-SVN: r131740
2008-01-22 14:50:37 -05:00
Tobias Burnus b5ca4fd2f6 re PR fortran/34848 (internal compiler error with optional argument of character type and array return type)
2008-01-22  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34848
       * interface.c (compare_actual_formal): Fix adding type
       to missing_arg_type for absent optional arguments.

2008-01-22  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34848
       * gfortran.dg/missing_optional_dummy_4.f90

From-SVN: r131738
2008-01-22 20:35:49 +01:00
Kaveh R. Ghazi 841d09e0d0 vect-ifcvt-9.c: Use inline.
* gcc.dg/vect/vect-ifcvt-9.c: Use inline.

From-SVN: r131735
2008-01-22 18:41:24 +00:00
Tobias Grosser 3c6313816a Changelog: Insert forgotten entry of commit 131705.
2008-01-22  Tobias Grosser  <grosser@fim.uni-passau.de>

	* Changelog: Insert forgotten entry of commit 131705.
	Commit 131705 was:	
	* MAINTAINERS (Write After Approval): Add myself.

From-SVN: r131734
2008-01-22 18:23:52 +00:00
Eric Botcazou 0bf3823958 decl.c (components_to_record): Do not reuse the empty union type if there is a representation clause on the record.
* decl.c (components_to_record): Do not reuse the empty union type
	if there is a representation clause on the record.
	* trans.c (addressable_p): Return true for INTEGER_CST.

From-SVN: r131733
2008-01-22 18:15:49 +00:00
Tom Tromey 255ef0345c re PR c++/34829 (placement new with primitive Java types rejected)
gcc/testsuite
	PR c++/34829:
	* g++.dg/ext/pr34829.C: New file.
gcc/cp
	PR c++/34829:
	* init.c (build_new_1): Only disallow Java aggregates.

From-SVN: r131732
2008-01-22 17:54:59 +00:00
Matthias Klose c316155b7f user.cfg.in: Set SHORT_NAMES to YES.
2008-01-21  Matthias Klose  <doko@ubuntu.com>

	* doc/doxygen/user.cfg.in: Set SHORT_NAMES to YES.

From-SVN: r131731
2008-01-22 17:34:56 +00:00
Jakub Jelinek 61c3a446a2 re PR c++/34607 (ICE with invalid for loop after #pragma omp for)
PR c++/34607
	* c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
	if DECL_INITIAL (decl) is error_mark_node.

	* semantics.c (finish_omp_for): Don't call c_finish_omp_for
	if decl or init is error_mark_node.

	* gcc.dg/gomp/pr34607.c: New test.
	* g++.dg/gomp/pr34607.C: New test.

From-SVN: r131730
2008-01-22 18:25:37 +01:00
Jakub Jelinek 270e749db4 re PR c++/34914 (Member pointer to vector rejected)
PR c++/34914
	* c-common.c (handle_vector_size_attribute): Only allow
	integral, scalar float and fixed point types.  Handle OFFSET_TYPE
	the same way as pointer, array etc. types.
	* tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.

	* g++.dg/ext/vector10.C: New test.

From-SVN: r131729
2008-01-22 18:03:12 +01:00
Tobias Burnus 2ddd287108 re PR fortran/34907 (valgrind error indication from testsuite trans-types.c: gfc_typenode_for_spec)
2008-01-22  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34907
       * parse.c (parse_spec): Change = into ==.

From-SVN: r131728
2008-01-22 17:43:20 +01:00
Jakub Jelinek e94384dbd6 re PR c++/34918 (Broken diagnostic: 'vector_cst' not supported by dump_expr)
PR c++/34918
	* error.c (dump_expr): Handle VECTOR_CST.

	* g++.dg/other/error23.C: New test.

From-SVN: r131727
2008-01-22 17:22:06 +01:00
Jakub Jelinek 42a89d2d54 re PR c++/34917 (ICE with const vector)
PR c++/34917
	* tree.c (build_type_attribute_qual_variant): Call
	build_qualified_type if attributes are equal, but quals are not.

	* g++.dg/ext/vector12.C: New test.

From-SVN: r131726
2008-01-22 17:18:14 +01:00
Jason Merrill 29b0d1fd13 re PR c++/33959 (ICE in instantiate_class_template, at cp/pt.c:6649)
PR c++/33959
        * pt.c (tsubst_aggr_type): Make sure our context is complete.

        PR c++/34573
        * pt.c (retrieve_local_specialization): Robustify.
        (tsubst_pack_expansion, tsubst_decl): Remove redundant checks.

        PR c++/34846
        * pt.c (tsubst): Only call retrieve_local_specialization if the
        original typedef was in a function template.

From-SVN: r131724
2008-01-22 09:48:05 -05:00
Manuel López-Ibáñez 573fe0a122 Missed testcases in earlier commit.
2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

	PR 32102
testsuite/
	* gcc.dg/Wstrict-overflow-21.c: New.
	* g++.dg/warn/Wstrict-aliasing-8.C: New.

From-SVN: r131722
2008-01-22 14:19:01 +00:00
Manuel López-Ibáñez 230a357242 Missed testcase in earlier commit.
2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

	PR middle-end/33092
testsuite/
	* gcc.dg/pr33092.c: New.

From-SVN: r131721
2008-01-22 14:17:00 +00:00
Manuel López-Ibáñez 027b740e14 re PR c/32102 (-Wall stomps on -Wstrict-overflow)
2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

        PR 32102
        * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
        * flags.h (warn_strict_aliasing): Remove.
        (warn_strict_overflow): Remove.
        * opts.c (warn_strict_aliasing): Remove.
        (warn_strict_overflow): Remove.
        * c-opts.c (c_common_handle_option): -Wall only sets
        -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
        (c_common_post_options): Give default values to -Wstrict-aliasing
        and -Wstrict-overflow if they are uninitialized.
        * common.opt (Wstrict-aliasing): Specify Var and Init.
        (Wstrict-overflow): Likewise.

testsuite/
        * gcc.dg/Wstrict-overflow-21.c: New.
        * g++.dg/warn/Wstrict-aliasing-8.C: New.

From-SVN: r131720
2008-01-22 14:11:44 +00:00
Kenneth Zadeck 963acd6f89 re PR tree-optimization/26854 (Inordinate compile times on large routines)
2008-01-22  Kenneth Zadeck <zadeck@naturalbridge.com>

	PR rtl-optimization/26854
	PR rtl-optimization/34400
	PR rtl-optimization/34884
	* ddg.c (create_ddg_dep_from_intra_loop_link): Use
	DF_RD->gen.
	* df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
	(df_rd_bb_info.expanded_lr_out): Deleted
	* loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
	* loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
	(df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
	df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
	Removed code to allocate, initialize or free expanded_lr_out.
	(df_rd_bb_local_compute_process_def): Restructured to make more
	understandable.
	(df_rd_confluence_n): Removed code to no apply invalidate_by_call
	sets if the sets are being trimmed.

From-SVN: r131719
2008-01-22 13:57:01 +00:00
H.J. Lu 115e6e5572 re PR bootstrap/32287 (gas version style changed causes warnings with configure)
2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>

	PR bootstrap/32287
	* configure.ac (ld_vers): Support GNU linker version xx.xx.*
	(as_vers): Likewise.
	* configure: Regenerated.

From-SVN: r131718
2008-01-22 05:55:11 -08:00
Manuel López-Ibáñez f9d023841c re PR tree-optimization/33092 (Using -O1 -fno-tree-salias results in ICE)
2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

	PR middle-end/33092
	* tree-pass.h (pass_build_alias): New pass.
	* tree-ssa-alias.c (gate_build_alias): New.
	(pass_build_alias): New.
	* passes.c (init_optimization_passes): Add pass_build_alias after
	pass_create_structure_vars.

testsuite/
	* gcc.dg/pr33092.c: New.

From-SVN: r131717
2008-01-22 13:27:52 +00:00
Andreas Krebbel 80f4129beb 20020926-1.c: Add -m31 option.
2008-01-22  Andreas Krebbel  <krebbel1@de.ibm.com>

	* gcc.target/s390/20020926-1.c: Add -m31 option.

From-SVN: r131716
2008-01-22 13:06:32 +00:00
Daniel Franke c29164019f re PR fortran/34915 (-std=f95 rejects len_trim() and index() in init expressions)
gcc/fortran:
2008-01-22  Daniel Franke  <franke.daniel@gmail.com>

	PR fortran/34915
	* expr.c (check_elemental): Fix check for valid data types.


gcc/testsuite:
	2008-01-22  Daniel Franke  <franke.daniel@gmail.com>

	PR fortran/34915
	* gfortran.dg/initialization_18.f90: New test.

From-SVN: r131715
2008-01-22 07:19:54 -05:00
Wolfgang Gellerich 0387c1429d s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER): Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>

	* config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
	Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
	(S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
	S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
	(S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
	S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
	(S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
	S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
	(S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
	(S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
	(S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
	(S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
	* config/s390/s390.md (FP_ALL): New mode iterator.
	(_d): New mode attribute.
	("*signbit<mode>2>"): Changed mode of first operand.
	("isinf<mode>2"): Changed mode of first operand.
	("*TDC_insn"): Adaptation for DFP modes.

From-SVN: r131714
2008-01-22 10:03:03 +00:00
Tobias Burnus fd1935d5e1 re PR fortran/34899 (Continuation lines with <tab><number> not recognized)
2008-01-22  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34899
        * scanner.c (load_line): Support <tab><digit> continuation
        * lines.
        * invoke.texi (-Wtabs): Document this.

2008-01-22  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34899
        * gfortran.dg/tab_continuation.f: New.

From-SVN: r131713
2008-01-22 08:33:46 +01:00
Paul Thomas 87a64f537b re PR fortran/34896 (libgomp.fortran/reduction5.f90)
2008-01-22  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34896
	* module.c (read_module): Set use_rename attribute.

2008-01-22  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34896
	* gfortran.dg/use_rename_2.f90: New test.

From-SVN: r131712
2008-01-22 06:01:54 +00:00
Ben Elliston 1d4f537493 * tree.c (check_qualified_type): Improve function description.
From-SVN: r131711
2008-01-22 16:57:39 +11:00
Jason Merrill 33b45227e0 re PR c++/34196 (uninitialized variable warning in dead exception region)
PR c++/34196
        * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
        * cp/decl.c (wrap_cleanups_r): Set TRY_CATCH_IS_CLEANUP.
        * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
        if it is set.

From-SVN: r131710
2008-01-21 23:53:33 -05:00
GCC Administrator 9444edce91 Daily bump.
From-SVN: r131708
2008-01-22 00:17:12 +00:00
Tobias Grosser 74e2b891d4 MAINTAINERS (Write After Approval): Add myself.
2008-01-22  Tobias Grosser  <grosser@fim.uni-passau.de>

        * MAINTAINERS (Write After Approval): Add myself.

From-SVN: r131705
2008-01-21 23:51:10 +00:00
Joseph Myers b37e938ede * sv.po: Update.
From-SVN: r131704
2008-01-21 22:30:12 +00:00
DJ Delorie 79e168dac0 tm.texi (HARD_REGNO_NREGS): Note that this macro must not return zero.
* doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
return zero.

From-SVN: r131703
2008-01-21 17:20:57 -05:00
Jonathan Wakely 013d0feab1 update_web_docs_libstdcxx_svn: "docs" dir moved to "doc".
2008-01-21  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* update_web_docs_libstdcxx_svn: "docs" dir moved to "doc".

From-SVN: r131702
2008-01-21 21:04:00 +00:00
Luciano Chavez e0c604077e re PR libgcj/34369 (java.net.URI.relativize(URI) method returns incorrect results)
2008-01-21  Luciano Chavez  <lnx1138@us.ibm.com>

	PR libgcj/34369:
	* java/net/URI.java (relativize): Check initial segment for
	trailing "/".

From-SVN: r131701
2008-01-21 20:08:38 +00:00
Tobias Burnus d68e117b15 re PR fortran/34901 (add kind information to mismatched-types error message)
2007-01-21  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34901
        * interface.c (compare_parameter): Improved error message
        for arguments of same type and mismatched kinds.

From-SVN: r131700
2008-01-21 19:33:10 +01:00
Richard Guenther bb0c55f6ee re PR target/34856 (ICE with some constant vectors)
2008-01-21  Richard Guenther  <rguenther@suse.de>

	PR middle-end/34856
	* tree-cfg.c (verify_expr): Allow all invariant expressions
	instead of just constant class ones as reference argument.
	* tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
	like any other constant.
	* tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.

	* gcc.c-torture/compile/pr34856.c: New testcase.

From-SVN: r131696
2008-01-21 16:21:45 +00:00
H.J. Lu 94c54fea1a regmove.c (fixup_match_1): Update call crossed frequencies.
2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>

	* regmove.c (fixup_match_1): Update call crossed frequencies.

From-SVN: r131695
2008-01-21 07:54:41 -08:00
Richard Guenther c54e3854ad re PR tree-optimization/34885 (ICE in copy_reference_ops_from_ref, at tree-ssa-sccvn.c:574)
2008-01-21  Richard Guenther  <rguenther@suse.de>

	PR c/34885
	* tree-inline.c (setup_one_parameter): Deal with mismatched
	types using a VIEW_CONVERT_EXPR.

	* gcc.c-torture/compile/pr34885.c: New testcase.

From-SVN: r131694
2008-01-21 14:25:46 +00:00
Eric Botcazou 41b72e5916 Update copyright year.
From-SVN: r131693
2008-01-21 12:05:13 +00:00
Eric Botcazou 461d6eb38e trans.c (gnat_to_gnu): Use POINTER_PLUS_EXPR in pointer arithmetics.
* trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
	in pointer arithmetics.
	* utils2.c (build_allocator): Likewise.

From-SVN: r131692
2008-01-21 11:58:53 +00:00
Joseph Myers 6cc199f4b6 * de.po: Update.
From-SVN: r131691
2008-01-21 10:33:38 +00:00
Richard Guenther 02dcf7badb re PR c++/34850 (Recursive BLOCK tree causes compilation to hang during diagnostics)
2008-01-21  Richard Guenther  <rguenther@suse.de>

	PR c++/34850
	cp/
	* error.c (cp_print_error_function): Deal with recursive
	BLOCK trees.

	* g++.dg/torture/pr34850.C: New testcase.

From-SVN: r131690
2008-01-21 09:34:19 +00:00
Alon Dayan b158b5c6aa re PR middle-end/34701 (ICE in tree-ssa-ccp.c with -fipa-struct-reorg)
2008-01-21  Alon Dayan  <alond@il.ibm.com>
	    Olga Golovanevsky  <olga@il.ibm.com>

	PR tree-optimization/34701
	* gcc.dg/struct/wo_prof_array_field.c: New test.
	
2008-01-21  Alon Dayan  <alond@il.ibm.com>
	    Olga Golovanevsky  <olga@il.ibm.com>
	
	PR tree-optimization/34701
	* ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
	when the structure size is not a power of 2.

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

From-SVN: r131689
2008-01-21 09:07:12 +00:00