Commit Graph

76275 Commits

Author SHA1 Message Date
Benjamin Kosnik
1b98c24e32 PR libstdc++/28671 continued
2006-08-31  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/28671 continued
	* acinclude.m4 (GLIBCXX_ENABLE_ATOMIC_BUILTINS): Don't use
	CXXFLAGS when checking for atomic builtins.
	* configure: Regenerate.
	* include/bits/atomicity.h: Revert.

From-SVN: r116608
2006-08-31 22:20:09 +00:00
Richard Guenther
e282a2bc9f mt_allocator.h: Remove volatile qualifiers from data members and corresponding locals and...
2006-08-31  Richard Guenther  <rguenther@suse.de>

	* include/ext/mt_allocator.h: Remove volatile qualifiers
	from data members and corresponding locals and function
	signatures.

From-SVN: r116606
2006-08-31 19:52:16 +00:00
Zdenek Dvorak
1e5787ef86 re PR tree-optimization/28839 (ICE in tree-vectorizer.c with -O2 -ftree-vectorize -funswitch-loops)
PR tree-optimization/28839
	* tree-into-ssa.c (prune_unused_phi_nodes): Take into account kills in
	blocks in that phi arguments appear.

	* gcc.dg/pr28839.c: New test.

From-SVN: r116605
2006-08-31 19:33:56 +00:00
Roger Sayle
6a10f7b362 re PR other/22313 (profiledbootstrap is broken on the mainline)
PR other/22313
	* dwarf2out.c (add_fde_cfi): Use a set_loc if the current label is
	NULL, otherwise use an advance_loc4 to adjust relative to the 
	current label.
	(output_cfi) <DW_CFA_set_loc>: Update the current label.
	(dwarf2out_switch_text_section): Reset the current label to avoid
	using advance_loc4 over section boundaries.

From-SVN: r116604
2006-08-31 17:35:32 +00:00
Tom Tromey
d50341e6de re PR libgcj/28698 ([gcj] libgcj-bc only used when building shared libs, not executables)
PR libgcj/28698:
	* libgcj_bc.c (DECLARE_PRIM_TYPE): New macro.  Declare primitive
	classes.

From-SVN: r116603
2006-08-31 17:23:57 +00:00
Paolo Carlini
a7cfb1af9e gnu.ver: Correct atomic helper function signature for case where _Atomic_word is long.
2006-08-31  Paolo Carlini  <pcarlini@suse.de>

	* config/abi/pre/gnu.ver: Correct atomic helper function signature
	for case where _Atomic_word is long.

From-SVN: r116602
2006-08-31 11:46:31 +00:00
Benjamin Kosnik
f640f39eef re PR libstdc++/28671 (undefined reference to `__sync_fetch_and_add_4')
2006-08-31  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/28671
	* include/bits/atomicity.h (__exchange_and_add): Declare only.
	(__atomic_add): Same.
	* config/cpu/generic/atomicity_builtins/atomicity.h: Remove comment.

From-SVN: r116601
2006-08-31 10:45:59 +00:00
Andreas Krebbel
e4f2cd43ec re PR target/24367 (unrecognizable insn with -fPIC -O2 -funroll-loops)
2006-08-31  Andreas Krebbel  <krebbel1@de.ibm.com>

	PR target/24367
	* config/s390/s390.md ("movsi", "movdi" expander): Accept rtxes like
	r12 + SYMBOLIC_CONST.

2006-08-31  Andreas Krebbel  <krebbel1@de.ibm.com>

	PR target/24367
	* gcc.dg/pr24367.c: New testcase.

From-SVN: r116599
2006-08-31 07:43:36 +00:00
GCC Administrator
99cdbefb97 Daily bump.
From-SVN: r116597
2006-08-31 00:17:15 +00:00
Joern Rennecke
b666f3cf14 Fixed attribution for patch for PR tree-optimization/17506
From-SVN: r116593
2006-08-30 19:57:54 +01:00
Jason Merrill
2200205076 re PR c++/26670 (attribute((packed)) sometimes not ignored for non-PODs)
PR c++/26670
        * class.c (check_field_decls): Don't unset TYPE_PACKED until all
        the fields have been processed.

From-SVN: r116591
2006-08-30 11:51:17 -04:00
Kazu Hirata
884f22e3a2 * match.c: Fix a comment typo.
From-SVN: r116590
2006-08-30 15:10:26 +00:00
Joseph Myers
605c8e5ab0 * gcc.dg/arm-mmx-1.c: Skip for -mfloat-abi=softfp.
From-SVN: r116588
2006-08-30 15:35:14 +01:00
Corinna Vinschen
b91f0a4123 configure.in: Never build newlib for a Mingw host.
2006-08-30  Corinna Vinschen  <corinna@vinschen.de>
* configure.in: Never build newlib for a Mingw host.
Never build newlib as Mingw target library.
Test the existence of winsup/cygwin for building a Cygwin newlib,
rather than just winsup.
Add winsup/mingw and winsup/w32api paths to FLAGS_FOR_TARGET if
building a Mingw target.
* configure: Regenerate.

From-SVN: r116587
2006-08-30 09:48:49 -04:00
Corinna Vinschen
70aec81b22 configure.ac: Add case for Mingw as host.
2006-08-30  Corinna Vinschen  <corinna@vinschen.de>
* configure.ac: Add case for Mingw as host.
* configure: Regenerate.

From-SVN: r116586
2006-08-30 09:46:50 -04:00
Benjamin Kosnik
b93d5ca9df gnu.ver: Spell out exact signatures for atomic access functions.
2006-08-30  Benjamin Kosnik  <bkoz@redhat.com>
            Richard Guenther  <rguenther@suse.de>
	
	* config/abi/pre/gnu.ver: Spell out exact signatures for atomic
	access functions.

	* include/bits/atomicity.h (__atomic_add_dispatch): Remove
	volatile qualification for _Atomic_word argument.
	(__atomic_add_single): Same.
	(__exchange_and_add_dispatch): Same.
	(__exchange_and_add_single): Same.
	

Co-Authored-By: Richard Guenther <rguenther@suse.de>

From-SVN: r116584
2006-08-30 09:39:45 +00:00
Richard Guenther
c87555d6a6 Makefile.in (see.o): Add $(EXPR_H) dependency.
2006-08-30  Richard Guenther  <rguenther@suse.de>

	* Makefile.in (see.o): Add $(EXPR_H) dependency.

From-SVN: r116583
2006-08-30 09:12:48 +00:00
Zdenek Dvorak
dc14f1915c re PR rtl-optimization/27735 (ICE at -O3 caused by loop unswitching)
PR rtl-optimization/27735
	* cfgloopmanip.c (fix_loop_placements, fix_bb_placements, unloop):
	Add new argument to keep track of whether an irreducible region
	was affected.  All callers changed.
	(fix_irreducible_loops): Removed.
	(remove_path): Call mark_irreducible_loops if EDGE_IRREDUCIBLE_LOOP
	flags were invalidated.

	* gcc.dg/loop-unswitch-1.c: New test.

From-SVN: r116582
2006-08-30 08:14:29 +00:00
Kazu Hirata
b0d3a6aeb8 re PR middle-end/26632 (spurious warning: value computed is not used)
PR middle-end/26632
	* gcc.dg/pr26632.c: New.

From-SVN: r116580
2006-08-30 06:00:35 +00:00
Paul Thomas
8c086c9c6e re PR fortran/28885 (ICE passing components of array of derived type)
2006-08-30  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/28885
	REGRESSION FIX
	* trans-expr.c (gfc_conv_aliased_arg): Ensure that the temp
	declaration is retained for INTENT(OUT) arguments.

	PR fortran/28873
	REGRESSION FIX
	PR fortran/20067
	* resolve.c (resolve_generic_f): Make error message more
	comprehensible.
	(resolve_generic_s): Restructure search for specific procedures
	to be similar to resolve_generic_f and change to similar error
	message.  Ensure that symbol reference is refreshed, in case
	the search produces a NULL.
	(resolve_specific_s): Restructure search, as above and as
	resolve_specific_f. Ensure that symbol reference is refreshed,
	in case the search produces a NULL.

	PR fortran/25077
	PR fortran/25102
	* interface.c (check_operator_interface): Throw error if the
	interface assignment tries to change intrinsic type assigments
	or has less than two arguments.  Also, it is an error if an
	interface operator contains an alternate return.

	PR fortran/24866
	* parse.c (gfc_fixup_sibling_symbols): Do not modify the symbol
	if it is a dummy in the contained namespace.


2006-08-30  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/28885
	* gfortran.dg/aliasing_dummy_2.f90: New test.

	PR fortran/20067
	* gfortran.dg/generic_5.f90: Change error message.

	PR fortran/28873
	* gfortran.dg/generic_6.f90: New test.

	PR fortran/25077
	* gfortran.dg/redefined_intrinsic_assignment.f90: New test.

	PR fortran/25102
	* gfortran.dg/invalid_interface_assignment.f90: New test.

	PR fortran/24866
	* gfortran.dg/module_proc_external_dummy.f90: New test.

From-SVN: r116578
2006-08-30 05:18:36 +00:00
Andrew Pinski
a2ef097954 re PR c++/28349 (ICE with "undefined" va_arg and references)
2006-08-29  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/28349
        * testsuite/g++.dg/warn/var-args1.C: New test.
2006-08-29  Andrew Pinski  <pinskia@physics.uc.edu>

        PR C++/28349
        * call.c (build_x_va_arg): Remove the reference type
        from the type before creating the pointer type.

From-SVN: r116577
2006-08-29 21:33:10 -07:00
GCC Administrator
1bdd6b682b Daily bump.
From-SVN: r116574
2006-08-30 00:17:13 +00:00
Steven G. Kargl
5056a35047 re PR fortran/28866 (Simple if statements are not so simple)
2006-08-29  Steven G. Kargl  <kargls@comcast.net>

	PR fortran/28866
	* match.c: Wrap copyright.
	(gfc_match_assignment):  Return MATCH_NO for failed lvalue.  Remove
	gotos.  Move error handling of FL_PARAMETER to ...
 	* gfc_match_if: Deal with MATCH_NO from above.
	* primary.c: Wrap copyright.
	(match_variable): ... here.  Improve error messages.


2006-08-29  Steven G. Kargl  <kargls@comcast.net>

	PR fortran/28866
	* gfortran.dg/simpleif_2.f90: New test.
	* gfortran.dg/pr19936_1.f90: Adjust dg-error message.
	* gfortran.dg/enum_5.f90: Ditto.

From-SVN: r116570
2006-08-29 19:47:31 +00:00
H.J. Lu
e370818b21 i386.md (*fop_df_comm_mixed): Match DF operands instead of SF operands.
2006-08-29  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/i386.md (*fop_df_comm_mixed): Match DF operands
	instead of SF operands.
	(*fop_df_comm_sse): Likewise.
	(*fop_df_comm_i387): Likewise.
	(*fop_df_1_mixed): Likewise.
	(*fop_df_1_sse): Likewise.

From-SVN: r116569
2006-08-29 11:47:20 -07:00
Joern Rennecke
227e9f621b re PR tree-optimization/17506 (warning about uninitialized variable points to wrong location)
gcc:

2006-08-29  Nathan Sidwell  <nathan@codesourcery.com>
	    J"orn Rennecke  <joern.rennecke@st.com>

	PR tree-optimization/17506
	* tree-ssa.c (warn_uninit): If warning about a location outside of
	the current function, note where the variable was declared.

testsuite:

2006-08-29  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
	    Kazu Hirata  <kazu@codesourcery.com>

	PR tree-optimization/17506
	* gcc.dg/pr17506.c: New.

From-SVN: r116564
2006-08-29 16:52:54 +01:00
Joern Rennecke
2d9493a481 Apply Andrew Pinski's amendment (i.e. use __SIZE_TYPE__)
From-SVN: r116562
2006-08-29 16:08:07 +01:00
J"orn Rennecke
2de9107ad5 re PR c++/28139 (alias information for EH is wrong)
cp:
	PR c++/28139
	* except.c (expand_start_catch_block): Use correct types for bitwise
	copy.
testsuite:
	PR c++/28139
	* g++.dg/eh/alias1.C: New test.

From-SVN: r116561
2006-08-29 15:34:36 +01:00
Paolo Carlini
a3b6119721 random (subtract_with_carry_01<>::_M_initialize_npows): New.
2006-08-29  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/random (subtract_with_carry_01<>::_M_initialize_npows):
	New.
	(subtract_with_carry_01<>::subtract_with_carry_01(),
	subtract_with_carry_01<>::subtract_with_carry_01(unsigned long),
	subtract_with_carry_01<>::subtract_with_carry_01(_Gen&)): Use it.
	* include/tr1/random.tcc: Define.

	* include/tr1/random (xor_combine<>::_M_initialize_max()): New.
	(xor_combine<>::xor_combine(), xor_combine<>::xor_combine(const
	base1_type&, const base2_type&), xor_combine<>::xor_combine(unsigned
	long), xor_combine<>::xor_combine(_Gen&)): Use it.
	(xor_combine<>::min, xor_combine<>::max): Adjust.
	* include/tr1/random.tcc: Define.

From-SVN: r116559
2006-08-29 11:46:54 +00:00
Benjamin Kosnik
d99cc02542 acinclude.m4 (glibcxx_PCHFLAGS): Set to stdtr1c++.h.
2006-08-29  Benjamin Kosnik  <bkoz@redhat.com>

	* acinclude.m4(glibcxx_PCHFLAGS): Set to stdtr1c++.h.
	* configure: Regenerate.
	
	* scripts/check_compile: Output current compile line.

From-SVN: r116558
2006-08-29 10:53:04 +00:00
Gary Benson
4c1a4dcda1 2006-08-29 Gary Benson <gbenson@redhat.com>
* java/net/SocketPermission.java
	(maybeBracketIPv6Address): New method.
	(<init>): Pass the hostport argument through the above.

	* java/net/NetworkInterface.java (getInetAddresses):
	Revert the previous change.

From-SVN: r116557
2006-08-29 08:15:29 +00:00
Jason Merrill
e883464cc4 re PR c++/26670 (attribute((packed)) sometimes not ignored for non-PODs)
PR c++/26670
        * class.c (check_field_decls): Unset TYPE_PACKED (t) if one of the
        fields can't be packed.

From-SVN: r116556
2006-08-29 03:10:38 -04:00
Jason Merrill
4666cd0446 re PR c++/26670 (attribute((packed)) sometimes not ignored for non-PODs)
PR c++/26670
        * class.c (check_field_decls): Unset TYPE_PACKED (t) if one of the
        fields can't be packed.

From-SVN: r116555
2006-08-29 02:55:35 -04:00
Jason Merrill
bed02d8960 re PR c++/26577 (ICE in cp_expr_size with volatile and non POD)
PR c++/26577
        * cvt.c (convert_to_void): Don't automatically load from volatiles
        of TREE_ADDRESSABLE type.

From-SVN: r116554
2006-08-29 02:55:03 -04:00
Paul Thomas
d218d0e66d re PR fortran/28788 (ICE on valid code)
2006-08-29  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/28788
	REGRESSION FIX
	* symbol.c (gfc_use_derived): Never eliminate the symbol,
	following reassociation of use associated derived types.

2006-08-29  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/28788
	* gfortran.dg/used_types_5.f90: New test.
	* gfortran.dg/used_types_6.f90: New test.

From-SVN: r116552
2006-08-29 04:51:32 +00:00
Jason Merrill
bb6e56215c re PR c++/27714 (operator new as friend in template class rejected)
PR c++/27714
        * pt.c (push_template_decl_real): A friend template with class
        scope isn't primary.

From-SVN: r116551
2006-08-29 00:42:46 -04:00
Andrew Pinski
e753d13078 Fix white spaces.
From-SVN: r116550
2006-08-28 20:23:04 -07:00
GCC Administrator
6b039c7bae Daily bump.
From-SVN: r116548
2006-08-29 00:17:28 +00:00
Volker Reichelt
9ce387d9cf re PR c++/28860 (Trouble with bound template template parameter in specialization)
PR c++/28860
	* cp-tree.h (maybe_process_partial_specialization): Return
	tree instead of void.
	* parser.c (cp_parser_class_head): Use return value of
	maybe_process_partial_specialization.
	* pt.c (maybe_process_partial_specialization): Return error_mark_node
	for broken specializations, TYPE otherwise.  Check for template
	template parameters.

	* g++.dg/template/ttp22.C: New test.

From-SVN: r116541
2006-08-28 22:34:55 +00:00
Zdenek Dvorak
f414f2f35e re PR tree-optimization/28411 ("Illegal instruction" error with -ftrapv)
PR tree-optimization/28411
	* double-int.c (double_int_div): Use double_int_divmod.
	(double_int_divmod, double_int_sdivmod, double_int_udivmod,
	double_int_mod, double_int_smod, double_int_umod): New functions.
	* double-int.h (double_int_divmod, double_int_sdivmod,
	double_int_udivmod, double_int_mod, double_int_smod, double_int_umod):
	Declare.
	* tree-ssa-loop-ivopts.c (constant_multiple_of): Returns the result
	in double_int.
	(get_computation_aff, get_computation_cost_at): Handle double_int
	return type of constant_multiple_of.

From-SVN: r116529
2006-08-28 21:15:19 +00:00
Benjamin Kosnik
689e7ddada PR libstdc++/23773 partial
2006-08-28  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/23773 partial
	* docs/html/abi.html: Update.

From-SVN: r116527
2006-08-28 20:18:22 +00:00
Roger Sayle
8c093661a3 stl_algo.h (__heap_select, [...]): New.
2006-08-28  Roger Sayle  <roger@eyesopen.com>
	    Paolo Carlini  <pcarlini@suse.de>

	* include/bits/stl_algo.h (__heap_select, __introselect): New.
	(nth_element): New implementation.
	(partial_copy): Use __heap_select.
	* testsuite/performance/25_algorithms/nth_element_worst_case.cc: New.

Co-Authored-By: Paolo Carlini <pcarlini@suse.de>

From-SVN: r116520
2006-08-28 18:32:35 +00:00
Kazu Hirata
03a569a38c re PR middle-end/26632 (spurious warning: value computed is not used)
gcc/
	PR middle-end/26632
	* convert.c (convert_to_integer): Set TREE_NO_WARNING to 1 on
	an implicit conversion.

gcc/testsuite/
	PR middle-end/26632
	* gcc.dg/pr26632.c: New.

From-SVN: r116510
2006-08-28 17:18:29 +00:00
Prafulla Thakare
1aeceea452 * config/h8300/h8300.c (TARGET_DEFAULT_TARGET_FLAGS): New.
From-SVN: r116509
2006-08-28 13:51:04 +00:00
Paolo Carlini
da8c0ebea2 2.cc: New.
2006-08-28  Paolo Carlini  <pcarlini@suse.de>
	    Roger Sayle  <roger@eyesopen.com>

	* testsuite/25_algorithms/nth_element/2.cc: New.

Co-Authored-By: Roger Sayle <roger@eyesopen.com>

From-SVN: r116508
2006-08-28 13:26:22 +00:00
Jerry DeLisle
8d8e3aa02c re PR libfortran/28354 ([4.1 Only] 0.99999 printed as 0. instead of 1. by format(f3.0))
2006-08-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/28354
	* gfortran.dg/fmt_zero_precision.f90: New test.

From-SVN: r116503
2006-08-28 05:17:09 +00:00
Jerry DeLisle
20e1580fad re PR libfortran/28354 ([4.1 Only] 0.99999 printed as 0. instead of 1. by format(f3.0))
2006-08-27  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/28354
	* io/write.c: Check for special case of zero precision in format
	and pre-round the real value.

From-SVN: r116502
2006-08-28 05:14:05 +00:00
Roger Sayle
7f22b9fca4 ifcvt.c (cheap_bb_rtx_cost_p): Don't speculatively execute x87 instructions.
* ifcvt.c (cheap_bb_rtx_cost_p): Don't speculatively execute
	x87 instructions.

From-SVN: r116501
2006-08-28 00:58:47 +00:00
GCC Administrator
b27788aa43 Daily bump.
From-SVN: r116499
2006-08-28 00:17:25 +00:00
Ian Lance Taylor
5317e1c7a9 re PR driver/27622 (gcc hang when compiling with -pipe)
PR driver/27622
	* pex-common.h (struct pex_funcs): Add toclose parameter to
	exec_child field.
	* pex-common.c (pex_run_in_environment): Pass toclose to
	exec_child.
	* pex-djgpp.c (pex_djgpp_exec_child): Add toclose parameter.
	* pex-unix.c (pex_unix_exec_child): Likewise.
	* pex-msdos.c (pex_msdos_exec_child): Likewise.
	* pex-win32.c (pex_win32_exec_child): Likewise.

From-SVN: r116494
2006-08-27 23:50:30 +00:00
Ian Lance Taylor
022d41663d re PR other/28797 (Problems with demangling (__cxa_demangle()))
PR other/28797
	* cp-demangle.c (d_pointer_to_member_type): Do add a substitution
	for a qualified member which is not a function.
	* testsuite/demangle-expected: Add test case.

From-SVN: r116493
2006-08-27 21:42:55 +00:00