Nathan Myers [Wed, 26 Apr 2000 02:51:12 +0000 (02:51 +0000)]
cpu: Atomicity cleanups.
2000-04-24 Nathan Myers <ncm@cantrip.org>
* config/cpu: Atomicity cleanups.
* config/cpu/alpha/bits: New directory.
* config/cpu/arm/bits: New directory.
* config/cpu/generic/bits: New directory.
* config/cpu/i386/bits: New directory.
* config/cpu/powerpc/bits: New directory.
* config/cpu/sparc/sparc32/bits: New directory.
* config/cpu/sparc/sparc32/bits: New directory.
* config/cpu/*/bits: Move atomicity.h files to here.
From-SVN: r33438
Richard Henderson [Wed, 26 Apr 2000 01:10:35 +0000 (18:10 -0700)]
* cse.c (cse_insn): Emit barrier after unconditional jump.
From-SVN: r33433
Richard Henderson [Wed, 26 Apr 2000 00:43:09 +0000 (17:43 -0700)]
calls.c (expand_call): Disable tail call generation once rtx_equal_function_value_matters is false.
* calls.c (expand_call): Disable tail call generation once
rtx_equal_function_value_matters is false.
* reg-stack.c (convert_regs_1): Treat EDGE_ABNORMAL_CALL edges
like EDGE_EH edges.
From-SVN: r33431
Jason Merrill [Wed, 26 Apr 2000 00:36:56 +0000 (00:36 +0000)]
dwarf2out.c (add_bound_info): Don't crash on an unexpanded SAVE_EXPR.
* dwarf2out.c (add_bound_info): Don't crash on an unexpanded SAVE_EXPR.
* dwarfout.c (output_decl): Ignore NAMESPACE_DECLs.
* dwarf2out.c (gen_subprogram_die): The class-scope declaration DIE
is the primary DIE for a member function.
(gen_decl_die): Call set_decl_origin_self here.
* dwarfout.c (output_decl): And here.
* integrate.c (output_inline_function): Not here.
Don't clear DECL_INLINE until after calling rest_of_compilation.
(set_decl_origin_self): No longer static.
* tree.h: Add prototype.
* toplev.c (note_deferral_of_defined_inline_function): Only write
out abstract instance for actual inlines.
* cp/decl.c (finish_function): Don't play games with DECL_INLINE.
From-SVN: r33430
Alexandre Oliva [Wed, 26 Apr 2000 00:09:52 +0000 (00:09 +0000)]
mn10300.h (REG_CLASS_FROM_LETTER): Return EXTENDED_REGS only if TARGET_AM33.
* config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Return
EXTENDED_REGS only if TARGET_AM33.
* config/mn10300/mn10300.md (movsi, addsi): Avoid exposing
SP_REGS to register allocation and reloading unless absolutely
necessary.
(movsi3): Remove special-case of adding non-constants to SP.
From-SVN: r33429
Kaveh R. Ghazi [Wed, 26 Apr 2000 00:03:37 +0000 (00:03 +0000)]
aclocal.m4 (gcc_AC_NEED_DECLARATION): This macro now requires INCLUDES to search and does not provide any of its own.
* aclocal.m4 (gcc_AC_NEED_DECLARATION): This macro now requires
INCLUDES to search and does not provide any of its own. Also it
now accepts optional ACTION-IF-NEEDED and ACTION-IF-NOT-NEEDED
parameters. Also it does not call AC_DEFINE.
(gcc_AC_NEED_DECLARATIONS): Likewise. Also this macro now calls
AC_DEFINE and provides for automatic entries for autoheader.
(gcc_AC_FUNC_PRINTF_PTR): Cleanup C code in test.
* configure.in (gcc_AC_NEED_DECLARATIONS): Save and restore CFLAGS
so we can pass -I flags and include gansidecl.h/system.h in this
test.
* acconfig.h: Delete all NEED_DECLARATION_* entries.
From-SVN: r33428
Kaveh Ghazi [Tue, 25 Apr 2000 23:54:38 +0000 (23:54 +0000)]
Oops, missed ChangeLog in last checkin...
* acconfig.h (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
ENABLE_GC_ALWAYS_COLLECT): Delete entries.
* configure.in (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
ENABLE_GC_ALWAYS_COLLECT): Use three argument form of AC_DEFINE
for these macros. Clean up spacing and linewraps.
From-SVN: r33427
Jason Merrill [Tue, 25 Apr 2000 23:31:50 +0000 (23:31 +0000)]
calls.c (expand_call): Use get_callee_fndecl.
* calls.c (expand_call): Use get_callee_fndecl.
* print-tree.c (print_node): Print the chain of an _EXPR.
From-SVN: r33426
Jason Merrill [Tue, 25 Apr 2000 23:23:41 +0000 (19:23 -0400)]
correct comment
From-SVN: r33425
Andrew MacLeod [Tue, 25 Apr 2000 23:16:20 +0000 (23:16 +0000)]
Add partial support for IA-64 unwind sections.
* config/ia64/crtbegin.asm: Add IA-64 unwind support. Correct alloc
and gp save/restore problems.
* config/ia64/crtend.asm: Add IA-64 unwind support.
* config/ia64/ia64.c (ia64_compute_frame_size): Don't include pr_size
in fr_pad_size calculation.
...
Co-Authored-By: Andrew Haley <aph@cygnus.com>
Co-Authored-By: Jim Wilson <wilson@cygnus.com>
From-SVN: r33424
Bruce Korb [Tue, 25 Apr 2000 23:03:49 +0000 (23:03 +0000)]
use install-bin and install-sh in fixinc's makefile
From-SVN: r33423
Alexandre Petit-Bianco [Tue, 25 Apr 2000 22:14:53 +0000 (22:14 +0000)]
re GNATS gcj/181 (gcj crashes on inner classes/interfaces definition/usage.)
Mon Apr 24 14:59:36 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (end_class_declaration): Reset the interface number
counter.
(This fixes the Java PR #181:
http://sourceware.cygnus.com/ml/java-prs/2000-q1/msg00207.html)
From-SVN: r33422
Nick Clifton [Tue, 25 Apr 2000 21:10:26 +0000 (21:10 +0000)]
Define FUNCTION_ATTRIBUTE_INLINABLE_P, a target macro to allow functions with
target specific attributes to be inlined.
From-SVN: r33421
Kaveh Ghazi [Tue, 25 Apr 2000 20:30:16 +0000 (20:30 +0000)]
acconfig.h (ENABLE_STD_NAMESPACE, [...]): Delete entries.
* acconfig.h (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
ENABLE_GC_ALWAYS_COLLECT): Delete entries.
* configure.in (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
ENABLE_GC_ALWAYS_COLLECT): Use three argument form of AC_DEFINE
for these macros. Clean up spacing and linewraps.
From-SVN: r33420
Zack Weinberg [Tue, 25 Apr 2000 19:32:36 +0000 (19:32 +0000)]
[multiple changes]
2000-04-25 Zack Weinberg <zack@wolery.cumb.org>
* cpplib.h (struct cpp_buffer): Add 'mapped' flag; fix
commentary.
2000-04-25 Neil Booth <NeilB@earthling.net>
Restore previous patch, plus the following fixes:
* cpphash.c (_cpp_create_definition): Test PREV_WHITESPACE in
flags, not CPP_OPEN_PAREN.
* cpplex.c (expand_token_space, init_token_list,
cpp_free_token_list): Put the dummy token at list->tokens[-1].
(_cpp_lex_line, _cpp_lex_file): token list is 0-based.
From-SVN: r33419
Jakub Jelinek [Tue, 25 Apr 2000 19:09:01 +0000 (21:09 +0200)]
* execute/va-arg-20.c: New test.
From-SVN: r33418
Alexandre Oliva [Tue, 25 Apr 2000 17:10:04 +0000 (17:10 +0000)]
* config/i386/freebsd.h (INT_ASM_OP): Define.
From-SVN: r33417
Gabriel Dos Reis [Tue, 25 Apr 2000 16:56:38 +0000 (18:56 +0200)]
ir.texi: Correct typo.
2000-04-25 Gabriel Dos Reis <gdr@codesourcery.com>
* ir.texi: Correct typo.
From-SVN: r33416
Alexandre Petit-Bianco [Tue, 25 Apr 2000 15:04:48 +0000 (15:04 +0000)]
MethodFailure4.java: New file.
2000-04-25 Alexandre Petit-Bianco <apbianco@cygnus.com>
* libjava.compile/MethodFailure4.java: New file.
* libjava.compile/MethodFailure4.out: New file.
From-SVN: r33415
Jan Hubicka [Tue, 25 Apr 2000 12:57:41 +0000 (12:57 +0000)]
* loop.c (strength_reduce): Fix typo in the last checkin.
From-SVN: r33413
Richard Kenner [Tue, 25 Apr 2000 12:15:25 +0000 (12:15 +0000)]
stor-layout.c (finalize_record_size): Simplify to use existing functions.
* stor-layout.c (finalize_record_size): Simplify to use existing
functions.
(compute_record_mode): No longer static.
* tree.h (compute_record_mode): New declaration.
From-SVN: r33412
Neil Booth [Tue, 25 Apr 2000 11:57:57 +0000 (11:57 +0000)]
* Revert previous patch until build failure cause determined.
From-SVN: r33411
Richard Kenner [Tue, 25 Apr 2000 11:21:13 +0000 (07:21 -0400)]
Fix comment
From-SVN: r33410
Richard Henderson [Tue, 25 Apr 2000 10:54:40 +0000 (03:54 -0700)]
combine.c (combine_instructions): Add missing argument to try_combine.
* combine.c (combine_instructions): Add missing argument
to try_combine.
From-SVN: r33408
Richard Henderson [Tue, 25 Apr 2000 10:13:17 +0000 (03:13 -0700)]
toplev.c (rest_of_compilation): Delay sibcall optimization until after emit_eh_context.
* toplev.c (rest_of_compilation): Delay sibcall optimization
until after emit_eh_context.
From-SVN: r33407
Jeff Law [Tue, 25 Apr 2000 07:45:07 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r33406
Loren J. Rittle [Tue, 25 Apr 2000 07:41:28 +0000 (07:41 +0000)]
mkcheck.in: Report compiler version used for test.
2000-04-24 Loren J. Rittle <ljrittle@acm.org>
* mkcheck.in: Report compiler version used for test. Find
the built _G_config.h instead of any old installed version.
From-SVN: r33405
Loren J. Rittle [Tue, 25 Apr 2000 07:32:50 +0000 (07:32 +0000)]
ctype.cc (do_toupper): Remove dependence on non-portable/non-existent lookup table.
2000-04-24 Loren J. Rittle <ljrittle@acm.org>
* config/generic/ctype.cc (do_toupper): Remove dependence on
non-portable/non-existent lookup table.
(do_tolower): Same.
From-SVN: r33404
Felix Natter [Tue, 25 Apr 2000 06:42:25 +0000 (06:42 +0000)]
howto.html: Add bits.
2000-04-24 Felix Natter <fnatter@gmx.net>
* docs/17_intro/howto.html: Add bits.
* docs/17_intro/porting-howto.html: New file.
From-SVN: r33403
Benjamin Kosnik [Tue, 25 Apr 2000 06:39:48 +0000 (06:39 +0000)]
[multiple changes]
2000-04-24 Nathan Myers <ncm@cantrip.org>
* src/string-inst.cc: More fixing.
2000-04-24 Benjamin Kosnik <bkoz@gnu.org>
* bits/stl_iterator.h: Pedantic fixing.
* bits/std_sstream.h: And here.
* bits/string.tcc: And here.
2000-04-24 Felix Natter <fnatter@gmx.net>
* docs/17_intro/howto.html: Add bits.
* docs/17_intro/porting-howto.html: New file.
2000-04-24 Branko Cibej <branko.cibej@hermes.si>
* acinclude.m4(GLIBCPP_CHECK_WCHAR_T_SUPPORT): Expand
@libinst_wstring_la@ to libinst-wstring.la when specializing for
wchar_t, to empty string otherwise.
* src/Makefile.am: (EXTRA_LTLIBRARIES): New.
(sources): Remove $(string_sources) and $(wstring_sources).
(libstdc___la_LIBADD): Add libinst-string.la and @libinst_wstring_la@.
(libstdc___la_DEPENDENCIES): New.
(libinst_string_la_SOURCES, libinst_wstring_la_SOURCES): New.
From-SVN: r33402
Martin v. Löwis [Tue, 25 Apr 2000 06:01:42 +0000 (06:01 +0000)]
New test case.
From-SVN: r33401
Alexandre Petit-Bianco [Tue, 25 Apr 2000 06:01:09 +0000 (06:01 +0000)]
parse.y (lookup_field_wrapper): Search for final local aliases.
2000-04-19 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (lookup_field_wrapper): Search for final local aliases.
(resolve_expression_name): Let lookup_field_wrapper search for
final local aliases. Force the value of `name' if one is found.
(qualify_ambiguous_name): CONVERT_EXPR is enough to now we have
an expression name. Fixed comments.
From-SVN: r33400
Martin v. Löwis [Tue, 25 Apr 2000 05:59:26 +0000 (05:59 +0000)]
* decl.c (grokdeclarator): Reject VLAs as members.
From-SVN: r33399
Nick Clifton [Tue, 25 Apr 2000 00:40:36 +0000 (00:40 +0000)]
Do not try to combine a sequence of insns when the second insn has been
replaced by a note.
From-SVN: r33398
Gabriel Dos Reis [Tue, 25 Apr 2000 00:11:34 +0000 (00:11 +0000)]
call.c (standard_conversion): Accept conversion between COMPLEX_TYPEs
2000-04-24 Gabriel Dos Reis <gdr@codesourcery.com>
* call.c (standard_conversion): Accept conversion between
COMPLEX_TYPEs
* cvt.c (ocp_convert): Handle conversion to COMPLEX_TYPE
From-SVN: r33396
Mumit Khan [Mon, 24 Apr 2000 23:57:46 +0000 (23:57 +0000)]
gcc.c (load_specs): New static function.
* gcc.c (load_specs): New static function.
(read_specs): Use it.
From-SVN: r33395
Mumit Khan [Mon, 24 Apr 2000 23:35:43 +0000 (23:35 +0000)]
gcc.c (lookup_compiler): Make multiple passes for case insensitive filesystems.
* gcc.c (lookup_compiler): Make multiple passes for case
insensitive filesystems.
From-SVN: r33393
Alexandre Petit-Bianco [Mon, 24 Apr 2000 23:27:39 +0000 (23:27 +0000)]
parse.y (source_start_java_method): Deleted unecessary code.
2000-04-24 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (source_start_java_method): Deleted unecessary code.
(patch_method_invocation): Fixed comment.
From-SVN: r33392
Kaveh R. Ghazi [Mon, 24 Apr 2000 22:29:09 +0000 (22:29 +0000)]
hashtab.c (hash_pointer, eq_pointer): Make definition static to match prototype.
* hashtab.c (hash_pointer, eq_pointer): Make definition static to
match prototype.
(htab_expand): Cast the return value of xcalloc.
From-SVN: r33391
Neil Booth [Mon, 24 Apr 2000 22:07:36 +0000 (22:07 +0000)]
cpphash.c: replace HSPACE_BEFORE with PREV_WHITESPACE.
* cpphash.c: replace HSPACE_BEFORE with PREV_WHITESPACE.
* cpphash.h (_cpp_check_directive): new.
* cpplex.c (handle_newline, cpp_free_token_list,
init_trigraph_map, trigraph_ok, trigraph_replace,
backslash_start, skip_block_comment, skip_line_comment,
skip_whitespace, parse_name, parse_number, parse_string,
copy_comment, _cpp_lex_line, spell_char, spell_string,
spell_comment, spell_name, spell_other, _cpp_lex_file,
_cpp_output_list): new.
(expand_name_space): take length argument.
(init_token_list): add comment list initialisation.
(cpp_scan_line): use auto_expand_name_space. PREV_WHITESPACE
instead of HSPACE_BEFORE.
* cpplib.c (_cpp_check_directive): new
* cpplib.h (cpp_name, PREV_WHITESPACE, PREV_COMMENT,
DIGRAPH, UNSIGNED_INT, TOK_NAME): new.
(HSPACE_BEFORE): delete.
(TTYPE_TABLE): rearrange.
(struct cpp_toklist): update.
From-SVN: r33390
Kaveh R. Ghazi [Mon, 24 Apr 2000 21:20:14 +0000 (21:20 +0000)]
aclocal.m4 (gcc_AC_HEADER_STRING, [...]): Use the three argument form of AC_DEFINE.
* aclocal.m4 (gcc_AC_HEADER_STRING, gcc_AC_FUNC_PRINTF_PTR,
gcc_AC_C_VOLATILE, gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG): Use the three
argument form of AC_DEFINE.
* configure.in (DEFAULT_LINKER, DEFAULT_ASSEMBLER,
HAVE_INTTYPES_H, PACKAGE, VERSION, ENABLE_WIN32_REGISTRY,
WIN32_REGISTRY_KEY, HAVE_GAS_SUBSECTION_ORDERING, HAVE_GAS_WEAK,
HAVE_GAS_HIDDEN, HAVE_AS_REGISTER_PSEUDO_OP, AS_SPARC64_FLAG,
HAVE_AS_OFFSETABLE_LO10, ENABLE_NEW_GXX_ABI): Likewise.
* acconfig.h: Delete stubs made redundant by 3-arg AC_DEFINE.
From-SVN: r33389
Kaveh R. Ghazi [Mon, 24 Apr 2000 20:12:12 +0000 (20:12 +0000)]
Makefile.in (GCC_FOR_TARGET, [...]): Use -isystem, not -I, for including system headers.
* Makefile.in (GCC_FOR_TARGET, GCC_CFLAGS, LIBGCC2_INCLUDES,
deduced.h): Use -isystem, not -I, for including system headers.
From-SVN: r33388
Nick Clifton [Mon, 24 Apr 2000 18:48:41 +0000 (18:48 +0000)]
Fix bug building libgcc:
Do not generate small add insn if the source register is eliminable.
From-SVN: r33387
Zack Weinberg [Mon, 24 Apr 2000 18:42:22 +0000 (18:42 +0000)]
decl2.c (finish_file): Remove double setup for accounting compile time.
* decl2.c (finish_file): Remove double setup for accounting
compile time.
From-SVN: r33386
Kaveh R. Ghazi [Mon, 24 Apr 2000 18:23:19 +0000 (18:23 +0000)]
configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Delete redundant call to AC_MSG_RESULT.
* configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Delete redundant
call to AC_MSG_RESULT.
From-SVN: r33385
Martin v. Löwis [Mon, 24 Apr 2000 18:03:42 +0000 (18:03 +0000)]
invoke.texi: Correct grammatical errors...
* invoke.texi: Correct grammatical errors, document
-fno-gnu-keywords as identical to -fno-asm for C++.
From-SVN: r33384
Kaveh R. Ghazi [Mon, 24 Apr 2000 17:45:50 +0000 (17:45 +0000)]
aclocal.m4: (GCC_HEADER_STRING...
* aclocal.m4: (GCC_HEADER_STRING, GCC_NEED_DECLARATION,
GCC_NEED_DECLARATIONS, GCC_FUNC_VFPRINTF_DOPRNT,
GCC_FUNC_PRINTF_PTR, GCC_PROG_LN_S, GCC_PROG_LN, GCC_C_VOLATILE,
AC_GCC_C_LONG_DOUBLE, GCC_FUNC_MKDIR_TAKES_ONE_ARG,
EGCS_PROG_INSTALL): Rename autoconf macros with prefix gcc_AC_.
* configure.in (AC_GCC_C_LONG_DOUBLE, GCC_PROG_LN, GCC_PROG_LN_S,
GCC_C_VOLATILE, EGCS_PROG_INSTALL, GCC_HEADER_STRING,
GCC_FUNC_VFPRINTF_DOPRNT, GCC_FUNC_PRINTF_PTR,
GCC_NEED_DECLARATIONS, GCC_FUNC_MKDIR_TAKES_ONE_ARG): Invoke with
new macros names.
From-SVN: r33383
Magnus Fromreide [Mon, 24 Apr 2000 17:31:57 +0000 (19:31 +0200)]
sstream: New file.
* sstream: New file.
* Makefile.in (HEADERS): Add it.
From-SVN: r33380
Mumit Khan [Mon, 24 Apr 2000 17:24:45 +0000 (17:24 +0000)]
c-pragma.c (push_alignment): Use BITS_PER_UNIT macro.
2000-04-24 Mumit Khan <khan@xraylith.wisc.edu>
* c-pragma.c (push_alignment): Use BITS_PER_UNIT macro.
(pop_alignment): Likewise.
(handle_pragma_token): Likewise.
From-SVN: r33379
Robert Lipe [Mon, 24 Apr 2000 16:17:04 +0000 (16:17 +0000)]
Respective ChangeLogs for common, cp/, java/
Respective ChangeLogs for common, cp/, java/
* tree.h (tree_decl): Member `mode' now ENUM_BITFIELD.
* cp-tree.h (lang_type): Member `language' now ENUM_BITFIELD.
* parse.h (_jdep): Member `kind' now ENUM_BITFIELD.
From-SVN: r33378
Jeff Sturm [Mon, 24 Apr 2000 15:07:16 +0000 (15:07 +0000)]
natFirstThread.cc (run): Initialize class before calling main.
* gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
calling main.
From-SVN: r33377
Hiroyuki Machida [Mon, 24 Apr 2000 08:46:15 +0000 (17:46 +0900)]
combine.c (try_combine): Update reg_nonzero_bits of newi2pat before newpat.
* combine.c (try_combine): Update reg_nonzero_bits of
newi2pat before newpat.
From-SVN: r33376
Jan Hubicka [Mon, 24 Apr 2000 08:23:08 +0000 (08:23 +0000)]
loop.c (strength_reduce): Simplify test to INSN_P.
* loop.c (strength_reduce): Simplify test to INSN_P.
(record_giv): Attempt to simplify the add value, use CONSTANT_P
expressions instead of CONST_INT.
(express_from_1): Likewise.
From-SVN: r33375
Mark Mitchell [Mon, 24 Apr 2000 07:48:12 +0000 (07:48 +0000)]
regs.h (reg_n_max): Don't declare.
* regs.h (reg_n_max): Don't declare.
* flow.c (reg_n_max): Don't define.
* regclass.c (renumber): Don't initialize to zero.
(regno_allocated): Likewise.
(reg_n_max): Define.
(allocate_reg_info): Don't initialize unnecessarily.
From-SVN: r33374
Jeff Law [Mon, 24 Apr 2000 07:45:07 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r33373
Mark Mitchell [Mon, 24 Apr 2000 07:29:11 +0000 (07:29 +0000)]
hashtab.h (hash_pointer): Declare.
* hashtab.h (hash_pointer): Declare.
(eq_pointer): Likewise.
* hashtab.c (hash_pointer): New function.
(eq_pointer): Likewise.
(htab_hash_pointer): New variable.
(htab_eq_pointer): Likewise.
From-SVN: r33372
Benjamin Kosnik [Mon, 24 Apr 2000 06:59:16 +0000 (06:59 +0000)]
new.cc (set_new_handler): Needs to be in std::.
2000-04-23 Benjamin Kosnik <bkoz@cygnus.com>
* new.cc (set_new_handler): Needs to be in std::.
From-SVN: r33371
Jeffrey A Law [Mon, 24 Apr 2000 06:45:30 +0000 (06:45 +0000)]
genattrtab.c (find_attr): Initialize unsigned_p, func_units_p and blockage_p in the newly allocated attribute.
* genattrtab.c (find_attr): Initialize unsigned_p, func_units_p
and blockage_p in the newly allocated attribute.
From-SVN: r33370
Mark Mitchell [Mon, 24 Apr 2000 06:41:16 +0000 (06:41 +0000)]
cp-tree.h (lang_decl): Remove pretty_function_p.
* cp-tree.h (lang_decl): Remove pretty_function_p.
(DECL_PRETTY_FUNCTION_P): Use TREE_LANG_FLAG_0, not a bit in the
language-specific node.
* decl.c (cp_make_fname_decl): Use build_decl, not
build_lang_decl, to build the variables.
(grokvardecl): Don't call build_lang_decl for local variables in
templates.
(grokdeclarator): Don't call build_lang_decl for local type
declarations in templates.
* lex.c (retrofit_lang_decl): Use ggc_alloc_obj to allocated
zero'd memory, rather than calling memset.
* pt.c: Include hashtab.h.
(local_specializations): New variable.
(retrieve_local_specialization): Use it.
(register_local_specialization): Likewise.
(tsubst_decl): Don't assume local variables have
DECL_LANG_SPECIFIC.
(instantiate_decl): Set up local_specializations.
* Makefile.in (HTAB_H): New variable.
From-SVN: r33369
Mark Mitchell [Mon, 24 Apr 2000 05:52:07 +0000 (05:52 +0000)]
* sort.c (sort_pointers): Fix endianness bugs.
From-SVN: r33368
Tom Tromey [Mon, 24 Apr 2000 04:57:20 +0000 (04:57 +0000)]
* gcconfig.h (DYNAMIC_LOADING): Define for PPC Linux.
From-SVN: r33367
Mark Mitchell [Mon, 24 Apr 2000 00:51:36 +0000 (00:51 +0000)]
* sort.h: New file.
From-SVN: r33365
Mark Mitchell [Mon, 24 Apr 2000 00:51:08 +0000 (00:51 +0000)]
sort.c: New file.
* sort.c: New file.
* Makefile.in (CFILES): Add sort.c
(REQUIRED_OFILES): Add sort.o.
(sort.o): New target.
From-SVN: r33364
Alexandre Oliva [Sun, 23 Apr 2000 23:28:39 +0000 (23:28 +0000)]
mn10300.md (addsi): `inc4' on address registers does not modify cc...
* config/mn10300/mn10300.md (addsi): `inc4' on address
registers does not modify cc, but `inc' on an extended
register does.
From-SVN: r33363
Richard Henderson [Sun, 23 Apr 2000 22:32:18 +0000 (15:32 -0700)]
typeck.c (c_expand_asm_operands): Restore the original contents of the output list.
* typeck.c (c_expand_asm_operands): Restore the original
contents of the output list.
From-SVN: r33362
Denis Chertykov [Sun, 23 Apr 2000 22:25:25 +0000 (22:25 +0000)]
reload.c (find_equiv_reg): Checks all valueno regs as a reload_reg_p regs.
* reload.c (find_equiv_reg): Checks all valueno regs
as a reload_reg_p regs.
From-SVN: r33361
Zack Weinberg [Sun, 23 Apr 2000 21:50:59 +0000 (21:50 +0000)]
cpphash.c (collect_objlike_expansion): Add sanity check.
* cpphash.c (collect_objlike_expansion): Add sanity check.
(special_symbol): Remove case T_CONST, T_XCONST, T_MCONST. If
the buffer is the empty string, return. Mark __DATE__ and
__TIME__ as XCONST nodes, not MCONST.
(_cpp_macroexpand): Avoid pushing an empty buffer.
(funlike_macroexpand): Don't pop token_buffer here.
From-SVN: r33360
Alexandre Oliva [Sun, 23 Apr 2000 21:40:51 +0000 (21:40 +0000)]
mn10300.h (REGNO_IN_RANGE_P): New macro.
* config/mn10300/mn10300.h (REGNO_IN_RANGE_P): New macro.
(REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_SP_P): New macros.
(REGNO_EXTENDED_P, REGNO_AM33_P): New macros.
(REGNO_OK_FOR_BASE_P): Define in terms of them.
(REGNO_OK_FOR_BIT_BASE_P, REGNO_OK_FOR_INDEX_P): Likewise.
(REG_OK_FOR_BASE_P): Define in terms of the REGNO macro.
(REG_OK_FOR_BIT_BASE_P, REG_OK_FOR_INDEX_P): Likewise.
From-SVN: r33359
Jeffrey A Law [Sun, 23 Apr 2000 20:42:27 +0000 (20:42 +0000)]
* gcc.c-torture/execute/
20000422-1.c: New test.
From-SVN: r33358
Jan Hubicka [Sun, 23 Apr 2000 20:25:40 +0000 (20:25 +0000)]
loop.c (simplify_giv_expr): Be more agressive on simplifying constant MULT givs.
* loop.c (simplify_giv_expr): Be more agressive on simplifying
constant MULT givs.
From-SVN: r33357
Benjamin Kosnik [Sun, 23 Apr 2000 19:42:39 +0000 (19:42 +0000)]
bits: Add.
2000-04-23 Benjamin Kosnik <bkoz@redhat.com>
* shadow/bits: Add.
* shadow/sys: Add.
From-SVN: r33356
Zack Weinberg [Sun, 23 Apr 2000 17:03:31 +0000 (17:03 +0000)]
cpphash.h (struct definition): Move file, line, col members...
* cpphash.h (struct definition): Move file, line, col members...
(struct hashnode): ... here. Also add 'disabled' flag.
(enum node_type): Add T_VOID, T_XCONST, T_FMACRO, and
T_IDENTITY. Remove T_DISABLED.
Update prototypes.
* cpphash.c (_cpp_dump_definition): Split out dump_DEFINITION.
(collect_expansion): Split into collect_objlike_expansion and
collect_funlike_expansion.
(_cpp_macroexpand): Split out scan_arguments, stringify, and
funlike_macroexpand.
(_cpp_compare_defs): Rename compare_defs, make static.
(_cpp_make_hashnode): Initialize hp->disabled.
(macro_cleanup): Adjust for new token types. Clear
m->disabled.
(_cpp_create_definition): Move code here to determine what
sort of macro it is, and code to check for redefinitions, from
do_define. Implement a few simple cases without creating a
full DEFINITION.
(_cpp_macroexpand, special_symbol, _cpp_dump_definition):
Handle the simple cases.
(push_macro_expansion): Set buf->has_escapes and hp->disabled
here.
* cppinit.c (builtin_array): Change MCONST to XCONST
everywhere.
* cpplex.c (maybe_macroexpand): Handle IDENTITY macros here;
fix check for disabled and function-like macros.
* cpplib.c (do_define): Move most logic to
_cpp_create_definition.
(do_undef): Handle new special token types.
From-SVN: r33355
Tom Tromey [Sun, 23 Apr 2000 15:20:57 +0000 (15:20 +0000)]
* boehm.c (mark_reference_fields): Use int_byte_position.
From-SVN: r33354
Jan Hubicka [Sun, 23 Apr 2000 12:28:50 +0000 (12:28 +0000)]
loop.c (maybe_eliminate_biv_1): Use GET_CODE (x) == CONST_INT instead of CONSTANT_P for mult_val...
* loop.c (maybe_eliminate_biv_1): Use GET_CODE (x) == CONST_INT instead
of CONSTANT_P for mult_val; always use validate_change to update insn.
From-SVN: r33353
Jeff Law [Sun, 23 Apr 2000 07:45:08 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r33352
Tom Tromey [Sun, 23 Apr 2000 01:26:51 +0000 (01:26 +0000)]
boehm.c (mark_reference_fields): Only call byte_position on non-static fields.
* boehm.c (mark_reference_fields): Only call byte_position on
non-static fields.
From-SVN: r33351
Zack Weinberg [Sat, 22 Apr 2000 23:02:08 +0000 (23:02 +0000)]
cpphash.c (trad_stringify, add_pat): New functions.
* cpphash.c (trad_stringify, add_pat): New functions.
(collect_expansion): Restore support for -traditional syntax.
Use trad_stringify and add_pat.
(_cpp_macroexpand): Restore support for -traditional semantics.
* cpplex.c (_cpp_scan_line): Don't change space_before if we
get a COMMENT token.
(_cpp_lex_token): Provide COMMENT tokens to caller if
traditional and parsing_define_directive.
(skip_comment): Warn about // comments if -Wtraditional.
* cpplib.c (do_define): Fix typo. Create EMPTY nodes with
proper node type.
(do_undef): Don't warn about undefining EMPTY nodes.
From-SVN: r33350
Zack Weinberg [Sat, 22 Apr 2000 22:50:50 +0000 (22:50 +0000)]
Convert C++ comment to block comment
From-SVN: r33349
Tom Tromey [Sat, 22 Apr 2000 21:44:58 +0000 (21:44 +0000)]
boehm.c (mark_reference_fields): Added `last_view_index' argument.
* boehm.c (mark_reference_fields): Added `last_view_index'
argument. Use DECL_FIELD_OFFSET to determine field's offset.
From-SVN: r33346
Jan Hubicka [Sat, 22 Apr 2000 21:07:46 +0000 (21:07 +0000)]
* loop.c (strength_reduce): Fix biv removal code.
From-SVN: r33344
Richard Henderson [Sat, 22 Apr 2000 19:16:03 +0000 (12:16 -0700)]
predict.c (estimate_probability): Examine both sides of a branch for no exits.
* predict.c (estimate_probability): Examine both sides of
a branch for no exits. Use 90% not 50% for predict taken.
Reorg for one copy of note generation code.
From-SVN: r33343
Richard Henderson [Sat, 22 Apr 2000 18:47:52 +0000 (11:47 -0700)]
* flow.c (mark_used_reg): Hack around rs6000 eliminable pic reg.
From-SVN: r33342
Richard Henderson [Sat, 22 Apr 2000 18:41:05 +0000 (11:41 -0700)]
diagnostic.c (init_output_buffer): Don't initialize format_args.
* diagnostic.c (init_output_buffer): Don't initialize format_args.
(output_clear): Likewise.
(output_printf): Use va_copy.
(vline_wrapper_message_with_location): Likewise.
(v_message_with_decl): Likewise.
(line_wrapper_printf): VA_START infor buffer.format_args directly.
* system.h (va_copy): Provide default implementation.
From-SVN: r33341
Richard Henderson [Sat, 22 Apr 2000 18:34:59 +0000 (11:34 -0700)]
predict.c (expected_value_to_br_prob): Don't bomb if op1 of the collected condition is not a constant.
* predict.c (expected_value_to_br_prob): Don't bomb if op1 of
the collected condition is not a constant.
From-SVN: r33340
Anthony Green [Sat, 22 Apr 2000 17:09:39 +0000 (17:09 +0000)]
+ 2000-04-22 Anthony Green <green@cygnus.com> + + * include/jvm.h (__builtin_expect): Define as unused for now.
+ 2000-04-22 Anthony Green <green@cygnus.com>
+
+ * include/jvm.h (__builtin_expect): Define as unused for now.
+ * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
+ (notify): Ditto.
+ (notifyAll): Ditto.
+ (wait): Ditto.
+ (_Jv_MonitorExit): Ditto.
+ * boehm.cc (_Jv_MarkObj): Ditto.
+ (_Jv_MarkObj): Ditto.
+ (_Jv_MarkArray): Ditto.
+ (_Jv_AllocBytes): Ditto.
+ * prims.cc (_Jv_AllocObject): Ditto.
+ (_Jv_NewObjectArray): Ditto.
+ (_Jv_NewPrimArray): Ditto.
+ (_Jv_Malloc): Ditto.
+ (_Jv_Realloc): Ditto.
+ (_Jv_MallocUnchecked): Ditto.
+ (_Jv_divI): Ditto.
+ (_Jv_remI): Ditto.
+ (_Jv_divJ): Ditto.
+ (_Jv_remJ): Ditto.
+
+ * include/Makefile.in: Rebuilt.
+ * include/Makefile.am (include_HEADERS): Add jvmpi.h.
+
From-SVN: r33339
Gabriel Dos Reis [Sat, 22 Apr 2000 12:01:30 +0000 (12:01 +0000)]
ir.texi: Document complex number representation.
2000-04-22 Gabriel Dos Reis <gdr@codesourcery.com>
* ir.texi: Document complex number representation.
From-SVN: r33338
Gabriel Dos Reis [Sat, 22 Apr 2000 11:49:16 +0000 (11:49 +0000)]
diagnostic.h: New file.
2000-04-22 Gabriel Dos Reis <gdr@codesourcery.com>
* diagnostic.h: New file.
* Makefile.in (diagnostic.o): Depends on diagnostic.h
* diagnostic.c: Tweak. Rationalize the output logic. Adjust
various function prototypes.
(diagnostic.h): #include.
(struct output_buffer): Move into diagnostic.h.
(get_output_prefix): Rename to output_get_prefix. Export.
(init_output_buffer): Export. Break out. Ajust intialization.
(output_space_left, output_append): Export.
(output_newline): Rename to output_add_newline. Export.
(output_clear): Nullify additional output_buffer fields.
(output_puts): Rename to output_add_string. Export.
(dump_output): Rename to output_flush_on. Export.
(build_location_prefix): Constify return-type.
(emit_output_prefix): Rename to output_emit_prefix. Export.
(set_real_maximum_length): New function.
(output_set_maximum_length): Ditto
(output_clear): Ditto.
(output_add_character): Ditto.
(output_add_integer): Ditto.
(output_add_space): Ditto.
(output_format): Ditto.
(output_printf): Adjust buffer initialization.
(vline_wrapper_message_with_location): Ditto.
(v_message_with_decl): Ditto. Adjust call to output_puts
and get_output_prefix.
(default_print_error_function): Adjust buffer intialization.
From-SVN: r33337
Richard Kenner [Sat, 22 Apr 2000 10:36:44 +0000 (10:36 +0000)]
expr.c (preexpand_calls, [...]): Don't look at TYPE_SIZE of VOID_TYPE.
* expr.c (preexpand_calls, case CALL_EXPR): Don't look at TYPE_SIZE
of VOID_TYPE.
From-SVN: r33336
Jeff Law [Sat, 22 Apr 2000 07:45:07 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r33335
Alexandre Oliva [Sat, 22 Apr 2000 00:43:22 +0000 (00:43 +0000)]
Whitespace change
From-SVN: r33332
Alexandre Petit-Bianco [Fri, 21 Apr 2000 23:03:19 +0000 (16:03 -0700)]
[multiple changes]
Thu Apr 20 17:41:28 2000 Mo DeJong <mdejong@cygnus.com>
* parse.h (INTERFACE_INNER_MODIFIERS): New macro.
* parse.y (check_class_interface_creation): Fixed comments. Select
permitted modifiers for (inner) interfaces. Changed error message
to report rejected modifiers used with local classes.
2000-04-20 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.h (INNER_ENCLOSING_SCOPE_CHECK): Immediate inner classes
of directly inherited type considered in scope.
* parse.y (do_resolve_class): Search inherited classes for inner
classes.
(This fixes the PR #194 and #197:
http://sourceware.cygnus.com/ml/java-prs/2000-q2/msg00008.html
http://sourceware.cygnus.com/ml/java-prs/2000-q2/msg00011.html)
From-SVN: r33330
Michael Sokolov [Fri, 21 Apr 2000 22:20:20 +0000 (22:20 +0000)]
Makefile.in (*-subdir): Revamp slightly to avoid losing on 4.3BSD systems.
2000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* Makefile.in (*-subdir): Revamp slightly to avoid losing on
4.3BSD systems.
From-SVN: r33329
Tom Tromey [Fri, 21 Apr 2000 21:41:32 +0000 (21:41 +0000)]
PipedInputStream.java, [...]: Yet another new version from Classpath.
* java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
Yet another new version from Classpath.
From-SVN: r33328
Alexandre Oliva [Fri, 21 Apr 2000 21:34:19 +0000 (21:34 +0000)]
mn10300.h (REGNO_REG_CLASS): Use NO_REGS instead of explicit 0.
* config/mn10300/mn10300.h (REGNO_REG_CLASS): Use NO_REGS instead
of explicit 0.
From-SVN: r33327
Alexandre Oliva [Fri, 21 Apr 2000 21:32:24 +0000 (21:32 +0000)]
mn10300.h (REGISTER_MOVE_COST): Provide more accurate data about SP moves.
* config/mn10300/mn10300.h (REGISTER_MOVE_COST): Provide more
accurate data about SP moves.
From-SVN: r33326
Alexandre Oliva [Fri, 21 Apr 2000 21:29:46 +0000 (21:29 +0000)]
mn10300.h (ADDITIONAL_REGISTER_NAMES): Added aliases to AM33 registers.
* config/mn10300/mn10300.h (ADDITIONAL_REGISTER_NAMES): Added
aliases to AM33 registers.
From-SVN: r33325
Alexandre Oliva [Fri, 21 Apr 2000 21:27:20 +0000 (21:27 +0000)]
mn10300.h (REG_CLASS_CONTENTS): Added register 16 to all EXTENDED bitmaps.
* config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Added register 16
to all EXTENDED bitmaps.
From-SVN: r33324
Alexandre Oliva [Fri, 21 Apr 2000 21:19:55 +0000 (21:19 +0000)]
mn10300-protos.h (mn10300_address_cost): Declare.
* config/mn10300/mn10300-protos.h (mn10300_address_cost): Declare.
* config/mn10300/mn10300.h (ADDRESS_COST): New macro.
* config/mn10300/mn10300.c (mn10300_address_cost): New function.
From-SVN: r33323
Jeff Law [Fri, 21 Apr 2000 21:16:54 +0000 (15:16 -0600)]
Update. Build with the same version of bison.
From-SVN: r33322
Alexandre Oliva [Fri, 21 Apr 2000 21:14:13 +0000 (21:14 +0000)]
mn10300.md (movdi, movdf): Do not use `movu' when the operand is not constant.
* config/mn10300/mn10300.md (movdi, movdf): Do not use `movu' when
the operand is not constant.
From-SVN: r33321