Commit Graph

42438 Commits

Author SHA1 Message Date
Richard Sandiford
fc55285160 stmt.c (check_unique_operand_names): Expect operand names to be strings rather than identifiers.
* stmt.c (check_unique_operand_names): Expect operand names to
	be strings rather than identifiers.  Use simple_cst_equal to
	compare them.
	(resolve_operand_name_1): Make same identifier to string change here.
	* c-parse.in (asm_operand): Convert a named operand into a string.
	* cp/parse.y (asm_operand): Likewise.

From-SVN: r52269
2002-04-13 09:29:03 +00:00
GCC Administrator
c882522104 Daily bump.
From-SVN: r52268
2002-04-13 07:16:56 +00:00
Mark Mitchell
0481bc2173 re PR c++/5373 (Statement expressions broken in C++)
PR c++ 5373.
	* g++.dg/parse/stmtexpr1.C: New test.

	PR c++/5373.
	* semantics.c (finish_expr_stmt): Remember the type of the
	expression before any conversions are performed.

From-SVN: r52264
2002-04-13 07:10:12 +00:00
Andreas Schwab
1d405c5eba * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
From-SVN: r52262
2002-04-13 01:59:10 +00:00
Mark Mitchell
9928a3d53a re PR c++/5189 (g++ -c bug.cpp crashed on simple stupid file)
PR c++/5189.
	* call.c (add_template_candidate_real): Do not treat member
	templates as copy constructors.

	PR c++/5189.
	* g++.dg/template/copy1.C: New test.

From-SVN: r52260
2002-04-13 01:33:23 +00:00
Mark Mitchell
c740732f62 Revert these changes:
2002-04-06  Mark Mitchell  <mark@codesourcery.com>

	PR c++/5571
	* stor-layout.c (layout_decl): Reset the RTL for the decl.

	* decl.c (duplicate_decls): Do not copy the RTL for a variable
	declaration if the old variable had an incomplete type and the new
	variable does not.
	(complete_vars): Do not call layout_decl for completed variables.

From-SVN: r52258
2002-04-13 01:25:27 +00:00
Richard Henderson
21b1475254 * gcc.c-torture/execute/20020406-1.c (DUPFFnew): Use calloc.
From-SVN: r52255
2002-04-12 16:55:05 -07:00
DJ Delorie
0a1e123a75 Missed this entry in last commit
From-SVN: r52253
2002-04-12 19:17:54 -04:00
Richard Henderson
3fc602a055 config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
* config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
        (sparc*-*-solaris): Clean up header files.
        * configure.in (AS_SPARC64_FLAG): Error out if can't find it
        and plan on generating 64-bit code.
        * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
        * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
        * config/sparc/sol2-sld-64.h: Rename ...
        * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
        for AS_SPARC64_FLAG not defined.
        * config/sparc/sol2-gld-bi.h: New.
        * config/sparc/sol2-sld.h: Remove.
        * config/sparc/sol26-sld.h: New.
        * config/sparc/sol2.h: Tidy comments.
        * doc/install.texi: Document sparc-solaris configury changes.

From-SVN: r52251
2002-04-12 16:02:45 -07:00
Richard Henderson
2f15e255ed recog.c (offsettable_address_p): Match the logic in adjust_address.
* recog.c (offsettable_address_p): Match the logic in adjust_address.

        * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
        in 64-bit mode only.  Use only for 32-bit or MEDLOW.

From-SVN: r52250
2002-04-12 15:47:34 -07:00
Steve Ellcey
ef290537a3 * gcc/libstdc++-v3/config/os/hpux/bits/os_defines.h
(strtoll, strtoull): In 64 bit mode HP-UX (IA64 and HPPA)
	does not define strtoll or strtoull, but does define strtol
	and strtoul which are the same since in 64 bit mode
	sizeof(long) == sizeof(long long).

From-SVN: r52247
2002-04-12 22:31:27 +00:00
Rainer Orth
cc8475cbc3 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
From-SVN: r52246
2002-04-12 22:25:08 +00:00
Jeff Law
ef1b885812 Fix typo in ChangeLog entry.
From-SVN: r52244
2002-04-12 15:52:46 -06:00
Jeff Law
6f133a4aeb pa.c (pa_can_combine_p): Call insn_extract before calling constrain_operands.
* pa.c (pa_can_combine_p): Call insn_extract before calling
	constrain_operands.

From-SVN: r52242
2002-04-12 15:43:17 -06:00
Geoffrey Keating
869b8e4d40 20020412-1.c: New file, renamed from gcc.c-torture/execute/20020307-2.c.
* gcc.c-torture/execute/20020412-1.c: New file, renamed from
	gcc.c-torture/execute/20020307-2.c.

From-SVN: r52241
2002-04-12 20:41:58 +00:00
Douglas B Rupp
2d424b9fa3 * config/i386/i386-interix.h (CPP_PREDEFINES): Handle __declspec.
From-SVN: r52239
2002-04-12 15:56:00 -04:00
Douglas B Rupp
1329e60058 i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
* config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
	(TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
	(DEFAULT_PCC_STRUCT_RETURN): Define as 0.
	* config/i386/t-interix (USER_H): Remove.

From-SVN: r52237
2002-04-12 15:47:45 -04:00
Phil Edwards
b963aad8ed std_bitset.h: Doxygenate std::bitset<>.
2002-04-12  Phil Edwards  <pme@gcc.gnu.org>

	* include/std/std_bitset.h:  Doxygenate std::bitset<>.  Clean up
	trailing spaces, indentation, and macro names.  Make exception
	messages more informative.

From-SVN: r52233
2002-04-12 19:15:59 +00:00
DJ Delorie
0339d2395b integrate.c (compare_blocks): Make comparisons safe for when sizeof(int) < sizeof(char *).
* integrate.c (compare_blocks): Make comparisons safe for when
sizeof(int) < sizeof(char *).
(find_block): Likewise.

From-SVN: r52232
2002-04-12 14:37:56 -04:00
Jan Hubicka
cc4d5fec87 rs6000.c (call_operand): Allow LINK and COUNT registers.
2002-04-12  Jan Hubicka  <jh@suse.cz>
            David Edelsohn  <edelsohn@gnu.org>

        * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
        registers.
        (symbol_ref_operand): New.
        * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
        * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.

Co-Authored-By: David Edelsohn <edelsohn@gnu.org>

From-SVN: r52231
2002-04-12 12:57:47 -04:00
Anthony Green
2274b9b3fe Fix botch in last commit.
From-SVN: r52230
2002-04-12 14:51:37 +00:00
Andreas Schwab
93215a1b43 ia64.h (ASM_SPEC): Moved from here ...
* config/ia64/ia64.h (ASM_SPEC): Moved from here ...
	* config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
	overrides the definition in config/svr4.h.

From-SVN: r52228
2002-04-12 14:41:01 +00:00
Anthony Green
9fef1fe3e4 Add --extdirs support.
From-SVN: r52227
2002-04-12 14:28:50 +00:00
Anthony Green
395cb21141 Install libgcj.jar as libgcj-VERSION.jar.
From-SVN: r52226
2002-04-12 14:28:10 +00:00
Eric Norum
1d80248e2f rtems.h, [...] (*-rtems*): Cleanup pass to move common definitions to config/rtems.h and make the targets...
2002-04-12	Eric Norum <eric.norum@usask.ca>

	* config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
	config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
	config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
	config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
	config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
	config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
	config/v850/rtems.h (*-rtems*): Cleanup pass to move common
	definitions to config/rtems.h and make the targets more similar.

From-SVN: r52225
2002-04-12 13:35:03 +00:00
Richard Kenner
fa06ab5c42 expr.c (expand_assigment): Remove duplicate conversions #ifdef POINTERS_EXTEND_UNSIGNED.
* expr.c (expand_assigment): Remove duplicate conversions #ifdef
	POINTERS_EXTEND_UNSIGNED.
	(store_constructor, expand_expr, case COMPONENT_REF): Likewise.
	(store_expr): Use TYPE_MODE (sizetype), not ptr_mode.

From-SVN: r52223
2002-04-12 08:33:24 -04:00
Richard Kenner
fa1591cb15 emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET not specified.
* emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
	not specified.

From-SVN: r52221
2002-04-12 08:17:59 -04:00
J"orn Rennecke
12e85a0e1d sh.c (calc_live_regs, [...]): Use of PR_MEDIA_REG / PR_REG depends on TARGET_SHMEDIA, not TARGET_SH5.
* sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
	depends on TARGET_SHMEDIA, not TARGET_SH5.

From-SVN: r52220
2002-04-12 13:14:33 +01:00
Hans-Peter Nilsson
1ab3e58a2f function.c (fixup_var_refs_1): For paradoxical (subreg VAR), replace VAR, don't try the subreg.
* function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
	For paradoxical (subreg VAR), replace VAR, don't try the subreg.

From-SVN: r52217
2002-04-12 11:31:25 +00:00
Richard Sandiford
4b72e8edac * g++.dg/ext/attrib5.C,
* g++.dg/lookup/struct1.C: New tests.

From-SVN: r52215
2002-04-12 10:59:33 +00:00
J"orn Rennecke
18778292a0 sh.c (broken_move): Constant 0.
* sh.c (broken_move): Constant 0. / 1. load is OK if there is
	no r0 clobber.

From-SVN: r52214
2002-04-12 11:55:32 +01:00
Richard Sandiford
4782bd5bee decl.c (duplicate_decls): Don't try to unify an implicit typedef with an explicit one.
* decl.c (duplicate_decls): Don't try to unify an implicit typedef
	with an explicit one.
	(follow_tag_typedef): New.
	(lookup_tag): Use it to extract the tag of an explicit typedef.
	(xref_tag): Likewise.

From-SVN: r52213
2002-04-12 10:55:27 +00:00
Jason Merrill
e6f648758e fix whitespace
From-SVN: r52210
2002-04-12 06:35:30 -04:00
Andrew Haley
2f4d058f0c typeck.c (type_after_usual_arithmetic_conversions): If two types have the same variant, return immediately.
2002-04-11  Andrew Haley  <aph@redhat.com>

	* typeck.c (type_after_usual_arithmetic_conversions):
	If two types have the same variant, return immediately.
	When two floating-point operands are the same precision:
	  convert to float if one of the operands is float;
	  if neither operand is one of the standard types, return the type
	  of the first operand.

From-SVN: r52209
2002-04-12 09:08:17 +00:00
Loren J. Rittle
4b4248b674 SyncGlobal.java, [...]: New test case.
* libjava.lang/SyncGlobal.java, libjava.lang/SyncGlobal.out:
	New test case.

From-SVN: r52207
2002-04-12 08:33:13 +00:00
Andreas Schwab
9002507c70 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
From-SVN: r52206
2002-04-12 08:27:54 +00:00
Richard Henderson
9be4083349 re PR bootstrap/4191 (GCC does not build for d30v-elf - needs tweaking for crtstuff.c changes)
PR bootstrap/4191
        * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.

        * flow.c (mark_used_reg): Manage reg_cond_dead properly for
        modes spanning multiple hard regs.

        * recog.c (peephole2_optimize): Rebuild jump labels as needed.

From-SVN: r52205
2002-04-12 00:52:05 -07:00
GCC Administrator
c58c6b73f4 Daily bump.
From-SVN: r52203
2002-04-12 07:17:27 +00:00
Richard Henderson
b773723097 fstream.tcc (basic_filebuf<>::open): Fix & ordering.
* include/bits/fstream.tcc (basic_filebuf<>::open): Fix & ordering.
	* include/bits/ostream.tcc (basic_ostream<>::operator<<(long)): Same.
	(basic_ostream<>::operator<<(long long)): Same.

From-SVN: r52198
2002-04-11 22:42:23 -07:00
John David Anglin
3d9268b697 pa.c (pa_output_function_prologue): Don't accumulate the total number of code bytes when using TARGET_64BIT...
* pa.c (pa_output_function_prologue): Don't accumulate the total
	number of code bytes when using TARGET_64BIT, or gas, SOM and not
	the portable runtime.
	(output_deferred_plabels): Handle 64bit plabels.
	(output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
	generating pic code using the GAS assembler for object formats that
	are not SOM (ie., ELF32 and ELF64).
	(output_millicode_call): Check attribute type if attribute length is 28.
	Likewise use $PIC_pcrel$0.  Only call get_attr_length and
	dbr_sequence_length once.
	(output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
	dbr_sequence_length once.
	* pa.h (TARGET_SOM): Define if not defined.
	* pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
	with GAS and not SOM.
	(jump, call_internal_reg, call_value_internal_reg): Likewise.
	* som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.

From-SVN: r52196
2002-04-12 02:30:52 +00:00
David O'Brien
d360fd1862 freebsd.h (NO_IMPLICIT_EXTERN_C, [...]): Give value.
2002-04-11  David O'Brien  <obrien@FreeBSD.org>
	* config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
	(DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
	(USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
	DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
	elfos.h and dbxelf.h values are fine now.
	* config/i386/freebsd.h, config/alpha/freebsd.h
	(DEFAULT_PCC_STRUCT_RETURN): Define to 0.

Approved by:  Richard Henderson <rth@redhat.com>
              Message-ID: <20020411175216.B11442@redhat.com>

From-SVN: r52194
2002-04-12 01:18:38 +00:00
Bryce McKinlay
605dc89b0e configure.host: Set can_unwind_signal on hosts which support it.
* configure.host: Set can_unwind_signal on hosts which support it.
	Don't set CHECKREFSPEC and DIVIDESPEC for FreeBSD.
	* configure.in: Set CHECKREFSPEC and DIVIDESPEC if not using SJLJ
	exceptions and can_unwind_signal isn't set.
	* configure: Rebuilt.

From-SVN: r52193
2002-04-12 02:14:33 +01:00
David O'Brien
5b8fcab634 aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__ or set Acpu or Amachine.
2002-04-11  David O'Brien  <obrien@FreeBSD.org>
	* config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
	or set Acpu or Amachine.  Reformat.
	(ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
	define.
	(LINK_SPEC): Do not need to undef.
	* config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
	* config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
	(ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
	define.
	* config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
	(ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
	(LINK_SPEC): Do not need to undef.
	(DONT_USE_BUILTIN_SETJMP): Do not define.
	* config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
	(CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
	(DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
	Remove trailing spaces.
	* config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
	__ELF__, or set Acpu or Amachine.  Reformat.
	(ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
	define.

Approved by:  Richard Henderson <rth@redhat.com>
              Message-ID: <20020411160138.A11250@redhat.com>

From-SVN: r52191
2002-04-12 01:08:20 +00:00
David O'Brien
fee42cc1e8 config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match all other *-*-freebsd* targets.
2002-04-11  David O'Brien  <obrien@FreeBSD.org>
	* config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
	all other *-*-freebsd* targets.

Approved by:  Richard Henderson <rth@redhat.com>
              Message-ID: <20020411174756.A11442@redhat.com>

From-SVN: r52189
2002-04-12 00:54:42 +00:00
Richard Henderson
77a403e4d8 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
From-SVN: r52188
2002-04-11 16:43:02 -07:00
Richard Henderson
51cd12de0d * config/linker-map.gnu: Add __gxx_personality_sj0.
From-SVN: r52187
2002-04-11 16:27:45 -07:00
David O'Brien
cf0005c62f config.gcc (alpha*-*-openbsd, [...]): Include {cpu}/{cpu}.h thru tm_file.
2002-04-11  David O'Brien  <obrien@FreeBSD.org>
	* config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
	Include {cpu}/{cpu}.h thru tm_file.
	(alpha*-*-linux*ecoff): Remove target.
	* config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
	(LINK_SPEC): Remove, is not OS independent.
	* config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
	(LINK_SPEC): Do not need to #undef any longer.
	* config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
	any longer.
	* config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
	__ELF__.
	(LINK_SPEC): Moved here from alpha/elf.h.
	* config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
	SUB_CPP_PREDEFINES.
	* config/alpha/linux-ecoff.h: Remove.
	* config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
	(CPP_SPEC): Define _POSIX_SOURCE as needed.
	(CPP_SUBTARGET_SPEC): Do not define.
	(LINK_SPEC): Do not need to #undef any longer.
	* config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
	* config/alpha/vms.h: Likewise.

Approved by:  Richard Henderson <rth@redhat.com>
              Message-ID: <20020411152309.A11121@redhat.com>
	      Message-ID: <20020411160159.B11250@redhat.com>
	      Jason R Thorpe <thorpej@wasabisystems.com>
	      Message-ID: <20020411161434.I4954@dr-evil.shagadelic.org>

From-SVN: r52186
2002-04-11 23:25:54 +00:00
Tom Tromey
c646bade05 * win32.cc (_Jv_platform_initProperties): Fix spelling of _Jv_Free.
From-SVN: r52183
2002-04-11 22:23:43 +00:00
Richard Sandiford
7825d1cf58 extend.texi: Remove old claim that typedefs cannot have an alignment attribute.
* doc/extend.texi: Remove old claim that typedefs cannot have
	an alignment attribute.

From-SVN: r52180
2002-04-11 21:33:31 +00:00
DJ Delorie
ab50d72b69 i2002-04-11 DJ Delorie <dj@redhat.com>
* Makefile.in, configure.in: Sync with binutils, entries
	follow...

2002-02-01  Mo DeJong  <supermo@bayarea.net>

	* Makefile.in: Add all-tix to deps for all-snavigator
	so that tix is built when building snavigator.

2002-01-11  Steve Ellcey  <sje@cup.hp.com>

	* configure.in (ia64*-*-hpux*): New target for IA64 HP-UX,
	ld and gdb are not supported.

2002-01-07  Mark Salter  <msalter@redhat.com>

	* configure.in: Remove target-bsp and target-cygmon from arm builds.
	Allow target-libgloss to be built for arm, strongarm, and xscale.

2001-12-13  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* configure.in (FLAGS_FOR_TARGET): Remove -nostdinc and -isystem
	options for i[3456]86-pc-linux* native builds.

2001-11-20  Nick Clifton  <nickc@cambridge.redhat.com>

	* Makefile.in (do-proto-toplev): Use msgfmt to generate .gmo
	files from .po files for a distribution.

2001-09-03  Jeff Holcomb  <jeffh@redhat.com>

	* configure.in: Enable libstdc++-v3 for h8300 targets.

2001-06-19  Alan Modra  <amodra@bigpond.net.au>

	* Makefile.in (VER): If AM_INIT_AUTOMAKE uses BFD_VERSION, get
	version from bfd/.

Fri Jun  8 11:14:02 2001  Andrew Cagney  <cagney@b1.cygnus.com>

	* Makefile.in (VER): When present, extract the version number from
	the file version.in.

2001-05-24  Tom Rix <trix@redhat.com>

	* configure.in : enable ld for aix

2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>

	* mh-s390pic: New file.
	* mt-s390pic: New file.

2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>

	* config.guess: Add linux target for S/390.

2000-11-07  Philip Blundell  <pb@futuretv.com>

	* Makefile.in (ETC_SUPPORT): Also add configbuild.* and configdev.*.

2000-11-03  Philip Blundell  <pb@futuretv.com>

	* Makefile.in (ETC_SUPPORT): Add configure.texi and associated info
	files.

2001-01-15  Ben Elliston  <bje@redhat.com>

	* configure.in (host_tools): Add sid.
	Always configure cgen.

2000-11-24  Nick Clifton  <nickc@redhat.com>

	* configure.in (c4x, c5x, tic54x): Move after ARM targets.


2000-08-20  Doug Evans  <dje@casey.transmeta.com>

	* Makefile.in (ALL_MODULES): Add all-cgen.
	(CROSS_CHECK_MODULES,INSTALL_MODULES,CLEAN_MODULES): Similarily.
	(all-cgen): New target.
	(all-opcodes,all-sim): Depend on all-cgen.
	* configure.in (host_tools): Add cgen.
	Only configure cgen if --enable-cgen-maint.

From-SVN: r52179
2002-04-11 17:23:35 -04:00