Martin v. Löwis [Tue, 21 Dec 1999 18:14:50 +0000 (18:14 +0000)]
Add commentary:Remove seek for ios::app if not.
From-SVN: r31059
Martin v. Löwis [Tue, 21 Dec 1999 18:10:24 +0000 (18:10 +0000)]
* filebuf.cc (open): Support ios::ate if _G_HAVE_IO_FILE_OPEN.
From-SVN: r31057
Mark Mitchell [Tue, 21 Dec 1999 17:27:23 +0000 (17:27 +0000)]
Makefile.in (calls.o): Depend on function.h.
* Makefile.in (calls.o): Depend on function.h.
(alias.o): Likewise.
From-SVN: r31056
Mark Mitchell [Tue, 21 Dec 1999 17:03:24 +0000 (17:03 +0000)]
New test
From-SVN: r31053
Bernd Schmidt [Tue, 21 Dec 1999 13:56:28 +0000 (13:56 +0000)]
Break up emit_reload_insns.
From-SVN: r31052
Richard Kenner [Tue, 21 Dec 1999 12:11:13 +0000 (12:11 +0000)]
* pa.h (FUNCTION_ARG_BOUNDARY): Never return 0.
From-SVN: r31050
Michael Hayes [Tue, 21 Dec 1999 10:45:28 +0000 (10:45 +0000)]
* md.texi: Add c4x constraints documentation.
From-SVN: r31049
Martin v. Löwis [Tue, 21 Dec 1999 09:49:39 +0000 (09:49 +0000)]
New test case.
From-SVN: r31048
Martin v. Löwis [Tue, 21 Dec 1999 09:31:50 +0000 (09:31 +0000)]
dgux.c (struct option): Rename to lang_independent_option.
* config/i386/dgux.c (struct option): Rename to
lang_independent_option.
(struct m_options): Add description field.
(output_options): Rename option type, add sep declaration, output
ix86_cpu_string and ix86_arch_string only if set.
(output_file_start): Rename option type.
From-SVN: r31047
Jeff Law [Tue, 21 Dec 1999 08:45:06 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r31046
Mike Stump [Tue, 21 Dec 1999 06:18:22 +0000 (06:18 +0000)]
Makefile.in (crtbegin.o, [...]): Depend on stmp-int-hdrs.
* Makefile.in (crtbegin.o, crtend.o, s-crtS): Depend on
stmp-int-hdrs.
(libgcc2.a): Similarly.
From-SVN: r31045
David Edelsohn [Tue, 21 Dec 1999 06:10:20 +0000 (06:10 +0000)]
longlong.h (_ARCH_PPC): Only protect add_ssaaaa and sub_ddmmss with W_TYPE_SIZE == 32.
* longlong.h (_ARCH_PPC): Only protect add_ssaaaa and sub_ddmmss
with W_TYPE_SIZE == 32. Do not fall through to POWER architecture
for umul_ppmm and smul_ppmm if !_ARCH_PPC and !_ARCH_POWER.
From-SVN: r31044
Jeffrey A Law [Tue, 21 Dec 1999 06:02:59 +0000 (06:02 +0000)]
fold-const.c (real_hex_to_f): Remove unused "isldouble" variable.
* fold-const.c (real_hex_to_f): Remove unused "isldouble" variable.
Remove redundant initialization of "frexpon" and "expon".
From-SVN: r31043
Mark Mitchell [Tue, 21 Dec 1999 02:11:10 +0000 (02:11 +0000)]
cp-tree.h (CLASSTYPE_VFIELD_PARENT): Update comments.
1999-12-20 Mark Mitchell <mark@codesourcery.com>
* cp-tree.h (CLASSTYPE_VFIELD_PARENT): Update comments.
(CLASSTYPE_HAS_PRIMARY_BASE_P): New macro.
(CLASSTYPE_PRIMARY_BINFO): Likewise.
* class.c (check_methods): Don't set TYPE_HAS_COMPLEX_INIT_REF,
TYPE_NEEDS_CONSTRUCTING, and CLASSTYPE_NON_AGGREGATE here.
(check_bases_and_members): Set them here instead.
(create_vtable_ptr): New function, split out from ...
(finish_struct_1): ... here. Use it. Tidy. Use
CLASSTYPE_HAS_PRIMARY_BASE_P and CLASSTYPE_PRIMARY_BINFO.
* search.c (dfs_init_vbase_pointers): Handle seeing TYPE_VFIELD as
the first field in the class.
* tree.c (layout_basetypes): Use CLASSTYPE_N_BASECLASSES. Handle
seeing TYPE_VFIELD as the first field in the class.
From-SVN: r31042
Mark Mitchell [Tue, 21 Dec 1999 00:19:01 +0000 (00:19 +0000)]
cp-tree.h (TYPE_VIRTUAL_P): Rename to ...
* cp-tree.h (TYPE_VIRTUAL_P): Rename to ...
(TYPE_POLYMORPHIC_P): ... this.
(TYPE_USES_COMPLEX_INHERITANCE): Rename to ...
(TYPE_BASE_CONVS_MAY_REQUIRE_CODE_P): ... this.
(TREE_CALLS_NEW): Remove.
(TREE_MANGLED): Likewise.
* call.c (build_vfield_ref): Use TYPE_BASE_CONVS_MAY_REQUIRE_CODE_P,
and TYPE_POLYMORPHIC_P.
* class.c (check_bases): Likewise.
(finish_base_struct): Likewise.
(finish_struct_bits): Likewise.
(check_for_override): Likewise.
(finish_struct_1): Likewise.
(get_vfield_name): Likewise.
* decl.c (xref_basetypes): Likewise.
* decl2.c (import_export_class): Likewise.
(import_export_decl): Likewise.
* error.c (dump_function_decl): Likewise.
* pt.c (instantiate_class_template): Likewise.
* repo.c (repo_inline_used): Likewise.
* rtti.c (build_headof): Likewise.
(get_tinfo_fn_dynamic): Likewise.
(build_x_typeid): Likewise.
(get_tinfo_var): Likewise.
(build_dynamic_cast_1): Likewise.
(synthesize_tinfo_fn): Likewise.
* search.c (lookup_field_1): Likewise.
(dfs_debug_mark): Likewise.
(maybe_suppress_debug_info): Likewise.
* typeck.c (build_component_ref): Likewise.
(build_component_addr): Likewise.
* typeck2.c (process_init_constructor): Likewise.
From-SVN: r31041
Tom Tromey [Mon, 20 Dec 1999 23:05:21 +0000 (23:05 +0000)]
Modifier.java (STRICT): New constant.
* java/lang/reflect/Modifier.java (STRICT): New constant.
(isStrict): New method.
(toString): Added `strict'.
From-SVN: r31040
Richard Kenner [Mon, 20 Dec 1999 22:55:38 +0000 (17:55 -0500)]
Fix typo in turned-off code
From-SVN: r31039
Richard Kenner [Mon, 20 Dec 1999 21:23:30 +0000 (21:23 +0000)]
* tree.c (real_value_from_int_cst): Clear REAL_VALUE_TYPE object first.
From-SVN: r31038
Richard Kenner [Mon, 20 Dec 1999 20:29:36 +0000 (20:29 +0000)]
expr.c (store_constructor): New argument SIZE; pass to clear_storage.
* expr.c (store_constructor): New argument SIZE; pass to clear_storage.
(store_constructor_field, expand_expr): Pass new arg.
From-SVN: r31037
Mark Mitchell [Mon, 20 Dec 1999 19:47:58 +0000 (19:47 +0000)]
Makefile.in (explow.o): Depend on function.h.
* Makefile.in (explow.o): Depend on function.h.
* stor-layout.c (set_sizetype): Fix typo.
From-SVN: r31036
Nathan Sidwell [Mon, 20 Dec 1999 15:54:19 +0000 (15:54 +0000)]
* g++.old-deja/g++.other/cast3.C: New test.
From-SVN: r31035
Nathan Sidwell [Mon, 20 Dec 1999 15:53:43 +0000 (15:53 +0000)]
typeck.c (strip_all_pointer_quals): New static function.
* typeck.c (strip_all_pointer_quals): New static function.
(build_static_cast): Use it. Don't use at_least_as_qualified_p.
From-SVN: r31034
Bernd Schmidt [Mon, 20 Dec 1999 13:18:17 +0000 (13:18 +0000)]
current_function -> cfun
From-SVN: r31033
Bernd Schmidt [Mon, 20 Dec 1999 12:13:01 +0000 (12:13 +0000)]
Change some regsets to regset_heads
From-SVN: r31032
Jeff Law [Mon, 20 Dec 1999 08:45:06 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r31031
Anthony Green [Mon, 20 Dec 1999 05:55:34 +0000 (05:55 +0000)]
Alpha Linux changes.
From-SVN: r31030
Michael Hayes [Mon, 20 Dec 1999 04:40:37 +0000 (04:40 +0000)]
* config/c4x/rtems.h: New file.
From-SVN: r31029
Anthony Green [Mon, 20 Dec 1999 02:34:52 +0000 (02:34 +0000)]
gcconfig.h: Use libgcj hack for Alpha Linux.
* gcconfig.h: Use libgcj hack for Alpha Linux.
Undefine MPROTEXT_VDB (from Jeff Sturm).
* os_dep.c: Remove Alpha Linux hacks.
* misc.c: Ditto.
From-SVN: r31028
Anthony Green [Mon, 20 Dec 1999 02:18:11 +0000 (02:18 +0000)]
libgcjdata.c: New file.
1999-12-19 Anthony Green <green@cygnus.com>
* libgcjdata.c: New file.
* libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
* configure: Rebuilt.
* configure.in (LIBDATASTARTSPEC): Force data with a known name
into the program.
* Makefile.in: Rebuilt.
* Makefile.am: Build libgcjdata.a.
* libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
* configure: Rebuilt.
* configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
into every program.
From-SVN: r31027
Bernd Schmidt [Sun, 19 Dec 1999 17:39:15 +0000 (17:39 +0000)]
Better spill failure messages.
From-SVN: r31026
Richard Kenner [Sun, 19 Dec 1999 12:45:21 +0000 (12:45 +0000)]
rs6000.h (SUBTARGET_DEFAULT): New macro.
* rs6000.h (SUBTARGET_DEFAULT): New macro.
(TARGET_SWITCHES): Allow subtargets to default switches.
* rs6000/vxppc.h (SUBTARGET_DEFAULT): New macro.
From-SVN: r31025
Jeff Law [Sun, 19 Dec 1999 08:45:07 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r31024
Mark Mitchell [Sun, 19 Dec 1999 05:36:13 +0000 (05:36 +0000)]
crtstuff.c (__do_global_ctors_aux): Do not call __cxa_finalize in a main program.
* crtstuff.c (__do_global_ctors_aux): Do not call __cxa_finalize
in a main program.
From-SVN: r31023
Richard Henderson [Sun, 19 Dec 1999 04:43:20 +0000 (20:43 -0800)]
cccp.c (main): Define __STDC_VERSION__ as necessary.
* cccp.c (main): Define __STDC_VERSION__ as necessary.
* cppinit.c (cpp_handle_option): Likewise.
* ginclude/stdarg.h (va_copy): Use __STDC_VERSION__ to
determine when to define.
From-SVN: r31022
Richard Henderson [Sun, 19 Dec 1999 04:35:31 +0000 (20:35 -0800)]
alpha.c (alpha_emit_conditional_move): If TARGET_FIX, handle cmove with mismatched test and data modes.
* alpha.c (alpha_emit_conditional_move): If TARGET_FIX, handle
cmove with mismatched test and data modes.
From-SVN: r31021
Richard Henderson [Sun, 19 Dec 1999 04:31:06 +0000 (20:31 -0800)]
c-typeck.c (c_expand_start_case): Don't warn for long switch in system headers.
* c-typeck.c (c_expand_start_case): Don't warn for long switch
in system headers.
From-SVN: r31020
Richard Kenner [Sun, 19 Dec 1999 02:01:51 +0000 (21:01 -0500)]
Fix typo in last change
From-SVN: r31019
Richard Kenner [Sun, 19 Dec 1999 01:19:33 +0000 (20:19 -0500)]
Revert bogus patch
From-SVN: r31018
Richard Kenner [Sat, 18 Dec 1999 21:33:23 +0000 (21:33 +0000)]
alias.c: Minor reformatting.
* alias.c: Minor reformatting.
* flow.c: Likewise.
* regs.h: Likewise.
* stor-layout.c: Likewise.
* fold-const.c: Likewise.
(OVERFLOW_SUM_SIGN): Renamed from overflow_sum_sign.
(struct cb_args, const_binop_1, const_binop): Pass type of arg,
not arg itself.
(size_int_wide): Cache nodes even if garbage collecting.
(twoval_comparison_p): Reenable SAVE_EXPR case if operand
of SAVE_EXPR has no side effects.
* cse.c: Move a comment.
* tree.c: Minor reformatting.
(int_size_in_bytes): Return -1 if constant overflows.
* reload.c (combine_reloads): Do nothing if no output reload
From-SVN: r31017
J"orn Rennecke [Sat, 18 Dec 1999 19:59:24 +0000 (19:59 +0000)]
* unroll.c (copy_loop_body): Don't treat a REG like a PLUS.
From-SVN: r31016
Franz Sirl [Sat, 18 Dec 1999 19:56:21 +0000 (19:56 +0000)]
* MAINTAINERS: Add myself to the write-after-approval list
From-SVN: r31015
Zack Weinberg [Sat, 18 Dec 1999 18:44:24 +0000 (18:44 +0000)]
objc-parse.c: Regenerate.
1999-12-18 10:42 -0800 Zack Weinberg <zack@wolery.cumb.org>
* objc/objc-parse.c: Regenerate. This file must be rebuilt
after any change to c-parse.in, even if objc-parse.y didn't
change. Oops.
From-SVN: r31014
David S. Miller [Sat, 18 Dec 1999 18:30:41 +0000 (10:30 -0800)]
toplev.c (rest_of_compilation): Restore BLOCK tree reconstruction and branch shortening changes lost in...
* toplev.c (rest_of_compilation): Restore BLOCK tree
reconstruction and branch shortening changes lost in
December 18th change.
From-SVN: r31013
Gerald Pfeifer [Sat, 18 Dec 1999 14:34:56 +0000 (15:34 +0100)]
newcvsroot: Add check on the number of command-line arguments.
* newcvsroot: Add check on the number of command-line arguments.
Add usage.
From-SVN: r31012
Scott Bambrough [Sat, 18 Dec 1999 13:34:21 +0000 (13:34 +0000)]
linux-elf.h: Change all instances of ARM_FLAG_SHORT_BYTES to ARM_FLAG_MMU_TRAPS.
* config/arm/linux-elf.h: Change all instances of
ARM_FLAG_SHORT_BYTES to ARM_FLAG_MMU_TRAPS.
* config/arm/uclinux-elf.h: Likewise.
From-SVN: r31011
Jeff Law [Sat, 18 Dec 1999 08:45:06 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r31009
Gabriel Dos Reis [Sat, 18 Dec 1999 01:45:40 +0000 (01:45 +0000)]
toplev.c (notice, [...]): Move to diagnostic.c
1999-12-18 Gabriel Dos Reis <gdr@codesourcery.com>
* toplev.c (notice, vmessage, v_message_with_file_and_line,
v_message_with_decl, file_and_line_for_asm,
v_error_with_file_and_line, v_error_with_decl, v_error_for_asm,
verror, vfatal, v_warning_with_file_and_line, v_warning_with_decl,
v_warning_for_asm, vwarning, vpedwarn, v_pedwarn_with_decl,
v_pedwarn_with_file_and_line, vsorry, vnotice, count_error,
pfatal_with_name, fatal_io_error, need_error_newline,
last_error_function, last_error_tick, announce_function,
default_print_error_function, print_error_function,
report_error_function, fnotice, error_with_file_and_line,
error_with_decl, error_for_asm, error, set_fatal_function, fatal,
_fatal_insn, _fatal_insn_not_found, warning_with_file_and_line,
warning_with_decl, warning_for_asm, warning, pedwarn,
pedwarn_with_decl, pedwarn_with_file_and_line, sorry): Move to
diagnostic.c
(compile_file): Use fnotice instead of notice. Adjust call.
* diagnostic.c: New file.
* Makefile.in (OBJS): Include diagnostic.o
(diagnostic.o): Define dependence.
From-SVN: r31003
Tom Tromey [Sat, 18 Dec 1999 00:44:00 +0000 (00:44 +0000)]
re GNATS libgcj/111 (bug in reflection code)
* java/lang/reflect/Method.java (toString): Call getType if
required. Partial fix for PR libgcj/111. From Per Bothner.
From-SVN: r31002
Michael Hayes [Fri, 17 Dec 1999 23:17:43 +0000 (23:17 +0000)]
c4x.h (ASM_OUTPUT_XXX): Wrap in do-while(0).
* config/c4x/c4x.h (ASM_OUTPUT_XXX): Wrap in do-while(0).
Tweak formatting.
From-SVN: r31001
Michael Hayes [Fri, 17 Dec 1999 22:43:43 +0000 (22:43 +0000)]
* config/c4x/c4x.md (rpts_top, rptb_top): Add clobbers for rs and re.
From-SVN: r31000
Zack Weinberg [Fri, 17 Dec 1999 21:49:30 +0000 (21:49 +0000)]
fixtests.c (is_cxx_header): New fn, split out of double_slash_test.
1999-12-17 13:21 -0800 Zack Weinberg <zack@rabi.columbia.edu>
* fixtests.c (is_cxx_header): New fn, split out of
double_slash_test.
(else_endif_label): Allow "#endif // comment" in C++ headers,
as determined by is_cxx_header.
* fixfixes.c (else_endif_label_fix): Update comment.
* fixincl.c: Don't output VERB_PROGRESS lines if stdout is not
a tty.
* genfixes: Correct double thinko in commandline parsing.
* hackshell.tpl: Generate correct sh syntax for bypass
entries.
* inclhack.def (all): Whenever an inserted preprocessor
conditional is split over multiple lines, use double
backslashes in this file so the fixed header will be readable.
(AAB_fd_zero_glibc_1_0): Rename to AAB_fd_zero_asm_posix_types_h
and add bypass entry for correct version of this header.
(AAB_fd_zero_glibc_1_x): Rename to AAB_fd_zero_gnu_types_h.
(AAB_fd_zero_glibc_2_0): Rename to AAB_fd_zero_selectbits_h.
(hpux8_bogus_inlines): New fix, split from...
(ultrix_atof_param) ... here.
(math_expression): Add bypass entry keyed to glibc comment
indicating the problem has been dealt with; disable
unnecessary sed operations; update commentary.
(math_gcc_ifndefs): Rename to math_huge_val_from_dbl_max,
add select and bypass entries, simplify shell operation.
(math_huge_val_ifndef): Split from math_gcc_ifndefs.
(ip_missing_semi, rs6000_param, tinfo_cplusplus,
ultrix_atof_param): Add select entry.
(stdio_va_list, sunos_mather_decl): Add bypass entry.
(systypes_for_aix, sysv86_string, tinfo_cplusplus): Put the
comments with the fixes they describe.
* fixincl.x, fixincl.sh, inclhack.sh: Regen.
From-SVN: r30999
Zack Weinberg [Fri, 17 Dec 1999 21:23:38 +0000 (21:23 +0000)]
c-parse.in (string action): Do not warn about ANSI string concatenation in system headers.
1999-12-17 13:21 -0800 Zack Weinberg <zack@rabi.columbia.edu>
* c-parse.in (string action): Do not warn about ANSI string
concatenation in system headers. Affects C parser only.
* c-parse.y, c-parse.c, c-parse.h: Rebuild.
From-SVN: r30998
Tom Tromey [Fri, 17 Dec 1999 20:25:59 +0000 (20:25 +0000)]
re GNATS gcj/119 (gcjh needs to output space before leading "::" with JArray's)
* gjavah.c (decode_signature_piece): Print "::" in JArray<>. This
fixes PR gcj/119.
(process_file): Use `\n\' at end of each line in string.
From-SVN: r30997
Tom Tromey [Fri, 17 Dec 1999 16:06:17 +0000 (16:06 +0000)]
* java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
From-SVN: r30996
Jakub Jelinek [Fri, 17 Dec 1999 15:49:32 +0000 (16:49 +0100)]
sparc.h (TARGET_ARCH32): Exchange ifdefs so that if compiling libgcc2 the macro depends always on arch...
* config/sparc/sparc.h (TARGET_ARCH32): Exchange ifdefs so that if
compiling libgcc2 the macro depends always on arch cpp defines.
From-SVN: r30995
Richard Earnshaw [Fri, 17 Dec 1999 15:37:35 +0000 (15:37 +0000)]
loop.c (insert_loop_mem): Don't record MEMs from inside EXPR_LISTs.
* loop.c (insert_loop_mem): Don't record MEMs from inside
EXPR_LISTs.
From-SVN: r30994
Jan Hubicka [Fri, 17 Dec 1999 13:19:41 +0000 (13:19 +0000)]
* regclass.c (regclass): Do not use flowgraph when not optimizing.
From-SVN: r30993
Jan Hubicka [Fri, 17 Dec 1999 11:10:58 +0000 (11:10 +0000)]
gcse.c (try_replace_reg): Do replacements in REG_EQUAL/REG_EQUIV notes too...
* gcse.c (try_replace_reg): Do replacements in REG_EQUAL/REG_EQUIV
notes too, create one when replacement failed, attempt to simplify
resulting notes.
(cprop_insn): Propagate even to registers mentioned only in REG_EQUAL
or REG_EQUIV notes.
From-SVN: r30992
Jeff Law [Fri, 17 Dec 1999 08:45:07 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r30991
Mark Mitchell [Fri, 17 Dec 1999 07:40:08 +0000 (07:40 +0000)]
cp-tree.h (cp_tree_index): Add CPTI_DSO_HANDLE.
* cp-tree.h (cp_tree_index): Add CPTI_DSO_HANDLE.
(dso_handle_node): New macro.
(flag_use_cxa_atexit): New variable.
(declare_global_var): New function.
(start_anon_func): Remove declaration.
(end_anon_func): Likewise.
* decl.c (get_atexit_node): New function, split out from
destroy_local_static. Handle flag_use_cxa_atexit.
(get_dso_handle_node): Likewise.
(start_cleanup_fn): Renamed from start_anon_func. Moved here from
except.c. Handle flag_use_cxa_atexit.
(end_cleanup_fn): Renamed from end_anon_func. Moved here from
except.c.
(declare_global_var): New variable.
(destroy_local_static): Handle flag_use_cxa_atexit.
* decl2.c (flag_use_cxa_atexit): New variable.
(lang_f_options): Likewise.
* except.c (start_anon_func): Remove.
(end_anon_func): Liekwise.
* lang-options.h: Add -fuse-cxa-atexit and -fno-use-cxa-atexit.
* rtti.c (get_tinfo_var): Use declare_global_var.
From-SVN: r30990
Mark Mitchell [Fri, 17 Dec 1999 07:39:13 +0000 (07:39 +0000)]
crtstuff.c (__dso_handle): Declare.
* crtstuff.c (__dso_handle): Declare.
(__cxa_finalize): Likewise.
(do_global_dtors_aux): Call __cxa_finalize if __dso_handle is
non-NULL.
* invoke.texi: Document -fuse-cxa-atexit.
* tree.h (ptr_type_node): Document.
(const_ptr_type_node): Likewise.
From-SVN: r30989
Bryce McKinlay [Fri, 17 Dec 1999 05:11:28 +0000 (05:11 +0000)]
Boolean.java (Boolean(String)): Set Value' to false on a null String constructor parameter.
1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
* java/lang/Boolean.java (Boolean(String)): Set Value' to false on a
null String constructor parameter.
* java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
for exception messages.
BooleanClass: declare.
(setOption): Use BooleanClass instead of Class.forName() for
instanceof test.
(bind): Cast 4th parameter of setsockopt to char *' for
compatibility with older Solaris headers.
* java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
sprintf calls for exception messages.
BooleanClass, IntegerClass: declare.
(setOption): Use BooleanClass and IntegerClass, not Class.forName()
for instanceof test.
From-SVN: r30988
Jan Hubicka [Fri, 17 Dec 1999 00:49:22 +0000 (00:49 +0000)]
Oops. Used wrong changelog entry.
* regmove.c (optimize_reg_copy_1): Ignore LOOP notes.
(optimize_reg_copy_2): Likewise.
(optimize_reg_copy_3): Likewise.
(fixup_match_2): Likewise.
(regmove_optimize): Likewise.
(fixup_match_1): Liekwise.
From-SVN: r30987
Jan Hubicka [Fri, 17 Dec 1999 00:47:46 +0000 (01:47 +0100)]
regmove.c (copy_src_to_dest): Remove loop_depth parameter.
* regmove.c (copy_src_to_dest): Remove loop_depth parameter.
(optimize_reg_copy_1): Remove REG_N_REFS updating code.
(optimize_reg_copy_2, copy_src_to_dest, fixup_match_2): Likewise.
(regmove_optimize, fixup_match_1): Likewise.
From-SVN: r30986
Jan Hubicka [Fri, 17 Dec 1999 00:45:03 +0000 (01:45 +0100)]
i386.md (HI to SImode promoting splitters): Rewrite.
* i386.md (HI to SImode promoting splitters): Rewrite.
(pushsf mem peep2): New.
(testhi to andhi peep2): Remove.
* i386.h (x86_promote_QImode): New.
(TARGET_PROMOTE_QImode): New.
(PREDICATE_CODES): Add promotable_binary_operator.
* i386.c (x86_promote_QImode0: New.
(promotable_binary_operator): New.
* i386-protos.h (promotable_binary_operator): New.
From-SVN: r30985
Jan Hubicka [Fri, 17 Dec 1999 00:35:39 +0000 (01:35 +0100)]
i386.md (test?i_1): Use "nonmemory_operand" predicate, simplify condition.
* i386.md (test?i_1): Use "nonmemory_operand" predicate, simplify
condition.
(one_cmpl?i*): Pass "NOT" to unary_operator_ok.
From-SVN: r30984
Mark Mitchell [Thu, 16 Dec 1999 22:18:22 +0000 (22:18 +0000)]
class.c (check_field_decls): Don't return a value.
1999-12-16 Mark Mitchell <mark@codesourcery.com>
* class.c (check_field_decls): Don't return a value.
(avoid_overlap): Moved here from tree.c.
(build_base_fields): Likewise.
(check_bases): New function, split out from finish_base_struct.
(check_bases_and_members): New function, split out from finish_struct_1.
(struct base_info): Remove cant_have_default_ctor,
cant_have_const_ctor, cant_have_asn_ref.
(finish_base_struct): Split semantic analysis into check_bases.
(finish_struct_methods): Fix bogus assertion.
(check_field_decls): Call finish_struct_anon here.
(build_vbase_pointer_fields): Use CLASSTYPE_N_BASECLASSES.
(finish_struct_1): Use check_bases_and_members. Reorganize.
* cp-tree.h (CLASSTYPE_VBASECLASSES): Improve documentation.
(build_base_fields): Don't declare.
* tree.c (avoid_overlap): Remove.
(build_base_fields): Likewise.
From-SVN: r30983
Mark Mitchell [Thu, 16 Dec 1999 17:50:29 +0000 (17:50 +0000)]
Makefile.in (INTREGRATE_H): Rename to INTEGRATE_H.
* Makefile.in (INTREGRATE_H): Rename to INTEGRATE_H.
* function.c (insert_block_after_note): Remove.
(retrofit_block): Likewise.
(identify_blocks): Fix indentation.
(reorder_blocks): Don't NULL out NOTE_SOURCE_FILE for a
NOTE_INSN_BLOCK_BEG or NOTE_INSN_BLOCK_END.
* function.h (insert_block_after_note): Remove prototype.
(retrofit_block): Likewise.
* integrate.c (expand_inline_function): Don't call
find_loop_tree_blocks. Use expand_start_bindings_and_block, not
just expand_start_bindings. Use the block_map to remap old
NOTE_BLOCKs to new ones.
(integrate_decl_tree): Keep track of remapped blocks.
* integrate.h (struct inline_remap): Add block_map.
* stmt.c (expand_fixup): Don't try to retrofit_blocks. Just set
NOTE_BLOCK on the notes.
(expand_start_bindings): Rename to ...
(expand_start_bindings_and_block): Add parameter. Set NOTE_BLOCK.
(expand_end_bindings): Set NOTE_BLOCK.
* toplev.c (rest_of_compilation): In function-at-a-time-mode,
reconstruct the BLOCK tree.
* tree.h (expand_start_bindings): Macroize. Call ...
(expand_start_bindings_and_block): New function.
* optimize.c (struct inline_data): Remove scope_stmt.
(remap_block): Don't use insert_block_after_note. Don't update
scope_stmt.
(expand_call_inline): Don't update scope_stmt.
(optimize_function): Don't initialize scope_stmt.
* semantics.c (expand_stmt): Set NOTE_BLOCK for newly emitted
NOTE_INSN_BLOCK_BEG/NOTE_INSN_BLOCK_END notes.
From-SVN: r30982
Jakub Jelinek [Thu, 16 Dec 1999 17:12:10 +0000 (18:12 +0100)]
sparc.c (print_operand): Cast fprintf arguments to match the format.
* config/sparc/sparc.c (print_operand): Cast fprintf arguments to
match the format.
From-SVN: r30981
David S. Miller [Thu, 16 Dec 1999 16:37:50 +0000 (08:37 -0800)]
sparc.c (epilogue_renumber): Add default case to switch stmt.
* config/sparc/sparc.c (epilogue_renumber): Add default case
to switch stmt.
From-SVN: r30980
David S. Miller [Thu, 16 Dec 1999 14:55:20 +0000 (06:55 -0800)]
expr.c (emit_move_insn_1): Only emit clobbers if one of the outputs is a SUBREG.
* expr.c (emit_move_insn_1): Only emit clobbers if one of
the outputs is a SUBREG.
* rtlanal.c (reg_overlap_mentioned_p): Revert December 15th
change.
From-SVN: r30979
Jan Hubicka [Thu, 16 Dec 1999 10:58:12 +0000 (11:58 +0100)]
toplev.c (rest_of_compilation): Run branch shortening after reg-stack.
* toplev.c (rest_of_compilation): Run branch shortening after
reg-stack.
From-SVN: r30978
Bernd Schmidt [Thu, 16 Dec 1999 10:45:50 +0000 (10:45 +0000)]
New testcase.
From-SVN: r30977
Jan Hubicka [Thu, 16 Dec 1999 10:35:14 +0000 (11:35 +0100)]
regclass.c (loop_depth): Remove
* regclass.c (loop_depth): Remove
(scan_one_insn): Do not handle LOOP_NOTE insns.
(regclass): Go through basic blocks and set loop_cost
From-SVN: r30976
Bernd Schmidt [Thu, 16 Dec 1999 10:20:44 +0000 (10:20 +0000)]
Fix an older test
From-SVN: r30975
Zack Weinberg [Thu, 16 Dec 1999 09:58:23 +0000 (09:58 +0000)]
* tree.h (DECL_FROM_INLINE): Check DECL_ABSTRACT_ORIGIN too.
From-SVN: r30974
Richard Henderson [Thu, 16 Dec 1999 09:55:20 +0000 (01:55 -0800)]
* loop.c (insert_loop_mem): Ignore memory clobbers.
From-SVN: r30973
Jan Hubicka [Thu, 16 Dec 1999 09:50:17 +0000 (10:50 +0100)]
i386.md (movqi): Use "nonimmediate_operand" for output operand.
* i386.md (movqi): Use "nonimmediate_operand" for output operand.
(movstrictqi, movdi, movsf, movdf, movxf): Likewise.
(adddi, addqi, addhi, subdi, subqi, subhi, ffs): Likewise.
From-SVN: r30972
Jeffrey A Law [Thu, 16 Dec 1999 09:46:28 +0000 (09:46 +0000)]
* profile.c: Remove redundant #include "output.h".
From-SVN: r30971
Richard Henderson [Thu, 16 Dec 1999 09:42:57 +0000 (01:42 -0800)]
combine.c (simplify_comparison): Reduce (OP (MINUS A B) 0) to (OP A B).
* combine.c (simplify_comparison): Reduce (OP (MINUS A B) 0)
to (OP A B).
From-SVN: r30970
Jeffrey A Law [Thu, 16 Dec 1999 09:27:51 +0000 (09:27 +0000)]
* h8300.md (HImode preinc peephole): Fix typo.
From-SVN: r30969
Jeff Law [Thu, 16 Dec 1999 08:45:07 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r30968
Michael Meissner [Thu, 16 Dec 1999 06:13:46 +0000 (06:13 +0000)]
Add new tests for long long spanning reg/stack
From-SVN: r30967
Mark Mitchell [Thu, 16 Dec 1999 03:10:12 +0000 (03:10 +0000)]
class.c (handle_using_decl): Get TYPE_FIELDS and TYPE_METHODS out of the class...
* class.c (handle_using_decl): Get TYPE_FIELDS and TYPE_METHODS
out of the class, rather than taking them as parameters.
(build_vbase_pointer_fields): Move here from tree.c.
(build_vtbl_or_vbase_field): New function.
(check_methods): Likewise.
(remove_zero_width_bitfields): Likewise.
(add_virtual_function): Use tree_cons instead of temp_tree_cons.
(delete_duplicate_fields_1): Tidy. Don't delete duplicate
USING_DECLs here.
(finish_struct_methods): Handle the case where there are no
methods here.
(get_basefndecls): Use tree_cons instead of temp_tree_cons.
(check_field_decls): Call delete_duplicate_fields here.
(finish_struct_1): Tidy. Use check_methods and
remove_zero_width_bitfields.
* cp-tree.h (build_vbase_pointer_fields): Remove.
* decl.c (grokdeclarator): Use tree_cons instead of
temp_tree_cons.
* decl2.c (qualified_lookup_using_namespace): Use tree_cons
instead of temp_tree_cons.
* lex.c (cons_up_default_function): Remove dead code.
* method.c (fixup_pending_inline): New function, split out from ...
(do_inline_function_hair): ... here.
* tree.c (build_vbase_pointer_fields): Remove.
From-SVN: r30966
Jason Merrill [Thu, 16 Dec 1999 00:09:35 +0000 (00:09 +0000)]
function.c (retrofit_block): Abort if we don't find a suitable insn.
* function.c (retrofit_block): Abort if we don't find a suitable insn.
(insert_block_after_note): Abort if we don't have a previous block.
Remove FN parameter.
* function.h: Adjust.
* tree.c (walk_tree): Walk operand subtrees in forward order.
* optimize.c (expand_call_inline): Likewise.
(optimize_function): Initialize id->scope_stmt to something useful.
(remap_block): Assume id->scope_stmt has a useful value.
From-SVN: r30965
Tom Tromey [Wed, 15 Dec 1999 22:38:56 +0000 (22:38 +0000)]
natSystem.cc (init_properties): Don't set user.name or user.home if NO_GETUID defined.
* java/lang/natSystem.cc (init_properties): Don't set user.name or
user.home if NO_GETUID defined. Only set user.dir if getcwd
exists.
* include/config.h.in: Rebuilt.
* acconfig.h (NO_GETUID): New define.
* configure.in: Rebuilt.
* configure.in: Define NO_GETUID in cross case. Check for getcwd
in native case.
From-SVN: r30964
Mark Mitchell [Wed, 15 Dec 1999 20:56:58 +0000 (20:56 +0000)]
builtins.c (expand_builtin_mathfn): Make sure not to expand the argument more than once.
* builtins.c (expand_builtin_mathfn): Make sure not to expand the
argument more than once.
From-SVN: r30963
Jason Merrill [Wed, 15 Dec 1999 19:56:41 +0000 (19:56 +0000)]
* stmt.c (expand_decl): Expand upper bound of a dynamic array.
From-SVN: r30962
Jason Merrill [Wed, 15 Dec 1999 19:33:38 +0000 (14:33 -0500)]
tweak comments
From-SVN: r30961
Jakub Jelinek [Wed, 15 Dec 1999 16:36:26 +0000 (17:36 +0100)]
* expr.c (emit_group_load): Use dst mode if src is VOIDmode.
From-SVN: r30960
Jan Hubicka [Wed, 15 Dec 1999 15:34:03 +0000 (16:34 +0100)]
function.c (PREFERRED_STACK_BOUDNARY): Provide default value.
* function.c (PREFERRED_STACK_BOUDNARY): Provide default value.
(assign_stack_local_1): Limit alignment to PREFERRED_STACK_BOUNDARY,
update stack_alignment_needed.
(prepare_function_start): Initialize stack_alignment_needed
* function.h (struct function): Add field stack_alignment_needed.
From-SVN: r30958
J"orn Rennecke [Wed, 15 Dec 1999 14:57:29 +0000 (14:57 +0000)]
caller-save.c (insert_one_insn): Returns struct insn_chain *.
* caller-save.c (insert_one_insn): Returns struct insn_chain *.
Handle live_throughout / dead_or_set instead of live_before /
live_after.
(save_call_clobbered_regs): Get register livenessinformation from
chain->live_throughout.
(add_stored_regs): New function.
(insert_restore, insert_save): Add restored / saved registers to
dead_or_set.
* global.c (reg_dies): New parameter chain.
(reg_becomes_live): Third parameter is regs_set now.
Changed all callers.
(reg_dies): New parameter chain. Changed all callers.
(build_insn_chain): Set live_throughout instead of
live_before / live_after.
* reload.h (struct insn_chain): Replace members live_before /
live_after with live_throughout / dead_or_set.
* reload1.c (new_insn_chain): Handle live_throughout / dead_or_set
instead of live_before / live_after.
(maybe_fix_stack_asms, find_reload_regs, finish_spills): Likewise.
(order_regs_for_reload, find_reg, finish_spills): Likewise.
(choose_reload_regs_init): Likewise.
* stupid.c (current_chain, find_clobbered_regs): Delete.
(stupid_life_analysis): Set chain->live_throughout chain->dead_or_set
instead of chain->live_before / chain->live_after.
(mark_hard_ref): New function.
(stupid_mark_refs): Call mark_hard_ref. Clear chain->live_throughout.
From-SVN: r30957
David S. Miller [Wed, 15 Dec 1999 14:33:50 +0000 (06:33 -0800)]
rtlanal.c (reg_overlap_mentioned_p): Handle CONCAT.
1999-12-15 David S. Miller <davem@redhat.com>
* rtlanal.c (reg_overlap_mentioned_p): Handle CONCAT.
From-SVN: r30956
Jan Hubicka [Wed, 15 Dec 1999 14:17:59 +0000 (15:17 +0100)]
flow.c (calculate_loop_depth): Make global, remove prototype, rewrite to use new loop infrastructure.
* flow.c (calculate_loop_depth): Make global, remove prototype,
rewrite to use new loop infrastructure.
(find_basic_block): Remove calculate_loop_depth call.
* toplev.c (rest_of_compilation): Call find_basic_block.
* output.h (calculate_loop_depth): Declare.
From-SVN: r30955
Jan Hubicka [Wed, 15 Dec 1999 14:09:52 +0000 (15:09 +0100)]
flow.c (dump_flow_info): Dump loop_depth.
* flow.c (dump_flow_info): Dump loop_depth.
(flow_loop_nodes_find): Increase loop_depth for basic block in the
body.
(flow_loop_find): Initialize the loop_depth for each basic block.
From-SVN: r30954
Nathan Sidwell [Wed, 15 Dec 1999 12:40:30 +0000 (12:40 +0000)]
* g++.old-deja/g++.warn/cast-align1.C: New test.
From-SVN: r30953
Nathan Sidwell [Wed, 15 Dec 1999 12:39:02 +0000 (12:39 +0000)]
typeck.c (build_c_cast): Expand warning message.
* typeck.c (build_c_cast): Expand warning message. Move pointer
alignment warning to after the cast. Don't warn about pointer
alignment when given a pointer to incomplete.
fix cut-n-paste error on 1999-12-09 Andreas Jaeger and
1999-12-09 Mark Mitchell (was 11999 & 999)
From-SVN: r30952
Richard Henderson [Wed, 15 Dec 1999 09:51:24 +0000 (01:51 -0800)]
cp-tree.h (make_aggr_type): Declare.
* cp-tree.h (make_aggr_type): Declare.
* lex.c (cp_make_lang_type): Don't SET_IS_AGGR_TYPE.
(make_aggr_type): New.
* decl.c (build_typename_type, init_decl_processing): Use it.
(build_ptrmemfunc_type, xref_tag): Likewise.
* except.c (call_eh_info): Likewise.
* init.c (init_init_processing): Likewise.
* pt.c (process_template_parm, lookup_template_class): Likewise.
* rtti.c (expand_class_desc): Likewise.
* semantics.c (begin_class_definition, finish_typeof): Likewise.
* tree.c (copy_template_template_parm): Likewise.
From-SVN: r30951
Jason Merrill [Wed, 15 Dec 1999 09:37:48 +0000 (09:37 +0000)]
tree.c (decl_function_context): Handle virtual functions.
* tree.c (decl_function_context): Handle virtual functions.
* tlink.c (scan_linker_output): Don't look in demangled name when
looking for linker output keywords.
* dwarfout.c (output_type): We can defer namespace-scope classes.
From-SVN: r30950
Jason Merrill [Wed, 15 Dec 1999 09:18:21 +0000 (09:18 +0000)]
cp-tree.def (TEMPLATE_PARM_INDEX): Calculate size using sizeof (struct tree_common).
* cp-tree.def (TEMPLATE_PARM_INDEX): Calculate size using
sizeof (struct tree_common).
From-SVN: r30949