gcc.git
18 years agore PR c++/26573 (Duplicate message for static member in local class)
Lee Millward [Sun, 27 Aug 2006 15:22:05 +0000 (15:22 +0000)]
re PR c++/26573 (Duplicate message for static member in local class)

        PR c++/26573
        * class.c (check_field_decls): Don't issue error about
        local classes containing static data members.

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

From-SVN: r116490

18 years agore PR libstdc++/28830 (FAIL: tr1/2_general_utilities/memory/shared_ptr/thread/lockfre...
Paolo Carlini [Sun, 27 Aug 2006 15:19:23 +0000 (15:19 +0000)]
re PR libstdc++/28830 (FAIL: tr1/2_general_utilities/memory/shared_ptr/thread/lockfree_weaktoshared.cc)

2006-08-27  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/28830
* testsuite/tr1/2_general_utilities/memory/shared_ptr/thread/
lockfree_weaktoshared.cc: Rename to...
* testsuite/tr1/2_general_utilities/memory/shared_ptr/thread/
default_weaktoshared.cc: ... this; test the default base class.
* testsuite/tr1/2_general_utilities/memory/shared_ptr/thread/
mutex_weaktoshared.cc: Run like the other thread tests.

From-SVN: r116489

18 years ago* config/i386/crtfastmath.c: Fix a comment typo.
Kazu Hirata [Sun, 27 Aug 2006 06:46:38 +0000 (06:46 +0000)]
* config/i386/crtfastmath.c: Fix a comment typo.

From-SVN: r116487

18 years agoDaily bump.
GCC Administrator [Sun, 27 Aug 2006 00:17:22 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r116485

18 years agotree.h (CASE_LOW_SEEN, [...]): New macros for manipulating temporary visit flags...
Roger Sayle [Sat, 26 Aug 2006 23:51:14 +0000 (23:51 +0000)]
tree.h (CASE_LOW_SEEN, [...]): New macros for manipulating temporary visit flags on CASE_LABEL_EXPRs.

* tree.h (CASE_LOW_SEEN, CASE_HIGH_SEEN): New macros for manipulating
temporary visit flags on CASE_LABEL_EXPRs.
* c-common.c (match_case_to_enum): Add function comment.  Avoid
O(N) loop, by looking up both CASE_LOW_SEEN and CASE_HIGH_SEEN.
(c_do_switch_warnings):  Reorganize to record CASE_LOW_SEEN and
CASE_HIGH_SEEN for enumerated types.  If the switch expression is
a constant, only warn if that constant value isn't handled.

* gcc.dg/Wswitch-enum-2.c: New test case.
* gcc.dg/Wswitch-enum-3.c: Likewise.

From-SVN: r116481

18 years agoarith.h: Update Copyright dates.
Steven G. Kargl [Sat, 26 Aug 2006 21:55:28 +0000 (21:55 +0000)]
arith.h: Update Copyright dates.

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

* arith.h: Update Copyright dates.  Fix whitespace.
* arith.c: Update Copyright dates.  Fix whitespace.  Fix comments.
(gfc_arith_done_1): Clean up pedantic_min_int and subnormal.

From-SVN: r116480

18 years agore PR c++/24009 (C++ fails to print #include stack)
Joseph Myers [Sat, 26 Aug 2006 21:38:46 +0000 (22:38 +0100)]
re PR c++/24009 (C++ fails to print #include stack)

PR c++/24009
* input.h (restore_input_file_stack): Declare.
(INPUT_FILE_STACK_BITS): Define.
* toplev.c (fs_p, input_file_stack_history,
input_file_stack_restored, restore_input_file_stack): New.
(push_srcloc, pop_srcloc): Check for input_file_stack_tick
overflowing INPUT_FILE_STACK_BITS bits.  Save new state of stack.
(pop_srcloc): Don't free old state of stack.

cp:
* parser.c (struct cp_token): Add input_file_stack_index.
(eof_token): Update.
(cp_lexer_get_preprocessor_token): Save input_file_stack_tick.
(cp_lexer_set_source_position_from_token): Restore input file
stack.

From-SVN: r116479

18 years agore PR target/27544 (attribute altivec is not documented)
David Edelsohn [Sat, 26 Aug 2006 21:36:39 +0000 (21:36 +0000)]
re PR target/27544 (attribute altivec is not documented)

        PR target/27544
        * doc/extend.texi (PowerPC Variable Attributes): Mention altivec.
        (PowerPC Type Attributes): New.

From-SVN: r116478

18 years ago20060826-1.c: New testcase.
Richard Guenther [Sat, 26 Aug 2006 19:27:17 +0000 (19:27 +0000)]
20060826-1.c: New testcase.

2006-08-26  Richard Guenther  <rguenther@suse.de>

* gcc.c-torture/compile/20060826-1.c: New testcase.

From-SVN: r116477

18 years agore PR libgomp/25938 (libgomp installs header files in version and target independent...
Joseph Myers [Sat, 26 Aug 2006 18:30:44 +0000 (19:30 +0100)]
re PR libgomp/25938 (libgomp installs header files in version and target independent location)

PR libgomp/25938
* Makefile.am (libsubincludedir): New.
(nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
* Makefile.in: Regenerate.

From-SVN: r116475

18 years agore PR c++/28736 (ICE with friend of invalid template class)
Lee Millward [Sat, 26 Aug 2006 17:41:18 +0000 (17:41 +0000)]
re PR c++/28736 (ICE with friend of invalid template class)

        PR c++/28736
        PR c++/28737
        PR c++/28738
        * pt.c (process_template_parm): Store invalid template
        parameters as a TREE_LIST with a TREE_VALUE of error_mark_node.
        (push_inline_template_parms_recursive): Check for template
        parameters having a TREE_VALUE of error_mark_node rather than
        check the parameter itself.
        (mangle_class_name_for_template): Likewise.
        (comp_template_parms): When comparing the individual template
        parameters, return 1 if either is error_mark_node.
        (current_template_args): Robustify.
        (redeclare_class_template): Likewise.

        * g++.dg/template/void10.C: New test.
        * g++.dg/template/void8.C: New test.
        * g++.dg/template/void9.C: New test.

        * g++.dg/template/void3.C: Adjust error markers.
        * g++.dg/template/void4.C: Likewise.
        * g++.dg/template/crash55.C: Likewise.
        * g++.dg/template/void7.C: Likewise.

From-SVN: r116473

18 years agogfortran.texi: Note variable initialization causes SAVE attribute.
Steven G. Kargl [Sat, 26 Aug 2006 17:28:09 +0000 (17:28 +0000)]
gfortran.texi: Note variable initialization causes SAVE attribute.

2006-08-26  Tobias Burnus  <burnus@net-b.de>

    * gfortran.texi: Note variable initialization causes SAVE attribute.
    * intrinsic.texi: Clarify support for KIND=16 and KIND=10.
    Mention -std=f2003.  Cross reference INQUIRE from ACCESS intrinsic.
    Add missing ) in ACOS.

From-SVN: r116472

18 years agointrinsic.texi: Update Copyright date.
Daniel Franke [Sat, 26 Aug 2006 17:13:42 +0000 (13:13 -0400)]
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

18 years agoxtensa.c (function_arg_boundary): New.
Bob Wilson [Sat, 26 Aug 2006 17:03:22 +0000 (17:03 +0000)]
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

18 years agore PR c++/28588 (static private function)
Mark Mitchell [Sat, 26 Aug 2006 16:23:33 +0000 (16:23 +0000)]
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

18 years agore PR middle-end/28683 (ICE (segfault in add_reg_br_prob_note) when comparing pointer...
Jakub Jelinek [Sat, 26 Aug 2006 07:31:30 +0000 (09:31 +0200)]
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

18 years agore PR c++/28853 (ICE on invalid declaration with template template parameter)
Volker Reichelt [Sat, 26 Aug 2006 00:37:48 +0000 (00:37 +0000)]
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

18 years agore PR c++/28852 (ICE on invalid conversion operator)
Volker Reichelt [Sat, 26 Aug 2006 00:25:59 +0000 (00:25 +0000)]
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

18 years agoDaily bump.
GCC Administrator [Sat, 26 Aug 2006 00:23:22 +0000 (00:23 +0000)]
Daily bump.

From-SVN: r116460

18 years agoflow.c (verify_wide_reg): Use internal_error for consistency failure.
Volker Reichelt [Sat, 26 Aug 2006 00:17:10 +0000 (00:17 +0000)]
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

18 years agore PR c/27893 (ICE with TREE_CONSTANT VLA sizes inside functions)
Joseph Myers [Fri, 25 Aug 2006 23:01:16 +0000 (00:01 +0100)]
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

18 years agore PR middle-end/28814 (in compare_values, at tree-vrp.c:415)
Richard Guenther [Fri, 25 Aug 2006 22:01:28 +0000 (22:01 +0000)]
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

18 years ago[multiple changes]
Joseph Myers [Fri, 25 Aug 2006 21:14:24 +0000 (22:14 +0100)]
[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

18 years agore PR c/28299 (ICE with -Wmissing-prototypes)
Joseph Myers [Fri, 25 Aug 2006 21:11:46 +0000 (22:11 +0100)]
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

18 years agore PR target/28621 (SIGSEGV in set_fast_math () at -Os)
Jan Hubicka [Fri, 25 Aug 2006 20:39:48 +0000 (22:39 +0200)]
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

18 years agore PR target/27075 (Compiler generate incorrect assembler for __sync_fetch-* builtins...
Alan Modra [Fri, 25 Aug 2006 18:56:08 +0000 (18:56 +0000)]
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

18 years agore PR tree-optimization/16876 (ICE on testcase with -O3 in fold-const)
J"orn Rennecke [Fri, 25 Aug 2006 18:51:57 +0000 (18:51 +0000)]
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

18 years agotr1.html: Update.
Paolo Carlini [Fri, 25 Aug 2006 17:11:10 +0000 (17:11 +0000)]
tr1.html: Update.

2006-08-25  Paolo Carlini  <pcarlini@suse.de>

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

From-SVN: r116415

18 years agore PR c++/28056 (enum accepted as scope)
Mark Mitchell [Fri, 25 Aug 2006 17:04:35 +0000 (17:04 +0000)]
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

18 years agore PR c++/28056 (enum accepted as scope)
Mark Mitchell [Fri, 25 Aug 2006 17:03:50 +0000 (17:03 +0000)]
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

18 years agore PR c++/27787 (Qualified lookup fails to find inherited class template)
Nathan Sidwell [Fri, 25 Aug 2006 16:56:07 +0000 (16:56 +0000)]
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

18 years agoxtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Do not emit a literal_prefix directive.
Bob Wilson [Fri, 25 Aug 2006 16:13:54 +0000 (16:13 +0000)]
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

18 years agorandom (bernoulli_distribution::operator()): Fix wrt generators returning integers.
Paolo Carlini [Fri, 25 Aug 2006 16:02:23 +0000 (16:02 +0000)]
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

18 years agore PR middle-end/28753 (ICE in extract_insn, at recog.c:2075 on powerpc)
David Edelsohn [Fri, 25 Aug 2006 13:53:39 +0000 (13:53 +0000)]
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

18 years agotm.texi: Fix a typo.
Kazu Hirata [Fri, 25 Aug 2006 13:39:02 +0000 (13:39 +0000)]
tm.texi: Fix a typo.

* doc/tm.texi: Fix a typo.
* predict.c: Fix comment typos.

From-SVN: r116399

18 years agore PR testsuite/28829 (FAIL: gcc.dg/pr26570.c)
Richard Guenther [Fri, 25 Aug 2006 10:32:03 +0000 (10:32 +0000)]
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

18 years ago* config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add assertions of "cpu" and...
Nick Clifton [Fri, 25 Aug 2006 07:21:47 +0000 (07:21 +0000)]
* config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add assertions of "cpu" and "machine".

From-SVN: r116394

18 years agore PR tree-optimization/28807 (wrong code with may_alias and structs)
Andrew Pinski [Fri, 25 Aug 2006 07:13:48 +0000 (00:13 -0700)]
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

18 years agore PR driver/28528 (C language extensions override -x in C++ driver)
Danny Smith [Fri, 25 Aug 2006 00:24:10 +0000 (00:24 +0000)]
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

18 years agoDaily bump.
GCC Administrator [Fri, 25 Aug 2006 00:17:19 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r116390

18 years ago* doc/tm.texi (TARGET_DEFAULT_PACK_STRUCT): Fixed English.
Bill Wendling [Thu, 24 Aug 2006 19:45:30 +0000 (19:45 +0000)]
* doc/tm.texi (TARGET_DEFAULT_PACK_STRUCT): Fixed English.

From-SVN: r116385

18 years ago* reload1.c (emit_reload_insns): Fix yet another typo in my patch.
Jan Hubicka [Thu, 24 Aug 2006 19:43:43 +0000 (21:43 +0200)]
* reload1.c (emit_reload_insns): Fix yet another typo in my patch.

From-SVN: r116384

18 years agoprims.cc (remoteDebug): New global.
Keith Seitz [Thu, 24 Aug 2006 18:55:53 +0000 (18:55 +0000)]
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

18 years agore PR c++/27714 (operator new as friend in template class rejected)
Jason Merrill [Thu, 24 Aug 2006 15:54:39 +0000 (11:54 -0400)]
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

18 years agointrinsic.texi: Added doc-stubs for undocumented intrinsics...
Daniel Franke [Thu, 24 Aug 2006 14:43:42 +0000 (10:43 -0400)]
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

18 years agoNetworkInterface.java (getInetAddresses): Bracket IPv6 addresses.
Gary Benson [Thu, 24 Aug 2006 14:28:49 +0000 (14:28 +0000)]
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

18 years agore PR debug/26881 (internal compiler error in dwarf2out_finish)
Jan Hubicka [Thu, 24 Aug 2006 13:30:45 +0000 (15:30 +0200)]
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

18 years agore PR fortran/28788 (ICE on valid code)
Paul Thomas [Thu, 24 Aug 2006 04:47:28 +0000 (04:47 +0000)]
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

18 years agore PR fortran/28813 (gfortran.dg/direct_io_6.f90 can exhaust system disk space)
Jerry DeLisle [Thu, 24 Aug 2006 01:10:55 +0000 (01:10 +0000)]
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

18 years agoDaily bump.
GCC Administrator [Thu, 24 Aug 2006 00:17:30 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r116366

18 years agogfortran.texi: Fix last commit where a "no" was deleted and a grammatical error was...
Steven G. Kargl [Wed, 23 Aug 2006 23:41:19 +0000 (23:41 +0000)]
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

18 years agogfortran.texi: Spell check.
Steven G. Kargl [Wed, 23 Aug 2006 23:10:39 +0000 (23:10 +0000)]
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

18 years agopredict.c (probability_reliable_p): New predicate.
Jan Hubicka [Wed, 23 Aug 2006 22:29:14 +0000 (00:29 +0200)]
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

18 years ago* gnu/classpath/jdwp/VMVirtualMachine.java
Keith Seitz [Wed, 23 Aug 2006 22:18:08 +0000 (22:18 +0000)]
* gnu/classpath/jdwp/VMVirtualMachine.java
        (initialize): Declare.
        * gnu/classpath/jdwp/natVMVirtualMachine.cc
        (initialize): Get and save JVMTI environment.

From-SVN: r116357

18 years agore PR target/28825 (return (vector float) { a, a, b, b } generates unwanted MMX insns)
Stuart Hastings [Wed, 23 Aug 2006 21:41:35 +0000 (21:41 +0000)]
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

18 years agogcc.dg/attr-invalid.c: Insert an " |directive" substitution into
Danny Smith [Wed, 23 Aug 2006 18:30:57 +0000 (18:30 +0000)]
gcc.dg/attr-invalid.c:  Insert an " |directive" substitution into
dg-warning strings for dllimport.

From-SVN: r116355

18 years agore PR c++/28687 (dynamic_cast<void*> disallowed too rigorously with -fno-rtti)
Benjamin Smedberg [Wed, 23 Aug 2006 14:04:24 +0000 (14:04 +0000)]
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

18 years agoboost_shared_ptr.h: Added locking policy to tr1::shared_ptr<> and related classes.
Phillip Jordan [Wed, 23 Aug 2006 10:16:31 +0000 (10:16 +0000)]
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

18 years agore PR c++/23372 (Temporary aggregate copy not elided when passing parameters by value)
Jason Merrill [Wed, 23 Aug 2006 04:27:43 +0000 (00:27 -0400)]
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

18 years agore PR c++/28450 (ICE with new and complex/vector types)
Andrew Pinski [Wed, 23 Aug 2006 02:56:43 +0000 (02:56 +0000)]
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

18 years agoDaily bump.
GCC Administrator [Wed, 23 Aug 2006 00:18:08 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r116339

18 years agorandom.tcc (subtract_with_carry_01<>:: seed(_Gen&, false_type)): Fix _M_carry initial...
Paolo Carlini [Tue, 22 Aug 2006 22:57:53 +0000 (22:57 +0000)]
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

18 years agoadded locking policy to tr1::shared_ptr<> and related classes
Phillip Jordan [Tue, 22 Aug 2006 22:34:45 +0000 (22:34 +0000)]
added locking policy to tr1::shared_ptr<> and related classes

From-SVN: r116333

18 years agore PR libgcj/27890 (lib/logging.properties pollutes common namespace)
Thomas Fitzsimmons [Tue, 22 Aug 2006 20:37:36 +0000 (20:37 +0000)]
re PR libgcj/27890 (lib/logging.properties pollutes common namespace)

2006-08-22  Thomas Fitzsimmons  <fitzsim@redhat.com>

PR libgcj/27890
* gnu/classpath/natSystemProperties.cc (insertSystemProperties):
Set gnu.classpath.home.url to TOOLEXECLIBDIR.
* configure.ac: Do not add --with-native-libdir to
ac_configure_args.
* java/security/libgcj.security: Remove file.
* java/util/logging/logging.properties: Likewise.
* classpath/m4/acinclude.m4 (CLASSPATH_TOOLEXECLIBDIR): New macro.
* classpath/resource/Makefile.am (loggingdir): Define to
toolexeclibdir.
(securitydir): Likewise.
* classpath/configure.ac: Call CLASSPATH_TOOLEXECLIBDIR.
Set default nativeexeclibdir using toolexeclibdir.
* HACKING: Fix classpath aclocal arguments.
* Makefile.am (secdir): Remove variable.
(propdir): Likewise.
(AM_CXXFLAGS): Replace LIBDIR definition with TOOLEXECLIBDIR
definition.
(all_property_files): Remove variable.
(install-data-local): Do not install libgcj.security or
logging.properties.
* configure, Makefile.in, classpath/configure,
classpath/Makefile.in, classpath/native/jni/java-lang/Makefile.in,
classpath/native/jni/midi-alsa/Makefile.in,
classpath/native/jni/classpath/Makefile.in,
classpath/native/jni/midi-dssi/Makefile.in,
classpath/native/jni/Makefile.in,
classpath/native/jni/java-nio/Makefile.in,
classpath/native/jni/java-net/Makefile.in,
classpath/native/jni/gconf-peer/Makefile.in,
classpath/native/jni/java-io/Makefile.in,
classpath/native/jni/xmlj/Makefile.in,
classpath/native/jni/java-util/Makefile.in,
classpath/native/jni/qt-peer/Makefile.in,
classpath/native/jni/gtk-peer/Makefile.in,
classpath/native/Makefile.in, classpath/native/jawt/Makefile.in,
classpath/native/target/Linux/Makefile.in,
classpath/native/target/Makefile.in,
classpath/native/target/generic/Makefile.in,
classpath/native/fdlibm/Makefile.in,
classpath/native/plugin/Makefile.in,
classpath/resource/Makefile.in, classpath/scripts/Makefile.in,
classpath/tools/Makefile.in, classpath/doc/Makefile.in,
classpath/doc/api/Makefile.in, classpath/lib/Makefile.in,
classpath/external/Makefile.in,
classpath/external/sax/Makefile.in,
classpath/external/w3c_dom/Makefile.in,
classpath/external/relaxngDatatype/Makefile.in,
classpath/include/Makefile.in, classpath/aclocal.m4,
classpath/examples/Makefile.in, aclocal.m4: Regenerate.

From-SVN: r116332

18 years agoIndex: gcc/ChangeLog
Geoffrey Keating [Tue, 22 Aug 2006 19:16:03 +0000 (19:16 +0000)]
Index: gcc/ChangeLog
2006-08-21  Geoffrey Keating  <geoffk@apple.com>

PR debug/28692
* dwarf2out.c (rtl_for_decl_init): Don't try to create RTL for
complex values, nor for generic vector values.

Index: gcc/testsuite/ChangeLog
2006-08-21  Geoffrey Keating  <geoffk@apple.com>

PR debug/28692
* gcc.dg/debug/const-1.c: New.
* gcc.dg/debug/const-2.c: New.
* gcc.dg/debug/dwarf2/const-1.c: New.
* gcc.dg/debug/dwarf2/const-2.c: New.
* gcc.dg/debug/dwarf2/const-2b.c: New.

From-SVN: r116331

18 years agore PR c++/28420 (ICE with "typeid" as template parameter)
Simon Martin [Tue, 22 Aug 2006 18:51:40 +0000 (18:51 +0000)]
re PR c++/28420 (ICE with "typeid" as template parameter)

        PR c++/28420
        * parser.c (cp_parser_postfix_expression): Make sure that the
        saved value for parser->type_definition_forbidden_message is
        restored before returning to avoid an invalid free().

From-SVN: r116330

18 years agore PR c++/28659 (ICE (segfault) while compiling kdelibs 4.0 snapshot)
Jason Merrill [Tue, 22 Aug 2006 18:27:26 +0000 (14:27 -0400)]
re PR c++/28659 (ICE (segfault) while compiling kdelibs 4.0 snapshot)

        PR c++/28659
        * typeck.c (merge_types): If either of the types have the right
        attributes, return that one.

        * tree.c (cp_build_type_attribute_variant): Make sure we aren't
        doing this to class types.
        * typeck.c (original_type): Deal with type quals properly.

From-SVN: r116329

18 years ago2006-08-22 Paolo Carlini <pcarlini@suse.de>
Paolo Carlini [Tue, 22 Aug 2006 18:15:22 +0000 (18:15 +0000)]
2006-08-22  Paolo Carlini  <pcarlini@suse.de>

* Fix/complete last ChangeLog entry.

From-SVN: r116328

18 years agorandom (class subtract_with_carry_01): Add.
Paolo Carlini [Tue, 22 Aug 2006 18:07:55 +0000 (18:07 +0000)]
random (class subtract_with_carry_01): Add.

2006-08-22  Paolo Carlini  <pcarlini@suse.de>

* include/tr1/random (class subtract_with_carry_01): Add.
* include/tr1/random.tcc (subtract_with_carry_01<>::
seed(unsigned long), subtract_with_carry_01<>::
seed(_Gen&, false_type), subtract_with_carry_01<>::
operator(), operator<<(std::basic_ostream<>&, const
subtract_with_carry_01<>&), operator>>(std::basic_istream<>&,
subtract_with_carry_01<>&)): Define.
* testsuite/tr1/5_numerical_facilities/random/ranlux3_01.cc:
New.
* testsuite/tr1/5_numerical_facilities/random/ranlux4_01.cc:
Likewise.
* testsuite/tr1/5_numerical_facilities/random/
subtract_with_carry_01/cons/seed1.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/
subtract_with_carry_01/cons/seed2.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/
subtract_with_carry_01/cons/default.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/
subtract_with_carry_01/cons/gen1.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/
subtract_with_carry_01/requirements/typedefs.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/
subtract_with_carry_01/operators/equal.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/
subtract_with_carry_01/operators/not_equal.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/
subtract_with_carry_01/operators/serialize.cc: Likewise.

* docs/html/ext/howto.html: Add two implemented TR1 issues.

* include/tr1/random.tcc (struct _To_Unsigned_Type): Move...
* include/tr1/random: ... here.
(class subtract_with_carry): Use it everywhere.

* testsuite/tr1/5_numerical_facilities/random/
subtract_with_carry/cons/seed1.cc: Qualify 1 as 1UL.
* testsuite/tr1/5_numerical_facilities/random/
subtract_with_carry/cons/seed2.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/
subtract_with_carry/cons/default.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/
subtract_with_carry/cons/gen1.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/
subtract_with_carry/requirements/typedefs.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/
subtract_with_carry/operators/equal.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/
subtract_with_carry/operators/not_equal.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/
subtract_with_carry/operators/serialize.cc: Likewise.

From-SVN: r116327

18 years agore PR middle-end/28776 (dwarf2out.c:2160: ICE: in build_polynomial_chrec, at tree...
Richard Guenther [Tue, 22 Aug 2006 16:26:32 +0000 (16:26 +0000)]
re PR middle-end/28776 (dwarf2out.c:2160: ICE: in build_polynomial_chrec, at tree-chrec.h:108)

2006-08-22  Richard Guenther  <rguenther@suse.de>

PR middle-end/28776
* tree-scalar-evolution.c (fold_used_pointer): Add at_stmt
parameter.  Convert arguments to arithmetic expression to the
chrecs type.
(analyze_scalar_evolution_1): Adjust caller.

* gcc.c-torture/compile/pr28776-1.c: New testcase.
* gcc.c-torture/compile/pr28776-2.c: Likewise.

From-SVN: r116326

18 years agoPatch by Paolo Bonzini
Jan Hubicka [Tue, 22 Aug 2006 15:44:56 +0000 (17:44 +0200)]
Patch by Paolo Bonzini

Patch by Paolo Bonzini
* reload1.c (emit_reload_insns): Fix incorrect bracketing introduced by
my previous patch.

From-SVN: r116325

18 years agodecl.c (java_add_stmt): Give the statement list a type.
Andrew Haley [Tue, 22 Aug 2006 15:00:37 +0000 (15:00 +0000)]
decl.c (java_add_stmt): Give the statement list a type.

2006-08-22  Andrew Haley  <aph@redhat.com>

        * decl.c (java_add_stmt): Give the statement list a type.

From-SVN: r116324

18 years agore PR tree-optimization/28003 (optimizer bug)
Daniel Berlin [Tue, 22 Aug 2006 14:04:16 +0000 (14:04 +0000)]
re PR tree-optimization/28003 (optimizer bug)

2006-08-22  Daniel Berlin  <dberlin@dberlin.org>

PR tree-optimization/28003
* tree-ssa-alias.c (compute_may_aliases): Compute call clobbered
before grouping aliases.

From-SVN: r116323

18 years agoi386.c (ix86_value_regno): Don't return FIRST_MMX_REG if !TARGET_MMX...
Roger Sayle [Tue, 22 Aug 2006 12:42:41 +0000 (12:42 +0000)]
i386.c (ix86_value_regno): Don't return FIRST_MMX_REG if !TARGET_MMX...

* config/i386/i386.c (ix86_value_regno): Don't return FIRST_MMX_REG
if !TARGET_MMX, and don't return FIRST_SSE_REG if !TARGET_SSE.

From-SVN: r116321

18 years agoDaily bump.
GCC Administrator [Tue, 22 Aug 2006 00:18:26 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r116317

18 years agore PR libgcj/13212 (JNI/CNI AttachCurrentThread does not register thread with garbage...
Bryce McKinlay [Mon, 21 Aug 2006 22:07:30 +0000 (22:07 +0000)]
re PR libgcj/13212 (JNI/CNI AttachCurrentThread does not register thread with garbage collector)

boehm-gc
PR libgcj/13212:
* configure.ac: Check for pthread_getattr_np(). Remove
GC_PTHREAD_SYM_VERSION detection.
* include/gc.h (GC_register_my_thread, GC_unregister_my_thread,
GC_get_thread_stack_base): New declarations.
* pthread_support.c (GC_register_my_thread, GC_unregister_my_thread,
GC_get_thread_stack_base): New functions.
(GC_delete_thread): Don't try to free the first_thread.
* misc.c (GC_init_inner): Use GC_get_thread_stack_base() if possible.
(pthread_create_, constr): Removed.
(pthread_create): Don't rename.
* include/gc_ext_config.h.in: Rebuilt.
* include/gc_pthread_redirects.h (pthread_create): Define
unconditionally.
* include/gc_config.h.in: Rebuilt.
* configure: Rebuilt.
libjava
* java/lang/natThread.cc (_Jv_AttachCurrentThread): Attach thread
to GC.
(_Jv_DetachCurrentThread): Detach thread from GC.
* include/boehm-gc.h (_Jv_GCAttachThread, _Jv_GCDetachThread):
Declare.
* boehm.cc (_Jv_GCAttachThread): New function.
(_Jv_GCDetachThread): Likewise.

From-SVN: r116313

18 years agorevert accidental checkin of tests
Jason Merrill [Mon, 21 Aug 2006 20:56:28 +0000 (16:56 -0400)]
revert accidental checkin of tests

From-SVN: r116312

18 years agore PR c++/27115 (ICE in cp_expr_size or miscompilation with statement expressions...
Jason Merrill [Mon, 21 Aug 2006 20:54:57 +0000 (16:54 -0400)]
re PR c++/27115 (ICE in cp_expr_size or miscompilation with statement expressions and constructors (and ?: ))

        PR c++/27115
        * gimplify.c (voidify_wrapper_expr): Handle STATEMENT_LIST as a
        wrapper.  Loop to handle nested wrappers.
        (gimplify_bind_expr): Remove temp parameter.
        (gimplify_modify_expr_rhs): Handle CLEANUP_POINT_EXPR, BIND_EXPR
        and STATEMENT_LIST on the rhs.
        (gimplify_statement_list): Voidify the STATEMENT_LIST.
        (gimplify_expr): Pass pre_p to gimplify_statement_list.
        (gimplify_target_expr): Remove special BIND_EXPR handling.
        * cp/semantics.c (finish_stmt_expr_expr): Don't try to voidify here,
        just leave the expression as it is.
        (finish_stmt_expr): If the statement-expression has class type,
        wrap it in a TARGET_EXPR.
        * cp/cp-gimplify.c (cp_gimplify_init_expr): Don't bother with
        CLEANUP_POINT_EXPR.
        * cp/except.c (build_throw): Give the CLEANUP_POINT_EXPR void type.

From-SVN: r116311

18 years agoarm-vfp-unwind.C: Correct order of DejaGNU directives.
Mark Shinwell [Mon, 21 Aug 2006 19:15:15 +0000 (19:15 +0000)]
arm-vfp-unwind.C: Correct order of DejaGNU directives.

gcc/testsuite/
* g++.dg/eh/arm-vfp-unwind.C: Correct order of DejaGNU directives.

From-SVN: r116308

18 years agoFix typo from a previous commit
Lee Millward [Mon, 21 Aug 2006 18:43:36 +0000 (18:43 +0000)]
Fix typo from a previous commit

From-SVN: r116305

18 years agolib1funcs-Os-4-200.asm: Guard entire file with #if !__SHMEDIA__ .
J"orn Rennecke [Mon, 21 Aug 2006 18:07:00 +0000 (18:07 +0000)]
lib1funcs-Os-4-200.asm: Guard entire file with #if !__SHMEDIA__ .

* config/sh/lib1funcs-Os-4-200.asm: Guard entire file with
#if !__SHMEDIA__ .

From-SVN: r116304

18 years agore PR c++/28741 (ICE with static member in invalid template class)
Lee Millward [Mon, 21 Aug 2006 17:41:18 +0000 (17:41 +0000)]
re PR c++/28741 (ICE with static member in invalid template class)

        PR c++/28741
        * tree.c (decl_anon_ns_mem_p): Robustify.
        * decl2.c (determine_visibility): Likewise.

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

From-SVN: r116303

18 years agore PR c++/28505 (ICE with invalid constructors)
Lee Millward [Mon, 21 Aug 2006 17:34:44 +0000 (17:34 +0000)]
re PR c++/28505 (ICE with invalid constructors)

        PR c++/28505
        * decl.c (grokdeclarator): Return early after
        issuing diagnostic about an incomplete type.

        * g++.dg/parse/ctor7.C: New test.
        * g++.dg/parse/ctor8.C: Likewise.

From-SVN: r116302

18 years agore PR c++/26269 (Declaring a variable too late yields bogus error message)
Lee Millward [Mon, 21 Aug 2006 17:27:48 +0000 (17:27 +0000)]
re PR c++/26269 (Declaring a variable too late yields bogus error message)

        PR c++/26269
        * decl.c (duplicate_decls): Return early if either
        newdecl or olddecl is error_mark_node.

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

From-SVN: r116301

18 years agogimplify.c (gimplify_init_constructor): Arrange for the temporary captures of compone...
Olivier Hainque [Mon, 21 Aug 2006 16:01:03 +0000 (16:01 +0000)]
gimplify.c (gimplify_init_constructor): Arrange for the temporary captures of components overlapping the lhs to happen...

* gimplify.c (gimplify_init_constructor) <RECORD,UNION,ARRAY types>:
Arrange for the temporary captures of components overlapping the lhs
to happen before the lhs is possibly cleared.

testsuite/
* gnat.dg/self_aggregate_with_zeros.adb: New test.
* gnat.dg/self_aggregate_with_array.adb: New test.

From-SVN: r116300

18 years agodecContext.c (decContextSetStatusFromString): Constify.
Kaveh R. Ghazi [Mon, 21 Aug 2006 12:34:25 +0000 (12:34 +0000)]
decContext.c (decContextSetStatusFromString): Constify.

* decContext.c (decContextSetStatusFromString): Constify.
* decContext.h (decContextSetStatusFromString): Likewise.
* decNumber.c (decNumberFromString): Likewise.
* decNumber.h (decNumberFromString): Likewise.
* decimal128.c (decimal128FromString): Likewise.
* decimal128.h (decimal128FromString): Likewise.
* decimal32.c (decimal32FromString): Likewise.
* decimal32.h (decimal32FromString): Likewise.
* decimal64.c (decimal64FromString): Likewise.
* decimal64.h (decimal64FromString): Likewise.

From-SVN: r116296

18 years agopr-support.c (__gnu_unwind_execute): Insert " + 1" in necessary places to pass the...
Mark Shinwell [Mon, 21 Aug 2006 10:10:58 +0000 (10:10 +0000)]
pr-support.c (__gnu_unwind_execute): Insert " + 1" in necessary places to pass the correct "number of registers"...

gcc/
* config/arm/pr-support.c (__gnu_unwind_execute): Insert " + 1" in
necessary places to pass the correct "number of registers" values
to _Unwind_VRS_Pop.

gcc/testsuite/
  * g++.dg/eh/arm-vfp-unwind.C: New test.

From-SVN: r116291

18 years agotree-ssa-alias.c (eq_ptr_info, [...]): New function.
Jan Hubicka [Mon, 21 Aug 2006 01:53:11 +0000 (03:53 +0200)]
tree-ssa-alias.c (eq_ptr_info, [...]): New function.

* tree-ssa-alias.c (eq_ptr_info, ptr_info_hash): New function.
(create_name_tags): Instead of quadratic checking use hashtable.
* bitmap.h: Include hashtab.h.
(bitmap_hash): Declare.
* bitmap.c (bitmap_hash): New function.

From-SVN: r116285

18 years agore PR middle-end/28071 (A file that can not be compiled in reasonable time/space)
Jan Hubicka [Mon, 21 Aug 2006 01:42:39 +0000 (03:42 +0200)]
re PR middle-end/28071 (A file that can not be compiled in reasonable time/space)

PR rtl-optimization/28071
* tree-optimize.c (tree_rest_of_compilation): Do not remove edges
twice.
* tree-inline.c (copy_bb): Use cgraph_set_call_stmt.
* ipa-inline.c (cgraph_check_inline_limits): Add one_only argument.
(cgraph_decide_inlining, cgraph_decide_inlining_of_small_function,
cgraph_decide_inlining_incrementally): Update use of
cgraph_check_inline_limits.
* cgraph.c (edge_hash, edge_eq): New function.
(cgraph_edge, cgraph_set_call_stmt, cgraph_create_edge,
cgraph_edge_remove_caller, cgraph_node_remove_callees,
cgraph_remove_node): Maintain call site hash.
* cgraph.h (struct cgraph_node): Add call_site_hash.
(cgraph_set_call_stmt): New function.

From-SVN: r116284

18 years agoDaily bump.
GCC Administrator [Mon, 21 Aug 2006 00:17:33 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r116281

18 years agore PR middle-end/28071 (A file that can not be compiled in reasonable time/space)
Jan Hubicka [Mon, 21 Aug 2006 00:00:14 +0000 (02:00 +0200)]
re PR middle-end/28071 (A file that can not be compiled in reasonable time/space)

PR rtl-optimization/28071
* reload1.c (reg_has_output_reload): Turn into regset.
(reload_as_needed, forget_old_reloads_1, forget_marked_reloads,
choose_reload_regs, emit_reload_insns): Update to new
reg_has_output_reload.

From-SVN: r116277

18 years agore PR c++/28341 (ICE with references as template parameters)
Mark Mitchell [Sun, 20 Aug 2006 23:53:10 +0000 (23:53 +0000)]
re PR c++/28341 (ICE with references as template parameters)

PR c++/28341
* tree.c (cast_valid_in_integral_constant_expression_p): New
function.
* cp-tree.h (tsubst_copy_and_build): Adjust prototype.
* pt.c (tsubst_expr): Add integral_constant_expression_p
parameter.
(fold_non_dependent_expr): Adjust callers of
tsubst_{expr,copy_and_build}.
(tsubst_friend_function): Likewise.
(tsubst_template_arg): Likewise.
(tsubst_default_argument): Likewise.
(tsubst_decl): Likewise.
(tsubst): Likewise.
(tsubst_omp_clasuses): Likewise.
(regenerate_decl_fromp_template): Likewise.
(instantiate_decl): Likewise.
(tsubst_initializer_list): Likewise.
(tsubst_enum): Likewise.
(tsubst_expr): Use RECUR throughout.
(tsubst_copy_and_build): Change definition of RECUR.  Do not allow
invalid casts in integral constant expressions.
* parser.c (cp_parser_postfix_expression): Use
cast_valid_in_integral_constant_expression_p.
(cp_parser_cast_expression): Likewise.
(cp_parser_functional_cast): Likewise.

PR c++/28346
* pt.c (tsubst_qualified_id): Do not strip references from
OFFSET_REFs.

2006-08-20  Mark Mitchell  <mark@codesourcery.com>

PR c++/28341
* g++.dg/template/ref3.C: New test.
* g++.dg/template/nontype13.C: New test.

PR c++/28346
* g++.dg/template/ptrmem17.C: New test.

2006-08-20  Mark Mitchell  <mark@codesourcery.com>

* objcp-lang.c (objcp_tsubst_copy_and_build): Adjust call to
tsubst_copy_and_build.

From-SVN: r116276

18 years agore PR middle-end/28779 (internal compiler error: in cgraph_estimate_size_after_inlini...
Jan Hubicka [Sun, 20 Aug 2006 18:46:54 +0000 (18:46 +0000)]
re PR middle-end/28779 (internal compiler error: in cgraph_estimate_size_after_inlining, at ipa-inline.c:106)

PR middle-end/28779
* ipa-inline.c (cgraph_decide_inlining, cgraph_early_inlining): Compute
function body sizes.
* cgraphunit.c (cgraph_analyze_function): Don't do so.

From-SVN: r116274

18 years agorandom (gamma_distribution<>::_M_initialize, [...]): Add.
Paolo Carlini [Sun, 20 Aug 2006 16:05:05 +0000 (16:05 +0000)]
random (gamma_distribution<>::_M_initialize, [...]): Add.

2006-08-20  Paolo Carlini  <pcarlini@suse.de>

* include/tr1/random (gamma_distribution<>::_M_initialize,
gamma_distribution<>::_M_l_d): Add.
(gamma_distribution<>::gamma_distribution(const result_type&),
operator>>(std::basic_istream<>&, gamma_distribution&)): Use it.
include/tr1/random.tcc (gamma_distribution<>::_M_initialize):
Define.
(gamma_distribution<>::operator()): Adjust.

* include/tr1/random (geometric_distribution<>::_M_initialize): Add.
(geometric_distribution<>::geometric_distribution(const _RealType&),
operator>>(std::basic_istream<>&, geometric_distribution&)): Use it.

From-SVN: r116273

18 years agore PR fortran/25828 ([f2003] ACCESS='STREAM' io support)
Janne Blomqvist [Sun, 20 Aug 2006 09:22:04 +0000 (12:22 +0300)]
re PR fortran/25828 ([f2003] ACCESS='STREAM' io support)

2006-08-20  Janne Blomqvist  <jb@gcc.gnu.org>

PR fortran/25828
* gfortran.texi: Mention STREAM I/O among supported F2003
features.

From-SVN: r116271

18 years agoPR target/28648 c:
Danny Smith [Sun, 20 Aug 2006 08:46:13 +0000 (08:46 +0000)]
PR target/28648 c:

* tree.c (handle_dll_attribute): Return early if not a
    var or function decl.

testsuite
* gcc.dg/attr-invalid.c: Add tests for invalid dllimport.

From-SVN: r116270

18 years agore PR fortran/28601 (ICE on reexport of renamed type)
Paul Thomas [Sun, 20 Aug 2006 05:45:43 +0000 (05:45 +0000)]
re PR fortran/28601 (ICE on reexport of renamed type)

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

PR fortran/28601
PR fortran/28630
* gfortran.h : Eliminate gfc_dt_list structure and reference
to it in gfc_namespace.
* resolve.c (resolve_fl_derived): Remove the building of the
list of derived types for the current namespace.
* symbol.c (find_renamed_type): New function to find renamed
derived types by symbol name rather than symtree name.
(gfc_use_derived): Search parent namespace for identical
derived type and use it, even if local version is complete,
except in interface bodies. Ensure that renamed derived types
are found by call to find_renamed_type. Recurse for derived
type components.
(gfc_free_dt_list): Remove.
(gfc_free_namespace): Remove call to previous.
* trans-types.c (copy_dt_decls_ifequal): Remove.
(gfc_get_derived_type): Remove all the paraphenalia for
association of derived types, including calls to previous.
* match.c (gfc_match_allocate): Call gfc_use_derived to
associate any derived types that are being allocated.

PR fortran/20886
* resolve.c (resolve_actual_arglist): The passing of
a generic procedure name as an actual argument is an
error.

PR fortran/28735
* resolve.c (resolve_variable): Check for a symtree before
resolving references.

PR fortran/28762
* primary.c (match_variable): Return MATCH_NO if the symbol
is that of the program.

PR fortran/28425
* trans-expr.c (gfc_trans_subcomponent_assign): Translate
derived type component expressions other than another derived
type constructor.

PR fortran/28496
* expr.c (find_array_section): Correct errors in
the handling of a missing start value for the
index triplet in an array reference.

PR fortran/18111
* trans-decl.c (gfc_build_dummy_array_decl): Before resetting
reference to backend_decl, set it DECL_ARTIFICIAL.
(gfc_get_symbol_decl): Likewise for original dummy decl, when
a copy is made of an array.
(create_function_arglist): Likewise for the _entry paramter
in entry_masters.
(build_entry_thunks): Likewise for dummies in entry thunks.

PR fortran/28600
* trans-decl.c (gfc_get_symbol_decl): Ensure that the
DECL_CONTEXT of the length of a character dummy is the
same as that of the symbol declaration.

PR fortran/28771
* decl.c (add_init_expr_to_sym): Remove setting of charlen for
an initializer of an assumed charlen variable.

PR fortran/28660
* trans-decl.c (generate_expr_decls): New function.
(generate_dependency_declarations): New function.
(generate_local_decl): Call previous if not either a dummy or
a declaration in an entry master.

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

PR fortran/28630
* gfortran.dg/used_types_2.f90: New test.

PR fortran/28601
* gfortran.dg/used_types_3.f90: New test.

PR fortran/20886
* gfortran.dg/generic_actual_arg.f90: New test.

PR fortran/28735
* gfortran.dg/module_private_array_refs_1.f90: New test.

PR fortran/28762
* gfortran.dg/program_name_1.f90: New test.

PR fortran/28425
* gfortran.dg/derived_constructor_comps_1.f90: New test.

PR fortran/28496
* gfortran.dg/array_initializer_2.f90: New test.

PR fortran/18111
* gfortran.dg/unused_artificial_dummies_1.f90: New test.

PR fortran/28600
* gfortran.dg/assumed_charlen_function_4.f90: New test.

PR fortran/28771
* gfortran.dg/assumed_charlen_in_main.f90: New test.

PR fortran/28660
* gfortran.dg/dependent_decls_1.f90: New test.

From-SVN: r116268

18 years agoDaily bump.
GCC Administrator [Sun, 20 Aug 2006 00:17:25 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r116266

18 years agore PR fortran/25217 (Derived type dummy argument having intent(out) attribute)
Erik Edelmann [Sat, 19 Aug 2006 21:05:59 +0000 (21:05 +0000)]
re PR fortran/25217 (Derived type dummy argument having intent(out) attribute)

fortran/
2006-08-19  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/25217
        * resolve.c (resolve_fl_variable): Set a default initializer for
        derived types with INTENT(OUT) even if 'flag' is true.
        * trans-expr.c (gfc_conv_function_call): Insert code to
        reinitialize INTENT(OUT) arguments of derived type with default
        initializers.

testsuite/
2006-08-19  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/25217
        * gfortran.dg/derived_init_2.f90: New.

From-SVN: r116261

18 years agobacktrace.h (fallback_backtrace): Add "0x55 0x8B 0xEC" as another sequence that can...
Ranjit Mathew [Sat, 19 Aug 2006 15:35:11 +0000 (15:35 +0000)]
backtrace.h (fallback_backtrace): Add "0x55 0x8B 0xEC" as another sequence that can indicate a "pushl %ebp...

* sysdep/i386/backtrace.h (fallback_backtrace): Add "0x55 0x8B 0xEC"
as another sequence that can indicate a "pushl %ebp; movl %esp, %ebp"
function prologue.

From-SVN: r116258