Jan Hubicka [Sat, 12 Jul 2003 01:07:40 +0000 (03:07 +0200)]
cgraph.c (cgraph_max_uid): New global variable.
* cgraph.c (cgraph_max_uid): New global variable.
(cgraph_node): Set uid field.
(create_edge): Keep inline flags consistent.
(dump_cgraph): Dump more info.
* cgraph.h (struct cgraph_local_info): Remove inline_many and
can_inline_once; add inlinable, disgread_inline_limits, and self_insn
(struct cgraph_global_info): Add insns, calls, cloned_times,
will_be_output.
(struct cgraph_node): Add uid.
(struct cgraph_edge): Add inline_call.
(cgraph_max_uid, cgraph_inline_p): Declare.
* cgraph.c: Include params.h and fibheap.h
(cgraph_mark_functions_to_inline_once): Kill.
(INSNS_PER_CALL): New constant.
(ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
static variables.
(cgraph_finalize_function): Do not analyze inlining.
(cgraph_finalize_compilation_unit): Set inlining attributes.
(cgraph_mark_functions_to_output): More consistency checks.
(cgraph_optimize_function): Set current_function_decl to NULL.
(cgraph_expand_function): Use new inline flags.
(cgraph_postorder): Expand from cgraph_expand_functions.
(INLINED_TIMES, SET_INLINED_TIMES): New macros.
(cgraph_inlined_into, cgraph_inlined_callees,
cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
cgraph_mark_inline, cgraph_check_inline_limits,
cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
cgraph_decide_inlining, cgraph_inline_p): New functions.
* params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
PARAM_INLINE_UNIT_GROWTH): New parameters.
* tree-inline.c (struct inline_data): New field current_decl.
(expand_call_inline): Avoid forward declarations; use
inlinable_function_p.
(optimize_inline_calls): Set id.current_decl.
Co-Authored-By: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
From-SVN: r69262
Andrew Pinski [Sat, 12 Jul 2003 00:35:14 +0000 (00:35 +0000)]
Patch from Andrew Pinksi.
* configure.in: Remove wrongly added definition of
local_prefix.
* configure: Regenerate.
From-SVN: r69261
GCC Administrator [Sat, 12 Jul 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r69259
Dan Nicolaescu [Fri, 11 Jul 2003 23:49:43 +0000 (23:49 +0000)]
* rtl.def (NOTE): Do not use padding.
From-SVN: r69257
Dara Hazeghi [Fri, 11 Jul 2003 23:04:48 +0000 (23:04 +0000)]
Patch from Dara Hazeghi.
* doc/install.tex: Update required binutils for i?86-*-linux*
From-SVN: r69255
Nathanael Nerode [Fri, 11 Jul 2003 23:01:53 +0000 (23:01 +0000)]
re PR c++/11437 (ICE in lookup_name_real)
PR c++/11437
* operators.def: Add definitions for __imag__, __real__.
From-SVN: r69254
Tom Tromey [Fri, 11 Jul 2003 22:23:13 +0000 (22:23 +0000)]
verify.exp: New file.
* libjava.verify/verify.exp: New file.
* libjava.verify/README.verify: New file.
From-SVN: r69253
Gerald Pfeifer [Fri, 11 Jul 2003 22:13:16 +0000 (00:13 +0200)]
README: Note that libffi is not part of GCC.
* README: Note that libffi is not part of GCC. Update the project
URL and status.
From-SVN: r69250
Richard Henderson [Fri, 11 Jul 2003 22:00:09 +0000 (15:00 -0700)]
* Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
From-SVN: r69249
Gerald Pfeifer [Fri, 11 Jul 2003 21:54:40 +0000 (23:54 +0200)]
* README: Note that zlib is not part of GCC.
From-SVN: r69247
Gerald Pfeifer [Fri, 11 Jul 2003 21:48:39 +0000 (23:48 +0200)]
* README: Note that FastJar is not part of GCC.
From-SVN: r69245
Mark Mitchell [Fri, 11 Jul 2003 21:20:18 +0000 (21:20 +0000)]
varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of TRANSLATION_UNIT_DECL as top_level.
* varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
TRANSLATION_UNIT_DECL as top_level.
From-SVN: r69244
Jakub Jelinek [Fri, 11 Jul 2003 21:04:56 +0000 (23:04 +0200)]
optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists, then fall back to cmpstrM.
* optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
then fall back to cmpstrM.
* builtins.c (expand_builtin_memcmp): Likewise.
* config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
(s390_expand_cmpmem): ... this.
* config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
from cmpstr* patterns. Rename call to s390_expand_cmpstr
to s390_expand_cmpmem.
* config/s390/s390.c (s390_expand_cmpstr): Rename to...
(s390_expand_cmpstr): ... this. Rename cmpstr* instructions
to cmpmem*.
* config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
cmpstr* patterns.
* doc/md.texi (cmpstrM): Describe as String compare insn, not
Block compare insn.
(cmpmemM): Add.
* gcc.dg/
20030711-1.c: New test.
From-SVN: r69243
Loren J. Rittle [Fri, 11 Jul 2003 20:22:34 +0000 (20:22 +0000)]
freebsd.h (SET_ASM_OP): Remove.
* config/i386/freebsd.h (SET_ASM_OP): Remove.
(SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
(ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
From-SVN: r69242
Matt Kraai [Fri, 11 Jul 2003 18:27:54 +0000 (18:27 +0000)]
SharedLibLoader.java: Fix misspelling.
2003-07-11 Matt Kraai <kraii@alumni.cmu.edu>
* gnu/gcj/runtime/SharedLibLoader.java: Fix misspelling.
* gnu/gcj/runtime/natSharedLibLoader.cc: Likewise.
* java/awt/im/InputContext.java: Remove a redundant
partial line.
From-SVN: r69238
Richard Henderson [Fri, 11 Jul 2003 16:28:22 +0000 (09:28 -0700)]
function.c (assign_parms): Don't recombine complex args if fnargs is unchanged from orig_fnargs.
* function.c (assign_parms): Don't recombine complex args if
fnargs is unchanged from orig_fnargs.
(split_complex_args): Return args without complex before copying.
Re-layout the modified parameters.
From-SVN: r69236
Jerry Quinn [Fri, 11 Jul 2003 14:25:09 +0000 (14:25 +0000)]
basic_ios.h (copyfmt): Document.
2003-07-11 Jerry Quinn <jlquinn@optonline.net>
* include/bits/basic_ios.h (copyfmt): Document.
* include/bits/ios_base.h (event, event_callback, register_callback,
xalloc, iword, pword): Document.
(imbue, ~ios_base): Update docs on callbacks.
From-SVN: r69235
J"orn Rennecke [Fri, 11 Jul 2003 14:09:29 +0000 (14:09 +0000)]
regclass.c (choose_hard_reg_mode): Add third argument.
* regclass.c (choose_hard_reg_mode): Add third argument.
Changed all callers.
* rtl.h (choose_hard_reg_mode): Update declaration.
* dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
Take HARD_REGNO_CALL_PART_CLOBBERED into account.
From-SVN: r69234
Nathan Sidwell [Fri, 11 Jul 2003 09:18:01 +0000 (09:18 +0000)]
re PR c++/11050 ("some string" __FUNCTION__ is accepted)
cp:
PR c++/11050
* parser.c (cp_parser_expression_list): Rename to ...
(cp_parser_parenthesized_expression_list): ... here. Add attribute
parameter, parse the surounding parentheses.
(cp_parser_skip_to_closing_parenthesis): Add recover and or_comma
parameters. Return int.
(cp_parser_skip_to_closing_parenthesis or comma): Remove.
(cp_parser_postfix_expression): Adjust function call parsing.
(cp_parser_new_placement): Adjust.
(cp_parser_new_initializer): Likewise.
(cp_parser_cast_expression): Likewise.
(cp_parser_selection_statement): Likewise.
(cp_parser_mem_initializer): Likewise.
(cp_parser_asm_definition): Likewise.
(cp_parser_init_declarator): Likewise.
(cp_parser_declarator): Make
cdtor_or_conv_p an int ptr.
(cp_parser_direct_declarator): Likewise. Check for a parameter
list on cdtors & conv functions.
(cp_parser_initializer): Adjust.
(cp_parser_member_declaration): Adjust.
(cp_parser_attribute_list): Move code into
cp_parser_parens_expression_list.
(cp_parser_functional_cast): Adjust.
* pt.c (type_dependent_expression_p): Erroneous expressions are
non-dependent.
testsuite:
PR c++/11050
* g++.dg/parse/args1.C: New test.
* g++.pt/defarg8.C: Change expected errors.
From-SVN: r69230
Mark Mitchell [Fri, 11 Jul 2003 08:53:59 +0000 (08:53 +0000)]
re PR c++/8164 (ICE when using different const expressions as template parameter)
PR c++/8164
* decl.c (duplicate_decls): Avoid mangling names unnecessarily.
PR c++/8164
* g++.dg/template/nontype2.C: New test.
PR c++/10558
* g++.dg/parse/template8.C: New test.
From-SVN: r69229
Mark Mitchell [Fri, 11 Jul 2003 08:41:44 +0000 (08:41 +0000)]
re PR c++/10558 (Segfault on illegal use of template without template args)
PR c++/10558
* g++.dg/parse/template8.C: New test.
From-SVN: r69226
Geoffrey Keating [Fri, 11 Jul 2003 08:33:21 +0000 (08:33 +0000)]
Index: ChangeLog
2003-07-10 Geoffrey Keating <geoffk@apple.com>
* c-decl.c (finish_decl): Handle 'used' here...
* cgraphunit.c (cgraph_finalize_function): ... and here ...
* c-common.c: (handle_used_attribute): ... not here.
* configure.in (onstep): Support --enable-intermodule.
* Makefile.in (OBJS-common): New.
(OBJS-md): New.
(OBJS-archive): New.
(OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
(OBJS-onestep): New.
(libbackend.a): Support @onestep@.
(libbackend.o): New.
* configure: Regenerate.
* c-common.h (c_reset_state): New prototype.
(c_parse_file): New prototype.
(finish_file): Move prototype from c-tree.h.
* c-decl.c: Include <hashtab.h>.
(builtin_decls): New.
(current_file_decl): New.
(duplicate_decls): Add extra parameter. Change all callers. Don't
output duplicate common symbols.
(link_hash_hash): New.
(link_hash_eq): New.
(poplevel): Handle popping of the top level.
(warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
(pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
(pushdecl_top_level): Likewise.
(redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
(c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
(finish_decl): Handle TRANSLATION_UNIT_DECL.
(merge_translation_unit_decls): New.
(c_write_global_declarations): New.
(c_reset_state): New.
(implicitly_declare): Handle TRANSLATION_UNIT_DECL.
* c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
* c-objc-common.c (c_cannot_inline_tree_fn): Handle
TRANSLATION_UNIT_DECL.
(c_objc_common_finish_file): Call merge_translation_unit_decls.
* c-opts.c (in_fnames): Rename from in_fname.
(c_common_decode_option): Handle multiple input filenames.
(c_common_post_options): Likewise.
(c_common_parse_file): Likewise; also, call c_parse_file rather than
yyparse.
* c-parse.in: Move cleanup code to c_parse_file.
(free_parser_stacks): Move contents to c_parse_file.
(c_parse_file): New.
* c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
for integer types.
(C_DECL_FILE_SCOPE): New.
(finish_file): Move prototype to c-common.h.
(merge_translation_unit_decls): New prototype.
(comptypes): Add extra parameter to prototype.
(c_write_global_declarations): New prototype.
* c-typeck.c (tagged_types_tu_compatible_p): New.
(function_types_compatible_p): Add extra parameter, change all callers.
(type_lists_compatible_p): Likewise.
(comptypes): Likewise.
(struct tagged_tu_seen): New.
(tagged_tu_seen_base): New.
(build_unary_op): Handle TRANSLATION_UNIT_DECL.
(c_mark_addressable): Remove #if 0 code.
* calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
comment explaining why it shouldn't have to.
* cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
options.
* cppinit.c (cpp_read_next_file): New.
(cpp_read_main_file): Use it.
* cpplib.c (undefine_macros): New.
(cpp_undef_all): New.
* cpplib.h (cpp_read_next_file): Prototype.
(cpp_undef_all): Prototype.
* langhooks-def.h (write_global_declarations): Remove prototype.
* toplev.h (write_global_declarations): Add prototype.
* tree.c (decl_type_context): Use switch statement, handle
TRANSLATION_UNIT_DECL.
* tree.def: Update documentation for TRANSLATION_UNIT_DECL.
(TRANSLATION_UNIT_DECL): New kind of tree.
* tree.h: Update documentation for TRANSLATION_UNIT_DECL.
* Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
* doc/invoke.texi: Make attempt to document new functionality.
2003-05-19 Per Bothner <bothner@apple.com>
* gcc.c (combine_inputs): New.
(process_command): Set combine_inputs.
(do_spec_1): Handle combine_inputs.
(main): Likewise.
Index: cp/ChangeLog
2003-07-10 Geoffrey Keating <geoffk@apple.com>
* decl.c (cp_finish_decl): Handle 'used' attribute.
* cp-lang.c (c_reset_state): New dummy routine.
* cp-tree.h (finish_file): Move prototype to c-common.h.
* parser.c (c_parse_file): Rename from yyparse; don't call finish_file.
From-SVN: r69224
Mark Mitchell [Fri, 11 Jul 2003 08:20:19 +0000 (08:20 +0000)]
re PR c++/8327 (In definition of template static member value of static const member isn't known)
PR c++/8327
* pt.c (tsubst_qualified_id): Implement suggested resolution for
Core Issue 2.
(type_dependent_expression_p): Likewise.
PR c++/8327
* g++.dg/template/scope1.C: New test.
From-SVN: r69223
Mark Mitchell [Fri, 11 Jul 2003 08:13:58 +0000 (08:13 +0000)]
typeck.c (build_binary_op): Do not warn about signed vs.
* typeck.c (build_binary_op): Do not warn about signed
vs. unsigned comparisons in the bodies of templates.
* g++.dg/warn/Wsign-compare-1.C: New test.
From-SVN: r69222
James E Wilson [Fri, 11 Jul 2003 06:44:40 +0000 (23:44 -0700)]
re PR rtl-optimization/9745 ([powerpc] miscompiles libmcrypt (alias problem during loop))
PR optimization/9745
* loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
loop_insn_emit_before.
(loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
From-SVN: r69220
Matthias Klose [Fri, 11 Jul 2003 06:05:01 +0000 (06:05 +0000)]
test_installed: Add options to run objc tests.
2003-07-11 Matthias Klose <doko@debian.org>
* test_installed: Add options to run objc tests.
In generated site.exp, initialize rootme, CFLAGS, CXXFLAGS.
From-SVN: r69219
Zack Weinberg [Fri, 11 Jul 2003 05:49:47 +0000 (05:49 +0000)]
cppcharset.c: Fix comment.
* cppcharset.c: Fix comment.
(iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
(EILSEQ): #define to EINVAL if not already defined.
(convert_using_iconv): #if out when !HAVE_ICONV.
(init_iconv_desc): Handle !HAVE_ICONV here...
(cpp_init_iconv): ...not here.
From-SVN: r69218
Neil Booth [Fri, 11 Jul 2003 05:35:06 +0000 (05:35 +0000)]
common.opt: More --help messages.
* common.opt: More --help messages.
* opts.c (print_help): Use puts().
* toplev.c (f_options): Remove help text.
(display_help): Don't dump f_options.
From-SVN: r69217
Nathanael Nerode [Fri, 11 Jul 2003 05:24:48 +0000 (05:24 +0000)]
mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
* fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
Move i?86-*-interix* to the don't-fix list.
* fixinc/fixinc.interix: Delete with extreme prejudice.
From-SVN: r69216
Dara Hazeghi [Fri, 11 Jul 2003 04:59:35 +0000 (04:59 +0000)]
re PR bootstrap/10758 (bootstrap failure on HP-UX 11.22/IPF)
Patch from Dara Hazeghi.
PR bootstrap/10758
* doc/install.texi: Document requirements for ia64-*-hpux* target.
From-SVN: r69214
Phil Edwards [Fri, 11 Jul 2003 04:32:25 +0000 (04:32 +0000)]
Missed one spot from the previous change.
From-SVN: r69213
Phil Edwards [Fri, 11 Jul 2003 04:04:49 +0000 (04:04 +0000)]
acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments.
2003-07-11 Phil Edwards <pme@gcc.gnu.org>
* acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments. Add
warning messages if the environment cannot support symbol versioning.
(port_specific_symbol_file): It's plural, add an 's' on the end.
* configure.host: Likewise.
* src/Makefile.am: Likewise.
* config/linker-map.gnu: Remove one semicolon, heh.
* scripts/extract_symvers: Don't assume useful 'export' syntax.
Set LANG as well as LC_ALL for possibly-broken sort(1)s.
* aclocal.m4, configure, src/Makefile.in: Regenerated.
From-SVN: r69212
Kazu Hirata [Fri, 11 Jul 2003 03:28:56 +0000 (03:28 +0000)]
* gcc.dg/
20021018-1.c: Disable if the sizeof (int) < 4.
From-SVN: r69210
Roger Sayle [Fri, 11 Jul 2003 03:10:48 +0000 (03:10 +0000)]
* config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
From-SVN: r69209
GCC Administrator [Fri, 11 Jul 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r69207
Zack Weinberg [Thu, 10 Jul 2003 23:16:31 +0000 (23:16 +0000)]
cppcharset.c (one_utf8_to_cppchar, [...]): New functions.
* cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
convert_no_conversion, convert_using_iconv): New functions.
(APPLY_CONVERSION): New macro.
(struct conversion, conversion_tab): New data structure.
(init_iconv_desc): Check conversion_tab for a custom conversion
primitive before trying to use iconv.
(convert_cset): Deleted.
(cpp_init_iconv): Use UTF- terminology, not UCS-.
(_cpp_destroy_iconv): Update to match.
(_cpp_valid_ucn): We don't need iconv to implement UCNs.
(convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
(convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
(_cpp_interpret_string_notranslate): New function, moved here
from cpplib.c.
* cpphash.h (convert_f, struct cset_converter): New types.
(struct cpp_reader): narrow_cset_desc and wide_cset_desc
are now struct cset_converter, not bare iconv_t.
Update prototypes.
* cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
all callers changed.
From-SVN: r69204
Kelley Cook [Thu, 10 Jul 2003 20:46:28 +0000 (20:46 +0000)]
oops
From-SVN: r69203
Neil Booth [Thu, 10 Jul 2003 20:43:48 +0000 (20:43 +0000)]
Make-lang.in: Update.
* Make-lang.in: Update.
* tree1.c: Don't include c-common.h.
(c_language): Remove.
From-SVN: r69202
Toon Moene [Thu, 10 Jul 2003 20:42:21 +0000 (22:42 +0200)]
ffe.texi: Correctly use @var{srcdir}.
2003-07-10 Toon Moene <toon@moene.indiv.nluug.nl>
* ffe.texi: Correctly use @var{srcdir}.
From-SVN: r69201
Kelley Cook [Thu, 10 Jul 2003 20:42:05 +0000 (20:42 +0000)]
Makefile.in (options.h): Depend on Makefile.
* Makefile.in (options.h): Depend on Makefile. Add move-if-change
to opts.sh command line.
* opts.sh: Write to temporary files with a move-if-change at the end.
From-SVN: r69200
Denis Chertykov [Thu, 10 Jul 2003 20:28:09 +0000 (20:28 +0000)]
combine.c (gen_binary): Handle the CLOBBER rtx and don't build a binary operation with it.
* combine.c (gen_binary): Handle the CLOBBER rtx and
don't build a binary operation with it.
Co-Authored-By: Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
From-SVN: r69199
Zdenek Dvorak [Thu, 10 Jul 2003 19:48:43 +0000 (21:48 +0200)]
gcse.c (load_kills_store, [...]): Keep track of the correct dependency function to use.
* gcse.c (load_kills_store, find_loads, store_killed_in_insn,
store_killed_after, store_killed_before): Keep track of the correct
dependency function to use.
From-SVN: r69198
Mark Mitchell [Thu, 10 Jul 2003 19:19:09 +0000 (19:19 +0000)]
re PR c++/9411 ([New parser] Template function lookup problem)
PR c++/9411
* parser.c (cp_parser_postfix_expression): Check dependency of
functions.
PR c++/9411
* g++.dg/template/explicit2.C: New test.
From-SVN: r69196
Steven Bosscher [Thu, 10 Jul 2003 19:15:10 +0000 (19:15 +0000)]
toplev.c (do_compile): Don't try to open dump files before lang_dependent_init initializes dump_base_name.
2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
* toplev.c (do_compile): Don't try to open dump files before
lang_dependent_init initializes dump_base_name.
From-SVN: r69195
Kaveh R. Ghazi [Thu, 10 Jul 2003 18:04:25 +0000 (18:04 +0000)]
arm.c (arm_init_iwmmxt_builtins, [...]): Use ARRAY_SIZE.
* config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
Use ARRAY_SIZE.
* config/frv/frv.c (frv_expand_builtin): Likewise.
* config/sh/sh.c (sh_media_init_builtins): Likewise.
From-SVN: r69194
Mark Mitchell [Thu, 10 Jul 2003 16:47:52 +0000 (16:47 +0000)]
re PR c++/10032 (-pedantic converts some errors to warnings)
PR c++/10032
* doc/invoke.texi (C++ Dialect Options): Change documentation of
-fpermissive.
PR c++/10032
* decl.c (cxx_init_decl_processing): With -pedantic, pedwarns are
still errors.
PR c++/10527
* error.c (decl_to_string): Do not print default argument
expressions.
* cp-tree.h (break_out_calls): Remove declaration.
* tree.c (break_out_calls): Remove.
* typeck.c (build_modify_expr): Avoid invalid sharing of trees.
PR c++/10032
* g++.dg/warn/pedantic1.C: New test.
From-SVN: r69191
J"orn Rennecke [Thu, 10 Jul 2003 14:56:33 +0000 (14:56 +0000)]
* tm.texi (RETURN_ADDR_OFFSET): Document.
From-SVN: r69190
Nathan Sidwell [Thu, 10 Jul 2003 14:52:56 +0000 (14:52 +0000)]
PR c++ 9483
PR c++ 9483
* g++.dg/other/field1.C: New test.
From-SVN: r69189
Nathan Sidwell [Thu, 10 Jul 2003 14:13:01 +0000 (14:13 +0000)]
gcov-io.h: Update documentation.
* gcov-io.h: Update documentation.
(GCOV_UNSIGNED2STRING): New.
(GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
GCOV_TAG_SUMMARY_LENGTH): Adjust.
(GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
GCOV_TAG_COUNTER_NUM): New.
(GCOV_BLOCK_SIZE): Number of words.
(gcov_var): Adjust buffer type.
* gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
(gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
count, not byte count.
(gcov_open): Adjust overread init.
(gcov_allocate, gcov_write_unsigned, gcov_write_counter,
gcov_write_string, gcov_write_tag, gcov_write_length,
gcov_write_tag_length): Adjust.
(gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
(gcov_sync, gcov_seek): Adjust.
* gcov-dump.c (print_usage): Show gcc version only.
(dump_file): Use GCOV_UNSIGNED2STRING.
(tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
* gcov.c (print_version): Show gcc version only.
(read_graph_file): Use GCOV_UNSIGNED2STRING. Use
GCOV_TAG_*_NUM macros.
(read_count_file): Use GCOV_UNSIGNED2STRING. Use
GCOV_TAG_COUNTER_LENGTH.
* coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
Use GCOV_TAG_COUNTER_NUM.
* libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
(__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
From-SVN: r69188
Kazu Hirata [Thu, 10 Jul 2003 12:51:27 +0000 (12:51 +0000)]
re PR c/11449 (ICE in invert_truthvalue called on AND operation)
PR c/11449
* fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
of HOST_WIDE_INT.
(fold_single_bit_test): If sign_bit_p() fails, assume that the
bit being tested is not a sign bit.
PR c/11449
* gcc.c-torture/compile/
20030707-1.c: New.
* config/h8300/h8300.md (a peephole2): New.
From-SVN: r69187
Kriang Lerdsuwanakij [Thu, 10 Jul 2003 12:48:17 +0000 (12:48 +0000)]
re PR c++/10849 (Cannot define an out-of-class specialization of a private nested template class)
PR c++/10849
* g++.dg/template/access12.C: New test.
From-SVN: r69186
Kazu Hirata [Thu, 10 Jul 2003 12:40:10 +0000 (12:40 +0000)]
re PR c/11449 (ICE in invert_truthvalue called on AND operation)
PR c/11449
* fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
of HOST_WIDE_INT.
(fold_single_bit_test): If sign_bit_p() fails, assume that the
bit being tested is not a sign bit.
PR c/11449
* gcc.c-torture/compile/
20030707-1.c: New.
* config/h8300/h8300.md (a peephole2): New.
From-SVN: r69184
Steven Bosscher [Thu, 10 Jul 2003 11:38:18 +0000 (11:38 +0000)]
ggc.h, [...]: Use `rtx' instead of `struct rtx_def *'...
2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
* ggc.h, integrate.h, langhooks.h, real.h, toplev.h:
Use `rtx' instead of `struct rtx_def *', `rtvec' instead of
`struct rtvec_dev *' and `tree' instead of `union tree_node *'
in function prototypes.
* varray.h (const_equiv_data): Likewise for fields.
(varray_data_tag): Likewise.
* output.h: Likewise, and don't forward declare union tree_node.
* emit_rtl.c (const_int_htab_hash): Cast to `rtx' instead of
`struct rtxvec *'.
* print-tree.c (print_node): Likewise.
* reload1.c: Don't redeclare current_function_decl, tree.h is
included in this file.
From-SVN: r69183
Andreas Schwab [Thu, 10 Jul 2003 09:52:13 +0000 (09:52 +0000)]
* gcov-dump.c (dump_file): Fix missing address operator.
From-SVN: r69182
Nicola Pero [Thu, 10 Jul 2003 09:24:51 +0000 (11:24 +0200)]
Fixed rare threading problem
From-SVN: r69181
Nathan Sidwell [Thu, 10 Jul 2003 09:02:06 +0000 (09:02 +0000)]
PR c++ 9483
cp:
PR c++ 9483
* class.c (check_field_decls): Pass DECL_NAME to constructor_name_p.
* decl2.c (constructor_name_p): Avoid repeated constructor_name
calls.
* decl.c (grokdeclarator): Refactor ctor/dtor detection.
testsuite:
PR c++ 9483
* g++.dg/other/field1.C: New test.
From-SVN: r69180
Fergus Henderson [Thu, 10 Jul 2003 08:18:53 +0000 (08:18 +0000)]
Remove C language front end dependencies.
* tree-convert.c: New file.
* treetree.c: Don't include c-tree.h. Include target.h.
(struct lang_identifier, union lang_tree_node, struct lang_type,
struct lang_function): New, minimal language-specific datastructs.
(tree_lang_truthvalue_conversion, tree_mark_addressable,
tree_lang_type_for_size, tree_lang_type_for_mode,
tree_lang_unsigned_type, tree_lang_signed_type,
tree_lang_signed_or_unsigned): New functions.
(LANG_HOOKS_*): Don't use C front end langhooks. Use new functions.
(pushlevel, poplevel, global_bindings_p, insert_block, set_block,
pushdecl, getdecls, kept_level_p, tree_push_type_decl,
tree_push_atomic_type_decl): New functions.
(struct resword, struct reswords): Remove.
* Make-lang.in: Update. Don't depend on C front end objects.
* config-lang.in: Likewise.
Co-Authored-By: Steven Bosscher <steven@gcc.gnu.org>
From-SVN: r69178
Benjamin Kosnik [Thu, 10 Jul 2003 06:21:13 +0000 (06:21 +0000)]
locale_facets.tcc: Use function object for __use_cache instead of template function.
2003-07-09 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_facets.tcc: Use function object for
__use_cache instead of template function. Partially specialize for
__numpunct<_CharT>.
* include/bits/locale_classes.h: Update friend declaration for
__use_cache.
(_M_install_cache): No throw exception specs.
* src/locale.cc: Remove __use_cache specializations.
* include/ext/pod_char_traits.h (length): Tweak.
* include/bits/locale_facets.h (__numpunct_cache): Remove
char_type typedef.
* testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
(pod_long): Remove.
* testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
* testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
* testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
* testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
* testsuite/22_locale/numpunct/members/pod/1.cc: New.
* testsuite/22_locale/numpunct/members/pod/2.cc: New.
From-SVN: r69177
Kazu Hirata [Thu, 10 Jul 2003 06:18:30 +0000 (06:18 +0000)]
* config/h8300/h8300.md (a peephole2): New.
From-SVN: r69176
Michael Koch [Thu, 10 Jul 2003 05:19:06 +0000 (05:19 +0000)]
libgcj.pc.in: New file.
2003-07-09 Michael Koch <konqueror@gmx.de>
* libgcj.pc.in: New file.
* Makefile.am: Install libgcj.pc in $libdir/pkgconfig.
* Makefile.in: Regenerated.
* configure: Regenrated.
* configure.in: Create libgcj.pc from libgcj.pc.in.
From-SVN: r69175
Bob Wilson [Thu, 10 Jul 2003 05:08:27 +0000 (05:08 +0000)]
* xtensa-config.h: Undef all macros before defining them.
From-SVN: r69174
Alexandre Oliva [Thu, 10 Jul 2003 05:04:03 +0000 (05:04 +0000)]
configure: Rebuilt.
* configure: Rebuilt.
2001-09-26 Alexandre Oliva <aoliva@redhat.com>
* configure.in (noconfigdirs) [am33_2.0-*-linux*]: Don't build
newlib nor libgloss.
Wed May 9 10:07:19 2001 Alexandre Oliva <aoliva@redhat.com>
* configure.in (am33_2.0-*-linux*): Added.
From-SVN: r69173
Bob Wilson [Thu, 10 Jul 2003 04:57:45 +0000 (04:57 +0000)]
configure.in: Add ${libgcj} to noconfigdirs for xtensa-*-* targets.
* configure.in: Add ${libgcj} to noconfigdirs for xtensa-*-* targets.
* configure: Regenerate.
From-SVN: r69172
Alexandre Oliva [Thu, 10 Jul 2003 04:50:15 +0000 (04:50 +0000)]
[multiple changes]
2001-12-13 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
from ld-linux.so.2 to ld.so.1.
2001-11-18 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
* config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
nor -Wl,-rpath-link.
(LIB_SPEC): Add -rpath-link if !static.
2001-08-22 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300.c (mn10300_protect_label): New
variable.
* config/mn10300/linux.h (PRINT_OPERAND,
PRINT_OPERAND_ADDRESS): Set it during their execution.
(ASM_OUTPUT_LABELREF): Output `+' before symbol name if
mn10300_protect_label is set.
* config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
-Wl,-rpath-link.
(LIB_SPEC, STARTFILE_SPEC): Define.
2001-05-11 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
FLOAT_BIT_ORDER_MISMATCH.
2001-05-09 Alexandre Oliva <aoliva@redhat.com>
* config.gcc (am33_2.0-*-linux*): Added.
* config/mn10300/linux.h: New.
* config/mn10300/t-linux: New.
From-SVN: r69171
Andreas Jaeger [Thu, 10 Jul 2003 04:44:05 +0000 (06:44 +0200)]
* fold-const.c: Properly wrap prototypes.
From-SVN: r69170
Alexandre Oliva [Thu, 10 Jul 2003 03:25:32 +0000 (03:25 +0000)]
[multiple changes]
2003-06-16 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
Moved from...
* config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
* config/mn10300/mn10300.h: GTY-declare it.
2003-06-11 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
prototype. Use incoming RTL argument.
2002-12-12 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300.md (int_label): Move C statements...
(GOTaddr2picreg): ... here.
2002-08-15 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
* config/mn10300/mn10300.c (mn10300_encode_section_info):
... here. New function.(TARGET_ENCODE_SECTION_INFO): Define to it.
2001-11-04 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
pattern name.
(mn10300_loadPC): Define as insn splittable after reload.
2001-05-13 Alexandre Oliva <aoliva@redhat.com>
* config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
be defined in .rodata even in PIC, now that the assembler
supports that.
2001-05-09 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
symbol take an underscore prefix.
2001-04-14 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
legitimize_pic_address): Declare.
* config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
the PIC register as fixed.
(EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
(GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
PIC.
(LEGITIMATE_PIC_OPERAND_P): Define.
(PIC_OFFSET_TABLE_REGNUM): Define.
(GOT_SYMBOL_NAME): Define.
(SYMBOLIC_CONST_P): Define.
(ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
symbols.
(MN10300_GLOBAL_P): Test it.
(OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
(JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
* config/mn10300/mn10300.c (print_operand): Handle unspec.
(expand_prologue): Set PIC register.
(call_address_operand): Don't match SYMBOL_REFs in PIC.
(legitimize_address): Call legitimize_pic_address.
(legitimize_pic_address): New fn.
(legitimate_pic_operand_p): New fn.
* config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
(UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
UNSPEC_PLT): New constants.
(pop_pic_reg): New insn.
(movsi): Adjust non-PIC addresses.
(builtin_setjmp_receiver): Restore the PIC register.
(casesi): New insn.
(call): Adjust non-PIC addresses.
(int_label, GOTaddr2picreg): New expands.
(am33_loadPC): New insn.
(mn10300_loadPC): New expand.
(call_next_insn): New insn.
(add_GOT_to_pic_reg): New expand.
(symGOT2reg, symGOT2reg_i): New expands.
(symGOTOFF2reg, symGOTOFF2reg_i): New expands.
(sym2PIC, sym2PLT): New expands.
From-SVN: r69169
Jerry Quinn [Thu, 10 Jul 2003 03:08:38 +0000 (03:08 +0000)]
ios.cc (_M_grow_words): Fix spelling.
2003-07-09 Jerry Quinn <jlquinn@optonline.net>
* src/ios.cc (_M_grow_words): Fix spelling.
From-SVN: r69168
Alexandre Oliva [Thu, 10 Jul 2003 02:56:29 +0000 (02:56 +0000)]
mn10300.h (PREDICATE_CODES): Define.
* config/mn10300/mn10300.h (PREDICATE_CODES): Define.
2001-05-01 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
to flag_unsafe_math_optimizations.
2001-04-14 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300.c (expand_prologue): Mark
FP-register-saving insns as frame-related.
2001-02-13 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300.c
(mn10300_get_live_callee_saved_regs): Don't search past
LAST_EXTENDED_REGNUM.
(mn10300_gen_multiple_store, store_multiple_operation): Likewise.
* config/mn10300/mn10300.md: Remove excessive line breaks from
`@' output patterns that were accounted as additional
alternatives.
* config/mn10300/mn10300.md, config/mn10300/mn10300.c:
Re-introduce changes accidentally removed in Richard Sandiford's
2000-12-05's patch.
* config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
Re-instate am33-2 lost in merge from net GCC.
2000-08-26 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
floating-point registers.
2000-08-07 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300.md (movdf): Revert some am33-specific
pessimizations that had gone in on 2000-05-08.
2000-06-28 Graham Stott <grahams@cygnus.co.uk>
* config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
2000-06-22 Graham Stott <grahams@cygnus.co.uk>
* config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
operand 0.
* (movhi): Likewise.
* (movsi): Likewise.
* (movsf): Likewise.
* (movdi): Likewise.
* (movdf): Likewise.
Wed May 24 13:16:09 2000 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.c (fp_regs_to_save): New function.
(can_use_return_insn, initial_offset): Add fp_regs_to_save.
(expand_prologue, expand_epilogue): Save and restore FP regs.
2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
Do not clobber cc0.
2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
Discourage the two-argument, longer opcodes.
(addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
ones.
* config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
(CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
* config/mn10300/mn10300.md (cmpsf): New pattern.
(branch): Test mdep.fpCC and output fbCC.
* config/mn10300/mn10300.c (print_operand): Output conditions.
(notice_cc_update): Recognize fcmp and set mdep.fpCC.
2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
mulsf3, divsf3): Use the `F' constraint for FP values.
* config/mn10300/mn10300.c (const_1f_operand): New function.
* config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
* config/mn10300/mn10300.md (sqrtsf2): New expand.
(rsqrtsf2): New insn.
2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.md (movdf): Oops, I missed it in my
previous check-in.
2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.md (abssf2, negdf2): On
TARGET_AM33_2, expand to...
(abssf2_am33_2, negdf2_am33_2): New insns.
(addsf3, subsf3, mulsf3, divsf3): Likewise.
(fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
* config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
movdi, movdf): Added FP regs.
* invoke.texi (-mam33-2, -mno-am33-2): Document.
2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
New macros.
(REGNO_AM33_2_FP_P): Renamed to...
(REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
(CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
regs from GENERAL_REGS.
2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
* config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
* config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
as FP_REGS.
2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.h (OK_FOR_Q): New macro.
(EXTRA_CONSTRAINT): Added OK_FOR_Q.
* config/mn10300/mn10300.c (secondary_reload_class): Adjust.
* config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
* config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
(FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
AM33/2.0 floating-point registers.
(CONDITIONAL_REGISTER_USAGE): Adjust.
(enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
(REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
(REG_CLASS_FROM_LETTER): Added `f' and `A'.
(REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
* config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
(MULTILIB_DIRNAMES): Likewise.
* config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
`__AM33_2__' when `-mam33-2' is given.
(TARGET_AM33_2): Define.
(TARGET_SWITCHES): Adjust.
* config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
when appropriate.
From-SVN: r69167
Matt Kraai [Thu, 10 Jul 2003 01:41:38 +0000 (01:41 +0000)]
* doc/install.texi: Add missing @.
From-SVN: r69166
Bob Wilson [Thu, 10 Jul 2003 00:22:51 +0000 (00:22 +0000)]
* config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
From-SVN: r69165
GCC Administrator [Thu, 10 Jul 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r69163
Mark Mitchell [Wed, 9 Jul 2003 23:39:14 +0000 (23:39 +0000)]
typeck.c (build_x_unary_op): Take note of the fact that PREINCREMENT_EXPR and POSTINCREMENT_EXPR are binary...
* typeck.c (build_x_unary_op): Take note of the fact that
PREINCREMENT_EXPR and POSTINCREMENT_EXPR are binary operations on
trees.
From-SVN: r69161
Mark Mitchell [Wed, 9 Jul 2003 23:06:39 +0000 (23:06 +0000)]
parser.c (cp_parser_primary_expression): Preserve the form of qualified expressions in templates...
* parser.c (cp_parser_primary_expression): Preserve the form of
qualified expressions in templates, even if they are not
dependent.
* pt.c (convert_nontype_argument): Handle non-dependent SCOPE_REFs.
(tsubst_qualified_id): Likewise.
* search.c (accessible_p): Treat everything in the body of a
From-SVN: r69160
Aldy Hernandez [Wed, 9 Jul 2003 22:19:04 +0000 (22:19 +0000)]
i386.c (ix86_function_arg_boundary): Remove abort.
2003-07-09 Aldy Hernandez <aldyh@redhat.com>
PR/11144
* config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
From-SVN: r69159
Nathanael Nerode [Wed, 9 Jul 2003 21:25:40 +0000 (21:25 +0000)]
re PR bootstrap/11043 ([arc-elf32] make fails due to missing rules)
PR bootstrap/11043
* config/arc/t-arc: Replace bogus references to "x-crtinit.o",
"x-crtfini.o" with "crtinit.o", "crtfini.o".
From-SVN: r69156
Toon Moene [Wed, 9 Jul 2003 21:12:54 +0000 (23:12 +0200)]
re PR fortran/11301 (ICE with -fno-globals)
2003-07-09 Toon Moene <toon@moene.indiv.nluug.nl>
PR Fortran/11301
* com.c (ffecom_sym_transform_): finish_decl should have
the same last argument as start_decl.
From-SVN: r69155
Nathanael Nerode [Wed, 9 Jul 2003 21:08:20 +0000 (21:08 +0000)]
inclhack.def (limits_ifndefs): Add select test.
* fixinc/inclhack.def (limits_ifndefs): Add select test.
* fixinc/fixincl.x: Rebuild.
From-SVN: r69154
Jeff Sturm [Wed, 9 Jul 2003 21:07:42 +0000 (21:07 +0000)]
SyncTest.java (run): Cache .class value.
2003-07-09 Jeff Sturm <jsturm@one-point.com>
* libjava.lang/SyncTest.java (run): Cache .class value.
From-SVN: r69153
Tom Tromey [Wed, 9 Jul 2003 21:03:31 +0000 (21:03 +0000)]
Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
* Makefile.am (AM_MAKEFLAGS): Added CPPFLAGS.
From-SVN: r69152
Nathanael Nerode [Wed, 9 Jul 2003 21:00:01 +0000 (21:00 +0000)]
inclhack.def (math_exception): Improve bypass and comment.
* fixinc/inclhack.def (math_exception): Improve bypass and comment.
* fixinc/fixincl.x: Rebuild.
From-SVN: r69151
Gawain Bolton [Wed, 9 Jul 2003 20:58:32 +0000 (20:58 +0000)]
stl_tree.h: Move larger member functions in _Rb_tree_base_iterator and _Rb_tree_node to...
2003-07-09 Gawain Bolton <gp.bolton@computer.org>
* include/bits/stl_tree.h: Move larger member functions in
_Rb_tree_base_iterator and _Rb_tree_node to...
* src/stl_tree.cc: Here.
* src/Makefile.in: Add stl_tree.cc.
* src/Makefile.in: Regenerated.
* config/linker-map.gnu: Add symbols here.
From-SVN: r69150
Hans-Peter Nilsson [Wed, 9 Jul 2003 18:51:36 +0000 (18:51 +0000)]
install.texi (Configuration): Document the valgrind option to --enable-checking.
* doc/install.texi (Configuration): Document the valgrind option
to --enable-checking.
From-SVN: r69146
Nathan Sidwell [Wed, 9 Jul 2003 14:57:21 +0000 (14:57 +0000)]
bprob.exp (prof_ext): Update.
* g++.dg/bprob/bprob.exp (prof_ext): Update.
* g77.dg/bprob/bprob.exp (prof_ext): Update.
* gcc.misc-tests/bprob.exp (prof_ext): Update.
* gcc.misc-tests/gcov.exp: Update
* g++.dg/gcov/gcov.exp: Update
* lib/gcov.exp: Update.
From-SVN: r69145
Jan Hubicka [Wed, 9 Jul 2003 14:37:15 +0000 (16:37 +0200)]
* objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
From-SVN: r69144
Gerald Pfeifer [Wed, 9 Jul 2003 13:24:07 +0000 (15:24 +0200)]
gcc_release (announce_snapshot): Add substitution of @BRANCH for README and index.html.
* gcc_release (announce_snapshot): Add substitution of @BRANCH
for README and index.html. Remove substitution of @LONG_DATE.
Put index.html into the respective snapshot directory.
Adjust subject of the notification mail to the new naming scheme
for CVS tags.
Adjust name of the LATEST-IS-... files to the new naming scheme
for snapshot directories.
(FTP_PATH): Ditto.
(LAST_DIR): Ditto.
(LAST_LONG_DATE): Remove.
* snapshot-README: Adjust to the new naming schemes for directories
and snapshots per se.
Dynamically fill in the respective branch instead of hardcoding it.
* snapshot-index.html: Replace individual links to diffs with a
general link to the diff/ subdirectory.
Mention the concrete snapshot in <title> and <h1>.
Adjust links to the new location of index.html.
From-SVN: r69143
Rainer Orth [Wed, 9 Jul 2003 12:21:12 +0000 (12:21 +0000)]
* c-lex.c (cb_ident): Cast cstr.text to const char *.
From-SVN: r69138
Nathan Sidwell [Wed, 9 Jul 2003 12:12:29 +0000 (12:12 +0000)]
gcov-io.h: Update documentation.
* gcov-io.h: Update documentation.
(GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
GCOV_NOTE_MAGIC.
(GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
(GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
(struct gcov_var): Change buffer's type. Add endian flag.
(gcov_open): Remove mode in libgcov.
(gcov_magic): Prototype.
* gcov-io.c (from_file): New.
(gcov_open): Clear endian flag.
(gcov_magic): New.
(gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
pointers.
(gcov_write_unsigned, gcov_write_counter, gcov_write_string,
gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
(gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
* gcov-iov.c (main): Correct cast.
* coverage.c (read_counts_file): Use gcov_magic. Remove endianness
conversion.
(gcov_begin_output): Use GCOV_NOTE_MAGIC.
(coverage_init): Use GCOV_NOTE_SUFFIX.
* libgcov.c (gcov_version_mismatch): Remove endianness conversion.
Rename to gcov_version, and return flag.
(gcov_exit): Use gcov_version.
(__gcov_init): Use gcov_version.
* Makefile.in (coverageexts): Update.
* gcov.c (print_version): Remove endianness conversion.
(create_file_names): Use GCOV_NOTE_SUFFIX.
(read_graph_file): Use gcov_magic.
(read_count_file): Likewise.
* gcov-dump.c (dump_file): Remove endianness conversion, use
gcov_magic.
From-SVN: r69137
Nathan Sidwell [Wed, 9 Jul 2003 11:48:24 +0000 (11:48 +0000)]
configure.in (BUILD_PREFIX, [...]): Set if enable coverage is on.
* configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
coverage is on.
* configure: Regenerated.
* Makefile.in (ALL_CFLAGS): Correct its comment.
From-SVN: r69136
Mark Wielaard [Wed, 9 Jul 2003 10:52:26 +0000 (10:52 +0000)]
ObjectOutputStream.java (writeObject): break after calling writeClassDescriptor().
* java/io/ObjectOutputStream.java (writeObject): break after
calling writeClassDescriptor().
From-SVN: r69135
Mark Mitchell [Wed, 9 Jul 2003 08:48:08 +0000 (08:48 +0000)]
fold-const.c (make_range): Do not access operand 1 for a zero-operand operator.
* fold-const.c (make_range): Do not access operand 1 for a
zero-operand operator.
2003-07-08 Mark Mitchell <mark@codesourcery.com>
* cp-tree.def (NON_DEPENDENT_EXPR): New node.
* cp-tree.h (build_call_from_tree): Remove.
(build_member_call): Likewise.
(dependent_template_arg_p): Remove.
(any_dependent_template_arguments_p): New function.
(dependent_template_id_p): Likewise.
(any_type_dependent_arguments_p): Likewise.
(build_non_dependent_expr): Likewise.
(build_non_dependent_args): Likewise.
(build_x_compound_expr): Adjust prototype.
* call.c (build_new_method_call): Handle non-dependent expressions
correctly.
* decl2.c (grok_array_decl): Likewise.
(build_offset_ref_call_from_tree): Likewise.
(build_call_from_tree): Remove.
* error.c (dump_decl): Handle NON_DEPENDENT_EXPR.
(dump_expr): Likewise.
* init.c (build_member_call): Remove.
* mangle.c (write_expression): Update handling for template-ids.
* parser.c (cp_parser_primary_expression): Use
any_dependent_template_arguments_p. Update constant-expression
handling.
(cp_parser_postfix_expression): Use
any_type_dependent_arguments_p. Simplify call processing.
(cp_parser_unary_expression): Simplify.
(cp_parser_expression): Adjust for changes to
build_x_compound_expr.
(cp_parser_template_argument): Implement standard-conforming
parsing of non-type template arguments.
(cp_parser_direct_declarator): Use
cp_parser_fold_non_dependent_expr.
(cp_parser_fold_non_dependent_expr): New function.
(cp_parser_next_token_ends_template_argument_p): Likewise.
* pt.c (convert_template_argument): Do not call
maybe_fold_nontype_arg.
(tsubst_baselink): Likewise.
(tsubst_copy_and_build): Share common code. Make sizeof/alignof
processing work correctly for non-dependent expressions. Adjust
handling of COMPOUND_EXPR. Simplify call processing.
(value_dependent_expression_p): Deal with functional casts and
sizeof/alignof correctly.
(type_dependent_expression_p): Handle overloaded functions.
(any_type_dependent_arguments_p): New function.
(any_dependent_template_arguments_p): Likewise.
(dependent_template_p): Treat SCOPE_REFs as dependent.
(dependent_template_id_p): Simplify.
(build_non_dependent_expr): New function.
(build_non_dependent_args): Likewise.
* semantics.c (finish_stmt_expr): Don't make dependent
statement-expresions have void type.
(finish_call_expr): Handle non-dependent expressions
correctly.
* tree.c (lvalue_p_1): Treat NON_DEPENDENT_EXPRs as lvalues.
* typeck.c (cxx_sizeof_or_alignof_type): Give the expression
type size_t, even in templates.
(expr_sizeof): Likewise.
(finish_class_member_access_expr): Handle non-dependent expressions
correctly.
(build_x_indirect_ref): Likewise.
(build_x_binary_op): Likewise.
(build_x_unary_op): Likewise.
(build_x_conditional_expr): Likewise.
(build_x_compound_expr): Likewise.
* typeck2.c (build_x_arrow): Likewise.
2003-07-08 Mark Mitchell <mark@codesourcery.com>
* g++.dg/abi/mangle17.C: Make sure template expressions are
dependent.
* g++.dg/abi/mangle4.C: Mark erroneous casts.
* g++.dg/debug/debug7.C: Mark erronous new-declarator.
* g++.dg/opt/stack1.C: Remove erroneous code.
* g++.dg/parse/template7.C: New test.
* g++.dg/template/dependent-expr1.C: Mark erroneous code.
* g++.old-deja/g++.pt/crash4.C: Likewise.
2003-07-09 Mark Mitchell <mark@codesourcery.com>
* gcj/array.h (JvPrimClass): Don't parenthesize the output.
From-SVN: r69130
Michael Koch [Wed, 9 Jul 2003 07:50:01 +0000 (07:50 +0000)]
GtkComponentPeer.java, [...]: Explicitly import used classes.
2003-07-09 Michael Koch <konqueror@gmx.de>
* gnu/java/awt/peer/gtk/GtkComponentPeer.java,
gnu/java/awt/peer/gtk/GtkContainerPeer.java,
gnu/java/awt/peer/gtk/GtkDialogPeer.java,
gnu/java/awt/peer/gtk/GtkWindowPeer.java:
Explicitly import used classes.
* java/awt/Container.java: New version from classpath.
From-SVN: r69129
Michael Koch [Wed, 9 Jul 2003 07:11:13 +0000 (07:11 +0000)]
2003-07-09 Michael Koch <konqueror@gmx.de>
* libgcj.pc.in
* Makefile.am
* Makefile.in
* configure
* configure.in
From-SVN: r69128
John David Anglin [Wed, 9 Jul 2003 06:19:44 +0000 (06:19 +0000)]
const-elim-1.c (dg-final): Change regexp to match labels with zero or one occurence of `$' after the...
* gcc.dg/const-elim-1.c (dg-final): Change regexp to match labels
with zero or one occurence of `$' after the initial `L'.
From-SVN: r69127
Neil Booth [Wed, 9 Jul 2003 05:28:04 +0000 (05:28 +0000)]
toplev.c (warn_dummy, W_options): Die.
* toplev.c (warn_dummy, W_options): Die.
(display_help): Don't print W_options.
* common.opt: Add W_options help from toplev.c.
From-SVN: r69125
Andreas Jaeger [Wed, 9 Jul 2003 05:13:09 +0000 (07:13 +0200)]
opts.c (wrap_help): Only pass int arguments as arguments to printf's '*' modifier.
* opts.c (wrap_help): Only pass int arguments as arguments to
printf's '*' modifier. Change argument of function.
From-SVN: r69124
Matt Kraai [Wed, 9 Jul 2003 04:07:44 +0000 (04:07 +0000)]
* doc/invoke.texi: Fix misspelling of "@item".
From-SVN: r69123
Kazu Hirata [Wed, 9 Jul 2003 03:02:17 +0000 (03:02 +0000)]
* gcc.c-torture/compile/
20030704-1.c: Add a comment.
From-SVN: r69122
Kazu Hirata [Wed, 9 Jul 2003 02:56:47 +0000 (02:56 +0000)]
i386.md: Remove an old comment about NOTICE_UPDATE_CC.
* config/i386/i386.md: Remove an old comment about
NOTICE_UPDATE_CC.
From-SVN: r69121
Jan Hubicka [Wed, 9 Jul 2003 01:20:24 +0000 (03:20 +0200)]
cgraph.c (cgraph_node_name): New function.
* cgraph.c (cgraph_node_name): New function.
(dump_cgraph): Use it.
* cgraph.h (cgraph_dump_file): Declare.
(cgraph_node_name): Declare.
* cgraphunit.c: Include timevar.h
(cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
(cgraph_optimize_function): Use TV_INTEGRATION.
(cgraph_mark_local_functions): reorganize dumps.
(cgraph_mark_functions_to_inline_once): Likewise.
(cgraph_optimize): Likewise; use timevar.
* timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
* toplev.c (dump_file_index): Add DFI_cgraph.
(dump_file_info): Likewise.
(cgraph_dump_file): New global variable.
(do_compile): Open and close cgraph dump.
* invoke.texi (-d): Document new flag; renumber.
From-SVN: r69120
Roger Sayle [Wed, 9 Jul 2003 01:17:28 +0000 (01:17 +0000)]
re PR other/11370 (-Wunreachable-code gives false complaints)
PR c/11370
* calls.c (emit_call_1): Don't bother popping the arguments off of
the stack after a noreturn function call; The adjustment is dead.
(expand_call): Likewise.
* gcc.dg/Wunreachable-6.c: New testcase.
* gcc.dg/Wunreachable-7.c: New testcase.
From-SVN: r69119