Commit Graph

28538 Commits

Author SHA1 Message Date
Richard Henderson
570eb5c8b9 alias.c (record_alias_subset): Initialize has_zero_child in the superset.
* alias.c (record_alias_subset): Initialize has_zero_child in the
        superset.

From-SVN: r34380
2000-06-03 08:03:21 -07:00
Richard Henderson
72934de72b * gcc.c-torture/execute/20000603-1.c: New.
From-SVN: r34379
2000-06-03 08:01:49 -07:00
Richard Earnshaw
d6c266b250 * arm.md (untyped_call): Use GEN_CALL macro.
From-SVN: r34378
2000-06-03 10:44:59 +00:00
Jeff Law
367d27ef19 Daily bump.
From-SVN: r34377
2000-06-03 01:45:08 -06:00
Pekka Nikander
f0267a678d Makefile.in: Use $(MAKE) not "make"
2000-06-01  Pekka Nikander  <pnr@teldanex.tcm.hut.fi>

       * Makefile.in: Use $(MAKE) not "make"

From-SVN: r34376
2000-06-03 03:01:59 +00:00
Jason Merrill
6a83e470e7 exception.cc (__cp_pop_exception): If we aren't popping or rethrowing, push down past any uncaught exceptions.
* exception.cc (__cp_pop_exception): If we aren't popping or
        rethrowing, push down past any uncaught exceptions.
        (__uncatch_exception): Rethrow the currently handled exception.
        Move it to the top of the exception stack.

From-SVN: r34375
2000-06-02 22:20:09 -04:00
Jason Merrill
de695d2c6d new
From-SVN: r34374
2000-06-02 22:07:51 -04:00
Richard Kenner
2bf105ab5b alias.c (struct alias_set_entry): New field has_zero_child.
* alias.c (struct alias_set_entry): New field has_zero_child.
	(mem_in_disjoint_alias_sets_p): Return 0 if set in either ase.
	(get_alias_set): If language-dependent routine set TYPE_ALIAS_SET,
	do nothing.
	Call record_component_aliases for aggregate types.
	(record_alias_subset): Set has_zero_child.
	(record_component_aliases, case ARRAY_TYPE): Do nothing if
	TYPE_NONALIASES_COMPONENT.
	(record_component_aliases, case RECORD_TYPE): Test
	DECL_NONADDRESSABLE_P.
	* c-decl.c (grokdeclarator): Set DECL_NONADDRESSABLE_P instead
	of TREE_ADDRESSABLE.
	* calls.c (initialize_argument_information): Only test
	TYPE_TRANSPARENT_UNION for UNION_TYPE.
	* function.c (assign_parms): Likewise.
	* integrate.c (function_cannot_inline_p): Likewise.
	* stor-layout.c (finish_record_layout): Don't call
	record_component_aliases.
	* tree.h (struct tree_int_cst): Use struct tree_common.
	(struct tree_real_cst, struct tree_string): Likewise.
	(struct tree_complex, struct tree_identifier): Likewise.
	(struct tree_list, struct tree_vec, struct tree_exp): Likewise.
	(struct tree_block, struct tree_type, struct tree_decl): Likewise.
	(TYPE_TRANSPARENT_UNION): Use UNION_TYPE_CHECK.
	(TYPE_NONALIASES_COMPONENT): New macro.
	(TYPE_AMBIENT_BOUNDEDNESS): Use FUNCTION_TYPE_CHECK.
	(DECL_NONADDRESSABLE_P): New macro.
	(struct tree_decl): Reorder bits for clarity of how many left;
	add non_adressable.
	* cp/cp-tree.h: Use struct tree_common instead of a char array.
	* cp/decl.c (grokdeclarator): Set DECL_NONADDRESSABLE_P instead
	of TREE_ADDRESSABLE.

From-SVN: r34373
2000-06-02 21:57:46 -04:00
Zack Weinberg
0e13506e49 noreturn-1.c (foo7, foo8): Revert previous change.
* gcc.dg/noreturn-1.c (foo7, foo8): Revert previous change.
	* gcc.dg/noreturn-2.c (noreturn): Likewise.

From-SVN: r34372
2000-06-03 01:53:57 +00:00
Benjamin Kosnik
cc4316b532 locale_facets.h: Tweak.
2000-06-02  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* bits/locale_facets.h: Tweak.
	* src/locale.cc (codecvt<wchar_t>): Tweak.

	* bits/locale_facets.h (_Format_cache): _S_ecks -> _S_x.
	* bits/locale_facets.tcc (num_get<char>::_M_extract): Fix for hex.

	* bits/basic_string.h: Move data member up.
	* src/string-inst.cc: Fix instantiations.
	* bits/string.tcc: Fix types.

From-SVN: r34371
2000-06-03 01:52:32 +00:00
Jason Merrill
3378216a50 Makefile.in (libgcc.a): Also depend on $(LIB2ADD).
* Makefile.in (libgcc.a): Also depend on $(LIB2ADD).
        * mklibgcc.in (force): New target.
        Make LIB2ADD stuff depend on it.

From-SVN: r34370
2000-06-02 21:39:51 -04:00
Alexandre Petit-Bianco
8f975c18ed class.c (get_dispatch_table): Build the vtable dummy entry list element with a null purpose.
Fri Jun  2 16:48:55 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * class.c (get_dispatch_table): Build the vtable dummy entry list
        element with a null purpose. Fixed leading comment.
        (build_dtable_decl): Build an accurate dtable type when appropriate
        and use it.

From-SVN: r34369
2000-06-02 17:46:44 -07:00
Richard Henderson
2e761e4919 alias.c (lang_get_alias_set): Remove.
gcc/
	* alias.c (lang_get_alias_set): Remove.
	(get_alias_set): Call it directly, not indirectly.
	* c-common.c (lang_get_alias_set): Rename from c_get_alias_set.
	* c-common.h (c_get_alias_set): Don't declare.
	* c-decl.c (init_decl_processing): Don't set lang_get_alias_set.
	* expr.h (lang_get_alias_set): Declare as function, not pointer.

gcc/ch/
	* lang.c (lang_get_alias_set): New.

gcc/cp/
	* decl.c (init_decl_processing): Don't set lang_get_alias_set.

gcc/f/
	* com.c (lang_get_alias_set): New.

gcc/java/
	* lang.c (lang_get_alias_set): New.

From-SVN: r34368
2000-06-02 17:33:00 -07:00
Jason Merrill
572240906d tweak
From-SVN: r34367
2000-06-02 20:15:05 -04:00
Jason Merrill
b9d969b7d4 new
From-SVN: r34366
2000-06-02 20:02:48 -04:00
Benjamin Kosnik
c9b39473f3 locale_facets.h (_Format_cache): _S_ecks -> _S_x.
2000-06-02  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* bits/locale_facets.h (_Format_cache): _S_ecks -> _S_x.
	* bits/locale_facets.tcc (num_get<char>::_M_extract): Fix for hex.

From-SVN: r34365
2000-06-02 19:41:42 +00:00
Jason Merrill
2f8edb39a1 * decl.c (store_return_init): Call put_var_into_stack.
From-SVN: r34364
2000-06-02 15:38:35 -04:00
Anthony Williams
3ce7458060 replace.cc (test01): Qualify find with std::.
2000-06-02  Anthony Williams  <anthony@anthonyw.cjb.net>

	* testsuite/21_strings/replace.cc (test01): Qualify find with std::.

From-SVN: r34363
2000-06-02 18:31:44 +00:00
Jason Merrill
0c031c5cb9 oops
From-SVN: r34362
2000-06-02 14:19:02 -04:00
Jason Merrill
87626353df new
From-SVN: r34361
2000-06-02 13:49:26 -04:00
Bruce Korb
56ce79f733 only shut down the server process if the master process is exiting
From-SVN: r34360
2000-06-02 17:25:47 +00:00
Bruce Korb
ff84bb1888 fix test result for ultrix_atof_param
From-SVN: r34359
2000-06-02 16:04:10 +00:00
Bruce Korb
e814224c96 fix test result for osf_namespace_a
From-SVN: r34358
2000-06-02 15:59:32 +00:00
Loren J. Rittle
ef6df6115f regenerate fixincl.x
From-SVN: r34357
2000-06-02 14:30:24 +00:00
Jakub Jelinek
8f215dcec4 c-common.c (c_get_alias_set): Check whether signed_type did not return its argument before calling...
* c-common.c (c_get_alias_set): Check whether signed_type did not
	return its argument before calling get_alias_set on the result.

From-SVN: r34356
2000-06-02 14:50:08 +02:00
Loren J. Rittle
bec7ddd796 inclhack.def (osf_namespace_a): Relax expression to match that used before the conversion to c_fix style.
* fixinc/inclhack.def (osf_namespace_a): Relax expression to
	match that used before the conversion to c_fix style.

From-SVN: r34355
2000-06-02 07:45:57 -04:00
Andrew MacLeod
4636c0a2f4 expr.c (emit_group_load): Fix typo, GET_MODE not GET_CODE.
2000-06-02  Andrew MacLeod  <amacleod@cygnus.com>

	* expr.c (emit_group_load): Fix typo, GET_MODE not GET_CODE.

From-SVN: r34354
2000-06-02 10:15:43 +00:00
Jeff Law
8d867e7d80 Daily bump.
From-SVN: r34353
2000-06-02 01:45:07 -06:00
Benjamin Kosnik
3840fa2a8f std_cwctype.h: Clean.
2000-06-01  Benjamin Kosnik  <bkoz@gnu.org>

	* bits/std_cwctype.h: Clean.
	* bits/std_cwchar.h: Clean, remove cruft.

	* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Re-work, add bits
	for beginning iconv support.
	Remove _GLIBCPP_HAS_WCHAR_MIN_MAX, roll into _GLIBCPP_USE_WCHAR_T
	macro.
	* acconfig.h: Remove _GLIBCPP_HAS_WCHAR_MIN_MAX.
	* bits/limits_generic.h: Remove.
	* src/gen-num-limits.cc: Same.

	* src/locale.cc: Tweaks.

	* bits/char_traits.h: Tweaks.

From-SVN: r34352
2000-06-02 07:24:15 +00:00
Mark Mitchell
cc057ef343 cp-tree.h (lang_decl_flags): Add anticipated_p.
* cp-tree.h (lang_decl_flags): Add anticipated_p.
	(DECL_ANTICIPATED): Use it.

From-SVN: r34351
2000-06-02 05:45:34 +00:00
J"orn Rennecke
aff2c0666a sh.h (CPP_SPEC): Add -D__NOMACSAVE__ for -mnomacsave.
* sh.h (CPP_SPEC): Add -D__NOMACSAVE__ for -mnomacsave.
	(CONDITIONAL_REGISTER_USAGE): Mac registers are call used
	for TARGET_NOMACSAVE.
	(NOMACSAVE_BIT): Define.
	(TARGET_NOMACSAVE): Define.
	(TARGET_SWITCHES): Add "nomacsave".

From-SVN: r34350
2000-06-02 00:36:32 +01:00
Jason Merrill
18fa855f72 restore comment
From-SVN: r34349
2000-06-01 19:16:50 -04:00
Toshiyasu Morita
400d1b199f * sh.md (untyped_call): Remove excess parameters
From-SVN: r34348
2000-06-02 00:14:27 +01:00
Bryce McKinlay
6518c7b51f re GNATS gcj/127 (gcj dumps core on method invocation on a primitive type)
2000-05-23  Bryce McKinlay  <bryce@albatross.co.nz>

       * parse.y (patch_method_invocation): Don't try to lookup methods
       in primitive types.

(This fixes the PR gcj/127:
 http://sourceware.cygnus.com/ml/java-prs/2000-q1/msg00011.html)

From-SVN: r34347
2000-06-01 13:43:37 -07:00
Stan Cox
ee418a779a varray.h (VARRAY_PUSH_GENERIC_PTR, [...]): Fix macro argument typo.
2000-06-01  Stan Cox  <scox@cygnus.com>
	* varray.h (VARRAY_PUSH_GENERIC_PTR, VARRAY_PUSH_CHAR_PTR): Fix
	macro argument typo.

From-SVN: r34346
2000-06-01 20:13:29 +00:00
Zack Weinberg
1082afb6c2 compare2.c (case 12): XFAIL.
* gcc.dg/compare2.c (case 12): XFAIL.
	* gcc.dg/noreturn-1.c (foo7, foo8): XFAIL.
	* gcc.dg/noreturn-2.c (noreturn): XFAIL.

From-SVN: r34345
2000-06-01 20:10:49 +00:00
Zack Weinberg
d7a2e0f70b [multiple changes]
2000-06-01  Zack Weinberg  <zack@wolery.cumb.org>

	* cpplex.c (maybe_macroexpand): Use CPP_WTRADITIONAL.  Improve
	error message.
	* cpplib.c (parse_include): Remove support for VAX-C
	"#include starlet" misfeature.

	* gcc.dg/cpp-tradwarn2.c: Update egrep pattern.

2000-05-31 Laurynas Biveinis <lauras@softhome.net>

	* cppfiles.c: conditionally define O_BINARY.
	(open_include_file): pass O_BINARY to open().

From-SVN: r34344
2000-06-01 20:06:57 +00:00
Alexandre Petit-Bianco
0ba154aa23 re GNATS gcj/207 (Compiler failure)
Thu Apr 27 17:47:34 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* jcf-parse.c (jcf_parse_source): Reset current_class and
 	current_function_decl to NULL before parsing a new file.

(This fixes the PR gcj/207:
 http://sourceware.cygnus.com/ml/java-prs/2000-q2/msg00044.html)

From-SVN: r34343
2000-06-01 11:26:16 -07:00
Richard Henderson
eb9c1bb6e2 i960.c (i960_br_predict_opcode): Remove.
* i960.c (i960_br_predict_opcode): Remove.
        (i960_print_operand) [+]: Emit branch prediction hints.
        (i960_function_arg): Return early for VOIDmode.
        (i960_round_align): Return early for incomplete types.
        * i960.h (PRINT_OPERAND_PUNCT_VALID_P): New.
        * i960.md (all conditional branches): Add "%+".

From-SVN: r34342
2000-06-01 09:29:09 -07:00
Richard Kenner
f824e5c36e alias.c (get_alias_set): Don't call language-specific routine more than is needed and clean up code a bit.
* alias.c (get_alias_set): Don't call language-specific routine more
	than is needed and clean up code a bit.
	* c-common.c (c_get_alias_set): All references whose type
	is char get alias set 0, but character types need not.
	* varasm.c (make_function_rtl): Don't call set_mem_attributes.
	(make_decl_rtl): Don't call it for FUNCTION_DECL.

From-SVN: r34341
2000-06-01 12:18:18 -04:00
Alexandre Petit-Bianco
611a4b873e re GNATS gcj/129 (Static array length access bug in gcj)
2000-05-02  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * parse.y (resolve_field_access): Call the appropriate <clinit>
        before accessing the length of a static array. Craft a decl for
        the field while its time.

(Fixes the PR #129:
 http://sourceware.cygnus.com/ml/java-prs/2000-q1/msg00013.html)

From-SVN: r34340
2000-06-01 09:04:14 -07:00
Bruce Korb
079b71f5ab new check result files for fixinc
From-SVN: r34339
2000-06-01 14:51:11 +00:00
Clinton Popetz
a940d8bd48 i386.c (ix86_use_fcomi_compare): Make global.
* config/i386/i386.c (ix86_use_fcomi_compare): Make global.
	* config/i386/i386-protos.h (ix86_use_fcomi_compare): Declare.
	* config/i386/i386.md (*fp_jcc_3, *fp_jcc_4): Disable if we
	will use FCOMI.

From-SVN: r34338
2000-06-01 10:41:31 -04:00
Richard Henderson
03d2f2b800 * Makefile.in (c-decl.o): Depend on $(EXPR_H), not expr.h.
From-SVN: r34337
2000-06-01 03:13:19 -07:00
Richard Henderson
4ac4357be5 * decl.c (init_decl_processing): Set lang_get_alias_set first thing.
From-SVN: r34336
2000-06-01 02:44:58 -07:00
Richard Henderson
bc11d9b803 * c-decl.c (init_decl_processing): Set lang_get_alias_set first thing.
From-SVN: r34335
2000-06-01 02:44:37 -07:00
Richard Henderson
f3798d124f decl2.c (unsupported_options): Fix typo, make const.
* decl2.c (unsupported_options): Fix typo, make const.
        (lang_decode_option): Fix bsearch argument order.

From-SVN: r34334
2000-06-01 02:40:07 -07:00
Jeff Law
a0179c6b75 Daily bump.
From-SVN: r34333
2000-06-01 01:45:08 -06:00
Alexandre Petit-Bianco
152de06864 class.c (common_enclosing_context_p): New function.
2000-04-24  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* class.c (common_enclosing_context_p): New function.
	* java-tree.h (common_enclosing_context_p): Added prototype.
	* parse.h (INNER_ENCLOSING_SCOPE_CHECK): Relaxed test to allow
	classes sharing an outer context with the current instance.
	* parse.y (build_access_to_thisn): Fixed leading comment.
	(verify_constructor_super): New local `supper_inner'. Skip
	enclosing context argument in the case of inner class constructors.
	(patch_method_invocation): Insert proper context as second
	parameter to pure inner class constructor super invocations.

This fixes the Java PR #177.

From-SVN: r34332
2000-06-01 00:44:58 -07:00
Mark Mitchell
3aac3c2fd4 init.c (resolve_offset_ref): Remove check for TREE_ADDRESSABLE on FIELD_DECLs.
* init.c (resolve_offset_ref): Remove check for TREE_ADDRESSABLE
	on FIELD_DECLs.

From-SVN: r34331
2000-06-01 07:33:19 +00:00