summaryrefslogtreecommitdiffstats
path: root/gcc
Commit message (Collapse)AuthorAgeFilesLines
* PR c++/10471mmitchel2003-04-244-1/+23
| | | | | | | | | | * call.c (build_cxx_call): Robustify. PR c++/10471 * g++.dg/template/defarg2.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66032 138bc75d-0d04-0410-961f-82ee72b054a4
* PR opt/8300rth2003-04-242-7/+14
| | | | | | | | | * toplev.c (rest_of_compilation): Delay no_new_pseudos until after initialize_uninitialized_subregs; update reg info assuming new pseudos were created. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66030 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2003-04-241-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66026 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.neil2003-04-2317-225/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * c-lex.c (MULTIBYTE_CHARS): Remove conditionals. (lex_string): Take cpp_string with full spelling. (cb_ident): Update. (c_lex): Update diagnostics. * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL. (create_literal): New. (lex_string): Unterminated literals have type CPP_OTHER. (_cpp_lex_direct): Update calls to lex_string. Use create_literal for CPP_OTHER. (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify. (_cpp_equiv_tokens, cpp_interpret_charconst): Update. * cpplib.c (parse_include, do_line, do_linemarker, destringize_and_run): Update for token storing full spelling. * cpplib.h: Update token spelling types. * cppmacro.c (stringify_arg, check_trad_stringification): Update for token storing full spelling. cp: * Make-lang.in (lex.o): Remove mbchar.h. * lex.c (MULTIBYTE_CHARS): Lose. * parser.c (cp_lexer_get_preprocessor_token): CPP_OTHER handled in c-lex.c. testsuite: * gcc.dg/cpp/include2.c: Update. * gcc.dg/cpp/multiline-2.c: New. * gcc.dg/cpp/multiline.c: Update. * gcc.dg/cpp/strify2.c: Update. * gcc.dg/cpp/trad/literals-2.c: Update. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66019 138bc75d-0d04-0410-961f-82ee72b054a4
* * g++.dg/other/packed1.C: XFAIL hppa*-*-*.danglin2003-04-232-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66012 138bc75d-0d04-0410-961f-82ee72b054a4
* * g++.dg/parse/typedef1.C: Tweak after fix for PR 10428.mmitchel2003-04-232-2/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66006 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.uweigand2003-04-232-1/+9
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66002 138bc75d-0d04-0410-961f-82ee72b054a4
* * arm.h (TARGET_OPTIONS): Add value field.rearnsha2003-04-232-7/+11
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65999 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/9847mmitchel2003-04-238-75/+50
| | | | | | | | | | | | | * cp-tree.h (duplicate_tag_error): Remove. * class.c (duplicate_tag_error): Remove. * semantics.c (begin_class_definition): Return immediately for a duplicate class definition. PR c++/10451 * decl.c (grokdeclarator): Correct logic for "mutable" errors. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65998 138bc75d-0d04-0410-961f-82ee72b054a4
* * doc/extend.texi: Remove duplicate 2003 copyright date.mmitchel2003-04-232-2/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65997 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (LIBGCC_DEPS): Add gcov headers.nathan2003-04-2314-924/+698
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (libgcov.a): Depends on LIBGCC_DEPS. * basic-block.h (profile_info): Moved here from coverage.h. Made a pointer. * coverage.c (struct function_list): Fixed array of counter types. (struct counts_entry): Keyed by counter type, contains summary. (profile_info): Moved to profile.c. (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global vars. (profiler_label): Remove. (ctr_labels): New. (set_purpose, label_for_tag, build_counter_section_fields, build_counter_section_value, build_counter_section_data_fields, build_counter_section_data_values, build_function_info_fields, build_function_info_value, gcov_info_fields, gcov_info_value): Remove. (build_fn_info_type, build_fn_info_value, build_ctr_info_type, build_ctr_info_value, build_gcov_info): New. (htab_counts_entry_hash, htab_counts_entry_eq): Adjust. (reads_counts_file): Adjust. (get_coverage_counts): Takes counter number. Add summary parameter. Adjust. (coverage_counter_ref): Tkaes counter number. Adjust. Lazily create counter array labels. (coverage_end_function): Adjust. (create_coverage): Adjust. (find_counters_section): Remove. * coverage.h (MAX_COUNTER_SECTIONS): Remove. (struct section_info, struct profile_info): Remove. (profile_info): Moved to basic-block.h. (coverage_counter_ref): Takes a counter number. (get_coverage_counts): Takes a counter number. Added summary parameter. (find_counters_section): Remove. * gcov-dump.c (tag_arc_counts): Rename to ... (tag_counters): ... here. Adjust. (tag_table): Move tag_counters to 3rd entry. Remove PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries. (dump_file): Check for counter tag values here. (tag_summary): Adjust. * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust. * gcov-io.h (GCOV_LOCKED): New. (GCOV_TAG_ARC_COUNTS): Rename to ... (GCOV_TAG_COUNTS_BASE): ... here. (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY): Remove. (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New. (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG, GCOV_TAG_IS_COUNTER): New. (struct gcov_ctr_summary): New. (struct gcov_summary): Adjust. (struct gcov_counter_section): Remove. struct gcov_counter_section_data): Remove. (struct gcov_function_info): Rename to ... (struct gcov_fn_info): ... here. Adjust. (struct gcov_ctr_info): New. (struct gcov_info): Adjust. * gcov.c (read_count_file): Adjust. (output_lines): Adjust. * libgcov.c (gcov_exit): Adjust. (__gcov_flush): Adjust. * mklibgcc.in (libgcc2_c_dep): Add gcov headers. * predict.c (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p, compute_frequency_function): Adjust profile_info use. * profile.c (struct counts_entry): Remove. (profile_info): Define here. (get_exec_counts): Adjust get_coverage_counts call. (compute_branch_probablilities): Remove find_counters_section call. (gen_edge_profiler): Adjust coverage_counter_ref call. * tracer.c (tail_duplicate): Adjust profile_info use. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65990 138bc75d-0d04-0410-961f-82ee72b054a4
* PR optimization/10339sayle2003-04-232-69/+166
| | | | | | | | | * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn directly instead of unsafely transforming call into a memcmp. (expand_builtin_strncmp): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65985 138bc75d-0d04-0410-961f-82ee72b054a4
* * alias.c (mark_constant_function): Check for constancy andsayle2003-04-232-4/+15
| | | | | | | | purity even of void functions. Update both the function decl and the cgraph RTL info with the results. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65981 138bc75d-0d04-0410-961f-82ee72b054a4
* * real.c (do_add): Change to return a bool indicating that thesayle2003-04-232-35/+59
| | | | | | | | | result of the operation may be inexact due to loss of precision. (do_multiply): Likewise. (do_divide): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65980 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2003-04-231-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65977 138bc75d-0d04-0410-961f-82ee72b054a4
* * dwarf2out.c (fde_table_allocated): Mark with GTY.ljrittle2003-04-232-31/+47
| | | | | | | | | | | | | | | | | | | | | | | | | (decl_die_table_allocated): Likewise. (abbrev_die_table_allocated): Likewise. (line_info_table_allocated): Likewise. (separate_line_info_table_allocated): Likewise. (pubname_table_allocated): Likewise. (arange_table_allocated): Likewise. (ranges_table_allocated): Likewise. (decl_die_table_in_use): Unconditionalize; mark with GTY. (abbrev_die_table_in_use): Likewise. (line_info_table_in_use): Likewise. (separate_line_info_table_in_use): Likewise. (pubname_table_in_use): Likewise. (arange_table_in_use): Likewise. (ranges_table_in_use): Likewise. (have_location_lists): Likewise. (emitcount): New GTY-marked static, moved... (maybe_emit_file): ...from here. (label_num): New GTY-marked static, moved... (gen_internal_sym): ...from here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65970 138bc75d-0d04-0410-961f-82ee72b054a4
* Strip carriage returnszack2003-04-223-50/+50
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65969 138bc75d-0d04-0410-961f-82ee72b054a4
* PR 8866rth2003-04-226-5/+34
| | | | | | | | | | | | | * rtl.h (MEM_NOTRAP_P): New. (MEM_COPY_ATTRIBUTES): Copy it. * rtlanal.c (may_trap_p): Check it. * expr.c (do_tablejump): Set it. * doc/rtl.texi (Flags): Document it. * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65967 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don'tkenner2003-04-222-5/+30
| | | | | | | set FRP on stack adjustment for outgoing args if frame_pointer_needed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65965 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/10446mmitchel2003-04-224-3/+17
| | | | | | | | | | | * search.c (lookup_fnfields_1): Handle empty slots in the method vector. PR c++/10446 * g++.dg/parse/crash3.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65962 138bc75d-0d04-0410-961f-82ee72b054a4
* * gthr-gnat.h, gthr-gnat.c: new sources for implementation ofkenner2003-04-227-6/+142
| | | | | | | | | | | --enable-threads=gnat. * Makefile.in: Add gthr-gnat.c to LIB2ADDEH. * configure.in: Add gnat to the list of thread packages * configure: Rebuild. * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65961 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/10428mmitchel2003-04-224-17/+62
| | | | | | | | | | | | * g++.dg/parse/elab1.C: New test. PR c++/10428 * decl.c (check_elaborated_type_specifier): New function, split out from ... (xref_tag): ... here. Use the new function in more places. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65956 138bc75d-0d04-0410-961f-82ee72b054a4
* * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.neil2003-04-222-5/+9
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65954 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove conflict indicator.dpatel2003-04-221-1/+0
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65953 138bc75d-0d04-0410-961f-82ee72b054a4
* * cpptrad.c (_cpp_replacement_text_len): Add check for macro ↵dpatel2003-04-224-2/+24
| | | | | | | | | | | | parameter count. (_cpp_copy_replacement_text): Same. * gcc.dg/cpp/trad/funlike-5.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65952 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-lex.c (c_lex): Handle CPP_OTHER differently.neil2003-04-226-29/+28
| | | | | | | | | | | | | | | * cppexp.c (_cpp_parse_expr): Similarly. * cpplex.c (SPELL_CHAR): Remove. (_cpp_lex_direct): Stray chars are saved as byte strings. (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't handle SPELL_CHAR. (cpp_avoid_paste): Update handling of CPP_OTHER. * cpplib.h: Spell CPP_OTHER like a number. (struct cpp_token): Remove member c. * cppmacro.c (stringify_arg): Update handling of CPP_OTHER. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65951 138bc75d-0d04-0410-961f-82ee72b054a4
* * gbl-ctors.h: Add special license exception.mmitchel2003-04-225-0/+36
| | | | | | | | | * libgcc2.h: Likewise. * tsystem.h: Likewise. * gcov-io.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65949 138bc75d-0d04-0410-961f-82ee72b054a4
* * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUITdje2003-04-224-1/+23
| | | | | | | | | | macro defaulting to original BRANCH_COST heuristic. * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document. * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65942 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-04-21 Andreas Tobler <a.tobler@schweiz.ch>andreast2003-04-222-1/+5
| | | | | | | * g++.dg/other/packed1.C: Fix dg options. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65941 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-04-22 Aldy Hernandez <aldyh@redhat.com>aldyh2003-04-223-1/+20
| | | | | | | | | * config/rs6000/t-spe: Merge in t-fprules into file. * config.gcc: Add t-spe to powerpc-eabispe. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65938 138bc75d-0d04-0410-961f-82ee72b054a4
* Fixed calls to putenv().jkj2003-04-222-2/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65937 138bc75d-0d04-0410-961f-82ee72b054a4
* .:nathan2003-04-224-1/+62
| | | | | | | | | * ginclude/stddef.h: Provide C++ safe offsetof. testsuite: * g++.dg/other/offsetof2.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65936 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix typo in comment.kenner2003-04-221-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65935 138bc75d-0d04-0410-961f-82ee72b054a4
* * function.c (purge_addressof_1): In (mem (addressof (reg))) caseamylaar2003-04-222-0/+35
| | | | | | | for reg notes, if there are no substitutions, just use a SUBREG. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65934 138bc75d-0d04-0410-961f-82ee72b054a4
* * rtti.c (throw_bad_typeid): Use build_cxx_call.mmitchel2003-04-222-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65933 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (calls.o): Depend on except.h.mmitchel2003-04-2216-50/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * calls.c: Include except.h. (emit_call_1): Call note_eh_region_may_contain_throw if appropriate. * except.c (eh_region): Add may_contain_throw. (expand_eh_region_end_cleanup): Do not include handler code when it cannot be reached. (note_eh_region_may_contain_throw): New function. * except.h (note_eh_region_may_contain_throw): New function. * call.c (build_over_call): Use build_cxx_call. (build_cxx_call): New method, split out of build_over_call. * cp-tree.h (language_function): Add can_throw. (build_cxx_call): Declare it. * decl.c (finish_function): If a function does not contain any calls to functions that can throw an exception, indicate that fact. * decl2.c (mark_used): Do not defer the instantiation of functions, if the current function does not throw. * optimize.c (maybe_clone_body): Copy TREE_NOTHROW to the clones. * pt.c (instantiate_decl): Make sure import_export_decl is called before emitting things. * rtti.c (throw_bad_cast): Use build_cxx_call. (build_dynamic_cast_1): Likewise. * typeck.c (build_function_call): Likewise. * g++.dg/template/recurse.C: Adjust location of error messages. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65929 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2003-04-221-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65928 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previousmmitchel2003-04-212-7/+10
| | | | | | | changes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65920 138bc75d-0d04-0410-961f-82ee72b054a4
* Refine last change.kenner2003-04-211-4/+15
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65915 138bc75d-0d04-0410-961f-82ee72b054a4
* * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restorekenner2003-04-212-7/+20
| | | | | | | | a number of conversions required for type consistency and previously stripped off by STRIP_NOPS. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65913 138bc75d-0d04-0410-961f-82ee72b054a4
* * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence forkenner2003-04-212-5/+10
| | | | | | | details of conflict handling. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65912 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-04-21 Aldy Hernandez <aldyh@redhat.com>aldyh2003-04-211-0/+7
| | | | | | | | * config/rs6000/rs6000.c (rs6000_override_options): No SPE means 64-bit long doubles. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65911 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-04-21 Aldy Hernandez <aldyh@redhat.com>aldyh2003-04-211-0/+5
| | | | | | | | * config/rs6000/rs6000.c (rs6000_override_options): No SPE means 64-bit long doubles. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65910 138bc75d-0d04-0410-961f-82ee72b054a4
* Revert hunks not part of last patch.kenner2003-04-211-16/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65908 138bc75d-0d04-0410-961f-82ee72b054a4
* * expmed.c (extract_bit_field): Reverse operands of && condition tokenner2003-04-213-19/+31
| | | | | | | | prevent a potential division by zero in the previously first branch. * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65907 138bc75d-0d04-0410-961f-82ee72b054a4
* commit two parts of my last patch that escaped, somehownathan2003-04-212-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65906 138bc75d-0d04-0410-961f-82ee72b054a4
* * calls.c (expand_call): Prevent sibcall optimization for calls tokenner2003-04-212-0/+9
| | | | | | | nested subprograms. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65904 138bc75d-0d04-0410-961f-82ee72b054a4
* * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect casekenner2003-04-212-7/+19
| | | | | | | when conversion overflows. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65900 138bc75d-0d04-0410-961f-82ee72b054a4
* * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.kenner2003-04-212-1/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65899 138bc75d-0d04-0410-961f-82ee72b054a4
* * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.kenner2003-04-212-13/+87
| | | | | | | | | (subrange_type_die): Likewise. (modified_type_die): Emit a subrange_type DIE for Ada subrange types. (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65898 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud