OSDN Git Service

pf3gnuchains/gcc-fork.git
25 years agoBump for snapshot
law [Thu, 8 Oct 1998 11:31:05 +0000 (11:31 +0000)]
Bump for snapshot

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22919 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * c-lex.c (remember_protocol_qualifiers): Handle RID_BYREF.
law [Thu, 8 Oct 1998 11:28:08 +0000 (11:28 +0000)]
    * c-lex.c (remember_protocol_qualifiers): Handle RID_BYREF.
        (init_lex): Initialize ridpointers[RID_BYREF].
        * c-lex.h (enum rid): Add RID_BYREF.
        * c-parse.gperf: Add RID_BYREF as a type qualifier.
        * objc/objc-act.c (is_objc_type_qualifiers): Handle RID_BYREF.
        (encode_type_qualifiers): Similarly
        * c-gperf.h: Rebuilt.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22918 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
law [Thu, 8 Oct 1998 11:23:35 +0000 (11:23 +0000)]
    * encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
        (objc_get_type_qualifiers): Similarly.
        * objc/encoding.h (_C_BYREF): Define.
        (_F_BYREF): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22917 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * typeck.c (unsigned_type): Only return TItype nodes when
law [Thu, 8 Oct 1998 05:04:57 +0000 (05:04 +0000)]
    * typeck.c (unsigned_type): Only return TItype nodes when
        HOST_BITS_PER_WIDE_INT is >= 64 bits.
        (signed_type): Similarly.
        * decl.c (intTI_type_node, unsigned_intTI_type_node): Only declare
        when HOST_BITS_PER_WIDE_INT is >= 64 bits.
        (init_decl_processing): Only create TItype nodes when
        HOST_BITS_PER_WIDE_INT is >= 64 bits.
        * cp-tree.h (intTI_type_node, unsigned_intTI_type_node): Only declare
        when HOST_BITS_PER_WIDE_INT is >= 64 bits.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22915 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * typeck (type_for_mode): Only return TItype nodes when
law [Thu, 8 Oct 1998 05:01:10 +0000 (05:01 +0000)]
    * typeck (type_for_mode): Only return TItype nodes when
        HOST_BITS_PER_WIDE_INT is >= 64 bits.
        (type_for_size): Similarly.
        * decl.c (intTI_type_node, unsigned_intTI_type_node): Only declare
        when HOST_BITS_PER_WIDE_INT is >= 64 bits.
        (init_decl_processing): Only create TItype nodes when
        HOST_BITS_PER_WIDE_INT is >= 64 bits.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22914 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * c-common.c (type_for_mode): Only return TItype nodes when
law [Thu, 8 Oct 1998 04:57:39 +0000 (04:57 +0000)]
    * c-common.c (type_for_mode): Only return TItype nodes when
        HOST_BITS_PER_WIDE_INT is >= 64 bits.
        * c-decl.c (intTI_type_node, unsigned_intTI_type_node): Only declare
        when HOST_BITS_PER_WIDE_INT is >= 64 bits.
        (init_decl_processing): Only create TItype nodes when
        HOST_BITS_PER_WIDE_INT is >= 64 bits.
        * c-tree.h (intTI_type_node, unsigned_intTI_type_node): Only declare
        when HOST_BITS_PER_WIDE_INT is >= 64 bits.
Forgot to commit with last change.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22913 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * c-common.c (type_for_mode): Only return TItype nodes when
law [Thu, 8 Oct 1998 04:37:30 +0000 (04:37 +0000)]
    * c-common.c (type_for_mode): Only return TItype nodes when
        HOST_BITS_PER_WIDE_INT is >= 64 bits.
        * c-decl.c (intTI_type_node, unsigned_intTI_type_node): Only declare
        when HOST_BITS_PER_WIDE_INT is >= 64 bits.
        (init_decl_processing): Only create TItype nodes when
        HOST_BITS_PER_WIDE_INT is >= 64 bits.
        * c-tree.h (intTI_type_node, unsigned_intTI_type_node): Only declare
        when HOST_BITS_PER_WIDE_INT is >= 64 bits.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22912 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * stmt.c (n_occurrences): New static function.
law [Thu, 8 Oct 1998 04:07:40 +0000 (04:07 +0000)]
    * stmt.c (n_occurrences): New static function.
        (expand_asm_operands): Verify that all constrains match in the
        number of alternatives.
        Verify that '+' or '=' are at the beginning of an output constraint.
        Don't allow '&' for input operands.
        Verify that '%' isn't written for the last operand.
        * reload.c (find_reloads): Abort if an asm is found with invalid
        constraints; all possible problems ought to be checked for earlier.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22911 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * flags.h (flag_branch_on_count_reg): Always declare
law [Thu, 8 Oct 1998 03:30:32 +0000 (03:30 +0000)]
* flags.h (flag_branch_on_count_reg): Always declare
* toplev.c (flag_branch_on_count_reg): Likewise.
* toplev.c: Fix typos.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22910 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * real.c (c4xtoe): Remove unused variables. Add some missing parens.
law [Thu, 8 Oct 1998 03:29:02 +0000 (03:29 +0000)]
    * real.c (c4xtoe): Remove unused variables.  Add some missing parens.
        (toc4x): Similarly.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22909 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * flow.c (find_basic_blocks): Calc upper bound for extra nops in
rth [Thu, 8 Oct 1998 01:26:18 +0000 (01:26 +0000)]
    * flow.c (find_basic_blocks): Calc upper bound for extra nops in
        max_uids_for_flow.
        (find_basic_blocks_1): Add a nop to the end of a basic block when
        a trailing call insn does not have abnormal control flow.
        * gcse.c (pre_transpout): New variable.
        (alloc_pre_mem, free_pre_mem, dump_pre_data): Bookkeeping for it.
        (compute_pre_transpout): Calculate it.
        (compute_pre_ppinout): Use it to eliminate impossible placements
        due to abnormal control flow through calls.
        (compute_pre_data): Call compute_pre_transpout.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22907 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoRevert accidental checkin of reload_life_analysis work.
law [Thu, 8 Oct 1998 01:16:56 +0000 (01:16 +0000)]
Revert accidental checkin of reload_life_analysis work.
        * reload1.c (reload): Call free before clobbering the memory
        locations or constants pointers.
And actually check this one in correctly.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22906 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoDaily bump.
law [Thu, 8 Oct 1998 00:45:02 +0000 (00:45 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22905 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * config/sparc/sol2-sld-64.h (ASM_CPU_SPEC): Fix typo.
davem [Wed, 7 Oct 1998 22:48:31 +0000 (22:48 +0000)]
* config/sparc/sol2-sld-64.h (ASM_CPU_SPEC): Fix typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22904 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * g++.old-deja/g++.other/using4.C: New test. Test using
oliva [Wed, 7 Oct 1998 21:22:16 +0000 (21:22 +0000)]
* g++.old-deja/g++.other/using4.C: New test.  Test using
  declarations of methods from base classes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22903 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * g++.old-deja/g++.ns/extern1.C: New test. Extern declarations
oliva [Wed, 7 Oct 1998 20:59:13 +0000 (20:59 +0000)]
* g++.old-deja/g++.ns/extern1.C: New test.  Extern declarations
  within functions should introduce names into the innermost
  enclosing namespace

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22902 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * g++.old-deja/g++.other/init7.C: New test: retry initialization
oliva [Wed, 7 Oct 1998 20:41:38 +0000 (20:41 +0000)]
* g++.old-deja/g++.other/init7.C: New test: retry initialization
  of static locals if first initialization throws

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22901 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoadd some short comments that should've been in the last checkin
raeburn [Wed, 7 Oct 1998 18:28:09 +0000 (18:28 +0000)]
add some short comments that should've been in the last checkin

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22900 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago* special/981006-1.c: New test. Make sure gcc doesn't lose track of the
raeburn [Wed, 7 Oct 1998 18:26:06 +0000 (18:26 +0000)]
* special/981006-1.c: New test.  Make sure gcc doesn't lose track of the
possible targets of tablejump insns.
* special/special.exp: Run it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22899 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago* config/mips/mips.md (tablejump_internal3, tablejump_internal4 and matching
raeburn [Wed, 7 Oct 1998 18:23:51 +0000 (18:23 +0000)]
* config/mips/mips.md (tablejump_internal3, tablejump_internal4 and matching
define_insns): Tack on a `use' of the table label, so flow analysis will
recognize a tablejump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22898 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * gcse.c (pre_insert_insn): Tweek to notice that calls do not
rth [Wed, 7 Oct 1998 17:36:32 +0000 (17:36 +0000)]
    * gcse.c (pre_insert_insn): Tweek to notice that calls do not
        always end basic blocks for abnormal edge reasons.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22897 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoMove definition of HANDLE_PRAGMA_PACK_PUSH_POP out of i386.h and into
nickc [Wed, 7 Oct 1998 14:50:58 +0000 (14:50 +0000)]
Move definition of HANDLE_PRAGMA_PACK_PUSH_POP out of i386.h and into
target OS specific headers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22896 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoFix spelling typo in comment.
nickc [Wed, 7 Oct 1998 14:48:02 +0000 (14:48 +0000)]
Fix spelling typo in comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22895 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoDo not insert packing attributes unless #pragma pack(push,<n>) is active.
nickc [Wed, 7 Oct 1998 14:41:42 +0000 (14:41 +0000)]
Do not insert packing attributes unless #pragma pack(push,<n>) is active.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22894 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoFix for irix6 -O0 bug, see testcase gcc.c-torture/compile/981007-1.c.
wilson [Wed, 7 Oct 1998 12:12:21 +0000 (12:12 +0000)]
Fix for irix6 -O0 bug, see testcase gcc.c-torture/compile/981007-1.c.
* expr.c (emit_group_store): Handle a PARALLEL destination.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22893 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoTestcase for emit_group_store patch.
wilson [Wed, 7 Oct 1998 12:07:52 +0000 (12:07 +0000)]
Testcase for emit_group_store patch.
* gcc.c-torture/compile/981007-1.c: New test for irix6 -O0 core dump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22892 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * gcse.c (pre_insert_insn): When a call ends a bb, insert
rth [Wed, 7 Oct 1998 10:08:16 +0000 (10:08 +0000)]
    * gcse.c (pre_insert_insn): When a call ends a bb, insert
        the new insns before the argument regs are loaded.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22891 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * gperf-2.7-19981006.pat: New file, patch for egcs-local gperf.
ghazi [Wed, 7 Oct 1998 10:03:01 +0000 (10:03 +0000)]
    * gperf-2.7-19981006.pat: New file, patch for egcs-local gperf.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22890 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoWarning fixes:
ghazi [Wed, 7 Oct 1998 09:57:38 +0000 (09:57 +0000)]
Warning fixes:
        * Makefile.in (c-gperf.h): Add -L KR-C -F ', 0, 0' flags to gperf.
        (c-parse.gperf): Update comments describing invocation flags.
        (c-gperf.h): Regenerate using gperf 2.7.1 (19981006 egcs).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22889 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoWarning fixes:
ghazi [Wed, 7 Oct 1998 09:50:45 +0000 (09:50 +0000)]
Warning fixes:
        * Makefile.in (hash.h): Add -L KR-C -F ', 0, 0' flags to gperf.
        (gxx.gperf): Update comments describing invocation flags.
        (hash.h): Regenerate using gperf 2.7.1 (19981006 egcs).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22888 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * jump.c (duplicate_loop_exit_test): Strip REG_WAS_0 notes off all
law [Wed, 7 Oct 1998 09:50:05 +0000 (09:50 +0000)]
* jump.c (duplicate_loop_exit_test): Strip REG_WAS_0 notes off all
insns we're going to copy.
* regclass.c (reg_scan_mark_refs): Don't test X for NULL_RTX.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22887 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * loop.c (count_one_set): Add prototype.
law [Wed, 7 Oct 1998 09:47:54 +0000 (09:47 +0000)]
    * loop.c (count_one_set): Add prototype.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22886 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago
law [Wed, 7 Oct 1998 09:45:58 +0000 (09:45 +0000)]

* reload1.c (reload): Call free before clobbering the memory
locations or constants pointers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22885 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * class.c (finish_struct_1): Add commentary on prevous change.
mmitchel [Wed, 7 Oct 1998 09:30:50 +0000 (09:30 +0000)]
* class.c (finish_struct_1): Add commentary on prevous change.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22884 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoWarning fixes:
ghazi [Wed, 7 Oct 1998 09:29:29 +0000 (09:29 +0000)]
Warning fixes:
        * Makefile.in (hash.h): Add -L KR-C -F ', 0, 0, 0' flags to gperf.
        (hash.h): Regenerate using gperf 2.7.1 (19981006 egcs).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22883 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoWarning fixes:
ghazi [Wed, 7 Oct 1998 09:18:39 +0000 (09:18 +0000)]
Warning fixes:
        * Makefile.in (keyword.h): Add -L KR-C -F ', 0' flags to gperf.
        (keyword.h): Regenerate using gperf 2.7.1 (19981006 egcs).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22882 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * objc/sarray.h: Make boffset be an unsigned long when sparc so it
davem [Wed, 7 Oct 1998 02:21:54 +0000 (02:21 +0000)]
* objc/sarray.h: Make boffset be an unsigned long when sparc so it
works out on 64-bit systems.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22881 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Rework
davem [Wed, 7 Oct 1998 02:17:57 +0000 (02:17 +0000)]
* config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Rework
for efficiency by checking whether we need to modify the current
stack permission at all.
(ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Define.
* config/sparc/sparc.c (sparc_initialize_trampoline): Emit
__enable_execute_stack libcall here too if
TRANSFER_FROM_TRAMPOLINE is defined.
* config/sparc/sparc.h: Set TARGET_ARCH32 to a constant if
IN_LIBGCC2.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22880 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * cp-tree.h (vtbl_ptr_type_node): New variable.
mmitchel [Wed, 7 Oct 1998 02:08:55 +0000 (02:08 +0000)]
* cp-tree.h (vtbl_ptr_type_node): New variable.
* class.c (build_vtbl_ref): Don't indirect through the vptr; it's
already of the right type.
(finish_struct_1): Make the vptr be of type vtbl_ptr_type_node.
Simplify code to grow vtable.
* decl.c (vtbl_ptr_type_node): Define.
(init_decl_processing): Initialize it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22879 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * Makefile.in (DRIVER_DEFINES): Remove last change.
law [Wed, 7 Oct 1998 01:29:42 +0000 (01:29 +0000)]
    * Makefile.in (DRIVER_DEFINES): Remove last change.
Depends on other changes not in the tree yet.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22878 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoDaily bump.
law [Wed, 7 Oct 1998 00:45:03 +0000 (00:45 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22877 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * caller-save.c (restore_referenced_regs): Lose mode argument.
law [Wed, 7 Oct 1998 00:13:49 +0000 (00:13 +0000)]
* caller-save.c (restore_referenced_regs): Lose mode argument.
(insert_save): Lose mode argument.
(insert_restore): Lose mode argument.
(insert_one_insn): Lose mode argument.
(save_call_clobbered_regs): Lose mode argument.
(setup_save_areas): Take no argument and return void.  All callers
changed.
Don't verify validity of memory addresses.
* reload.h (setup_save_ares): Adjust prototype.
(save_call_clobbered_regs): Likewise.
* reload1.c (delete_caller_save_insns): New function.
(caller_save_spill_class): Delete variable.
(caller_save_group_size): Delete variable.
(reload): Call setup_save_areas and save_call_clobbered_regs
in the main loop, before calling calculate_needs_all_insns.
Don't call save_call_clobbered_regs after the loop.
Call delete_caller_save_insns at the end of an iteration if
something changed.
Delete code to manage caller_save_spill_class.
Emit the final note before setting reload_first_uid.
Simplify test that determines whether reload_as_needed gets run.
(calculate_needs): Delete code to manage caller_save_spill_class.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22876 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * loop.c (count_one_set): New static function, broken out of
law [Tue, 6 Oct 1998 20:38:40 +0000 (20:38 +0000)]
* loop.c (count_one_set): New static function, broken out of
count_loop_regs_set
(count_loop_regs_set): Call it.
* global.c (mark_reg_store): Handle clobbers here by not calling
set_preference.
(mark_reg_clobber): Just call mark_reg_store after ensuring SETTER
is in fact a clobber.
* integrate.c (process_reg_param): New function, broken out of
expand_inline_function.
(expand_inline_function): Call it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22875 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * Makefile.in: Revert last patch.
law [Tue, 6 Oct 1998 20:18:21 +0000 (20:18 +0000)]
    * Makefile.in: Revert last patch.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22874 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * i386.md (addsidi3_1): Delete unused variable temp.
law [Tue, 6 Oct 1998 19:41:52 +0000 (19:41 +0000)]
    * i386.md (addsidi3_1): Delete unused variable temp.
        (addsidi3_2): Likewise.
        (clstrstrsi): Delete unused variable addr1.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22873 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * rtl.h: Don't declare any functions also declared in recog.h.
law [Tue, 6 Oct 1998 19:39:34 +0000 (19:39 +0000)]
    * rtl.h: Don't declare any functions also declared in recog.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22872 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * Makefile.in (INCLUDES): Make it multilib-friendly
law [Tue, 6 Oct 1998 19:33:27 +0000 (19:33 +0000)]
    * Makefile.in (INCLUDES): Make it multilib-friendly

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22871 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * collect2.c (main): Initialize ld_file_name.
rth [Tue, 6 Oct 1998 15:43:24 +0000 (15:43 +0000)]
    * collect2.c (main): Initialize ld_file_name.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22870 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * cp-tree.def (PTRMEM_CST): New tree node.
mmitchel [Tue, 6 Oct 1998 14:20:30 +0000 (14:20 +0000)]
* cp-tree.def (PTRMEM_CST): New tree node.
* cp-tree.h (ptrmem_cst): New type.
(lang_type): Remove local_typedecls.
(dummy): Increase to 12 bits from 11.
(CLASSTYPE_LOCAL_TYPEDECLS): Remove.
(PTRMEM_CST_CLASS): New macro.
(PTRMEM_CST_MEMBER): Likewise.
(current_access_specifier): New variable.
(current_class_type): Remove duplicate declaration.
(finish_struct): Change prototype.
(unreverse_member_declarations): New function.
(pushdecl_class_level): Change prototype.
(grok_enum_decls): Remove.
(fixup_anonymous_union): New function.
(grok_x_components): Change prototype.
(tsubst_chain): Remove.
(finish_member_template_decl): Likewise.
(check_explicit_specialization): Fix indentation.
(finish_class_definition): Change prototype.
(finish_member_class_template): Likewise.
(finish_member_declaration): New function.
(check_multiple_declarators): Likewise.
* class.c (class_stack_node_t): New type.
(current_class_base): Remove.
(current_class_stack): Change type.
(current_access_specifier): New variable.
(grow_method): Remove.
(check_member_decl_is_same_in_complete_scope): Break out from
finish_struct.
(make_method_vec): New function.
(free_method_vec): Likewise.
(add_implicitly_declared_members): Break out from finish_struct_1.
(free_method_vecs): New variable.
(add_method): Rework for direct use from parser.
(handle_using_decl): Watch for NULL_TREE while iterating through
CLASSTYPE_METHOD_VEC.
(finish_struct_methods): Don't build CLASSTYPE_METHOD_VEC here;
just do some error-checking.
(warn_hidden): Change iteration through CLASSTYPE_METHOD_VEC.
(finish_struct_1): Simplify.  Use add_implicitly_declared_members.
(finish_struct): Change prototype.  Simplify; fields and methods
are already set up at this point.
(init_class_processing): Set up current_class_stack.
(pushclass): Save current_access_specifier.
(popclass): Restore it.
(currently_open_class): Simplify.
(build_self_reference): Remove use of CLASSTYPE_LOCAL_TYPEDECLS.
* decl.c (saved_scope): Add access_specifier.
(maybe_push_to_top_level): Save it.
(pop_from_top_level): Restore it.
(maybe_process_template_type_declaration): Use
finish_member_declaration.
(pushtag): Likewise.
(pushdecl_class_level): Don't return a value.
(fixup_anonymous_union): Break out from grok_x_components.
(shadow_tag): Use it.
(xref_tag): Complain about using an elaborated type specifier to
reference a template type parameter or typedef name.
(xref_basetypes): Don't set CLASSTYPE_LOCAL_TYPEDECLS.
(current_local_enum): Remove.
(build_enumerator): Call finish_member_declaration.
(grok_enum_decls): Remove.
* decl2.c (grok_x_components): Simplify.
(check_classfn): Change iteration through CLASSTYPE_METHOD_VEC.
(grokfield): Don't set CLASSTYPE_LOCAL_TYPEDECLS.
(merge_functions): Add to comment.
(arg_assoc_type): Prototype.
(arg_assoc): Pass as many arguments as there are parameters.
* error.c (dump_expr): Handle PTRMEM_CST.  Improve handling of
OFFSET_REF.
* expr.c (cpls_expand_expr): Remove dead code.  Handle
PTRMEM_CST.
* friend.c (do_friend): Lookup friends when in nested classes.
Change comments.
* init.c (build_offset_ref): Do lookup even for classes that are
only partially defined.
(decl_constant_value): Remove dead code.
* method.c (build_overload_value): Remove hack where by TYPE was
not a TYPE.  Handle PTRMEM_CST.
(build_template_parm_names): Don't pass a PARM_DECL where a TYPE
should go.
* parse.y (components, notype_components, component_decl,
component_decl_1, component_declarator, component_declarator0):
Now all are itype rather than ttype.  Rework to add members to
classes on the fly.
(typesqpecqual_reserved): Use check_multiple_declarators.
(structsp): Update class to finish_class_definition.
(do_xref_defn): Unsplit into named_class_head.
(access_specifier): Set current_access_specifier.
* pt.c (set_current_access_from_decl): New function.
(finish_member_template_decl): Don't take the parameters.
(comp_template_args): Make more robust.
(lookup_template_class): Don't use current_local_enum.
(for_each_template_parm): Handle PTRMEM_CST.
(instantiate_class_template): Use set_current_access_from_decl,
finish_member_declaration and unreverse_member_declarations.  Set
lineno/input_filename before generating implicit member functions.
(type_unification_real): Don't assume back-unification happens
only for the last argument.
(regenerate_decl_from_template): Call pushclass a bit earlier.
(tsubst_chain): Remove.
(tsubst_enum): Use set_current_access_from_decl.
(set_mangled_name_for_template_decl): Fix indentation.
* search.c (lookup_fnfields_1): Change iteration through
CLASSTYPE_METHOD_VEC.
(dfs_pushdecls): Likewise.
(dfs_compress_decls): Likewise.
(add_conversions): Likewise.
* semantics.c (finish_class_definition): Don't take components.
Change call to finish_struct.
(finish_member_declaration): New function.
(finish_member_class_template): Don't take template parameters.
Change call to grok_x_components.  Call finish_member_template_decl.
(check_multiple_declarators): New function.
* sig.c (append_signature_fields): Work from the TYPE_METHODS, not
a passed in fieldlist.
* tree.c (search_tree): Handle PTRMEM_CST.
(mapcar): Likewise.
* typeck.c (unary_complex_lvalue): Build PTRMEM_CSTs, not
INTEGER_CSTs, for pointer-to-data members.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22869 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * config/sparc/sysv4.h (ASM_OUTPUT_SECTION_NAME): Don't
clm [Tue, 6 Oct 1998 13:47:21 +0000 (13:47 +0000)]
    * config/sparc/sysv4.h (ASM_OUTPUT_SECTION_NAME):  Don't
        check for flag_function_sections.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22868 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * call.c (resolve_args): Resolve template specializations, if
mmitchel [Tue, 6 Oct 1998 12:38:05 +0000 (12:38 +0000)]
* call.c (resolve_args): Resolve template specializations, if
possible.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22867 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * cse.c (insert_regs): Fix bug in Sep 24 change.
amylaar [Tue, 6 Oct 1998 12:04:55 +0000 (12:04 +0000)]
* cse.c (insert_regs): Fix bug in Sep 24 change.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22866 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoCleanup for -fdump-unnumbered:
amylaar [Tue, 6 Oct 1998 09:03:38 +0000 (09:03 +0000)]
Cleanup for -fdump-unnumbered:
* flags.h (flag_dump_unnumbered): Declare.
* toplev.c (flag_dump_unnumbered): Don't declare.
* print-rtl.c (flags.h): Include.
(print_rtl_single): Add return value.
* rtl.h (print_rtl_single): Update declaration.
* flow.c (flag_dump_unnumbered): Don't declare.
(print_rtl_with_bb): Use return value of print_rtl_single.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22865 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoWarning fixes:
ghazi [Tue, 6 Oct 1998 05:04:32 +0000 (05:04 +0000)]
Warning fixes:
        * Makefile.in (spew.o): Depend on toplev.h.
        * call.c (compare_ics): Initialize variables `deref_from_type2',
        `deref_to_type1' and `deref_to_type2'.
        * except.c (get_eh_type): Hide prototype and definition.
        (process_start_catch_block_old): Remove unused static prototype.
        * pt.c (tsubst_decl): Initialize variable `argvec'.
        * spew.c: Include toplev.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22864 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoDaily bump.
law [Tue, 6 Oct 1998 00:45:02 +0000 (00:45 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22863 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * Makefile.in (stupid.o): Update dependencies.
law [Tue, 6 Oct 1998 00:39:23 +0000 (00:39 +0000)]
* Makefile.in (stupid.o): Update dependencies.
(global.o): Likewise.
* global.c: Include reload.h
(reg_becomes_live): New function.
(reg_dies): New function.
(build_insn_chain): New function.
(global_alloc): Call build_insn_chain before calling reload.
* reload.h (struct needs): New structure definition.
(struct insn_chain): Likewise.
(reload_insn_chain): Declare variable.
(new_insn_chain): Declare function.
* reload1.c (reload_startobj): New variable.
(reload_insn_chain): New variable.
(unused_insn_chains): New variable.
(new_insn_chain): New function.
(init_reload): Initialize reload_startobj, not reload_firstobj.
(reload): Initialize reload_firstobj.
Before returning, free everything on the reload_obstack.
* stupid.c: Include insn-config.h, reload.h and basic-block.h.
(reg_where_dead_chain, reg_where_born_exact, reg_where_born_clobber,
current_chain): New variables.
(reg_where_born): Delete variable.
(REG_WHERE_BORN): New macro.
(find_clobbered_regs): New function.
(stupid_life_analysis): Don't allocate/free reg_where_born.
Allocate and free reg_where_born_exact, reg_where_born_clobber,
reg_where_dead_chain.
Use REG_WHERE_BORN instead of reg_where_born.
While processing the insns, build the reload_insn_chain with
information about register lifetimes.
(stupid_reg_compare): Use REG_WHERE_BORN instead of reg_where_born.
(stupid_mark_refs): Replace arg INSN with arg CHAIN.  All callers
changed.
Compute and information about birth and death of pseudo registers in
reg_where_dead_chain, reg_where_born_exact and reg_where_born_clobber.
Delete code to set elements of reg_where_born.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22862 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * g++.old-deja/g++.pt/friend35.C: New test. A template function
oliva [Tue, 6 Oct 1998 00:24:05 +0000 (00:24 +0000)]
* g++.old-deja/g++.pt/friend35.C: New test.  A template function
  must be declared before its specializations can be named in friend
  declarations.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22861 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago0
bothner [Mon, 5 Oct 1998 22:36:18 +0000 (22:36 +0000)]
0
* tree.def (GOTO_EXPR): Modified documentation.
* expr.c (expand_expr): Expand GOTO_EXPR into a goto or a computed
  goto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22860 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago8
bothner [Mon, 5 Oct 1998 22:36:16 +0000 (22:36 +0000)]
8
* tree.def (GOTO_EXPR): Modified documentation.
* expr.c (expand_expr): Expand GOTO_EXPR into a goto or a computed
  goto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22859 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * pt.c (instantiate_decl): Do save and restore file position.
jason [Mon, 5 Oct 1998 22:10:23 +0000 (22:10 +0000)]
* pt.c (instantiate_decl): Do save and restore file position.
* method.c (build_decl_overload_real): Clear
numeric_output_need_bar after __.
* call.c (build_new_method_call): Issue 'incomplete type' error,
if class is not defined.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22856 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * unroll.c (loop_iteration_var, loop_initial_value, loop_increment
dje [Mon, 5 Oct 1998 22:03:25 +0000 (22:03 +0000)]
    * unroll.c (loop_iteration_var, loop_initial_value, loop_increment
        loop_final_value, loop_comparison_code): No longer static.
        (unroll_loop): Delete loop_start_value update.
        * loop.h (loop_iteration_var, loop_initial_value, loop_increment,
        loop_final_value, loop_comparison_code): Extern.
        (loop_start_value): Delete extern.
        * loop.c (loop_can_insert_bct, loop_increment, loop_start_value,
        loop_comparison_value, loop_comparison_code): Delete.
        (loop_optimize): Remove initialization for deleted variables.
        (strength_reduce): Delete analyze_loop_iterations call.  Only call
        insert_bct if flag_branch_count_on_reg set.
        (analyze_loop_iterations): Delete.
        (insert_bct): Remove iteration count calculation.  Move checks for
        viable BCT optimization to here.  Obtain iteration count from
        loop_iterations and correct for unrolling.  Check for enough
        iteration to be beneficial.  Comment out runtime iteration count
        case.
        (insert_bct): Print iteration count in dump file.  Remove
        loop_var_mode and use word_mode directly.
        * rs6000.h (processor_type): Add PROCESSOR_PPC604e.
        * rs6000.c (rs6000_override_options): Use it.
        (optimization_options): Enable use of flag_branch_on_count_reg.
        * rs6000.md (define_function_unit): Describe 604e.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22852 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * call.c (build_object_call): Move declaration of variable
ghazi [Mon, 5 Oct 1998 21:31:14 +0000 (21:31 +0000)]
    * call.c (build_object_call): Move declaration of variable
        `fn' into the scope where it is used.  Don't access variable
        `fn' when it is uninitialized, instead use `fns'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22850 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * call.c (build_object_call): Move declaration of variable
ghazi [Mon, 5 Oct 1998 21:13:46 +0000 (21:13 +0000)]
    * call.c (build_object_call): Move declaration of variable
        `fn' into the scope where it is used.  Don't access variable
        `fn' when it is uninitialized, instead use `fns'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22849 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * loop.c (move_movables): Corrected threshold calculation for
law [Mon, 5 Oct 1998 20:48:22 +0000 (20:48 +0000)]
    * loop.c (move_movables): Corrected threshold calculation for
        moved_once registers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22847 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * loop.c (combine_givs_p): Fix test for identical givs.
law [Mon, 5 Oct 1998 20:20:39 +0000 (20:20 +0000)]
    * loop.c (combine_givs_p): Fix test for identical givs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22845 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago1998-10-05 Dave Love <d.love@dl.ac.uk>
fx [Mon, 5 Oct 1998 11:45:31 +0000 (11:45 +0000)]
1998-10-05  Dave Love  <d.love@dl.ac.uk>
* g77.f-torture/execute/u77-test.f: Add regression test for RAND.
* g77.f-torture/execute/io1.f: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22844 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoAdd regression test for RAND.
fx [Mon, 5 Oct 1998 11:44:43 +0000 (11:44 +0000)]
Add regression test for RAND.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22843 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoNew test.
fx [Mon, 5 Oct 1998 11:44:03 +0000 (11:44 +0000)]
New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22842 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * warn_summary (subdirectoryFilter): New shell function to
ghazi [Mon, 5 Oct 1998 11:27:05 +0000 (11:27 +0000)]
   * warn_summary (subdirectoryFilter): New shell function to
       optionally filter in/out gcc subdirectories when summarizing
       warnings.  Add new flags to support subdirectory filtering.
       Also, ensure the bootstrap stage is a number.  Add some more C
       keywords that are preserved in the "warning type" summary and
       tighten up the "arg ???" regexp.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22839 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoIf errorcount nonzero, don't call abort if the function is already defined.
nickc [Mon, 5 Oct 1998 10:12:39 +0000 (10:12 +0000)]
If errorcount nonzero, don't call abort if the function is already defined.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22836 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago8
law [Mon, 5 Oct 1998 09:05:58 +0000 (09:05 +0000)]
8
        * combine.c (simplify_rtx): Do not replace TRUNCATE with a SUBREG if
        truncation is not a no-op.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22835 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago
law [Mon, 5 Oct 1998 09:05:56 +0000 (09:05 +0000)]

        * combine.c (simplify_rtx): Do not replace TRUNCATE with a SUBREG if
        truncation is not a no-op.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22834 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoBump for snapshot
law [Mon, 5 Oct 1998 09:02:11 +0000 (09:02 +0000)]
Bump for snapshot

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22832 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoBump for snapshot
law [Mon, 5 Oct 1998 08:19:58 +0000 (08:19 +0000)]
Bump for snapshot

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22831 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoDaily bump.
law [Mon, 5 Oct 1998 00:45:02 +0000 (00:45 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22830 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * Makefile.in (s-libi77): Depend on i77.
law [Mon, 5 Oct 1998 00:17:29 +0000 (00:17 +0000)]
    * Makefile.in (s-libi77): Depend on i77.
        (s-libf77): Depend on i77.
        (s-libu77): Depend on u77.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22829 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * expmed.c (expand_divmod): Don't widen for computing remainder
law [Mon, 5 Oct 1998 00:08:56 +0000 (00:08 +0000)]
    * expmed.c (expand_divmod): Don't widen for computing remainder
        if we seem to have a divmod pattern for needed mode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22828 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * cpplib.c (macroexpand): Correct off-by-one error in handling
law [Mon, 5 Oct 1998 00:03:35 +0000 (00:03 +0000)]
    * cpplib.c (macroexpand): Correct off-by-one error in handling
        of escapes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22827 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * combine.c (expand_field_assignment): Don't do bitwise operations
rth [Sun, 4 Oct 1998 23:59:58 +0000 (23:59 +0000)]
    * combine.c (expand_field_assignment): Don't do bitwise operations
        on MODE_FLOAT; pun to MODE_INT if possible.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22826 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * errfn.c (cp_thing): Print buf as a string not as a printf format
jason [Sun, 4 Oct 1998 21:12:11 +0000 (21:12 +0000)]
* errfn.c (cp_thing): Print buf as a string not as a printf format
to avoid problems with the operator%. Consequently, `%%' sequences
in format are copied as `%' in buf.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22825 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * pt.c (pop_tinst_level): Call extract_interface_info.
jason [Sun, 4 Oct 1998 20:10:49 +0000 (20:10 +0000)]
* pt.c (pop_tinst_level): Call extract_interface_info.
(instantiate_decl): Don't save and restore file position.
* decl.c (cp_finish_decl): Make statics in extern inlines and
templates common, if possible and the target doesn't support weak
symbols.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22824 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * tlink.c (scan_linker_output): Recognize errors from irix 6.2
jason [Sun, 4 Oct 1998 19:37:42 +0000 (19:37 +0000)]
* tlink.c (scan_linker_output): Recognize errors from irix 6.2
linker.  Recognize mangled names in quotes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22823 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoCorrect typo in robertl's most recent entry.
robertl [Sun, 4 Oct 1998 18:01:59 +0000 (18:01 +0000)]
Correct typo in robertl's most recent entry.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22822 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoupdate
jason [Sun, 4 Oct 1998 16:21:01 +0000 (16:21 +0000)]
update

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22821 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * decl.c (grokdeclarator): Remove redundant calls to
jason [Sun, 4 Oct 1998 16:20:59 +0000 (16:20 +0000)]
* decl.c (grokdeclarator): Remove redundant calls to
build_type_variant and some duplicated code.
* sig.c (build_signature_reference_type): Only take the type parm.
(build_signature_pointer_type): Likewise.
* tree.c (build_cplus_method_type): Adjust.
* cp-tree.h: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22820 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agomark XFAIL where appropriate
oliva [Sun, 4 Oct 1998 15:44:37 +0000 (15:44 +0000)]
mark XFAIL where appropriate

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22819 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * g++.old-deja/g++.pt/overload5.C: New test; initialize variable
oliva [Sun, 4 Oct 1998 15:31:58 +0000 (15:31 +0000)]
* g++.old-deja/g++.pt/overload5.C: New test; initialize variable
  with pointer to template function, for which no argument deduction
  is possible
* g++.old-deja/g++.pt/overload4.C: New test; passing pointer to
specialization of template function as argument to template
function
* g++.old-deja/g++.other/access2.C: New test; Inner class
shouldn't have privileged access to Outer's names

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22818 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * call.c (build_over_call): Make pedwarns about dropped qualifiers
mmitchel [Sun, 4 Oct 1998 11:36:26 +0000 (11:36 +0000)]
* call.c (build_over_call): Make pedwarns about dropped qualifiers
into full-fledged errors.
* cvt.c (convert_to_reference): Likewise.
* typeck.c (convert_for_assignment): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22809 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * search.c (expand_upcast_vtables): In addition to unsetting
mmitchel [Sun, 4 Oct 1998 11:17:08 +0000 (11:17 +0000)]
* search.c (expand_upcast_vtables): In addition to unsetting
TREE_READONLY, remove top-level const type qualifier.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22808 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * config/sparc/sparc.md (ashldi3+1): Name it ashldi3_sp64.
davem [Sun, 4 Oct 1998 04:05:38 +0000 (04:05 +0000)]
    * config/sparc/sparc.md (ashldi3+1): Name it ashldi3_sp64.
(ashlsi3_const1, ashldi3_const1): New combiner patterns.
(ashrsi3_extend, ashrsi3_extend2): New combiner patterns.
(lshrsi3_extend, lshrsi3_extend2): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22805 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * function.c (purge_addressof_1): If trying to take a sub-word
davem [Sun, 4 Oct 1998 01:29:21 +0000 (01:29 +0000)]
* function.c (purge_addressof_1): If trying to take a sub-word
integral piece of a floating point mode, put it on the stack.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22804 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoDaily bump.
law [Sun, 4 Oct 1998 00:45:02 +0000 (00:45 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22803 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * class.c (current_class_ptr, current_class_ref): Clarify
mmitchel [Sat, 3 Oct 1998 23:11:19 +0000 (23:11 +0000)]
* class.c (current_class_ptr, current_class_ref): Clarify
documentation.
* cvt.c (ocp_convert): Don't expect fold to remove all trivial
NOP type conversions.
* decl.c (decls_match): Use comptypes directly; ignore
qualifiers on the DECL.
(duplicate_decls): Remove qualifier checks on DECL.
(grokdeclarator): Make the type built up include top-level
qualifiers.
* decl2.c (do_dtors): Fix spelling error.
* error.c (dump_simple_decl): Don't look at qualifiers on the decl
when printing type information.
* init.c (build_new_1): Add documentation.  Deal with the fact
that type of allocated memory now contains qualifiers.
* lex.c (is_global): Improve error-recovery.
* sig.c (build_member_function_pointer): Don't cast away const
on fields of sigtable_entry_type.
* tree.c (lvalue_type): Don't look at top-level qualifiers on
expressions.
* typeck.c (decay_conversion): Likewise.
(build_component_ref): Make sure the type of the COMPONENT_REF
contains top-level qualifiers, as appropriate.  Improve
error-handling.
(build_indirect_ref): Simplify.  Don't strip top-level qualifiers.
(build_array_ref): Likewise.
(build_unary_op): Improve error-recovery.
(unary_complex_lvalue): Make taking the address a bound member
function an error, not a sorry.
(build_conditional_expr): Look at the type qualifiers, not the
qualifiers on the expression itself.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22802 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agonew
jason [Sat, 3 Oct 1998 22:59:10 +0000 (22:59 +0000)]
new

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22801 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * decl2.c (merge_functions): Remove duplicates.
jason [Sat, 3 Oct 1998 22:53:37 +0000 (22:53 +0000)]
* decl2.c (merge_functions): Remove duplicates.
* decl2.c: Add -f{no-,}implicit-inline-templates.
(lang_decode_option): Unset it if -frepo.
(import_export_decl): Check it.
* decl.c (lookup_name_real): Template parms also take precedence
over implicit typename.  Only warn if yylex.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22800 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * alpha/linux.h (CPP_PREDEFINES): Define __alpha__ for imake.
rth [Sat, 3 Oct 1998 19:02:05 +0000 (19:02 +0000)]
    * alpha/linux.h (CPP_PREDEFINES): Define __alpha__ for imake.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22796 138bc75d-0d04-0410-961f-82ee72b054a4

25 years agoupdate
jason [Sat, 3 Oct 1998 16:49:31 +0000 (16:49 +0000)]
update

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22795 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * typeck.c (build_conditional_expr): Only fold if ifexp is an
jason [Sat, 3 Oct 1998 15:56:25 +0000 (15:56 +0000)]
* typeck.c (build_conditional_expr): Only fold if ifexp is an
INTEGER_CST.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22794 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * decl2.c (finish_vtable_vardecl): Check DECL_INTERFACE_KNOWN
jason [Sat, 3 Oct 1998 15:46:48 +0000 (15:46 +0000)]
* decl2.c (finish_vtable_vardecl): Check DECL_INTERFACE_KNOWN
instead of linkage.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22793 138bc75d-0d04-0410-961f-82ee72b054a4

25 years ago * PROJECTS: Remove template friends.
jason [Sat, 3 Oct 1998 14:47:54 +0000 (14:47 +0000)]
* PROJECTS: Remove template friends.
* collect2.c (sort_ids): Remove unused variable.
* tm.texi (MATH_LIBRARY): Document.
(NEED_MATH_LIBRARY): Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22792 138bc75d-0d04-0410-961f-82ee72b054a4