Commit Graph

28711 Commits

Author SHA1 Message Date
Philippe De Muyter
6223e158fd * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
From-SVN: r34455
2000-06-08 16:51:44 +00:00
Jakub Jelinek
c67dca7a86 * method.c (make_thunk): Clear DECL_VTT_PARM in thunk.
From-SVN: r34454
2000-06-08 18:14:17 +02:00
Jakub Jelinek
06ebf12756 dbxout.c (dbxout_type_fields): Don't segfault on fields with incomplete types.
* dbxout.c (dbxout_type_fields): Don't segfault on fields with
	incomplete types.

From-SVN: r34453
2000-06-08 16:33:04 +02:00
Nathan Sidwell
89d7f003d3 frame.c (end_fde_sort): Remove extraneous erratic array test.
* frame.c (end_fde_sort): Remove extraneous erratic array test.

	* frame.c (start_fde_sort): Don't malloc (0).

From-SVN: r34452
2000-06-08 08:30:28 +00:00
Jeff Law
68c8e13efd Daily bump.
From-SVN: r34451
2000-06-08 01:45:08 -06:00
Philippe De Muyter
48f3e29b38 cp-demangle.c (stdio.h): File included unconditionaly.
* cp-demangle.c (stdio.h): File included unconditionaly.
	(template_arg_list_new): Parameter list is PARAMS ((void)), not ().
	* dyn-string.c (stdio.h): File included.
	* partition.c (partition_print): No `&' needed to take the address of
	a function.

From-SVN: r34450
2000-06-08 07:29:53 +00:00
Zack Weinberg
5667abce29 c-decl.c (pushdecl): Do not call COMPLETE_TYPE_P on error_mark_node.
* c-decl.c (pushdecl): Do not call COMPLETE_TYPE_P on
	error_mark_node.
	* print-tree.c (print_node): The transparent_union_flag means
	different things for unions and arrays.  Do not inspect it
	with TYPE_TRANSPARENT_UNION.

From-SVN: r34449
2000-06-07 22:43:44 +00:00
Jakub Jelinek
5af7e2c2e1 cpplib.c (do_ifdef, do_ifndef): Don't segfault if parse_ifdef returned NULL.
2000-06-06  Jakub Jelinek  <jakub@redhat.com>

	* cpplib.c (do_ifdef, do_ifndef): Don't segfault if parse_ifdef
	returned NULL.

From-SVN: r34448
2000-06-07 22:27:57 +00:00
Kaveh R. Ghazi
69197e7e5e configure.in (ac_libiberty_warn_cflags): Add -pedantic.
libiberty:
	* configure.in (ac_libiberty_warn_cflags): Add -pedantic.

	* choose-temp.c (try, choose_temp_base, make_temp_file): Constify.

	* cp-demangle.c (demangle_char): Change parameter from char to int.
	(demangle_expression, demangle_expr_primary): Remove extra
	semi-colon in prototype.

	* dyn-string.c (dyn_string_append_char): Change parameter from
	char to int.

	* memcmp.c (memcmp): Constify.

	* mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
	__extension__.

	* partition.c (elem_compare): Prototype.  Don't cast away
	const-ness.

	* setenv.c (setenv): Use braces to avoid ambiguous `else'.

include:
	* demangle.h (demangling_styles): Remove trailing comma in enum.

	* dyn-string.h (dyn_string_append_char): Change parameter from
	char to int.

From-SVN: r34447
2000-06-07 21:13:14 +00:00
Kaveh R. Ghazi
7eb23b1f31 Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
* Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.

	* cp-demangle.c: Include demangle.h.
	(template_arg_list_new): DeANSIfy.
	(cp_demangle): Make static and add prototype.
	(operator_code, operators): Constify.
	(demangle_operator_name): Likewise for variables `p1', `p2' and `p'.

From-SVN: r34446
2000-06-07 20:35:43 +00:00
Denis Chertykov
3f8a8c683b avr.c (asm_output_section_name): output section attributes.
* config/avr/avr.c (asm_output_section_name): output section
	attributes.
	* config/avr/libgcc.S (.text.libgcc): declare section attributes.

From-SVN: r34445
2000-06-07 20:45:46 +04:00
Philipp Thomas
7bf81eeefc POTFILES.in: Remove dyn-string.[ch].
* POTFILES.in: Remove dyn-string.[ch].
	* gcc.pot: Regenerated.
	* cat-id-tbl.c: Ditto.

From-SVN: r34444
2000-06-07 12:44:41 +00:00
Mark Mitchell
fe8fadc146 decl.c (pushdecl): Look up functions by DECL_NAME, not DECL_ASSEMBLER_NAME.
* decl.c (pushdecl): Look up functions by DECL_NAME, not
	DECL_ASSEMBLER_NAME.

From-SVN: r34443
2000-06-07 07:59:00 +00:00
Jeff Law
b31f762736 Daily bump.
From-SVN: r34442
2000-06-07 01:45:07 -06:00
James E. Wilson
c0240be463 Fix gas/gcc unwind/EH discrepancies. And a shared library build problem.
* frame.h (struct unwind_info_ptr): Collapse version, flags, and length
	fields into header field.
	(IA64_UNW_HDR_LENGTH, IA64_UNW_HDR_FLAGS, IA64_UNW_HDR_VERSION): New
	macros to access length, flags, and version info from header field.
	* config/ia64/crtbegin.asm (__do_frame_setup_aux): Delete here.
	...

From-SVN: r34441
2000-06-06 19:27:51 -07:00
Philipp Thomas
24c40136c3 configure.in (AC_C_INLINE): Added.
* configure.in (AC_C_INLINE): Added.
	* aclocal.m4 (AM_WITH_NLS): Enable --with-included-gettext by default.
	* configure: Regenerate.

From-SVN: r34440
2000-06-06 22:04:08 +00:00
Mark Mitchell
5b2abab835 c-common.h (c_language_kind): New type.
* c-common.h (c_language_kind): New type.
	(c_language): New variab.e
	* c-common.c (lang_get_alias_set): Don't put structures in
	non-zero alias sets in C++.
	* c-decl.c (c_language): Define it.
	* c-lex.c (doing_objc_thang): Remove.
	* c-tree.h (doing_objc_thang): Make it a macro.
	* objc/objc-act.c (lang_decode_option): Set c_language, not
	doing_objc_thang.

	* decl2.c (c_language): Define.

From-SVN: r34439
2000-06-06 21:54:54 +00:00
Mark Mitchell
f4381d6204 decl.c (redeclaration_error_message): If two TEMPLATE_DECLs have the same DECL_RESULT, it's not a redefinition.
* decl.c (redeclaration_error_message): If two TEMPLATE_DECLs have
	the same DECL_RESULT, it's not a redefinition.
	* pt.c (tsubst_decl): Remove code to handle illegal
	specializations.

From-SVN: r34438
2000-06-06 21:41:28 +00:00
Richard Henderson
80e08b3052 20000605-2.c: New test.
* gcc.c-torture/execute/20000605-2.c: New test.
        * gcc.c-torture/execute/20000605-3.c: New test.

From-SVN: r34437
2000-06-06 13:54:30 -07:00
Steven King
54fa741538 acconfig.h: Added defines for HAVE_BUILTIN math functs for float, double and long double.
2000-06-06  Steven King <sxking@uswest.net>

        * acconfig.h: Added defines for HAVE_BUILTIN math functs for float,
        double and long double.  Added defines for HAVE libm math functs for
        float and long double.
        * aclocal.m4: Added configure checks for builtin math funcs and libm
        support for float and long double versions of the math functions.
        * config.h.in: Added undefs for math functs.
        * configure: Regenerate.
        * math/mathconf: Changed the _GLIBCPP_HAS_BUILTIN_* to
        _GLIBCPP_HAVE_BUILTIN_*.
        * bits/std_cmath.h: Added long double support.  Use builtins for
        float, double and long if available, otherwise, use libm versions if
        availible, otherwise, punt.
        * shadow/bits/std_cmath.h: ditto

From-SVN: r34436
2000-06-06 20:26:13 +00:00
Gabriel Dos Reis
764dbbf2dd diagnostic.c (output_maximum_width): Remove.
2000-06-06  Gabriel Dos Reis  <gdr@codesourcery.com>

        * diagnostic.c (output_maximum_width): Remove.
        (doing_line_wrapping): Tweak.
        (diagnostic_buffer): New object.
        (global_output_buffer): New object.
        (output_destroy_prefix): New function.
        (default_initialize_buffer): Likewise.
        (reshape_diagnostic_buffer): Likewise.
        (initialize_diagnostics): Likewise.
        (output_clear): Tweak.
        (line_wrapper_printf): Adjust call to init_output_buffer.
        (vline_wrapper_message_with_location): Likewise.  Use
        output_destroy_prefix.
        (v_message_with_decl): Likewise.

        * diagnostic.h (struct output_buffer): Constify prefix.
        (init_output_buffer, output_get_prefix): Constify.
        (diagnostic_message_length_per_line): Likewise.
        (reshape_diagnostic_buffer): Declare.
        (default_initialize_buffer): Declare.
        (initialize_diagnostics): Declare.
        (diagnostic_buffer): Declare new obbject.

        * toplev.c: #include diagnostic.h
        (display_help): Document diagnostic formatting options.
        (decode_f_option): Handle diagnostic formatting options.
        (main): Setup initialization for diagnostic messages outputter.

        * toplev.h (set_message_length): Remove.

        * Makefile.in (toplev.o): Depends upon diagnostic.h

        * invoke.texi : Document diagnostics formatting options.

cp/
2000-06-06  Gabriel Dos Reis  <gdr@codesourcery.com>

        * lex.c (lang_init_options): Tweak.

        * decl2.c: Remove #inclusion of diagnostic.h
        (lang_decode_option): Move diagnostic formatting options to
        toplevel.

        * lang-options.h: Remove documentation for diagnostic options.

        * Makefile.in (lex.o): Depends upon diagnostic.h

From-SVN: r34435
2000-06-06 20:11:40 +00:00
Mark Mitchell
93136754c1 decl.c (redeclaration_error_message): If two TEMPLATE_DECLs have the same DECL_RESULT, it's not a redefinition.
2000-06-06  Mark Mitchell  <mark@codesourcery.com>

	* decl.c (redeclaration_error_message): If two TEMPLATE_DECLs have
	the same DECL_RESULT, it's not a redefinition.
	* pt.c (tsubst_decl): Remove code to handle illegal
	specializations.

From-SVN: r34434
2000-06-06 19:55:54 +00:00
Tom Tromey
14d075d85d parse.y (check_modifiers_consistency): Don't subtract out `PUBLIC_TK' from argument to THIS_MODIFIER_ONLY.
* parse.y (check_modifiers_consistency): Don't subtract out
	`PUBLIC_TK' from argument to THIS_MODIFIER_ONLY.

From-SVN: r34433
2000-06-06 18:46:16 +00:00
David Billinghurst
5e9e71f043 * g77.f-torture/execute/20000503-1.x: New file.
From-SVN: r34432
2000-06-06 17:46:14 +00:00
Philippe De Muyter
faf0173be7 configure.in (Make the links): Typo fix ...
* configure.in (Make the links): Typo fix : the file that must be
	included without #ifdef IN_GCC is `auto-host.h', not `auto-config.h'.
	* configure: File rebuilt.

From-SVN: r34431
2000-06-06 17:36:34 +00:00
Nathan Sidwell
b6a5dfa1cf * g++.old-deja/g++.eh/badalloc1.C: New test.
From-SVN: r34430
2000-06-06 16:39:52 +00:00
Nathan Sidwell
103c63aeb9 eh-common.h (EH_ALLOC_SIZE, [...]): New #defines.
gcc:
 	* eh-common.h (EH_ALLOC_SIZE, EH_ALLOC_ALIGN): New #defines.
	(eh_context): Add alloc_mask and alloc_buffer emergency fallback
	space.
	* libgcc2.c (__eh_alloc): Moved from cp/exception.cc. Fallback on
	emergency eh_context buffer, if malloc fails.
	(__eh_free): Moved from cp/exception.cc. Release to emergency
	eh_context buffer, if appropriate.
gcc/cp:
	* exception.cc: (__eh_alloc, __eh_free): Moved to libgcc2.c

From-SVN: r34429
2000-06-06 16:38:49 +00:00
Jason Merrill
051ffad528 * expr.c (store_expr): Fix typo.
From-SVN: r34428
2000-06-06 12:28:49 -04:00
Kaveh R. Ghazi
a60369f0fe m68k.c (legitimize_pic_address): Move prototype ...
* m68k.c (legitimize_pic_address): Move prototype ...

	* m68k-protos.h (legitimize_pic_address): ... here.

	* m68k.md (legitimize_pic_address): Delete prototypes.
	(untyped_call): Invoke GEN_CALL(), not gen_call().

	* nextstep.c: Include system.h and toplev.h.
	(get_directive_line): Don't prototype.
	(handle_pragma): Mark parameters with ATTRIBUTE_UNUSED and constify.

	* nextstep.h (handle_pragma): Prototype.
	(SECTION_FUNCTION): Prototype FUNCTION().  Move prototype of
	objc_section_init ...
	(EXTRA_SECTION_FUNCTIONS): ... here.

From-SVN: r34427
2000-06-06 16:21:41 +00:00
Richard Kenner
df07dc5beb sdbout.c (struct sdb_file): NAME now const.
* sdbout.c (struct sdb_file): NAME now const.
	(sdbout_init): input_file_name now const.
	(sdbout_start_new_source_file): FILENAME now const.
	* sdbout.c (sdbout_init, sdbout_start_new_source_file): Reflect above.

From-SVN: r34426
2000-06-06 08:08:44 -04:00
Jeff Law
538962e7de Daily bump.
From-SVN: r34425
2000-06-06 01:45:08 -06:00
Philipp Thomas
8708335a9e *gcc/configure: regenerated
From-SVN: r34424
2000-06-06 07:24:57 +00:00
Philipp Thomas
603832a03e configure.in (AC_C_INLINE): Added.
gcc/:
        * configure.in (AC_C_INLINE): Added.
	* configure: Regenerate.

gcc/java:
	* Makefile.in (INTLLIBS): New.
	(LIBS): Add above.
	(DEPLIBS): Ditto.

gcc/f:
	* Makefile.in(INTLLIBS): New macro.
	(LIBS): Add INTLLIBS.
	(DEPLIBS): Likewise.

gcc/ch:
	* Makefile.in: Changed to be processed by configure.
	(INTLLIBS): New macro.
	(LIBS): Add INTLLIBS.
	(DEPLIBS): Likewise.
	* config-lang(outputs): Specify ch/Makefile.

gcc/po:
	* Makefile.in.in: Add --define switch for xgettext.

gcc/intl:
	* Makefile.in: Add -DIN_GCC to DEFS, add appropriate -I switches.
	* dcgettext.c: Define _GNU_SOURCE before any system header is
	included. Guard getcwd declaration with HAVE_DECL_GETCWD.
	* loadmsgcat.c (_nl_load_domain): Cast st.st_size in compaison to
	size_t.
	* localealias.c: Define _GNU_SOURCE before any system header is
	included. Don't use return value of memcpy because it could be a
	macro defined in terms of bcopy.
	(read_alias_file): Remove HAVE_MEMCPY guard and just don't use the
	return value of memcpy. Cast argument to fgets and strlen to char *.
	* explodename.c (_nl_explode_name): Cast codeset to unsigned char **
	in call to _nl_normalize_codeset.
	* l10nflist.c: Define _GNU_SOURCE before any system header is
	included.

From-SVN: r34423
2000-06-06 07:23:42 +00:00
Gabriel Dos Reis
f519a4527d c-typeck.c (build_conditional_expr): Handle complex data types.
2000-06-06  Gabriel Dos Reis  <gdr@codesourcery.com>

        * c-typeck.c (build_conditional_expr): Handle complex data types.

From-SVN: r34422
2000-06-06 06:55:35 +00:00
Jason Merrill
258a120bab explow.c (maybe_set_unchanging): New function, broken out from...
* explow.c (maybe_set_unchanging): New function, broken out from...
        (set_mem_attributes): Here.
        * expr.h: Declare it.
        * stmt.c (expand_decl): Call it.

From-SVN: r34421
2000-06-05 23:37:50 -04:00
Richard Henderson
c9d8a81361 reload1.c (choose_reload_regs): Mind CLASS_CANNOT_CHANGE_SIZE while looking for a register to inherit from.
* reload1.c (choose_reload_regs): Mind CLASS_CANNOT_CHANGE_SIZE
        while looking for a register to inherit from.

From-SVN: r34420
2000-06-05 19:40:14 -07:00
Jason Merrill
2aceb30d90 Makefile.in (libgcc.ready): Lose.
* Makefile.in (libgcc.ready): Lose.
        (libgcc.mk): Just use mv, not move-if-change.
        (LIBGCC_DEPS): New macro.
        (libgcc.a): Use it.
        (stmp-multilib): Likewise.
        * mklibgcc.in (stmp-dirs): New target.  Make everything depend on
        it rather than the directories themselves.
        (LIB2ADD): Depend on the list file rather than 'force'.

From-SVN: r34419
2000-06-05 21:56:06 -04:00
Richard Henderson
fce8451d82 New test.
From-SVN: r34418
2000-06-05 17:19:52 -07:00
Jason Merrill
16a8282ca1 simplify
From-SVN: r34417
2000-06-05 20:17:32 -04:00
Jason Merrill
a7833bec2c fold-const.c (fold, [...]): Elide conversion between cv-qualified versions of types.
* fold-const.c (fold, case COND_EXPR): Elide conversion between
        cv-qualified versions of types.

From-SVN: r34416
2000-06-05 20:15:37 -04:00
Jason Merrill
3ae18eaf85 search.c (maybe_suppress_debug_info): Don't check CLASSTYPE_INTERFACE_ONLY if CLASSTYPE_INTERFACE_KNOWN isn't set.
* search.c (maybe_suppress_debug_info): Don't check
        CLASSTYPE_INTERFACE_ONLY if CLASSTYPE_INTERFACE_KNOWN isn't set.

        * pt.c (mark_decl_instantiated): Do SET_DECL_EXPLICIT_INSTANTIATION
        here if extern_p.

        Remember instantiation context in deferred instantiations.
        * cp-tree.h (struct tinst_level): Remove.
        (TINST_DECL, TINST_LINE, TINST_FILE): New macros.
        * pt.c (current_tinst_level): Now a tree.
        (print_template_context, push_tinst_level, pop_tinst_level,
        tinst_for_decl): Adjust.
        (reopen_tinst_level): New fn.
        (init_pt): Register current_tinst_level as a root.
        (add_pending_template): Put current_tinst_level in TREE_PURPOSE
        of the pending templates list.
        (instantiate_pending_templates): Adjust.  Call reopen_tinst_level.
        * lex.c (extract_interface_info): Adjust.
        * decl2.c (warn_if_unknown_interface): Adjust.

From-SVN: r34415
2000-06-05 20:12:40 -04:00
Philipp Thomas
ef0b4ef8d6 config.guess: Updated to latest version.
* config.guess: Updated to latest version.
	* config.sub: Likewise.

From-SVN: r34413
2000-06-05 23:23:43 +00:00
Mark Mitchell
7cafdb8bfe class.c (indirect_primary_base_p): New function.
* class.c (indirect_primary_base_p): New function.
	(determine_primary_base): Use it.

From-SVN: r34412
2000-06-05 20:01:47 +00:00
Alex Samuel
3faa108c7b cp-demangle.c (demangle_prefix): Cast argument to isdigit to unsigned char.
* cp-demangle.c (demangle_prefix): Cast argument to isdigit to
	unsigned char.
	(demangle_unqualified_name): Likewise.
	(demangle_number_literally): Likewise.
	(demangle_type): Likewise.
	(demangle_substitution): Likewise.
	(is_mangled_char): Likewise, for isalnum.

From-SVN: r34411
2000-06-05 18:24:07 +00:00
Richard Kenner
77b9151288 sparc.c (short_branch): Correct error in range computation.
* config/sparc/sparc.c (short_branch): Correct error in range
	computation.

From-SVN: r34410
2000-06-05 14:04:53 -04:00
Bruce Korb
bde8e56451 New include hacks for ultrix
From-SVN: r34409
2000-06-05 17:49:58 +00:00
Bruce Korb
5b39f702d0 typo
From-SVN: r34408
2000-06-05 17:49:33 +00:00
J. David Anglin
a7fc602f17 New include hacks for ultrix
From-SVN: r34407
2000-06-05 17:44:07 +00:00
Zack Weinberg
83adf9da64 Oops, remove conflict marker
From-SVN: r34406
2000-06-05 17:00:32 +00:00
Zack Weinberg
88a19424c6 objc-act.c (generate_method_descriptors): Register objc_method_prototype_template as a GC root.
* objc/objc-act.c (generate_method_descriptors): Register
	objc_method_prototype_template as a GC root.
	(comp_method_with_proto): Register function_type as a GC root.
	(comp_proto_with_proto): Replace function_type1 and
	function_type2 with a two-element array; register it as a GC root.

	(generate_protocols, build_protocol_initializer,
	generate_protocol_list, build_category_initializer,
	build_shared_structure_initializer): Do not cache cast_type
	and/or cast_type2.

From-SVN: r34405
2000-06-05 16:59:43 +00:00