GCC Administrator
c4dec8d5a8
Daily bump.
...
From-SVN: r66365
2003-05-02 00:17:06 +00:00
Paolo Carlini
74843551df
sstream.tcc (overflow): Instead of calling str()...
...
2003-05-01 Paolo Carlini <pcarlini@unitus.it>
* include/bits/sstream.tcc (overflow): Instead of calling
str(), then _M_string.reserve, thus copying the contents
of the current buffer two times, just copy the latter in
a temporary, then use the 'swap trick'.
From-SVN: r66358
2003-05-02 00:14:49 +00:00
Paolo Carlini
e70b1b7788
std_sstream.h (str()): Revert the best of the previous 'improvement'...
...
2003-05-01 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_sstream.h (str()): Revert the best of the
previous 'improvement', incorrect due to the COW nature of
v3 basic_string; simplify.
From-SVN: r66357
2003-05-01 23:20:33 +00:00
Paolo Carlini
f4731b64d2
streambuf.tcc (__copy_streambufs): Adjust the type of __avail to ptrdiff_t to avoid signed-unsigned warning.
...
2003-05-01 Paolo Carlini <pcarlini@unitus.it>
* include/bits/streambuf.tcc (__copy_streambufs): Adjust the
type of __avail to ptrdiff_t to avoid signed-unsigned warning.
From-SVN: r66356
2003-05-01 22:53:13 +00:00
Benjamin Kosnik
e78d8df476
abi_check.cc (check_version): Update known versions.
...
2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/abi_check.cc (check_version): Update known versions.
Check added symbols for version_name != base version. Add missing
symbols to incompatible list.
From-SVN: r66352
2003-05-01 22:17:23 +00:00
Tom Tromey
06b021af7b
re PR libgcj/10582 (array assignment fails in some situations)
...
PR libgcj/10582:
* verify.cc (_Jv_BytecodeVerifier::is_assignable_from_slow):
Removed.
(type::compatible): Use _Jv_IsAssignableFrom.
* java/lang/natClass.cc (iindex_mutex_initialized): Now static.
(_Jv_IsAssignableFrom): Work even when source or target class is
not prepared.
From-SVN: r66348
2003-05-01 21:36:18 +00:00
Tom Tromey
c93139b826
re PR libgcj/10582 (array assignment fails in some situations)
...
PR libgcj/10582:
* libjava.lang/assign.java: New file.
* libjava.lang/assign.out: New file.
From-SVN: r66347
2003-05-01 21:31:58 +00:00
Benjamin Kosnik
947bd823aa
acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
...
2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
* aclocal.m4: Regenerated.
* configure: Regenerated.
From-SVN: r66345
2003-05-01 20:19:18 +00:00
Nathan Sidwell
774cb6d136
* scan.h (lineno): Revert the rename here.
...
From-SVN: r66344
2003-05-01 19:24:14 +00:00
Nathan Sidwell
561712fe49
trans.c (tree_transform, [...]): Rename lineno to input_line.
...
* trans.c (tree_transform, build_unit_elab,
set_lineno): Rename lineno to input_line.
From-SVN: r66343
2003-05-01 18:44:48 +00:00
Stan Shebs
e1a4211d22
darwin.c (darwin_encode_section_info): Call default_encode_section_info.
...
* config/darwin.c (darwin_encode_section_info): Call
default_encode_section_info.
From-SVN: r66339
2003-05-01 18:00:50 +00:00
Nathan Sidwell
3489e0614d
missed from my previous checkin
...
From-SVN: r66337
2003-05-01 17:15:23 +00:00
David Edelsohn
02ca759501
rs6000.md (define_attr "type"): Add mfjmpr.
...
* config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
(movsi_internal1): Use new mfjmpr attribute.
(movhi_internal): Same.
(movqi_internal): Same.
(movcc_internal1): Same.
(movdi_internal64): Same.
* config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
* config/rs6000/40x.md: Add fpu_405.
* config/rs6000/power4.md: Merge power4lsu and power4disp automata
into power4misc automata. Remove extraneous parentheses.
* config/rs6000/440.md: New file.
* config/rs6000/rs6000.c (processor_target_table): Add 440,
440fp. Rename 405f to 405fp.
(function_arg_padding): Correct formatting.
(rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
From-SVN: r66336
2003-05-01 13:05:18 -04:00
Paolo Carlini
397751aef0
streambuf.tcc (basic_streambuf::xsgetn): Const-ify some variables.
...
2003-05-01 Paolo Carlini <pcarlini@unitus.it>
* include/bits/streambuf.tcc (basic_streambuf::xsgetn):
Const-ify some variables.
(basic_streambuf::xsputn): Likewise; change the type of some
variables to size_t.
(__copy_streambufs): Change some variables to size_t.
2003-05-01 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_sstream.h (str()): Avoid constructing
a basic_string temporary not only when it would turn out
to be zero-sized but also when identical to the current
_M_string buffer.
From-SVN: r66334
2003-05-01 16:45:50 +00:00
Nathan Sidwell
d479d37f5e
input.h (lineno): Rename to ...
...
* input.h (lineno): Rename to ...
(input_line): ... here.
* tree.h (lineno): Rename to ...
(input_line): ... here.
* scan.h (lineno): Rename to ...
(input_line): ... here.
* toplev.c (lineno): Rename to ...
(input_line): ... here.
(push_srcloc, pop_srcloc): Rename lineno to input_line.
* c-common.c (c_expand_start_cond, fname_decl): Likewise.
* c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
store_parm_decls, c_expand_body_1): Likewise.
* c-errors.c (pedwarn_c99): Likewise.
* c-format.c (status_warning): Likewise.
* c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
* c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
* c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
* c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
* coverage.c (create_coverage): Likewise.
* diagnostic.c (pedwarn, sorry, error, fatal_error,
internal_error, warning, diagnostic_report_current_module,
inform): Likewise.
* expr.c (expand_expr): Likewise.
* integrate.c (expand_inline_function,
output_inline_function): Likewise.
* rtl-error.c (file_and_line_for_asm): Likewise.
* tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
walk_tree): Likewise.
* tree.c (make_node): Likewise.
* ada, cp, f, java, objc, treelang: Likewise.
ada
* trans.c (build_unit_elab, set_lineno): Rename lineno to
input_line.
* utils.c (pushdecl, create_label_decl, begin_subprog_body,
end_subprog_body): Likewise.
* utils2.c (build_call_raise): Likewise.
cp
* class.c (finish_struct): Rename lineno to input_line.
* decl.c (push_binding_level, pop_binding_level,
suspend_binding_level, resume_binding_level, make_label_decl,
use_label, start_function): Likewise.
* decl2.c (warn_if_unknown_interface,
start_static_initialization_or_destruction,
generate_ctor_or_dtor_function, finish_file): Likewise.
* error.c (cp_line_of, print_instantiation_full_context,
print_instantiation_context): Likewise.
* except.c (check_handlers_1, check_handlers): Likewise.
* init.c (create_temporary_var): Likewise.
* method.c (use_thunk, synthesize_method): Likewise.
* parser.c (cp_lexer_set_source_position_from_token,
cp_lexer_get_preprocessor_token): Likewise.
* pt.c (push_tinst_level, pop_tinst_level,
tsubst_friend_function, instantiate_class_template, tsubst_decl,
tsubst, tsubst_expr, instantiate_decl): Likewise.
* semantics.c (genrtl_try_block, finish_label_stmt,
begin_class_definition, expand_body,
genrtl_finish_function): Likewise.
* tree.c (build_min_nt, build_min): Likewise.
f
* ansify.c (die_unless): Rename lineno to input_line.
* com.c (ffecom_subscript_check_, ffecom_do_entry_,
ffecom_gen_sfuncdef_, ffecom_start_progunit_,
ffecom_sym_transform_, ffecom_sym_transform_assign_,
bison_rule_pushlevel_, bison_rule_compstmt_, finish_function,
store_parm_decls): Likewise.
* intrin.c (ffeintrin_fulfill_generic): Likewise.
* lex.c (ffelex_hash_, ffelex_include_, ffelex_next_line_,
ffelex_file_fixed, ffelex_file_free): Likewise.
* std.c (ffestd_exec_end): Likewise.
* ste.c (ffeste_emit_line_note_, ffeste_start_block_,
ffeste_start_stmt_): Likewise.
* ste.h (ffeste_filelinenum, ffeste_set_line): Likewise.
java
* lex.h (lineno): Rename to ...
(input_line): ... here
* parse-scan.y (lineno): Rename to ...
(input_line): ... here.
(reset_report): Rename lineno to input_line.
* check-init.c (check_init): Likewise.
* class.c (push_class): Likewise.
* decl.c (complete_start_java_method, end_java_method): Likewise.
* expr.c (expand_byte_code): Likewise.
* jcf-parse.c (give_name_to_class, parse_class_file): Likewise.
* jcf-write.c (generate_bytecode_insns): Likewise.
* lex.c (java_init_lex, java_allocate_new_line,
do_java_lex): Likewise.
* parse.h (YYNOT_TWICE): Likewise.
* parse.y (empty_statement, expression_statement,
java_pop_parser_context, java_parser_context_save_global,
yyerror, register_fields, method_header, safe_layout_class,
find_in_imports_on_demand, create_artificial_method,
source_end_java_method, start_complete_expand_method,
build_thisn_assign, java_complete_lhs,
maybe_absorb_scoping_block): Likewise.
objc
* objc-act.c (objc_init): Rename lineno to input_line.
(build_module_descriptor, build_selector_translation_table,
build_protocol_template, build_method_prototype_list_template,
build_category_template, build_selector_table,
build_class_template, build_super_template, build_ivar_template,
build_ivar_list_template, build_method_list_template,
build_method_template, add_instance_variable): Likewise.
treelang
* tree1.c (treelang_init): Rename lineno to input_line.
From-SVN: r66333
2003-05-01 16:13:36 +00:00
Mark Mitchell
49bf457745
decl2.c (comdat_linkage): Don't externalize explicit instantiations.
...
* decl2.c (comdat_linkage): Don't externalize explicit
instantiations.
From-SVN: r66331
2003-05-01 15:46:01 +00:00
Nathan Sidwell
1b293905a3
lex.c (ffelex_file_pop_): Rename parameter from input_filename.
...
* lex.c (ffelex_file_pop_): Rename parameter from input_filename.
(ffelex_file_push_): Likewise.
From-SVN: r66330
2003-05-01 15:42:10 +00:00
Kriang Lerdsuwanakij
d0af00afb9
re PR c++/10554 (ICE with illegal using declaration)
...
PR c++/10554
* decl2.c (do_class_using_decl): Check if operand 0 of SCOPE_REF
is not NULL.
* g++.dg/lookup/using5.C: New test.
From-SVN: r66329
2003-05-01 15:02:13 +00:00
Steven Bosscher
85209a3c3b
cp-tree.h (struct lang_id2): Remove.
...
* cp-tree.h (struct lang_id2): Remove. Move fields from here...
(struct lang_identifier): ... to here.
(LANG_ID_FIELD): Remove.
(SET_LANG_ID): Remove.
(IDENTIFIER_LABEL_VALUE): Adjust for new lang_identifier.
(SET_IDENTIFIER_LABEL_VALUE): Likewise.
(IDENTIFIER_IMPLICIT_DECL): Likewise.
(SET_IDENTIFIERL_IMPLICIT_DECL): Likewise.
(IDENTIFIER_ERROR_LOCUS): Likewise.
(SET_IDENTIFIER_ERROR_LOCUS): Likewise.
From-SVN: r66328
2003-05-01 14:39:37 +00:00
Laurent Guerby
4f9335cdd9
re PR ada/10546 (GCC 3.3, Ada tasking not working on Red Hat Linux 9)
...
2003-05-01 Laurent Guerby <guerby@acm.org>
PR ada/10546
* 5iosinte.ads: Increase pthread_cond_t size to match recent
LinuxThread and NPTL version, merge from ACT.
From-SVN: r66327
2003-05-01 14:14:35 +00:00
Nathan Sidwell
3b895f8ed6
dwarf2out.c (dwarf2out_init, [...]): Change parameter name from input_filename.
...
* dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
name from input_filename.
f:
* ste.c (struct gbe_block): Rename field from input_filename.
(ffeste_start_block_, ffeste_start_stmt_): Likewise.
From-SVN: r66326
2003-05-01 13:45:37 +00:00
Kriang Lerdsuwanakij
d12a72831c
re PR c++/8772 (misleading diagnostic for template template parameter)
...
PR c++/8772
* pt.c (convert_template_argument): Correct diagnostic.
* g++.dg/template/ttp5.C: New test.
From-SVN: r66324
2003-05-01 11:36:19 +00:00
Richard Sandiford
093e61a6d1
Regenerated with autoconf 2.13.
...
From-SVN: r66323
2003-05-01 11:26:17 +00:00
Paolo Carlini
8544261c53
stdio_filebuf.h (stdio_filebuf(int, std::ios_base::openmode, bool, size_t), [...]): Shorten a bit (-10 lines) by factoring out some code.
...
2003-05-01 Paolo Carlini <pcarlini@unitus.it>
* include/ext/stdio_filebuf.h
(stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
Shorten a bit (-10 lines) by factoring out some code.
From-SVN: r66320
2003-05-01 08:41:59 +00:00
Eric Christopher
d1c4bfe8b7
Missed commit file.
...
From-SVN: r66319
2003-05-01 06:18:07 +00:00
Eric Christopher
cafe096b40
Merge from rewrite branch.
...
From-SVN: r66318
2003-05-01 02:33:13 +00:00
Mark Mitchell
6481daa971
g++-dg.exp (g++-dg-test): Add "repo" option.
...
* lib/g++-dg.exp (g++-dg-test): Add "repo" option.
(dg-gpp-additional-sources): New function.
(dg-gpp-additional-files): Likewise.
* lib/g++.exp (additional_sources): New variable.
(additional_files): Likewise.
(g++_target_compile): Deal with them.
* lib/old-dejagnu.exp: Remove.
* g++.old-deja/old-deja.exp: Use dg.exp, not old-dejagnu.exp.
* g++.old-deja: Revise all tests to use dg commands.
From-SVN: r66317
2003-05-01 02:02:59 +00:00
Diego Novillo
44c8a5f8d8
* builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
...
From-SVN: r66316
2003-04-30 21:27:48 -04:00
Geoffrey Keating
5d638f7087
tree-inline.c (inlinable_function_p): Back out last change, it's unnecessary.
...
* tree-inline.c (inlinable_function_p): Back out last change, it's
unnecessary.
From-SVN: r66315
2003-05-01 01:21:45 +00:00
GCC Administrator
ee704412ab
Daily bump.
...
From-SVN: r66314
2003-05-01 00:17:10 +00:00
Steven Bosscher
5e26df649a
ggc-page.c (TREE_EXP_SIZE): Define.
...
* ggc-page.c (TREE_EXP_SIZE): Define.
(extra_order_size_table): New entry for expr trees with
two operands.
From-SVN: r66306
2003-04-30 21:44:23 +00:00
Richard Kenner
5826955dbb
* stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
...
From-SVN: r66305
2003-04-30 16:30:37 -04:00
Gabriel Dos Reis
fba020b134
c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
...
* c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
(c_expand_start_cond): Adjust.
(c_expand_end_cond): Don't use warning_with_file_and_file.
(shadow_warning): Likewise.
From-SVN: r66304
2003-04-30 20:27:26 +00:00
Steven Bosscher
1dcfc9d1fa
parse.y (make_plus_expression): New function.
...
* parse.y (make_plus_expression): New function.
(expression:): Use make_plus_expression for PLUS, MINUS,
ASSIGN and EQUALS.
* tree1.c (treelang_decode_option): Don't fall through to
options that start with a different character when an option
was not recognized.
From-SVN: r66303
2003-04-30 19:08:12 +00:00
Nathan Sidwell
b7bfc1c0b5
Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
...
* Make-lang.in (parse.c): Reorder bison arguments for POSIXLY_CORRECT.
* treetree.c: Do not #include parse.h.
From-SVN: r66301
2003-04-30 18:27:43 +00:00
Nathan Sidwell
62216ea087
tree.h (DECL_POINTER_DEPTH): Remove.
...
* tree.h (DECL_POINTER_DEPTH): Remove.
(struct tree_decl): Remove pointer_depth.
From-SVN: r66300
2003-04-30 18:24:06 +00:00
Phil Edwards
8abcca7bc6
acinclude.m4: Add bit missing from previous patch.
...
2003-04-30 Phil Edwards <pme@gcc.gnu.org>
* acinclude.m4: Add bit missing from previous patch.
* aclocal.m4, configure: Regenerated.
From-SVN: r66299
2003-04-30 18:04:23 +00:00
Kriang Lerdsuwanakij
d7ed5e55a2
PR c++/9432, c++/9528
...
PR c++/9432, c++/9528
* decl2.c (validate_nonmember_using_decl): Handle SCOPE_REF.
* g++.dg/lookup/using4.C: New test.
From-SVN: r66298
2003-04-30 17:51:41 +00:00
Janis Johnson
d1908febec
linux64.h (ASM_OUTPUT_LABELREF): Remove.
...
2003-04-30 Janis Johnson <janis187@us.ibm.com>
* config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
* config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
(rs6000_xcoff_encode_section_info): Remove.
(current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
(rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
(small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
Use SYMBOL_REF_FLAGS.
(rs6000_elf_encode_section_info): Call default_encode_section_info for
generic flags, use SYMBOL_REF_FLAGS; code cleanups.
* sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
(SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
* xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
(ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
From-SVN: r66297
2003-04-30 16:51:23 +00:00
Gabriel Dos Reis
0e42348d22
* diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
...
From-SVN: r66295
2003-04-30 16:12:58 +00:00
Wolfgang Bangerth
55b15a115b
* MAINTAINERS (GNATS only): Add Giovanni Bajo.
...
From-SVN: r66294
2003-04-30 08:20:44 -06:00
Andreas Schwab
dad784261d
extend.texi (Other Builtins): Enclose multiple word data type in braces for @deftypefn.
...
* doc/extend.texi (Other Builtins): Enclose multiple word data
type in braces for @deftypefn.
From-SVN: r66293
2003-04-30 14:17:26 +00:00
Richard Kenner
4c80872c48
* doc/install.texi (--enable-threads): Document "gnat" option.
...
From-SVN: r66291
2003-04-30 10:08:14 -04:00
Gabriel Dos Reis
152c16a9ac
decl.c (check_previous_goto_1): Adjust prototype.
...
* decl.c (check_previous_goto_1): Adjust prototype.
(check_previous_goto): Adjust use.
(check_switch_goto): Likewise.
(use_label): Adjust.
(check_previous_goto_1): Don't use pedwarn_with_file_and_line.
(struct named_label_use_list): Use location_t datatype.
From-SVN: r66290
2003-04-30 13:45:40 +00:00
Michael Koch
d3d40e23b3
2003-04-30 Michael Koch <konqueror@gmx.de>
...
* java/text/BreakIterator.java
(clone): New method.
From-SVN: r66289
2003-04-30 13:22:45 +00:00
Michael Koch
70ff9d9023
CollationElementIterator.java, [...]: Merged copyright and documentation from classpath and rearranged some code.
...
2003-04-30 Michael Koch <konqueror@gmx.de>
* java/text/CollationElementIterator.java,
java/text/CollationKey.java,
java/text/RuleBasedCollator.java:
Merged copyright and documentation from classpath and
rearranged some code. No code changes done.
From-SVN: r66288
2003-04-30 13:09:40 +00:00
Gabriel Dos Reis
10256cf5f6
diagnostic.h (output_formatted_scalar): Tweak.
...
* diagnostic.h (output_formatted_scalar): Tweak.
* diagnostic.c (output_long_decimal): Likewise.
(output_unsigned_decimal): Likewise.
(output_long_unsigned_decimal): Likewise.
(output_octal): Likewise.
(output_long_octal): Likewise.
(output_hexadecimal): Likewise.
(output_long_hexadecimal): Likewise.
(output_pointer): New function.
(output_format): Use it. Recognize "%p" format specifier.
From-SVN: r66287
2003-04-30 12:54:29 +00:00
Zdenek Dvorak
b2a7fa89ee
* function.c (purge_addressof_1): Postpone insn in fewer cases.
...
From-SVN: r66286
2003-04-30 10:03:35 +00:00
Michael Koch
ad03daf005
2003-04-30 Michael Koch <konqueror@gmx.de>
...
* java/util/regex/Matcher.java
(pattern): New member variable.
(appendReplacement): New method.
(appendTail): New method.
(end): New method.
(find): New method.
(group): New method.
(replaceFirst): Added documentation.
(replaceAll): Added documentation.
(groupCount): New method.
(lookingAt): New method.
(matches): New method.
(reset): New method.
(start): New method.
* java/util/regex/Pattern.java
(serialVersionUID): New constant.
(CANON_EQ): New constant.
(CASE_INSENSITIVE): New constant.
(COMMENTS): New constant.
(DOTALL): New constant.
(MULTILINE): New constant.
(UNICODE_CASE): New constant.
(UNIX_LINES): New constant.
(regex): New member variable.
(flags): New member variable.
(Pattern): New method.
(compile): Documentation added.
(flags): New method.
(matches): Documentation added.
(matcher): Documentation added.
(split): Documentation added.
(pattern): New method.
From-SVN: r66285
2003-04-30 08:57:04 +00:00
Michael Koch
859a3d9a1d
This accidently got it then the big java.security merge so revert this.
...
From-SVN: r66284
2003-04-30 07:26:36 +00:00