2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2024-12-19 10:49:13 +08:00
Commit Graph

35238 Commits

Author SHA1 Message Date
Andrew Haley
01936f3a7d dwarf2-signal.h: New file.
2001-05-18  Andrew Haley  <aph@cambridge.redhat.com>

        * include/dwarf2-signal.h: New file.
        * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
        * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
        * configure: Rebuilt.

From-SVN: r42400
2001-05-21 16:59:42 +00:00
Jason Merrill
68981e3a32 fix comment
From-SVN: r42396
2001-05-21 12:06:37 -04:00
Jason Merrill
90ecce3e49 class.c (build_vtable_entry_ref): Lose vtbl parm.
* class.c (build_vtable_entry_ref): Lose vtbl parm.  Fix for new abi.
        (build_vtbl_ref): Adjust.
        (dfs_accumulate_vtbl_inits): Set TREE_CONSTANT on the vtable address.
        * decl2.c (lang_f_options): Remove huge-objects, vtable-thunks.
        Re-add vtable-gc.
        (unsupported_options): Correspondingly.

        * decl2.c (maybe_make_one_only): Check flag_weak, not
        supports_one_only().

From-SVN: r42393
2001-05-21 11:55:40 -04:00
Jason Merrill
5c1e4fd7e7 class.c (build_vtable): Set DECL_ASSEMBLER_NAME for vtables here.
* class.c (build_vtable): Set DECL_ASSEMBLER_NAME for vtables here.
        (get_vtable_decl, build_vtt): Not here.

From-SVN: r42392
2001-05-21 11:54:33 -04:00
Jason Merrill
deda4b764e dbxout.c (MINIMAL_DEBUG, [...]): Lose.
* dbxout.c (MINIMAL_DEBUG, flag_minimal_debug): Lose.
        (dbxout_type_fields): Lose minimal_debug support.
        (dbxout_type_methods, dbxout_type): Likewise.

From-SVN: r42391
2001-05-21 11:48:49 -04:00
Jason Merrill
7a81cf7f5c add vague linkage node
From-SVN: r42389
2001-05-21 11:41:05 -04:00
Jason Merrill
1a6025b4b8 cp-tree.def (START_CATCH_STMT): Lose.
* cp-tree.def (START_CATCH_STMT): Lose.
        * dump.c (cp_dump_tree): Don't dump it.  Do dump HANDLER_PARMS.
        * tree.c (cp_statement_code_p): Don't case it.
        * semantics.c (cp_expand_stmt): Likewise.
        * except.c (expand_start_catch_block): Don't start any blocks.
        Return the type.
        (expand_end_catch_block): Don't end any blocks.
        * parse.y (handler): Don't pass anything from finish_handler_parms
        to finish_handler.
        * pt.c (tsubst_expr): Likewise.
        * semantics.c (begin_handler): Call note_level_for_catch here.
        (finish_handler_parms): Don't return anything.
        (genrtl_catch_block, begin_catch_block): Lose.
        (genrtl_handler): Call expand_start_catch here.
        * cp-tree.h (START_CATCH_TYPE): Lose.
        (HANDLER_TYPE): New.

From-SVN: r42388
2001-05-21 11:39:19 -04:00
Jason Merrill
0fd0b7ee98 tweak formatting
From-SVN: r42387
2001-05-21 09:17:58 -04:00
Andrew Haley
da50295639 linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
2001-05-17  Andrew Haley  <aph@redhat.com>

        * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.

From-SVN: r42386
2001-05-21 12:31:14 +00:00
Stephane Carrez
f0ef84a27f msp.c (A_SIZE): Define according to STACK_SIZE;
* gcc.c-torture/unsorted/msp.c (A_SIZE): Define according to
	STACK_SIZE;
	* gcc.c-torture/compile/991214-2.c (HISTO_SIZE): Define according
	to STACK_SIZE; Use it to define size of add_histo array.
	* gcc.c-torture/compile/920723-1.c (GITT_SIZE): Define according
	to STACK_SIZE.
	(f): Use GITT_SIZE to define size of gitt local table.
	* gcc.c-torture/compile/930621-1.c (BYTEMEM_SIZE): Define according
	to STACK_SIZE; Use it to define size of bytemem array.

From-SVN: r42384
2001-05-21 14:20:51 +02:00
Stephane Carrez
ef73e13988 20000804-1.x: New file, this test fails on 68HC11/HC12 due to the asm instruction.
* gcc.c-torture/compile/20000804-1.x: New file, this test fails
	on 68HC11/HC12 due to the asm instruction.
	* gcc.c-torture/compile/20001205-1.x: New file, ditto.
	* gcc.c-torture/compile/920520-1.x: Likewise.
	* gcc.c-torture/compile/20001226-1.x: New file, this test fails
	on 68HC11/HC12 because the function is larger than 64K.
	* gcc.c-torture/compile/961203-1.x: New file, this test fails
	on 68HC11/HC12 because the structure is too large.

From-SVN: r42381
2001-05-21 14:06:52 +02:00
Bryce McKinlay
1f4eb17d51 configure.in: Update boehm-gc include dir for new GC version.
* configure.in: Update boehm-gc include dir for new GC version.
	* configure: Rebuilt.
	* exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
	extern "C" wrapper.
	* boehm.cc: Update includes for new GC version. MAKE_PROC is now
	GC_MAKE_PROC. mark_proc is now GC_mark_proc.
	* posix-threads.cc: Only include <gc.h>. Don't need to wrap with
	extern "C".

From-SVN: r42380
2001-05-21 09:37:04 +01:00
Bryce McKinlay
9110a741e3 Imported version version 6.0alpha7.
* README, README.Mac, README.OS2, README.QUICK, README.alpha,
	README.amiga, README.debugging, README.dj, README.hp, README.linux,
	README.rs6000, README.sgi, README.solaris2, README.uts,
	README.win32, SCoptions.amiga, backptr.h, barrett_diagram,
	dbg_mlc.h, gc.h, gc.man, gc_alloc.h, gc_cpp.h, gc_hdrs.h, gc_mark.h,
	gc_priv.h, gc_private.h, gc_typed.h, gcconfig.h,
	hpux_irix_threads.c, makefile.depend, nursery.c,
	solaris_threads.h, test.c, test_cpp.cc, weakpointer.h, cord/README,
	cord/SCOPTIONS.amiga, cord/SMakefile.amiga, cord/cord.h,
	cord/ec.h, cord/gc.h, cord/private/cord_pos.h, include/backptr.h,
	include/gc_copy_descr.h, include/gc_nursery.h: Remove obsolete/moved
	files.

From-SVN: r42379
2001-05-21 09:35:14 +01:00
GCC Administrator
a6951ca5de Daily bump.
From-SVN: r42378
2001-05-21 07:16:41 +00:00
Richard Henderson
cf2fe5008f dwarf2out.c (DEBUG_FRAME_SECTION): Rename from FRAME_SECTION.
* dwarf2out.c (DEBUG_FRAME_SECTION): Rename from FRAME_SECTION.
        Update all users.

From-SVN: r42376
2001-05-21 00:03:42 -07:00
Bryce McKinlay
abdbd4a8ec This commit was generated by cvs2svn to compensate for changes in r42373,
which included commits to RCS files with non-trunk default branches.

From-SVN: r42374
2001-05-21 07:39:25 +01:00
Bryce McKinlay
f54d42879f Initial revision
From-SVN: r42370
2001-05-21 07:39:23 +01:00
Richard Henderson
9d2f2c45d8 dwarf2out.c (DEBUG_ABBREV_SECTION, [...]): Rename from s/DEBUG_//.
* dwarf2out.c (DEBUG_ABBREV_SECTION, DEBUG_ARANGES_SECTION,
        DEBUG_MACINFO_SECTION, DEBUG_LOC_SECTION, DEBUG_PUBNAMES_SECTION,
        DEBUG_STR_SECTION): Rename from s/DEBUG_//.  Update all users.
        * dwarfout.c (DEBUG_SFNAMES_SECTION, DEBUG_SRCINFO_SECTION,
        DEBUG_MACINFO_SECTION, DEBUG_PUBNAMES_SECTION, DEBUG_ARANGES_SECTION):
        Likewise.
        * config/mips/iris6.h (DEBUG_SFNAMES_SECTION, DEBUG_SRCINFO_SECTION,
        DEBUG_MACINFO_SECTION, DEBUG_PUBNAMES_SECTION, DEBUG_ARANGES_SECTION,
        DEBUG_FRAME_SECTION, DEBUG_ABBREV_SECTION): Rename as above.
        (DEBUG_LOC_SECTION, DEBUG_STR_SECTION): New.
        * config/ia64/ia64.h (DEBUG_ABBREV_SECTION, DEBUG_ARANGES_SECTION,
        DEBUG_PUBNAMES_SECTION): Rename as above.
        (DEBUG_MACINFO_SECTION, DEBUG_LOC_SECTION, DEBUG_STR_SECTION): New.

From-SVN: r42368
2001-05-20 20:14:31 -07:00
Richard Henderson
4951297b9e New test.
From-SVN: r42367
2001-05-20 18:36:21 -07:00
Richard Henderson
9f4ccc25e3 optabs.c (emit_cmp_and_jump_insns): Don't swap commutative operands unless the operation is commutative.
* optabs.c (emit_cmp_and_jump_insns): Don't swap commutative
        operands unless the operation is commutative.

From-SVN: r42366
2001-05-20 18:33:53 -07:00
Kaveh R. Ghazi
88e3805d76 fold-const.c (tree_expr_nonnegative_p): Detect more non-negative cases.
* fold-const.c (tree_expr_nonnegative_p): Detect more
	non-negative cases.

testsuite:
	* g++.old-deja/g++.warn/compare1.C: New test.
	* gcc.dg/compare4.c: New test.

From-SVN: r42365
2001-05-21 01:21:23 +00:00
Joseph Myers
4b40451753 re PR other/930 (Out of date docs for C99 features as extensions)
* extend.texi: Clarify documentation of extensions included in ISO
	C99.  Prefer C99 terminology and syntax to old GNU terminology and
	syntax.  Add more index entries.  Document mixed declarations and
	code as an extension in C89 mode.  Warn about future changes to
	semantics of inline functions.  Fixes PR other/930.

From-SVN: r42363
2001-05-21 00:21:59 +01:00
Hans Boehm
18d6fb9765 configure.host: Build with -fexceptions.
* configure.host: Build with -fexceptions.
	* linux_threads.c: Remember which thread stopped world for

From-SVN: r42362
2001-05-20 22:36:34 +00:00
Richard Kenner
cb5fa0f8ea expr.c (expand_expr, [...]): Don't fold constant access if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
* expr.c (expand_expr, case ARRAY_REF): Don't fold constant
	access if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
	(expand_expr, case COMPONENT_REF): Do copy if misaligned even
	if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.

From-SVN: r42361
2001-05-20 17:36:35 -04:00
Richard Kenner
eabb9ed02d * stmt.c (expand_decl): Set mode, alignment, and sizes for CONST_DECL.
From-SVN: r42360
2001-05-20 16:41:49 -04:00
Richard Henderson
d9214e537d sched-deps.c (sched_analyze_insn): Force volatile memory reads to be output before a branch.
* sched-deps.c (sched_analyze_insn): Force volatile memory reads
        to be output before a branch.

From-SVN: r42358
2001-05-20 13:03:15 -07:00
Richard Henderson
b161c5059b * Makefile.in (dwarf2asm.o): Depend on $(TREE_H).
From-SVN: r42357
2001-05-20 12:56:31 -07:00
Richard Henderson
79b7906420 att.h (ASM_SHORT, ASM_LONG): Add trailing \t.
* config/i386/att.h (ASM_SHORT, ASM_LONG): Add trailing \t.
        (ASM_DOUBLE): Remove.
        * config/i386/bsd.h, config/i386/sco5.h: Likewise.
        * config/i386/sun386.h: Likewise.

        * config/i386/i386.h (UNALIGNED_SHORT_ASM_OP): New.
        (UNALIGNED_INT_ASM_OP, INT_ASM_OP): New.

        * config/i386/cygwin.h (INT_ASM_OP): Remove.
        * config/i386/freebsd-aout.h, config/i386/i386-aout.h: Likewise.
        * config/i386/i386-coff.h, config/i386/i386-interix.h: Likewise.
        * config/i386/netbsd.h, config/i386/openbsd.h: Likewise.

        * config/i386/cygwin.h: Adjust uses of ASM_LONG for trailing \t.
        * config/i386/djgpp.h, config/i386/i386.h: Likewise.
        * config/i386/i386elf.h, config/i386/ptx4-i.h: Likewise.
        * config/i386/sco5.h, config/i386/svr3gas.h: Likewise.
        * config/i386/sysv4.h, config/i386/vsta.h: Likewise.
        * config/i386/win32.h: Likewise.

From-SVN: r42355
2001-05-20 12:54:04 -07:00
Alexandre Oliva
334564454e ltconfig, [...]: Upgraded to libtool 1.4a 1.641.2.254.
* ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh, ltcf-cxx.sh,
ltcf-gcj.sh: Upgraded to libtool 1.4a 1.641.2.254.  Rebuilt a number
of subdir/configure scripts to use the new libtool.m4.

From-SVN: r42351
2001-05-20 18:55:59 +00:00
Joseph Myers
aa0cc56293 * invoke.texi: Add more options to summary list.
From-SVN: r42349
2001-05-20 18:08:38 +01:00
Joseph Myers
1b07e854d9 re PR other/567 ("make dvi" fails)
ch:
	* Make-lang.in (chill.dvi): Remove bogus dependencies.  Don't cd
	to ch; include both $(srcdir)/ch and $(srcdir) in TEXINPUTS.
	Don't move chill.dvi after creating it.  Fixes PR other/567 and
	PR other/1018.

f:
	* Make-lang.in (f/g77.dvi): Include $(srcdir) in TEXINPUTS.

From-SVN: r42345
2001-05-20 14:50:44 +01:00
Nathan Sidwell
d30a825a20 re PR c++/2781 (bad code generated for reference call with -O2 (regression from 2.95))
cp:
	PR c++/2781
	* optimize.c (update_cloned_parm): Copy addressability and other
	flags.
testsuite:
	* g++.old-deja/g++.other/optimize1.C: New test.

From-SVN: r42344
2001-05-20 13:41:34 +00:00
Kriang Lerdsuwanakij
3b82c24918 pt.c (determine_specialization): Ignore artificial functions.
2001-05-20  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>

	* pt.c (determine_specialization): Ignore artificial functions.

2001-05-20  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>

	* g++.old-deja/g++.pt/spec41.C: New test.

From-SVN: r42342
2001-05-20 13:22:24 +00:00
Joseph Myers
91ea548a25 re PR c/2291 (Pedantic may be too pedantic)
* invoke.texi: Document meaning of -pedantic when -std=gnu* is
	used.  Fixes PR c/2291.
	* gcc.1: Regenerate.

From-SVN: r42340
2001-05-20 13:49:31 +01:00
Stephane Carrez
dbf03ee31b m68hc11.c (m68hc11_override_options): Ignore the -fpic and -fPIC options, clear flag_pic.
* config/m68hc11/m68hc11.c (m68hc11_override_options): Ignore
	the -fpic and -fPIC options, clear flag_pic.

From-SVN: r42339
2001-05-20 13:37:11 +02:00
Neil Booth
a078edf813 hashtable.c (calc_hash): Fix HASHSTEP definition.
* hashtable.c (calc_hash): Fix HASHSTEP definition.
	* stringpool.c (make_identifier): No statistics here anymore.
	* objc-act.c (steup_string_decl): Remove redundant check.

From-SVN: r42337
2001-05-20 08:13:32 +00:00
GCC Administrator
b4cc41b814 Daily bump.
From-SVN: r42336
2001-05-20 07:16:37 +00:00
Neil Booth
2a967f3d3a Makefile.in (OBJS, [...]): Update.
* Makefile.in (OBJS, LIBCPP_OBJS, LIBCPP_DEPS,
	cpplib.o, cpphash.o, fix-header): Update.
	(hashtable.o): New target.
	* c-common.h: Include cpplib.h.  Define C_RID_CODE and
	struct c_common_identifier here.
	* c-lang.c (c_init_options): Update.  Call set_identifier_size.
	* c-lex.c (c_lex): Update.
	* c-pragma.h: Update.
	* c-tree.h (struct lang_identifier): Contain c_common_identifier.
	Delete rid_code.
	(C_RID_CODE): Delete.
	* cpphash.c: Rewrite to use hashtable.c.
	* cpphash.h: Update include guards.
	(struct cpp_reader): Remove hashtab.
	hash_ob and buffer_ob are no longer pointers.  Add hash_table
	and our_hashtable.
	(HASHSTEP, _cpp_init_hashtable,	_cpp_lookup_with_hash): Delete.
	(_cpp_cleanup_hashtable): Rename _cpp_destroy_hashtable.
	(_cpp_cleanup_stacks): Rename _cpp_init_directives.
	* cppinit.c (cpp_create_reader): Update.
	* cpplex.c (cpp_ideq, parse_identifier, cpp_output_token): Update.
	(cpp_interpret_charconst): Eliminate warning.
	* cpplib.c (do_pragma, do_endif, push_conditional,
	cpp_push_buffer, cpp_pop_buffer): Update.
	(_cpp_init_stacks): Rename cpp_init_directives.
	(_cpp_cleanup_stacks): Remove.
	* cpplib.h: Update include guards.  Include tree-core.h and c-rid.h.
	(cpp_hashnode, cpp_token, NODE_LEN, NODE_NAME,
	 cpp_forall_identifiers, cpp_create_reader): Update.
	(C_RID_CODE, cpp_make_node): New.
	(c_common_identifier): New identifier node for C front ends.
	* cppmain.c (main): Update.
	* fix-header.c (read_scan_file): Update.
	* flags.h (id_clash_len): Make unsigned.
	* ggc.h (ggc_mark_nonnull_tree): New.
	* hashtable.c: New.
	* hashtable.h: New.
	* stringpool.c: Update comments and copyright.  Update to use
	hashtable.c.
	* toplev.c (approx_sqrt): Move to hashtable.c.
	(id_clash_len): Make unsigned.
	* toplev.h (ident_hash): New.
	* tree.c (gcc_obstack_init): Move to hashtable.c.
	* tree.h: Include hashtable.h.
	(IDENTIFIER_POINTER, IDENTIFIER_LENGTH): Update.
	(GCC_IDENT_TO_HT_IDENT, HT_IDENT_TO_GCC_IDENT): New.
	(struct tree_identifier): Update.
	(make_identifier): New.
cp:
	* cp-tree.h (struct lang_identifier, C_RID_YYCODE): Update.
	(C_RID_CODE): Remove.
	* lex.c (cxx_init_options): Call set_identifier_size.  Update.
	(init_parse): Don't do it here.
objc:
	* objc-act.c (objc_init_options): Call set_identifier_size. Update.

From-SVN: r42334
2001-05-20 06:26:45 +00:00
Richard Henderson
9e800206ba except.c (dw2_build_landing_pads): Use word_mode, not Pmode, as ncessary.
* except.c (dw2_build_landing_pads): Use word_mode, not Pmode,
	as ncessary.
	(expand_eh_return): Convert between word_mode and Pmode.
	* unwind-dw2.c (extract_cie_info): Do not assume words and pointers
	are the same size.
	(execute_stack_op): Likewise.
	(execute_cfa_program): Likewise.
	(uw_frame_state_for): Likewise.
	(uw_update_context_1): Likewise.
	* unwind.inc (_Unwind_Reason_Code): Likewise.
	* config/mips/mips.h (EH_RETURN_DATA_REGNO): Define.
	(EH_RETURN_STACKADJ_RTX): Likewise.
	* config/mips/mips.c (compute_frame_size): Make space for saving
	EH return registers.
	(mips_expand_epilogue): Handle EH stack adjustments.
	* config/mips/mips.md (eh_return): New pattern.
	(eh_set_lr_si): Likewise.
	(eh_set_lr_di): Likewise.
	Add splitter to perform EH return after reload.

From-SVN: r42332
2001-05-20 00:35:24 +00:00
Mark Mitchell
878de307d6 * jump.c (mark_jump_label): Tidy previous change.
From-SVN: r42327
2001-05-19 23:54:07 +00:00
Bruce Korb
baacc9f7a1 open stdin for those building with a closed one.
From-SVN: r42326
2001-05-19 23:18:21 +00:00
Bruce Korb
c322646257 Do not use two warnings when one will do
From-SVN: r42323
2001-05-19 22:43:38 +00:00
Mark Mitchell
85b94003e1 jump.c (jump_optimize_1): Tidy.
* jump.c (jump_optimize_1): Tidy.
	(mark_jump_label): When changing the label in a LABEL_REF, change
	update any REG_EQUAL notes as well.

From-SVN: r42318
2001-05-19 21:16:51 +00:00
Phil Edwards
572051a275 acinclude.m4: Fix --help spacing, correct comments.
2001-05-19  Phil Edwards  <pme@sources.redhat.com>

	* acinclude.m4:  Fix --help spacing, correct comments.
	* aclocal.m4:  Regenerate.
	* configure:  Regenerate.
	* mkcheck.in:  Add usage comments.
	* docs/html/documentation.html:  Point to doxygen'd tarball.

From-SVN: r42316
2001-05-19 20:27:36 +00:00
Joseph Myers
97d2451609 re PR c/166 (C syntax problem in gcc)
* c-parse.in (parm_declarator): Split into
	parm_declarator_starttypename and parm_declarator_nostarttypename.
	(parm_declarator_starttypename, parm_declarator_nostarttypename):
	New.  Allow parenthesised sub-declarators which don't begin with a
	TYPENAME.  Fixes PR c/166.

testsuite:
	* gcc.c-torture/compile/20010114-1.x: Remove.

From-SVN: r42315
2001-05-19 21:19:24 +01:00
Matt Kraai
e48d3d009f * MAINTAINERS (Write After Approval): Add myself.
From-SVN: r42314
2001-05-19 19:38:14 +00:00
Toon Moene
ae1aa9a172 Make-lang.in: Have $(MAKEINFO) look into the parent directory for includes.
2001-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>

	* Make-lang.in: Have $(MAKEINFO) look into the parent
	directory for includes.
	* g77.texi: Use the GFDL.

From-SVN: r42313
2001-05-19 18:09:56 +00:00
Mark Mitchell
4da5f005d4 defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): New macro.
* defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): New
	macro.
	* tm.texi (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER):
	Document it.
	* toplev.c (main): If the target does not allow profiling without
	a frame pointer, issue an error message.
	* config/i386/linux.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER):
	Define it to false.

From-SVN: r42312
2001-05-19 17:56:48 +00:00
Richard Kenner
e86f9f3267 recog.c (general_operand): Modify last change to allow it if reload has completed.
* recog.c (general_operand): Modify last change to allow it if reload
	has completed.

From-SVN: r42309
2001-05-19 07:51:32 -04:00
Jan Hubicka
30cf266f94 recog.c (general_operand): Prohibit nonzero subreg bytes on subregs containing mem.
* recog.c (general_operand): Prohibit nonzero subreg bytes on
	subregs containing mem.

From-SVN: r42308
2001-05-19 08:24:50 +00:00