Commit Graph

40940 Commits

Author SHA1 Message Date
Jason Merrill
a6f3addd0b c-decl.c (finish_function): Warn about a non-void function with no return statement and no abnormal exit.
* c-decl.c (finish_function): Warn about a non-void function with
        no return statement and no abnormal exit.
        (current_function_returns_abnormally): New variable.
        (start_function): Clear it.
        (struct c_language_function): Add returns_abnormally.
        (push_c_function_context): Save it.
        (pop_c_function_context): Restore it.
        (builtin_function): Set TREE_THIS_VOLATILE on return fns.
        (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
        an explicit return type.
        * c-tree.h: Declare current_function_returns_abnormally.
        (C_FUNCTION_IMPLICIT_INT): New macro.
        * c-typeck.c (build_function_call): Set it.
        (c_expand_return): Set current_function_returns_value even if the
        value is erroneous.

From-SVN: r49577
2002-02-07 07:22:10 -05:00
Ulrich Weigand
fde5baddf4 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
From-SVN: r49576
2002-02-07 12:14:46 +00:00
Jan Hubicka
a9ca50b165 MAINTAINERS: Put self in as maintainer for x86-64 port.
* MAINTAINERS: Put self in as maintainer for x86-64 port.
	Remove self as Write After Approval.

From-SVN: r49575
2002-02-07 11:57:13 +00:00
Jan Hubicka
162f023b98 i386-protos.h (x86_order_regs_for_local_alloc): Declare
* i386-protos.h (x86_order_regs_for_local_alloc): Declare
	* i386.c (x86_order_regs_for_local_alloc): New global function.
	* i386.h (REG_ALLOC_ORDER): CLeanup.
	(ORDER_REGS_FOR_LOCAL_ALLOC): New.

From-SVN: r49574
2002-02-07 11:18:32 +00:00
David Billinghurst
3f9796f922 re PR fortran/3743 (Reference to intrinsic `ISHFT' invalid)
2002-02-07  David Billinghurst <David.Billinghurst@riotinto.com>

	PR fortran/3743
	* g77.f-torture/execute/intrinsic-unix-bessel.f: Remove
	unsupported cases.

From-SVN: r49573
2002-02-07 11:13:13 +00:00
Adam Megacz
1dd52a9935 For some reason AC_HEADER_SYS_WAIT() isn't defining HAVE_SYS_WAIT_H on Linux...
For some reason AC_HEADER_SYS_WAIT() isn't defining HAVE_SYS_WAIT_H on
Linux; this patch backs out my patch that added the #ifdefs until I
can figure out what happened.

From-SVN: r49572
2002-02-07 10:02:59 +00:00
Richard Henderson
30203c18ab dwarf2-1.c: Update for return warnings.
* gcc.dg/debug/dwarf2-1.c: Update for return warnings.
	* gcc.dg/noncompile/920507-1.c, gcc.dg/noncompile/920721-2.c,
	gcc.dg/noncompile/label-lineno-1.c, objc.dg/const-str-1.m,
	objc.dg/const-str-2.m, objc.dg/method-1.m: Likewise.

From-SVN: r49571
2002-02-07 01:08:25 -08:00
Richard Henderson
9b462c4274 alias.c (find_base_value): Recall base values for fixed hard regs.
* alias.c (find_base_value): Recall base values for fixed hard regs.
	* loop.c (loop_regs_update): Don't use single_set on non-insns.

From-SVN: r49570
2002-02-07 00:57:04 -08:00
GCC Administrator
19c881777c Daily bump.
From-SVN: r49569
2002-02-07 08:17:30 +00:00
Alexandre Oliva
06e455a9db mips.md (define_delay): Adjust required length.
* config/mips/mips.md (define_delay) [mips16]: Adjust required
length.

From-SVN: r49567
2002-02-07 06:09:11 +00:00
Adam Megacz
b8fe3c1e06 configure.in: Changed mingw) to *mingw*).
2002-02-06  Adam Megacz <adam@xwt.org>

        * configure.in: Changed mingw) to *mingw*).
        * win32.cc: Created this file.
        * win32.h: Created this file.
        * win32.cc, prims.cc, win32.h (win32_exception_handler): Moved
        win32_exception_handler from prims.cc to win32.cc, added
        header in win32.h.
        * prims.cc: removed some #ifdef-WIN32'd headers which are no
        longer needed now that we have platform.h

From-SVN: r49566
2002-02-07 05:26:42 +00:00
Adam Megacz
df79080e5f shs.h, [...]: use uint<n>_t instead of LONG and BYTE
2002-02-06  Adam Megacz <adam@xwt.org>

        * shs.h, shs.cc, natSimpleSHSStream.cc: use uint<n>_t instead
        of LONG and BYTE

From-SVN: r49565
2002-02-07 05:01:29 +00:00
Adam Megacz
4048d33691 name-finder.h: don't #include sys/wait.h unless HAVE_SYS_WAIT_H
2002-02-06  Adam Megacz <adam@xwt.org>

        * name-finder.h: don't #include sys/wait.h unless HAVE_SYS_WAIT_H

From-SVN: r49564
2002-02-07 04:37:00 +00:00
Adam Megacz
b1d246853d gc.h: (GC_CreateThread) This function is now exposed on all Win32 platforms.
2002-02-06  Adam Megacz <adam@xwt.org>

        * boehm-gc/include/gc.h: (GC_CreateThread) This function is
        now exposed on all Win32 platforms.
        * boehm-gc/win32_threads.c: (GC_CreateThread) This now
        compiles on Win32; it invokes CreateThread() if GC is built
        as a DLL; otherwise it registers the thread.
        * boehm-gc/misc.c (GC_init): Initialize GC_allocate_ml in case
        libgcjgc was not built as a DLL.

From-SVN: r49563
2002-02-07 03:56:40 +00:00
Anthony Green
b5ee195f1e embedded updates
From-SVN: r49562
2002-02-07 03:24:12 +00:00
Tom Tromey
383aa2ef49 verify.cc (require_array_type): If argument is a null array of references, return null as the element type.
* verify.cc (require_array_type): If argument is a null array of
	references, return null as the element type.

From-SVN: r49561
2002-02-07 02:27:10 +00:00
Richard Henderson
edd1967d0c re PR c/5609 (ICE on named operands in inline assembler)
PR c/5609
        * stmt.c (resolve_operand_name_1): Take more care with mixed
        named and unnamed operands.

        * gcc.dg/asm-4.c: Add case with an unnamed operand in the middle.

From-SVN: r49560
2002-02-06 17:38:40 -08:00
Mark Wielaard
448f456d7a verify.cc (verify_instructions_0): Actually push the duplicate of a wide type.
2002-02-06  Mark Wielaard  <mark@klomp.org>

	* verify.cc (verify_instructions_0) [op_dup2]: Actually push the
	duplicate of a wide type.

From-SVN: r49559
2002-02-07 01:11:32 +00:00
Loren J. Rittle
ef8259b757 c_locale_generic.cc: Do not trust _GLIBCPP_HAVE_STRTOF or _GLIBCPP_HAVE_STRTOLD as set by configure.
* config/locale/c_locale_generic.cc: Do not trust
	_GLIBCPP_HAVE_STRTOF or _GLIBCPP_HAVE_STRTOLD as
	set by configure.

From-SVN: r49558
2002-02-06 23:11:16 +00:00
Janis Johnson
e1e52c7e55 * gcc.dg/20020206-1.c: New test.
From-SVN: r49557
2002-02-06 22:16:11 +00:00
Janis Johnson
a2cd028f5f loop.c (remove_constant_addition): Avoid clobbering a shared CONST expression.
* loop.c (remove_constant_addition): Avoid clobbering a shared
	CONST expression.

Co-Authored-By: Jan Hubicka <jh@suse.cz>

From-SVN: r49556
2002-02-06 22:13:01 +00:00
Tom Tromey
199ecb183b verify.cc (type::isnull): New method.
* verify.cc (type::isnull): New method.
	(require_array_type): Handle case where array is null.
	(verify_instructions_0) [op_arraylength]: Likewise.

From-SVN: r49555
2002-02-06 21:53:59 +00:00
Toon Moene
5e3f4df7fe PR fortran/4730 fortran/5473
2002-02-06  Toon Moene  <toon@moene.indiv.nluug.nl>

	PR fortran/4730 fortran/5473
	* com.c (ffecom_expr_): Deal with %VAL constructs.
	* intrin.c (ffeintrin_check_): Handle 'N' constraints for intrinsics,
	to indicate "no larger than default kind" integers and logicals.
	* intrin.def: Use 'N' constraints in table of intrinsics.
	* intdoc.c: Document this constraint.
	* intdoc.texi: Regenerated.

From-SVN: r49554
2002-02-06 21:49:42 +00:00
Ulrich Weigand
e8487c0417 config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
* config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
	* config/s390/t-linux64: New file.
	* config/s390/libgcc-glibc.ver: New file.

From-SVN: r49553
2002-02-06 21:19:46 +00:00
Ulrich Weigand
58d10f89c4 linux64.h: Delete file.
* config/s390/linux64.h: Delete file.
	* config/s390/s390x.h: New file.
	* config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
	as target header file.
	* config/s390/linux.h (TARGET_VERSION): Define depending on
	DEFAULT_TARGET_64BIT.
	(CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
	(SIZE_TYPE, PTRDIFF_TYPE): Likewise.
	(NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
	(CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
	(LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
	(EXTRA_SPEC): New define.
	* config/s390/s390.h (TARGET_VERSION): Define depending on
	DEFAULT_TARGET_64BIT.
	(MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.

From-SVN: r49552
2002-02-06 20:55:37 +00:00
Jason Merrill
5ce89b2ef0 c-decl.c (finish_function): Warn about a non-void function with no return statement and no abnormal exit.
* c-decl.c (finish_function): Warn about a non-void function with
        no return statement and no abnormal exit.
        (current_function_returns_abnormally): New variable.
        (start_function): Clear it.
        (struct c_language_function): Add returns_abnormally.
        (push_c_function_context): Save it.
        (pop_c_function_context): Restore it.
        (builtin_function): Set TREE_THIS_VOLATILE on return fns.
        (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
        an explicit return type.
        * c-tree.h: Declare current_function_returns_abnormally.
        (C_FUNCTION_IMPLICIT_INT): New macro.
        * c-typeck.c (build_function_call): Set it.
        (c_expand_return): Set current_function_returns_value even if the
        value is erroneous.

From-SVN: r49551
2002-02-06 15:40:18 -05:00
Jakub Jelinek
caaf2272c0 re PR c/5420 (bad code generated with gcc3.1/ia64)
PR c/5420:
	* c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
	unsafe for reevaluation.

	* gcc.c-torture/execute/20020206-2.c: New test.

From-SVN: r49550
2002-02-06 20:37:31 +01:00
Jakub Jelinek
d512928893 re PR c/5482 (cyclone-0.2, ICE in emit_move_insn, at expr.c:2746)
PR c/5482:
	* c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
	EXPR_STMT, but COMPOUND_STMT, recurse into it.

	* gcc.c-torture/execute/20020206-1.c: New test.

From-SVN: r49549
2002-02-06 20:32:04 +01:00
Jakub Jelinek
5364626ac4 re PR rtl-optimization/5429 (gcc 3.1 20020114 fails with Internal compiler error in verify_wide_reg_1, at flow.c:526)
PR optimization/5429:
	* gcc.c-torture/compile/20020206-1.c: New test.

From-SVN: r49548
2002-02-06 20:27:05 +01:00
Richard Henderson
7fb750990c cfganal.c (keep_with_call_p): Source for fixed_reg dest must be a general_operand.
* cfganal.c (keep_with_call_p): Source for fixed_reg dest must
        be a general_operand.  Dest for function value must be a pseudo.

From-SVN: r49547
2002-02-06 10:16:02 -08:00
Loren J. Rittle
99a4deb8a9 acinclude.m4: Add C++ linkage check for strtof.
* acinclude.m4: Add C++ linkage check for strtof.
	* aclocal.m4: Rebuilt.
	* config.h.in: Rebuilt.
	* configure: Rebuilt.
	* config/locale/c_locale_generic.cc: Conditionally include
	<ieeefp.h>.  Improve handling and error checking of float
	and long double input for non-C99 configurations.

From-SVN: r49546
2002-02-06 17:31:43 +00:00
Nick Clifton
23fb1469b5 Do not use an explicit alignment value as certain file formats cannot support
particularly large alignments.

From-SVN: r49545
2002-02-06 16:18:33 +00:00
Nick Clifton
1b8afbe758 Expect the compilation to fail because the COFF format does not support the
weak attribute.

From-SVN: r49544
2002-02-06 12:15:53 +00:00
Paolo Carlini
6662d4c337 locale_facets.tcc (money_get::do_get(string)): In case money_base::symbol deal properly with multi-char sign for patterns...
2002-02-06  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/locale_facets.tcc (money_get::do_get(string)):
	In case money_base::symbol deal properly with multi-char sign
	for patterns {X,Y,Z,symbol} and {X,Y,symbol,none}.
	* testsuite/22_locale/money_get_members_char.cc: Add test07.
	* testsuite/22_locale/money_get_members_wchar_t.cc: Add test07.

From-SVN: r49543
2002-02-06 12:13:00 +00:00
Nick Clifton
d3a8b6a672 Accept LABEL_REFs as well as SYMBOL_REFs from the constant pool.
From-SVN: r49542
2002-02-06 09:08:19 +00:00
GCC Administrator
f5ee37f2ce Daily bump.
From-SVN: r49540
2002-02-06 08:16:45 +00:00
Alexandre Oliva
3c1299c5ad dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters passed by invisible reference.
* dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
passed by invisible reference.

From-SVN: r49539
2002-02-06 07:40:38 +00:00
Richard Henderson
c2c9f6c92e * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
From-SVN: r49538
2002-02-05 22:58:31 -08:00
Bryce McKinlay
65c9eafb7b Oops, forgot these in last check-in.
From-SVN: r49537
2002-02-06 05:45:23 +00:00
Hans-Peter Nilsson
a824924d41 Implement using "base addresses" in insn operands as default.
* config/mmix/mmix.c (mmix_conditional_register_usage): if
	-mabi=gnu, modify fixed_regs to fit the GNU ABI.
	(mmix_extra_constraint): Use 'R' to indicate that GETA should be
	used to read the rtx value.
	(mmix_target_asm_function_epilogue): Fix spacing.
	(mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
	(mmix_legitimate_address): Ditto.
	(mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
	should be loaded with a GETA insn.  Don't allocate needless extra
	char for nul termination and fix misleading comment.
	(mmix_print_operand_address): Handle constants if
	TARGET_BASE_ADDRESSES.
	(mmix_output_register_setting): Use base addressing if
	TARGET_BASE_ADDRESSES and the number of insns is 3.
	* config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
	* config/mmix/mmix.md ("movdi"): Change the alternative with GETA
	to use R as constraint, add LDA to match s.
	* config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
	(TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
	(TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
	(FIXED_REGISTERS): Make registers $231..$246 fixed by default.
	(MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
	order with other fixed registers.
	(MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
	other parameter/call-clobbered registers.
	* doc/invoke.texi (Option Summary) <MMIX Options>: Add
	-mbase-addresses, -mno-base-addresses.
	(MMIX Options): Ditto.

From-SVN: r49536
2002-02-06 05:13:12 +00:00
Eric Christopher
282cb01bc2 crti.asm: Add changes for mips16.
2002-02-05  Eric Christopher  <echristo@redhat.com>

	* config/mips/crti.asm: Add changes for mips16. mips16 uses
	register 7 as RA instead of $31.
	* config/mips/crtn.asm: Ditto.
	* config/mips/mips.c (mips_move_2words): Add case for
	TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
	(compute_frame_size): Fix typo.
	(save_restore_insns): Ditto.  Make documentation about using
	register $7 as return register more precise.
	(mips_expand_epilogue): Fix comment. Add code to work around not
	being able to add to the stack pointer directly.
	* config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
	to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
	epilogue.

From-SVN: r49535
2002-02-06 02:50:09 +00:00
Bryce McKinlay
8c78e3a3cd configure.in: Set up PLATFORMOBJS not PLATFORM_SPECIFIC_SOURCES.
* configure.in: Set up PLATFORMOBJS not PLATFORM_SPECIFIC_SOURCES.
	Symlink PLATFORMH to platform.h.
	* Makefile.am (libgcj_la_DEPENDENCIES, libgcj_la_LIBADD): Add
	PLATFORMOBJS.
	* java/lang/natSystem.cc: #include platform.h not posix.h.
	* Makefile.in: Rebuilt with libgcj automake.
	* configure: Rebuilt.

From-SVN: r49534
2002-02-06 01:46:46 +00:00
John David Anglin
73c342b9c8 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
From-SVN: r49533
2002-02-06 00:21:26 +00:00
Aldy Hernandez
ef238c58cf altivec.h: Change elem to _S_elem.
2002-02-06  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/altivec.h: Change elem to _S_elem.

From-SVN: r49532
2002-02-05 23:19:13 +00:00
David Billinghurst
8a921c08a7 pr5473.f: New test
2002-02-05  David Billinghurst <David.Billinghurst@riotinto.com>

	* g77.dg/pr5473.f:  New test

From-SVN: r49531
2002-02-05 22:34:37 +00:00
Jason Thorpe
ad08e60e89 netbsd.h (WCHAR_TYPE): Define.
* config/netbsd.h (WCHAR_TYPE): Define.
(WCHAR_TYPE_SIZE): Ditto.
(WINT_TYPE): Ditto.
* config/alpha/netbsd.h (WCHAR_TYPE): Remove.
(WCHAR_UNSIGNED): Ditto.
(WCHAR_TYPE_SIZE): Ditto.
(WINT_TYPE): Ditto.
* config/arm/netbsd.h: Likewise.
* config/i386/netbsd-elf.h: Likewise.
* config/i386/netbsd.h: Likewise.
* config/m68k/netbsd-elf.h: Likewise.
* config/m68k/netbsd.h: Likewise.
* config/ns32k/netbsd.h: Likewise.
* config/sparc/netbsd.h: Likewise.
* config/vax/netbsd.: Likewise.

From-SVN: r49528
2002-02-05 19:01:56 +00:00
Alexandre Oliva
1af6141b86 class.c: Include target.h.
* class.c: Include target.h.
(check_bitfield_decl): Disregard EMPTY_FIELD_BOUNDARY,
BITFIELDS_NBYTES_LIMITED and PCC_BITFIELD_TYPE_MATTERS for MS
bit-field layout.
* Make-lang.in: Adjust deps.

From-SVN: r49527
2002-02-05 18:01:51 +00:00
Alexandre Oliva
f913c102a4 target.h (struct gcc_target): Added ms_bitfield_layout_p.
* target.h (struct gcc_target): Added ms_bitfield_layout_p.
* target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
(TARGET_INITIALIZER): this.
* doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
(BITFIELD_NBYTES_LIMITED): Markup fix.
* tree.h (default_ms_bitfield_layout_p): Declare.
(record_layout_info): Added prev_field.
* tree.c (default_ms_bitfield_layout_p): New fn.
* c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
* stor-layout.c: Include target.h.
(start_record_layout): Initialize prev_field.
(place_field): Handle MS bit-field layout, and disregard
EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
* Makefile.in (stor-layout.o): Adjust dependencies.

From-SVN: r49526
2002-02-05 17:56:34 +00:00
Jason Merrill
c13db5d119 demangle.h (cplus_demangle_v3): Add "options" parm.
* demangle.h (cplus_demangle_v3): Add "options" parm.
        (cplus_demangle_v3_type): Remove prototype.
        (DMGL_VERBOSE): New macro.
        (DMGL_TYPES): New macro.

        * cplus-dem.c (flags): Add DMGL_VERBOSE
        (cplus_demangle_v3_p): Remove.
        (demangle_it): Add DMGL_TYPES to passed flags.
        * cp-demangle.c (cplus_demangle_v3_all): Remove.
        (cplus_demangle_v3_type): Remove.
        (cplus_demangle_v3): Add options parm.

        * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.

From-SVN: r49525
2002-02-05 11:33:31 -05:00
Paolo Carlini
e07554eb17 locale_facets.tcc (money_get::do_get(string)): First construct a tentative returned string...
2002-02-05  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/locale_facets.tcc (money_get::do_get(string)):
	First construct a tentative returned string, then, only if the
	parsing succeeds, copy it into the string passed by reference.
	* testsuite/22_locale/money_get_members_char.cc: Add test06.
	* testsuite/22_locale/money_get_members_wchar_t.cc: Add test06.

From-SVN: r49523
2002-02-05 11:35:48 +00:00