]> gcc.gnu.org Git - gcc.git/log
gcc.git
26 years agoconfigure.in (package_makefile_rules_frag): New variable which is used in the call...
Manfred Hollstein [Tue, 27 Jan 1998 22:25:59 +0000 (22:25 +0000)]
configure.in (package_makefile_rules_frag): New variable which is used in the call to config.shared...

        * configure.in (package_makefile_rules_frag): New variable
        which is used in the call to config.shared; redirect file descriptor 2
        to ${package_makefile_rules_frag}.

From-SVN: r17524

26 years agoconfig.shared: Emit everything which needs to be re-definable via file descriptor...
Manfred Hollstein [Tue, 27 Jan 1998 22:25:13 +0000 (22:25 +0000)]
config.shared: Emit everything which needs to be re-definable via file descriptor 1...

        * config.shared: Emit everything which needs to be re-definable
        via file descriptor 1; the generic stuff is emitted using redirection
        onto fd 2.
        * configure.in (package_makefile_rules_frag): New variable
        which is used in the call to config.shared; redirect file descriptor 2
        to ${package_makefile_rules_frag}.

From-SVN: r17523

26 years agoconfigure (package_makefile_rules_frag): New variable, which names a file with generi...
Manfred Hollstein [Tue, 27 Jan 1998 22:23:50 +0000 (22:23 +0000)]
configure (package_makefile_rules_frag): New variable, which names a file with generic rules, ...

        * configure (package_makefile_rules_frag): New variable, which names
        a file with generic rules, ...
        Change comment to mention we now have FIVE parts.
        * configure: Undo last change.

From-SVN: r17522

26 years agoFix typo.
Jeff Law [Tue, 27 Jan 1998 22:18:11 +0000 (15:18 -0700)]
Fix typo.

From-SVN: r17521

26 years agoconfig.guess: More accurate determination of HP processor types.
Lassi A. Tuura [Tue, 27 Jan 1998 22:15:40 +0000 (00:15 +0200)]
config.guess: More accurate determination of HP processor types.

        * config.guess: More accurate determination of HP processor types.
        * config.sub: More accurate determination of HP processor types.

From-SVN: r17520

26 years ago* config.sub: More accurate determine of HP processor types.
Lassi A. Tuura [Tue, 27 Jan 1998 22:15:04 +0000 (00:15 +0200)]
* config.sub: More accurate determine of HP processor types.

From-SVN: r17519

26 years agoc-lex.c: Include <stdlib.h> and <string.h>/<strings.h>.
Kaveh R. Ghazi [Tue, 27 Jan 1998 22:11:55 +0000 (22:11 +0000)]
c-lex.c: Include <stdlib.h> and <string.h>/<strings.h>.

d
* c-lex.c: Include <stdlib.h> and <string.h>/<strings.h>.  Add
prototype for `handle_sysv_pragma', and make it static.  Add
parentheses around assignment used as truth value.
* combine.c (combine_instructions): Protect variable `prev' with
macro HAVE_cc0.
(can_combine_p): Protect variable `link' with AUTO_INC_DEC.
(extract_left_shift): Add parentheses around operand of &.
(merge_outer_ops): Avoid an empty body in an else-statement.
(gen_rtx_combine): Remove unused variable `i'.
* sparc/gmon-sol2.c: Include <fcntl.h>.  Make return type of
        function monstartup `void'.  Likewise for internal_mcount.  Add
        `static void' prototype for moncontrol.  Reconcile sprintf format
        vs. args.
* sparc/sparc.c: Include <stdlib.h> and <string.h>/<strings.h>.
Make return type of function_arg_slotno explicitly `int'.
(reg_unused_after): Add parentheses around assignment used as
truth value.
(save_regs): Add explicit braces to avoid ambiguous `else'.
(function_arg_slotno): Add parentheses around && within ||.
(function_arg_pass_by_reference): Likewise.
(sparc_flat_output_function_prologue): Reconcile fprintf format
vs. args.
* svr4.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
assignment used as truth value.
* cplus-dem.c: Include <stdlib.h>.
(demangle_signature): Avoid an empty body in an else-statement.
(do_type): Remove unused variable `lvl'.
* cppexp.c: Don't have <stdlib.h> depend on MULTIBYTE_CHARS.
Include <string.h>/<strings.h>.
(cpp_lex): Remove unused variable `namelen'.
(cpp_lex): Explicitly declare `num_chars' as an int.
* cpplib.c: Avoid duplicate inclusion of <stdlib.h>, include
<unistd.h> instead.  Explicitly declare is_system_include
returning int.
(make_assertion): Remove unused variable `kt'.
(cpp_expand_to_buffer): Hide variable `obuf'.
(output_line_command): Remove unused variables, `line_end',
`line_cmd_buf' and `len'.
(macarg): Remove unused variable `arg_start'.
(special_symbol): Remove unused variable `i'.  Add parentheses
around assignment used as truth value.
(do_include):  Remove unused variables `pcfname' and `retried',
hide `pcf' and `pcfbuflimit'.
(do_line): Remove unused variable `i'.
(finclude): Hide variable `missing_newline'.
(cpp_handle_options): Remove unused variable `j'.
(read_token_list): Remove unused variable `eofp'.
(cpp_error_with_line): Remove unused variable `i'.
(cpp_warning_with_line): Likewise.
(cpp_pedwarn_with_line): Explicitly declare `column' as int.
(cpp_error_from_errno): Remove unused variable `i'.
* cse.c (invalidate): Add parentheses around assignment used as
truth value.
(find_best_addr): Move declaration of variable `our_cost' inside
the conditional macro where its used.
(fold_rtx): Avoid an empty body in an if-statement.
(cse_insn): Wrap variables  `this_insn_cc0_mode' and
`this_insn_cc0' in macro HAVE_cc0.
* dwarf2out.c: Include <stdlib.h> and <string.h>/<string.h>.
(ASM_OUTPUT_DWARF_DATA8):  Reconcile format vs. args in fprintf's.
(output_uleb128): Likewise.
(output_sleb128): Likewise.
(output_cfi): Likewise.
(output_call_frame_info): Remove unused variables `j', `fde_size'
and `fde_pad'.
(comp_unit_has_inlines): Hide declaration as per rest of file.
(size_of_line_prolog): Correct typo in prototype.
(add_arange): Likewise.
(output_aranges): Likewise.
(add_name_and_src_coords_attributes): Likewise.
(gen_array_type_die): Likewise.
(gen_inlined_subroutine_die): Likewise.
(equate_decl_number_to_die): Remove unused variable `i'.
(print_die): Reconcile format vs. args in fprintf's.
(print_dwarf_line_table): Likewise.
(output_die): Likewise.
(output_line_info): Likewise.
(add_subscript_info): Avoid an empty body in an else-statement.
(gen_subprogram_die): Remove unused variable `fp_loc'.
* dwarfout.c: Explicitly declare `next_pubname_number' as int.
Protect `ordering_attribute' prototype with USE_ORDERING_ATTRIBUTE
macro.  Protect `src_coords_attribute' prototype with
DWARF_DECL_COORDINATES macro.  Hide `output_entry_point_die'
prototype as in the rest of the file.  Likewise for
`output_pointer_type_die' and `output_reference_type_die'.  Remove
prototype for `type_of_for_scope'.
(output_unsigned_leb128): Reconcile format vs. args in fprintf.
(type_attribute): Add explicit braces to avoid ambiguous `else'.
* final.c: Include <stdlib.h> and <string.h>/<strings.h>.
(shorten_branches): Protect declaration of tmp_length with
SHORTEN_WITH_ADJUST_INSN_LENGTH and ADJUST_INSN_LENGTH macros.
(profile_function): Protect declaration of `sval' and `cxt'
variables with appropriate macros.
(final_scan_insn): Likewise for `note' variable.  Add explicit
braces to avoid empty body in an if-statement.
(output_asm_insn): Move variable `i' inside macro conditional
where it is used.  Add parentheses around assignment used as truth
value.
(asm_fprintf) Likewise, likewise.
* fix-header.c (main): Remove unused variable `done'.  Protect
declaration of `i' with FIXPROTO_IGNORE_LIST.
* pexecute.c: Include <unistd.h>.  Prototype `my_strerror'.
* print-rtl.c (print_inline_rtx): Explicitly declare the parameter
`ind'.
* profile.c: Include <string.h>/<strings.h>.
(instrument_arcs): Remove unused variables `note', `inverted',
`zero' and `neg_one'.
(branch_prob): Avoid empty body in an if-statement.
* regclass.c: Include <stdlib.h>.
(reg_alternate_class): Explicitly declare parameter `regno'.
* regmove.c (regmove_optimize): Remove unused variable `p'.  Add
parentheses around assignment used as truth value.
(find_matches):  Remove unused variables `output_operand' and
`matching_operand'.
(fixup_match_1): Remove statement with no effect: "if (0) ;".
* scan.c (sstring_append): Explicitly declare `count' as int.
(scan_string): Explicitly declare parameter `init' as int.
* sched.c: Include <stdlib.h>.
(BLOCKAGE_RANGE): Add parentheses around arithmetic in operand of |.
(rank_for_schedule): Add parentheses around assignment used as
truth value.
(schedule_block): Likewise.
(regno_use_in): Likewise.
(schedule_insns): Remove unused variable `i'.
* toplev.c: Include <stdlib.h> and <string.h>/<strings.h>.
(v_message_with_decl): Remove unused variable `n'.
(botch): Explicitly declare parameter `s' as char *.
(main): Add parentheses around assignment used as truth value.
* tree.c (make_node): Protect the variable `kind' with the
GATHER_STATISTICS macro.
(real_value_from_int_cst): Move variable `e' inside conditional
macro area where it is used.
(tree_last): Add parentheses around assignment used as truth value.
(build1): Protect the variable `kind' with the GATHER_STATISTICS
macro.
(print_obstack_statistics): Reconcile format vs. args in fprintf.
Protect variables `i', `total_nodes', and `total_bytes' with the
GATHER_STATISTICS macro.
Lots more -W -Wall warnings disappear.

From-SVN: r17518

26 years agoc-lex.c: Include <stdlib.h> and <string.h>/<strings.h>.
Jeff Law [Tue, 27 Jan 1998 22:11:54 +0000 (15:11 -0700)]
c-lex.c: Include <stdlib.h> and <string.h>/<strings.h>.

/
* c-lex.c: Include <stdlib.h> and <string.h>/<strings.h>.  Add
prototype for `handle_sysv_pragma', and make it static.  Add
parentheses around assignment used as truth value.
* combine.c (combine_instructions): Protect variable `prev' with
macro HAVE_cc0.
(can_combine_p): Protect variable `link' with AUTO_INC_DEC.
(extract_left_shift): Add parentheses around operand of &.
(merge_outer_ops): Avoid an empty body in an else-statement.
(gen_rtx_combine): Remove unused variable `i'.
* sparc/gmon-sol2.c: Include <fcntl.h>.  Make return type of
        function monstartup `void'.  Likewise for internal_mcount.  Add
        `static void' prototype for moncontrol.  Reconcile sprintf format
        vs. args.
* sparc/sparc.c: Include <stdlib.h> and <string.h>/<strings.h>.
Make return type of function_arg_slotno explicitly `int'.
(reg_unused_after): Add parentheses around assignment used as
truth value.
(save_regs): Add explicit braces to avoid ambiguous `else'.
(function_arg_slotno): Add parentheses around && within ||.
(function_arg_pass_by_reference): Likewise.
(sparc_flat_output_function_prologue): Reconcile fprintf format
vs. args.
* svr4.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
assignment used as truth value.
* cplus-dem.c: Include <stdlib.h>.
(demangle_signature): Avoid an empty body in an else-statement.
(do_type): Remove unused variable `lvl'.
* cppexp.c: Don't have <stdlib.h> depend on MULTIBYTE_CHARS.
Include <string.h>/<strings.h>.
(cpp_lex): Remove unused variable `namelen'.
(cpp_lex): Explicitly declare `num_chars' as an int.
* cpplib.c: Avoid duplicate inclusion of <stdlib.h>, include
<unistd.h> instead.  Explicitly declare is_system_include
returning int.
(make_assertion): Remove unused variable `kt'.
(cpp_expand_to_buffer): Hide variable `obuf'.
(output_line_command): Remove unused variables, `line_end',
`line_cmd_buf' and `len'.
(macarg): Remove unused variable `arg_start'.
(special_symbol): Remove unused variable `i'.  Add parentheses
around assignment used as truth value.
(do_include):  Remove unused variables `pcfname' and `retried',
hide `pcf' and `pcfbuflimit'.
(do_line): Remove unused variable `i'.
(finclude): Hide variable `missing_newline'.
(cpp_handle_options): Remove unused variable `j'.
(read_token_list): Remove unused variable `eofp'.
(cpp_error_with_line): Remove unused variable `i'.
(cpp_warning_with_line): Likewise.
(cpp_pedwarn_with_line): Explicitly declare `column' as int.
(cpp_error_from_errno): Remove unused variable `i'.
* cse.c (invalidate): Add parentheses around assignment used as
truth value.
(find_best_addr): Move declaration of variable `our_cost' inside
the conditional macro where its used.
(fold_rtx): Avoid an empty body in an if-statement.
(cse_insn): Wrap variables  `this_insn_cc0_mode' and
`this_insn_cc0' in macro HAVE_cc0.
* dwarf2out.c: Include <stdlib.h> and <string.h>/<string.h>.
(ASM_OUTPUT_DWARF_DATA8):  Reconcile format vs. args in fprintf's.
(output_uleb128): Likewise.
(output_sleb128): Likewise.
(output_cfi): Likewise.
(output_call_frame_info): Remove unused variables `j', `fde_size'
and `fde_pad'.
(comp_unit_has_inlines): Hide declaration as per rest of file.
(size_of_line_prolog): Correct typo in prototype.
(add_arange): Likewise.
(output_aranges): Likewise.
(add_name_and_src_coords_attributes): Likewise.
(gen_array_type_die): Likewise.
(gen_inlined_subroutine_die): Likewise.
(equate_decl_number_to_die): Remove unused variable `i'.
(print_die): Reconcile format vs. args in fprintf's.
(print_dwarf_line_table): Likewise.
(output_die): Likewise.
(output_line_info): Likewise.
(add_subscript_info): Avoid an empty body in an else-statement.
(gen_subprogram_die): Remove unused variable `fp_loc'.
* dwarfout.c: Explicitly declare `next_pubname_number' as int.
Protect `ordering_attribute' prototype with USE_ORDERING_ATTRIBUTE
macro.  Protect `src_coords_attribute' prototype with
DWARF_DECL_COORDINATES macro.  Hide `output_entry_point_die'
prototype as in the rest of the file.  Likewise for
`output_pointer_type_die' and `output_reference_type_die'.  Remove
prototype for `type_of_for_scope'.
(output_unsigned_leb128): Reconcile format vs. args in fprintf.
(type_attribute): Add explicit braces to avoid ambiguous `else'.
* final.c: Include <stdlib.h> and <string.h>/<strings.h>.
(shorten_branches): Protect declaration of tmp_length with
SHORTEN_WITH_ADJUST_INSN_LENGTH and ADJUST_INSN_LENGTH macros.
(profile_function): Protect declaration of `sval' and `cxt'
variables with appropriate macros.
(final_scan_insn): Likewise for `note' variable.  Add explicit
braces to avoid empty body in an if-statement.
(output_asm_insn): Move variable `i' inside macro conditional
where it is used.  Add parentheses around assignment used as truth
value.
(asm_fprintf) Likewise, likewise.
* fix-header.c (main): Remove unused variable `done'.  Protect
declaration of `i' with FIXPROTO_IGNORE_LIST.
* pexecute.c: Include <unistd.h>.  Prototype `my_strerror'.
* print-rtl.c (print_inline_rtx): Explicitly declare the parameter
`ind'.
* profile.c: Include <string.h>/<strings.h>.
(instrument_arcs): Remove unused variables `note', `inverted',
`zero' and `neg_one'.
(branch_prob): Avoid empty body in an if-statement.
* regclass.c: Include <stdlib.h>.
(reg_alternate_class): Explicitly declare parameter `regno'.
* regmove.c (regmove_optimize): Remove unused variable `p'.  Add
parentheses around assignment used as truth value.
(find_matches):  Remove unused variables `output_operand' and
`matching_operand'.
(fixup_match_1): Remove statement with no effect: "if (0) ;".
* scan.c (sstring_append): Explicitly declare `count' as int.
(scan_string): Explicitly declare parameter `init' as int.
* sched.c: Include <stdlib.h>.
(BLOCKAGE_RANGE): Add parentheses around arithmetic in operand of |.
(rank_for_schedule): Add parentheses around assignment used as
truth value.
(schedule_block): Likewise.
(regno_use_in): Likewise.
(schedule_insns): Remove unused variable `i'.
* toplev.c: Include <stdlib.h> and <string.h>/<strings.h>.
(v_message_with_decl): Remove unused variable `n'.
(botch): Explicitly declare parameter `s' as char *.
(main): Add parentheses around assignment used as truth value.
* tree.c (make_node): Protect the variable `kind' with the
GATHER_STATISTICS macro.
(real_value_from_int_cst): Move variable `e' inside conditional
macro area where it is used.
(tree_last): Add parentheses around assignment used as truth value.
(build1): Protect the variable `kind' with the GATHER_STATISTICS
macro.
(print_obstack_statistics): Reconcile format vs. args in fprintf.
Protect variables `i', `total_nodes', and `total_bytes' with the
GATHER_STATISTICS macro.
Lots more -W -Wall warnings disappear.

From-SVN: r17517

26 years agoc-lex.c: Include <stdlib.h> and <string.h>/<strings.h>.
Jeff Law [Tue, 27 Jan 1998 22:11:45 +0000 (15:11 -0700)]
c-lex.c: Include <stdlib.h> and <string.h>/<strings.h>.

* c-lex.c: Include <stdlib.h> and <string.h>/<strings.h>.  Add
prototype for `handle_sysv_pragma', and make it static.  Add
parentheses around assignment used as truth value.
* combine.c (combine_instructions): Protect variable `prev' with
macro HAVE_cc0.
(can_combine_p): Protect variable `link' with AUTO_INC_DEC.
(extract_left_shift): Add parentheses around operand of &.
(merge_outer_ops): Avoid an empty body in an else-statement.
(gen_rtx_combine): Remove unused variable `i'.
* sparc/gmon-sol2.c: Include <fcntl.h>.  Make return type of
        function monstartup `void'.  Likewise for internal_mcount.  Add
        `static void' prototype for moncontrol.  Reconcile sprintf format
        vs. args.
* sparc/sparc.c: Include <stdlib.h> and <string.h>/<strings.h>.
Make return type of function_arg_slotno explicitly `int'.
(reg_unused_after): Add parentheses around assignment used as
truth value.
(save_regs): Add explicit braces to avoid ambiguous `else'.
(function_arg_slotno): Add parentheses around && within ||.
(function_arg_pass_by_reference): Likewise.
(sparc_flat_output_function_prologue): Reconcile fprintf format
vs. args.
* svr4.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
assignment used as truth value.
* cplus-dem.c: Include <stdlib.h>.
(demangle_signature): Avoid an empty body in an else-statement.
(do_type): Remove unused variable `lvl'.
* cppexp.c: Don't have <stdlib.h> depend on MULTIBYTE_CHARS.
Include <string.h>/<strings.h>.
(cpp_lex): Remove unused variable `namelen'.
(cpp_lex): Explicitly declare `num_chars' as an int.
* cpplib.c: Avoid duplicate inclusion of <stdlib.h>, include
<unistd.h> instead.  Explicitly declare is_system_include
returning int.
(make_assertion): Remove unused variable `kt'.
(cpp_expand_to_buffer): Hide variable `obuf'.
(output_line_command): Remove unused variables, `line_end',
`line_cmd_buf' and `len'.
(macarg): Remove unused variable `arg_start'.
(special_symbol): Remove unused variable `i'.  Add parentheses
around assignment used as truth value.
(do_include):  Remove unused variables `pcfname' and `retried',
hide `pcf' and `pcfbuflimit'.
(do_line): Remove unused variable `i'.
(finclude): Hide variable `missing_newline'.
(cpp_handle_options): Remove unused variable `j'.
(read_token_list): Remove unused variable `eofp'.
(cpp_error_with_line): Remove unused variable `i'.
(cpp_warning_with_line): Likewise.
(cpp_pedwarn_with_line): Explicitly declare `column' as int.
(cpp_error_from_errno): Remove unused variable `i'.
* cse.c (invalidate): Add parentheses around assignment used as
truth value.
(find_best_addr): Move declaration of variable `our_cost' inside
the conditional macro where its used.
(fold_rtx): Avoid an empty body in an if-statement.
(cse_insn): Wrap variables  `this_insn_cc0_mode' and
`this_insn_cc0' in macro HAVE_cc0.
* dwarf2out.c: Include <stdlib.h> and <string.h>/<string.h>.
(ASM_OUTPUT_DWARF_DATA8):  Reconcile format vs. args in fprintf's.
(output_uleb128): Likewise.
(output_sleb128): Likewise.
(output_cfi): Likewise.
(output_call_frame_info): Remove unused variables `j', `fde_size'
and `fde_pad'.
(comp_unit_has_inlines): Hide declaration as per rest of file.
(size_of_line_prolog): Correct typo in prototype.
(add_arange): Likewise.
(output_aranges): Likewise.
(add_name_and_src_coords_attributes): Likewise.
(gen_array_type_die): Likewise.
(gen_inlined_subroutine_die): Likewise.
(equate_decl_number_to_die): Remove unused variable `i'.
(print_die): Reconcile format vs. args in fprintf's.
(print_dwarf_line_table): Likewise.
(output_die): Likewise.
(output_line_info): Likewise.
(add_subscript_info): Avoid an empty body in an else-statement.
(gen_subprogram_die): Remove unused variable `fp_loc'.
* dwarfout.c: Explicitly declare `next_pubname_number' as int.
Protect `ordering_attribute' prototype with USE_ORDERING_ATTRIBUTE
macro.  Protect `src_coords_attribute' prototype with
DWARF_DECL_COORDINATES macro.  Hide `output_entry_point_die'
prototype as in the rest of the file.  Likewise for
`output_pointer_type_die' and `output_reference_type_die'.  Remove
prototype for `type_of_for_scope'.
(output_unsigned_leb128): Reconcile format vs. args in fprintf.
(type_attribute): Add explicit braces to avoid ambiguous `else'.
* final.c: Include <stdlib.h> and <string.h>/<strings.h>.
(shorten_branches): Protect declaration of tmp_length with
SHORTEN_WITH_ADJUST_INSN_LENGTH and ADJUST_INSN_LENGTH macros.
(profile_function): Protect declaration of `sval' and `cxt'
variables with appropriate macros.
(final_scan_insn): Likewise for `note' variable.  Add explicit
braces to avoid empty body in an if-statement.
(output_asm_insn): Move variable `i' inside macro conditional
where it is used.  Add parentheses around assignment used as truth
value.
(asm_fprintf) Likewise, likewise.
* fix-header.c (main): Remove unused variable `done'.  Protect
declaration of `i' with FIXPROTO_IGNORE_LIST.
* pexecute.c: Include <unistd.h>.  Prototype `my_strerror'.
* print-rtl.c (print_inline_rtx): Explicitly declare the parameter
`ind'.
* profile.c: Include <string.h>/<strings.h>.
(instrument_arcs): Remove unused variables `note', `inverted',
`zero' and `neg_one'.
(branch_prob): Avoid empty body in an if-statement.
* regclass.c: Include <stdlib.h>.
(reg_alternate_class): Explicitly declare parameter `regno'.
* regmove.c (regmove_optimize): Remove unused variable `p'.  Add
parentheses around assignment used as truth value.
(find_matches):  Remove unused variables `output_operand' and
`matching_operand'.
(fixup_match_1): Remove statement with no effect: "if (0) ;".
* scan.c (sstring_append): Explicitly declare `count' as int.
(scan_string): Explicitly declare parameter `init' as int.
* sched.c: Include <stdlib.h>.
(BLOCKAGE_RANGE): Add parentheses around arithmetic in operand of |.
(rank_for_schedule): Add parentheses around assignment used as
truth value.
(schedule_block): Likewise.
(regno_use_in): Likewise.
(schedule_insns): Remove unused variable `i'.
* toplev.c: Include <stdlib.h> and <string.h>/<strings.h>.
(v_message_with_decl): Remove unused variable `n'.
(botch): Explicitly declare parameter `s' as char *.
(main): Add parentheses around assignment used as truth value.
* tree.c (make_node): Protect the variable `kind' with the
GATHER_STATISTICS macro.
(real_value_from_int_cst): Move variable `e' inside conditional
macro area where it is used.
(tree_last): Add parentheses around assignment used as truth value.
(build1): Protect the variable `kind' with the GATHER_STATISTICS
macro.
(print_obstack_statistics): Reconcile format vs. args in fprintf.
Protect variables `i', `total_nodes', and `total_bytes' with the
GATHER_STATISTICS macro.
Lots more -W -Wall warnings disappear.

From-SVN: r17516

26 years agoc-lex.c: Include <stdlib.h> and <string.h>/<strings.h>.
Jeff Law [Tue, 27 Jan 1998 22:11:37 +0000 (15:11 -0700)]
c-lex.c: Include <stdlib.h> and <string.h>/<strings.h>.

a
* c-lex.c: Include <stdlib.h> and <string.h>/<strings.h>.  Add
prototype for `handle_sysv_pragma', and make it static.  Add
parentheses around assignment used as truth value.
* combine.c (combine_instructions): Protect variable `prev' with
macro HAVE_cc0.
(can_combine_p): Protect variable `link' with AUTO_INC_DEC.
(extract_left_shift): Add parentheses around operand of &.
(merge_outer_ops): Avoid an empty body in an else-statement.
(gen_rtx_combine): Remove unused variable `i'.
* sparc/gmon-sol2.c: Include <fcntl.h>.  Make return type of
        function monstartup `void'.  Likewise for internal_mcount.  Add
        `static void' prototype for moncontrol.  Reconcile sprintf format
        vs. args.
* sparc/sparc.c: Include <stdlib.h> and <string.h>/<strings.h>.
Make return type of function_arg_slotno explicitly `int'.
(reg_unused_after): Add parentheses around assignment used as
truth value.
(save_regs): Add explicit braces to avoid ambiguous `else'.
(function_arg_slotno): Add parentheses around && within ||.
(function_arg_pass_by_reference): Likewise.
(sparc_flat_output_function_prologue): Reconcile fprintf format
vs. args.
* svr4.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
assignment used as truth value.
* cplus-dem.c: Include <stdlib.h>.
(demangle_signature): Avoid an empty body in an else-statement.
(do_type): Remove unused variable `lvl'.
* cppexp.c: Don't have <stdlib.h> depend on MULTIBYTE_CHARS.
Include <string.h>/<strings.h>.
(cpp_lex): Remove unused variable `namelen'.
(cpp_lex): Explicitly declare `num_chars' as an int.
* cpplib.c: Avoid duplicate inclusion of <stdlib.h>, include
<unistd.h> instead.  Explicitly declare is_system_include
returning int.
(make_assertion): Remove unused variable `kt'.
(cpp_expand_to_buffer): Hide variable `obuf'.
(output_line_command): Remove unused variables, `line_end',
`line_cmd_buf' and `len'.
(macarg): Remove unused variable `arg_start'.
(special_symbol): Remove unused variable `i'.  Add parentheses
around assignment used as truth value.
(do_include):  Remove unused variables `pcfname' and `retried',
hide `pcf' and `pcfbuflimit'.
(do_line): Remove unused variable `i'.
(finclude): Hide variable `missing_newline'.
(cpp_handle_options): Remove unused variable `j'.
(read_token_list): Remove unused variable `eofp'.
(cpp_error_with_line): Remove unused variable `i'.
(cpp_warning_with_line): Likewise.
(cpp_pedwarn_with_line): Explicitly declare `column' as int.
(cpp_error_from_errno): Remove unused variable `i'.
* cse.c (invalidate): Add parentheses around assignment used as
truth value.
(find_best_addr): Move declaration of variable `our_cost' inside
the conditional macro where its used.
(fold_rtx): Avoid an empty body in an if-statement.
(cse_insn): Wrap variables  `this_insn_cc0_mode' and
`this_insn_cc0' in macro HAVE_cc0.
* dwarf2out.c: Include <stdlib.h> and <string.h>/<string.h>.
(ASM_OUTPUT_DWARF_DATA8):  Reconcile format vs. args in fprintf's.
(output_uleb128): Likewise.
(output_sleb128): Likewise.
(output_cfi): Likewise.
(output_call_frame_info): Remove unused variables `j', `fde_size'
and `fde_pad'.
(comp_unit_has_inlines): Hide declaration as per rest of file.
(size_of_line_prolog): Correct typo in prototype.
(add_arange): Likewise.
(output_aranges): Likewise.
(add_name_and_src_coords_attributes): Likewise.
(gen_array_type_die): Likewise.
(gen_inlined_subroutine_die): Likewise.
(equate_decl_number_to_die): Remove unused variable `i'.
(print_die): Reconcile format vs. args in fprintf's.
(print_dwarf_line_table): Likewise.
(output_die): Likewise.
(output_line_info): Likewise.
(add_subscript_info): Avoid an empty body in an else-statement.
(gen_subprogram_die): Remove unused variable `fp_loc'.
* dwarfout.c: Explicitly declare `next_pubname_number' as int.
Protect `ordering_attribute' prototype with USE_ORDERING_ATTRIBUTE
macro.  Protect `src_coords_attribute' prototype with
DWARF_DECL_COORDINATES macro.  Hide `output_entry_point_die'
prototype as in the rest of the file.  Likewise for
`output_pointer_type_die' and `output_reference_type_die'.  Remove
prototype for `type_of_for_scope'.
(output_unsigned_leb128): Reconcile format vs. args in fprintf.
(type_attribute): Add explicit braces to avoid ambiguous `else'.
* final.c: Include <stdlib.h> and <string.h>/<strings.h>.
(shorten_branches): Protect declaration of tmp_length with
SHORTEN_WITH_ADJUST_INSN_LENGTH and ADJUST_INSN_LENGTH macros.
(profile_function): Protect declaration of `sval' and `cxt'
variables with appropriate macros.
(final_scan_insn): Likewise for `note' variable.  Add explicit
braces to avoid empty body in an if-statement.
(output_asm_insn): Move variable `i' inside macro conditional
where it is used.  Add parentheses around assignment used as truth
value.
(asm_fprintf) Likewise, likewise.
* fix-header.c (main): Remove unused variable `done'.  Protect
declaration of `i' with FIXPROTO_IGNORE_LIST.
* pexecute.c: Include <unistd.h>.  Prototype `my_strerror'.
* print-rtl.c (print_inline_rtx): Explicitly declare the parameter
`ind'.
* profile.c: Include <string.h>/<strings.h>.
(instrument_arcs): Remove unused variables `note', `inverted',
`zero' and `neg_one'.
(branch_prob): Avoid empty body in an if-statement.
* regclass.c: Include <stdlib.h>.
(reg_alternate_class): Explicitly declare parameter `regno'.
* regmove.c (regmove_optimize): Remove unused variable `p'.  Add
parentheses around assignment used as truth value.
(find_matches):  Remove unused variables `output_operand' and
`matching_operand'.
(fixup_match_1): Remove statement with no effect: "if (0) ;".
* scan.c (sstring_append): Explicitly declare `count' as int.
(scan_string): Explicitly declare parameter `init' as int.
* sched.c: Include <stdlib.h>.
(BLOCKAGE_RANGE): Add parentheses around arithmetic in operand of |.
(rank_for_schedule): Add parentheses around assignment used as
truth value.
(schedule_block): Likewise.
(regno_use_in): Likewise.
(schedule_insns): Remove unused variable `i'.
* toplev.c: Include <stdlib.h> and <string.h>/<strings.h>.
(v_message_with_decl): Remove unused variable `n'.
(botch): Explicitly declare parameter `s' as char *.
(main): Add parentheses around assignment used as truth value.
* tree.c (make_node): Protect the variable `kind' with the
GATHER_STATISTICS macro.
(real_value_from_int_cst): Move variable `e' inside conditional
macro area where it is used.
(tree_last): Add parentheses around assignment used as truth value.
(build1): Protect the variable `kind' with the GATHER_STATISTICS
macro.
(print_obstack_statistics): Reconcile format vs. args in fprintf.
Protect variables `i', `total_nodes', and `total_bytes' with the
GATHER_STATISTICS macro.
Lots more -W -Wall warnings disappear.

From-SVN: r17515

26 years agom32r.md, [...]: Add some comments regarding use of dead_or_set_p.
Mike Stump [Tue, 27 Jan 1998 22:02:13 +0000 (22:02 +0000)]
m32r.md, [...]: Add some comments regarding use of dead_or_set_p.

        * m32r.md, mips.md, mn10200.md, mn10300.md, pyr.md: Add
        some comments regarding use of dead_or_set_p.

From-SVN: r17514

26 years ago* fixincludes: Tweak fix for struct exception in math.h
Todd Vierling [Tue, 27 Jan 1998 21:16:28 +0000 (21:16 +0000)]
* fixincludes: Tweak fix for struct exception in math.h

From-SVN: r17513

26 years agocall.c (add_template_candidate_real): New function.
Mark Mitchell [Tue, 27 Jan 1998 20:47:56 +0000 (20:47 +0000)]
call.c (add_template_candidate_real): New function.

* call.c (add_template_candidate_real): New function.
(add_template_candidate): Use it.
(add_template_conv_candidate): Likewise.
(joust): Pass extra argument to more_specialized.
* class.c (instantiate_type): Handle a single FUNCTION_DECL.
(is_local_class): Remove.
(finish_struct): Check TI_PENDING_SPECIALIZATION_FLAG.
* cp-tree.h (is_local_class): Remove.
(perform_array_to_pointer_conversion): Likewise.
(finish_member_template_decl): Add.
(check_explicit_specialization): Return a tree, not an int.
(more_specialized): Take additional argument.
(get_bindings): Likewise.
(TI_PENDING_SPECIALIZATION_FLAG): New macro.
* cvt.c (perform_qualification_conversions): Use comp_ptr_ttypes.
(perform_array_to_pointer_conversion): Remove.
* decl.c (saved_scope): Add processing_specialization,
processing_explicit_instantiation fields.
(maybe_push_to_top_level): Save them.
(pop_from_top_level): Restore them.
(grokfndecl): Use new return value from
check_explicit_specialization.
(start_decl): Don't check flag_guiding_decls before pushing
decls.
(cp_finish_decl): Remove previous (bogus) change.
(grok_declarator): Use decl_function_context rather than
is_local_class.
* decl2.c (finish_file): Pass extra argument to get_bindings.
(build_expr_from_tree): Let build_x_component_ref check
validity of arguments rather than doing it here.
* lex.c (cons_up_default_function): Remove code fooling with
processing_specialization, processing_explicit_instantiation
flags, as that is now done in {maybe_push_top,pop_from}_top_level.
* method.c (build_overload_identifier): Mangle local classes in
template functions correctly.
* parse.y (finish_member_template_decl): Move to pt.c.
* pt.c (finish_member_template_decl): Moved here from parse.y.
(print_candidates): New function.
(determine_specialization): Change interface.  Properly look for
most specialized versions of template candidates.
(check_explicit_specialization): Fully process explicit
instantiations.
(push_template_decl): Avoid looking at CLASSTYPE fields in
FUNCTION_DECLS.
(determine_overloaded_function): Remove.
(convert_nontype_argument): Change name from
convert_nontype_parameter.  Use determine_overloaded_function
instead of instantiate_type.
(mangle_class_name_for_template): Handle type contexts as well as
function contexts.
(classtype_mangled_name): Likewise.
(lookup_template_class): Likewise.
(tsubst): Likewise.
(more_specialized): Take explict template arguments as a
parameter.
(most_specialized): Likewise.
(get_bindings): Likewise.  Check that return types match before
proclaiming a function a match.
(do_decl_instantiation): Remove code searching for function to
instantiate; that is now done in check_explicit_specialization.
(add_maybe_template): Pass extra argument to get_bindings.
* tree.c (really_overloaded_fn): Use is_overloaded_fn to simplify
implementation.
* typeck.c (build_component_ref): Check for invalid arguments.

From-SVN: r17512

26 years agoPatch from Gavin to fix mips16 prologue/epilogue bugs.
Gavin Koch [Tue, 27 Jan 1998 17:22:43 +0000 (17:22 +0000)]
Patch from Gavin to fix mips16 prologue/epilogue bugs.

* mips/mips.c (mips_expand_prologue,mips_expand_epilogue):
Change mode of registers used to add/sub from
hard_frame_pointer_rtx from word_mode to Pmode.

From-SVN: r17511

26 years agoexpr.c (cplus_expand_expr, [...]): Don't check that return_target and call_target...
Jason Merrill [Tue, 27 Jan 1998 12:07:36 +0000 (12:07 +0000)]
expr.c (cplus_expand_expr, [...]): Don't check that return_target and call_target are equivalent.

* expr.c (cplus_expand_expr, AGGR_INIT_EXPR): Don't check that
return_target and call_target are equivalent.

From-SVN: r17510

26 years agov850.h (ASM_OUTPUT_ALIGNED_BSS): Use asm_output_aligned_bss() instead of asm_output_b...
Nick Clifton [Tue, 27 Jan 1998 10:19:24 +0000 (10:19 +0000)]
v850.h (ASM_OUTPUT_ALIGNED_BSS): Use asm_output_aligned_bss() instead of asm_output_bss().

        * v850.h (ASM_OUTPUT_ALIGNED_BSS): Use
        asm_output_aligned_bss() instead of asm_output_bss().

From-SVN: r17509

26 years agoMakefile.in (install): Remove the shared library symlink even if we aren't installing it.
Jason Merrill [Tue, 27 Jan 1998 10:14:06 +0000 (10:14 +0000)]
Makefile.in (install): Remove the shared library symlink even if we aren't installing it.

* Makefile.in (install): Remove the shared library symlink even if
  we aren't installing it.

From-SVN: r17508

26 years agotoplev.c (rest_of_compilation): Replace references to stack_reg_dump_file and dbr_sch...
Nick Clifton [Tue, 27 Jan 1998 10:02:22 +0000 (10:02 +0000)]
toplev.c (rest_of_compilation): Replace references to stack_reg_dump_file and dbr_sched_dump_file with...

        * toplev.c (rest_of_compilation): Replace references to
        stack_reg_dump_file and dbr_sched_dump_file with references to
        rtl_dump_file.

From-SVN: r17507

26 years agoconfigure.in (topsrcdir): New.
H.J. Lu [Tue, 27 Jan 1998 09:34:31 +0000 (09:34 +0000)]
configure.in (topsrcdir): New.

        * configure.in (topsrcdir): New.
        (CHECK_SUBDIRS, configdirs): Check ${topsrcdir}/gcc instead.
        (config-ml.in): Use ${topsrcdir}/config-ml.in.
        * tests/configure.in (topsrcdir): New.
        (CHECK): Check ${topsrcdir}/gcc instead.

From-SVN: r17506

26 years agoconfigure.in (topsrcdir): New.
H.J. Lu [Tue, 27 Jan 1998 09:28:32 +0000 (09:28 +0000)]
configure.in (topsrcdir): New.

        * configure.in (topsrcdir): New.
        (configdirs): Check ${topsrcdir}/gcc instead.
        (config-ml.in): Use ${topsrcdir}/config-ml.in.
        * tests/configure.in (topsrcdir): New.
        (check): Check ${topsrcdir}/gcc instead.
Fixes multilib problems when srcdir == objdir.

From-SVN: r17505

26 years ago* tlink.c (scan_linker_output): Call fclose() for opened files.
Kamil Iskra [Tue, 27 Jan 1998 09:23:08 +0000 (10:23 +0100)]
* tlink.c (scan_linker_output): Call fclose() for opened files.

From-SVN: r17504

26 years agoalpha.c (output_epilog [!VMS]): Don't tag global functions if compiling with -fpic...
Richard Henderson [Tue, 27 Jan 1998 05:11:41 +0000 (21:11 -0800)]
alpha.c (output_epilog [!VMS]): Don't tag global functions if compiling with -fpic -- we want to be able to...

* alpha.c (output_epilog [!VMS]): Don't tag global functions if
compiling with -fpic -- we want to be able to override symbols
properly.
(alpha_expand_block_move): Fix thinko in last change.
* alpha.h (ASM_OUTPUT_MI_THUNK): New define.
* config/alpha/win-nt.h (ASM_OUTPUT_MI_THUNK): New define.
* config/alpha/vms.h (ASM_OUTPUT_MI_THUNK): New undef.

From-SVN: r17503

26 years ago* alpha.md (abssf, absdf): Revert last change.
Richard Henderson [Tue, 27 Jan 1998 03:23:31 +0000 (19:23 -0800)]
* alpha.md (abssf, absdf): Revert last change.

From-SVN: r17502

26 years agonew
Jason Merrill [Tue, 27 Jan 1998 02:58:51 +0000 (21:58 -0500)]
new

From-SVN: r17501

26 years agopt.c (type_unification_real): Just accept function parms that don't use any template...
Jason Merrill [Tue, 27 Jan 1998 02:30:38 +0000 (02:30 +0000)]
pt.c (type_unification_real): Just accept function parms that don't use any template parms.

* pt.c (type_unification_real): Just accept function parms that
don't use any template parms.

From-SVN: r17500

26 years agodwarf2out.c (dwarf2out_frame_init): Test value of DWARF2_UNWIND_INFO.
John Carr [Mon, 26 Jan 1998 23:26:51 +0000 (23:26 +0000)]
dwarf2out.c (dwarf2out_frame_init): Test value of DWARF2_UNWIND_INFO.

        * dwarf2out.c (dwarf2out_frame_init): Test value of DWARF2_UNWIND_INFO.
        * mips/sni-svr4.h: Define DWARF2_UNWIND_INFO as 0.

From-SVN: r17499

26 years agoemit-rtl.c (gen_lowpart_common): Handle more case where converting a CONST_INT into...
Jeffrey A Law [Mon, 26 Jan 1998 23:05:08 +0000 (23:05 +0000)]
emit-rtl.c (gen_lowpart_common): Handle more case where converting a CONST_INT into SFmode.

        * emit-rtl.c (gen_lowpart_common): Handle more case where converting
        a CONST_INT into SFmode.

From-SVN: r17498

26 years agoflags.h: New flag (optimize_size).
Anthony Green [Mon, 26 Jan 1998 23:00:04 +0000 (23:00 +0000)]
flags.h: New flag (optimize_size).

        * flags.h: New flag (optimize_size).
        * toplev.c (main): Parse -Os option and set optimize_space
        accordingly.
        * gcc.c (default_compilers), cp/lang-specs.h, f/lang-specs.h: Define
        __OPTIMIZE_SIZE__ when compiling with -Os.
        * config/dsp16xx/dsp16xx.h, config/i386/i386.h,
        config/i386/dgux.h, config/i960/i960.h, config/pdp11/pdp11.h,
        config/v850/v850.h (OPTIMIZATION_OPTIONS): New SIZE argument
        to macro.
        * config/i386/i386.c (optimization_options): Accept new SIZE argument.

From-SVN: r17497

26 years agolibgcc2.c (__clear_insn_cache): On sysV68 enable the memctl stuff only if MCT_TEXT...
Manfred Hollstein [Mon, 26 Jan 1998 22:54:52 +0000 (22:54 +0000)]
libgcc2.c (__clear_insn_cache): On sysV68 enable the memctl stuff only if MCT_TEXT is #define'd.

        * libgcc2.c (__clear_insn_cache): On sysV68 enable the memctl
        stuff only if MCT_TEXT is #define'd.

From-SVN: r17496

26 years agoconfigure.in (i*86-pc-msdosdjgpp): Treat like msdos & go32 configurations.
Markus F.X.J. Oberhumer [Mon, 26 Jan 1998 22:51:28 +0000 (23:51 +0100)]
configure.in (i*86-pc-msdosdjgpp): Treat like msdos & go32 configurations.

        * configure.in (i*86-pc-msdosdjgpp): Treat like msdos & go32
        configurations.

From-SVN: r17495

26 years agotoplev.c: Add -dM command line option to dump RTL after the machine dependent...
Nick Clifton [Mon, 26 Jan 1998 22:48:32 +0000 (22:48 +0000)]
toplev.c: Add -dM command line option to dump RTL after the machine dependent...

        * toplev.c: Add -dM command line option to dump RTL after the
        machine dependent reorganisation pass, if there is one.
        Reorganise RTL dump code, so that only one file handle is
        needed.

From-SVN: r17494

26 years agoexcept.c (check_exception_handler_labels): Disable warning when flag_syntax_only.
Benjamin Kosnik [Mon, 26 Jan 1998 22:43:57 +0000 (22:43 +0000)]
except.c (check_exception_handler_labels): Disable warning when flag_syntax_only.

        * except.c (check_exception_handler_labels): Disable warning when
        flag_syntax_only.

From-SVN: r17493

26 years agoFix C++/-fpic core dump from Brendan, side effect of Kenner's Dec 24 change.
Jim Wilson [Mon, 26 Jan 1998 18:21:26 +0000 (18:21 +0000)]
Fix C++/-fpic core dump from Brendan, side effect of Kenner's Dec 24 change.

* sparc.c (pic_setup_code): Don't set LABEL_PRESERVE_P.

From-SVN: r17491

26 years agoPatch from Joern to fix dwarf1 bug: emit debug info for types defined in
J"orn Rennecke [Mon, 26 Jan 1998 18:13:41 +0000 (18:13 +0000)]
Patch from Joern to fix dwarf1 bug: emit debug info for types defined in
parameter lists.
* c-decl.c (grokdeclarator): Get parameter tags from
last_function_parm_tags.
* dwarfout.c (output_formal_types): Set TREE_ASM_WRITTEN before
traversing the parameter types.
(output_type): No early exit for FUNCTION_TYPE / METHOD_TYPE context.

From-SVN: r17490

26 years agoTweak.
Jeff Law [Mon, 26 Jan 1998 16:15:46 +0000 (09:15 -0700)]
Tweak.

From-SVN: r17489

26 years agoRemove Gavin for now.
Jeff Law [Mon, 26 Jan 1998 08:38:23 +0000 (01:38 -0700)]
Remove Gavin for now.

From-SVN: r17488

26 years agoTweaks from Andreas.
Jeff Law [Mon, 26 Jan 1998 08:31:47 +0000 (01:31 -0700)]
Tweaks from Andreas.

From-SVN: r17487

26 years agoh8300.c (print_operand): Handle CONST_DOUBLE for 'e', 'f', and the default case.
Jeffrey A Law [Mon, 26 Jan 1998 00:44:02 +0000 (00:44 +0000)]
h8300.c (print_operand): Handle CONST_DOUBLE for 'e', 'f', and the default case.

        * h8300.c (print_operand): Handle CONST_DOUBLE for 'e', 'f', and
        the default case.
        (get_shift_alg): Fix typo.

From-SVN: r17486

26 years ago* alpha.c (alpha_expand_block_move): Copy ADDRESSOF to reg.
Richard Henderson [Sun, 25 Jan 1998 22:22:29 +0000 (14:22 -0800)]
* alpha.c (alpha_expand_block_move): Copy ADDRESSOF to reg.

From-SVN: r17485

26 years ago* toplev.c (get_run_time): Make sure each case gets its variables.
Richard Henderson [Sun, 25 Jan 1998 22:14:54 +0000 (14:14 -0800)]
* toplev.c (get_run_time): Make sure each case gets its variables.

From-SVN: r17484

26 years agoconfigure.in (build_xm_file): Add auto-config.h if host=build.
Richard Henderson [Sun, 25 Jan 1998 22:11:32 +0000 (14:11 -0800)]
configure.in (build_xm_file): Add auto-config.h if host=build.

* configure.in (build_xm_file): Add auto-config.h if host=build.
(host_xm_file_list): Don't add $(srcdir) to auto-config.h.
(build_xm_file_list): Likewise.
* configure: Rebuild.

From-SVN: r17483

26 years agorecog.c (validate_replace_rtx_1): Only perform substitutions of arguments to commutat...
Alasdair Baird [Sun, 25 Jan 1998 21:00:42 +0000 (21:00 +0000)]
recog.c (validate_replace_rtx_1): Only perform substitutions of arguments to commutative and comparison operators...

        * recog.c (validate_replace_rtx_1): Only perform substitutions
        of arguments to commutative and comparison operators once.

From-SVN: r17482

26 years agoAdd some stuff
Jeff Law [Sun, 25 Jan 1998 20:19:15 +0000 (13:19 -0700)]
Add some stuff

From-SVN: r17481

26 years agoTweak.
Jeff Law [Sun, 25 Jan 1998 17:13:31 +0000 (10:13 -0700)]
Tweak.

From-SVN: r17479

26 years agobastring.h (unique): We only need length bytes.
Jason Merrill [Sun, 25 Jan 1998 16:45:02 +0000 (16:45 +0000)]
bastring.h (unique): We only need length bytes.

* std/bastring.h (unique): We only need length bytes.
(c_str): Avoid writing over random memory.
#include <std/bastring.cc>.
Lose _G_ALLOC_CONTROL.
* std/bastring.cc: Likewise.
  (nilRep): Add initializer for selfish.
* sinst.cc: Just #include <string>.
Fix a couple of bugs, linux undefined symbol problem.

From-SVN: r17478

26 years agodecl.c (cp_finish_decl): When bailing on a comdat variable, also unset DECL_NOT_REALL...
Jason Merrill [Sun, 25 Jan 1998 13:33:39 +0000 (13:33 +0000)]
decl.c (cp_finish_decl): When bailing on a comdat variable, also unset DECL_NOT_REALLY_EXTERN.

* decl.c (cp_finish_decl): When bailing on a comdat variable, also
unset DECL_NOT_REALLY_EXTERN.

From-SVN: r17477

26 years ago* parse.y (typename_sub*): Fix std::.
Jason Merrill [Sun, 25 Jan 1998 12:54:44 +0000 (12:54 +0000)]
* parse.y (typename_sub*): Fix std::.

From-SVN: r17476

26 years agosparc.c (output_cbranch): Add default case in enumeration switch.
Kaveh R. Ghazi [Sun, 25 Jan 1998 11:34:22 +0000 (11:34 +0000)]
sparc.c (output_cbranch): Add default case in enumeration switch.

        * config/sparc/sparc.c (output_cbranch): Add default case in
        enumeration switch.
        * reorg.c (insn_sets_resource_p): Correct typo in prototype.
        (emit_delay_sequence): Eliminate unused parameter, all callers
        changed.
        (fill_simple_delay_slots): Likewise.
        (fill_slots_from_thread): Likewise.
        (fill_eager_delay_slots):  Likewise.
        (mark_referenced_resources): Add default case in enumeration switch.
        (mark_set_resources): Likewise.
        (rare_destination): Likewise.
        (mostly_true_jump): Likewise.
        (find_dead_or_set_registers): Likewise.
        (redirect_with_delay_slots_safe_p): Remove unused variable `slots'.
        (update_reg_unused_notes): Remove unused variable `p'.
        (mark_target_live_regs): Remove unused variables `next' and
        `jump_count'.
        (fill_simple_delay_slots): Remove unused variable `j'.
        (fill_slots_from_thread): Add parentheses around assignment used
        as truth value.
        (dbr_schedule): Likewise.

From-SVN: r17475

26 years agoMake-lang.in (f77.stage1): Depend on stage1-start so parallel make works better.
Kaveh R. Ghazi [Sun, 25 Jan 1998 11:30:32 +0000 (11:30 +0000)]
Make-lang.in (f77.stage1): Depend on stage1-start so parallel make works better.

        * Make-lang.in (f77.stage1): Depend on stage1-start so parallel
        make works better.
        * (f77.stage2): Likewise for stage2-start.
        * (f77.stage3): Likewise for stage3-start.
        * (f77.stage4): Likewise for stage4-start.

From-SVN: r17474

26 years agoMake-lang.in (objc.stage1): Depend on stage1-start.
Kaveh R. Ghazi [Sun, 25 Jan 1998 11:29:50 +0000 (11:29 +0000)]
Make-lang.in (objc.stage1): Depend on stage1-start.

        * objc/Make-lang.in (objc.stage1): Depend on stage1-start.
        (objc.stage2, objc.stage3, objc.stage4): Likewise.

From-SVN: r17473

26 years agocse.c (simplify_ternary_operation): Don't try to simplify IF_THEN_ELSE expressions...
Michael Tiemann [Sun, 25 Jan 1998 11:12:26 +0000 (11:12 +0000)]
cse.c (simplify_ternary_operation): Don't try to simplify IF_THEN_ELSE expressions (created by combine) that don't...

        * cse.c (simplify_ternary_operation): Don't try to simplify
        IF_THEN_ELSE expressions (created by combine) that don't use
        relational operators.

From-SVN: r17472

26 years agoFix mismatched parens.
Jeff Law [Sun, 25 Jan 1998 09:00:18 +0000 (02:00 -0700)]
Fix mismatched parens.

From-SVN: r17471

26 years agoerror.c (dump_decl): Fix type default template args.
Jason Merrill [Sat, 24 Jan 1998 12:26:46 +0000 (12:26 +0000)]
error.c (dump_decl): Fix type default template args.

* error.c (dump_decl): Fix type default template args.
(dump_type): Hand TEMPLATE_DECL off to dump_decl.

From-SVN: r17470

26 years agotweak
Jason Merrill [Sat, 24 Jan 1998 03:04:11 +0000 (22:04 -0500)]
tweak

From-SVN: r17469

26 years agoNew file. Empty until we start adding stuff to it.
Jeff Law [Sat, 24 Jan 1998 01:14:26 +0000 (18:14 -0700)]
New file.  Empty until we start adding stuff to it.

From-SVN: r17468

26 years agoconfigure (package_makefile_frag): Move inserting the ${package_makefile_frag} to...
Manfred Hollstein [Sat, 24 Jan 1998 00:58:07 +0000 (00:58 +0000)]
configure (package_makefile_frag): Move inserting the ${package_makefile_frag} to where it should be according to...

        * configure (package_makefile_frag): Move inserting the
        ${package_makefile_frag} to where it should be according
        to the comment.

From-SVN: r17467

26 years agoTweak SCO5 stuff.
Jeff Law [Sat, 24 Jan 1998 00:31:38 +0000 (17:31 -0700)]
Tweak SCO5 stuff.

From-SVN: r17466

26 years agocse.c (simplify_ternary_operation): Handle more IF_THEN_ELSE simplifications.
Jeffrey A Law [Fri, 23 Jan 1998 23:06:03 +0000 (23:06 +0000)]
cse.c (simplify_ternary_operation): Handle more IF_THEN_ELSE simplifications.

        * cse.c (simplify_ternary_operation): Handle more IF_THEN_ELSE
        simplifications.

From-SVN: r17465

26 years agocrtstuff.c (init_dummy): Keep the epilogue in the init section for non-ELF systems.
Jeffrey A Law [Fri, 23 Jan 1998 21:47:43 +0000 (21:47 +0000)]
crtstuff.c (init_dummy): Keep the epilogue in the init section for non-ELF systems.

        * crtstuff.c (init_dummy): Keep the epilogue in the init
        section for non-ELF systems.

From-SVN: r17464

26 years ago* sh.md (movqi_i+1): New peephole.
J"orn Rennecke [Fri, 23 Jan 1998 21:27:50 +0000 (21:27 +0000)]
* sh.md (movqi_i+1): New peephole.

From-SVN: r17463

26 years agoFinish .cexp -> .x conversion.
Jeff Law [Fri, 23 Jan 1998 21:13:16 +0000 (14:13 -0700)]
Finish .cexp -> .x conversion.

From-SVN: r17462

26 years agolex.c (DIR_SEPARATOR): Define to be '/' if not already defined.
Mumit Khan [Fri, 23 Jan 1998 18:35:06 +0000 (18:35 +0000)]
lex.c (DIR_SEPARATOR): Define to be '/' if not already defined.

* lex.c (DIR_SEPARATOR): Define to be '/' if not already defined.
(file_name_nondirectory): Use.

From-SVN: r17461

26 years agorevert last change
Jason Merrill [Fri, 23 Jan 1998 18:33:28 +0000 (13:33 -0500)]
revert last change

From-SVN: r17460

26 years agoRemove rest of bytecode stuff, except for the VMS *.com files.
Jim Wilson [Fri, 23 Jan 1998 15:43:01 +0000 (15:43 +0000)]
Remove rest of bytecode stuff, except for the VMS *.com files.

* Makefile.in: Remove remaining bytecode stuff.
* emit-rtl.c, expr.c: Likewise.

From-SVN: r17459

26 years ago* toplev.c (lang_options): Add unknown-pragma options.
Nick Clifton [Fri, 23 Jan 1998 11:39:49 +0000 (11:39 +0000)]
* toplev.c (lang_options): Add unknown-pragma options.

From-SVN: r17458

26 years agodwarfout.c (byte_size_attribute): Simplify and fix - don't need special (and incomple...
Per Bothner [Thu, 22 Jan 1998 23:48:23 +0000 (15:48 -0800)]
dwarfout.c (byte_size_attribute): Simplify and fix - don't need special (and incomplete) handling for Chill arrays.


* dwarfout.c (byte_size_attribute):  Simplify and fix - don't need
special (and incomplete) handling for Chill arrays.

From-SVN: r17457

26 years agodwarfout.c (byte_size_attribute): Simplify and fix - don't need special (and incomple...
Per Bothner [Thu, 22 Jan 1998 23:48:22 +0000 (15:48 -0800)]
dwarfout.c (byte_size_attribute): Simplify and fix - don't need special (and incomplete) handling for Chill arrays.

8
* dwarfout.c (byte_size_attribute):  Simplify and fix - don't need
special (and incomplete) handling for Chill arrays.

From-SVN: r17456

26 years ago* config.guess: Add support for Linux/ARM.
Philip Blundell [Thu, 22 Jan 1998 23:28:32 +0000 (23:28 +0000)]
* config.guess: Add support for Linux/ARM.

From-SVN: r17455

26 years agotoplev.c (get_run_time): Call sysconf(_SC_CLK_TCK), when available, to get clock...
John Carr [Thu, 22 Jan 1998 23:26:28 +0000 (23:26 +0000)]
toplev.c (get_run_time): Call sysconf(_SC_CLK_TCK), when available, to get clock rate.

        * toplev.c (get_run_time): Call sysconf(_SC_CLK_TCK), when available,
        to get clock rate.

From-SVN: r17454

26 years ago* mips.md (muldi3_internal2): Reverse test for TARGET_MIPS16.
Gavin Koch [Thu, 22 Jan 1998 23:18:55 +0000 (16:18 -0700)]
* mips.md (muldi3_internal2): Reverse test for TARGET_MIPS16.

From-SVN: r17453

26 years agoTweak.
Jeff Law [Thu, 22 Jan 1998 23:16:12 +0000 (16:16 -0700)]
Tweak.

From-SVN: r17452

26 years agomips.c (function_prologue): Use HARD_FRAME_POINTER_REGNUM in .frame directive instead...
Scott Snyder [Thu, 22 Jan 1998 23:13:28 +0000 (16:13 -0700)]
mips.c (function_prologue): Use HARD_FRAME_POINTER_REGNUM in .frame directive instead of FRAME_POINTER_REGNUM.

1998-01-22  scott snyder  <snyder@d0sgif.fnal.gov>
        * mips.c (function_prologue): Use HARD_FRAME_POINTER_REGNUM in
        .frame directive instead of FRAME_POINTER_REGNUM.

From-SVN: r17451

26 years agom68k.h (TARGET_SWITCHES): -mcpu32 now clears MASK_68881.
Robin Kirkham [Thu, 22 Jan 1998 23:10:15 +0000 (23:10 +0000)]
m68k.h (TARGET_SWITCHES): -mcpu32 now clears MASK_68881.

        * m68k.h (TARGET_SWITCHES): -mcpu32 now clears MASK_68881.
        (MACHINE_STATE_m68010_up): Replaced __mc68332__ with __mcpu32__.
        * m68k/m68k-none.h(CPP_FPU_SPEC): Update relative to TARGET_SWITCHES.
        (CPP_SPEC, ASM_SPEC, CC1_SPEC): Likewise.
        (CPP_SPEC): -m68332 defines both __mc68332 and __mcpu32__.
        * m68k/t-m68kbare (MULTILIB_OPTIONS): Add mcpu32.
        (MULTILIB_MATCHES): -m68332 now uses mcpu32 libraries, not m68000.
        (MULTILIB_EXCEPTIONS): Don't build 68881 libraries for m68000,
        mcpu32 or m5200.
        * longlong.h: Replace __mc68332__ with __mcpu32__.

From-SVN: r17450

26 years agoAdd intel site.
Jeff Law [Thu, 22 Jan 1998 22:24:37 +0000 (15:24 -0700)]
Add intel site.

From-SVN: r17449

26 years ago* decl2.c (grok_x_components): Always call grok_enum_decls.
Mark Mitchell [Thu, 22 Jan 1998 22:08:11 +0000 (22:08 +0000)]
* decl2.c (grok_x_components): Always call grok_enum_decls.

From-SVN: r17448

26 years agoBump for snapshot
Jeffrey A Law [Thu, 22 Jan 1998 19:55:42 +0000 (12:55 -0700)]
Bump for snapshot

From-SVN: r17446

26 years agolose text after #endif
Brendan Kehoe [Thu, 22 Jan 1998 15:42:52 +0000 (10:42 -0500)]
lose text after #endif

From-SVN: r17445

26 years agoFix powerpc/rs6000 (subreg:SF (mem:SI ...)) reload problem.
Jim Wilson [Thu, 22 Jan 1998 14:48:58 +0000 (14:48 +0000)]
Fix powerpc/rs6000 (subreg:SF (mem:SI ...)) reload problem.

* reload.c (push_reload): In WORD_REGISTER_OPERATIONS code, add test
to require the SUBREG mode to be smaller than the SUBREG_REG mode.
* reload1.c (eliminate_regs): Likewise.

From-SVN: r17444

26 years agoregmove.c (find_matches): Initialize matches->earlyclobber too.
Jeffrey A Law [Thu, 22 Jan 1998 13:49:29 +0000 (13:49 +0000)]
regmove.c (find_matches): Initialize matches->earlyclobber too.

        * regmove.c (find_matches): Initialize matches->earlyclobber too.
Should fix pa bootstrap comparison failures.

From-SVN: r17443

26 years agonew
Jason Merrill [Thu, 22 Jan 1998 11:04:02 +0000 (06:04 -0500)]
new

From-SVN: r17442

26 years agopt.c (coerce_template_parms): Don't access elements of ARGLIST that is not really...
Kriang Lerdsuwanakij [Thu, 22 Jan 1998 11:03:56 +0000 (11:03 +0000)]
pt.c (coerce_template_parms): Don't access elements of ARGLIST that is not really present.

Wed Jan 21 10:29:57 1998  Kriang Lerdsuwanakij  <lerdsuwa@scf.usc.edu>
* pt.c (coerce_template_parms): Don't access elements of ARGLIST
that is not really present.  Substitute default arguments in
template template arguments.  Correctly convert TEMPLATE_DECL to
TEMPLATE_TEMPLATE_PARM.
(comp_template_args): TEMPLATE_DECL and TEMPLATE_TEMPLATE_PARM
are no longer treated specially here.
* parse.y (template_template_parm): Fix copy error.
* decl.c (grokdeclarator): Warn about missing `typename' for nested
type created from template template parameters.
* parse.y (bad_parm): Likewise
* class.c (finish_struct): Handle TEMPLATE_TEMPLATE_PARM.
(push_nested_class): Likewise.
* cp-tree.def (TEMPLATE_TEMPLATE_PARM): New tree code.
* cp-tree.h (DECL_TEMPLATE_TEMPLATE_PARM_P): New macro.
(copy_template_template_parm): Declare.
* decl.c (arg_looking_for_template): New variable.
(lookup_name_real): Handle TEMPLATE_TEMPLATE_PARM.
Try to return TEMPLATE_DECL or TEMPLATE_TEMPLATE_PARM
node if arg_looking_for_template is nonzero.
(pushdecl): Handle TEMPLATE_TEMPLATE_PARM.
(grok_op_properties, xref_tag, xref_basetypes): Likewise.
(grokdeclarator): Handle TEMPLATE_DECL.
* decl2.c (constructor_name_full): Handle TEMPLATE_TEMPLATE_PARM.
* error.c (dump_type): Add TEMPLATE_DECL and TEMPLATE_TEMPLATE_PARM.
(dump_type_prefix, dump_type_suffix) Handle TEMPLATE_TEMPLATE_PARM.
(dump_decl): Handle unnamed template type parameters.
Handle template template parameters.
(dump_function_name): Handle template template parameters.
* init.c (is_aggr_typedef, is_aggr_type, get_aggr_from_typedef):
Handle TEMPLATE_TEMPLATE_PARM.
* method.c (build_template_template_parm_names): New function.
(build_template_parm_names): Handle TEMPLATE_DECL.
(build_overload_nested_name, build_overload_name):
Handle TEMPLATE_TEMPLATE_PARM.
* parse.y (maybe_identifier): New nonterminal.
(template_type_parm): Use it.
(template_template_parm, template_arg1): New nonterminal.
(template_parm): Add template_template_parm rules.
(template_arg): Set processing_template_arg.
(template_arg1): Rules moved from template_arg.
(primary, nonnested_type): Set arg_looking_for_template if we are
processing template arguments.
* pt.c (begin_member_template_processing): Handle TEMPLATE_DECL.
(process_template_parm): Handle template template parameters.
(coerce_template_parms, comp_template_args): Likewise.
(mangle_class_name_for_template, lookup_template_class): Likewise.
(uses_template_parms): Handle TEMPLATE_DECL and
TEMPLATE_TEMPLATE_PARM.
(current_template_args): Handle TEMPLATE_DECL.
(tsubst, tsubst_copy, unify): Handle TEMPLATE_TEMPLATE_PARM.
* search.c (dfs_walk, dfs_record_inheritance):
Handle TEMPLATE_TEMPLATE_PARM.
* tree.c (copy_template_template_parm): New function.
(mapcar): Handle TEMPLATE_TEMPLATE_PARM.
* typeck.c (comptypes): Handle TEMPLATE_TEMPLATE_PARM.

From-SVN: r17441

26 years agoalpha.md (abssf2, absdf2): Disable in IEEE mode.
Richard Henderson [Thu, 22 Jan 1998 01:44:04 +0000 (17:44 -0800)]
alpha.md (abssf2, absdf2): Disable in IEEE mode.

* alpha.md (abssf2, absdf2): Disable in IEEE mode.
(negsf2, negdf2): Use proper subtract in IEEE mode.

From-SVN: r17440

26 years ago* configure.in: Revert 3 Jan change for alpha-linux-gnulibc1.
Richard Henderson [Thu, 22 Jan 1998 01:39:33 +0000 (17:39 -0800)]
* configure.in: Revert 3 Jan change for alpha-linux-gnulibc1.

From-SVN: r17439

26 years agoFix typo in yesterday's change.
Jeff Law [Wed, 21 Jan 1998 06:48:07 +0000 (23:48 -0700)]
Fix typo in yesterday's change.

From-SVN: r17438

26 years agoupdate
Jason Merrill [Wed, 21 Jan 1998 00:11:44 +0000 (19:11 -0500)]
update

From-SVN: r17437

26 years agoRemove more bytecode stuff.
Jeffrey A Law [Tue, 20 Jan 1998 17:02:10 +0000 (17:02 +0000)]
Remove more bytecode stuff.

From-SVN: r17436

26 years agoMore bytecode stuff disappears.
Jeffrey A Law [Tue, 20 Jan 1998 10:02:05 +0000 (10:02 +0000)]
More bytecode stuff disappears.

From-SVN: r17435

26 years agoRemove more bytecode stuff.
Jeffrey A Law [Tue, 20 Jan 1998 08:59:50 +0000 (08:59 +0000)]
Remove more bytecode stuff.

From-SVN: r17434

26 years agoMore bytecode stuff going away.
Jeff Law [Tue, 20 Jan 1998 08:57:27 +0000 (01:57 -0700)]
More bytecode stuff going away.

From-SVN: r17433

26 years agoMakefile.in: Remove all bytecode support.
Jeffrey A Law [Tue, 20 Jan 1998 08:55:07 +0000 (08:55 +0000)]
Makefile.in: Remove all bytecode support.

        * Makefile.in: Remove all bytecode support.
        (OBJS): Make sure last entry is a real object file, not EXTRA_OBJS.
        * emit-rtl.c: Remove all bytecode support.
        * expr.c, expr.h function.c, integrate.c: Likewise.
        * output.h, regclass.c, rtl.h, stmt.c, toplev.c: Likewise.
        * tree.h, varasm.c: Likewise.
        * bi-*, bc-*: Delete bytecode related files.
Bytecode suppors disappears :-)

From-SVN: r17432

26 years agoconfigure.in: Check for atol.
Jeffrey A Law [Tue, 20 Jan 1998 08:24:58 +0000 (08:24 +0000)]
configure.in: Check for atol.

        * configure.in: Check for atol.
Forgot to commit this one a few days ago.

From-SVN: r17431

26 years agomips.md (divsi3,divdi3,modsi3,moddi3,udivsi3,udivdi3, [...]): Handle mips16 div/mod...
Gavin Koch [Tue, 20 Jan 1998 08:01:08 +0000 (08:01 +0000)]
mips.md (divsi3,divdi3,modsi3,moddi3,udivsi3,udivdi3, [...]): Handle mips16 div/mod by a constant.

        * mips/mips.md (divsi3,divdi3,modsi3,moddi3,udivsi3,udivdi3,
        umodsi3,umoddi3): Handle mips16 div/mod by a constant.

From-SVN: r17430

26 years agoFix ChangeLog entry format.
Jeff Law [Tue, 20 Jan 1998 07:28:54 +0000 (00:28 -0700)]
Fix ChangeLog entry format.

From-SVN: r17429

26 years agoRebuilt.
Jeff Law [Tue, 20 Jan 1998 07:22:47 +0000 (00:22 -0700)]
Rebuilt.

From-SVN: r17428

26 years agotests from mark
Jason Merrill [Tue, 20 Jan 1998 00:57:39 +0000 (19:57 -0500)]
tests from mark

From-SVN: r17427

26 years agodecl.c (start_decl): Don't allow duplicate definitions of static data members.
Mark Mitchell [Mon, 19 Jan 1998 22:41:40 +0000 (22:41 +0000)]
decl.c (start_decl): Don't allow duplicate definitions of static data members.

* decl.c (start_decl): Don't allow duplicate definitions of static
data members.
* call.c (build_user_type_conversion_1): Handle user-defined
template conversion operators correctly.
* decl2.c (build_expr_from_tree): Issue an error message if the
object in a COMPONENT_REF is a TEMPLATE_DECL.
* typeck.c (incomplete_type_error): Handle TEMPLATE_TYPE_PARMs.
* class.c (is_local_class): New function.
* cp-tree.h (is_local_class): Declare it.
(last_tree): Likewise.
(begin_tree): Likewise.
(end_tree): Likewise.
(lookup_template_class): Change prototype.
* decl.c (cp_finish_decl): Check for NULL where necesary.
Consider FUNCTION_DECLS to declare objects with top-level binding,
when calling make_decl_rtl.
(grokdeclarator): Give members of local classes internal linkage.
(start_function): Remove declaration of last_tree.
(finish_function): Set flag_keep_inline_functions around call to
rest_of_compilation if we are processing a member function in a
local class.
(start_method): Call push_template_decl for member functions of
local classes in template functions.
* decl2.c (import_export_decl): Don't give external linkage to
instantiations of templates with internal linkage.
* parse.y (last_tree): Remove declaration.
(template_type): Pass extra parameter to lookup_template_class.
(self_template_type): Likewise.
(structsp): Move call to reset_specialization into left_curly.
(left_curly): Call reset_specialization, and begin_tree.
* pt.c (saved_trees): New variable.
(mangle_class_name_for_template): Change prototype.  Use
additional function context to name local classes in templates
correctly.
(classtype_mangled_name): Pass the context.
(push_template_decl): Handle local classes and templates, and
member functions for such classes.
(convert_nontype_parameter): Fix handling of pointer-to-member
constants.
(lookup_template_class): Handle local classes in templates.
(tsubst): Likewise.  Don't assume that template instantiations
have external linkage; pay attention to the template declaration.
(mark_decl_instantiated): Likewise.
(begin_tree): New function.
(end_tree): Likewise.
* decl.c (xref_basetypes): Don't call complete_type for basetypes
that involve template parameters; that can lead to infinite
recursion unnecessarily.
* pt.c (register_specialization): Do not register specializations
that aren't ready to be registered yet.
(check_explicit_specialization): Handle explicit specialization of
constructors and destructors.
(build_template_decl): New function.
(push_template_delc): Handle out-of-class specializations of
member templates.
        * pt.c (check_explicit_specialization): Set up the template
        information before registering the specialization.
        (coerce_template_parms): Fix thinko.
        (tsubst): Handle specializations of member templates correctly.
* class.c (finish_struct_methods): Remove calls to
check_explicit_specialization from here.
(finish_struct): And insert them here.
* cp-tree.h (perform_qualification_conversions): New function.
(perform_array_to_pointer_conversion): Likewise.
(begin_explicit_instantiation): Likewise.
(end_explicit_instantiation): Likewise.
(determine_specialization): Renamed from
determine_explicit_specialization.
(comp_template_parms): New function.
(processing_explicit_instantiation): New variable.
* cvt.c (perform_qualification_conversions): New function.
(perform_array_to_pointer_conversion): Likewise.
* decl.c (duplicate_decls): Don't consider template functions
alike unless they have the same parameters.  Refine handling of
instantiation/specialization mismatches.
(start_decl): Don't call pushdecl for template specializations,
since they don't affect overloading.
(start_function): Likewise
(grokfndecl): Call check_explicit_specialization a little later.
Don't call duplicate_decls for memberm template specializations.
(grokdeclarator): Don't update template_count for classes that are
themselves specializations.  Remove use of `2' as parameter to
grokfndecl since that value isn't used.
* lex.c (cons_up_default_function): Save and restore
processing_explicit_instantiation around calls to grokfield.
* parse.y (finish_member_template_decl): New function.
(component_decl_1): Use it.
(fn.def2): Likewise.
(template_arg_list_opt): New nonterminal.
(template_type): Use it.
(self_template_type): Likewise.
(template_id): Likewise.
(object_template_id): Likewise.
(notype_template_declarator): Likwise.
(begin_explicit_instantiation): Likewise.
(end_explicit_instantiation): Likewise.
(explicit_instantiation): Use them.
* pt.c (coerce_template_parms): Add parameters.
(processing_explicit_instantiation): New variable.
(convert_nontype_parameter): New function.
(determine_overloaded_function): Likewise.
(begin_explicit_instantiation): Likewise.
(end_explicit_instantiation): Likewise.
(retrieve_specialization): Likewise.
(register_specialization): Likewise.
(processing_explicit_specialization): Removed.
(determine_specialization): Handle specializations of member
functions of template class instantiations.
(check_explicit_specialization): Refine to conform to standard.
(comp_template_parms): New function.
(coerce_template_parms): Call convert_nontype_parameter.
(tsubst): Refine handling of member templates.  Use
register_specialization.
(instantiate_template): Use retrieve_specialization.
(do_decl_instantiation): Likewise.
(instantiate_decl): Likewise.
(type_unification): Improve handling of explict template
arguments.
* tree.c (mapcar): Return error_mark_node, rather than aborting,
on VAR_DECLS, FUNCTION_DECLS, and CONST_DECLS.
* typeck.c (build_unary_op): Call determine_specialization, rather
than determine_explicit_specialization.

From-SVN: r17426

26 years agoi386.md (push): Prohibit symbolic constants if flag_pic.
Richard Henderson [Mon, 19 Jan 1998 21:54:09 +0000 (13:54 -0800)]
i386.md (push): Prohibit symbolic constants if flag_pic.

* i386.md (push): Prohibit symbolic constants if flag_pic.
(movsi+1): Likewise for move to non-register.

From-SVN: r17425

26 years agoFix 32 bit host alpha ev6 target failure.
Jim Wilson [Mon, 19 Jan 1998 18:32:48 +0000 (18:32 +0000)]
Fix 32 bit host alpha ev6 target failure.

* alpha.c (mode_mask_operand): Accept 0xffffffff on 32 bit host.
(print_operand): Handle 0xffffffff on 32 bit host.

From-SVN: r17424

26 years agoFix build/host/target configure in settting of thread_file.
Jim Wilson [Mon, 19 Jan 1998 13:57:04 +0000 (13:57 +0000)]
Fix build/host/target configure in settting of thread_file.

* configure.in (thread_file): Rename uses before main loop to
target_thread_file.  Initialize to empty in main loop.  Set thread_file
to target_thread_file after main loop if not set.
* configure: Rebuild.

From-SVN: r17423

26 years agocvt.c (build_up_reference): A TARGET_EXPR has side effects.
Jason Merrill [Mon, 19 Jan 1998 13:21:59 +0000 (13:21 +0000)]
cvt.c (build_up_reference): A TARGET_EXPR has side effects.

* cvt.c (build_up_reference): A TARGET_EXPR has side effects.
14507

From-SVN: r17422

This page took 0.11418 seconds and 5 git commands to generate.