Neil Booth
1fecc2668c
* doc/cppopts.texi: Enhance -Wtrigraphs documentation
...
From-SVN: r66462
2003-05-04 21:45:08 +00:00
Neil Booth
a8eb6044a9
cppinit.c (cpp_create_reader, [...]): Warn about trigraphs unless explicity set or -trigraphs.
...
* cppinit.c (cpp_create_reader, post_options): Warn about
trigraphs unless explicity set or -trigraphs.
* cpplex.c (warn_in_comment): New.
(_cpp_process_line_notes): Better handling of -Wtrigraphs.
(_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
* doc/cppopts.texi, doc/cpp.texi: Update.
testsuite:
* gcc.dg/cpp/Wtrigraphs.c: Update.
* gcc.dg/cpp/Wtrigraphs-2.c: New tests.
From-SVN: r66459
2003-05-04 20:03:55 +00:00
Zdenek Dvorak
09780dfb65
Makefile.in (LIBGCOV): Add _gcov_merge_add.
...
* Makefile.in (LIBGCOV): Add _gcov_merge_add.
* gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
namespace clash.
(GCOV_MERGE_FUNCTIONS): New.
(gcov_merge_fn): Declare.
(struct gcov_ctr_info): New field "merge".
(__gcov_merge_add): Declare.
* coverage.c (ctr_merge_functions): New.
(build_ctr_info_type, build_ctr_info_value): Initialize merge field
of gcov_ctr_info type.
* libgcov.c (__gcov_merge_add): New.
(gcov_exit): Call a hook to merge values of counters.
From-SVN: r66457
2003-05-04 15:20:26 +00:00
Gabriel Dos Reis
c71f2ffd78
toplev.h (pedwarn_with_file_and_line): Don't declare.
...
* toplev.h (pedwarn_with_file_and_line): Don't declare.
* diagnostic.c (pedwarn_with_file_and_line): Remove.
From-SVN: r66456
2003-05-04 15:18:21 +00:00
Gabriel Dos Reis
3d8856836f
* varasm.c (assemble_variable): Don't use error_with_file_and_line.
...
From-SVN: r66454
2003-05-04 14:27:17 +00:00
Nathan Sidwell
d4b56320a1
Make-lang.in (java/parse.o, [...]): Depend on input.h.
...
* Make-lang.in (java/parse.o, java/parse-scan.o): Depend on input.h.
* lex.h: #include input.h.
* jv-scan.c (input_filename): Remove.
From-SVN: r66452
2003-05-04 14:05:15 +00:00
Gerald Pfeifer
878618337c
* MAINTAINERS: Remove duplicate entries in Write After Approval.
...
From-SVN: r66451
2003-05-04 11:45:20 +00:00
Kaveh R. Ghazi
8c9b38d738
builtins.c (expand_builtin_constant_p, [...]): Update prototypes.
...
* builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
expand_builtin_frame_address): Update prototypes.
(expand_builtin_constant_p, expand_builtin_strlen,
expand_builtin_strcpy, expand_builtin_memset,
expand_builtin_bzero, expand_builtin_args_info,
expand_builtin_frame_address): Pass in just the argument(s)
needed, not the entire expression `exp'.
(expand_builtin): Update all calls to these functions.
From-SVN: r66448
2003-05-04 05:34:13 +00:00
Richard Henderson
9c80ff25b7
builtins.c (expand_builtin): Remove.
...
* builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
<BUILT_IN_DWARF_SP_COLUMN>: New.
* builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
(BUILT_IN_DWARF_SP_COLUMN): New.
* dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
(expand_builtin_dwarf_sp_column): New.
* except.h: Update to match.
* unwind-dw2.c (execute_stack_op): Correct stack push typo.
(execute_cfa_program): Record location expression address
before extracting length.
(uw_update_context_1): Install old CFA into stack pointer column.
(uw_init_context_1): Set cfa_reg to stack pointer column.
From-SVN: r66447
2003-05-03 22:22:51 -07:00
Richard Henderson
4d588c1434
rs6000.c (constant_pool_expr_p): Make static and return bool.
...
* config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
return bool.
(toc_relative_expr_p): Likewise.
(SPE_CONST_OFFSET_OK): Move from rs6000.h.
(legitimate_constant_pool_address_p): Move from rs6000.h, change
into a function, downcase all users.
(legitimate_small_data_p): Likewise.
(legitimate_offset_address_p): Likewise.
(legitimate_indexed_address_p): Likewise.
(legitimate_indirect_address_p): Likewise.
(legitimate_lo_sum_address_p): Likewise.
(rs6000_mode_dependent_address): Likewise.
* rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
(SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
(LEGITIMATE_ADDRESS_INTEGER_P): Remove.
(GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
* config/rs6000/rs6000-protos.h: Update.
From-SVN: r66445
2003-05-03 17:33:49 -07:00
GCC Administrator
c3a5317cd3
Daily bump.
...
From-SVN: r66444
2003-05-04 00:16:15 +00:00
Geoffrey Keating
b39358e1d2
rs6000.h (REVERSIBLE_CC_MODE): Define.
...
* config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
(REVERSE_CONDITION): Define.
* gcc.dg/ppc-fsel-1.c: New test.
From-SVN: r66442
2003-05-03 23:16:56 +00:00
Geoffrey Keating
b7053a3fde
rs6000.c (scc_comparison_operator): Make equivalent to branch_positive_comparison_operator.
...
* config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
to branch_positive_comparison_operator.
(ccr_bit): Check that sCOND conditions are actually a positive bit.
(print_operand): Remove %D substitution.
(rs6000_emit_sCOND): Generate complement operation to ensure that
sCOND input is a positive bit.
* config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
same order as bCOND, and add the missing ones. Remove the %D
substitutions from the scc patterns.
From-SVN: r66441
2003-05-03 23:13:57 +00:00
Geoffrey Keating
8d90f9c029
simplify-rtx.c (simplify_relational_operation): Add case for ! (fabs(x) < 0.0).
...
* simplify-rtx.c (simplify_relational_operation): Add case for
! (fabs(x) < 0.0).
From-SVN: r66440
2003-05-03 23:12:41 +00:00
Bruce Korb
8882ac3a64
force merge conflicts in fixincl.x + placement fix
...
From-SVN: r66439
2003-05-03 22:48:59 +00:00
Aldy Hernandez
bd879e9a00
spe.h: Remove unecessary casts.
...
2003-05-03 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/spe.h: Remove unecessary casts. Misc cleanups.
From-SVN: r66437
2003-05-03 22:44:44 +00:00
Zack Weinberg
87f85ea066
re PR c/10604 (-Wall includes sign conversion warning [3.3 regression])
...
PR c/10604
* c-common.c (warn_sign_compare): Initialize to -1.
* c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
(c_common_decode_option <OPT_Wall>): Set warn_sign_compare
for C++ only.
(c_common_post_options): Set warn_sign_compare from extra_warnings
if it's still -1 at this point.
* toplev.c (maybe_warn_unused_parameter): New static variable.
(set_Wextra): New static function.
(W_options): Remove "extra".
(decode_W_option): Call set_Wextra.
(independent_decode_option): Likewise.
(set_Wunused): Cooperate with set_Wextra in setting
warn_unused_parameter.
(rest_of_compilation): No need to check extra_warnings as
well as warn_uninitialized.
* c-typeck.c (build_binary_op, build_conditional_expr):
No need to check extra_warnings as well as warn_sign_compare.
(internal_build_compound_expr): No need to check extra_warnings
as well as warn_unused_value.
* function.c (expand_function_end): No need to check extra_warnings
as well as warn_unused_parameter.
* stmt.c (expand_expr_stmt_value): No need to check extra_warnings
as well as warn_unused_value.
* cp/typeck.c (build_x_compound_expr): No need to check
extra_warnings as well as warn_unused_value.
* doc/invoke.texi: Clarify documentation of -Wsign-compare.
* gcc.dg/compare7.c, g++.dg/warn/compare1.C: New testcases.
* Makefile.in: Disable -Werror for gengtype-lex.o.
From-SVN: r66436
2003-05-03 21:44:31 +00:00
Nathan Sidwell
e7b5f0c9b4
trans.c (tree_transform): Use location_t and input_location directly.
...
* trans.c (tree_transform): Use location_t and input_location
directly.
(build_unit_elab): Likewise.
* utils.c (create_label_decl): Likewise.
From-SVN: r66433
2003-05-03 16:43:17 +00:00
Nathan Sidwell
31423e30ee
com.c (ffecom_do_entry_): Use location_t and input_location directly.
...
* com.c (ffecom_do_entry_): Use location_t and input_location
directly.
(ffecom_gen_sfuncdef_): Likewise.
(ffecom_start_progunit_): Likewise.
(ffecom_sym_transform_): Likewise.
(ffecom_sym_transform_assign_): Likewise.
* lex.c (ffelex_hash_): Likewise.
(ffelex_include_): Likewise.
* std.c (ffestd_exec_begin): Likewise.
(ffestd_exec_end): Likewise.
* ste.c (struct gbe_block): Likewise.
(ffeste_start_block_): Likewise.
(ffeste_start_stmt_): Likewise.
From-SVN: r66432
2003-05-03 16:39:50 +00:00
Matt Kraai
5a43f8c419
GtkButtonPeer.java: Fix misspelling of "version".
...
* libjava/gnu/awt/gtk/GtkButtonPeer.java: Fix misspelling of
"version".
* libjava/gnu/awt/gtk/GtkComponentPeer.java: Likewise.
* libjava/gnu/awt/gtk/GtkContainerPeer.java: Likewise.
* libjava/gnu/awt/gtk/GtkFramePeer.java: Likewise.
* libjava/gnu/awt/gtk/GtkLabelPeer.java: Likewise.
* libjava/gnu/awt/gtk/GtkMainThread.java: Likewise.
* libjava/gnu/awt/gtk/GtkToolkit.java: Likewise.
* libjava/gnu/awt/gtk/GtkWindowPeer.java: Likewise.
* libjava/java/security/Key.java: Likewise.
* libjava/java/security/PrivateKey.java: Likewise.
* libjava/java/security/Provider.java: Likewise.
* libjava/java/security/PublicKey.java: Likewise.
From-SVN: r66431
2003-05-03 16:20:48 +00:00
Richard Kenner
13cf99ece0
expr.c (expand_expr, [...]): Don't use gen_lowpart on non-integer modes.
...
* expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
gen_lowpart on non-integer modes.
From-SVN: r66430
2003-05-03 10:30:07 -04:00
Olivier Hainque
ee9609391b
emit-rtl.c (last_call_insn, [...]): New functions.
...
* emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
* rtl.h (last_call_insn, add_function_usage_to): New prototypes.
* builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
* calls.c (emit_call_1): Likewise.
(expand_call): For calls initializing constant memory, replace
emission of standalone mem /u clobber with function usage entry.
* expr.c (emit_block_move_via_libcall): Likewise.
* cse.c (count_reg_usage, case EXPR_LIST): New case.
* flow.c (propagate_one_insn): Pass entire operand of
CALL_INSN_FUNCTION_USAGE to mark_used_regs.
* integrate.c (try_constants): For CALL_INSNs, substitute constants
within the FUNCTION_USAGE also.
* loop.c (prescan_loop): Note clobbers of const mem mentioned in
FUNCTION_USAGE lists.
* reload1.c (replace_pseudos_in): Renamed.
(reload): Use it for clobbers surviving until the end of the reload.
From-SVN: r66429
2003-05-03 10:25:22 -04:00
Richard Kenner
3923e4102f
stor-layout.c (place_field): When adjusting offset_align, use desired_align, not DECL_ALIGN.
...
* stor-layout.c (place_field): When adjusting offset_align, use
desired_align, not DECL_ALIGN.
From-SVN: r66428
2003-05-03 10:16:27 -04:00
Carlo Wood
41fe940407
cp-demangle.c: Fix typo in "char_traints" string-literal.
...
2003-05-03 Carlo Wood <carlo@alinoe.com>
* cp-demangle.c: Fix typo in "char_traints" string-literal.
From-SVN: r66427
2003-05-03 14:09:35 +00:00
Kazu Hirata
c4e2d744f5
* gcc.dg/m-un-2.c: Fix the typedef of size_t.
...
From-SVN: r66426
2003-05-03 13:34:43 +00:00
Nathan Sidwell
070588f06e
c-decl.c (pending_invalid_xref_file): Remove.
...
* c-decl.c (pending_invalid_xref_file): Remove.
(pending_invalid_xref_line): Remove.
(pending_invalid_xref_location): New.
(lookup_label): Use location_t and input_location directly.
(lookup_tag): Likewise.
(pending_xref_error): Likewise.
(c_expand_body_1): Likewise.
* c-common.c (x_expand_start_cond): Likewise.
* c-semantics.c (genrtl_for_stmt): Likewise.
(find_reachable_label): Likewise.
* expr.c (expand_expr): Likewise.
* integrate.c (output_inline_function): Likewise.
* tree-inline.c (find_alloca_call): Likewise.
(find_builtin_longjmp_call): Likewise.
* gcc.c (input_filename): Make static.
From-SVN: r66425
2003-05-03 13:28:33 +00:00
Kriang Lerdsuwanakij
5dc5d13c70
PR c++/9364, c++/10553, c++/10586
...
PR c++/9364, c++/10553, c++/10586
* decl.c (make_typename_type): Don't crash on illegal code.
* g++.dg/parse/typename4.C: New test.
* g++.dg/parse/typename5.C: Likewise.
From-SVN: r66424
2003-05-03 11:58:17 +00:00
Nathan Sidwell
82a98427a9
class.c (finish_struct): Use location_t and input_location directly.
...
* class.c (finish_struct): Use location_t and input_location
directly.
* decl.c (make_label_decl): Likewise.
(use_label): Likewise.
* decl2.c (warn_if_unknown_interface): Likewise.
(start_static_initialization_or_destruction): Likewise.
(generate_ctor_or_dtor_function): Likewise.
(finish_file): Likewise.
* error.c (print_instantiation_full_context): Likewise.
* init.c (create_temporary_var): Likewise.
* method.c (synthesize_method): Likewise.
* parser.c (cp_token): Likewise.
(cp_lexer_set_source_position_from_token): Likewise.
(cp_lexer_get_preprocessor_token): Likewise.
(cp_parser_statement): Likewise.
* pt.c (tsubst_friend_function): Likewise.
(instantiate_class_template): Likewise.
(tsubst_decl): Likewise.
(tsubst): Likewise.
(instantiate_decl): Likewise.
* semantics.c (begin_class_definition): Likewise.
(expand_body): Likewise.
From-SVN: r66423
2003-05-03 11:37:22 +00:00
Nathan Sidwell
778ea5199f
* ansify.c (die_unless): Revert lineno change here.
...
From-SVN: r66422
2003-05-03 11:24:55 +00:00
Richard Sandiford
4dc27b4b67
* gcc.c-torture/compile/20030503-1.c: New test.
...
From-SVN: r66421
2003-05-03 08:42:58 +00:00
Richard Sandiford
969c6c43ac
* config/mips/mips.md: Fix comment typo.
...
From-SVN: r66420
2003-05-03 08:40:07 +00:00
Richard Sandiford
b259a9a6f7
mips.c (mips_integer_op): New structure.
...
* config/mips/mips.c (mips_integer_op): New structure.
(MIPS_MAX_INTEGER_OPS): Define.
(mips_const_insns): Use mips_build_integer to determine the number
of instructions needed to load a CONST_INT.
(move_operand): Reject compound CONST_INTs.
(mips_build_shift, mips_build_lower, mips_build_integer): New fns.
(mips_move_integer): New fn.
(mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
(mips_legitimize_move): Only legitimize constants when moving
word or subword values.
From-SVN: r66419
2003-05-03 08:10:17 +00:00
Loren J. Rittle
d4c67b6ee3
* testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
...
From-SVN: r66418
2003-05-03 07:42:22 +00:00
Matt Kraai
28068c2c91
* Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
...
From-SVN: r66417
2003-05-03 05:43:34 +00:00
Tom Tromey
73cb3b5a41
re PR java/10491 (gcjh should make enclosing class a "friend" of inner classes)
...
PR java/10491:
* gjavah.c (HANDLE_INNERCLASSES_ATTRIBUTE): New macro.
(handle_inner_classes): New function.
From-SVN: r66416
2003-05-03 02:29:26 +00:00
Chris Demetriou
de7222559c
Makefile.tpl: Require "makeinfo" from texinfo 4.2 or later.
...
2003-05-02 Chris Demetriou <cgd@broadcom.com>
* Makefile.tpl: Require "makeinfo" from texinfo 4.2 or later.
* Makefile.in: Regenerate.
From-SVN: r66415
2003-05-02 18:29:54 -07:00
Tom Tromey
fcc8cecb81
re PR java/10459 (ICE with certain expressions as 3rd clause of for loop)
...
PR java/10459:
* parse.y (finish_for_loop): Do nothing if update expression is a
EXPR_WFL_NODE wrapping nothing.
(java_complete_lhs) <COMPOUND_EXPR>: Likewise.
From-SVN: r66411
2003-05-03 00:35:06 +00:00
Tom Tromey
a6f1f688a6
re PR java/10459 (ICE with certain expressions as 3rd clause of for loop)
...
PR java/10459:
* libjava.compile/pr10459_2.java: New file.
* libjava.compile/pr10459.java: New file.
From-SVN: r66410
2003-05-03 00:33:18 +00:00
Kaveh R. Ghazi
685828f786
builtins.c (expand_builtin_stpcpy): Copy `arglist' before modifying it.
...
* builtins.c (expand_builtin_stpcpy): Copy `arglist' before
modifying it.
From-SVN: r66409
2003-05-03 00:25:59 +00:00
GCC Administrator
43e9b64bf5
Daily bump.
...
From-SVN: r66407
2003-05-03 00:16:15 +00:00
Falk Hueffner
d9e95c6349
contrib.texi (Contributors): Add Zdenek Dvorak, Aldy Hernandez, and Kazu Hirata.
...
* doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
Hernandez, and Kazu Hirata. Update Richard Henderson.
Co-Authored-By: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
From-SVN: r66405
2003-05-02 23:53:19 +00:00
Benjamin Kosnik
53c2acdf21
Makefile.am (CLEANFILES): Remove PCH files in target directory.
...
2003-05-02 Benjamin Kosnik <bkoz@redhat.com>
* include/Makefile.am (CLEANFILES): Remove PCH files in target
directory.
* include/Makefile.in: Regenerate.
From-SVN: r66403
2003-05-02 23:18:09 +00:00
Paolo Carlini
4571fbb1ec
std_sstream.h (str()): Tidy.
...
2003-05-02 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_sstream.h (str()): Tidy.
From-SVN: r66402
2003-05-02 23:02:03 +00:00
Richard Kenner
07a0a04486
Remove myself as ARC maintainer.
...
From-SVN: r66397
2003-05-02 15:23:41 -04:00
Geoffrey Keating
b86fe7b492
rs6000.c (rs6000_attribute_table): Add 'extern' to tentative declaration.
...
* config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
to tentative declaration.
From-SVN: r66396
2003-05-02 18:36:50 +00:00
Nathan Myers
0992fb51ae
streambuf.tcc (__copy_streambufs): Rewrote.
...
2003-05-02 Nathan Myers <ncm@cantrip.org>
Paolo Carlini <pcarlini@unitus.it>
* include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
Co-Authored-By: Paolo Carlini <pcarlini@unitus.it>
From-SVN: r66395
2003-05-02 18:35:24 +00:00
Geoffrey Keating
20bfcd6924
sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
...
* config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
(SYMBOL_FLAG_SMALL_V4): Delete.
* config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
(rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
(rs6000_elf_in_small_data_p): Add extra section names. Add
comment about TREE_PUBLIC test.
From-SVN: r66393
2003-05-02 18:32:49 +00:00
Geoffrey Keating
7454096f70
c-semantics.c (genrtl_switch_stmt, [...]): Call expand_stmt on result of expand_unreachable_stmt.
...
* c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
expand_stmt on result of expand_unreachable_stmt.
From-SVN: r66392
2003-05-02 18:07:01 +00:00
Wolfgang Bangerth
96c4a00231
MAINTAINERS (GNATS only): Add Falk Hueffner.
...
2003-05-02 Wolfgang Bangerth <bangerth@dealii.org>
* MAINTAINERS (GNATS only): Add Falk Hueffner.
From-SVN: r66390
2003-05-02 10:33:48 -06:00
Jonathan Wakely
8515a6007c
basic_string.h (swap): Remove redundant template parameters from declaration of non-template member...
...
2003-05-02 Jonathan Wakely <redi@gcc.gnu.org>
* include/bits/basic_string.h (swap): Remove redundant template
parameters from declaration of non-template member function.
From-SVN: r66389
2003-05-02 16:50:53 +01:00