Commit Graph

41799 Commits

Author SHA1 Message Date
Danny Smith
355426abb3 mingw32.h (WINT_TYPE): Define as "short unsigned int".
* config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
	int".

From-SVN: r51340
2002-03-25 21:23:55 +00:00
Richard Henderson
8018b36d0b 20011119-1.c (xxx): New.
* gcc.c-torture/compile/20011119-1.c (xxx): New.
        * gcc.c-torture/compile/20011119-2.c (xxx): New.

From-SVN: r51337
2002-03-25 12:55:20 -08:00
Zack Weinberg
15e5ad7698 toplev.c: Don't include setjmp.h.
* toplev.c: Don't include setjmp.h.  Kill float_handler_set,
	float_handled, float_handler, float_signal, set_float_handler,
	and do_float_handler.  Set handler for SIGFPE to crash_signal.
	* toplev.h: Don't prototype do_float_handler.

	* c-lex.c: Fold parse_float into lex_number.  Make warning
	about portability of hex float constants more informative, and
	don't issue it on top of a syntax error.
	* fold-const.c: Fold const_binop_1 and fold_convert_1 into
	their callers.
	* real.h: Define REAL_VALUE_ABS here...
	* simplify-rtx.c: ... not here.  Fold check_fold_consts,
	simplify_unary_real, simplify_binary_real, and
	simplify_binary_is2orm1 into their callers.
	* tree.c: Fold build_real_from_int_cst_1 into caller.

	* doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.

	* tsystem.h: Include float.h here...
	* libgcc2.c: ... not here.

java:
	* lex.c: Change java_perform_atof to take normal parameters
	instead of a pointer to a parameter block.  Call it directly
	from java_lex.

testsuite:
	* gcc.dg/c90-hexfloat-1.c: Adjust error regexps.

From-SVN: r51336
2002-03-25 20:52:28 +00:00
Benjamin Kosnik
99ffa1e37a messages_members.h: Correct conditional.
2002-03-25  Benjamin Kosnik  <bkoz@redhat.com>
            Jakub Jelinek  <jakub@redhat.com>

	* config/locale/gnu/messages_members.h: Correct conditional.
	* config/locale/gnu/messages_members.cc: Same.
	* config/locale/gnu/time_members.cc: Same.

From-SVN: r51332
2002-03-25 20:20:34 +00:00
Neil Booth
7b3e519838 * cp-lang.c (LANG_HOOKS_MAYBE_BUILD_CLEANUP): Redefine.
From-SVN: r51329
2002-03-25 19:30:31 +00:00
Mark Wielaard
caaabaa1f2 re PR java/5368 (gcj-3.0.3 segfaults with 20 line program)
Fix for PR java/5368:
	* parse.y (resolve_qualified_expression_name): Use decl not field_decl
	when printing error message.

From-SVN: r51327
2002-03-25 19:23:37 +00:00
Nick Clifton
56ae94053e Fixes for PR bootstrap/3591, target/5676:
* configure.in (mcore-pe): Disable the configuration of
  libstdc++-v3 since exceptions are not supported.
* config/mcore/mcore.h (CC1_SPEC): Define only if not already
  defined.  Do not disable exceptions or rtti.
* config/mcore/mcore-pe.h (CC1_SPEC): Define before including
  mcore.h.  Disable exceptions and rtti, since they are not
  supported by EPOC.

From-SVN: r51326
2002-03-25 19:17:40 +00:00
Neil Booth
c88770e9df c-decl.c (maybe_build_cleanup): Remove.
* c-decl.c (maybe_build_cleanup): Remove.
	* expr.c (expand_expr): Use langhook.
	* langhooks-def.h (lhd_return_null_tree,
	LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
	(LANGHOOKS_INITIALIZER): Update.
	* langhooks.c (lhd_return_null_tree): New.
	* langhooks.h (struct lang_hooks): New hook.
	* tree-inline.c (initialize_inlined_parameters): Use langhook.
	* tree.h (maybe_build_cleanup): Remove.
ada:
	* misc.c (maybe_build_cleanup): Remove.
cp:
	* cp-tree.h (cxx_maybe_build_cleanup): New.
	* decl.c (destroy_local_var, hack_incomplete_structures): Update.
	(maybe_build_cleanup): Rename cxx_maybe_build_cleanup.
	* tree.c (build_target_expr): Update.
f:
	* com.c (maybe_build_cleanup): Remove.
java:
	* decl.c (maybe_build_cleanup): Remove.

From-SVN: r51324
2002-03-25 19:11:13 +00:00
Paolo Carlini
2188d04d14 Fix typo in last Changelog.
From-SVN: r51322
2002-03-25 18:17:51 +00:00
Jeff Sturm
fd28f67b2f * linux_threads.c (GC_get_nprocs): Close file descriptor.
From-SVN: r51321
2002-03-25 18:08:57 +00:00
Bob Wilson
813b848cf2 thunk3.C: Add xtensa-*-* to list of targets using generic thunk support.
* g++.old-deja/g++.jason/thunk3.C: Add xtensa-*-* to list of
        targets using generic thunk support.

From-SVN: r51320
2002-03-25 17:57:03 +00:00
Ulrich Weigand
9cc737e8da 2002-03-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
Paolo Carlini  <pcarlini@unitus.it>

	* testsuite/locale/codecvt_members_unicode_char.cc
	(test01, test02): Fix i_lit_base arrays, making them
	independent from the endianness of the platform.

Co-Authored-By: Paolo Carlini <pcarlini@unitus.it>

From-SVN: r51314
2002-03-25 13:22:20 +00:00
Jakub Jelinek
2ed1f154c1 regrename.c (build_def_use): Move recog_memoized before extract_insn.
* regrename.c (build_def_use): Move recog_memoized
	before extract_insn.

From-SVN: r51313
2002-03-25 13:51:49 +01:00
Jakub Jelinek
6ddae61286 re PR target/6043 (IICE on ia64 for Blitz config test for C++ complex math)
PR target/6043
	* expr.c (emit_group_store): Handle storing into CONCAT.

	* g++.dg/opt/conj2.C: New test.

From-SVN: r51311
2002-03-25 12:34:11 +01:00
GCC Administrator
9035ec7952 Daily bump.
From-SVN: r51309
2002-03-25 08:17:42 +00:00
Jakub Jelinek
ea475b235e regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and corresponding MATCH_DUP.
* regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
	corresponding MATCH_DUP.

	* gcc.c-torture/compile/20020323-1.c: New test.

From-SVN: r51305
2002-03-25 08:45:30 +01:00
Tom Tromey
9b95cee697 Component.java (processEvent): Check ComponentEvent after KeyEvent.
* java/awt/Component.java (processEvent): Check ComponentEvent
	after KeyEvent.

From-SVN: r51301
2002-03-25 06:45:23 +00:00
Richard Henderson
cd39fc1318 * unroll.c (unroll_loop): Zero label_map.
From-SVN: r51300
2002-03-24 18:49:09 -08:00
Richard Henderson
e7d482b9e4 gcse.c: Include except.h.
* gcse.c: Include except.h.
        * Makefile.in (gcse.o): Update.

From-SVN: r51297
2002-03-24 18:30:22 -08:00
Bryce McKinlay
8cf29a474f Based on patch from Intel's ORP team:
* java/io/PushbackInputStream.java (available): Calculate correct
	number of bytes in buffer.
	(read): Remove redundant bound check. Return bytes from both the
	buffer and the stream.

From-SVN: r51296
2002-03-25 02:28:22 +00:00
Bryce McKinlay
acf9549ef9 FileInputStream.java (skip): Call fd.getFilePointer() and calculate correct number of bytes skipped.
* java/io/FileInputStream.java (skip): Call fd.getFilePointer() and
	calculate correct number of bytes skipped.

From-SVN: r51293
2002-03-25 02:01:29 +00:00
Bryce McKinlay
e89268b691 * java/io/PushbackReader.java: Reformat.
From-SVN: r51291
2002-03-25 01:13:20 +00:00
Richard Henderson
1bd6476f2e varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
* varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
        Do resolve_unique_section before shared data clause.

        * gcc.dg/weak-1.c: Use -fno-common.

From-SVN: r51289
2002-03-24 16:44:36 -08:00
David Billinghurst
479e51f6ed f77-edit-apostrophe-out.f: New test
2002-03-25  David Billinghurst  <David.Billinghurst@riotinto.com>

	* g77.dg/f77-edit-apostrophe-out.f: New test
	* g77.dg/f77-edit-h-out.f: New test
	* g77.dg/f77-edit-t-in.f: New test
	* g77.dg/f77-edit-t-out.f: New test
	* g77.dg/f77-edit-x-out.f: New test
	* g77.dg/f77-edit-slash-out.f: New test
	* g77.dg/f77-edit-colon-out.f: New test
	* g77.dg/f77-edit-s-out.f: New test

From-SVN: r51288
2002-03-25 00:29:38 +00:00
David Billinghurst
c1dc83a16d f77-edit-apostrophe-out.f: New test
2002-03-25  David Billinghurst  <David.Billinghurst@riotinto.com>

	* g77.dg/f77-edit-apostrophe-out.f: New test
	* g77.dg/f77-edit-h-out.f: New test
	* g77.dg/f77-edit-t-in.f: New test
	* g77.dg/f77-edit-t-out.f: New test
	* g77.dg/f77-edit-x-out.f: New test
	* g77.dg/f77-edit-slash-out.f: New test
	* g77.dg/f77-edit-colon-out.f: New test
	* g77.dg/f77-edit-s-out.f: New test

From-SVN: r51287
2002-03-25 00:22:35 +00:00
Richard Henderson
2e6c150aa8 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
From-SVN: r51286
2002-03-24 16:18:35 -08:00
Richard Henderson
b29afcf833 recog.c (peephole2_optimize): Split blocks when EH insns are generated in the middle of a block.
* recog.c (peephole2_optimize): Split blocks when EH insns are
        generated in the middle of a block.  Do global life update if
        zapped EH edges.

From-SVN: r51285
2002-03-24 16:18:10 -08:00
Richard Henderson
47e87a9314 * objc/execute/formal_protocol-6.x: New XFAIL.
From-SVN: r51284
2002-03-24 16:17:42 -08:00
David Billinghurst
5bcf08f63e weak-1.c: Early return from dg-final on platforms that do not support weak symbols
2002-03-25  David.Billinghurst <David.Billinghurst@riotinto.com>

	* gcc.dg/weak-1.c:  Early return from dg-final on platforms
	that do not support weak symbols

From-SVN: r51280
2002-03-24 23:52:20 +00:00
David Billinghurst
12c3717eaf g++.exp: Fix handling of LD_LIBRARY_PATH et al
2002-03-25  David Billinghurst  <David.Billinghurst@riotinto.com>

	* lib/g++.exp:  Fix handling of LD_LIBRARY_PATH et al
	* lib/g77.exp:  Likewise
	* lib/objc.exp: Likewise

From-SVN: r51279
2002-03-24 23:41:22 +00:00
Tom Tromey
e1a0d743f1 TextComponent.java (TextComponent): Editable by default.
* java/awt/TextComponent.java (TextComponent): Editable by
	default.

From-SVN: r51278
2002-03-24 22:49:26 +00:00
Tom Tromey
64165b30e6 MenuItem.java (eventMask): No longer private.
* java/awt/MenuItem.java (eventMask): No longer private.
	* java/awt/Button.java (dispatchEventImpl): Only dispatch to
	superclass if we didn't handle event.
	* java/awt/Checkbox.java (dispatchEventImpl): New method.
	* java/awt/CheckboxMenuItem.java (dispatchEventImpl): New method.
	* java/awt/Choice.java (dispatchEventImpl): New method.
	* java/awt/List.java (dispatchEventImpl): New method.
	* java/awt/Scrollbar.java (dispatchEventImpl): New method.
	* java/awt/TextComponent.java (dispatchEventImpl): New method.
	* java/awt/TextField.java (dispatchEventImpl): New method.

From-SVN: r51277
2002-03-24 22:37:51 +00:00
Richard Henderson
05ed12966c * mips.c (mips_function_value): Only promote_mode for non-libcalls.
From-SVN: r51276
2002-03-24 13:37:40 -08:00
Mark Wielaard
c9be3825b3 [multiple changes]
2002-03-24  Eric Blake  <ebb9@email.byu.edu>

        * java/beans/IntrospectionException.java: Update to 1.4.
        * java/beans/PropertyVetoException.java: Ditto.

2002-03-24  Eric Blake  <ebb9@email.byu.edu>

        * gnu/java/beans/BeanInfoEmbryo.java (hasMethod): Use
        Arrays.equals instead of ArrayHelper.equalsArray.

2002-03-24  C. Brian Jones <cbj@gnu.org>

        * java/beans/Introspector.java: added new static final fields
        introduced in 1.2, lots of other updates remain to be done

2002-03-24  C. Brian Jones <cbj@gnu.org>

        * java/beans/Introspector.java: reformatting

2002-03-24  C. Brian Jones <cbj@gnu.org>

        * java/beans/Introspector.java: default beanInfoSearchPath will
        not include sun.beans.infos given we provide no such package and
        the API doesn't really require it; gnu.java.beans.info is the
        default.

2002-03-24  Mark Wielaard  <mark@klomp.org>

        Thanks to Orp developers
        * gnu/java/beans/editors/NativeBooleanEditor.java (setAsText(String)):
        switch TRUE and FALSE return values.

From-SVN: r51273
2002-03-24 21:32:14 +00:00
Neil Booth
3ddbb8a977 gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
preprocessor/3951
	* gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
	* cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
	(init_dependency_output): Don't make no_output decision here.

From-SVN: r51272
2002-03-24 21:01:00 +00:00
Andrew Cagney
740b77b675 stmt.c (check_for_full_enumeration_handling): Remove tests of warn_switch.
* stmt.c (check_for_full_enumeration_handling): Remove tests of
warn_switch.  Update description.
(expand_end_case_type): Call check_for_full_enumeration_handling
when warn_switch.

From-SVN: r51270
2002-03-24 19:53:49 +00:00
Stephane Carrez
c61f581f32 fix changelog 2002-03-24 Stephane Carrez
From-SVN: r51267
2002-03-24 17:23:53 +01:00
Stephane Carrez
7590cfd0ca m68hc11.c (m68hc11_autoinc_compatible_p): New function.
* config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
	(m68hc11_split_move): Call it to see if the source and destination
	operands use the same direction auto inc/dec mode, otherwise make the
	source an offsetable operand and generate an add.

From-SVN: r51264
2002-03-24 17:09:04 +01:00
Stephane Carrez
2e3d348133 m68hc11.md ("*subsi3_zero_extendhi"): Allow address register for operand 2.
* config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
	register for operand 2.
	("*subsi3_zero_extendqi"): Likewise.
	("*iorhi3_gen"): Do the operation on the upper bits and then lower
	bits so that it is compatible with a pop.
	("*andhi3_gen"): Likewise.
	("xorhi3"): Likewise.

From-SVN: r51262
2002-03-24 17:02:57 +01:00
Neil Booth
2784528c88 cppinit.c (cpp_handle_option): Set warn_endif_labels if -pedantic here...
* cppinit.c (cpp_handle_option): Set warn_endif_labels if
	-pedantic here...
	(cpp_post_options): ... not here.

From-SVN: r51258
2002-03-24 12:52:28 +00:00
Neil Booth
056719682d * gigi.h (yyparse): Remove.
From-SVN: r51257
2002-03-24 12:46:33 +00:00
Neil Booth
aaf9320682 Removal of separate preprocessor cpp0.
* Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
	cpp0, install-common): Update.
	* c-common.c (flag_preprocess_only): New.
	(c_common_init): Preprocess for -E.
	* c-common.h (flag_preprocess_only): New.
	* c-decl.c (c_decode_option): Handle -E, and -std=c++98.
	* c-objc-common.c (c_init_decl_processing): Exit quickly
	for NULL return from c_common_init.
	* cpplib.h (cpp_preprocess_file): New.
	* cppmain.c (main, general_init, pfile, progname): Remove.
	(do_preprocessing): Rename cpp_preprocess_file, don't call
	cpp_finish.  Don't close stdout here.
	(setup_callbacks): Update prototype.
	* gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
	Update.
	* tradcpp.c (main): Ignore -quiet.
cp:
	* decl2.c (cxx_decode_option): Handle -E.
	* lang-specs.h (default_compilers): Preprocess with cc1plus.
	* lex.c (cxx_init): Exit quickly if c_common_init returns NULL.
objc:
	* lang-specs.h (default_compilers): Preprocess with cc1obj.

Co-Authored-By: Aldy Hernandez <aldyh@redhat.com>

From-SVN: r51256
2002-03-24 12:27:45 +00:00
GCC Administrator
9e2da84c6a Daily bump.
From-SVN: r51255
2002-03-24 08:17:12 +00:00
Richard Henderson
c6e6f5c196 re PR rtl-optimization/5742 (bug with -freg-struct-return and functions returning 1 byte values)
PR optimization/5742
        * machmode.def: Add inner mode field to complex modes.
        * config/mips/mips.c (mips_function_value): Always define.  Add
        new argument to handle libcalls.
        * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
        (FUNCTION_VALUE): Likewise.
        * config/mips/abi64.h (FUNCTION_VALUE): Remove.
        * config/mips/mips-protos.h: Update.

From-SVN: r51250
2002-03-24 00:03:44 -08:00
Richard Henderson
d88e57d1fb sparc.c (sparc_emit_floatunsdi): New.
* config/sparc/sparc.c (sparc_emit_floatunsdi): New.
        * config/sparc/sparc-protos.h: Update.
        * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.

From-SVN: r51249
2002-03-23 18:23:47 -08:00
Richard Henderson
6dfaf9ba0d gmon-sol2.c (internal_mcount): Assume either _start or _init begins the text segment.
* config/sparc/gmon-sol2.c (internal_mcount): Assume either
        _start or _init begins the text segment.

From-SVN: r51248
2002-03-23 18:23:08 -08:00
David Edelsohn
0c769cf816 rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT not HOST_WIDEST_INT.
* config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
        not HOST_WIDEST_INT.
        (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.

From-SVN: r51245
2002-03-23 17:21:58 -05:00
Toon Moene
7b119cc634 com.c (ffecom_check_size_overflow_): Add a test so that arrays too large for 32-bit byte-offset addressing get caught.
2002-03-23  Toon Moene  <toon@moene.indiv.nluug.nl>

	* com.c (ffecom_check_size_overflow_): Add a test
	so that arrays too large for 32-bit byte-offset
	addressing get caught.
	* news.texi: Document the fixing of this problem.

From-SVN: r51243
2002-03-23 20:00:10 +00:00
Richard Earnshaw
64e92a2664 re PR java/5489 (-fverbose-asm crashes jc1 on ARM cross-compiler)
PR java/5489
* arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
operand argument to output_return_instruction.
* arm.c (arm_print_operand, case 'd'): If the operand is
const_true_rtx then just return.
(arm_print_operand, case 'D'): If the operand is const_true_rtx
then abort.

From-SVN: r51241
2002-03-23 18:18:43 +00:00
Andrew Cagney
d6961341dd [multiple changes]
2002-03-23  Andrew Cagney  <ac131313@redhat.com>

	* doc/invoke.texi (Option Summary): Mention -Wswitch-default.
	(Warning Options): Document -Wswitch-default.
	* toplev.c (W_options): Add -Wswitch-default.  Update comment on
	-Wswitch.
	(warn_switch_default): Define variable.
	(warn_switch): Update comment.
	* flags.h (warn_switch_default): Declare variable.
	(warn_switch): Update comment.
	* stmt.c (expand_end_case): Check for and, when
	warn_switch_no_default, warn of a missing default case.

Index: f/ChangeLog
Sat Mar 23 11:18:17 2002  Andrew Cagney  <ac131313@redhat.com>

	* invoke.texi (Warning Options): Mention -Wswitch-default.

Index: testsuite/ChangeLog
2002-03-23  Andrew Cagney  <ac131313@redhat.com>

	* gcc.dg/Wswitch-default.c: New test.

From-SVN: r51238
2002-03-23 16:33:44 +00:00