Commit Graph

76212 Commits

Author SHA1 Message Date
Daniel Franke
fe2842665e intrinsic.texi: Update Copyright date.
2006-08-26  Daniel Franke <franke.daniel@gmail.com>

        * intrinsic.texi: Update Copyright date.  Added documentation
        for ACOSH, AND, ASINH, ATANH, CHDIR, FGET, FGETC, FPUT, FPUTC,
        GETCWD, OR and XOR intrinsics, removed inadvertently introduced
        doc-stubs for EQV and NEQV, corrected some typographical errors.

From-SVN: r116470
2006-08-26 17:13:42 +00:00
Bob Wilson
d234898598 xtensa.c (function_arg_boundary): New.
* config/xtensa/xtensa.c (function_arg_boundary): New.
	(function_arg, xtensa_gimplify_va_arg_expr): Limit alignment to 
	STACK_BOUNDARY.
	* config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Move code to new
	function_arg_boundary function that limits alignment to STACK_BOUNDARY.

From-SVN: r116469
2006-08-26 17:03:22 +00:00
Mark Mitchell
eff3a27644 re PR c++/28588 (static private function)
PR c++/28588
	* class.c (resolve_address_of_overloaded_function): Add
	access_path parameter.  Perform access checks.
	(instantiate_type): Adjust call to
	resolve_address_of_overloaded_function.  Remove unnecessary code.
	* tree.c (is_overloaded_fn): Document.  Return 2 when there are
	acutally multiple functions.
	(really_overloaded_fn): Use is_overloaded_fn.
	* mangle.c (write_expression): Handle BASELINKs.
	* cp-tree.h (really_overloaded_fn): Return bool.
	(baselink_for_fns): Declare.
	* search.c (lookup_member): Check access for single static
	functions here.
	* pt.c (convert_nontype_argument_function): Handle BASELINKs.
	(tsubst_copy_and_build): Generate BASELINKs for template-ids.
	* semantics.c (finish_call_expr): Use baselink_for_fns.
	(baselink_for_fns): New function.
	(finish_id_expression): Use it.
	* parser.c (cp_parser_template_argument): Don't strip BASELINKs.
	PR c++/28595
	* pt.c (tsubst): Issue errors about attempts to create VLAs at
	template-instantiation time.
	PR c++/28588
	* g++.dg/inherit/access6.C: New test.
	* g++.dg/inherit/access7.C: Likewise.
	PR c++/28595
	* g++.dg/template/array15.C: New test.
	* g++.dg/template/crash2.C: Tweak error markers.

From-SVN: r116468
2006-08-26 16:23:33 +00:00
Jakub Jelinek
fa1ff4eb8c re PR middle-end/28683 (ICE (segfault in add_reg_br_prob_note) when comparing pointers with -O (and higher))
PR middle-end/28683
	* cfgexpand.c (add_reg_br_prob_note): Check if last has exactly
	3 following insns.

	* gcc.c-torture/compile/20060823-1.c: New test.

From-SVN: r116467
2006-08-26 09:31:30 +02:00
Volker Reichelt
7acf7efa89 re PR c++/28853 (ICE on invalid declaration with template template parameter)
PR c++/28853
	* typeck2.c (cxx_incomplete_type_diagnostic): Handle template
	template parameters.  Improve error message for template type
	parameters.

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

From-SVN: r116464
2006-08-26 00:37:48 +00:00
Volker Reichelt
398cd19904 re PR c++/28852 (ICE on invalid conversion operator)
PR c++/28852
	* cp-tree.h (grok_op_properties): Return bool instead of void.
	* decl.c (grokfndecl): Discard invalid operator declarations.
	(copy_fn_p): Revert change for PR 27547.
	(grok_op_properties): Return error status (true on success).
	* pt.c (tsubst_decl): Discard invalid operator declarations.

	* g++.dg/other/operator1.C: Add error-marker.
	* g++.dg/other/operator2.C: New test.

From-SVN: r116463
2006-08-26 00:25:59 +00:00
GCC Administrator
b30409daca Daily bump.
From-SVN: r116460
2006-08-26 00:23:22 +00:00
Volker Reichelt
75a83c65c0 flow.c (verify_wide_reg): Use internal_error for consistency failure.
* flow.c (verify_wide_reg): Use internal_error for consistency failure.
	(verify_local_live_at_start): Likewise.

From-SVN: r116455
2006-08-26 00:17:10 +00:00
Joseph Myers
4c923c2847 re PR c/27893 (ICE with TREE_CONSTANT VLA sizes inside functions)
PR c/27893
	* gimplify.c (gimplify_decl_expr, gimplify_init_ctor_preeval,
	omp_add_variable): Treat sizes as variable whenever not
	INTEGER_CST.

testsuite:
	* gcc.c-torture/compile/vla-const-1.c,
	gcc.c-torture/compile/vla-const-2.c: New tests.

From-SVN: r116450
2006-08-26 00:01:16 +01:00
Richard Guenther
459881189a re PR middle-end/28814 (in compare_values, at tree-vrp.c:415)
2006-08-26  Richard Guenther  <rguenther@suse.de>

	PR middle-end/28814
	* fold-const.c (fold_binary): Fold temporary to correct
	type before constructing new comparison.

	* gcc.dg/torture/pr28814.c: New testcase.

From-SVN: r116439
2006-08-25 22:01:28 +00:00
Joseph Myers
a942cc86f8 [multiple changes]
2006-08-25  Fariborz Jahanian  <fjahanian@apple.com>

	PR c/28418
	* c-gimplify.c (gimplify_compound_literal_expr): Don't add
	variable again if DECL_SEEN_IN_BIND_EXPR_P.

2006-08-25  Joseph S. Myers  <joseph@codesourcery.com>

	* gcc.c-torture/compile/compound-literal-1.c: New test.

From-SVN: r116436
2006-08-25 22:14:24 +01:00
Joseph Myers
d8890adf28 re PR c/28299 (ICE with -Wmissing-prototypes)
PR c/28299
	* c-decl.c (start_function): Don't try to process prototype
	information from old declaration that isn't a function.

testsuite:
	* gcc.dg/funcdef-var-1.c, gcc.dg/funcdef-var-2.c: New tests.
	* gcc.dg/pr20368-1.c, gcc.dg/pr20368-2.c, gcc.dg/pr20368-3.c:
	Expect extra diagnostics.

From-SVN: r116435
2006-08-25 22:11:46 +01:00
Jan Hubicka
02709c7f68 re PR target/28621 (SIGSEGV in set_fast_math () at -Os)
2006-08-25  Jan Hubicka  <jh@suse.cz>

	PR target/28621
	* config/i386/crtfastmath.c (set_fast_math): Force stack alignment.

From-SVN: r116431
2006-08-25 20:39:48 +00:00
Alan Modra
90d3ff1c72 re PR target/27075 (Compiler generate incorrect assembler for __sync_fetch-* builtins on e500 aka SPE)
PR target/27075
        * config/rs6000/rs6000.c (print_operand): Only use e500 %y syntax
        for 8 byte objects.

From-SVN: r116425
2006-08-25 14:56:08 -04:00
J"orn Rennecke
e88e0907bd re PR tree-optimization/16876 (ICE on testcase with -O3 in fold-const)
gcc:
	PR tree-optimization/16876
	* c-typeck.c (c_convert_parm_for_inlining): Don't take early
	exit if PARM doesn't match VALUE.

testsuite:
	gcc.dg/noncompile/pr16876.c: New test.

From-SVN: r116424
2006-08-25 19:51:57 +01:00
Paolo Carlini
d718b7aae7 tr1.html: Update.
2006-08-25  Paolo Carlini  <pcarlini@suse.de>

	* docs/html/ext/tr1.html: Update.

From-SVN: r116415
2006-08-25 17:11:10 +00:00
Mark Mitchell
c054c3642a re PR c++/28056 (enum accepted as scope)
PR c++/28056
	* g++.dg/parse/local1.C: New test.
	* g++.dg/other/qual1.C: Tweak error marker.

From-SVN: r116411
2006-08-25 17:04:35 +00:00
Mark Mitchell
2884e22c4b re PR c++/28056 (enum accepted as scope)
PR c++/28056
	* decl.c (grokdeclarator): Disallow declarations with qualified
	names in local scopes.
	PR c++/28056
	* g++.dg/parse/local1.C: New test.

From-SVN: r116410
2006-08-25 17:03:50 +00:00
Nathan Sidwell
7d3bec9db5 re PR c++/27787 (Qualified lookup fails to find inherited class template)
cp/
	PR c++/27787
	* decl.c (make_typename_type): Only try and resolve it when
	context is not dependent.  Refactor.
	* decl2.c (check_classfn): Push to class scope before looking for
	the function.
testsuite/
	PR c++/27787
	* g++.dg/template/typename10.C: New.
	* g++.dg/template/lookup4.C: Remove bogus error marker.

From-SVN: r116409
2006-08-25 16:56:07 +00:00
Bob Wilson
9eb8a531c0 xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Do not emit a literal_prefix directive.
* config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Do not emit a
	literal_prefix directive.
	(XTENSA_DECLARE_FUNCTION_SIZE): Delete.
	* config/xtensa/linux.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
	* config/xtensa/elf.h (ASM_DECLARE_FUNCTION_SIZE): Delete.

From-SVN: r116403
2006-08-25 16:13:54 +00:00
Paolo Carlini
7849b3de89 random (bernoulli_distribution::operator()): Fix wrt generators returning integers.
2006-08-25  Paolo Carlini  <pcarlini@suse.de>

        * include/tr1/random (bernoulli_distribution::operator()): Fix
        wrt generators returning integers.
	(uniform_int<>::_M_call): Add.
	(uniform_int<>::operator()): Use it.

	* include/tr1/random (_Adaptor<>::min, _Adaptor<>::max): Add.
	(_Adaptor<>::operator()): Allow for nonzero _M_g.min().

	* include/tr1/random.tcc (linear_congruential<>::min, max):
	Move inline...
	(__mod): Move ...
	* include/tr1/random: ... here.
	(struct _Mod): Declare.

	* include/tr1/random (struct _To_Unsigned_Type): Only declare,
	move...
	* include/tr1/random.tcc: ... here.

From-SVN: r116402
2006-08-25 16:02:23 +00:00
David Edelsohn
4eb585a473 re PR middle-end/28753 (ICE in extract_insn, at recog.c:2075 on powerpc)
PR target/28753
        * config/rs6000/rs6000.md (movcc_internal1): Change operand 1
        predicate to general_operand.  Add 0->y and I->r alternatives.

From-SVN: r116400
2006-08-25 09:53:39 -04:00
Kazu Hirata
86c33cd0fb tm.texi: Fix a typo.
* doc/tm.texi: Fix a typo.
	* predict.c: Fix comment typos.

From-SVN: r116399
2006-08-25 13:39:02 +00:00
Richard Guenther
17daa4c8ba re PR testsuite/28829 (FAIL: gcc.dg/pr26570.c)
2006-08-25  Richard Guenther  <rguenther@suse.de>

	PR testsuite/28829
	* gcc.dg/pr26570.c: Fix testcase.

From-SVN: r116395
2006-08-25 10:32:03 +00:00
Nick Clifton
816e93eb33 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add assertions of "cpu" and "machine".
From-SVN: r116394
2006-08-25 07:21:47 +00:00
Andrew Pinski
aa666e0063 re PR tree-optimization/28807 (wrong code with may_alias and structs)
2006-08-24  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/28807
        * tree-ssa-operands.c (access_can_touch_variable): Don't say
        the access through a base which has an alias set of 0 cannot
        touch the variable.

2006-08-24  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/28807
        * gcc.c-torture/execute/mayalias-2.c: New test.
        * gcc.dg/tree-ssa/alias-13.c: New test.

From-SVN: r116393
2006-08-25 00:13:48 -07:00
Danny Smith
a073516d43 re PR driver/28528 (C language extensions override -x in C++ driver)
PR driver/28528
	* g++spec.c (lang_specific_driver): Always check if we need to
	swallow a space-separated  arg to '-x'.
	* lang-specs.h: Don't create ouput files for '-xc++-header'
	if -fsyntax-only.

From-SVN: r116392
2006-08-25 00:24:10 +00:00
GCC Administrator
df1195dbc5 Daily bump.
From-SVN: r116390
2006-08-25 00:17:19 +00:00
Bill Wendling
8b7d430070 * doc/tm.texi (TARGET_DEFAULT_PACK_STRUCT): Fixed English.
From-SVN: r116385
2006-08-24 19:45:30 +00:00
Jan Hubicka
7ef701a84a * reload1.c (emit_reload_insns): Fix yet another typo in my patch.
From-SVN: r116384
2006-08-24 19:43:43 +00:00
Keith Seitz
b8caf93e7d prims.cc (remoteDebug): New global.
* prims.cc (remoteDebug): New global.
        (jdwpOptions): New global.
        (parse_x_arg): Add processing for "X" options "debug" and
        "runjdwp:"
        (_Jv_RunMain): If debugging, start up JDWP backend.
        Send VM_INIT and VM_DEATH when appropriate.

From-SVN: r116383
2006-08-24 18:55:53 +00:00
Jason Merrill
c9cbfca6f5 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: r116379
2006-08-24 11:54:39 -04:00
Daniel Franke
cd051390eb intrinsic.texi: Added doc-stubs for undocumented intrinsics...
2006-08-24  Daniel Franke <franke.daniel@gmail.com>,
             Brooks Moses <bmoses@stanford.edu>

       * intrinsic.texi: Added doc-stubs for undocumented intrinsics,
         added a "See Also" section, renamed the "Options" section to
         "Standard", improved the index, and made numerous minor
         typo corrections and grammatical fixes.

Co-Authored-By: Brooks Moses <bmoses@stanford.edu>

From-SVN: r116376
2006-08-24 14:43:42 +00:00
Gary Benson
9f858b0703 NetworkInterface.java (getInetAddresses): Bracket IPv6 addresses.
2006-08-24  Gary Benson  <gbenson@redhat.com>

	* java/net/NetworkInterface.java (getInetAddresses): Bracket IPv6
	addresses.

From-SVN: r116375
2006-08-24 14:28:49 +00:00
Jan Hubicka
a418679d8d re PR debug/26881 (internal compiler error in dwarf2out_finish)
PR debug/26881
	* cgraph.c: Fix comments.
	(cgraph_varpool_mark_needed_node): Mark only variables not already
	output to file.
	* cgraphunit.c: Update comments; include gt-cgraphunit.h
	(cgraph_varpool_assembled_nodes_queue): New static variable.
	(cgraph_varpool_assemble_decl): Record output decls for debug out code.
	(cgraph_varpool_output_debug_info): New function.
	(cgraph_finalize_compilation_unit, cgraph_optimize): Call it.
	* Makefile.in: Add gt-cgraphunit.h
	* gcc.dg/debug/pr26881.c: New file.

From-SVN: r116374
2006-08-24 13:30:45 +00:00
Paul Thomas
96f4873b16 re PR fortran/28788 (ICE on valid code)
2006-08-23  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/28788
	* gfortran.dg/used_types_4.f90: New test.
	* gfortran.dg/derived_init_2.f90: Modify to check sibling
	association of derived types.
	* gfortran.dg/used_types_2.f90: Add module cleanup.
	* gfortran.dg/used_types_3.f90: The same.

	PR fortran/28771
	* gfortran.dg/assumed_charlen_in_main.f90: Modify to check
	fix of regression.

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

	PR fortran/28788
	* gfortran.dg/used_types_4.f90: New test.
	* gfortran.dg/derived_init_2.f90: Modify to check sibling
	association of derived types.
	* gfortran.dg/used_types_2.f90: Add module cleanup.
	* gfortran.dg/used_types_3.f90: The same.

	PR fortran/28771
	* gfortran.dg/assumed_charlen_in_main.f90: Modify to check
	fix of regression.

From-SVN: r116369
2006-08-24 04:47:28 +00:00
Jerry DeLisle
664ee581a8 re PR fortran/28813 (gfortran.dg/direct_io_6.f90 can exhaust system disk space)
2006-08-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR 28813
	* gfortran.dg/direct_io_6.f90: Remove test.

From-SVN: r116368
2006-08-24 01:10:55 +00:00
GCC Administrator
86de7c28e7 Daily bump.
From-SVN: r116366
2006-08-24 00:17:30 +00:00
Steven G. Kargl
ed499b9f53 gfortran.texi: Fix last commit where a "no" was deleted and a grammatical error was introduced.
2006-08-23  Steven G. Kargl  <kargls@comcast.net>

	* gfortran.texi:  Fix last commit where a "no" was deleted and
	a grammatical error was introduced.

From-SVN: r116362
2006-08-23 23:41:19 +00:00
Steven G. Kargl
deeddce62f gfortran.texi: Spell check.
2006-08-23  Steven G. Kargl  <kargls@comcast.net>

	* gfortran.texi:  Spell check.  Add a few contributors to
	Chapter 9.  Expand the description of BOZ constant handling.

From-SVN: r116361
2006-08-23 23:10:39 +00:00
Jan Hubicka
2c9e13f37d predict.c (probability_reliable_p): New predicate.
* predict.c (probability_reliable_p): New predicate.
	(edge_probability_reliable_p, br_prob_note_reliable_p): Likewise.
	(predict_loops): Do not predict loop exit with less than 2%
	probability.
	* basic-block.h (edge_probability_reliable_p,
	br_prob_note_reliable_p): Declare.
	* ia64.h (ia64_print_operand): Do not disable on-chip branch
	prediction when static predictor is not reliable.
	* rs6000.c (output_cbranch): Likewise.

From-SVN: r116358
2006-08-23 22:29:14 +00:00
Keith Seitz
a4d0390b44 * gnu/classpath/jdwp/VMVirtualMachine.java
(initialize): Declare.
        * gnu/classpath/jdwp/natVMVirtualMachine.cc
        (initialize): Get and save JVMTI environment.

From-SVN: r116357
2006-08-23 22:18:08 +00:00
Stuart Hastings
12b3553fe4 re PR target/28825 (return (vector float) { a, a, b, b } generates unwanted MMX insns)
PR 28825
	* gcc/config/i386/i386.c (ix86_expand_vector_init_duplicate,
	ix86_expand_vector_init_one_nonzero): Remove TARGET_SSE test.
	* gcc.target/i386/20060821-1.c: New.

From-SVN: r116356
2006-08-23 21:41:35 +00:00
Danny Smith
b2742484fc gcc.dg/attr-invalid.c: Insert an " |directive" substitution into
dg-warning strings for dllimport.

From-SVN: r116355
2006-08-23 18:30:57 +00:00
Benjamin Smedberg
6c9384c3c0 re PR c++/28687 (dynamic_cast<void*> disallowed too rigorously with -fno-rtti)
PR c++/28687
        * rtti.c (build_dynamic_cast, build_dynamic_cast_1):
        Move -fno-rtti check to be more specific.

From-SVN: r116350
2006-08-23 10:04:24 -04:00
Phillip Jordan
3467cfd982 boost_shared_ptr.h: Added locking policy to tr1::shared_ptr<> and related classes.
2006-08-22  Phillip Jordan  <phillip.m.jordan@gmail.com>

	*include/tr1/boost_shared_ptr.h: Added locking policy to
	tr1::shared_ptr<> and related classes.
	* testsuite/tr1/2_general_utilities/memory/shared_ptr/thread: New.
	* testsuite/tr1/2_general_utilities/memory/shared_ptr/thread/
	lockfree_weaktoshared.cc: New.
	* testsuite/tr1/2_general_utilities/memory/shared_ptr/thread/
	mutex_weaktoshared.cc: New.
	*testsuite/tr1/2_general_utilities/memory/shared_ptr/assign/
	shared_ptr_neg.cc: Modify.

From-SVN: r116345
2006-08-23 10:16:31 +00:00
Jason Merrill
a5c4274085 re PR c++/23372 (Temporary aggregate copy not elided when passing parameters by value)
PR c++/23372
        * call.c (build_over_call): Don't make a copy here if build_call
        will make one too.

From-SVN: r116342
2006-08-23 00:27:43 -04:00
Andrew Pinski
c846e8cd67 re PR c++/28450 (ICE with new and complex/vector types)
2006-08-21  Andrew Pinski  <pinskia@physics.uc.edu>

        PR C++/28450
        * cp/init.c (build_zero_init): Handle VECTOR_TYPE and
        COMPLEX_TYPEs.


2006-08-21  Andrew Pinski  <pinskia@physics.uc.edu>

        PR C++/28450
        * g++.dg/ext/vector4.C: New test.
        * g++.dg/ext/complex1.C: New test.

From-SVN: r116341
2006-08-22 19:56:43 -07:00
GCC Administrator
bee7c39239 Daily bump.
From-SVN: r116339
2006-08-23 00:18:08 +00:00
Paolo Carlini
53fdb33908 random.tcc (subtract_with_carry_01<>:: seed(_Gen&, false_type)): Fix _M_carry initialization.
2006-08-22  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/random.tcc (subtract_with_carry_01<>::
      	seed(_Gen&, false_type)): Fix _M_carry initialization.
	
	* testsuite/tr1/5_numerical_facilities/random/
	subtract_with_carry/cons/default.cc: Qualify 1 as 1UL.
	* testsuite/tr1/5_numerical_facilities/random/
	subtract_with_carry/cons/gen1.cc: Likewise.

From-SVN: r116334
2006-08-22 22:57:53 +00:00