Commit Graph

30688 Commits

Author SHA1 Message Date
Hans-Peter Nilsson
e8638df010 Callers gcc-toplev:
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.

From-SVN: r36614
2000-09-25 11:23:45 +00:00
Hans-Peter Nilsson
93de6f51fd definitions in config/alpha/alpha.h config/arm/aout.h (oops, missed):
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.

From-SVN: r36613
2000-09-25 10:33:57 +00:00
Hans-Peter Nilsson
471b6f1be0 definitions in config/[s-w]* (rest):
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.

From-SVN: r36612
2000-09-25 10:24:23 +00:00
Hans-Peter Nilsson
76bbee8160 definitions in config/[npr]*:
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.

From-SVN: r36611
2000-09-25 10:11:22 +00:00
Hans-Peter Nilsson
78d057d889 definitions in config/m[ci]*:
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.

From-SVN: r36610
2000-09-25 10:01:10 +00:00
Hans-Peter Nilsson
6e7b07a750 definitions in config/m[368]*:
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.

From-SVN: r36609
2000-09-25 09:49:20 +00:00
Hans-Peter Nilsson
de323aa157 definitions in config/i[89a]*:
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.

From-SVN: r36608
2000-09-25 09:32:58 +00:00
Hans-Peter Nilsson
71d48a011e definitions in config/i3*:
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.

From-SVN: r36607
2000-09-25 09:16:37 +00:00
Hans-Peter Nilsson
4e8aa65c64 definitions in config/[c-h]*:
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.

From-SVN: r36606
2000-09-25 08:54:42 +00:00
Hans-Peter Nilsson
8c13c7b384 definitions in config/a*:
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.

From-SVN: r36605
2000-09-25 08:42:10 +00:00
Hans-Peter Nilsson
e662a12925 config:
Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.

From-SVN: r36604
2000-09-25 08:23:05 +00:00
Hans-Peter Nilsson
0a3e1f45d8 Changes add TABs on either or both sides, covering start of line,
up to any operand for all .*ASM.*_OP definitions.

From-SVN: r36603
2000-09-25 08:08:58 +00:00
Jeff Law
afb2ca3dd7 Daily bump.
From-SVN: r36602
2000-09-25 01:45:08 -06:00
Richard Henderson
ea9ea00856 expmed.c (store_bit_field): Adjust last change to not consider any word-sized field naturally aligned.
* expmed.c (store_bit_field): Adjust last change to not consider
        any word-sized field naturally aligned.

From-SVN: r36601
2000-09-25 00:07:33 -07:00
Richard Henderson
07035c0fc6 New test.
From-SVN: r36600
2000-09-25 00:04:55 -07:00
Richard Henderson
5a864cbf17 * gcc.c-torture/execute/20000914-1.c: Declare malloc.
From-SVN: r36599
2000-09-24 21:05:37 -07:00
Richard Henderson
9e49570050 alpha.c (alpha_emit_conditional_branch): Handle TFmode unordered compares properly.
* config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
        TFmode unordered compares properly.  Revalidate integer compare
        operands.
        (alpha_emit_setcc): New.
        (alpha_emit_conditional_move): Revalidate integer compare operands.
        * config/alpha/alpha-protos.h: Update.
        * config/alpha/alpha.md (cmpdi): Allow general operands.
        (sne): Use alpha_emit_setcc.
        (seq, slt, sle, sgt, sge, sltu, sleu, sgtu, sgeu): Likewise.
        (sunordered, sordered): New.

From-SVN: r36598
2000-09-24 21:02:20 -07:00
Richard Henderson
2ed4af6f2d ia64-protos.h: Update.
* config/ia64/ia64-protos.h: Update.
        * config/ia64/ia64.c (call_multiple_values_operation): Remove.
        (ia64_expand_call): New.
        (ia64_expand_prologue): Emit an alloc if we need extra input
        registers.
        (ia64_expand_epilogue): New arg sibcall_p; don't emit the return
        instruction if true.
        (struct reg_flags): Add is_sibcall.
        (rtx_needs_barrier): A sibcall does not use CFM et al.  Ignore USEs.
        (emit_insn_group_barriers): Set flags.is_sibcall.  Remove hacks
        for CODE_FOR_gr_spill_internal/CODE_FOR_gr_restore_internal.
        * config/ia64/ia64.h (PREDICATE_CODES): Update.
        * config/ia64/ia64.md (call): Use ia64_expand_call.
        (call_value): Likewise.
        (sibcall, sibcall_value): New.
        (call patterns): Remove extra expanders; tidy.
        (sibcall_epilogue): New.
        (set_bsp): Remove the extra USE.  Put the operand inside the UNSPEC.

From-SVN: r36597
2000-09-24 16:58:24 -07:00
Richard Henderson
fd442cef30 sibcall.c (skip_pic_restore): New.
* sibcall.c (skip_pic_restore): New.
        (identify_call_return_value): Use it.

From-SVN: r36596
2000-09-24 16:49:22 -07:00
Richard Henderson
e1389cac8d * emit-rtl.c (gen_lowpart_common): Use trunc_int_for_mode.
From-SVN: r36595
2000-09-24 16:46:46 -07:00
Mark Mitchell
c06aa51eb9 c-tree.texi: Moved here from cp/ir.texi.
* c-tree.texi: Moved here from cp/ir.texi.  Documented nested
	functions.  Generalize to handle both C and C++.
	* Makefile.in (c-tree.info): New target.
	(info): Add c-tree.info.

	* ir.texi: Move to ../c-tree.texi.

From-SVN: r36592
2000-09-24 21:47:45 +00:00
Aldy Hernandez
fba549396d add self to maintainers list
From-SVN: r36589
2000-09-24 20:52:25 +00:00
Richard Kenner
bd5dab534b expr.c (store_field): If BITSIZE is negative, use size of type.
* expr.c (store_field): If BITSIZE is negative, use size of type.
	(expand_expr, case COMPONENT_EXPR): Likewise.

From-SVN: r36588
2000-09-24 11:35:44 -04:00
Neil Booth
838f313bbd cpplex.c: Update TODO comment.
* cpplex.c: Update TODO comment.
	* cpplib.c (do_error, do_warning): Merge common code of
	do_error and do_warning	into do_diagnostic.  Use it.
	(do_diagnostic): New function.
	* cpplib.h: Fix comment typo.

From-SVN: r36587
2000-09-24 10:42:09 +00:00
Joseph Myers
c5412f0646 c-common.c (check_format_info): Warn for a wide character string used as a non-wide format argument.
* c-common.c (check_format_info): Warn for a wide character string
	used as a non-wide format argument.

testsuite:
	* gcc.dg/c90-printf-1.c: Add test for wide string format.

From-SVN: r36586
2000-09-24 10:52:53 +01:00
Joseph Myers
1c44c45dbf builtins.def (BUILT_IN_LLABS): Add.
* builtins.def (BUILT_IN_LLABS): Add.
	* builtins.c (expand_builtin): Also abort on BUILT_IN_LLABS.
	* c-common.c (c_common_nodes_builtins): Create builtin functions
	__builtin_llabs, and plain llabs unless no_nonansi_builtins
	outside of C99 mode.
	(expand_tree_builtin): Handle BUILT_IN_LLABS.

From-SVN: r36585
2000-09-24 10:50:30 +01:00
Jeff Law
b15c8032f0 Daily bump.
From-SVN: r36584
2000-09-24 01:45:11 -06:00
Neil Booth
cbcff6df5c cpphash.h (CPP_RESERVE, [...]): Delete.
* cpphash.h (CPP_RESERVE, CPP_PUTS_Q, CPP_PUTS, CPP_PUTC_Q,
	CPP_PUTC, DUMMY_TOKEN, NO_DUMMY_TOKEN): Delete.
	* cpplex.c (_cpp_expand_token_space, _cpp_init_toklist,
	_cpp_free_toklist): No need to worry about extra dummy token
	at the start of token lists any more.
	(trigraph_ok): Only warn outside comments.
	(skip_block_comment): Set and clear lexing_comment.
	(skip_line_comment): Take a cpp_reader not cpp_buffer.
	Set and clear lexing_comment.
	(parse_number): Handle leading '.' indicated by pfile->seen_dot.
	(check_long_token): Delete.
	(lex_percent, lex_dot): New subroutines of lex_token to
	handle lexing of '.' and '%' without lookback.
	(lex_token): Use lex_dot and lex_percent.
	(lex_line): Don't check for LIST_OFFSET.
	(_cpp_init_input_buffer): Update for new _cpp_init_toklist.
	* cpplib.c (_cpp_parse_assertion): Similarly.
	(cpp_push_buffer): Initialize extra_char.
	* cpplib.h (LIST_OFFSET): Delete.
	(struct cpp_buffer): New member extra_char.
	(struct lexer_state): New members lexing_comment and seen_dot.

From-SVN: r36582
2000-09-23 21:41:41 +00:00
Mark Mitchell
19e223db83 Make-lang.in (JAVA_SRCS): Include java-tree.h.
* Make-lang.in (JAVA_SRCS): Include java-tree.h.
	* Makefile.in (parse.o): Depend on ggc.h.
	(class.o): Likewise.
	(constants.o): Likewise.
	(decl.o): Likewise.
	(expr.o): Likewise.
	(jcf-parse.o): Likewise.
	(jcf-write.o): Likewise.
	(mangle.o): Likewise.
	* class.c: Include ggc.h.
	(build_static_field_ref): Register GC roots.
	(layout_class): Likewise.
	(init_class_processing): Likewise.
	* constants.c: Include ggc.h.
	(current_constant_pool_data_ref): Remove.
	(tag_nodes): Move it to ...
	(get_tag_node): ... here.  Register GC roots.
	* decl.c: Include ggc.h.  Remove many global tree definitions.
	(throw_node): Define.
	(java_global_trees): Likewise.
	(predef_filenames): Make the size a constant.
	(init_decl_processing): Adjust accordingly.
	(init_decl_processing): Call init_jcf_parse.  Register GC roots.
	* expr.c: Include ggc.h.
	(init_expr_processing): Register GC roots.
	(build_invokeinterface): Likewise.
	* java-tree.h: Replace extern tree declarations with macros.
	(java_global_trees): New variable.
	(java_tree_index): New enumeration.
	(init_jcf_parse): Declare.
	* jcf-parse.c: Include ggc.h.
	(current_class): Remove declaration.
	(main_class): Likewise.
	(all_class_list): Likewise.
	(predefined_filename_p): Adjust for constant size of
	predef_filenames.
	(init_jcf_parse): New function.
	* jcf-write.c: Include ggc.h.
	(generate_classfile): Register GC roots.
	(append_synthetic_attribute): Likewise.
	(append_innerclass_attribute_entry): Likewise.
	* lang.c: Include ggc.h.
	(lang_print_error): Register GC roots.
	* parse.h (struct parser_ctxt): Rename fields to avoid conflicts
	with macros.
	* parse.y: Include ggc.h.
	(wfl_operator): Remove.
	(goal): Register GC roots.
	(java_pop_parser_context): Adjust for new field names.
	(java_parser_context_save_global): Likewse.
	(java_parser_context_restore_global): Likewise.
	(java_parser_context_suspend): Likewise.
	(java_parser_context_resume): Likewise.
	(verify_constructor_circularity): Register GC roots.
	(lookup_cl): Likewise.
	(java_reorder_fields): Likewise.
	(build_current_this): Likewise.
	(class_in_current_package): Likewise.
	(argument_types_convertible): Likewise.
	(patch_cast): Rename wfl_op parameter to avoid macro conflicts.

From-SVN: r36581
2000-09-23 17:09:39 +00:00
Franz Sirl
a3b434a235 stdstreams.cc: Include <libio.h>, not "libio.h".
2000-09-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

        * stdstreams.cc: Include <libio.h>, not "libio.h".
        * iolibio.h: Likewise.
        (_IO_pos_BAD): Use _IO_off_t instead of _IO_fpos_t.
        * libio.h (_IO_USER_LOCK): Define.

From-SVN: r36580
2000-09-23 17:01:47 +00:00
Jason Merrill
2abdcaee8a x-aix41 (CLIB): Define here.
* config/rs6000/x-aix41 (CLIB): Define here.
        * config/rs6000/t-aix43: Not here.
        * config/rs6000/t-aix41: Or here.  Remove.
        * configure.in: Don't use it.

From-SVN: r36579
2000-09-23 11:23:13 -04:00
Jason Merrill
cc2b3c86d5 add missing error marker
From-SVN: r36578
2000-09-23 11:16:29 -04:00
Neil Booth
87cc8a1d1d 20000510-1.S: Rename assembler.S.
* gcc.dg/cpp/20000510-1.S: Rename assembler.S.  Add test
        that we continue to preprocess after an unknown directive.
	* gcc.dg/cpp/tr-str.c: Run-time test for traditional
	stringification.

From-SVN: r36577
2000-09-23 11:47:05 +00:00
Jeff Law
c7ef75255b Daily bump.
From-SVN: r36575
2000-09-23 01:45:07 -06:00
Jason Merrill
f9d99dd288 fix
From-SVN: r36574
2000-09-22 15:10:58 -04:00
Jason Merrill
f21653969f revert
From-SVN: r36573
2000-09-22 15:03:53 -04:00
Jason Merrill
981d485833 configure.in: Fix checks for assembler features when using a one-tree assembler that has not...
* configure.in: Fix checks for assembler features when using a
        one-tree assembler that has not yet been built.
        Fix --disable-threads.

From-SVN: r36572
2000-09-22 14:24:29 -04:00
Geoff Keating
afa223c6a9 In gcc/ChangeLog:
* stmt.c (expand_asm_operands): Allow # in constraints.
In gcc/testsuite/ChangeLog:
	* gcc.c-torture/compile/20000922-1.c: New file.

From-SVN: r36571
2000-09-22 18:07:49 +00:00
Jason Merrill
a3a834aa73 c-lex.c (skip_white_space): Just treat CRs as horizontal whitespace.
* c-lex.c (skip_white_space): Just treat CRs as horizontal whitespace.

        * dbxout.c (dbxout_symbol_name): Just use DECL_NAME for
        function-local names.

From-SVN: r36570
2000-09-22 13:59:46 -04:00
Jeff Law
49895d5569 Daily bump.
From-SVN: r36569
2000-09-22 01:45:12 -06:00
Brad Lucier
18424ae17a toplev.c (warn_disabled_optimization): Declare new warning flag.
* toplev.c (warn_disabled_optimization): Declare new warning flag.
        * flags.h (warn_disabled_optimization): Add it here.
        * gcse.c (gcse_main): Add warning when disabled.
        * invoke.texi: Document -Wdisabled-optimization

Co-Authored-By: Mark Mitchell <mark@codesourcery.com>

From-SVN: r36568
2000-09-22 07:22:07 +00:00
Jason Merrill
401219a6c9 * decl2.c (get_guard): Check DECL_FUNCTION_SCOPE_P.
From-SVN: r36567
2000-09-21 18:05:48 -04:00
Jason Merrill
99fada40ff * decl2.c (get_guard): Check DECL_FUNCTION_SCOPE_P.
From-SVN: r36566
2000-09-21 17:47:55 -04:00
Jason Merrill
1bfb5f8f96 dwarf2out.c (add_const_value_attribute): Multiply by length, not 4.
* dwarf2out.c (add_const_value_attribute): Multiply by length, not 4.

        * dwarf2out.c (tree_add_const_value_attribute): New fn.
        (gen_variable_die): Call it for non-definitions.

        * dwarf2out.c (die_struct): Add die_mark field.
        (mark_dies, unmark_dies): New fns.
        (clear_die_sizes): Remove.
        (print_die): Check die_symbol rather than die_offset.
        (build_abbrev_table, output_pubnames, output_aranges): Check
        die_mark rather than die_offset.
        (output_comp_unit): Move calc_die_sizes after build_abbrev_table.
        Call mark_dies.

From-SVN: r36565
2000-09-21 17:42:02 -04:00
Neil Booth
2047e26f26 cppfiles.c (lookup_include_file): Rename to open_file.
* cppfiles.c (lookup_include_file): Rename to open_file.
	Always create a splay tree value, even on syscall failures.
	Negative entries indicated by fd == -2.
	Re-open files closed in the meantime.
	(_cpp_fake_include): Create a negative splay tree entry.
	(find_include_file, cpp_read_file): Update for function name
	change.
	* gcc.gd/cpp/mi4.c: Testcase.

From-SVN: r36564
2000-09-21 18:01:22 +00:00
Nick Clifton
2359a5e1f9 Enable multilibs for ARM and Thumb modes
From-SVN: r36563
2000-09-21 17:36:19 +00:00
Nick Clifton
f27cd94df5 Fix compile time warnings
From-SVN: r36562
2000-09-21 17:33:51 +00:00
Nick Clifton
1d5d6f3f8c Add extra tests (for modulos of very large dividends by very small divisors)
From-SVN: r36561
2000-09-21 17:30:11 +00:00
Jeff Law
968d9d61d4 Daily bump.
From-SVN: r36560
2000-09-21 01:45:08 -06:00
Andreas Jaeger
c2f7d4034d Fix typo in applying last patch to configure.in and regenerate configure.
From-SVN: r36559
2000-09-21 07:37:11 +02:00