aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2000-06-07cpplib.c (do_ifdef, do_ifndef): Don't segfault if parse_ifdef returned NULL.Jakub Jelinek3-9/+31
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-07avr.c (asm_output_section_name): output section attributes.Denis Chertykov3-4/+14
* 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-07POTFILES.in: Remove dyn-string.[ch].Philipp Thomas3-1192/+2757
* POTFILES.in: Remove dyn-string.[ch]. * gcc.pot: Regenerated. * cat-id-tbl.c: Ditto. From-SVN: r34444
2000-06-07decl.c (pushdecl): Look up functions by DECL_NAME, not DECL_ASSEMBLER_NAME.Mark Mitchell2-48/+43
* decl.c (pushdecl): Look up functions by DECL_NAME, not DECL_ASSEMBLER_NAME. From-SVN: r34443
2000-06-07Daily bump.Jeff Law2-2/+2
From-SVN: r34442
2000-06-06Fix gas/gcc unwind/EH discrepancies. And a shared library build problem.James E. Wilson6-69/+101
* 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-06configure.in (AC_C_INLINE): Added.Philipp Thomas3-2/+8
* configure.in (AC_C_INLINE): Added. * aclocal.m4 (AM_WITH_NLS): Enable --with-included-gettext by default. * configure: Regenerate. From-SVN: r34440
2000-06-06c-common.h (c_language_kind): New type.Mark Mitchell9-6/+44
* 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-06decl.c (redeclaration_error_message): If two TEMPLATE_DECLs have the same ↵Mark Mitchell2-55/+2
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-0620000605-2.c: New test.Richard Henderson3-0/+41
* gcc.c-torture/execute/20000605-2.c: New test. * gcc.c-torture/execute/20000605-3.c: New test. From-SVN: r34437
2000-06-06diagnostic.c (output_maximum_width): Remove.Gabriel Dos Reis12-52/+201
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-06decl.c (redeclaration_error_message): If two TEMPLATE_DECLs have the same ↵Mark Mitchell1-0/+7
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-06parse.y (check_modifiers_consistency): Don't subtract out `PUBLIC_TK' from ↵Tom Tromey2-4/+7
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* g77.f-torture/execute/20000503-1.x: New file.David Billinghurst2-0/+10
From-SVN: r34432
2000-06-06configure.in (Make the links): Typo fix ...Philippe De Muyter3-4/+10
* 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* g++.old-deja/g++.eh/badalloc1.C: New test.Nathan Sidwell2-0/+81
From-SVN: r34430
2000-06-06eh-common.h (EH_ALLOC_SIZE, [...]): New #defines.Nathan Sidwell5-23/+105
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* expr.c (store_expr): Fix typo.Jason Merrill2-1/+5
From-SVN: r34428
2000-06-06m68k.c (legitimize_pic_address): Move prototype ...Kaveh R. Ghazi6-12/+28
* 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-06sdbout.c (struct sdb_file): NAME now const.Richard Kenner3-5/+12
* 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-06Daily bump.Jeff Law2-2/+2
From-SVN: r34425
2000-06-06*gcc/configure: regeneratedPhilipp Thomas1-277/+267
From-SVN: r34424
2000-06-06configure.in (AC_C_INLINE): Added.Philipp Thomas18-41/+111
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-06c-typeck.c (build_conditional_expr): Handle complex data types.Gabriel Dos Reis2-2/+8
2000-06-06 Gabriel Dos Reis <gdr@codesourcery.com> * c-typeck.c (build_conditional_expr): Handle complex data types. From-SVN: r34422
2000-06-05explow.c (maybe_set_unchanging): New function, broken out from...Jason Merrill4-6/+41
* 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-05reload1.c (choose_reload_regs): Mind CLASS_CANNOT_CHANGE_SIZE while looking ↵Richard Henderson2-1/+16
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-05Makefile.in (libgcc.ready): Lose.Jason Merrill3-60/+39
* 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-05New test.Richard Henderson2-0/+52
From-SVN: r34418
2000-06-05simplifyJason Merrill1-5/+4
From-SVN: r34417
2000-06-05fold-const.c (fold, [...]): Elide conversion between cv-qualified versions ↵Jason Merrill2-0/+9
of types. * fold-const.c (fold, case COND_EXPR): Elide conversion between cv-qualified versions of types. From-SVN: r34416
2000-06-05search.c (maybe_suppress_debug_info): Don't check CLASSTYPE_INTERFACE_ONLY ↵Jason Merrill6-60/+120
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-05class.c (indirect_primary_base_p): New function.Mark Mitchell2-12/+78
* class.c (indirect_primary_base_p): New function. (determine_primary_base): Use it. From-SVN: r34412
2000-06-05sparc.c (short_branch): Correct error in range computation.Richard Kenner2-3/+10
* config/sparc/sparc.c (short_branch): Correct error in range computation. From-SVN: r34410
2000-06-05New include hacks for ultrixBruce Korb1-155/+450
From-SVN: r34409
2000-06-05typoBruce Korb1-1/+1
From-SVN: r34408
2000-06-05New include hacks for ultrixJ. David Anglin2-15/+154
From-SVN: r34407
2000-06-05Oops, remove conflict markerZack Weinberg1-1/+0
From-SVN: r34406
2000-06-05objc-act.c (generate_method_descriptors): Register ↵Zack Weinberg2-57/+65
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-05function.c (assign_parms): Add missing argument to set_mem_attributes call.J. David Anglin2-1/+7
* function.c (assign_parms): Add missing argument to set_mem_attributes call. From-SVN: r34404
2000-06-0520000605-1.c: New test.Jakub Jelinek2-0/+27
* gcc.c-torture/compile/20000605-1.c: New test. Co-Authored-By: Nathan Sidwell <nathan@codesourcery.com> From-SVN: r34403
2000-06-05tree.h (VOID_TYPE_P): New macro.Nathan Sidwell10-754/+768
* tree.h (VOID_TYPE_P): New macro. (COMPLETE_OR_VOID_TYPE_P): Use VOID_TYPE_P. * c-decl.c (grokdeclarator): Use VOID_TYPE_P. (get_parm_info): Likewise. (store_parm_decls): Likewise. (combine_parm_decls): Likewise. (finish_function): Likewise. * c-typeck.c (build_function_call): Likewise. (build_binary_op): Likewise. (build_conditional_expr): Likewise. (internal_build_compound_expr): Likewise. (convert_for_assignment): Likewise. * stmt.c (expend_expr_stmt): Likewise. (warn_if_unused_value): Likewise. (expand_return): Likewise. * c-parse.in (primary): Likewise. * c-parse.y, c-parse.c, c-parse.h: Regenerate. * objc/objc-parse.y, objc/objc-parse.c: Regenerate. From-SVN: r34402
2000-06-05Update new-abi dynamic cast algorithm.Nathan Sidwell2-24/+58
* tinfo.cc (__class_type_info::__dyncast_result): Add whole_details. Adjust constructor. (__vmi_class_type_info::__do_dyncast): Adjust for vmi_flags. Avoid unnecessary searching. (__dynamic_cast): Adjust for __dyncast_result::whole_details. From-SVN: r34401
2000-06-05alias.c (get_alias_set): If compnent is addressable, use alias set of component.Richard Kenner7-28/+46
* alias.c (get_alias_set): If compnent is addressable, use alias set of component. * c-decl.c (init_decl_processing): Don't call record_component_aliases. (grokdeclarator): Likewise. * c-typeck.c (common_type): Likewise. * cp/decl.c (init_decl_processing): Don't call record_component_aliases. * cp/tree.c (build_cplus_array_type_1): Likewise. From-SVN: r34400
2000-06-05Daily bump.Jeff Law2-2/+2
From-SVN: r34399
2000-06-05Makefile.in (OBJS): Remove dyn_string.oAlex Samuel4-144/+18
* Makefile.in (OBJS): Remove dyn_string.o (dyn-string.o): Delete rule. * dyn-string.c: Delete file * dyn-string.h: Likewise. From-SVN: r34398
2000-06-05ir.texi: Correct typo.Mark Mitchell7-13/+63
* ir.texi: Correct typo. * mangle.c (write_expression): Handle non-type template arguments with reference type. * method.c (build_overload_value): Likewise. * pt.c (convert_nontype_argument): Explicitly represent conversion to a reference with an ADDR_EXPR. (unify): Always unify arguments in left-to-right order. From-SVN: r34396
2000-06-04Make-lang.in (CXX_SRCS): Add mangle.c.Alex Samuel18-337/+2616
* Make-lang.in (CXX_SRCS): Add mangle.c. * Makefile.in (CXX_OBJS): Add mangle.o. (mangle.o): New rule. Co-Authored-By: Mark Mitchell <mark@codesourcery.com> From-SVN: r34394
2000-06-04Makefile.in (intl.*): Honor non-zero exit codes in the intl subdir.Kaveh R. Ghazi2-0/+6
* Makefile.in (intl.*): Honor non-zero exit codes in the intl subdir. From-SVN: r34393
2000-06-04Daily bump.Jeff Law2-2/+2
From-SVN: r34390
2000-06-04alias.c (record_component_aliases): Don't inspect DECL_NONADDRESSABLE_P of ↵Geoff Keating2-2/+7
non-FIELD_DECL components of structures. * alias.c (record_component_aliases): Don't inspect DECL_NONADDRESSABLE_P of non-FIELD_DECL components of structures. From-SVN: r34389