Neil Booth
9c603af2ac
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
2000-04-24 22:07:36 +00:00
Kaveh R. Ghazi
91029a2953
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
2000-04-24 21:20:14 +00:00
Kaveh R. Ghazi
3c9a2b5561
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
2000-04-24 20:12:12 +00:00
Nick Clifton
aaceac0baa
Fix bug building libgcc:
...
Do not generate small add insn if the source register is eliminable.
From-SVN: r33387
2000-04-24 18:48:41 +00:00
Zack Weinberg
ac09f4822b
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
2000-04-24 18:42:22 +00:00
Kaveh R. Ghazi
f6cbf6727d
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
2000-04-24 18:23:19 +00:00
Martin v. Löwis
9762e8a456
invoke.texi: Correct grammatical errors...
...
* invoke.texi: Correct grammatical errors, document
-fno-gnu-keywords as identical to -fno-asm for C++.
From-SVN: r33384
2000-04-24 18:03:42 +00:00
Kaveh R. Ghazi
99e757d510
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
2000-04-24 17:45:50 +00:00
Magnus Fromreide
be961d574a
sstream: New file.
...
* sstream: New file.
* Makefile.in (HEADERS): Add it.
From-SVN: r33380
2000-04-24 17:31:57 +00:00
Mumit Khan
a2702aa12b
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
2000-04-24 17:24:45 +00:00
Robert Lipe
e60a8c2604
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
2000-04-24 16:17:04 +00:00
Jeff Sturm
448415dcae
natFirstThread.cc (run): Initialize class before calling main.
...
* gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
calling main.
From-SVN: r33377
2000-04-24 15:07:16 +00:00
Hiroyuki Machida
5fb7c24702
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
2000-04-24 02:46:15 -06:00
Jan Hubicka
ce7de04c2b
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
2000-04-24 08:23:08 +00:00
Mark Mitchell
da668e9c92
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
2000-04-24 07:48:12 +00:00
Jeff Law
214701e2c3
Daily bump.
...
From-SVN: r33373
2000-04-24 01:45:07 -06:00
Mark Mitchell
18a94a2f75
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
2000-04-24 07:29:11 +00:00
Benjamin Kosnik
7d78e330d1
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
2000-04-24 06:59:16 +00:00
Jeffrey A Law
605fba2bca
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
2000-04-24 00:45:30 -06:00
Mark Mitchell
6dfbb90977
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
2000-04-24 06:41:16 +00:00
Mark Mitchell
b51024fc89
* sort.c (sort_pointers): Fix endianness bugs.
...
From-SVN: r33368
2000-04-24 05:52:07 +00:00
Tom Tromey
a3fbf5c383
* gcconfig.h (DYNAMIC_LOADING): Define for PPC Linux.
...
From-SVN: r33367
2000-04-24 04:57:20 +00:00
Mark Mitchell
9380267cde
* sort.h: New file.
...
From-SVN: r33365
2000-04-24 00:51:36 +00:00
Mark Mitchell
eeb0656f22
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
2000-04-24 00:51:08 +00:00
Alexandre Oliva
8b2cfbe6ea
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
2000-04-23 23:28:39 +00:00
Richard Henderson
713f0303cc
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
2000-04-23 15:32:18 -07:00
Denis Chertykov
16ab191f30
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
2000-04-23 16:25:25 -06:00
Zack Weinberg
a6a69fc2ad
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
2000-04-23 21:50:59 +00:00
Alexandre Oliva
a204fec0cb
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
2000-04-23 21:40:51 +00:00
Jeffrey A Law
96933f43e5
* gcc.c-torture/execute/20000422-1.c: New test.
...
From-SVN: r33358
2000-04-23 14:42:27 -06:00
Jan Hubicka
29aef5ca81
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
2000-04-23 20:25:40 +00:00
Benjamin Kosnik
ff2b942e78
bits: Add.
...
2000-04-23 Benjamin Kosnik <bkoz@redhat.com>
* shadow/bits: Add.
* shadow/sys: Add.
From-SVN: r33356
2000-04-23 19:42:39 +00:00
Zack Weinberg
d9e0bd53b2
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
2000-04-23 17:03:31 +00:00
Tom Tromey
3c8c10b8c6
* boehm.c (mark_reference_fields): Use int_byte_position.
...
From-SVN: r33354
2000-04-23 15:20:57 +00:00
Jan Hubicka
3508c681cd
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
2000-04-23 12:28:50 +00:00
Jeff Law
e0add67ff0
Daily bump.
...
From-SVN: r33352
2000-04-23 01:45:08 -06:00
Tom Tromey
8a008c41a1
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
2000-04-23 01:26:51 +00:00
Zack Weinberg
0f89df67fc
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
2000-04-22 23:02:08 +00:00
Zack Weinberg
4ff812cd3f
Convert C++ comment to block comment
...
From-SVN: r33349
2000-04-22 22:50:50 +00:00
Tom Tromey
d5f76abaa1
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
2000-04-22 21:44:58 +00:00
Jan Hubicka
7841261c99
* loop.c (strength_reduce): Fix biv removal code.
...
From-SVN: r33344
2000-04-22 21:07:46 +00:00
Richard Henderson
9bcbfc524a
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
2000-04-22 12:16:03 -07:00
Richard Henderson
b2433fcde0
* flow.c (mark_used_reg): Hack around rs6000 eliminable pic reg.
...
From-SVN: r33342
2000-04-22 11:47:52 -07:00
Richard Henderson
6f81b1ade6
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
2000-04-22 11:41:05 -07:00
Richard Henderson
d9490f2f4e
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
2000-04-22 11:34:59 -07:00
Anthony Green
1143c0a03f
+ 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
2000-04-22 17:09:39 +00:00
Gabriel Dos Reis
3fb304e7e4
ir.texi: Document complex number representation.
...
2000-04-22 Gabriel Dos Reis <gdr@codesourcery.com>
* ir.texi: Document complex number representation.
From-SVN: r33338
2000-04-22 12:01:30 +00:00
Gabriel Dos Reis
345ed1fe96
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
2000-04-22 11:49:16 +00:00
Richard Kenner
219fe89837
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
2000-04-22 06:36:44 -04:00
Jeff Law
2b38a1b12d
Daily bump.
...
From-SVN: r33335
2000-04-22 01:45:07 -06:00