aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2001-02-07* lex.c (java_new_lexer): Longer error message.Tom Tromey2-1/+5
From-SVN: r39520
2001-02-07Update Copyright noticeAlexandre Oliva1-1/+1
From-SVN: r39519
2001-02-07lcm.c (optimize_mode_switching): Emit mode_set before the JUMP_INSN of an ↵Alexandre Oliva2-1/+9
abnormal edge. * lcm.c (optimize_mode_switching): Emit mode_set before the JUMP_INSN of an abnormal edge. From-SVN: r39518
2001-02-07* gcc.c-torture/execute/20010206-1.c: New test.Jakub Jelinek2-0/+20
From-SVN: r39517
2001-02-07Document MD_INIT_BUILTINS, MD_EXPAND_BUILTINBernd Schmidt2-0/+31
From-SVN: r39516
2001-02-07Avoid scheduling builtin setjmp receiversBernd Schmidt2-0/+12
From-SVN: r39515
2001-02-07Daily bump.Jeff Law2-2/+2
From-SVN: r39513
2001-02-07Tweak for new preprocessorAlexandre Oliva1-26/+5
From-SVN: r39512
2001-02-07sh.md (reload_outsf): Removed.Alexandre Oliva2-39/+15
* config/sh/sh.md (reload_outsf): Removed. (movsf_ie): Introduce constraints for FPUL loads and stores. (reload_insf): Broaden the output constraint. From-SVN: r39511
2001-02-07elfos.h (INT_ASM_OP): Don't define it if it's already defined.Alexandre Oliva3-8/+45
* config/elfos.h (INT_ASM_OP): Don't define it if it's already defined. * config/sh/sh.h (INT_ASM_OP, ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Copy definitions from config/elfos.h. From-SVN: r39510
2001-02-06typeck.c (build_prim_array_type): Added leading comment.Jeff Sturm2-34/+19
2001-02-05 Jeff Sturm <jeff.sturm@commerceone.com> Alexandre Petit-Bianco <apbianco@cygnus.com> * typeck.c (build_prim_array_type): Added leading comment. (build_java_array_type): Moved locals out of block. Always create the `data' field, fixed alignment to match C++. (http://gcc.gnu.org/ml/gcc-patches/2001-02/msg00378.html) Co-Authored-By: Alexandre Petit-Bianco <apbianco@cygnus.com> From-SVN: r39507
2001-02-06final.c: Revert back my previous changes.Chandrakala Chavva4-16/+24
* final.c: Revert back my previous changes. * output.h: Make profile_label_no extern. * config/rs6000/rs6000.c (output_profile_hook): Use standard functions for generating label. From-SVN: r39506
2001-02-06djgpp.h: Add comments about standard paths.Laurynas Biveinis2-1/+16
* config/i386/djgpp.h: Add comments about standard paths. (MD_EXEC_PREFIX): Undefine before defining. (MD_STARTFILE_PREFIX): New. From-SVN: r39504
2001-02-06do not rely on load_file_data() to close file pointerBruce Korb4-9/+18
From-SVN: r39501
2001-02-06cppexp.c (parse_defined): Improve diagnostics for invalid syntax.Neil Booth2-1/+19
* cppexp.c (parse_defined): Improve diagnostics for invalid syntax. From-SVN: r39500
2001-02-06* gcc.dg/cpp/avoidpaste1.c: Update.Neil Booth2-3/+7
From-SVN: r39499
2001-02-06* cppmacro.c (cpp_get_token): Avoid pasting after a builtin.Neil Booth2-0/+5
From-SVN: r39498
2001-02-06rs6000.h (ASM_OUTPUT_SYMBOL_REF): Define.Mark Mitchell4-1/+47
* config/rs6000/rs6000.h (ASM_OUTPUT_SYMBOL_REF): Define. * config/rs6000/rs6000-protos.h (rs6000_output_symbol_ref): Declare. * config/rs6000/rs6000.c (VTABLE_NAME_P): New macro. (rs6000_output_symbol_ref): New function. (output_toc): Use VTABLE_NAME_P. From-SVN: r39497
2001-02-06Tue Feb 5 8:53:33 2001 Ovidiu Predescu <ovidiu@cup.hp.com>Ovidiu Predescu1-0/+6
* objc/execute/bycopy-1.m, bycopy-2.m: Added new tests from Nicola Pero <nicola@brainstorm.co.uk>. * objc/execute/fdecl.m: Declare foo as pointer to AClass. From-SVN: r39495
2001-02-06print-tree.c (print_node, [...]): Print DECL_ARG_TYPE and ↵Richard Kenner2-4/+14
DECL_ARG_TYPE_AS_WRITTEN. * print-tree.c (print_node, case PARM_DECL): Print DECL_ARG_TYPE and DECL_ARG_TYPE_AS_WRITTEN. From-SVN: r39492
2001-02-06stor-layout.c (reference_types_internal): New variable.Richard Kenner3-6/+32
* stor-layout.c (reference_types_internal): New variable. (internal_reference_types): New function. (layout_type, case REFERENCE_TYPE): Make Pmode if internal. * tree.h (internal_reference_types): New declaration. From-SVN: r39491
2001-02-06* cse.c (find_best_addr): Fix typo in computing cost.Richard Kenner2-1/+5
From-SVN: r39490
2001-02-06combine.c (nonzero_bits, case PLUS): If pointers extend unsigned and this is ↵Richard Kenner5-54/+114
the sum of a pointer and a constant... * combine.c (nonzero_bits, case PLUS): If pointers extend unsigned and this is the sum of a pointer and a constant, we know the result did not overflow. (num_sign_bit_copies, case PLUS): Likewise. * explow.c (convert_memory_address): Remove opposite SUBREG. * function.c (instantiate_new_reg): New function (from common code). (instantiate_virtual_regs_1): Call it. For PLUS, handle if (plus (subreg (virt-reg) (const_int)) if pointers sign- or zero-extend. * simplify-rtx.c (simplify_unary_operation, case ZERO_EXTEND): If pointers extend unsigned, use inside of SUBREG. (simplify_unary_operation, case SIGN_EXTEND): Likewise, if sign extend. From-SVN: r39489
2001-02-06pt.c (lookup_template_class): Make sure it's a primary template or ↵Nathan Sidwell4-1/+60
template_template_parm when... cp: * pt.c (lookup_template_class): Make sure it's a primary template or template_template_parm when called from the parser. (instantiate_template_class): Add assertion. testsuite: * g++.old-deja/g++.pt/spec39.C: New test. From-SVN: r39488
2001-02-06s/k/i/Jason Merrill1-2/+2
From-SVN: r39487
2001-02-06Daily bump.Jeff Law2-2/+2
From-SVN: r39486
2001-02-06Makefile.in (-DGPLUSPLUS_TOOL_INCLUDE_DIR): Change to target subdir of ↵Benjamin Kosnik2-3/+7
gcc_gxx_include_dir. 2001-02-05 Benjamin Kosnik <bkoz@redhat.com> * Makefile.in (-DGPLUSPLUS_TOOL_INCLUDE_DIR): Change to target subdir of gcc_gxx_include_dir. (gcc_gxx_target_include_dir): Remove. From-SVN: r39480
2001-02-06Add ChangeLog entryFranz Sirl1-0/+6
From-SVN: r39476
2001-02-06dwarf2out.c: Revise DWARF2 Abbreviation Glossary comments.Jeffrey Oldham2-11/+41
2001-02-05 Jeffrey Oldham <oldham@codesourcery.com> * dwarf2out.c: Revise DWARF2 Abbreviation Glossary comments. (dwarf2out_frame_debug_expr): Revise introductory comments to add a high-level description. From-SVN: r39475
2001-02-05Fixed typo in last changelog entry.Chandra Chavva1-1/+1
From-SVN: r39474
2001-02-05final.c: Move the declaration profile_label_no to ...Chandrakala Chavva8-57/+56
* final.c: Move the declaration profile_label_no to ... * output.h: ... here. * function.c (expand_function_start): Call PROFILE_HOOK. * config/rs6000/aix.h: Define PROFILE_HOOK. * config/rs6000/rs6000-protos.h: output_profile_hook new. * config/rs6000/rs6000.c (output_profile_hook): Define. (output_prolog): Do nothing for ABI_AIX as it is taken care by output_profile_hook. tm.texi : Explain new macro PROFILE_HOOK. From-SVN: r39473
2001-02-05extend.texi (Extended Asm): Do not say that semicolon is always a valid ↵Hans-Peter Nilsson2-6/+16
line-breaking character for GNU... * extend.texi (Extended Asm): Do not say that semicolon is always a valid line-breaking character for GNU assemblers. Use newline-tab as the most commonly supported syntax. Use newline-tab rather than semicolon in multi-insn examples. From-SVN: r39471
2001-02-05re PR java/1866 (Array initializer: undefined reference to `LJv0.0')Tom Tromey2-5/+9
* expr.c (java_lang_expand_expr): Don't bother recomputing `length'. Use rest_of_decl_compilation, not make_decl_rtl. Fixes PR java/1866. From-SVN: r39470
2001-02-05Makefile.in (gcc_gxx_target_include_dir): Use $(target_alias).Franz Sirl2-1/+5
2001-02-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * Makefile.in (gcc_gxx_target_include_dir): Use $(target_alias). From-SVN: r39469
2001-02-05c-typeck.c (common_type): push and pop binding level around calling ↵Jakub Jelinek4-0/+20
common_type on function parameters. * c-typeck.c (common_type): push and pop binding level around calling common_type on function parameters. * gcc.c-torture/compile/20010202-1.c: New test. From-SVN: r39467
2001-02-05rs6000.c (rs6000_return_addr): Use PIC code for AIX, even without flag_pic.Franz Sirl1-2/+5
* config/rs6000/rs6000.c (rs6000_return_addr): Use PIC code for AIX, even without flag_pic. From-SVN: r39464
2001-02-05* config/i386/cygwin.h (CPP_SPEC): Add missing space after -idirafter.Christopher Faylor2-1/+5
From-SVN: r39463
2001-02-05parse.y (process_imports): Save the original name of the import for better ↵Alexandre Petit-Bianco2-2/+15
error report. 2001-02-05 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (process_imports): Save the original name of the import for better error report. (http://gcc.gnu.org/ml/gcc-patches/2001-02/msg00250.html) From-SVN: r39461
2001-02-05method.c (build_mangled_name): Protect flush_repeats() from error_mark_node.Alexandre Oliva2-0/+15
* method.c (build_mangled_name) [old abi]: Protect flush_repeats() from error_mark_node. From-SVN: r39460
2001-02-05Added.Ovidiu Predescu2-0/+53
From-SVN: r39459
2001-02-05Declare foo as pointer.Ovidiu Predescu1-1/+1
From-SVN: r39458
2001-02-05mips.c (mips_make_temp_file): Call fatal_io_error, not pfatal_with_name.Richard Kenner2-5/+7
* config/mips/mips.c (mips_make_temp_file): Call fatal_io_error, not pfatal_with_name. (mips_asm_file_end): Likewise; also pass more args to fatal_io_error. From-SVN: r39457
2001-02-05* config/mips/mips.c (override_options): Fix typo in last change.Richard Kenner2-1/+5
From-SVN: r39456
2001-02-05invoke.texi (-fdump-class-layout): Document.Nathan Sidwell25-233/+1011
gcc: * invoke.texi (-fdump-class-layout): Document. (-fdump-translation-unit): Use `=' as filename separator. cp: Fix specification and implementation bugs in V3 ABI construction vtables. * cp-tree.h (flag_dump_class_layout): New flag. (BINFO_OVERRIDE_ALONG_VIRTUAL_PATH_P): Remove. (BINFO_LOST_PRIMARY_P): New flag. (SET_BINFO_NEW_VTABLE_MARKED): Adjust asserts. (BINFO_PRIMARY_MARKED_P): Rename to ... (BINFO_PRIMARY_P): ... here. (binfo_via_virtual): New prototype. * decl2.c (flag_dump_class_layout): New flag. (cxx_decode_option): Set it. Adjust -fdump-translation-unit to use `=' as a file name separator. * init.c (dfs_initialize_vtbl_ptrs): Walk into virtual primary bases. (build_vtbl_address): If this is a virtual primary base, then get the vtbl of what it is ultimately primary for. * search.c (dfs_skip_nonprimary_vbases_unmarkedp): Adjust for BINFO_PRIMARY_P. (dfs_skip_nonprimary_vbases_markedp): Likewise. (get_shared_vbase_if_not_primary): Likewise. (dfs_get_pure_virtuals): Likewise. (expand_upcast_fixups): Likewise. (fixup_virtual_upcast_offsets): Likewise. (dfs_find_vbase_instance): Likewise. (find_vbase_instance): Likewise. (binfo_from_vbase): Adjust comment to reflect reality. (binfo_via_virtual): New function. * class.c (VTT_TOP_LEVEL_P, VTT_MARKED_BINFO_P): New macros for binfo walking during VTT construction. (dfs_mark_primary_bases): Remove. (force_canonical_binfo_r): New function. (force_canonical_binfo): New function. (mark_primary_virtual_base): New function. (mark_primary_bases): Walk in inheritance graph order, use mark_primary_virtual_base. (determine_primary_base): Use some more intermediate variables. (dfs_find_final_overrider): Don't check for overriding along a virtual path. (dfs_modify_vtables): Walk into primary virtual bases too. (walk_subobject_offsets): Adjust for BINFO_PRIMARY_P. (build_base_fields): Likewise. (dfs_set_offset_for_unshared_vbases): Likewise. (layout_virtual_bases): Likewise. (end_of_class): Likewise. (finish_struct_1): Call dump_class_hierarchy, if requested. (dfs_get_primary_binfo): Use BINFO_TYPE for binfos. (dump_class_hierarchy_r): Add stream parameter. Emit more information. (dump_class_hierarchy): Add file parameter. Append to file, if required. (finish_vtbls): Adjust accumulate_vtbl_inits call. Use canonical base for virtual bases. (build_vtt): Add more comments. Adjust build_vtt_inits call. (build_vtt_inits): Remove VIRTUAL_VTTS_P parm. Only set BINFO_VPTR_INDEX on top level. Use VTT_TOP_LEVEL_P, VTT_MARKED_BINFO_P for binfo walking. Use canonical vbase for virtual VTTs. (dfs_build_secondary_vptr_vtt_inits): Extract VTT_TOP_LEVEL_P from DATA. We want virtual primary bases and all bases via virtual. Only set BINFO_VPTR_INDEX for top level. Look up from a primary virtual base when not a construction vtable. (dfs_ctor_vtable_bases_queue_p): New DFS predicate. (build_ctor_vtbl_group): Adjust accumulate_vtbl_inits call. Use canonical bases when processing virtual bases. (accumulate_vtbl_inits): We're interested in any base via a virtual path. (dfs_accumulate_vtbl_inits): If this is a primary virtual base within a construction vtable, determine what is being overridden. (build_vtbl_initializer): Add more comments (add_vcall_offset_vtbl_entries_1): Adjust comment. (build_rtti_vtbl_entries): Check if the base has lost its primary. testsuite: * g++.old-deja/g++.abi/primary2.C: New test. * g++.old-deja/g++.abi/primary3.C: New test. * g++.old-deja/g++.abi/primary4.C: New test. * g++.old-deja/g++.abi/primary5.C: New test. * g++.old-deja/g++.abi/vtable3.h: New test. * g++.old-deja/g++.abi/vtable3a.C: New test. * g++.old-deja/g++.abi/vtable3b.C: New test. * g++.old-deja/g++.abi/vtable3c.C: New test. * g++.old-deja/g++.abi/vtable3d.C: New test. * g++.old-deja/g++.abi/vtable3e.C: New test. * g++.old-deja/g++.abi/vtable3f.C: New test. * g++.old-deja/g++.abi/vtable3g.C: New test. * g++.old-deja/g++.abi/vtable3h.C: New test. * g++.old-deja/g++.abi/vtable3i.C: New test. * g++.old-deja/g++.abi/vtable3j.C: New test. * g++.old-deja/g++.oliva/thunk1.C: Remove XFAIL. From-SVN: r39455
2001-02-05Makefile.in (s-mlib): Don't build multilibs if --disable-multilib.Mark Mitchell6-248/+291
* Makefile.in (s-mlib): Don't build multilibs if --disable-multilib. (DRIVER_DEFINES): Adjust accordingly. (gcc.o): Likewise. (protoize.o): Likewise. (unprotoize.o): Likewise. * configure.in: Recognize --enable-multilib. * Makefile.in (g++spec.o): Adjust use of DRIVER_DEFINES. From-SVN: r39452
2001-02-05Daily bump.Jeff Law2-2/+2
From-SVN: r39451
2001-02-05Make-lang.in (jvspec.o): Add DRIVER_DEFINES to the list of macros used when ↵Bryce McKinlay3-2/+26
compiling jvspec.c. gcc/java: * Make-lang.in (jvspec.o): Add DRIVER_DEFINES to the list of macros used when compiling jvspec.c. * jvspec.c (lang_specific_driver): Link with the shared libgcc by default. libjava: * libgcj.spec.in: Don't force static libgcc into the executable. * configure.in (FORCELIBGCCSPEC): Removed. From-SVN: r39449
2001-02-04avr.h (ASM_OUTPUT_REG_PUSH, [...]): Call abort instead of fatal.Richard Kenner4-12/+27
* config/avr/avr.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Call abort instead of fatal. (TRAMPOLINE_TEMPLATE): Call internal_error instead of fatal. * config/dsp16xx/dsp16xx.h (FUNCTION_PROFILER): Likewise. (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Likewise. (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Likewise. (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise. * config/rs6000/rs6000.h (RETURN_ADDRESS_OFFSET): Likewise. From-SVN: r39448
2001-02-05* Makefile.in (DRIVER_DEFINES): Fix quoting.Mark Mitchell2-2/+4
From-SVN: r39446
2001-02-05Remove V2 C++ library.Mark Mitchell4-290/+251
* configure.in: Remove --enable-libstdcxx_v3 support. * Makefile.in (site.exp): Always set HAVE_LIBSTDCXX_V3. * configure.in: Remove --enable-libstdcxx_v3 support. * configure: Regenerated. From-SVN: r39445