GCC Administrator [Mon, 3 Jul 2006 00:17:10 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r115139
Jason Merrill [Sun, 2 Jul 2006 04:12:46 +0000 (00:12 -0400)]
fix line #s
From-SVN: r115125
GCC Administrator [Sun, 2 Jul 2006 00:17:25 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r115123
Jason Merrill [Sat, 1 Jul 2006 22:02:56 +0000 (18:02 -0400)]
revert accidental checkin
From-SVN: r115119
Jason Merrill [Sat, 1 Jul 2006 22:01:18 +0000 (18:01 -0400)]
re PR c++/28215 (Bootstrap failure on arm-eabi)
PR c++/28215
* method.c (make_thunk): Unset DECL_USE_TEMPLATE and
DECL_TEMPLATE_INFO.
From-SVN: r115118
Andrew John Hughes [Sat, 1 Jul 2006 19:36:35 +0000 (19:36 +0000)]
MAINTAINERS (Write After Approval): Add myself.
2006-07-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
* MAINTAINERS (Write After Approval): Add myself.
From-SVN: r115117
Tobias Schlüter [Sat, 1 Jul 2006 15:03:30 +0000 (17:03 +0200)]
re PR fortran/19259 (";" as first nonblank character on a line should be an error)
2006-07-01 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
fortran/
PR fortran/19259
* parse.c (next_free): Error out on line starting with semicolon.
(next_fixed): Fix formatting. Error out on line starting with
semicolon.
testsuite/
PR fortran/19259
* gfortran.dg/semicolon_fixed.c: New.
* gfortran.dg/semicolon_free.c: New.
From-SVN: r115115
Martin Michlmayr [Sat, 1 Jul 2006 12:46:31 +0000 (12:46 +0000)]
* doc/gcov.texi (Invoking Gcov): Add a missing word.
From-SVN: r115113
GCC Administrator [Sat, 1 Jul 2006 00:17:22 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r115111
Jason Merrill [Fri, 30 Jun 2006 20:48:42 +0000 (16:48 -0400)]
re PR c++/26577 (ICE in cp_expr_size with volatile and non POD)
PR c++/26577
* call.c (build_new_method_call): Force evaluation of the
instance pointer, not the object.
From-SVN: r115105
Mike Stump [Fri, 30 Jun 2006 20:10:51 +0000 (20:10 +0000)]
fvisibility-override2.C: Fix for systems that don't support internal visibility.
* g++.dg/ext/visibility/fvisibility-override2.C: Fix for systems
that don't support internal visibility.
From-SVN: r115104
Kazu Hirata [Fri, 30 Jun 2006 19:38:26 +0000 (19:38 +0000)]
* check.c: Fix a comment typo.
From-SVN: r115101
Kazu Hirata [Fri, 30 Jun 2006 19:34:38 +0000 (19:34 +0000)]
* decl2.c: Fix a comment typo.
From-SVN: r115099
Kazu Hirata [Fri, 30 Jun 2006 19:29:39 +0000 (19:29 +0000)]
cfgexpand.c, [...]: Fix comment typos.
* cfgexpand.c, config/i386/i386.c, genpreds.c, tree-cfg.c: Fix
comment typos.
From-SVN: r115098
Thomas Fitzsimmons [Fri, 30 Jun 2006 18:31:48 +0000 (18:31 +0000)]
Makefile.am: Comment out tools wrapper creation.
2006-06-30 Thomas Fitzsimmons <fitzsim@redhat.com>
* classpath/tools/Makefile.am: Comment out tools wrapper creation.
(TOOLS_ZIP): Rename tools.zip tools.jar.
(noinst_DATA): Do not install tools.jar.
* classpath/tools/Makefile.in: Regenerate.
* classpath/Makefile.am (SUBDIRS): Add tools.
(DIST_SUBDIRS): Likewise.
* classpath/Makefile.in: Regenerate.
* Makefile.am (toolexeclib_LTLIBRARIES): Add libgcj-tools.la.
(jar_DATA): Add libgcj-tools-$(gcc_version).jar.
(bin_PROGRAMS): Add gappletviewer, gjarsigner and gkeytool.
Add build logic for libgcj-tools.la,
libgcj-tools-$(gcc_version).jar and gappletviewer, gjarsigner and
gkeytool.
* Makefile.in: Regenerate.
From-SVN: r115097
Jason Merrill [Fri, 30 Jun 2006 18:27:18 +0000 (14:27 -0400)]
re PR c++/18698 (Error message using "using" for code not using "using" ;-))
PR c++/18698
* decl2.c (grokfield): Only try to treat the decl as an access
declaration if the scope is a class.
From-SVN: r115095
Jason Merrill [Fri, 30 Jun 2006 15:22:48 +0000 (11:22 -0400)]
objcp-decl.c (objcp_start_struct): Pass null attributes argument to begin_class_definition.
* objcp-decl.c (objcp_start_struct): Pass null attributes argument
to begin_class_definition.
From-SVN: r115091
Andrew Pinski [Fri, 30 Jun 2006 14:28:59 +0000 (07:28 -0700)]
inline-1.c: Fix up scan-tree-dump-times for '(' / ')' needing an extra '\'.
2006-06-30 Andrew Pinski <pinskia@gmail.com>
* gcc.dg/tree-ssa/inline-1.c: Fix up scan-tree-dump-times for '(' / ')' needing an extra '\'.
From-SVN: r115089
Jason Merrill [Fri, 30 Jun 2006 01:15:56 +0000 (21:15 -0400)]
re PR c++/26905 (default-visibility class symbol improperly resolved as hidden-visibility)
PR c++/26905
PR c++/26612
PR c++/27000
PR c++/26984
PR c++/19134
* tree.c (build_decl_stat): Don't hande #pragma visibility here.
* c-common.c (c_determine_visibility): Handle it here.
* c-decl.c (finish_decl): Call c_determine_visibility for
functions, too.
* flags.h (enum symbol_visibility): Sort from most to least visibility.
* tree.h: Likewise.
* varasm.c (default_assemble_visibility): Likewise.
* c-common.c (handle_visibility_attribute): Complain about trying
to give visibility to an already defined class, or trying to change
declared visibility. Always attach the attribute.
* cp/decl2.c (determine_visibility): Overhaul.
(determine_visibility_from_class): Likewise.
(min_vis_r, type_visibility, constrain_visibility): New fns.
(constrain_visibility_for_template): Likewise.
(constrain_class_visibility): Likewise.
* cp/decl.c (cp_finish_decl): Call determine_visibility for function
decls, too.
* cp/name-lookup.c (pushtag): Call determine_visibility.
* cp/decl.c (duplicate_decls): Don't copy visibility from template to
specialization.
* cp/pt.c (check_explicit_specialization): Likewise.
(lookup_template_class, tsubst_decl): Call determine_visibility.
* cp/class.c (finish_struct_1): Call constrain_class_visibility.
PR c++/26905
PR c++/21675
PR c++/17470
* cp/parser.c (cp_parser_explicit_instantiation): Pass the attributes
to grokdeclarator.
(cp_parser_type_specifier): Allow 'enum __attribute ((...)) E'.
(cp_parser_enum_specifier): Likewise.
(cp_parser_elaborated_type_specifier): Apply attributes if this
declares only the class.
(cp_parser_class_specifier): Apply leading attributes immediately.
* cp/semantics.c (begin_class_definition): Add attributes parameter,
apply them to the type.
* attribs.c (decl_attributes): Ignore type-in-place attributes
once the type has been defined.
PR c++/21581
PR c++/25915
* cp/tree.c (decl_anon_ns_mem_p): New function.
* cp/cp-tree.h: Declare it.
* cp/decl2.c (determine_visibility): Make anonymous namespace
members static.
(min_vis_r, constrain_visibility): Likewise.
* cp/rtti.c (create_pseudo_type_info): Set TREE_PUBLIC on
pseudo-types.
* cp/decl.c (cxx_init_decl_processing): Set TREE_PUBLIC on
global_namespace.
* cp/name-lookup.c (push_namespace_with_attribs): Don't set TREE_PUBLIC
on anonymous namespaces.
From-SVN: r115086
GCC Administrator [Fri, 30 Jun 2006 00:18:27 +0000 (00:18 +0000)]
Daily bump.
From-SVN: r115084
Roger Sayle [Thu, 29 Jun 2006 21:57:23 +0000 (21:57 +0000)]
re PR middle-end/27428 (ICE with goto in erroneous code)
PR middle-end/27428
* c-lex.c (c_lex_with_flags) <CPP_N_INVALID>: Increment errorcount
to indicate the cpplib has issued an error message for us.
* gcc.dg/pr27428-1.c: New test case.
From-SVN: r115080
Asher Langton [Thu, 29 Jun 2006 21:49:19 +0000 (21:49 +0000)]
i386.c (ix86_output_function_epilogue): Don't insert a label at the end of an function under Mach-O.
* config/i386/i386.c (ix86_output_function_epilogue): Don't
insert a label at the end of an function under Mach-O.
From-SVN: r115079
Benjamin Kosnik [Thu, 29 Jun 2006 21:24:57 +0000 (21:24 +0000)]
Makefile.am (pch1_input, [...]): Move from pch_*.
2006-06-29 Benjamin Kosnik <bkoz@redhat.com>
* include/Makefile.am (pch1_input, pch1_output_builddir,
pch1_outputj_installdir, pch1_source): Move from pch_*.
(pch2_input, pch2_output_builddir,
pch2_output_installdir, pch2_source): Clone for ext.
(pch3_input, pch3_output_builddir,
pch3_output_installdir, pch3_source): Clone for tr1.
(install-pch): Same.
* include/Makefile.in: Regenerate.
* include/precompiled: New directory.
* include/stdc++.h: Move...
* include/precompiled/stdc++.h: ... here.
* include/precompiled/stdtr1c++.h: New.
* include/precompiled/extc++.h: New.
* testsuite/lib/libstdc++.exp (libstdc++_init): Set PCH_CXXFLAGS
to -include bits/stdtr1c++.h.
From-SVN: r115078
Eric Christopher [Thu, 29 Jun 2006 20:42:54 +0000 (20:42 +0000)]
predicates.md (vector_all_ones_operand): New.
2006-06-29 Eric Christopher <echristo@apple.com>
Evan Cheng <evan.cheng@apple.com>
* predicates.md (vector_all_ones_operand): New.
(nonimmediate_or_sse_const_operand): Ditto.
* config/i386/i386-protos.h (standard_sse_constant_opcode): Declare.
* config/i386/i386.c (standard_sse_constant_opcode): Define.
(standard_sse_mode_p): Ditto.
(standard_sse_constant_p): Add case for -1 vector.
(ix86_expand_vector_move): Try to use.
* sse.md (*mov<mode>_internal): Use nonimmediate_or_sse_const_operand.
Call standard_sse_constant_opcode.
(*movv4sf_internal): Ditto.
(*movv2df_internal): Ditto.
From-SVN: r115077
Roger Sayle [Thu, 29 Jun 2006 20:21:36 +0000 (20:21 +0000)]
genpreds.c (write_match_code_switch): Correctly use XSTR instead of XEXP to extract the operands of a MATCH_CODE rtx.
* genpreds.c (write_match_code_switch): Correctly use XSTR instead
of XEXP to extract the operands of a MATCH_CODE rtx.
From-SVN: r115076
Mike Stump [Thu, 29 Jun 2006 19:59:23 +0000 (19:59 +0000)]
struct-layout-1_generate.c: Don't use common on darwin as we can't align commons large enough yet.
* gcc.dg/compat/struct-layout-1_generate.c: Don't use common
on darwin as we can't align commons large enough yet.
From-SVN: r115075
Mike Stump [Thu, 29 Jun 2006 17:38:10 +0000 (17:38 +0000)]
* gcc.dg/vla-8.c: Add additional testcases.
From-SVN: r115074
Benjamin Kosnik [Thu, 29 Jun 2006 17:34:56 +0000 (17:34 +0000)]
libstdc++.exp (v3_target_compile): Set timeout to 600.
2006-06-29 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/lib/libstdc++.exp (v3_target_compile): Set timeout to
600.
From-SVN: r115073
Andrew Pinski [Thu, 29 Jun 2006 16:28:04 +0000 (09:28 -0700)]
tree.c (tree_size): Do not waste tail padding in struct tree_string and make the size be the same...
2006-06-28 Andrew Pinski <pinskia@gmail.com>
* tree.c (tree_size): Do not waste tail padding in
struct tree_string and make the size be the same as
build_string will generate.
From-SVN: r115072
Ranjit Mathew [Thu, 29 Jun 2006 14:57:39 +0000 (14:57 +0000)]
javaprims.h (_Jv_uintptr_t): New typedef similar to uintptr_t in C99.
* gcj/javaprims.h (_Jv_uintptr_t): New typedef similar to uintptr_t in
C99.
* include/java-stack.h: Include stdlib.h.
(_Jv_AddrInfo): New structure to hold address information.
* include/posix.h (_Jv_platform_dladdr): Declare.
* include/win32.h (_Jv_platform_dladdr): Declare.
(backtrace): Remove declaration.
* posix.cc: Include dlfcn.h if available. Include java-stack.h.
(_Jv_platform_dladdr): Define.
* win32.cc: Include string.h. Include java-stack.h.
(backtrace): Remove.
(_Jv_platform_dladdr): Define.
* sysdep/i386/backtrace.h (fallback_backtrace): Check that a potential
frame pointer value is 32-bit word-aligned. Use operand of the CALL
instruction calling the current function to find its starting address.
* stacktrace.cc: Do not include dlfcn.h. Include platform.h.
(_Jv_StackTrace::getLineNumberForFrame): Use _Jv_platform_dladdr()
instead of dladdr().
(_Jv_StackTrace::GetStackTraceElements): Use nCodeMap even for Windows.
(_Jv_StackTrace::GetClassContext): Use fallback_backtrace() for
targets with SJLJ exceptions instead of using _Unwind_Backtrace().
(_Jv_StackTrace::GetFirstNonSystemClassLoader): Likewise.
From-SVN: r115069
Jason Merrill [Thu, 29 Jun 2006 01:27:17 +0000 (21:27 -0400)]
re PR c++/27424 (Valid template-template-parameter rejected)
PR c++/27424
* pt.c (convert_template_argument): Pass all template arguments
on to coerce_template_template_parms.
From-SVN: r115063
Jason Merrill [Thu, 29 Jun 2006 01:12:20 +0000 (21:12 -0400)]
re PR c++/27768 (wrong-code with vectors)
PR c++/27768
* tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
may_aliases already in the tag's annotations to the bitmap.
From-SVN: r115062
Roger Sayle [Thu, 29 Jun 2006 01:05:51 +0000 (01:05 +0000)]
genpreds.c (write_predicate_stmts): Add missing break.
* genpreds.c (write_predicate_stmts) <IOR>: Add missing break.
From-SVN: r115061
GCC Administrator [Thu, 29 Jun 2006 00:17:29 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r115059
Roger Sayle [Wed, 28 Jun 2006 19:42:04 +0000 (19:42 +0000)]
genpreds.c (generate_switch_p): New function.
* genpreds.c (generate_switch_p): New function.
(add_mode_tests): Push the new mode test down inside an AND expr
if this allows the switch-suitable MATCH_CODE to be near the root.
(write_match_code_switch): New function to write a MATCH_CODE as
a switch statement.
(write_predicate_stmts): New function to write a predicate RTX
expression as a sequence of statements.
(write_one_predicate_function): Use write_predicate_stmts.
(write_tm_constrs_h): Likewise.
From-SVN: r115055
GCC Administrator [Wed, 28 Jun 2006 00:17:39 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r115044
Benjamin Kosnik [Tue, 27 Jun 2006 22:54:02 +0000 (22:54 +0000)]
rand_regression_test.hpp: Revert.
2006-06-27 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/util/regression/rand/priority_queue/
rand_regression_test.hpp: Revert.
From-SVN: r115040
Tom Tromey [Tue, 27 Jun 2006 20:38:10 +0000 (20:38 +0000)]
OutputStreamWriter.java (writeChars): Use a 'do' loop.
* java/io/OutputStreamWriter.java (writeChars): Use a 'do' loop.
Set 'out.count' earlier.
(close): Call setFinished on converter.
(flush): Always write work buffer.
* java/io/PrintStream.java (writeChars): Do 'do' loop.
(close): Call setFinished on converter. Write a 'flush' array.
* java/lang/natString.cc (getBytes): Call setFinished on
converter.
* gnu/gcj/convert/CharsetToBytesAdaptor.java (hasBytes): New
field.
(write): Set hasBytes. Changed 'finished' logic.
(havePendingBytes): Rewrote.
(setFinished): New method.
* gnu/gcj/convert/UnicodeToBytes.java (setFinished): New method.
* testsuite/libjava.lang/RH194522.java: New file.
* testsuite/libjava.lang/RH194522.out: New file.
From-SVN: r115039
Benjamin Kosnik [Tue, 27 Jun 2006 19:21:13 +0000 (19:21 +0000)]
typelist.h (typelist_append): To append_typelist.
2006-06-27 Benjamin Kosnik <bkoz@redhat.com>
* include/ext/typelist.h (typelist_append): To append_typelist.
(typelist): To node.
Enclose in namespace typelist.
* testsuite/util/testsuite_common_types.h: Adjust names, namespaces.
* testsuite/performance/23_containers/find/map.cc: Same.
* testsuite/performance/23_containers/create/map.cc: Same.
* testsuite/performance/23_containers/insert_erase/associative.cc:
Same.
* testsuite/performance/23_containers/insert/sequence.cc: Same.
* testsuite/performance/23_containers/insert/associative.cc: Same.
* testsuite/performance/23_containers/create_from_sorted/set.cc: Same.
* testsuite/performance/23_containers/index/map.cc: Same.
* testsuite/performance/23_containers/insert_from_sorted/set.cc: Same.
* testsuite/performance/23_containers/create_sort/list.cc: Same.
* testsuite/performance/23_containers/sort_search/list.cc: Same.
* testsuite/performance/23_containers/producer_consumer/sequence.cc:
Same.
* testsuite/performance/23_containers/producer_consumer/associative.cc:
Same.
From-SVN: r115038
Benjamin Kosnik [Tue, 27 Jun 2006 19:20:06 +0000 (19:20 +0000)]
typelist.h (typelist_append): To append_typelist.
2006-06-27 Benjamin Kosnik <bkoz@redhat.com>
* include/ext/typelist.h (typelist_append): To append_typelist.
(typelist): To node.
Enclose in namespace typelist.
* testsuite/util/testsuite_common_types.h: Adjust names, namespaces.
* testsuite/performance/23_containers/find/map.cc: Same.
* testsuite/performance/23_containers/create/map.cc: Same.
* testsuite/performance/23_containers/insert_erase/associative.cc:
Same.
* testsuite/performance/23_containers/insert/sequence.cc: Same.
* testsuite/performance/23_containers/insert/associative.cc: Same.
* testsuite/performance/23_containers/create_from_sorted/set.cc: Same.
* testsuite/performance/23_containers/index/map.cc: Same.
* testsuite/performance/23_containers/insert_from_sorted/set.cc: Same.
* testsuite/performance/23_containers/create_sort/list.cc: Same.
* testsuite/performance/23_containers/sort_search/list.cc: Same.
* testsuite/performance/23_containers/producer_consumer/sequence.cc:
Same.
* testsuite/performance/23_containers/producer_consumer/associative.cc:
Same.
From-SVN: r115037
Marco Trudel [Tue, 27 Jun 2006 17:34:23 +0000 (19:34 +0200)]
boehm.cc (_Jv_SuspendThread, [...]): Define conditionally on GC_PTHREADS...
2006-06-27 Marco Trudel <mtrudel@gmx.ch>
* boehm.cc (_Jv_SuspendThread, _Jv_ResumeThread): Define
conditionally on GC_PTHREADS, !GC_SOLARIS_THREADS,
!GC_WIN32_THREADS and !GC_DARWIN_THREADS.
From-SVN: r115036
Tom Tromey [Tue, 27 Jun 2006 15:33:24 +0000 (15:33 +0000)]
re PR libgcj/28178 (jniEnv->DeleteLocalRef (null) fails)
PR libgcj/28178:
* jni.cc (_Jv_JNI_DeleteLocalRef): Ignore null argument.
(_Jv_JNI_DeleteGlobalRef): Likewise.
* testsuite/libjava.jni/PR28178.java: New file.
* testsuite/libjava.jni/PR28178.c: New file.
* testsuite/libjava.jni/PR28178.out: New file.
From-SVN: r115034
Benjamin Kosnik [Tue, 27 Jun 2006 03:25:40 +0000 (03:25 +0000)]
trie_no_data_map_rand.cc: Reduce iterations by half.
2006-06-26 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/ext/pb_ds/regression/trie_no_data_map_rand.cc:
Reduce iterations by half.
* testsuite/ext/pb_ds/regression/hash_data_map_rand.cc: Same.
* testsuite/ext/pb_ds/regression/hash_no_data_map_rand.cc: Same.
* testsuite/ext/pb_ds/regression/list_update_data_map_rand.cc: Same.
* testsuite/ext/pb_ds/regression/list_update_no_data_map_rand.cc: Same.
* testsuite/ext/pb_ds/regression/priority_queue_rand.cc: Same.
* testsuite/ext/pb_ds/regression/tree_data_map_rand.cc: Same.
* testsuite/ext/pb_ds/regression/tree_no_data_map_rand.cc: Same.
* testsuite/ext/pb_ds/regression/trie_data_map_rand.cc: Same.
* testsuite/util/regression/rand/assoc/rand_regression_test.hpp:
Set probability of compare from 1 to 0.25.
* testsuite/util/regression/rand/priority_queue/
rand_regression_test.hpp: Same.
From-SVN: r115032
GCC Administrator [Tue, 27 Jun 2006 00:18:07 +0000 (00:18 +0000)]
Daily bump.
From-SVN: r115030
Jim Wilson [Mon, 26 Jun 2006 23:36:45 +0000 (16:36 -0700)]
Fix typos in --param option docs.
* doc/invoke/texi (max-cselib-memory-locations): Add missing s at end.
(max-flow-memory-locations): Likewise.
From-SVN: r115026
Steve Ellcey [Mon, 26 Jun 2006 21:25:23 +0000 (21:25 +0000)]
re PR c++/28114 (ICE with struct definition in argument of template function)
PR c++/28114
* g++.dg/other/pr28114.C: New.
From-SVN: r115025
Fred Fish [Mon, 26 Jun 2006 21:16:30 +0000 (21:16 +0000)]
Add SB-1 specific multilib support. Patch by Fred Fish.
* config/mips/t-sb1: New file.
* config.gcc (mipsisa64sb1-*-elf*): Add mips/t-sb1 to
tmake_file list.
From-SVN: r115024
DJ Delorie [Mon, 26 Jun 2006 21:10:22 +0000 (17:10 -0400)]
[multiple changes]
2006-06-26 DJ Delorie <dj@redhat.com>
* config/m32c/m32c.c (m32c_print_operand): Fix sign-merging logic.
2006-06-26 Naveen H.S <naveenh@kpitcummins.com>
Jayant Sonar <jayants@kpitcummins.com>
Jaydeep Vipradas <jaydeepv@kpitcummins.com>
* config/m32c/addsub.md (addsi3, addsi3_1, addsi3_2): New.
(subsi3, subsi3_1, subsi3_2): New.
* config/m32c/bitops.md (andsi3, iorsi3, xorsi3): New.
* config/m32c/mov.md (SI mov peephole): New.
* config/m32c/m32.c (m32c_immd_dbl_mov): New.
* config/m32c/m32c-protos.h (m32c_immd_dbl_mov): New.
From-SVN: r115023
Olivier Hainque [Mon, 26 Jun 2006 20:59:16 +0000 (20:59 +0000)]
function.c (aggregate_value_p): Honor DECL_BY_REFERENCE on a CALL_EXPR target function declaration.
* function.c (aggregate_value_p): Honor DECL_BY_REFERENCE on
a CALL_EXPR target function declaration.
From-SVN: r115022
Richard Guenther [Mon, 26 Jun 2006 18:18:22 +0000 (18:18 +0000)]
tree.c (build_string): Do not waste tail padding in struct tree_string.
2006-06-26 Richard Guenther <rguenther@suse.de>
* tree.c (build_string): Do not waste tail padding in
struct tree_string.
From-SVN: r115021
Keith Seitz [Mon, 26 Jun 2006 17:59:42 +0000 (17:59 +0000)]
posix-threads.h: Fix coding style aberrations from 2006-06-19 check-in.
* include/posix-threads.h: Fix coding style aberrations from
2006-06-19 check-in.
* posix-threads.cc (_Jv_ThreadDebugSuspend): Ditto.
* include/win32-threads.h (_Jv_ThreadDebugSuspend): Ditto.
* win32-threads.cc (_Jv_ThreadDebugSuspend): Ditto.
From-SVN: r115020
Keith Seitz [Mon, 26 Jun 2006 16:31:06 +0000 (16:31 +0000)]
no-gc.h (_Jv_SuspendThread): Declare.
* include/no-gc.h (_Jv_SuspendThread): Declare.
(_Jv_ResumeThread): Likewise.
* include/boehm-gc.h (_Jv_SuspendThread): Declare.
(_Jv_ResumeThread): Likewise.
* nogc.cc (_Jv_SuspendThread): New function.
(_Jv_ResumeThread): Likewise.
* boehm.cc (_Jv_SuspendThread): New function.
(_Jv_ResumeThread): Likewise.
From-SVN: r115019
Richard Guenther [Mon, 26 Jun 2006 10:32:26 +0000 (10:32 +0000)]
ggc-page.c (init_ggc): Add missing element to size_lookup table.
2006-06-26 Richard Guenther <rguenther@suse.de>
* ggc-page.c (init_ggc): Add missing element to size_lookup
table.
Revert
2006-06-23 Richard Guenther <rguenther@suse.de>
* ggc-page.c (init_ggc): Do not round up the extra_order_size_table
sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
alignment requests instead. Add verification code.
Add struct tree_function_decl and struct tree_binfo size to
extra_order_size_table. Add missing element to size_lookup
table.
From-SVN: r115007
Paolo Carlini [Mon, 26 Jun 2006 03:08:48 +0000 (03:08 +0000)]
random (operator<<(std::basic_ostream<>&, const linear_congruential<>&), [...]): Redo per TR1 specs; move out of line...
2006-06-25 Paolo Carlini <pcarlini@suse.de>
* include/tr1/random (operator<<(std::basic_ostream<>&,
const linear_congruential<>&), operator>>(std::basic_istream<>&,
linear_congruential<>&), operator<<(std::basic_ostream<>&,
const mersenne_twister<>&), operator>>(std::basic_istream<>&,
mersenne_twister<>&), operator<<(std::basic_ostream<>&,
const subtract_with_carry<>&), operator>>(std::basic_istream<>&,
subtract_with_carry<>&), operator<<(std::basic_ostream<>&,
const discard_block<>&), operator>>(std::basic_istream<>&,
discard_block<>&), operator<<(std::basic_ostream<>&,
const xor_combine<>&), operator>>(std::basic_istream<>&,
xor_combine<>&), operator<<(std::basic_ostream<>&,
const uniform_int<>&), operator>>(std::basic_istream<>&,
uniform_int<>&), operator<<(std::basic_ostream<>&,
const bernoulli_distribution&), operator<<(std::basic_ostream<>&,
const geometric_distribution<>&), operator<<(std::basic_ostream<>&,
const uniform_real<>&), operator>>(std::basic_istream<>&,
uniform_real<>&), operator<<(std::basic_ostream<>&,
const exponential_distribution<>&), operator<<(std::basic_ostream<>&,
const normal_distribution<>&), operator>>(std::basic_istream<>&,
normal_distribution<>&)): Redo per TR1 specs; move out of line...
* include/tr1/random.tcc: ... here.
From-SVN: r115003
GCC Administrator [Mon, 26 Jun 2006 00:17:33 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r115001
Joseph Myers [Sun, 25 Jun 2006 23:04:28 +0000 (00:04 +0100)]
* de.po: Update.
From-SVN: r114996
Eric Botcazou [Sun, 25 Jun 2006 17:16:25 +0000 (17:16 +0000)]
re PR middle-end/28151 (ICE with complex math)
PR middle-end/28151
* fold-const.c (const_binop): Be prepared for self returning zero.
Simplify code handling complex values.
From-SVN: r114992
Joseph Myers [Sun, 25 Jun 2006 17:05:49 +0000 (18:05 +0100)]
* zh_CN.po: Update.
From-SVN: r114990
Paul Thomas [Sun, 25 Jun 2006 15:11:02 +0000 (15:11 +0000)]
re PR fortran/25056 (non-PURE function should not be a valid argument)
2006-06-25 Paul Thomas <pault@gcc.gnu.org>
PR fortran/25056
* interface.c (compare_actual_formal): Signal an error if the formal
argument is a pure procedure and the actual is not pure.
PR fortran/27554
* resolve.c (resolve_actual_arglist): If the type of procedure
passed as an actual argument is not already declared, see if it is
an intrinsic.
PR fortran/25073
* resolve.c (resolve_select): Use bits 1 and 2 of a new int to
keep track of the appearance of constant logical case expressions.
Signal an error is either value appears more than once.
PR fortran/20874
* resolve.c (resolve_fl_procedure): Signal an error if an elemental
function is not scalar valued.
PR fortran/20867
* match.c (recursive_stmt_fcn): Perform implicit typing of variables.
PR fortran/22038
* match.c (match_forall_iterator): Mark new variables as
FL_UNKNOWN if the match fails.
PR fortran/28119
* match.c (gfc_match_forall): Remove extraneous call to
gfc_match_eos.
PR fortran/25072
* resolve.c (resolve_code, resolve_function): Rework
forall_flag scheme so that it is set and has a value of
2, when the code->expr (ie. the forall mask) is resolved.
This is used to change "block" to "mask" in the non-PURE
error message.
2006-06-25 Paul Thomas <pault@gcc.gnu.org>
PR fortran/20867
* gfortran.dg/stfunc_3.f90: New test.
PR fortran/25056
* gfortran.dg/impure_actual_1.f90: New test.
PR fortran/20874
* gfortran.dg/elemental_result_1.f90: New test.
PR fortran/25073
* gfortran.dg/select_7.f90: New test.
PR fortran/27554
* intrinsic_actual_1.f: New test.
PR fortran/22038
PR fortran/28119
* gfortran.dg/forall_4.f90: New test.
PR fortran/25072
* gfortran.dg/forall_5.f90: New test.
From-SVN: r114987
Lee Millward [Sun, 25 Jun 2006 11:28:01 +0000 (11:28 +0000)]
re PR c++/28054 (ICE with friend declaration of invalid bitfield)
PR c++/28054
* decl2.c (grokbitfield): Remove check for grokdeclarator
returning NULL_TREE, instead check for error_mark_node
to indicate failure.
* decl.c (grokdeclarator): Adjust block comment.
* g++.dg/other/incomplete3.C: New test.
Co-Authored-By: Mark Mitchell <mark@codesourcery.com>
From-SVN: r114986
Lee Millward [Sun, 25 Jun 2006 11:07:05 +0000 (11:07 +0000)]
re PR c++/28051 (ICE on invalid conversion operator)
PR c++/28051
* mangle.c (mangle_conv_op_name_for_type): Check for
invalid types.
*name-lookup.c (push_class_level_binding): Robustify.
(do_class_using_decl): Return early if name is error_mark_node.
From-SVN: r114985
Eric Botcazou [Sun, 25 Jun 2006 10:33:10 +0000 (10:33 +0000)]
Move entry to proper file.
From-SVN: r114984
Francois-Xavier Coudert [Sun, 25 Jun 2006 08:46:09 +0000 (10:46 +0200)]
io.h: Move proto for unit_to_fd...
* io/io.h: Move proto for unit_to_fd...
* libgfortran.h: ...here.
From-SVN: r114983
Paolo Carlini [Sun, 25 Jun 2006 01:23:17 +0000 (01:23 +0000)]
random (class normal_distribution<>): Add.
2006-06-24 Paolo Carlini <pcarlini@suse.de>
* include/tr1/random (class normal_distribution<>): Add.
* include/tr1/random.tcc (normal_distribution<>::operator()): Define.
* include/tr1/random.tcc (struct _Max): Remove, "inline" in the
only user, mersenne_twister<>::max().
* include/tr1/random.tcc (struct _Shift): Move...
* include/tr1/random: ... here.
* include/tr1/random.tcc (linear_congruential<>::
linear_congruential(unsigned long), linear_congruential<>::
linear_congruential(_Gen&), mersenne_twister<>::max())): Move inline...
* include/tr1/random: ... here.
* include/tr1/random (exponential_distribution<>::
exponential_distribution(const result_type&)): Add missing
_GLIBCXX_DEBUG_ASSERT.
* testsuite/tr1/5_numerical_facilities/random/
exponential_distribution/requirements/typedefs.cc: New.
* testsuite/tr1/5_numerical_facilities/random/
normal_distribution/requirements/typedefs.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/
bernoulli_distribution/requirements/typedefs.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/
geometric_distribution/requirements/typedefs.cc: Likewise.
From-SVN: r114982
GCC Administrator [Sun, 25 Jun 2006 00:17:12 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r114980
Joseph Myers [Sat, 24 Jun 2006 18:34:14 +0000 (19:34 +0100)]
* sv.po: Update.
From-SVN: r114973
Francois-Xavier Coudert [Sat, 24 Jun 2006 18:10:47 +0000 (20:10 +0200)]
re PR fortran/28081 (Undue compile-time error for zero-sized substring)
PR fortran/28081
* resolve.c (resolve_substring): Don't issue out-of-bounds
error messages when the range has zero size.
* gfortran.dg/substr_3.f: New test.
* gfortran.dg/equiv_2.f90: Update expected error message.
From-SVN: r114972
Francois-Xavier Coudert [Sat, 24 Jun 2006 16:06:28 +0000 (18:06 +0200)]
re PR fortran/23862 (Select Fortran source form appropriately for "-pipe")
PR fortran/23862
* lang-specs.h (f95-cpp-input): Pass -ffree-form to f951 unless
-ffixed-form is explicitly specified.
From-SVN: r114970
Joseph Myers [Sat, 24 Jun 2006 15:40:32 +0000 (16:40 +0100)]
be.po, [...]: Update.
* be.po, ca.po, da.po, de.po, el.po, es.po, fr.po, ja.po, nl.po,
rw.po, sv.po, tr.po, vi.po, zh_CN.po, zh_TW.po: Update.
From-SVN: r114967
Joseph Myers [Sat, 24 Jun 2006 15:39:43 +0000 (16:39 +0100)]
be.po, [...]: Update.
* be.po, ca.po, da.po, de.po, el.po, es.po, fr.po, ja.po, nl.po,
rw.po, sv.po, tr.po, zh_CN.po, zh_TW.po: Update.
From-SVN: r114966
Paul Thomas [Sat, 24 Jun 2006 13:04:37 +0000 (13:04 +0000)]
re PR fortran/28118 (ICE calling subroutine defined via explicit interface)
2006-06-24 Paul Thomas <pault@gcc.gnu.org>
PR fortran/28118
* trans-array.c (gfc_conv_expr_descriptor): When building temp,
use the substring reference to calculate the length if the
expression does not have a charlen.
2006-06-24 Paul Thomas <pault@gcc.gnu.org>
PR fortran/28118
* gfortran.dg/actual_array_substr_1.f90: New test.
From-SVN: r114964
Olivier Hainque [Sat, 24 Jun 2006 12:47:48 +0000 (12:47 +0000)]
gimplify.c (gimplify_scalar_mode_aggregate_compare): New function.
* gimplify.c (gimplify_scalar_mode_aggregate_compare): New function.
(gimplify_expr): Use it for tcc_comparison of operands of non BLKmode
aggregate types.
* tree-ssa-loop-im.c (for_each_index): Handle ARRAY_RANGE_REF as
ARRAY_REF, so have the callback called for the low bound expression.
* gnat.dg/scalar_mode_agg_compare_loop.adb: New test.
* gnat.dg/scalar_mode_agg_compare.adb: New test.
From-SVN: r114963
Francois-Xavier Coudert [Sat, 24 Jun 2006 12:34:51 +0000 (14:34 +0200)]
ierrno.c: Don't include "io/io.h".
* intrinsics/ierrno.c: Don't include "io/io.h".
* intrinsics/sleep.c: Likewise.
* intrinsics/perror.c: Likewise.
* intrinsics/stat.c: Likewise.
* intrinsics/kill.c: Likewise.
* intrinsics/time.c: Likewise.
* intrinsics/fnum.c: Likewise.
* intrinsics/rename.c: Likewise.
* intrinsics/symlnk.c: Likewise.
* intrinsics/chdir.c: Likewise.
* intrinsics/link.c: Likewise.
* intrinsics/random.c: Don't include "io/io.h". Include <gthr.h>.
* intrinsics/rand.c: Likewise.
From-SVN: r114962
Francois-Xavier Coudert [Sat, 24 Jun 2006 08:27:32 +0000 (10:27 +0200)]
re PR fortran/28094 (Modulo of real(kind=10) variables doesn't work)
PR fortran/28094
* trans-intrinsic.c (gfc_conv_intrinsic_mod): Support cases where
there is no integer kind equal to the resulting real kind.
* intrinsic.c (add_functions): MODULO is not allowed as an actual
argument.
* Makefile.am: Add _mod_r10.F90 and _mod_r16.F90.
* Makefile.in: Regenerate.
* generated/_mod_r10.F90: New file.
* generated/_mod_r16.F90: New file.
From-SVN: r114961
GCC Administrator [Sat, 24 Jun 2006 00:17:25 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r114959
Benjamin Kosnik [Sat, 24 Jun 2006 00:13:08 +0000 (00:13 +0000)]
re PR libstdc++/27984 (installed libstdc++ testing broken)
2006-06-23 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/27984
* testsuite/lib/libstdc++.exp (libstdc++_init): Adjust
testing includes.
* docs/html/test.html: Adjust for testsuite changes.
From-SVN: r114955
Steve Ellcey [Fri, 23 Jun 2006 21:58:25 +0000 (21:58 +0000)]
re PR c++/28114 (ICE with struct definition in argument of template function)
PR c++/28114
* name-lookup.c (pushtag): Return if we have error_mark_node.
From-SVN: r114953
Steve Ellcey [Fri, 23 Jun 2006 21:53:36 +0000 (21:53 +0000)]
re PR c++/27019 (ICE with designated initializers)
PR c++/27019
* typeck2.c (process_init_constructor_array): Set ce->value on errors.
From-SVN: r114952
Janis Johnson [Fri, 23 Jun 2006 21:17:53 +0000 (21:17 +0000)]
tree.h (DECIMAL_FLOAT_TYPE_P): New.
* tree.h (DECIMAL_FLOAT_TYPE_P): New.
* c-typeck.c (c_common_type): Disallow operations on decimal float
types and other float types.
* convert.c (convert_to_real): Don't ignore conversions involving
decimal float types.
testsuite:
* gcc.dg/dfp/usual-arith-conv-bad.c: New test.
From-SVN: r114951
Steven G. Kargl [Fri, 23 Jun 2006 21:05:04 +0000 (21:05 +0000)]
re PR fortran/27981 (Strange error message for illegal integer constant)
2006-06-23 Steven G. Kargl <kargls@comcast.net>
PR fortran/27981
* match.c (gfc_match_if): Handle errors in assignment in simple if.
2006-06-23 Steven G. Kargl <kargls@comcast.net>
PR fortran/27981
* gfortran.dg/simpleif_2.f90: New test.
From-SVN: r114950
Lee Millward [Fri, 23 Jun 2006 19:37:58 +0000 (19:37 +0000)]
error22.C: Fix typo.
* g++.dg/template/error22.C: Fix typo.
From-SVN: r114949
Volker Reichelt [Fri, 23 Jun 2006 17:02:38 +0000 (17:02 +0000)]
re PR c++/28112 (ICE with invalid argument in attribute)
PR c++/28112
* parser.c (cp_parser_attribute_list): Skip attributes with invalid
arguments. Fix comment.
* g++.dg/ext/attrib23.C: New test.
From-SVN: r114941
Steve Ellcey [Fri, 23 Jun 2006 16:21:54 +0000 (16:21 +0000)]
re PR target/28084 (/usr/include/errno.h:28: error: previous declaration of 'int errno' with 'C++' linkage)
PR target/28084
* inclhack.def (hpux_extern_errno): New.
* fixincl.x: Regenerate.
From-SVN: r114939
Olivier Hainque [Fri, 23 Jun 2006 16:18:49 +0000 (16:18 +0000)]
tree.c (max_int_size_in_bytes): New function, inspired from code in function.c:assign_temp.
* tree.c (max_int_size_in_bytes): New function, inspired from
code in function.c:assign_temp.
* tree.h (max_int_size_in_bytes): Declare.
* function.c (assign_temp): Use it.
* gimplify.c (create_tmp_var): Relax the assertions on the type
properties, not mandating constant size any more.
(force_constant_size): New static function.
(gimple_add_tmp_var): Use it, forcing variable size to a
constant upper bound if it is not constant on entry.
* ada/misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
not been able to get a constant upper bound from TYPE_SIZE_UNIT.
* gnat.dg/varsize_temp.adb: New test.
From-SVN: r114938
Volker Reichelt [Fri, 23 Jun 2006 15:59:51 +0000 (15:59 +0000)]
re PR c++/11468 (Deriving from CNI class java::lang::Object causing an ICE)
PR c++/11468
* init.c (build_new_1): Handle error_mark_nodes returned by
build_java_class_ref.
(build_java_class_ref): Do not abort compilation, but return
error_mark_node. Improve error message. Fix indentation.
* g++.dg/other/java2.C: New test.
From-SVN: r114937
Andrew Haley [Fri, 23 Jun 2006 12:14:44 +0000 (12:14 +0000)]
java-tree.h (update_aliases): Remove
2006-06-21 Andrew Haley <aph@redhat.com>
* java-tree.h (update_aliases): Remove
* expr.c (expand_iinc): Remove call to update_aliases().
(STORE_INTERNAL): Likewise.
* decl.c (update_aliases, initialize_local_variable)
(maybe_pushlevels): Set DECL_VALUE_EXPR for debugging decls.
From-SVN: r114931
Andreas Schwab [Fri, 23 Jun 2006 09:41:38 +0000 (09:41 +0000)]
Remove conflict marker.
From-SVN: r114928
Danny Smith [Fri, 23 Jun 2006 08:25:33 +0000 (08:25 +0000)]
re PR target/27789 (attribute handling fallout from DECL_INITIAL changes)
PR target/27789
* config/i386/winnt.c (ix86_handle_selectany_attribute): Move check
for initialization and setting of one_only flag to ...
(i386_pe_encode_section_info): ...here.
(i386_pe_dllimport_p): Check for DECL_DLLIMPORT_P also.
Recheck that the symbol has not been defined.
cp
* decl.c (start_decl): Check that dllimports are not initialized.
testsuite
* g++.dg/ext/dllimport4.C. Add more tests for invalid
initialization.
From-SVN: r114927
Richard Guenther [Fri, 23 Jun 2006 08:22:12 +0000 (08:22 +0000)]
ggc-page.c (init_ggc): Do not round up the extra_order_size_table sizes to MAX_ALIGNMENT.
2006-06-23 Richard Guenther <rguenther@suse.de>
* ggc-page.c (init_ggc): Do not round up the extra_order_size_table
sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
alignment requests instead. Add verification code.
Add struct tree_function_decl and struct tree_binfo size to
extra_order_size_table. Add missing element to size_lookup
table.
From-SVN: r114926
Roger Sayle [Fri, 23 Jun 2006 02:01:30 +0000 (02:01 +0000)]
re PR middle-end/28131 (FAIL: gcc.c-torture/execute/va-arg-25.c compilation (ICE))
2006-06-22 Roger Sayle <roger@eyesopen.com>
John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR middle-end/28131
* expr.c (expand_expr_real_1) <VECTOR_CST>: Check whether the
call to lang_hooks.types.type_for_mode returned NULL_TREE.
Co-Authored-By: John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
From-SVN: r114923
Ben Elliston [Fri, 23 Jun 2006 01:46:00 +0000 (01:46 +0000)]
decNumber.h (decNumberNegate): Remove.
libdecnumber/
* decNumber.h (decNumberNegate): Remove.
gcc/
* dfp.c (decimal_to_decnumber): Do not use decNumberNegate to
negate dn -- manipulate it directly.
From-SVN: r114922
Roger Sayle [Fri, 23 Jun 2006 01:19:57 +0000 (01:19 +0000)]
re PR target/27531 (sparc: undefined reference to .LL226 with -O2)
2006-06-22 Roger Sayle <roger@eyesopen.com>
Steven Bosscher <stevenb.gcc@gmail.com>
PR target/27531
* reload1.c (gen_reload): Call mark_jump_label on the new insns
generated by gen_move_insn to add REG_LABEL notes if necessary.
* gcc.dg/pr27531-1.c: New test case.
Co-Authored-By: Steven Bosscher <stevenb.gcc@gmail.com>
From-SVN: r114921
GCC Administrator [Fri, 23 Jun 2006 00:17:25 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r114919
John David Anglin [Thu, 22 Jun 2006 23:36:36 +0000 (23:36 +0000)]
MAINTAINERS (OS Port Maintainers): Add myself as hpux maintainer.
* MAINTAINERS (OS Port Maintainers): Add myself as hpux maintainer.
From-SVN: r114913
Steve Ellcey [Thu, 22 Jun 2006 21:38:17 +0000 (21:38 +0000)]
* MAINTAINERS (OS Port Maintainers): Add myself as hpux maintainer.
From-SVN: r114909
Gerald Pfeifer [Thu, 22 Jun 2006 20:56:04 +0000 (20:56 +0000)]
Fix my 2006-05-22 entry for doc/install.texi (hijacked -> gone).
From-SVN: r114905
Bob Wilson [Thu, 22 Jun 2006 19:41:00 +0000 (19:41 +0000)]
lib1funcs.asm (MIN_ESA): Delete.
* config/xtensa/lib1funcs.asm (MIN_ESA): Delete.
(leaf_entry): Remove use of MIN_ESA.
From-SVN: r114903
Thomas Fitzsimmons [Thu, 22 Jun 2006 19:22:42 +0000 (19:22 +0000)]
jni.exp (gcj_jni_invocation_test_one): Link against -ljvm, not -lgcj.
2006-06-22 Thomas Fitzsimmons <fitzsim@redhat.com>
* testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one):
Link against -ljvm, not -lgcj.
From-SVN: r114902
Asher Langton [Thu, 22 Jun 2006 18:30:18 +0000 (18:30 +0000)]
re PR fortran/24748 (substring of implicitly typed variable not rejected)
PR fortran/24748
* primary.c (gfc_match_rvalue): Don't call match_substring for
implicit non-character types.
PR fortran/24748
* gfortran.dg/implicit_8.f90: New.
From-SVN: r114901
Thomas Fitzsimmons [Thu, 22 Jun 2006 18:24:32 +0000 (18:24 +0000)]
Makefile.am (libjvm_la_LDFLAGS): Do not set -rpath to toolexeclibdir.
2006-06-22 Thomas Fitzsimmons <fitzsim@redhat.com>
* Makefile.am (libjvm_la_LDFLAGS): Do not set -rpath to
toolexeclibdir.
* Makefile.in: Regenerate.
From-SVN: r114900