aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2006-10-04[multiple changes]Paul Thomas4-1/+38
2006-10-04 Paul Thomas <pault@gcc.gnu.org> PR fortran/29343 * resolve.c (resolve_allocate_expr): Exclude derived types from search for dependences between allocated variables and the specification expressions for other allocations in the same statement. 2006-10-04 Paul Thomas <pault@gcc.gnu.org> PR fortran/29343 * gfortran.dg/alloc_alloc_expr_2.f90: New test. From-SVN: r117435
2006-10-04Fix bug in constraint-check generator, reported by Rask Ingemann Lambertsen:Zack Weinberg2-11/+25
Fix bug in constraint-check generator, reported by Rask Ingemann Lambertsen: * genpreds.c (add_constraint): Don't remove anything from the expression here. (write_tm_constrs_h): Detect whether "op" argument is used, and mark it ARG_UNUSED if it isn't. (write_insn_const_int_ok_for_constraint): Skip the part of the expression that would test whether "op" (which is not available here) is a CONST_INT. From-SVN: r117433
2006-10-04* gfortran.dg/bounds_check_fail_1.f90: New test.Francois-Xavier Coudert2-0/+11
From-SVN: r117431
2006-10-04re PR c++/28448 (doc reference to -fdiagnostics-show-options looks like it ↵Ryan Mansfield2-3/+8
should be -fdiagnostics-show-option) 2006-10-02 Ryan Mansfield <rmansfield@qnx.com> PR c++/28448 * doc/invoke.texi (fdiagnostics-show-option): Fix typos. From-SVN: r117429
2006-10-042.cc: Fail on Darwin 8.[0-4].* only.Benjamin Kosnik3-6/+14
2006-10-04 Benjamin Kosnik <bkoz@redhat.com> Mike Stump <mrs@apple.com> * testsuite/27_io/ios_base/storage/2.cc: Fail on Darwin 8.[0-4].* only. * testsuite/23_containers/vector/resize/1.cc: Same. Co-Authored-By: Mike Stump <mrs@apple.com> From-SVN: r117428
2006-10-04pop_test.hpp: Correct typo.Benjamin Kosnik4-9/+29
2006-10-04 Benjamin Kosnik <bkoz@redhat.com> * testsuite/util/performance/priority_queue/mem_usage/ pop_test.hpp: Correct typo. * testsuite/util/performance/assoc/mem_usage/ multimap_insert_test.hpp: Same. * testsuite/util/performance/assoc/mem_usage/erase_test.hpp: Same. From-SVN: r117427
2006-10-04re PR c++/29020 (ICE using A<N>::A instead of A<N> in friend declaration)Mark Mitchell5-13/+41
PR c++/29020 * friend.c (do_friend): Improve comments; add assertion. * parser.c (cp_parser_nested_name_specifier_opt): Resolve typenames for qualified names used in declarations, even when caching qualified name lookup. PR c++/29020 * g++.dg/template/friend48.C: New test. From-SVN: r117425
2006-10-04re PR fortran/29098 (allocation of a pointer to a derived type crashes)Paul Thomas4-4/+48
2006-10-04 Paul Thomas <pault@gcc.gnu.org> PR fortran/29098 * resolve.c (resolve_structure_cons): Do not return FAILURE if component expression is NULL. 2006-10-04 Paul Thomas <pault@gcc.gnu.org> PR fortran/29098 * gfortran.dg/default_initialization_2.f90: New test. From-SVN: r117424
2006-10-04darwin-libgcc.10.5.ver: Update to symbol list for current Leopard versions.Geoffrey Keating3-0/+14
* config/i386/darwin-libgcc.10.5.ver: Update to symbol list for current Leopard versions. * config/rs6000/darwin-libgcc.10.5.ver: Likewise. From-SVN: r117423
2006-10-04Daily bump.GCC Administrator1-1/+1
From-SVN: r117421
2006-10-03re PR fortran/20779 (ALLOCATEing the STAT variable not detected)Paul Thomas4-18/+171
2006-10-03 Paul Thomas <pault@gcc.gnu.org> PR fortran/20779 PR fortran/20891 * resolve.c (find_sym_in_expr): New function that returns true if a symbol is found in an expression. (resolve_allocate_expr): Check whether the STAT variable is itself allocated in the same statement. Use the call above to check whether any of the allocated arrays are used in array specifications in the same statement. 2006-10-03 Paul Thomas <pault@gcc.gnu.org> PR fortran/20779 PR fortran/20891 * gfortran.dg/alloc_alloc_expr_1.f90: New test. From-SVN: r117415
2006-10-03arith.c (gfc_check_real_range): Use correct exponent range for subnormal ↵Steven G. Kargl2-2/+9
numbers. 2006-10-03 Steven G. Kargl <kargl@gcc.gnu.org> * arith.c (gfc_check_real_range): Use correct exponent range for subnormal numbers. From-SVN: r117414
2006-10-03re PR fortran/29284 (ICE for optional subroutine argument)Paul Thomas7-29/+176
2006-10-03 Paul Thomas <pault@gcc.gnu.org> PR fortran/29284 PR fortran/29321 PR fortran/29322 * trans-expr.c (gfc_conv_function_call): Check the expression and the formal symbol are present when testing the actual argument. PR fortran/25091 PR fortran/25092 * resolve.c (resolve_entries): It is an error if the entries of an array-valued function do not have the same shape. 2006-10-03 Paul Thomas <pault@gcc.gnu.org> PR fortran/29284 * gfortran.dg/optional_assumed_charlen_1.f90: New test. PR fortran/29321 PR fortran/29322 * gfortran.dg/missing_optional_dummy_2.f90: New test. PR fortran/25091 PR fortran/25092 * gfortran.dg/entry_array_specs_1.f90: New test. From-SVN: r117413
2006-10-03nearest_1.f90: Add -O0 because -ffloat-store is insufficient to inhibit some ↵Steven G. Kargl2-2/+11
test failures at -O3. 2006-10-03 Steven G. Kargl <kargl@gcc.gnu.org> * gfortran.dg/nearest_1.f90: Add -O0 because -ffloat-store is insufficient to inhibit some test failures at -O3. Do testing on integers. From-SVN: r117412
2006-10-03re PR c++/29138 (access declarations don't work for classes)Mark Mitchell1-0/+4
PR c++/29138 * decl2.c (grokfield): Don't handle access declarations here. * parser.c (cp_parser_using_declaration): Handle access declarations too. (cp_parser_block_declaration): Adjust calls to cp_parser_using_declaration. (cp_parser_member_declaration): Likewise. Use cp_parser_using_declaration to look for access_declarations. PR c++/29138 * g++.dg/inherit/access8.C: New test. * g++.dg/template/dtor4.C: Tweak error messages. From-SVN: r117411
2006-10-03re PR c++/29138 (access declarations don't work for classes)Mark Mitchell6-31/+89
PR c++/29138 * decl2.c (grokfield): Don't handle access declarations here. * parser.c (cp_parser_using_declaration): Handle access declarations too. (cp_parser_block_declaration): Adjust calls to cp_parser_using_declaration. (cp_parser_member_declaration): Likewise. Use cp_parser_using_declaration to look for access_declarations. PR c++/29138 * g++.dg/inherit/access8.C: New test. * g++.dg/template/dtor4.C: Tweak error messages. From-SVN: r117409
2006-10-03testsuite_allocator.h (allocation_tracker): To tracker_allocator_counter.Benjamin Kosnik21-506/+244
2006-10-03 Benjamin Kosnik <bkoz@redhat.com> * testsuite/util/testsuite_allocator.h (allocation_tracker): To tracker_allocator_counter. (allocation_tracker::allocationTotal): To get_allocation_count. (allocation_tracker::deallocationTotal): To get_deallocation_count. (allocation_tracker::constructCount): To get_construct_count. (allocation_tracker::destructCount): To get_destruct_count. (allocation_tracker::resetCounts): To reset. (tracker_alloc): To tracker_allocator. * testsuite/util/performance/mem: Remove. * testsuite/util/performance/mem/mem_track_allocator_base.hpp: Remove. * testsuite/util/performance/mem/mem_track_allocator.hpp: Remove. * testsuite/27_io/basic_stringbuf/4.cc: Adjust for new names or includes. * testsuite/ext/hash_set/check_construct_destroy.cc: Same. * testsuite/ext/slist/check_construct_destroy.cc: Same. * testsuite/performance/ext/pb_ds/ hash_random_int_erase_mem_usage.cc: Same. * testsuite/performance/ext/pb_ds/multimap_text_insert_mem_usage.hpp * testsuite/performance/ext/pb_ds/ priority_queue_text_pop_mem_usage.cc: Same. * testsuite/23_containers/vector/capacity/2.cc: Same. * testsuite/23_containers/vector/cons/4.cc: Same. * testsuite/23_containers/vector/check_construct_destroy.cc: Same. * testsuite/23_containers/deque/cons/2.cc: Same. * testsuite/23_containers/deque/check_construct_destroy.cc: Same. * testsuite/23_containers/list/check_construct_destroy.cc: Same. * testsuite/23_containers/set/check_construct_destroy.cc: Same. * testsuite/util/testsuite_allocator.h * testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp * testsuite/util/performance/assoc/mem_usage/multimap_insert_test.hpp * testsuite/util/performance/assoc/mem_usage/erase_test.hpp * testsuite/util/testsuite_allocator.cc: Same. From-SVN: r117408
2006-10-03* utils.c: Fix a typo.Kazu Hirata2-1/+3
From-SVN: r117407
2006-10-03* decl.c, utils.c: Fix comment typos.Kazu Hirata3-2/+6
From-SVN: r117405
2006-10-03* doc/install.texi: Fix typos.Kazu Hirata2-1/+5
From-SVN: r117404
2006-10-03builtins.c (expand_builtin_return_addr): Deal with FRAME_ADDR_RTX.Eric Botcazou4-5/+27
* builtins.c (expand_builtin_return_addr): Deal with FRAME_ADDR_RTX. * doc/tm.texi (Basic Stack Layout): Document FRAME_ADDR_RTX. * config/sparc/sparc.h (FRAME_ADDR_RTX): Define. From-SVN: r117403
2006-10-03Add PR numbers for previously installed fix.Kaveh Ghazi1-0/+3
From-SVN: r117399
2006-10-03native_pq_tag.hpp: Remove.Benjamin Kosnik17-413/+184
2006-10-03 Benjamin Kosnik <bkoz@redhat.com> * testsuite/util/native_type/priority_queue/native_pq_tag.hpp: Remove. * testsuite/util/statistic/sample_var.hpp: Rename to... * testsuite/util/statistic/sample_variance.hpp: ... this. * testsuite/util/statistic/res_recorder.hpp: Rename to... * testsuite/util/statistic/result_recorder.hpp: ... this. * testsuite/util/statistic/sample_mean.hpp: Format. * testsuite/util/statistic/sample_mean_confidence_checker.hpp: Same. * testsuite/util/regression/trait/priority_queue/trait.hpp: Same. * testsuite/util/regression/trait/erase_if_fn.hpp: Same. * testsuite/util/regression/trait/assoc/trait.hpp: Same. * testsuite/util/native_type/priority_queue/ native_priority_queue.hpp: Same. * testsuite/util/native_type/assoc/native_tree_tag.hpp: Same. * testsuite/util/native_type/assoc/native_hash_tag.hpp: Same. * testsuite/util/native_type/assoc/native_hash_map.hpp: Same. * testsuite/util/performance/priority_queue/timing/join_test.hpp: Same. * testsuite/util/performance/priority_queue/timing/ modify_test.hpp: Same. * testsuite/util/performance/assoc/timing/ subscript_insert_test.hpp: Same. * testsuite/util/performance/time/timing_test_base.hpp: Same. From-SVN: r117397
2006-10-03re PR middle-end/27478 (entry and addressable and value-expr: and the ↵François-Xavier Coudert4-11/+37
gimplifier) PR middle-end/27478 * trans-decl.c (gfc_get_fake_result_decl): Mark var as TREE_ADDRESSABLE. * gfortran.dg/entry_8.f90: New test. From-SVN: r117396
2006-10-032006-10-03 Gary Benson <gbenson@redhat.com>Gary Benson2-18/+23
* java/net/InetAddress.java (<clinit>): Reorder the static initializers. From-SVN: r117394
2006-10-03re PR c++/29291 (ICE on invalid use of new)Volker Reichelt4-1/+19
PR c++/29291 * init.c (build_new): Check for invalid init. * g++.dg/parse/new4.C: New test. From-SVN: r117393
2006-10-03* ChangeLog: Add missing entries to last entry.Uros Bizjak1-0/+3
From-SVN: r117389
2006-10-03pthread-init-common.h: Define _GNU_SOURCE.Uros Bizjak2-0/+23
* gcc-dg/pthread-init-common.h: Define _GNU_SOURCE. Add tests for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP, PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP, PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP and PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP mutex initializers. From-SVN: r117387
2006-10-03inclhack.def (glibc_mutex_init): Also fix ↵Uros Bizjak4-11/+78
PTHREAD_MUTEX_(RECURSIVE|ERRORCHECK|ADAPTIVE)_NP and... * inclhack.def (glibc_mutex_init): Also fix PTHREAD_MUTEX_(RECURSIVE|ERRORCHECK|ADAPTIVE)_NP and PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP initializers. From-SVN: r117386
2006-10-03re PR fortran/19260 (& not required when splitting a token in continuation)Jerry DeLisle7-0/+677
2006-10-02 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/19260 * gfortran.dg/continuation.f90: Rename to continuation_1.f90. * gfortran.dg/continuation_2.f90: New test. PR fortran/19262 * gfortran.dg/continuation_3.f90: New test. * gfortran.dg/continuation_4.f90: New test. * gfortran.dg/continuation_5.f: New test. * gfortran.dg/continuation_6.f: New test. From-SVN: r117385
2006-10-03re PR fortran/19262 (more than thirty-nine continuation lines should issue a ↵Jerry DeLisle4-7/+79
std-warn) 2006-10-02 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/19262 * gfortran.h (gfc_option_t): Add max_continue_fixed and max_continue_free. * options.c (gfc_init_options): Initialize fixed form and free form consecutive continuation line limits. * scanner.c (gfc_scanner_init_1): Initialize continue_line and continue_count. (gfc_next_char_literal): Count the number of continuation lines in the current statement and warn if limit is exceeded. 2006-10-02 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/19260 * scanner.c (gfc_next_char_literal): Add check for missing '&' and warn if in_string, otherwise return ' '. From-SVN: r117384
2006-10-03unwind-dw2-fde-darwin.c (getsectdatafromheader_64): Fix first arg to be ↵Jack Howarth2-3/+8
struct mach_header_64* instead. * unwind-dw2-fde-darwin.c (getsectdatafromheader_64): Fix first arg to be struct mach_header_64* instead. From-SVN: r117383
2006-10-03Daily bump.GCC Administrator1-1/+1
From-SVN: r117381
2006-10-02re PR c++/29226 (ICE in make_decl_rtl, at varasm.c:886)Mark Mitchell4-20/+41
PR c++/29226 * typeck.c (cxx_sizeof_or_alignof_type): Tidy. In templates, do not try to actually evaluate sizeof for a VLA type. PR c++/29226 * g++.dg/template/vla1.C: New test. From-SVN: r117375
2006-10-02rc_string_base.h (_M_compare<wchar_t>): Protect with _GLIBCXX_USE_WCHAR_T.Paolo Carlini3-7/+14
2006-10-02 Paolo Carlini <pcarlini@suse.de> * include/ext/rc_string_base.h (_M_compare<wchar_t>): Protect with _GLIBCXX_USE_WCHAR_T. * include/ext/sso_string_base.h (_M_compare<wchar_t>): Likewise. (__sso_string_base<>::_M_destroy): Inline. From-SVN: r117373
2006-10-02basic_types.hpp (comp_hash_): Remove, format.Benjamin Kosnik5-283/+161
2006-10-02 Benjamin Kosnik <bkoz@redhat.com> * include/ext/pb_ds/detail/basic_types.hpp (comp_hash_): Remove, format. * include/ext/pb_ds/detail/types_traits.hpp (types_traits::comp_hash): Use pair typedef. * include/ext/pb_ds/detail/hash_fn/ranged_probe_fn.hpp: Same. * include/ext/pb_ds/detail/hash_fn/ranged_hash_fn.hpp: Same. From-SVN: r117371
2006-10-022006-10-02 Gary Benson <gbenson@redhat.com>Gary Benson2-2/+14
* java/net/InetAddress.java (checkConnect): Reinstated. (loopbackAddress): Ensure initialized from non-null object. From-SVN: r117370
2006-10-02re PR fortran/29210 ([4.1 only] Name parameter in complex constant not ↵Francois-Xavier Coudert4-0/+26
allowed in F95) PR fortran/29210 * primary.c (match_sym_complex_part): Named constants as real or imaginary part of complex a named constant are only allowed in Fortran 2003. * gfortran.dg/complex_parameter_1.f90: New test. From-SVN: r117368
2006-10-02re PR c/29154 (*(* ppointer++)++ = *pointer++ generates bad code)Jakub Jelinek4-2/+63
PR c/29154 * gimplify.c (gimplify_self_mod_expr): Run inner expression's post side effects after the outer expression's post side effects. * gcc.c-torture/execute/20060929-1.c: New test. From-SVN: r117366
2006-10-02re PR c++/29105 (segfault in add_candidates with a non template base class ↵Mark Mitchell4-10/+25
and a template member function) PR c++/29105 * pt.c (tsubst_baselink): Substituteinto the qualifying scope. * semantics.c (baselink_for_fns): Build a baselink, even when processing a template. PR c++/29105 * g++.dg/template/member6.C: New test. * g++.dg/parse/typename7.C: Adjust error markers. From-SVN: r117361
2006-10-02re PR c++/29080 (Multiple-inheritance with template method function code ↵Mark Mitchell4-1/+37
triggers "internal compiler error: in build_base_path, at cp/class.c:273") PR c++/29080 * parser.c (cp_parser_postfix_dot_deref_expression): Use BASELINK_ACCESS_BINFO as the qualifying scope when calling adjust_result_of_qualified_name_lookup. PR c++/29080 * g++.dg/template/member7.C: New test. From-SVN: r117360
2006-10-02Daily bump.GCC Administrator1-1/+1
From-SVN: r117357
2006-10-02random (xor_combine<>::_M_initialize_max_aux): New.Paolo Carlini5-25/+73
2006-10-01 Paolo Carlini <pcarlini@suse.de> * include/tr1/random (xor_combine<>::_M_initialize_max_aux): New. (xor_combine<>::operator()()): Tweak per N2079. * include/tr1/random.tcc (xor_combine<>::_M_initialize_max_aux): Define. (xor_combine<>::_M_initialize_max): Use it. * testsuite/tr1/5_numerical_facilities/random/xor_combine/ cons/default.cc: Adjust. * docs/html/ext/tr1.html: Adjust. From-SVN: r117353
2006-10-01tree.h (DECL_FIELD_OFFSET, [...]): Fix comments to reflect actual behavior ↵Sandra Loosemore3-8/+28
and relationship between... 2006-10-01 Sandra Loosemore <sandra@codesourcery.com> * gcc/tree.h (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): Fix comments to reflect actual behavior and relationship between DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET, and DECL_OFFSET_ALIGN. * gcc/doc/c-tree.texi (Working with declarations): Fix documentation of FIELD_DECL likewise. From-SVN: r117352
2006-10-01gfortran.texi: Corrected references to MALLOC intrinsic.Brooks Moses3-43/+35
2006-10-01 Brooks Moses <bmoses@stanford.edu> * gfortran.texi: Corrected references to MALLOC intrinsic. * invoke.texi: Minor cleanup and clarification to the Dialect Options section. From-SVN: r117350
2006-10-01re PR c/20533 (documentation: attribute 'used', applied to a variable)Ryan Mansfield2-0/+9
2006-10-01 Ryan Mansfield <rmansfield@qnx.com> PR c/20533 * doc/extend.texi: Add used variable attribute description. From-SVN: r117349
2006-10-01type_traits.h: Avoid _T, badname for some targets; also avoid plain T.Paolo Carlini2-14/+20
2006-10-01 Paolo Carlini <pcarlini@suse.de> * include/ext/type_traits.h: Avoid _T, badname for some targets; also avoid plain T. From-SVN: r117347
2006-10-01basic_file_stdio.cc: As an extension...Paolo Carlini3-0/+62
2006-10-01 Paolo Carlini <pcarlini@suse.de> * config/io/basic_file_stdio.cc: As an extension, and consistently with C facilities, allow for in|out|app and in|out|app|binary openmodes. * testsuite/27_io/basic_filebuf/open/char/4.cc: New. From-SVN: r117346
2006-10-01* libgfortran.h: Add prototype for internal_unpack_c16.Francois-Xavier Coudert2-0/+9
From-SVN: r117345
2006-10-01inclhack.def (pthread_mutex_init): New fix.Uros Bizjak4-5/+100
* inclhack.def (pthread_mutex_init): New fix. * tests/base/pthread.h: Update. * fixincl.x: Regenerate. From-SVN: r117343