Commit graph

74727 commits

Author SHA1 Message Date
H.J. Lu
a46cec70c7 i386.c (asm_preferred_eh_data_format): Reformat.
2006-04-20  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/i386.c (asm_preferred_eh_data_format): Reformat.

From-SVN: r113122
2006-04-20 09:23:57 -07:00
Volker Reichelt
06866a7325 re PR c++/26789 (ICE on incomplete struct with -fmudflap)
PR mudflap/26789
	* tree-mudflap.c (mudflap_finish_file): Skip function when there
	were errors.  Remove check for erroneous objects.

From-SVN: r113121
2006-04-20 16:19:21 +00:00
Jeff Law
bfc646bfc0 re PR tree-optimization/26854 (Inordinate compile times on large routines)
PR tree-optimization/26854
	* tree-ssa-dse.c (dse_optimize_stmt): Avoid num_imm_uses when
	checking for zero or one use.
	* tree-ssa-dom.c (propagate_rhs_into_lhs): Similarly.
	* tree-cfgcleanup.c (merge_phi_nodes): Similarly.
	* tree-ssa-reassoc.c (negate_value): Similarly.
	(reassociate_bb): Similarly.

From-SVN: r113120
2006-04-20 10:13:12 -06:00
Tom Tromey
45c792f50b re PR libgcj/21941 (NPE in Socket.connect())
PR libgcj/21941:
	* gnu/java/net/natPlainDatagramSocketImplPosix.cc (send): Throw
	UnknownHostException if needed.
	* gnu/java/net/natPlainSocketImplPosix.cc (connect): Throw
	UnknownHostException if needed.

From-SVN: r113118
2006-04-20 15:46:40 +00:00
Jakub Jelinek
455f78d9c6 c-pretty-print.c (pp_c_direct_abstract_declarator): Print TYPE_MAX_VALUE (TYPE_DOMAIN (t)) + 1 for ARRAY_TYPE rather than plain...
* c-pretty-print.c (pp_c_direct_abstract_declarator): Print
	TYPE_MAX_VALUE (TYPE_DOMAIN (t)) + 1 for ARRAY_TYPE rather
	than plain TYPE_MAX_VALUE (TYPE_DOMAIN (t)).

	* gcc.dg/20060419-1.c: New test.

From-SVN: r113112
2006-04-20 11:04:26 +02:00
Alan Modra
9a74f8ee3d rs6000.c (rs6000_gimplify_va_arg): Consume all fp regs if the last fp arg doesn't fit in regs.
* config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Consume all
	fp regs if the last fp arg doesn't fit in regs.

From-SVN: r113111
2006-04-20 16:34:00 +09:30
Kaz Kojima
904b6a0eef re PR target/27182 (SH: wrong-code generation)
PR target/27182
	* config/sh/sh.md (movsicc_true+3): Tweak condition for the case
	that the last insn has the REG_INC note.

From-SVN: r113109
2006-04-20 01:54:20 +00:00
Carlos O'Donell
9dfb66b9fe re PR c/26774 (Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c)
gcc/

2006-04-19  Carlos O'Donell  <carlos@codesourcery.com>
	    Nathan Sidwell  <nathan@codesourcery.com>

	PR c/26774
	* stor-layout.c (update_alignment_for_field): Do not align 
	ERROR_MARK nodes.
	(place_union_field): Place union field at the start of the union.
	(place_field): Move ERROR_MARK check later, and use the current
	allocation position to maintain monotonicity.

gcc/testsuite/

2006-04-19  Carlos O'Donell  <carlos@codesourcery.com>

	PR c/26774
	* gcc.dg/struct-parse-1.c: New test case.


Co-Authored-By: Nathan Sidwell <nathan@codesourcery.com>

From-SVN: r113107
2006-04-20 00:21:51 +00:00
GCC Administrator
4fc1015b1d Daily bump.
From-SVN: r113105
2006-04-20 00:17:11 +00:00
Tom Tromey
453602827f Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (CLEANFILES): Removed all_java_filelist_files,
	all_java_deps_files.

From-SVN: r113101
2006-04-19 23:05:14 +00:00
Paolo Carlini
d9a4b9eecb re PR libstdc++/26424 (tr1/unordered vs 64-bit machines)
2006-04-19  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/26424
	* include/tr1/hashtable (X<>::primes): Extend for 64-bit machines.
	(X<>::n_primes): Adjust.
	(prime_rehash_policy::next_bkt, bkt_for_elements, need_rehash): Adjust.

From-SVN: r113100
2006-04-19 22:58:23 +00:00
Volker Reichelt
94d285a53c re PR c++/26558 (segfault on syntax error)
PR c++/26558
	* parser.c (cp_parser_class_name): Check for invalid typenames.
	Rearrange code.

	* g++.dg/parse/template19.C: New test.

From-SVN: r113096
2006-04-19 22:03:24 +00:00
Volker Reichelt
51e8f10cf6 re PR c++/26789 (ICE on incomplete struct with -fmudflap)
PR mudflap/26789
	* testsuite/libmudflap.c++/error1-frag.cxx: New test.

	PR mudflap/26790
	* testsuite/libmudflap.c++/error2-frag.cxx: New test.

From-SVN: r113095
2006-04-19 21:47:03 +00:00
Volker Reichelt
91d876d91c Fix PR numbers.
From-SVN: r113094
2006-04-19 21:42:09 +00:00
Volker Reichelt
0014c2479a re PR c++/26739 (ICE in g++.old-deja/g++.pt/friend36.C)
PR c++/26739
	* pt.c (tsubst_friend_function): Return early if
	pushdecl_namespace_level fails.

	* g++.old-deja/g++.pt/friend36.C: Adjust error markers.

From-SVN: r113090
2006-04-19 18:07:19 +00:00
Volker Reichelt
b815a6316c re PR c++/26036 (Treating a class object as a function with member variables causes hang)
PR c++/26036
	* typeck.c (convert_arguments): Return error_mark_node instead of
	error_mark_list.
	* cp-tree.h (error_mark_list): Remove declaration.
	* decl.c (error_mark_list): Remove definition.
	(cxx_init_decl_processing): Do not initialize error_mark_list.

	* g++.dg/expr/call3.C: New test.

From-SVN: r113087
2006-04-19 17:36:59 +00:00
Volker Reichelt
d149fba0ff re PR c++/10385 (Internal compiler error in build_up_reference, at cp/cvt.c:353, on invalid dynamic_cast)
PR c++/10385
	* rtti.c (build_dynamic_cast_1): Check for invalid conversions
	before calling convert_to_reference.
	* cvt.c (convert_to_reference): Assert that reftype is a
	REFERENCE_TYPE.

	* g++.dg/conversion/dynamic1.C: New test.

From-SVN: r113084
2006-04-19 17:15:54 +00:00
Tom Tromey
37e7dc121d natFileChannelPosix.cc (write): Properly handle EINTR.
* gnu/java/nio/channels/natFileChannelPosix.cc (write): Properly
	handle EINTR.

From-SVN: r113082
2006-04-19 17:01:53 +00:00
Mark Mitchell
fa6098f817 re PR c++/27102 (ICE with invalid class name in function template)
PR c++/27102
	* class.c (currently_open_class): Tidy.
	* decl.c (grokdeclarator): If we encounter an erroneous
	declarator, assume that we have already issued an error message
	and return.  Return error_mark_node instead of NULL_TREE in more
	places.  Issue errors about function definitions that do not have
	a function declarator.  Check for complete types for all function
	definitions. 
	* cp-tree.h (cp_error_declarator): Remove.
	(currently_open_class): Change return type.
	* parser.c (cp_parser_id_expression): Add optional_p parameter.
	(cp_parser_parse_diagnose_invalid_type_name): Adjust calls.
	(cp_parser_id_expression): Likewise.
	(cp_parser_unqualified_id): If the name is optional, return
	NULL_TREE.
	(cp_parser_postfix_dot_deref_expression): Adjust calls.
	(cp_parser_type_parameter): Likewise.
	(cp_parser_unqualified_id): Likewise.
	(cp_parser_direct_declarator): Likewise.
	(cp_parser_declarator_id): Add optional_p parameter.
	(cp_parser_function_definition_from_specifiers_and_declarator):
	Assume that start_function indicates failure only if it has issued
	an error.
	(cp_parser_omp_var_list_no_open): Adjust calls.
	
	PR c++/27102
	* g++.dg/template/crash35.C: Tweak error markers.
	* g++.dg/template/crash46.C: New test.
	* g++.old-deja/g++.brendan/friend4.C: Tweak error markers.
	* g++.old-deja/g++.pt/incomplete1.C: Likewise.

From-SVN: r113081
2006-04-19 16:58:23 +00:00
Zdenek Dvorak
74c96e0c14 dominance.c: Include timevar.h.
* dominance.c: Include timevar.h.
	(calculate_dominance_info): Use TV_DOMINANCE.
	* timevar.def (TV_DOMINANCE): New timevar.
	* Makefile.in (dominance.o): Add TIMEVAR_H dependency.

From-SVN: r113075
2006-04-19 12:48:35 +00:00
Andreas Krebbel
4414de4a96 PR reference added to ChangeLog
From-SVN: r113073
2006-04-19 11:56:18 +00:00
Andreas Krebbel
e90cd8543a ifcvt.c (noce_emit_move_insn): Call store_bit_field if the resulting move would be an INSV insn.
2006-04-19  Andreas Krebbel  <krebbel1@de.ibm.com>

	* ifcvt.c (noce_emit_move_insn): Call store_bit_field if the resulting
	move would be an INSV insn.
	(noce_process_if_block): Don't optimize if the destination is a 
	ZERO_EXTRACT which can't be handled by noce_emit_move_insn.

2006-04-19  Andreas Krebbel  <krebbel1@de.ibm.com>

	* gcc.c-torture/compile/20060419-1.c: Added.

From-SVN: r113072
2006-04-19 11:45:41 +00:00
Andreas Krebbel
43a09b63d4 s390.md: Add comments with the instructions emitted by an insn pattern if macros are used.
2006-04-19  Andreas Krebbel  <krebbel1@de.ibm.com>

	* config/s390/s390.md: Add comments with the instructions emitted
	by an insn pattern if macros are used.

From-SVN: r113071
2006-04-19 10:42:19 +00:00
DJ Delorie
e88a2c0973 configure.in (m32c): Build libstdc++-v3.
* configure.in (m32c): Build libstdc++-v3.  Pass flags to
reference libgloss so that libssp can be built in a combined
tree.
* configure: Regenerate.

From-SVN: r113066
2006-04-18 20:56:33 -04:00
GCC Administrator
bca724e65d Daily bump.
From-SVN: r113064
2006-04-19 00:17:17 +00:00
Alan Modra
0f35201e17 re PR rtl-optimization/26026 (power of 2 mod missing optimisation)
PR rtl-optimization/26026
	* fold-const.c (fold_binary): Optimize div and mod where the divisor
	is a known power of two shifted left a variable amount.

From-SVN: r113060
2006-04-19 09:15:47 +09:30
Geoffrey Keating
76f7a74ff6 dwarf2out.c (prune_unused_types_update_strings): Don't add strings to hash table twice when the debug_str section has SECTION_MERGE.
* dwarf2out.c (prune_unused_types_update_strings): Don't add strings
	to hash table twice when the debug_str section has SECTION_MERGE.

From-SVN: r113057
2006-04-18 21:52:49 +00:00
Joseph Myers
49721058b7 soft-fp: New directory.
* config/soft-fp: New directory.  From glibc.
	* config/soft-fp/t-softfp: New.
	* config/soft-fp/README: New.
	* mklibgcc.in: Handle LIB2FUNCS_EXCLUDE.
	* Makefile.in (LIB2FUNCS_EXCLUDE, SFP_MACHINE): New.
	(libgcc.mk): Pass LIB2FUNCS_EXCLUDE.
	(LIBGCC_DEPS): Add $(SFP_MACHINE).
	* config.gcc: Use rs6000/t-fprules-fpbit or
	rs6000/t-fprules-softfp and soft-fp/t-softfp together with
	rs6000/t-fprules.
	* config/rs6000/sfp-machine.h: New.  Based on glibc.
	* config/rs6000/t-fprules-fpbit, config/rs6000/t-fprules-softfp:
	New.
	* config/rs6000/t-fprules: Remove fp-bit rules.
	* config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Use +=.
	* config/rs6000/t-linux64: Likewise.  Remove duplicates from
	LIB2FUNCS_EXTRA.  Remove fp-bit rules.
	(softfp_wrap_start, softfp_wrap_end): New.

From-SVN: r113056
2006-04-18 21:50:45 +01:00
DJ Delorie
7e96ee3606 * config/m32c/m32c.h (PTRDIFF_TYPE): Define.
From-SVN: r113054
2006-04-18 14:58:17 -04:00
Bernhard Fischer
9b3e4c45ad parse.c (next_free): Use consistent error string between free-form and fixed-form for illegal...
fortran/

	* parse.c (next_free): Use consistent error string between
	free-form and fixed-form for illegal statement label of zero.
	(next_fixed): Use consistent warning string between free-form
	and fixed-form for statement labels for empty statements.

testsuite/

	* gfortran.dg/label_1.f90: Adjust dg-error.

From-SVN: r113053
2006-04-18 19:58:41 +02:00
Devang Patel
d955420ef2 * doc/invoke.texi (-Wuninitialized): Clarify -O connection.
From-SVN: r113048
2006-04-18 09:06:32 -07:00
Steve Ellcey
7ae9933719 * trans-io.c (gfc_build_io_library_fndecls): Align pad.
From-SVN: r113047
2006-04-18 16:05:42 +00:00
Nick Clifton
503b5c9f9e t-symbian: Add rule to build sh-c.o
* config/sh/t-symbian: Add rule to build sh-c.o
* config/sh/symbian.c (sh_symbian_mark_dllexport): Replace use
  of DECL_NON_ADDR_CONST_P with DECL_DLLIMPORT_P.
  (sh_symbian_encode_section_info): Likewise.

From-SVN: r113042
2006-04-18 14:48:36 +00:00
Andreas Krebbel
c2f07c00b8 builtins.c (expand_builtin_strcmp): Cover label definition of do_libcall with HAVE_cmpstrnsi.
2006-04-18  Andreas Krebbel  <krebbel1@de.ibm.com>

	* builtins.c (expand_builtin_strcmp): Cover label definition of 
	do_libcall with HAVE_cmpstrnsi.

From-SVN: r113039
2006-04-18 13:56:51 +00:00
Paolo Carlini
065fc47037 index.html ([5.5]): Adjust to mention function objects and reference_wrapper; minor tweaks.
2006-04-18  Paolo Carlini  <pcarlini@suse.de>

	* docs/html/faq/index.html ([5.5]): Adjust to mention function
	objects and reference_wrapper; minor tweaks.
	* docs/html/faq/index.txt: Regenerate.

From-SVN: r113031
2006-04-18 12:34:41 +00:00
Kazu Hirata
6370682af4 function.c (temp_slots_at_level, [...]): Use VEC instead of VARRAY.
* function.c (temp_slots_at_level, max_slot_level): Use VEC
	instead of VARRAY.
	* function.h (temp_slot_p): New.
	(function): Change the type of x_used_temp_slots to
	VEC(temp_slot_p,gc) *.

From-SVN: r113029
2006-04-18 12:32:11 +00:00
Nick Clifton
13a41b42ed * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove reference to flag_strength_reduce.
From-SVN: r113028
2006-04-18 10:15:41 +00:00
Nick Clifton
224504d28e * doc/tm.texi (TARGET_SECTION_TYPE_FLAGS): Fix typo.
From-SVN: r113027
2006-04-18 10:11:30 +00:00
Paolo Bonzini
6ee2e1587a re PR target/27117 (SH backend cheats to reload -- disables indexed addressing but uses it internally)
2006-04-18  Paolo Bonzini  <bonzini@gnu.org>

        PR target/27117

	Partial revert of revision 112637
	2006-04-03  Paolo Bonzini  <bonzini@gnu.org>
		    Dale Johannesen  <dalej@apple.com>

	PR target/19653
	* regclass.c (struct reg_pref): Update documentation.
	(regclass): Set prefclass to NO_REGS if memory is the best option.
	(record_reg_classes): Cope with a prefclass set to NO_REGS.

From-SVN: r113026
2006-04-18 08:23:39 +00:00
Paolo Bonzini
e3949961fb re PR tree-optimization/26821 (ice in varasm.c with certain flags)
2006-04-18  Paolo Bonzini  <bonzini@gnu.org>

        PR tree-optimization/26821
        * tree-ssa-math-opts.c (get_constant_one): New.
        (insert_reciprocals): Use it.

From-SVN: r113025
2006-04-18 08:08:47 +00:00
GCC Administrator
231816e717 Daily bump.
From-SVN: r113022
2006-04-18 00:17:34 +00:00
Tom Tromey
dff81d4f4c re PR libgcj/27171 (UTF8 PrintWriter goes haywire)
PR libgcj/27171:
	* testsuite/libjava.lang/pr27171.java: New file.
	* testsuite/libjava.lang/pr27171.out: New file.
	* gnu/gcj/convert/Output_UTF8.java (havePendingBytes): Return
	true if we've seen a high surrogate.
	(write): Handle high surrogates at the end of the stream.
	Properly emit isolated low surrogates.

From-SVN: r113013
2006-04-17 21:41:47 +00:00
Geoffrey Keating
e26303c2f7 dwarf2out.c (free_AT): Delete.
* dwarf2out.c (free_AT): Delete.
	(remove_AT): Update string ref counts.
	(remove_child_TAG): Don't call free_die.
	(free_die): Delete.
	(break_out_includes): Don't call free_die on DW_TAG_GNU_BINCL
	or DW_TAG_GNU_EINCL.
	(prune_unused_types_walk_attribs): Reset string refcounts.
	(prune_unused_types_update_strings): New.
	(prune_unused_types_prune): Don't make unnecessary stores.  Don't
	call free_die.  Do call prune_unused_types_update_strings.
	(prune_unused_types): Empty debug_str_hash.

From-SVN: r113012
2006-04-17 21:27:57 +00:00
Andreas Tobler
c60fe329d5 stringconst2.java: Print a stack trace in case of failure.
2006-04-17  Andreas Tobler  <a.tobler@schweiz.ch>

	* testsuite/libjava.lang/stringconst2.java: Print a stack trace in case
	of failure.

From-SVN: r113011
2006-04-17 23:18:23 +02:00
Janis Johnson
778f6a08fd PR c++/26114, c++/26115
PR c++/26114, c++/26115
	* typeck.c (cxx_mark_addressable): Restore check for extra_warnings.
	* class.c (check_field_decls): Ditto.

From-SVN: r113010
2006-04-17 19:35:56 +00:00
Roger Sayle
6cc1d69426 expr.c (expand_assignment): Optimize away no-op moves where the source and destination are equal and have...
* expr.c (expand_assignment): Optimize away no-op moves where the
	source and destination are equal and have no side-effects.

From-SVN: r113009
2006-04-17 16:49:54 +00:00
Volker Reichelt
7304fcb4a7 * init.c (build_offset_ref): Remove superfluous temporary.
From-SVN: r113008
2006-04-17 16:32:03 +00:00
Richard Guenther
71a9b19ae8 re PR target/26826 (ICE in reg_or_subregno, at jump.c:2011)
2006-04-17  Richard Guenther  <rguenther@suse.de>

	PR target/26826
	* reload.c (push_reload): Guard calls to get_secondary_mem
	for memory subregs.

From-SVN: r113007
2006-04-17 13:53:19 +00:00
Kazu Hirata
b2c0ad4071 cgraph.h (cgraph_edge_p): New.
* cgraph.h (cgraph_edge_p): New.
	Update the prototype of cgraph_function_versioning.
	* cgraphunit.c (cgraph_copy_node_for_versioning,
	cgraph_function_versioning): Use VEC instead of VARRAY.
	* ipa-cp.c (ipcp_insert_stage): Likewise.

From-SVN: r113006
2006-04-17 12:45:25 +00:00
Kazu Hirata
1a5640b4e1 alias.c (alias_sets): Change the type to VEC(alias_set_entry,gc) *.
* alias.c (alias_sets): Change the type to
	VEC(alias_set_entry,gc) *.
	(get_alias_set_entry, new_alias_set, record_alias_subset): Use
	VEC instead of VARRAY.
	(last_alias_set): Remove.

From-SVN: r113005
2006-04-17 12:42:37 +00:00