Commit Graph

16134 Commits

Author SHA1 Message Date
Jeff Law 2c4be73e3f * Check in merge from gcc2. See ChangeLog.11 and ChangeLog.12
for details.

        * haifa-sched.c: Mirror recent changes from gcc2.

From-SVN: r18990
1998-04-04 06:54:29 -07:00
Jeff Law 5665caa28f * Check in merge from gcc2. See ChangeLog.11 and ChangeLog.12
for details.

        * haifa-sched.c: Mirror recent changes from gcc2.

From-SVN: r18989
1998-04-04 06:54:28 -07:00
Jeff Law d6df9efb6d * Check in merge from gcc2. See ChangeLog.11 and ChangeLog.12
for details.

        * haifa-sched.c: Mirror recent changes from gcc2.

From-SVN: r18988
1998-04-04 06:54:26 -07:00
Richard Henderson 8e7bc3cd8f configure.in (alpha-*-linux-gnu*): Undo Feb 3 change brought in from gcc2 merge.
* configure.in (alpha-*-linux-gnu*): Undo Feb 3 change brought in
from gcc2 merge.

From-SVN: r18987
1998-04-04 05:32:43 -08:00
Jeff Law 6153647887 * Check in merge from gcc2. See ChangeLog.11 and ChangeLog.12
for details.

        * haifa-sched.c: Mirror recent changes from gcc2.

From-SVN: r18986
1998-04-04 06:32:42 -07:00
Jeff Law f6cb0e630f * Check in merge from gcc2. See ChangeLog.11 and ChangeLog.12
for details.

        * haifa-sched.c: Mirror recent changes from gcc2.

From-SVN: r18985
1998-04-04 06:32:41 -07:00
Jeff Law e5e809f419 * Check in merge from gcc2. See ChangeLog.11 and ChangeLog.12
for details.

        * haifa-sched.c: Mirror recent changes from gcc2.

From-SVN: r18984
1998-04-04 06:32:39 -07:00
Jeff Law 31031eddac dummy commit before merge
From-SVN: r18980
1998-04-03 09:37:26 -07:00
Jason Merrill 732dcb6f2a Implement empty base optimization.
* class.c (finish_struct_1): Add vbase fields earlier.  Set
	CLASSTYPE_SIZE of an empty base to 0.  Types with bases can be empty.
	* search.c (dfs_check_overlap, dfs_no_overlap_yet): New fns.
	(types_overlap_p): New fn.
	* tree.c (avoid_overlap): New fn.
	(build_base_fields): Use it to avoid overlapping empty bases.
	* cp-tree.h, decl2.c, lang-options.h: Add -fnew-abi.

From-SVN: r18978
1998-04-03 09:13:24 -05:00
Jeffrey A Law e9eaed43b9 * Makefile.in (insn*.o): Depend on system.h.
From-SVN: r18976
1998-04-03 05:29:37 -07:00
Jim Wilson 1f3b6a3ebe x86 regex.c failure from Jim Meyering.
* compile/980329-1.c: New test.

From-SVN: r18975
1998-04-03 04:29:04 -08:00
Jason Merrill b3e401c25a * decl.c (cplus_expand_expr_stmt): Strip unused INDIRECT_REFs.
From-SVN: r18974
1998-04-03 07:17:58 -05:00
Jason Merrill 9a71c18b28 Re-implement allocation of base class subobjects.
* tree.c (unshare_base_binfos): New fn.
	(layout_basetypes): Use it.  Now handles offsets of both virtual and
	non-virtual bases, after layout_type.
	(layout_vbasetypes): Remove.
	(build_base_fields): Generate FIELD_DECLs for each non-virtual base.
	(build_vbase_pointer_fields): Split out from old layout_basetypes.
	* class.c (finish_base_struct): Lose offset handling code.
	Move nonvdtor warning here.  Don't mess with t_binfo anymore.
	(finish_struct_1): Don't mess with t_binfo anymore.  Use fns above.
	* cp-tree.h: Adjust.

From-SVN: r18973
1998-04-02 22:41:20 -05:00
Jeffrey A Law 516c23423e pa.c (output_global_address): Initialize base.
* pa.c (output_global_address): Initialize base.
        * pa.h (GO_IF_LEGITIMATE_ADDRESS): Initialize index.

From-SVN: r18972
1998-04-02 16:18:27 -07:00
Mike Stump 7cc348893e gthr.h: Support systems that don't have weak, but have threads.
* gthr.h: Support systems that don't have weak, but have threads.
        * configure.in (*wrs-vxworks*): Use VxWorks threads by default.
        * gthr-vxworks.h: New file.
        * objc/thr-vxworks.h: Dummy file from thr-single.c for now.

From-SVN: r18971
1998-04-02 16:15:06 -07:00
Jim Wilson b2012effc9 Readd patch for SCO5 to fix build problem.
* info/termdep.h: If POSIX, #undef TIOCGETC for benefit of systems
	that provide TIOCETC but not struct tchars.

From-SVN: r18967
1998-04-02 10:30:53 -08:00
Jim Wilson 52c18286ff Fix x86 core dump on regex.c
Fix x86 core dump on regex.c
	* i386.md (movqi+1): Change alternative 1 from *r/r to *r/*rn.

From-SVN: r18966
1998-04-02 10:12:00 -08:00
Jason Merrill 0b41abe668 cp-tree.h: Lose CLASSTYPE_VBASE_SIZE, some unused stuff.
* cp-tree.h: Lose CLASSTYPE_VBASE_SIZE, some unused stuff.
	* decl.c, decl2.c, pt.c, ptree.c, lex.c: Likewise.
	* class.c (duplicate_tag_error): Likewise.
	(finish_struct_1): Set CLASSTYPE_SIZE, CLASSTYPE_MODE, CLASSTYPE_ALIGN.
	* tree.c (layout_vbasetypes): Update from layout_record, remove
	var_size support, use CLASSTYPE_SIZE instead of CLASSTYPE_VBASE_SIZE.
	(layout_basetypes): Likewise.

From-SVN: r18965
1998-04-02 12:05:40 -05:00
Jason Merrill c098677bed update
From-SVN: r18964
1998-04-02 11:19:01 -05:00
Vladimir N. Makarov c1ac292d76 Patch from vmakarov to avoid warnings with -Wall.
* ginclude/va-i960.h (va_end): Change void * to void.

From-SVN: r18961
1998-04-02 03:54:27 -08:00
Kaveh R. Ghazi 4cb1caaf7b Patched in the gcc directory:
* Makefile.in (choose-temp.o): Depend on system.h.
Patched in both the libiberty and gcc directories:
        * choose-temp.c: Include system.h when IN_GCC.

From-SVN: r18952
1998-04-02 11:07:45 +00:00
Richard Henderson 7f388fb42f Update with automake patched for DATA=$(INSTALL_DATA) problem.
From-SVN: r18948
1998-04-01 19:45:22 -08:00
Joern Rennecke a9a2595b58 reload.c (find_reloads_address): Try LEGITIMIZE_RELOAD_ADDRESS.
* reload.c (find_reloads_address): Try LEGITIMIZE_RELOAD_ADDRESS.
(move_replacements): New function.
* reload.h: Prototype it.
* alpha.h (LEGITIMIZE_RELOAD_ADDRESS): New definition.

Co-Authored-By: Richard Henderson <rth@cygnus.com>

From-SVN: r18947
1998-04-01 18:42:26 -08:00
Richard Henderson ce4d78eb2f final.c (alter_subreg): Allow the target to hook by-mode subreg hard register number changes.
* final.c (alter_subreg): Allow the target to hook by-mode subreg
hard register number changes.

From-SVN: r18946
1998-04-01 17:56:17 -08:00
Richard Henderson 4901a64393 emit-rtl.c (gen_lowpart_common): Skip count by HARD_REGNO_NREGS.
* emit-rtl.c (gen_lowpart_common): Skip count by HARD_REGNO_NREGS.
(gen_highpart): Likewise.

From-SVN: r18945
1998-04-01 17:33:22 -08:00
Richard Henderson 79363e2fa5 configure (alpha-*-linuxecoff, [...]): Run fixincludes.
* configure (alpha-*-linuxecoff, alpha-*-linux-gnulibc1):
Run fixincludes.

From-SVN: r18944
1998-04-01 17:13:17 -08:00
Jeffrey A Law 4e86caed7d fold-const.c (optimze_bit_field_compare): Initialize rnbitpos, rnbitsize, rnmode and rinner.
* fold-const.c optimze_bit_field_compare): Initialize rnbitpos,
        rnbitsize, rnmode and rinner.
        (make_range): Initialize type.
        (fold): Initialize arg0, arg1 and varop.
        * function.c (instantiate_virtual_regs_1): Initialize offset, regnoi
        and regnor.
        (expand_function_start): Initialize last_ptr.
        * stor-layout.c (layout_record): Initialize desired_align.
        (get_best_mode): Initialize unit.
        * tree.c (copy_node): Initialize length.

From-SVN: r18943
1998-04-01 16:35:51 -07:00
Jeffrey A Law aefdd5abe0 c-lex.c (yylex): Initialize traditional_type, ansi_type and type.
* c-lex.c (yylex): Initialize traditional_type, ansi_type and type.
        * caller-save.c (insert_save_restore): Initialize pat, code and
        numregs.
        * emit-rtl.c (push_to_sequence): Initialize top.
        (push_topmost_sequence): Likewise.
        * genattrtab.c (simplify_by_exploding): Initialize defval.
        * profile.c (branch_prob): Initialize dest.
        * rtl.h (note_stores): Remove duplicate prototype.
        (GEN_INT): Re-instate cast of second arg to HOST_WIDE_INT.
Fix some warnings.
        * cplus-dem.c (gnu_special): Don't get confused by .<digits>
        strings that are not actually lengths.
A change from libiberty that didn't make it into the gcc copy.

From-SVN: r18942
1998-04-01 16:18:11 -07:00
Jeffrey A Law 729da3f5a8 genattrtab.c: Make generated file use system.h, instead of including stdio.h, etc directly.
* genattrtab.c: Make generated file use system.h, instead of
        including stdio.h, etc directly.
        * genextract.c, genopinit.c, genoutput.c: Likewise.
        * genpeep.c, genrecog.c: Likewise
        * genoutput.c (process_template): Mark operands in the generated
        function as potentially unused if compiling with GNU CC.

From-SVN: r18941
1998-04-01 15:44:48 -07:00
Jeffrey A Law 2a8034f816 * i386/freebsd-elf.h (CPP_PREDEFINES): Update from FreeBSD folks.
From-SVN: r18940
1998-04-01 14:56:36 -07:00
Jeffrey A Law 715f9c994e * pa.md (reload peepholes): Remove unused variable "mode".
From-SVN: r18939
1998-04-01 14:27:16 -07:00
Nick Clifton 8a01289e7b Removed thumb-pe support.
From-SVN: r18938
1998-04-01 17:30:46 +00:00
Nick Clifton ea65007e03 Removed thumb-pe target.
From-SVN: r18937
1998-04-01 17:26:35 +00:00
Jeffrey A Law e7a587ef75 * class.c, Make sure system.h is included just after config.h.
Delete lingering stdio and errno references too.
        * decl.c, errfn.c, parse.y, ptree.c search.c, xrefc.: Likewwise.

From-SVN: r18936
1998-04-01 10:25:12 -07:00
Nick Clifton 75d3a15b4d Add thumb-pe support.
Add super interworking.

From-SVN: r18935
1998-04-01 17:19:01 +00:00
Jason Merrill 7c76b292a2 tweak
From-SVN: r18934
1998-04-01 12:15:54 -05:00
Jason Merrill 570221c201 friend.c (is_friend): Fix access control for local classes.
* friend.c (is_friend): Fix access control for local classes.
	* class.c (is_empty_class): New fn.
	* call.c (build_call): Don't pass empty class objects to a function.

From-SVN: r18933
1998-04-01 12:05:25 -05:00
Mark Mitchell 59581da697 call.c (build_over_call): Do name resolution for default arguments of function templates in the scope of...
* call.c (build_over_call): Do name resolution for default
	arguments of function templates in the scope of the templates.

From-SVN: r18932
1998-04-01 16:27:24 +00:00
Jim Wilson 63959c221b Fix irix6-x-foo cross compiler build problem where irix6 gcc invokes wrong as.
* config/mips/iris6.h (MD_EXEC_PREFIX): Set to /usr/bin/.
	(MD_STARTFILE_PREFIX): Unset.

From-SVN: r18931
1998-04-01 06:40:00 -08:00
Mark Mitchell f9c8545454 cplus-dem.c (optable): Add sizeof.
* cplus-dem.c (optable): Add sizeof.
	(demangle_template_value_parm): New function containing code
	previously found in demangle_template.
	(demangle_integral_value): New function which handles complicated
	integral expressions.
	(demangle_template): Use them.

From-SVN: r18930
1998-04-01 13:48:48 +00:00
Mark Mitchell c651e1e085 varasm.c (make_decl_rtl): Update the DECL_ASSEMBLER_NAME for a entity in a local scope.
* varasm.c (make_decl_rtl): Update the DECL_ASSEMBLER_NAME for a
	entity in a local scope.
	* fold-const.c (fold): Call truthvalue_conversion for values which
	are folded to boolean type.

From-SVN: r18929
1998-04-01 13:45:40 +00:00
Jeffrey A Law 3a598fbeb4 1750a.md, [...]: Use GEN_INT consistently.
* 1750a.md, arm.c, clipper.c, clipper.md: Use GEN_INT consistently.
        * convex.h, dsp16xx.c, fx80.md, gmicro.c, gmicro.md: Likewise.
        * i370.h, i370.md, i860.c, i860.h, i860.md, i960.c: Likewise.
        * i960.h, i960.md, m32r.md, m68k.md, m68kv4.h, m88k.c: Likewise.
        * m88k.md, ns32k.c, ns32k.md, pdp11.c, pdp11.h, pdp11.md: Likewise.
        * pyr.c, pyr.h, pyr.md, romp.c, romp.h, romp.md: Likewise.
        * rs6000.md, sparc.c, sparc.h, sparc.md, spur.c, spur.md: Likewise.
        * tahoe.md, vax.h, vax.md, we32k.c, we32k.h, we32k.md: Likewise.
        * md.texi: Likewise.

From-SVN: r18927
1998-03-31 22:20:26 -07:00
Manfred Hollstein a26fd1652b fixincludes (limits.h): Fix nested comments in Motorola's limits.h and sys/limits.h.
8
	* fixincludes (limits.h): Fix nested comments in Motorola's
	limits.h and sys/limits.h.

From-SVN: r18923
1998-03-31 22:35:25 +00:00
Manfred Hollstein b5026c5068 fixincludes (limits.h): Fix nested comments in Motorola's limits.h and sys/limits.h.
@
	* fixincludes (limits.h): Fix nested comments in Motorola's
	limits.h and sys/limits.h.

From-SVN: r18922
1998-03-31 22:35:23 +00:00
Jim Wilson 1a7cb241b3 Fix alpha-vms packed-1 failure.
* alpha.c (alpha_expand_unaligned_load): Use tgt instead of addr
	as dest of expand_binop call.

From-SVN: r18921
1998-03-31 11:24:52 -08:00
Jim Wilson 221a9f65a1 Fix core dump while compiling gdb-4.16.
* alpha.md (extzv): Correct check for valid operand[2] values.

From-SVN: r18920
1998-03-31 11:20:08 -08:00
Jim Wilson a7ebd547fb Fix HPPA -fprofile-arcs abort on switch statements.
* profile.c (branch_prob): Add code to recognize HPPA tablejump entry
	branch.

From-SVN: r18919
1998-03-31 10:56:59 -08:00
Jim Wilson c8d86b9a3c Fix problem where different code gets generated with/without -Wreturn-type.
* toplev.c (rest_of__compilation): Call init_recog_no_volatile at end.

From-SVN: r18918
1998-03-31 08:59:41 -08:00
Jeffrey A Law 8d052bc70c call.c: Include system.h.
* call.c: Include system.h.  Remove includes, declarations and
        defines provided by system.h.
        * class.c, cvt.c, decl.c, decl2.c, errfn.c error.c: Likewise.
        * except.c, expr.c friend.c, g++spec.c, init.c, input.c: Likewise.
        * lex.c, parse.y, pt.c, ptree.c repo.c rtti.c, search.c: Likewise.
        * semantics.c, sig.c, spew.c, tree.c, typeck.c: Likewise.
        * typeck2.c, xref.c: Likewise.
        * Makefile.in: Dependencies updated as appropriate.
        * Make-lang.in: Likewise.
system.h cutover from the cp subdir

From-SVN: r18917
1998-03-31 06:25:46 -07:00
Stan Cox 97be8f06eb gcc.c, cccp.c, cpplib.c, collect2.c (GET_ENVIRONMENT): Added.
From-SVN: r18914
1998-03-30 14:35:36 +00:00