Zack Weinberg [Wed, 2 Aug 2000 01:19:30 +0000 (01:19 +0000)]
Resurrect - accidentally deleted in previous commit
From-SVN: r35417
Zack Weinberg [Wed, 2 Aug 2000 01:14:37 +0000 (01:14 +0000)]
argh, forgot to save file
From-SVN: r35416
Zack Weinberg [Wed, 2 Aug 2000 01:13:45 +0000 (01:13 +0000)]
cpperror.c (v_message): Split into _cpp_begin_message and v_message macro.
* cpperror.c (v_message): Split into _cpp_begin_message and
v_message macro. All callers updated.
(_cpp_begin_message): Do inhibit_errors/inhibit_warnings
checks here.
* cppfiles.c (cpp_syshdr_flags): New function.
(read_include_file): Don't call cpp_output_tokens. Call
enter_file hook.
* cppinit.c (dump_macros_helper): Moved to cppmain.c.
(cpp_reader_init): Don't initialize token_buffer. Call
_cpp_init_internal_pragmas.
(cpp_cleanup): Don't clear token_buffer.
(cpp_start_read): Don't worry about output from -D processing.
Don't call cpp_output_tokens.
(cpp_finish): Don't dump macros here. Don't call
cpp_output_tokens.
* cppmacro.c (_cpp_dump_definition): Rename
cpp_dump_definition. Write directly to a FILE *.
(dump_funlike_macro): Delete.
(dump_macro_args): New.
* cpplex.c (TOKEN_LEN): Convert to inline function.
(_cpp_grow_token_buffer, safe_fwrite, cpp_output_tokens,
cpp_scan_line, _cpp_dump_list): Delete.
(cpp_printf, cpp_output_list): New.
(output_line_command): Don't worry about entering or leaving files.
(cpp_scan_buffer): Just output each token as we hit it.
(process_directive): Don't call cpp_output_tokens.
(_cpp_glue_header_name): Don't use token_buffer.
(output_token, dump_param_spelling): Write directly to a FILE *.
* cpplib.c (pass_thru_directive, dump_macro_name,
pragma_dispatch, do_pragma_gcc): Delete.
(do_define, do_undef, parse_include, do_line, do_ident, do_pragma,
do_pragma_poison, cpp_pop_buffer): Call the appropriate hook
functions.
(do_error, do_warning, pragma_dependency): Call
_cpp_begin_message, then cpp_output_list.
(cpp_register_pragma, cpp_register_pragma_space,
_cpp_init_internal_pragmas): New.
(do_pragma): Walk the pragmas table here.
(do_pragma_once, do_pragma_poison, do_pragma_system_header,
do_pragma_dependency): Return void.
(do_pragma_implementation): Moved to cppmain.c.
* cpplib.h: Update prototypes.
(struct cpp_reader): Remove printer, token_buffer,
token_buffer_size, and limit. Add struct cb, and pragmas.
(struct cpp_printer): Remove last_id and written.
(CPP_WRITTEN, CPP_PWRITTEN, CPP_SET_WRITTEN,
CPP_ADJUST_WRITTEN): Delete.
* cpphash.h: Update prototypes.
(ufputs): New wrapper.
* cppmain.c (cb_define, cb_undef, cb_include, cb_ident,
cb_enter_file, cb_leave_file, cb_def_pragma): New functions.
(main): Set up callbacks. Register #pragma implementation.
Dump macros from here.
From-SVN: r35415
Geoff Keating [Wed, 2 Aug 2000 00:53:59 +0000 (00:53 +0000)]
rtl.h (enum reg_note): Add REG_MAYBE_DEAD.
* rtl.h (enum reg_note): Add REG_MAYBE_DEAD.
* rtl.c (reg_note_name): Add REG_MAYBE_DEAD.
* flow.c (propagate_one_insn): Allow deletion of prologue/epilogue
insns if they have a REG_MAYBE_DEAD note attached.
* config/rs6000/rs6000.c (rs6000_maybe_dead): New function.
(rs6000_emit_load_toc_table): TOC loads may go dead.
From-SVN: r35414
Jim Wilson [Tue, 1 Aug 2000 22:23:56 +0000 (22:23 +0000)]
Finish ABI change started by last patch, this time I tested it.
* config/ia64/ia64.c (ia64_function_arg): Fix last change. Verify
type exists before using it. Use number of words as alignment
otherwise.
(ia64_function_arg_partial_nregs, ia64_function_arg_advance,
ia64_va_arg): Propagate ia64_function_args changes here.
From-SVN: r35413
Richard Henderson [Tue, 1 Aug 2000 20:24:22 +0000 (13:24 -0700)]
elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL.
* config/elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL.
* config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
From-SVN: r35412
Bernd Schmidt [Tue, 1 Aug 2000 18:45:53 +0000 (18:45 +0000)]
From Joern Rennecke:
* sh.h (CPP_SPEC, TARGET_SWITCHES): Add m4-nofpu.
* sh.md (udivsi3, divsi3): Don't use libcalls that use the FPU
unless TARGET_SH3E is set.
* t-sh (MULTILIB_MATCHES): Add m2=m4-nofpu.
* sh.md (ashlsi3_d, ashlsi3_k): Remove, replace with
(ashlsi3_std): New pattern.
(ashlsi3 expander): Use it for TARGET_SH3.
* sh.c (gen_ashift): Use it instead of ashlsi3_k.
From-SVN: r35411
Benjamin Kosnik [Tue, 1 Aug 2000 18:07:23 +0000 (18:07 +0000)]
install.html: Edit bits about requiring a special version of the autotools.
2000-08-01 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
* docs/install.html: Edit bits about requiring a special version
of the autotools.
From-SVN: r35410
Jan Hubicka [Tue, 1 Aug 2000 10:36:25 +0000 (10:36 +0000)]
loop.c (canonicalize_condition): use destination, not source to determine set's mode.
* loop.c (canonicalize_condition): use destination, not source to
determine set's mode.
From-SVN: r35409
Jeff Law [Tue, 1 Aug 2000 07:45:41 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r35408
Benjamin Kosnik [Tue, 1 Aug 2000 07:44:11 +0000 (07:44 +0000)]
fileops.cc: Update to current glibc sources.
2000-07-31 Benjamin Kosnik <bkoz@cygnus.com>
* libio/fileops.cc: Update to current glibc sources.
* libio/genops.c: Same.
* libio/iofwide.c: Same.
* libio/libio.h: Same.
* libio/libioP.h: Same.
* libio/wfiledoalloc.c: Same.
* libio/wgenops.c: Same.
From-SVN: r35407
Mark Mitchell [Tue, 1 Aug 2000 06:42:51 +0000 (06:42 +0000)]
* flow.c (clear_log_links): Fix typo.
From-SVN: r35406
Alexandre Oliva [Tue, 1 Aug 2000 04:45:34 +0000 (04:45 +0000)]
ltconfig, ltmain.sh: Update from libtool multi-language branch.
* ltconfig, ltmain.sh: Update from libtool multi-language branch.
* ltcf-c.sh (need_lc): Fix test message. Set wl for archive_cmds.
(ac_cv_prog_cc_pic): Don't print `cached' without `checking'.
* ltcf-cxx.sh (need_lc): Set based on postdeps.
From-SVN: r35405
Jeffrey A Law [Tue, 1 Aug 2000 04:19:47 +0000 (04:19 +0000)]
loop.c (check_dbra_loop): Make change from July 17...
* loop.c (check_dbra_loop): Make change from July 17, 2000 work
on targets which need more than one insn for a compare/cbranch
operation.
From-SVN: r35404
Jeffrey A Law [Tue, 1 Aug 2000 04:11:57 +0000 (04:11 +0000)]
20000731-2.c: New test.
* gcc-c-torture/execute/
20000731-2.c: New test.
Fix will be applied shortly...
From-SVN: r35403
Alexandre Oliva [Tue, 1 Aug 2000 04:10:47 +0000 (04:10 +0000)]
* configure.in (qCXX_FOR_TARGET): Use echo instead of expr.
From-SVN: r35402
Jim Wilson [Tue, 1 Aug 2000 03:22:53 +0000 (03:22 +0000)]
Adjust structure parameter passing to match ABI change.
* config/ia64/ia64.c (ia64_function_arg): Use alignment not size
when computing offset.
From-SVN: r35401
Denis Chertykov [Tue, 1 Aug 2000 03:16:19 +0000 (03:16 +0000)]
* genpeep.c (main): Handle DEFINE_PEEPHOLE2.
From-SVN: r35400
Jeffrey A Law [Tue, 1 Aug 2000 03:14:49 +0000 (03:14 +0000)]
20000731-1.c: New test.
* gcc.c-torture/execute/
20000731-1.c: New test.
* gcc.c-torture/execute/
20000731-1.x: Expected to fail for i?86-*-*.
From-SVN: r35399
Kazu Hirata [Tue, 1 Aug 2000 03:11:55 +0000 (03:11 +0000)]
* combine.c: Fix formatting.
From-SVN: r35398
Kazu Hirata [Tue, 1 Aug 2000 03:05:52 +0000 (03:05 +0000)]
* h8300.md: Fix formatting.
From-SVN: r35397
Geoff Keating [Tue, 1 Aug 2000 01:27:45 +0000 (01:27 +0000)]
flow.c (clear_log_links): Nuke global_live_at_start and global_live_at_end data...
* flow.c (clear_log_links): Nuke global_live_at_start and
global_live_at_end data, since if the log_links stuff is invalid
so is global_live_at_*.
From-SVN: r35396
Richard Henderson [Tue, 1 Aug 2000 00:07:43 +0000 (17:07 -0700)]
* tm.texi (Addressing Modes): Clarify PRE/POST_MODIFY descriptions.
From-SVN: r35395
Zack Weinberg [Mon, 31 Jul 2000 23:47:19 +0000 (23:47 +0000)]
[multiple changes]
2000-07-31 Jakub Jelinek <jakub@redhat.com>
* cpplex.c (_cpp_get_line): If index is 0, return line 0 col 0.
(_cpp_get_token): Don't macro expand a just pasted token if it
was pasted at no_expand_level.
* testsuite/gcc.dg/cpp/paste7.c: New test.
2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
* cppmacro.c (find_param, count_params, save_expansion):
Permit 'defined' as a macro parameter name.
From-SVN: r35394
Zack Weinberg [Mon, 31 Jul 2000 23:39:08 +0000 (23:39 +0000)]
Oops - this went with the previous change set
From-SVN: r35393
Jason Merrill [Mon, 31 Jul 2000 21:00:36 +0000 (17:00 -0400)]
* lang-specs.h: Use %i in rule for .ii files.
From-SVN: r35392
Jakub Jelinek [Mon, 31 Jul 2000 19:51:10 +0000 (21:51 +0200)]
* gcc.dg/cpp/
20000725-1.c: New test.
From-SVN: r35391
Alexandre Oliva [Mon, 31 Jul 2000 19:29:03 +0000 (19:29 +0000)]
configure.in (qCXX_FOR_TARGET): Quote `&' characters in CXX_FOR_TARGET for sed.
* configure.in (qCXX_FOR_TARGET): Quote `&' characters in
CXX_FOR_TARGET for sed.
From-SVN: r35390
Zack Weinberg [Mon, 31 Jul 2000 18:29:58 +0000 (18:29 +0000)]
Makefile.in: Rename cpp to cpp0, tradcpp to tradcpp0, and xcpp to cpp throughout.
* Makefile.in: Rename cpp to cpp0, tradcpp to tradcpp0, and
xcpp to cpp throughout.
(native): Remove unnecessary dependency on cpp.
* gcc.c (trad_capable_cpp, C specs): Rename cpp to cpp,
tradcpp to tradcpp0.
(.i spec): Add missing output-file spec to cc1 command line.
* ch/lang-specs.h, cp/lang-specs.h, f/lang-specs.h,
objc/lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
From-SVN: r35389
Zack Weinberg [Mon, 31 Jul 2000 18:19:28 +0000 (18:19 +0000)]
c90-digraph-1.c: Restore { dg-do run } marker.
* gcc.dg/c90-digraph-1.c: Restore { dg-do run } marker.
* gcc.dg/noncompile/990416-1.c: Do not expect an implicit-
declaration warning for __builtin_dwarf_reg_size.
From-SVN: r35387
Zack Weinberg [Mon, 31 Jul 2000 18:10:31 +0000 (18:10 +0000)]
c-decl.c (mesg_implicit_function_declaration): Init to -1.
* c-decl.c (mesg_implicit_function_declaration): Init to -1.
(implicit_decl_warning): New function.
(implicitly_declare): Use it.
* c-typeck.c (build_external_ref): Use implicit_decl_warning
to complain about implicit decls of builtins.
* c-lang.c (lang_init): Set mesg_implicit_function_declaration
based on pedantic && flag_isoc99, if not already set.
* c-tree.h: Declare mesg_implicit_function_declaration.
Prototype implicit_decl_warning.
* gcc.dg/c99-impl-decl-1.c: No longer XFAIL.
From-SVN: r35385
Jeffrey D. Oldham [Mon, 31 Jul 2000 17:33:28 +0000 (17:33 +0000)]
Makefile.in (ssa.o): Updated header files in dependences.
* Makefile.in (ssa.o): Updated header files in dependences.
* basic-block.h: Added compute_immediate_postdominators declaration.
* config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Added
definition.
* flow.c (compute_immediate_dominators): Updated comment.
(compute_immediate_postdominators): Added definition.
* rtl.h (HARD_REGISTER_P): Added definition.
* ssa.c: Include additional header files.
(assert): Added definition.
(ssa_rename_to_lookup): Added to reimplement ssa_rename_to to
include select hard registers.
(ssa_rename_to_insert): Likewise.
(ssa_rename_from_initialize): Likewise.
(ssa_rename_from_lookup): Likewise.
(original_register): Likewise.
(ssa_rename_from_insert): Added to reimplement ssa_rename_from to
include select hard reigsters.
(ssa_rename_from_traverse): Likewise.
(ssa_rename_from_free): Likewise.
(ssa_rename_from_print): Likewise.
(ssa_rename_from_print_1): Likewise.
(ssa_rename_from_hash_function): Likewise.
(ssa_rename_from_equal): Likewise.
(ssa_rename_from_delete): Likewise.
(simplify_to_immediate_dominators): Removed in favor of
flow.c:compute_immediate_dominators.
(find_evaluations_1): Modified to work with hard registers.
(insert_phi_node): Likewise.
(insert_phi_nodes): Likewise.
(struct rename_set_data): Updated prev_reg comment.
(create_delayed_rename): Modified to work with hard registers.
(RENAME_NO_RTX): Updated comment.
(apply_delayed_renames): Modified to work with hard registers.
(rename_insn_1): Likewise and added handling of CLOBBER rtls.
(rename_block): Updated to use revised ssa_rename_to interface.
(rename_registers): Updated to use revised ssa_rename_to and
ssa_rename_from interface.
(convert_to_ssa): Revised to use compute_immediate_dominators and
deal with hard registers.
(make_regs_equivalent_over_bad_edges): Modified to work with hard
registers. Added check for illegal unification of hard register.
(make_equivalent_phi_alternatives_equivalent): Modified to work
with hard registers.
(compute_conservative_reg_partition): Likewise.
(coalesce_if_unconflicting): Modified to work with hard registers
and check for conflicting hard registers.
(mark_phi_and_copy_regs): Revised loop to work only on pseudo
registers.
(rename_equivalent_regs_in_insn): Modified to work with hard
registers.
(record_canonical_element_1): Added definition.
(check_hard_regs_in_partition): Added definition.
(convert_from_ssa): Added data structure deallocation and check
for illegal hard register unification.
(conflict_hard_regs_p): Added definition.
* toplev.c (rest_of_compilation): Added comment.
From-SVN: r35384
Anthony Green [Mon, 31 Jul 2000 17:23:25 +0000 (17:23 +0000)]
crtbegin.asm (__EH_FRAME_BEGIN__): Align correctly.
2000-07-30 Anthony Green <green@redhat.com>
* config/ia64/crtbegin.asm (__EH_FRAME_BEGIN__): Align correctly.
From-SVN: r35383
Jason McMullan [Mon, 31 Jul 2000 16:37:34 +0000 (16:37 +0000)]
builtins.c (expand_builtin_apply): Don't defer pop during argument setup.
* builtins.c (expand_builtin_apply): Don't defer pop during
argument setup.
From-SVN: r35382
Herman A.J. ten Brugge [Mon, 31 Jul 2000 14:04:41 +0000 (16:04 +0200)]
calls.c (combine_pending_stack_adjustment_and_call): Only use preferred_unit_stack_boundary when it is > 1.
* calls.c (combine_pending_stack_adjustment_and_call): Only use
preferred_unit_stack_boundary when it is > 1.
From-SVN: r35381
Joseph Myers [Mon, 31 Jul 2000 14:00:34 +0000 (08:00 -0600)]
c-common.c (init_function_format_info): Add C99 format functions in C99 mode.
* c-common.c (init_function_format_info): Add C99 format functions
in C99 mode.
From-SVN: r35380
Casper Dik [Mon, 31 Jul 2000 13:58:51 +0000 (13:58 +0000)]
* Makefile.in: Remove naked "^L".
From-SVN: r35379
Kazu Hirata [Mon, 31 Jul 2000 13:57:02 +0000 (13:57 +0000)]
* local-alloc.c: Fix formatting.
From-SVN: r35378
Joseph Myers [Mon, 31 Jul 2000 13:11:39 +0000 (07:11 -0600)]
c-decl.c (get_parm_info): Don't treat 'const void'...
* c-decl.c (get_parm_info): Don't treat 'const void', 'volatile
void' or 'register void' as being the special case of 'void' alone
in a parameter list.
From-SVN: r35377
Joseph Myers [Mon, 31 Jul 2000 13:10:37 +0000 (07:10 -0600)]
* gcc.dg/noncompile/voidparam-1.c: New test.
From-SVN: r35376
Kazu Hirata [Mon, 31 Jul 2000 13:08:11 +0000 (13:08 +0000)]
h8300.c (get_shift_alg): Remove the variable alg.
* h8300.c (get_shift_alg): Remove the variable alg.
(emit_a_shift): Rearrange code to improve readability.
* h8300.md (movsi_h8300hs): Rearrange code to improve readability.
From-SVN: r35375
Joseph Myers [Mon, 31 Jul 2000 13:01:23 +0000 (07:01 -0600)]
c-typeck.c (build_c_cast): Change -Wcast-qual pedwarn for discarding qualifiers into a plain warning.
* c-typeck.c (build_c_cast): Change -Wcast-qual pedwarn for
discarding qualifiers into a plain warning.
From-SVN: r35374
Jeff Law [Mon, 31 Jul 2000 12:59:37 +0000 (06:59 -0600)]
Rotate out 6 more months of ChangeLog entries.
From-SVN: r35373
Kazu Hirata [Mon, 31 Jul 2000 12:51:11 +0000 (12:51 +0000)]
h8300.h (MODES_TIEABLE_P): Accept a combination of QImode and HImode on all architectures and a...
* h8300.h (MODES_TIEABLE_P): Accept a combination of QImode and
HImode on all architectures and a combination of HImode and SImode
on H8/300H and H8/S.
From-SVN: r35372
Kazu Hirata [Mon, 31 Jul 2000 12:44:28 +0000 (12:44 +0000)]
* h8300.c (split_adds_subs): Rearrange code for conciseness.
From-SVN: r35371
Jan Hubicka [Mon, 31 Jul 2000 10:30:44 +0000 (10:30 +0000)]
i386.md (addsi to lea splitter, [...]): Fix bugs in my last checkin.
* i386.md (addsi to lea splitter, ashlqi3_1_lea): Fix bugs
in my last checkin.
From-SVN: r35370
Jan Hubicka [Mon, 31 Jul 2000 08:42:26 +0000 (08:42 +0000)]
recog.c (extract_insn): Set operand_mode according to operand if match_operand is VOIDmode.
* recog.c (extract_insn): Set operand_mode according to
operand if match_operand is VOIDmode.
From-SVN: r35369
Jan Hubicka [Mon, 31 Jul 2000 08:37:30 +0000 (08:37 +0000)]
* recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.
From-SVN: r35368
Geoff Keating [Mon, 31 Jul 2000 08:28:01 +0000 (08:28 +0000)]
c-parse.in (extdefs): Call ggc_collect between external definitions.
* c-parse.in (extdefs): Call ggc_collect between external
definitions.
From-SVN: r35367
Jeff Law [Mon, 31 Jul 2000 07:45:07 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r35366
Bryce McKinlay [Mon, 31 Jul 2000 04:11:49 +0000 (04:11 +0000)]
Component.java (toString): Implemented.
* java/awt/Component.java (toString): Implemented.
* java/awt/Container.java (addImpl): Remove FIXME. Only call
dispatchEvent() to dispatch the event.
(removeImpl): Ditto.
From-SVN: r35363
Anthony Green [Mon, 31 Jul 2000 02:33:12 +0000 (02:33 +0000)]
Component.java: Add treeLock object.
2000-07-30 Anthony Green <green@redhat.com>
* java/awt/Component.java: Add treeLock object.
(getTreeLock): Implement.
(isShowing): Implement.
From-SVN: r35362
Tom Tromey [Mon, 31 Jul 2000 02:03:51 +0000 (02:03 +0000)]
BorderLayout.java (BorderLayout()): New constructor.
* java/awt/BorderLayout.java (BorderLayout()): New constructor.
* java/awt/Frame.java (Frame): Pass `null' to Window constructor.
* java/awt/Window.java (addNotify): Wrote.
(addWindowListener): Wrote.
(getLocale): Wrote.
(getWarningString): Wrote.
(processEvent): Wrote.
(processWindowEvent): Wrote.
(removeWindowListener): Wrote.
(show): Call validate(), setVisible().
(toBack): Wrote.
(toFront): Wrote.
* java/awt/Toolkit.java (createWindow): Declare.
* java/awt/Frame.java (addNotify): Use getToolkit to find
toolkit.
* java/awt/Component.java (invalidate): Wrote.
(isValid): Wrote.
(getToolkit): Wrote.
* java/awt/Container.java (addContainerListener): Removed
unnecessary cast.
(removeContainerListener): Likewise.
(addImpl): Wrote.
(add(Component)): Use it.
(add(String,Component)): Likewise.
(add(Component,int)): Likewise.
(add(Component,Object)): Likewise.
(add(Component,Object,int)): Likewise.
(doLayout): Wrote.
(getAlignmentX): Wrote.
(getAlignmentY): Wrote.
(getComponentAt): Wrote.
(getMaximumSize): Wrote.
(invalidate): Wrote.
(list(PrintStream,int)): Wrote.
(list(PrintWriter,int)): Wrote.
(getMinimumSize): Wrote.
(getPreferredSize): Wrote.
(printComponents): Wrote.
(processContainerEvent): Look at containerListener, not
componentListener.
(remove): Added event processing and peer destruction.
(removeAll): Use remove.
(removeNotify): Wrote.
(validate): Wrote.
(validateTree): Wrote.
* java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
* java/awt/Label.java (addNotify): Do nothing if peer exists.
* java/awt/Container.java (addNotify): Don't create Container
peer.
* java/awt/Button.java (addNotify): Do nothing if peer exists.
From-SVN: r35361
Mark Mitchell [Mon, 31 Jul 2000 00:24:44 +0000 (00:24 +0000)]
Allow indirect primary bases.
* cp-tree.h (struct lang_type): Remove vfield_parent. Add
primary_base.
(CLASSTYPE_VFIELD_PARENT): Remove.
(CLASSTYPE_PRIMARY_BINFO): Reimplement.
(BINFO_PRIMARY_BINFO): Remove.
(CLASSTYPE_HAS_PRIMARY_BASE_P): Reimplement.
(BINFO_VBASE_PRIMARY_P): Likewise.
(BINFO_PRIMARY_BASE_OF): New macro.
(BINFO_INDIRECT_PRIMARY_P): Likewise.
(get_primary_binfo): New function.
* decl.c (lang_mark_tree): Make lang_type::primary_base.
* class.c (vcall_offset_data_s): Rename to ...
(vtbl_init_data_s): ... this. Rename primary_p to primary_vtbl_p,
and add ctor_vtbl_p.
(get_derived_offset): Use get_primary_binfo.
(dfs_mark_primary_bases): Adjust handling of virtual primary
bases.
(mark_primary_bases): Likewise.
(set_primary_base): Take a binfo, not an integer, as a
representation of the primary base.
(indirect_primary_base_p): Remove.
(determine_primary_base): Adjust for indirect primary bases.
(dfs_find_final_overrider): Fix typo in coment.
(update_vtable_entry_for_fn): Use get_primary_binfo.
(layout_nonempty_base_or_field): Tweak.
(build_base_fields): Adjust for new primary base semantics.
(dfs_propagate_binfo_offsets): Remove.
(propagate_binfo_offsets): Rewrite.
(dfs_set_offset_for_shared_vbases): Remove.
(layout_virtual_bases): Don't use it.
(layout_class_type): Set CLASSTYPE_SIZE correctly under the new
ABI.
(finish_struct_1): Set CLASSTYPE_PRIMARY_BINFO, not
CLASSTYPE_VFIELD_PARENT.
(dfs_get_primary_binfo): New function.
(get_primary_binfo): Likewise.
(dump_class_hierarchy_r): Tweak printing of primary bases.
(build_vtbl_initializer): Fix typo in comments. Use
vtbl_init_data.
(build_vcall_and_vbase_vtbl_entries): Likewise.
(build_vbaes_offset_vtbl_entries): Likewise.
(dfs_build_vcall_offset_vtbl_entries): Adjust setting of
BV_VCALL_INDEX to handle indirect primary bases.
(build_vcall_offset_vtbl_entries): Use vtbl_init_data.
(build_rtti_vtbl_entries): Likewise.
* search.c (get_shared_vbase_if_not_primary): Tweak.
(find_vbase_instance): Likewise.
(binfo_for_vtable): Simplify.
* tree.c (unshare_base_binfos): Clear BINFO_PRIMARY_BASE_OF.
(make_binfo): Make it have 11 entries.
From-SVN: r35360
Jan Hubicka [Mon, 31 Jul 2000 00:06:48 +0000 (00:06 +0000)]
Fix bug in my last checkin.
From-SVN: r35359
Richard Henderson [Sun, 30 Jul 2000 23:58:03 +0000 (16:58 -0700)]
Makefile.in (OBJS): Add doloop.o.
* Makefile.in (OBJS): Add doloop.o.
* doloop.c: New file.
* final.c (insn_current_reference_address): Return 0 before final.
* flags.h (flag_branch_on_count_reg): Fix typos in commentary.
* jump.c (any_uncondjump_p): Likewise.
* loop.c (indirect_jump_in_function): Make static.
(strength_reduce): Call doloop_optimize.
(insert_bct, instrument_loop_bct): Remove.
* loop.h (doloop_optimize): Prototype.
* recog.c (split_all_insns): Split all INSN_P.
* toplev.c (flag_branch_on_count_reg): Default on.
* config/c4x/c4x.c (c4x_optimization_options): Don't set
flag_branch_on_count_reg.
* config/i386/i386.c (override_options): Likewise.
* config/rs6000/rs6000.c (optimization_options): Likewise.
* config/i386/i386.md (decrement_and_branch_on_count): Remove.
(doloop_end): New.
(dbra_ge): Remove, as well as all it's splitters.
* config/rs6000/rs6000.md (decrement_and_branch_on_count): Remove.
(doloop_end): New.
* config/ia64/ia64-protos.h (ar_lc_reg_operand): Declare.
(ia64_register_move_cost): Declare.
* config/ia64/ia64.c (ar_lc_reg_operand): New.
(struct ia64_frame_info): Add ar_size.
(ia64_compute_frame_size): Set it.
(save_restore_insns): Save and restore ar.lc.
(ia64_register_move_cost): New, moved from header file. Handle
application registers.
(REG_AR_PFS, REG_AR_EC): Remove. Replace with AR_*_REGNUM numbers.
(emit_insn_group_barriers): Special case doloop_end_internal.
(ia64_epilogue_uses): Mark ar.lc live at end.
* config/ia64/ia64.h (AR_CCV_REGNUM, AR_LC_REGNUM): New registers.
(AR_EC_REGNUM, AR_PFS_REGNUM): New registers.
(FIRST_PSEUDO_REGISTER): Make room.
(AR_M_REGNO_P, AR_I_REGNO_P, AR_REGNO_P): New.
(FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
(REG_ALLOC_ORDER): Update.
(HARD_REGNO_MODE_OK): Update.
(REGISTER_NAMES): Update.
(enum reg_class): Add AR_M_REGS and AR_I_REGS.
(REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
(REGNO_REG_CLASS): Update.
(LEGITIMATE_ADDRESS_DISP): Displacement range is 9 bits, not 10.
(REGISTER_MOVE_COST): Move out of line.
(PREDICATE_CODES): Update.
* config/ia64/ia64.md (movdi patterns): Handle ar register classes.
(addsi3_plus1_alt, adddi3_plus1_alt): New.
(shladd_elim splitter): Allow constants in the predicate.
(doloop_end, doloop_end_internal): New.
From-SVN: r35358
Richard Henderson [Sun, 30 Jul 2000 23:54:59 +0000 (16:54 -0700)]
c90-digraph-1.c: Don't xfail.
* gcc.dg/c90-digraph-1.c: Don't xfail.
* gcc.dg/compare2.c (case 10): Xfail.
* gcc.dg/noncompile/redecl-1.c: Fix expected error message.
From-SVN: r35357
Richard Henderson [Sun, 30 Jul 2000 23:38:26 +0000 (16:38 -0700)]
genattrtab.c (struct insn_def): Add lineno member.
* genattrtab.c (struct insn_def): Add lineno member.
(struct insn_ent): Likewise.
(struct attr_desc): Likewise.
(struct delay_desc): Likewise.
(struct function_unit_op): Likewise.
(struct function_unit): Likewise.
(check_attr_value): Use message_with_line.
(check_defs): Likewise.
(expand_units): Likewise.
(check_attr_test): Take a lineno argument.
(gen_attr): Likewise.
(gen_insn): Likewise.
(gen_delay): Likewise.
(gen_unit): Likewise.
(main): Give it to them.
(convert_set_attr_alternative): Take an insn_def argument
instead of num_alt and insn_index.
(convert_set_attr): Likewise.
(write_test_expr): Protect INSN_ADDRESSES load
with INSN_ADDRESSES_SET_P.
From-SVN: r35356
Alex Samuel [Sun, 30 Jul 2000 23:37:04 +0000 (23:37 +0000)]
mangle.c (DECL_TEMPLATE_ID_P): Remove.
* mangle.c (DECL_TEMPLATE_ID_P): Remove.
(CLASSTYEP_TEMPLATE_ID_P): Check template info, and context when
ascertaining primaryness.
(G): Remove template_args.
(decl_is_template_id): New function.
(write_encoding): Use decl_is_template_id.
(write_name): Likewise. Handle type_decls. Get main variant of
type decls.
(write_nested_name): Likewise.
(write_prefix): Likewise.
(write_template_prefix): Likewise.
(write_special_name_constructor): Remove defunct production from
comment.
(write_bare_function_type): Remove comment about absent parameter.
(write_template_template_arg): Add missing grammar production to
comment.
From-SVN: r35355
Tom Tromey [Sun, 30 Jul 2000 23:19:57 +0000 (23:19 +0000)]
Container.java (remove(int)): Wrote.
* java/awt/Container.java (remove(int)): Wrote.
(remove(Component)): Wrote.
(add(Component)): Wrote.
(add(Component,int)): Wrote.
(removeAll): Wrote.
(addNotify): Set our own peer.
* java/awt/Scrollbar.java (listeners): Changed type.
(Scrollbar): Don't initialize listeners.
(addNotify): Wrote.
(setValue): Call setValues.
(setMinimum): Likewise.
(setMaxPriority): Likewise.
(setVisibleAmount): Likewise.
(setValues): Wrote.
(setUnitIncrement): Forward to peer.
(setLineIncrement): Call setUnitIncrement.
(setPageIncrement): Call setBlockIncrement.
(setBlockIncrement): Forward to peer.
(addAdjustmentListener): Rewrote.
(removeAdjustmentListener): Rewrote.
(processAdjustmentEvent): Rewrote.
(paramString): Wrote.
* Makefile.in: Rebuilt.
* Makefile.am (awt_java_source_files): Added Button.java.
* java/awt/Button.java: New file.
* java/awt/Toolkit.java (createLabel): Declare.
(createButton): Likewise.
(createScrollbar): Likewise.
(createContainer): Likewise.
* java/awt/Label.java (addNotify): Wrote.
(setAlignment): Call setAlignment in the peer.
(setText): Call setText in the peer.
From-SVN: r35354
Richard Henderson [Sun, 30 Jul 2000 23:05:52 +0000 (16:05 -0700)]
* flow.c (init_propagate_block_info): Use pc_set.
From-SVN: r35353
Anthony Green [Sun, 30 Jul 2000 21:50:24 +0000 (21:50 +0000)]
Test case for gcj/295.
From-SVN: r35352
Jan Hubicka [Sun, 30 Jul 2000 18:59:56 +0000 (18:59 +0000)]
* i386.md (*lea_general_[123]) New insns and splits.
(addsi3 to lea splitter): Handle other modes too.
(shlsi3 to lea splitter): Likewise.
(addhi_1_lea, shlhi_1_lea): New patterns.
(addhi_1, shlhi_1): Conditionize by PARTIAL_REG_STALL.
From-SVN: r35351
Jan Hubicka [Sun, 30 Jul 2000 18:53:33 +0000 (18:53 +0000)]
recog.c (general_operand, [...]): Accept any mode for VOIDmode CONSTANT_P operands.
* recog.c (general_operand, nonimmediate_operand): Accept
any mode for VOIDmode CONSTANT_P operands.
From-SVN: r35350
Jan Hubicka [Sun, 30 Jul 2000 18:44:13 +0000 (18:44 +0000)]
gcse.c (try_replace_reg): Use validate_replace_rtx_subexp instead of replace_rtx.
* gcse.c (try_replace_reg): Use validate_replace_rtx_subexp
instead of replace_rtx.
* recog.c (validate_replace_rtx_subexp): New function.
* recog.h (validate_replace_rtx_subexp): Declare.
From-SVN: r35349
Jan Hubicka [Sun, 30 Jul 2000 18:40:12 +0000 (18:40 +0000)]
combine.c (simplify_set, [...]): Use full mask instead of GET_MODE_MASK (mode) as force_to_mode argument.
* combine.c (simplify_set, make_extraction, make_compound_operation
make_field_assignment): Use full mask instead of GET_MODE_MASK (mode)
as force_to_mode argument.
From-SVN: r35348
Jan Hubicka [Sun, 30 Jul 2000 18:35:53 +0000 (18:35 +0000)]
* combine.c (if_then_else_cond): Be sure that mode fits in HOST_WIDE_INT
From-SVN: r35347
Jan Hubicka [Sun, 30 Jul 2000 18:30:05 +0000 (18:30 +0000)]
combine.c (record_promoted_value): Allow bitsize of mode to be equivalent to HOST_BITS_PER_WISE_INT.
* combine.c (record_promoted_value): Allow bitsize of mode
to be equivalent to HOST_BITS_PER_WISE_INT.
From-SVN: r35346
Jan Hubicka [Sun, 30 Jul 2000 18:26:46 +0000 (18:26 +0000)]
function.c (assign_stack_local_1, [...]): Do not call gen_mode_alignment when mode is BLKmode.
* function.c (assign_stack_local_1, assign_stack_temp_for_type):
Do not call gen_mode_alignment when mode is BLKmode.
From-SVN: r35345
Jan Hubicka [Sun, 30 Jul 2000 18:23:54 +0000 (18:23 +0000)]
* loop.c (express_from_1): Fix call of simplify_gen_binary.
From-SVN: r35344
Jan Hubicka [Sun, 30 Jul 2000 18:13:10 +0000 (18:13 +0000)]
simplify-rtx.c (simplify_relational_operation): Verify that mode == VOIDmode implies both operands to be VOIDmode.
* simplify-rtx.c (simplify_relational_operation): Verify that mode ==
VOIDmode implies both operands to be VOIDmode.
(simplify_ternary_operation): Compute properly the mode of comparison.
* combine.c (combine_simplify_rtx): Likewise.
From-SVN: r35343
Michael Hayes [Sun, 30 Jul 2000 10:35:03 +0000 (10:35 +0000)]
basic-block.h (struct loops): New field rc_order.
* basic-block.h (struct loops): New field rc_order.
* flow.c (flow_loops_cfg_dump): Dump rc_order if computed.
(flow_loops_free): Free rc_order.
(flow_depth_first_order_compute): New parameter rc_order.
(flow_loops_find): Allocate rc_order and swap usage with
dfs_order.
From-SVN: r35342
Herman A.J. ten Brugge [Sun, 30 Jul 2000 09:12:46 +0000 (11:12 +0200)]
c4x.md (set_ldp_prologue): Add for RTL prologue/epilogue.
* config/c4x/c4x.md (set_ldp_prologue): Add for RTL prologue/epilogue.
(push_st, push_dp, pop_st, pop_dp, popqi_unspec): Likewise.
(nodb_call, return_from_epilogue): Likewise.
(return_from_interrupt_epilogue, prologue, epilogue): Likewise.
* config/c4x/c4x.c (c4x_expand_prologue, c4x_expand_eplilogue): Add.
* config/c4x/c4x-protos.h (c4x_interrupt_function_p): Add.
(c4x_expand_prologue, c4x_expand_epilogue): Likewise.
(c4x_valid_type_attribute_p): Likewise.
* config/c4x/c4x.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Delete.
(FUNCTION_BLOCK_PROFILER_EXIT): Convert to emit RTL.
Co-Authored-By: Michael Hayes <m.hayes@elec.canterbury.ac.nz>
From-SVN: r35341
Michael Hayes [Sun, 30 Jul 2000 08:42:57 +0000 (08:42 +0000)]
c4x.c (c4x_emit_move_sequence): Use loadqi_big_constant and loadhi_big_constant if applicable.
* config/c4x/c4x.c (c4x_emit_move_sequence): Use loadqi_big_constant
and loadhi_big_constant if applicable.
* config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant): Tweak
and add new splitter.s
From-SVN: r35339
Michael Hayes [Sun, 30 Jul 2000 08:29:01 +0000 (08:29 +0000)]
* config/c4x/c4x.c (c4x_rptb_insert): Make more robust.
From-SVN: r35338
Michael Hayes [Sun, 30 Jul 2000 08:25:57 +0000 (08:25 +0000)]
* config/c4x/c4x.h (ASM_FORMAT_PRIVATE_NAME): Output $ in label.
From-SVN: r35337
Michael Hayes [Sun, 30 Jul 2000 08:21:43 +0000 (08:21 +0000)]
* config/c4x/c4x.h (IS_XXX_REGNO): Rewrite to avoid unsigned warnings.
From-SVN: r35336
Michael Hayes [Sun, 30 Jul 2000 08:12:12 +0000 (08:12 +0000)]
* config/c4x/libgcc.S: (divqf3): Improve accuracy.
From-SVN: r35335
Jeff Law [Sun, 30 Jul 2000 07:45:07 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r35334
Ovidiu Predescu [Sun, 30 Jul 2000 05:45:10 +0000 (05:45 +0000)]
Added to test Objective-C strings.
From-SVN: r35333
Alexandre Oliva [Sun, 30 Jul 2000 05:35:14 +0000 (05:35 +0000)]
configure.in (CC_FOR_TARGET, [...]): Do not override if already set in the environment or in configure.
* configure.in (CC_FOR_TARGET, CHILL_FOR_TARGET, CXX_FOR_TARGET):
Do not override if already set in the environment or in configure.
Don't duplicate $(FLAGS_FOR_TARGET) if it already appears in them.
(FLAGS_FOR_TARGET): Don't use host directories on Canadian crosses.
From-SVN: r35332
Mark Mitchell [Sat, 29 Jul 2000 19:45:41 +0000 (19:45 +0000)]
Revert previous checkin.
From-SVN: r35331
Mark Mitchell [Sat, 29 Jul 2000 19:33:55 +0000 (19:33 +0000)]
Makefile.in: Generate objc parser along with the C parser.
* Makefile.in: Generate objc parser along with the C parser.
* objc/Make-lang.in: Remove generation of objc parser.
From-SVN: r35330
Nicola Pero [Sat, 29 Jul 2000 19:19:43 +0000 (19:19 +0000)]
Added libtool support for building libobjc.
From-SVN: r35329
Andreas Jaeger [Sat, 29 Jul 2000 10:36:20 +0000 (12:36 +0200)]
configure.in (mips*-*-linux*): Use mips*el to check for little endian MIPS, add tmake_file.
* configure.in (mips*-*-linux*): Use mips*el to check for little
endian MIPS, add tmake_file.
* config/mips/linux.h (TARGET_VERSION): Use GNU/Linux.
(SUBTARGET_CPP_SPEC): Default MIPS_ISA is 1.
Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
From-SVN: r35328
Jeff Law [Sat, 29 Jul 2000 07:45:08 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r35327
Ovidiu Predescu [Sat, 29 Jul 2000 07:11:04 +0000 (07:11 +0000)]
Removed the explicit prototypes for strlen and memcpy on 64-bit
platforms (Suggested by Rodney Brown <rdb@cup.hp.com>).
From-SVN: r35326
Warren Levy [Fri, 28 Jul 2000 23:48:19 +0000 (23:48 +0000)]
ObjectOutputStream.java (writeObject): Per spec, call NotSerializableException with just the class name.
* java/io/ObjectOutputStream.java (writeObject): Per spec, call
NotSerializableException with just the class name.
From-SVN: r35325
Richard Henderson [Fri, 28 Jul 2000 19:46:18 +0000 (12:46 -0700)]
ia64.c (ia64_print_operand): Fix typos.
* config/ia64/ia64.c (ia64_print_operand): Fix typos.
Sign extend mode size before negating.
From-SVN: r35324
Alexandre Oliva [Fri, 28 Jul 2000 18:04:21 +0000 (18:04 +0000)]
libtool.m4, [...]: New files from the libtool CVS tree multi-language branch.
2000-07-28 Alexandre Oliva <aoliva@redhat.com>
* libtool.m4, ltcf-c.sh, ltcf-cxx.sh, ltcf-gcj.sh: New files from
the libtool CVS tree multi-language branch.
* ltconfig, ltmain.sh: Updated.
From-SVN: r35323
Alexandre Oliva [Fri, 28 Jul 2000 17:56:27 +0000 (17:56 +0000)]
acinclude.m4: Include ../libtool.m4.
2000-07-28 Alexandre Oliva <aoliva@redhat.com>
* acinclude.m4: Include ../libtool.m4.
* aclocal.m4, configure: Rebuilt.
From-SVN: r35322
Richard Henderson [Fri, 28 Jul 2000 17:46:18 +0000 (10:46 -0700)]
cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.
* cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.
(cse_insn): Likewise.
(addr_affects_sp_p): Likewise.
* expr.c (move_by_pieces): Likewise.
(clear_by_pieces): Likewise.
* gcse.c (oprs_unchanged_p): Likewise.
* haifa-sched.c (sched_analyze_2): Likewise.
* recog.c (offsettable_address_p): Likewise.
* regclass.c (record_address_regs): Likewise.
* reload.c (find_reusable_reload): Likewise.
(push_reload): Likewise.
(operands_match_p): Likewise.
(decompose): Likewise.
(find_reloads_address_1): Likewise.
(find_inc_amount): Likewise.
* reload1.c (elimination_effects): Likewise.
* resource.c (mark_set_resources): Likewise.
* flow.c (attempt_auto_inc): New function; mostly broken out
of find_auto_inc.
(find_auto_inc): Split into two functions and enhanced to
generate POST_MODIFY.
* rtl.def (PRE_MODIFY, POST_MODIFY): Adjust comment.
* rtl.h (count_all_occurrences): Declare.
(HAVE_{PRE,POST}_MODIFY_{DISP,REG}): Provide default of 0 if not
defined.
* rtlanal.c (count_all_occurrences): New function.
* tm.texi (HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_DISP,
HAVE_POST_MODIFY_REG, HAVE_PRE_MODIFY_REG): Document.
* config/ia64/ia64-protos.h (destination_operand): Declare.
* config/ia64/ia64.c (destination_operand): New function.
(ia64_print_operand): Handle POST_MODIFY.
(rtx_needs_barrier): Likewise.
* config/ia64/ia64.h (HAVE_POST_MODIFY_DISP): Define to 1.
(HAVE_POST_MODIFY_REG): Define to 1.
(MAX_REGS_PER_ADDRESS): Change to 2.
(GO_IF_LEGITIMATE_ADDRESS): Accept POST_MODIFY too.
(LEGITIMATE_ADDRESS_REG): New helper macro.
(LEGITIMATE_ADDRESS_DISP): Likewise.
(PREDICATE_CODES): Add entry for destination_operand.
* config/ia64/ia64.md (all mov patterns): Use destination_operand
predicate for operand 0.
From-SVN: r35321
Richard Henderson [Fri, 28 Jul 2000 17:41:00 +0000 (10:41 -0700)]
* emit-rtl.c (gen_lowpart_common): Add missing 'c' variable.
From-SVN: r35320
Kaveh R. Ghazi [Fri, 28 Jul 2000 16:08:54 +0000 (16:08 +0000)]
dwarf2out.c: Indent #error directive.
* dwarf2out.c: Indent #error directive.
* gbl-ctors.h: Fix typo in comment.
(__do_global_ctors): Prototype.
* gcse.c (record_one_set, pre_delete): Remove unused variables.
* rs6000.c (rs6000_maybe_dead): Delete unused prototype.
(print_operand): Initialize variable `t'.
From-SVN: r35319
Aldy Hernandez [Fri, 28 Jul 2000 16:03:17 +0000 (16:03 +0000)]
removed constraints in expander.
split =rf constraints into =r,f
From-SVN: r35318
Philipp Thomas [Fri, 28 Jul 2000 13:24:20 +0000 (13:24 +0000)]
install.texi (--enable-nls): Change the description of the NLS related configure options to match the...
2000-07-28 Philipp Thomas <pthomas@suse.de>
* install.texi (--enable-nls): Change the description of the NLS
related configure options to match the current state.
(--with-included-gettext): Likewise.
(--enable-maintainer-mode): New description added.
* extend.texi (-fstrict-prototype): Add missing '.'.
From-SVN: r35317
Andrew Haley [Fri, 28 Jul 2000 13:11:45 +0000 (13:11 +0000)]
interpret.cc (continue1): Insert missing break into switch.
2000-07-26 Andrew Haley <aph@cygnus.com>
* interpret.cc (continue1): Insert missing break into switch.
From-SVN: r35316
Warren Levy [Fri, 28 Jul 2000 11:58:03 +0000 (11:58 +0000)]
ObjectStreamException.java: Made constructors protected.
* java/io/ObjectStreamException.java: Made constructors protected.
Adjusts serialVersionUID.
From-SVN: r35315
Jeff Law [Fri, 28 Jul 2000 07:45:07 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r35314
Tom Tromey [Fri, 28 Jul 2000 06:57:31 +0000 (06:57 +0000)]
class.c (make_class_data): Create vtable for abstract classes.
2000-07-27 Tom Tromey <tromey@cygnus.com>
Anthony Green <green@cygnus.com>
Alexandre Petit-Bianco <apbianco@cygnus.com>
* class.c (make_class_data): Create vtable for abstract classes.
(get_dispatch_table): Changed to cope with abstract classes.
Co-Authored-By: Alexandre Petit-Bianco <apbianco@cygnus.com>
Co-Authored-By: Anthony Green <green@cygnus.com>
From-SVN: r35313