Commit Graph

18949 Commits

Author SHA1 Message Date
Jeff Law
5d4a5ee6d9 Final changes from devo<->egcs merge.
Final changes from devo<->egcs merge.  Ugh, a year of configury/Makefile
hacking.

From-SVN: r23012
1998-10-12 04:44:57 -06:00
John Wehle
fdb8a883a4 flow.c: Update comment.
* flow.c: Update comment.
        (notice_stack_pointer_modification): New static function.
        (record_volatile_insns): Use it.
        (mark_regs_live_at_end): Mark the stack pointer as alive
        at the end of the function if current_function_sp_is_unchanging
        is set.
        (life_analysis_1): Set current_function_sp_is_unchanging.
        * function.c: Define it.
        (init_function_start): Initialize it.
        * output.h: Declare it.
        * reorg.c (fill_simple_delay_slots, dbr_schedule): Mark
        the stack pointer as alive at the end of the function if
        current_function_sp_is_unchanging is set.
        * i386.c (ix86_epilogue): Optimize the restoring
        of the stack pointer.

From-SVN: r23009
1998-10-12 04:06:49 -06:00
Alexandre Oliva
3babe36c37 config.shared (depend.new): delete libc-lock.h from dependencies, and fix _G_config.h -> $(_G_CONFIG_H) rule
* config.shared (depend.new): delete libc-lock.h from
	dependencies, and fix _G_config.h -> $(_G_CONFIG_H) rule
	* depend: Rebuilt.

From-SVN: r23008
1998-10-12 09:28:02 +00:00
Alexandre Oliva
a5703c818f instantiate5.C: New test.
* g++.old-deja/g++.pt/instantiate5.C: New test.  `global
	constructors' name is not unique
	* g++.old-deja/g++.pt/instantiate5.cc: ditto
	* g++.old-deja/g++.pt/instantiate5-main.cc: ditto

From-SVN: r23007
1998-10-12 09:25:50 +00:00
Alexandre Oliva
ba5494e3bc explicit74.C: New test.
* g++.old-deja/g++.pt/explicit74.C: New test.  Explicit
 	instantiation of template produces incorrect code for delete
 	expression.

From-SVN: r23006
1998-10-12 05:12:44 +00:00
Dave Love
9eb3f9c994 configure.in: Reorder Makefile, g2c.h in AC_OUTPUT.
1998-10-12  Dave Love  <d.love@dl.ac.uk>
	* configure.in: Reorder Makefile, g2c.h in AC_OUTPUT.

From-SVN: r23005
1998-10-12 02:52:16 +00:00
Jason Merrill
ecc1211d56 t-cygwin32 (TARGET_LIBGCC2_CFLAGS): Define.
* i386/t-cygwin32 (TARGET_LIBGCC2_CFLAGS): Define.
(cp)	* inc/typeinfo: Add #pragma interface.
	(operator!=): Just call operator==.
	* tinfo.cc: Add #pragma implementation.
	(operator==): Move from inc/typeinfo and tinfo2.cc.
	Check __COMMON_UNRELIABLE instead of _WIN32.

From-SVN: r23004
1998-10-11 22:14:03 -04:00
Jason Merrill
acf82af24f typeck2.c (my_friendly_abort): Add URL.
* typeck2.c (my_friendly_abort): Add URL.
	* decl.c (start_method): Added extra parameter for attributes.
	* cp-tree.h (start_method): Update prototype.
	* parse.y (fn.def2): Update start_method parameter list.

From-SVN: r23003
1998-10-11 22:08:18 -04:00
Jeffrey A Law
bfbd500aaa Bump for snapshot
From-SVN: r23001
1998-10-11 19:22:57 -06:00
Jeff Law
93a945d9ae Daily bump.
From-SVN: r23000
1998-10-11 18:45:02 -06:00
Alexandre Oliva
4f0af2c1e8 init8.C: New test.
* g++.old-deja/g++.other/init8.C: New test.  uninitialized
 	automatic array of const is ill-formed

From-SVN: r22999
1998-10-11 22:52:49 +00:00
Michael Hayes
44e5b6c170 Add Michael Hayes as c4x maintainer
From-SVN: r22998
1998-10-11 21:38:14 +00:00
Robert Lipe
7169a02931 c-pragma.c (handle_pragma_token): If passed a token instead of a tree, use that as the pack value.
* c-pragma.c (handle_pragma_token): If passed a token instead
        of a tree, use that as the pack value.

From-SVN: r22997
1998-10-11 21:05:04 +00:00
Alexandre Oliva
411e094cbe ttp53.C: New test.
* g++.old-deja/g++.pt/ttp53.C: New test.  incorrect substitution
	of template parameter?

From-SVN: r22996
1998-10-11 19:59:27 +00:00
Alexandre Oliva
7c7bfd9114 conv3.C: New test.
* g++.old-deja/g++.other/conv3.C: New test.  conversion discards
	const

From-SVN: r22995
1998-10-11 19:36:47 +00:00
Alexandre Oliva
9896d23c07 pmf2.C: New test.
* g++.old-deja/g++.other/pmf2.C: New test.  invalid
	pointer-to-member expression

From-SVN: r22994
1998-10-11 19:29:17 +00:00
Alexandre Oliva
5adc18d7cb friend5.C: New test.
* g++.old-deja/g++.other/friend5.C: New test.  bogus friend
	declaration causes ICE

From-SVN: r22993
1998-10-11 19:23:16 +00:00
Alexandre Oliva
72b1c4daac main1.C: New test.
* g++.old-deja/g++.ns/main1.C: New test.  main() should only be
 	reserved in the global namespace

From-SVN: r22992
1998-10-11 18:53:41 +00:00
Mark Mitchell
7f6391b208 * stl_config.h (__SGI_STL_USE_AUTO_PTR_CONVERSIONS): Define.
From-SVN: r22989
1998-10-11 17:55:56 +00:00
Mark Mitchell
5ada5d0f99 memory (auto_ptr::operator auto_ptr_ref<_Tp1>): Fix typo.
* memory (auto_ptr::operator auto_ptr_ref<_Tp1>): Fix typo.
	(auto_ptr::operator auto_ptr<_Tp1>): Add missing
	semicolon.

From-SVN: r22988
1998-10-11 17:48:12 +00:00
Mark Mitchell
6df47b0613 cp-tree.h (specializations_of_same_template_p): Declare.
* cp-tree.h (specializations_of_same_template_p): Declare.
	* pt.c (specializations_of_same_template_p): New function.
	(unify): Use it.
	* search.c (get_template_base): Use it.
	(get_template_base_recursive): Likewise.

From-SVN: r22987
1998-10-11 17:38:53 +00:00
Mark Mitchell
4a7bd8e25b * flow.c (find_basic_blocks_1): Fix prototype.
From-SVN: r22986
1998-10-11 15:02:04 +00:00
Alexandre Oliva
0126020166 instantiate4.C: New test: -frepo does not generate needed virtual table
* g++.old-deja/g++.pt/instantiate4.C: New test: -frepo does not
	generate needed virtual table
	* lib/old-dejagnu.exp (old-dejagnu): support `Build then link:'

From-SVN: r22984
1998-10-11 11:12:06 +00:00
Ken Raeburn
7d384cc0b3 Fine-grained control of -fcheck-memory-usage with new no_check_memory_usage attribute.
Fine-grained control of -fcheck-memory-usage with new no_check_memory_usage
attribute.  Misc minor bugfixes and tests for it too.

From-SVN: r22983
1998-10-11 02:21:54 +00:00
Jeffrey A Law
e41887f1fc config.shared (depend.new): Fix typo.
* config.shared (depend.new): Fix typo.
        * depend: Rebuilt.

From-SVN: r22982
1998-10-10 18:53:50 -06:00
Jeff Law
9d0135060f Daily bump.
From-SVN: r22981
1998-10-10 18:45:02 -06:00
Zack Weinberg
faa765969f cppexp.c: When forcing unsigned comparisons, cast both sides of the operation.
* cppexp.c: When forcing unsigned comparisons, cast both sides
        of the operation.
        * cpphash.h: Move static declaration of hashtab[]...
        * cpphash.c: ...here.
        * cpplib.c: Cast difference of two pointers to size_t before
        comparing it to size_t.  Cast signed to unsigned
        before comparing to size_t. (FIXME: struct argdata should use
        unsigned buffer sizes.)
        * cpplib.h (struct cpp_reader): Declare token_buffer_size as
        unsigned int. (CPP_WRITTEN): Cast return value to size_t.
        (CPP_RESERVE): Parenthesize N for evaluation order, cast to
        size_t before comparison.

From-SVN: r22980
1998-10-10 18:05:11 -06:00
Jeffrey A Law
9265dacf25 flow.c (find_basic_blocks): Delte "live_reachable_p" argument.
* flow.c (find_basic_blocks): Delte "live_reachable_p" argument.
        (find_basic_blocks_1): Similarly.
        * output.h (find_basic_blocks): Fix prototype.
        * gcse.c, toplev.c: Don't pass "live_reachable_p" argument to
        find_basic_blocks anymore.

From-SVN: r22979
1998-10-10 17:18:32 -06:00
Richard Henderson
a86d864c41 basic-block.h (EXECUTE_IF_SET_IN_SBITMAP): New macro.
* basic-block.h (EXECUTE_IF_SET_IN_SBITMAP): New macro.
        (sbitmap_free, sbitmap_vector_free): New macros.
        * output.h (rtl_dump_file): Declare.

From-SVN: r22978
1998-10-10 15:03:34 -07:00
Jeffrey A Law
937e37cc6e * regmove.c (optimize_reg_copy_3): Honor TRULY_NOOP_TRUNCATION.
From-SVN: r22977
1998-10-10 10:03:44 -06:00
Alexandre Oliva
3aeab4377c these XFAILs are hard to get right on the first try.
these XFAILs are hard to get right on the first try.  Yet harder when results
are different on different platforms :-)

From-SVN: r22976
1998-10-10 11:50:22 +00:00
Manfred Hollstein
066d147cbf decl2.c (start_objects): Add new variable `joiner' and initialize it properly.
8
	* decl2.c (start_objects): Add new variable `joiner' and
	initialize it properly.

From-SVN: r22975
1998-10-10 09:24:06 +00:00
Manfred Hollstein
182ed311af decl2.c (start_objects): Add new variable `joiner' and initialize it properly.
�
	* decl2.c (start_objects): Add new variable `joiner' and
	initialize it properly.

From-SVN: r22974
1998-10-10 09:24:04 +00:00
Alexandre Oliva
ce88636209 typeof is an extension, -ansi -pedantic (default options) wouldn't
accept it; make it __typeof__

From-SVN: r22973
1998-10-10 08:15:19 +00:00
Dariush Eslimi
71685c48ea typeof1.C: New test; typeof based on template-dependent type
* g++.old-deja/g++.ext/typeof1.C: New test; typeof based on
	template-dependent type

From-SVN: r22972
1998-10-10 08:11:06 +00:00
Alexandre Oliva
e98791f8a6 parse3.C: XFAILs, not ERRORs
* g++.old-deja/g++.brendan/parse3.C: XFAILs, not ERRORs
	* g++.old-deja/g++.brendan/parse5.C: XFAILs, not ERRORs
	* g++.old-deja/g++.brendan/parse6.C: XFAILs, not ERRORs

From-SVN: r22971
1998-10-10 07:51:24 +00:00
Alexandre Oliva
2feb9724a1 using5.C: New test; using decl from base class should be usable as argument of member function
* g++.old-deja/g++.other/using5.C: New test; using decl from base
 	class should be usable as argument of member function
	* g++.old-deja/g++.other/using6.C: New test; using decl from base
 	class should be usable as return type of member function
	* g++.old-deja/g++.other/using7.C: New test; using decl from base
 	class should be usable as type of data member

From-SVN: r22970
1998-10-10 07:38:29 +00:00
Jeff Law
827204e706 Daily bump.
From-SVN: r22969
1998-10-09 18:45:01 -06:00
Alexandre Oliva
4acf6064f2 * g++.old-deja/g++.ns/extern1.C: fix XFAIL mark
From-SVN: r22968
1998-10-09 21:25:57 +00:00
Kaveh R. Ghazi
a0a190d4d9 Warning fixes:
* fp-bit.c (SFtype): Don't implicitly use int in declaration.
        (DFtype): Likewise.
        (_fpdiv_parts): Remove unused parameter `tmp', all callers changed.
        (divide): Remove unused variable `tmp'.
        (si_to_float): Cast numeric constant to (SItype) before comparing
        it against one.

From-SVN: r22967
1998-10-09 19:17:54 +00:00
Jeff Law
1a34b7b328 920521-1.c: Fix bogus test.
8
        * gcc.c-torture/special/920521-1.c: Fix bogus test.

From-SVN: r22966
1998-10-09 12:22:11 -06:00
Jeff Law
bb0f4c31d3 920521-1.c: Fix bogus test.
�
        * gcc.c-torture/special/920521-1.c: Fix bogus test.

From-SVN: r22965
1998-10-09 12:22:09 -06:00
Graham Stott
2a92c071f8 flow.c (print_rtl_with_bb): Changed type of in_bb_p to match use.
Fri Oct  9 16:03:19 1998  Graham  <grahams@rcp.co.uk>
        * flow.c (print_rtl_with_bb): Changed type of in_bb_p to match use.
        * gcc.c (add_preprocessor_option): Correct typo when allocating
        memory, sizeof() argument had one too many `*'.
        (add_assembler_option): Likewise.
        (add_linker_option): Likewise.
        * gcov.c (output_data): Likewise.
        * local-alloc.c (memref_used_between_p): Likewise.
        (update_equiv_regs): Likewise.
        * loop.c (strength_reduce): Likewise.
        * reg-stack.c (record_asm_reg_life): Likewise.
        (subst_asm_stack_reg): Likewise.
        * reorg.c (dbr_schedule): Likewise.

From-SVN: r22964
1998-10-09 09:08:51 -07:00
Bernd Schmidt
dc2ede84e6 flow.c (life_analysis_1): Break out some functions.
Fri Oct  9 15:57:51 1998  Bernd Schmidt <crux@Pool.Informatik.RWTH-Aachen.DE>
        * flow.c (life_analysis_1): Break out some functions.
        (find_basic_blocks_1): Likewise.  Also move some variables out and
        make them static.
        Rename NONLOCAL_LABEL_LIST arg to NONLOCAL_LABELS and initialize
        new static var nonlocal_label_list with it.
        (active_eh_region, nested_eh_region, label_value_list,
        nonlocal_label_list): New static variables.
        (make_edges, delete_unreachable_blocks, delete_block): New static
        functions, broken out of find_basic_blocks_1.
        (record_volatile_insns, mark_regs_live_at_end, set_noop_p,
        noop_move_p): New static functions, broken out of life_analysis_1.

From-SVN: r22963
1998-10-09 08:58:37 -07:00
Richard Henderson
d006aa54ba expmed.c (store_bit_field): Pun non-integral str_rtx modes.
* expmed.c (store_bit_field): Pun non-integral str_rtx modes.
        Take extra care for op0 now possibly being a subreg.
        (extract_bit_field): Likewise.
        * function.c (purge_addressof_1): Revert Oct 4 change.  Drop
        the reg to memory if there is no equal sized integral mode.
        * stor-layout.c (int_mode_for_mode): New function.
        * machmode.h: Prototype it.

From-SVN: r22962
1998-10-09 08:50:25 -07:00
Jeffrey A Law
3663a3047f global.c (build_insn_chain): Verify no real insns exist past the end of the last basic block, then exit the loop.
* global.c (build_insn_chain): Verify no real insns exist past the
        end of the last basic block, then exit the loop.

From-SVN: r22961
1998-10-09 07:28:55 -06:00
Mark Mitchell
a9e6be8ed0 search.c (expand_upcast_fixups): Tweak to match 1998-10-07 change to vtable types.
* search.c (expand_upcast_fixups): Tweak to match 1998-10-07
	change to vtable types.

From-SVN: r22959
1998-10-09 11:01:42 +00:00
Mark Mitchell
953360c815 cvt.c (ocp_convert): Avoid infinite recursion caused by 1998-10-03 change.
* cvt.c (ocp_convert): Avoid infinite recursion caused by
	1998-10-03 change.

From-SVN: r22958
1998-10-09 10:32:01 +00:00
Kaveh R. Ghazi
297a6bfc70 Warning fixes:
* ch-tree.h (build_delay_case_end): Remove unused parameter.
        (build_receive_case_end): Likewise.
        (check_queue_size): Likewise.
        * parse.c: Callers changed.
        * satisfy.c: Likewise.
        * tasking.c (build_receive_buffer_case_end): Remove unused
        parameter `label_cnt'.
        (build_receive_signal_case_end): Likewise.
        (build_receive_case_end): Likewise.
        (build_delay_case_end): Likewise.
        (check_queue_size): Likewise for parameter `type'.
        All callers changed.

From-SVN: r22957
1998-10-09 10:08:26 +00:00
Alexandre Oliva
f9fad1f531 expr6.C: New test.
* g++.old-deja/g++.pt/expr6.C: New test.  operator?: breaks
	matching of template brackets.
(forgot to cvs add it yesterday)

From-SVN: r22956
1998-10-09 09:48:27 +00:00