Commit Graph

85719 Commits

Author SHA1 Message Date
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
Paolo Carlini
b8ce93da2d re PR c++/34891 (Broken diagnostic: 'view_convert_expr' not supported by dump_expr)
/cp
2008-01-20  Paolo Carlini  <pcarlini@suse.de>

        PR c++/34891
        * error.c (dump_expr): Deal with VIEW_CONVERT_EXPR.

/testsuite
2008-01-20  Paolo Carlini  <pcarlini@suse.de>

        PR c++/34891
        * g++.dg/ext/vector9.C: New.

From-SVN: r131687
2008-01-21 02:30:31 +00:00
Paolo Carlini
dbc21af5a9 re PR c++/34776 (ICE with invalid member declaration in template class)
/cp
2008-01-20  Paolo Carlini  <pcarlini@suse.de>

        PR c++/34776
	PR c++/34486
        * name-lookup.c (do_class_using_decl): Do not call constructor_name_p
	on non-IS_AGGR_TYPE type scope.
	(constructor_name_p): Assert IS_AGGR_TYPE.

/testsuite
2008-01-20  Paolo Carlini  <pcarlini@suse.de>

        PR c++/34776
	PR c++/34486
        * g++.dg/template/crash75.C: New.
        * g++.dg/template/crash76.C: Likewise.

From-SVN: r131686
2008-01-21 01:49:29 +00:00
Kenneth Zadeck
604f825c83 install.texi: Add doc for --enable-checking=df.
2008-01-20  Kenneth Zadeck <zadeck@naturalbridge.com>

	* doc/install.texi: Add doc for --enable-checking=df.

From-SVN: r131685
2008-01-21 01:09:04 +00:00
GCC Administrator
4f8aaa248f Daily bump.
From-SVN: r131683
2008-01-21 00:17:21 +00:00
Kaz Kojima
539c54bafb re PR rtl-optimization/34808 (ICE in prescan_insns_for_dce)
PR rtl-optimization/34808
	* emit-rtl.c (try_split): Handle REG_RETVAL notes.
	* gcc.c-torture/compile/pr34808.c: New test.

From-SVN: r131680
2008-01-21 00:04:23 +00:00
Paul Thomas
f5d67ede42 re PR fortran/34861 (ICE in function with entry (and result?))
2008-01-20  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34861
	* resolve.c (resolve_entries): Do not do an array bounds check
	if the result symbols are the same.

	PR fortran/34854
	* module.c (read_module) : Hide the symtree of the previous
	version of the symbol if this symbol is renamed.

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

	PR fortran/34784
	* gfortran.dg/mapping_2.f90: Correct ubound expression for h4.

	PR fortran/34861
	* gfortran.dg/entry_array_specs_3.f90: New test.

	PR fortran/34854
	* gfortran.dg/use_rename_1.f90: New test.

From-SVN: r131679
2008-01-20 16:58:15 +00:00
Joseph Myers
bdf8f544b6 * sv.po: Update.
From-SVN: r131678
2008-01-20 14:53:58 +00:00
Paul Thomas
fe8edd0c23 trans-array.c (gfc_add_loop_ss_code): Correct whitespace.
2008-01-20  Paul Thomas  <pault@gcc.gnu.org>

	* trans-array.c (gfc_add_loop_ss_code) :  Correct whitespace.

From-SVN: r131677
2008-01-20 10:26:42 +00:00
Richard Sandiford
ecff8c1c5d global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per input.
gcc/
	* global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
	input.

From-SVN: r131676
2008-01-20 08:47:14 +00:00