aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2002-08-06Mark __func__ with line number 0, to avoid confusing debuggers.Dale Johannesen2-0/+12
From-SVN: r56081
2002-08-06gcov.c: Tidy.Nathan Sidwell2-498/+482
* gcov.c: Tidy. (struct line_info, struct coverage): New structures. (gcov_file_name, gcov_file): Remove globals. (output_data): Take source file parameter. Fix memory leak. Break up into ... (init_line_info, output_line_info, make_gcov_file_name, accumulate_branch_counts): ... here. (calculate_branch_probs, function_summary): Adjust. (main): Adjust. (function_*): Remove global variables. From-SVN: r56080
2002-08-06* dwarf2out.c: Remove unused macros.Neil Booth2-17/+4
From-SVN: r56079
2002-08-06* function.c (TRAMPOLINE_ALIGNMENT): Always defined.Neil Booth2-6/+5
From-SVN: r56078
2002-08-06cppinit.c (struct lang_flags): Rename trigraphs std.Neil Booth8-12/+81
* cppinit.c (struct lang_flags): Rename trigraphs std. (set_lang): Update. * cpplib.h (struct cpp_options): New member std. * cppmacro.c (_cpp_builtin_macro_text): Use std. (collect_args): Flag whether to swallow a possible future comma pasted with varargs. (replace_args): Use this flag. * doc/cpp.texi: Update varargs extension documentation. testsuite: * gcc.dg/cpp/vararg3.c, gcc.dg/cpp/vararg4.c: New tests. From-SVN: r56077
2002-08-06* config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.Jakub Jelinek2-1/+5
From-SVN: r56075
2002-08-06Fix ChangeLog entry.Jakub Jelinek1-3/+2
From-SVN: r56073
2002-08-06i386.c (x86_field_alignment): Apply min for all MODE_INT and MODE_CLASS_INT ↵Jakub Jelinek4-1/+93
modes. * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT and MODE_CLASS_INT modes. * g++.dg/abi/bitfield3.C: New test. From-SVN: r56072
2002-08-06config.gcc (*-*-linux*): Default to --enable-threads=posix if no ↵Jakub Jelinek2-48/+20
--{enable,disable}-threads is given to... * config.gcc (*-*-linux*): Default to --enable-threads=posix if no --{enable,disable}-threads is given to configure. (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*, x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*, powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*, s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*): Remove thread_file setting here. From-SVN: r56071
2002-08-06* doc/install.texi (Binaries): Update Bull Freeware URL.David Edelsohn2-1/+5
From-SVN: r56069
2002-08-06* g77.texi (Top): Rename Index to Keyword Index.Gerald Pfeifer2-3/+7
From-SVN: r56068
2002-08-06* doc/gcc.texi (Top): Rename Index to Keyword Index.Gerald Pfeifer2-3/+7
From-SVN: r56067
2002-08-06Add hppa-openbsd targetFederico G. Schwindt2-0/+5
From-SVN: r56066
2002-08-06Daily bump.GCC Administrator7-7/+7
From-SVN: r56065
2002-08-05gcov.c (output_data): Round to % to nearest, tweak formatting.Nathan Sidwell6-100/+94
gcc: * gcov.c (output_data): Round to % to nearest, tweak formatting. testsuite: * lib/gcov.exp: Tweak expected line formats. * gcc.misc-tests/gcov8.c: New test. * gcc.misc-tests/gcov8.x: New flags. From-SVN: r56059
2002-08-05fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one of the ↵Jakub Jelinek4-8/+38
operands into MINUS_EXPR if... * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one of the operands into MINUS_EXPR if code is PLUS_EXPR. * gcc.c-torture/execute/20020805-1.c: New test. From-SVN: r56058
2002-08-05* consistency.vlad/layout/endian.c: Include string.h.Jakub Jelinek2-0/+5
From-SVN: r56057
2002-08-05config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.oDouglas B Rupp5-130/+18
2002-08-05 Douglas B Rupp <rupp@gnat.com> * config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o * config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT, drectve_section): Define. * config/i386/t-interix: Replace interix.o rule with winnt.o. * config/i386/interix.c: Remove. From-SVN: r56056
2002-08-05Index: ChangeLogGeoffrey Keating18-24/+19
2002-08-05 Geoffrey Keating <geoffk@redhat.com> * attribs.c: Don't include obstack.h. * builtins.c: Likewise. * cfganal.c: Likewise. * cfgbuild.c: Likewise. * cfgcleanup.c: Likewise. * emit-rtl.c: Likewise. * loop.c: Likewise. * stmt.c: Likewise. Index: cp/ChangeLog 2002-08-05 Geoffrey Keating <geoffk@redhat.com> * class.c: Don't include obstack.h. (popclass): * decl2.c: Delete bogus comment. * error.c: Don't include obstack.h. * except.c: Likewise. (dump_type): Correct comment. * method.c: Don't include obstack.h. * tree.c: Likewise. Index: java/ChangeLog 2002-08-05 Geoffrey Keating <geoffk@redhat.com> * mangle_name.c: Don't include obstack.h twice. * xref.c: Don't include obstack.h. From-SVN: r56055
2002-08-05* Makefile.in (s-gtype): Re-add dependency on $(GTFILES).Geoffrey Keating2-1/+14
From-SVN: r56054
2002-08-05* doc/c-tree.texi (Expression trees): Document VA_ARG_EXPRGabriel Dos Reis2-0/+11
From-SVN: r56050
2002-08-05Add missing fileBernd Schmidt1-0/+93
From-SVN: r56049
2002-08-05invoke.texi: Improve description of -fno-finite-math-only flag.Toon Moene2-4/+8
2002-08-05 Toon Moene <toon@moene.indiv.nluug.nl> * invoke.texi: Improve description of -fno-finite-math-only flag. From-SVN: r56048
2002-08-05Daily bump.GCC Administrator7-7/+7
From-SVN: r56047
2002-08-04invoke.texi: Remove duplicated paragraph describing TARGET_SWITCHES.Chris Demetriou2-5/+5
2002-08-04 Chris Demetriou <cgd@broadcom.com> * doc/invoke.texi: Remove duplicated paragraph describing TARGET_SWITCHES. From-SVN: r56040
2002-08-05Fix PR/2213Gabriel Dos Reis4-0/+33
cp/ Fix PR/2213 * cvt.c (cp_convert_to_pointer): Reject conversions from integral expressions to pointer-to-data-member of pointer-to-member-functions. testsuite/ * g++.dg/other/conversion1.C: New test. From-SVN: r56039
2002-08-05install.texi (Installing GCC): Refer to buildstat.html, rather than listing ↵Mark Mitchell1-5/+1
version-specific build status files. * doc/install.texi (Installing GCC): Refer to buildstat.html, rather than listing version-specific build status files. From-SVN: r56038
2002-08-05slice_array.h (_DEFINE_VALARRAY_OPERATOR): Instantiate with new function ↵Gabriel Dos Reis5-279/+294
objects. PR/7491 * include/bits/slice_array.h(_DEFINE_VALARRAY_OPERATOR): Instantiate with new function objects. * include/bits/mask_array.h (_DEFINE_VALARRAY_OPERATOR): Likewise. Reformat. Uglify. * include/bits/gslice_array.h: Likewise. * include/bits/indirect_array.h: Likewise. From-SVN: r56036
2002-08-04Index: ChangeLogGeoffrey Keating38-154/+140
2002-08-04 Geoffrey Keating <geoffk@redhat.com> * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H). * collect2.h (permanent_obstack): Delete declaration. * collect2.c (permanent_obstack): Delete definition. (main): Don't initialise permanent_obstack. Use xstrdup instead. * expr.c: Don't include obstack.h. (permanent_obstack): Delete declaration. * function.c: Don't include obstack.h. (permanent_obstack): Delete declaration. * integrate.c: Don't include obstack.h. (function_maybepermanent_obstack): Delete declaration. * print-tree.c (debug_tree): Use x*alloc not permalloc. * sdbout.c (gen_fake_label): Use x*alloc not permalloc. * tlink.c (pfgets): Use xstrdup not permanent_obstack. * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree. * tree.h: Rename init_obstacks to init_ttree. Remove declarations of permalloc, expralloc, perm_calloc. * tree.c (permanent_obstack): Delete definition. (init_ttree): Rename from init_obstacks. (permalloc): Delete. (perm_calloc): Delete. (dump_tree_statistics): Don't print information about permanent_obstack. * varasm.c (assemble_start_function): Use xstrdup instead of permalloc/strcpy. (assemble_variable): Likewise. * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of permalloc. (unicosmk_add_extern): Likewise. * config/c4x/c4x.c (c4x_external_ref): Likewise. (c4x_global_label): Likewise. * config/frv/frv.c (frv_encode_section_info): Likewise. * config/i386/winnt.c (i386_pe_record_external_function): Likewise. (i386_pe_record_exported_symbol): Likewise. * config/mips/mips.c (mips_output_external): Likewise. (mips_output_external_libcall): Likewise. * config/pa/pa.c: (permanent_obstack): Delete declaration. (output_call): Use ggc_strdup instead of allocating on permanent_obstack. * config/romp/romp.c: Include ggc.h. (get_symref): Don't declare permanent_obstack, use ggc_strdup intead of permanent_obstack. * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat instead of permalloc. * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc instead of permalloc * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat instead of permalloc. * config/vax/vax.c (vms_check_external): Use xmalloc instead of permalloc. Index: cp/ChangeLog 2002-08-04 Geoffrey Keating <geoffk@redhat.com> * cvt.c (ocp_convert): Delete obsolete code. * parse.y (permanent_obstack): Delete declaration. * pt.c (permanent_obstack): Delete declaration. * repo.c (permanent_obstack): Delete declaration. (open_repo_file): Use xmalloc instead of permanent_obstack. (init_repo): Use xstrdup instead of permanent_obstack. Index: java/ChangeLog 2002-08-04 Geoffrey Keating <geoffk@redhat.com> * class.c: (permanent_obstack): Delete declaration. * constants.c: (permanent_obstack): Delete declaration. * except.c: (permanent_obstack): Delete declaration. * expr.c: (permanent_obstack): Delete declaration. * jcf-parse.c: (permanent_obstack): Delete declaration. (saveable_obstack): Delete declaration. * parse.h: (permanent_obstack): Delete declaration. * typeck.c: (permanent_obstack): Delete declaration. From-SVN: r56035
2002-08-04Remove one of the files checked in previouslyBernd Schmidt2-257/+3
From-SVN: r56033
2002-08-04configure.in (mips*-*-linux*): Don't skip target-libffi.H.J. Lu2-1/+4
2002-08-04 H.J. Lu (hjl@gnu.org) * configure.in (mips*-*-linux*): Don't skip target-libffi. From-SVN: r56030
2002-08-04Add the FRV portBernd Schmidt23-0/+22549
From-SVN: r56029
2002-08-04gcov.c (bb_file_time): New static variable.Nathan Sidwell3-324/+441
* gcov.c (bb_file_time): New static variable. (object_directory): May also be object file. (preserve_paths): New static variable. (print_usage): Adjust. (options): Adjust. (process_args): Adjust. (open_files): Simplify. Cope when OBJECT_DIRECTORY is an object file. Find modification date on bb file. (read_profile): Don't rewind a NULL file. (format_hwint): New static function. (function_summary): Use format_hwint. (output_data): SOURCE_FILE_NAME is never relative to OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name mangling. Adjust output format to make it more machine readable. * doc/gcov.texi: Document & clarify semantics. From-SVN: r56028
2002-08-04gcc-common.texi (version-GCC): Increase to 3.3.Joseph Myers6-3/+15
* doc/include/gcc-common.texi (version-GCC): Increase to 3.3. java: * gcj.texi (version-gcc): Increase to 3.3. f: * root.texi (version-gcc): Increase to 3.3. From-SVN: r56026
2002-08-04gcc.c (cc1_options): Pass output file as auxbase when appropriate.Nathan Sidwell7-20/+87
* gcc.c (cc1_options): Pass output file as auxbase when appropriate. * profile.c (init_branch_prob): FILENAME has already had ending stripped. * final.c (end_final): Likewise. * toplev.c (aux_base_name): New global. (compile_file): Pass aux_base_name to init init_branch_prob and end_final. (independent_decode_option, case 'a'): New auxinfo options. (case 'd'): Protect against mising basename. (do_compile): Initialize aux_base_name. * toplev.h (aux_base_name): New global. * doc/invoke.texi: Adjust documentation. From-SVN: r56025
2002-08-04i386.c (x86_field_alignment): Remove duplicate test of TARGET_ALIGN_DOUBLE.Nathan Sidwell2-3/+6
* config/i386/i386.c (x86_field_alignment): Remove duplicate test of TARGET_ALIGN_DOUBLE. From-SVN: r56024
2002-08-04cp-tree.h (VF_DERIVED_VALUE): Remove.Nathan Sidwell3-13/+13
* cp-tree.h (VF_DERIVED_VALUE): Remove. * class.c (finish_struct_1): Use VF_BINFO_VALUE not VF_DERIVED_VALUE. From-SVN: r56023
2002-08-04diagnostic.c (inform): New function.Gabriel Dos Reis3-0/+20
* diagnostic.c (inform): New function. * diagnostic.h (inform): Declare. From-SVN: r56022
2002-08-04re PR c++/7470 (Vtable: virtual function pointers not in declaration order)Nathan Sidwell2-124/+66
PR 7470. C++ ABI change - vfunc ordering. * class.c (add_virtual_function): Remove. (dfs_modify_all_vtables): Take list of all declared virtuals. Assign all that are not in primary base. (check_for_override): Adjust comments. (create_vtable_ptr): Take single list of virtuals. Build chain of declared virtuals here. (layout_class_type): Take single list of virtuals. Adjust. (finish_struct_1): Keep virtuals on single list. Adjust. From-SVN: r56021
2002-08-04Daily bump.GCC Administrator7-7/+7
From-SVN: r56019
2002-08-04* gcc.dg/builtins-1.c: New testcase.Roger Sayle2-0/+32
From-SVN: r56012
2002-08-03rs6000.md (movsi_internal1): Add nop mnemonic.David Edelsohn4-14/+41
* config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic. (movhi_internal): Same. (movqi_internal): Same. (movdi_internal64): Same. * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405. * config/rs6000/xcoff.h (SKIP_ASM_OP): Define. (ASM_OUTPUT_SKIP): Use it. SIZE unsigned. (COMMON_ASM_OP): Define. (ASM_OUTPUT_ALIGNED_COMMON): Use it. SIZE unsigned. Use ALIGN parameter. (LOCAL_COMMON_ASM_OP): Define. (ASM_OUTPUT_LOCAL): Use it. SIZE unsigned. From-SVN: r56011
2002-08-03builtins.def: Define new builtin functions exp...Roger Sayle8-7/+145
* builtins.def: Define new builtin functions exp, expf, expl, log, logf and logl (and their __builtin_* variants). * optabs.h (enum optab_index): Add new OTI_exp and OTI_log. Define exp_optab and log_optab. * optabs.c (init_optans): Initialize exp_optab and log_optab. * genopinit.c (optabs): Implement exp_optab and log_optab using exp?f2 and log?f2 patterns. * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP* and BUILT_IN_LOG* using exp_optab and log_optab respectively. (expand_builtin): Ignore the new builtins (and all cos and sin variants) when not optimizing. Expand new builtins via expand_builtin_mathfn when flag_unsafe_math_optimizations. * doc/extend.texi: Document new exp and log builtins. * doc/md.texi: Document new exp?f2 and log?f2 patterns (and previously undocumented cos?f2 and sin?f2 patterns). From-SVN: r56010
2002-08-03explow.c (int_expr_size): New fn.Jason Merrill4-1/+31
* explow.c (int_expr_size): New fn. * expr.c (expand_expr) [CONSTRUCTOR]: Use it. * expr.h: Declare it. From-SVN: r56009
2002-08-03valarray_name_lookup.cc: Rename from ↵Gabriel Dos Reis2-0/+3
testsuite/26_numerics/valarray_name_lookup.C * testsuite/26_numerics/valarray_name_lookup.cc: Rename from testsuite/26_numerics/valarray_name_lookup.C From-SVN: r56008
2002-08-03Daily bump.GCC Administrator7-7/+7
From-SVN: r56007
2002-08-02valarray_array.h (_DEFINE_ARRAY_FUNCTION): Use our object function surrogates.Gabriel Dos Reis5-685/+451
* include/bits/valarray_array.h (_DEFINE_ARRAY_FUNCTION): Use our object function surrogates. * include/bits/valarray_meta.h (__shift_left): Fix typo. (_BinFunClos<>): Remove. (_BinFunBase<>): Likewise. (_BinFunBase1<>):Likewise. (_BinFunBase2<>): Likewise. (_DEFINE_EXPR_RELATIONAL_OPERATOR): Likewise. (_DEFINE_EXPR_UNARY_OPERATOR): Adjust definition. (_DEFINE_EXPR_BINARY_OPERATOR): Likewise. (_DEFINE_EXPR_BINARY_FUNCTION): Likewise. * include/std/std_valarray.h: Dont #include <functional> anymore. (_Bitwise_or<>, _Bitwise_and<>, _Bitwise_xor<>, _Shift_left<>, _Shift_right<>): Remove. (_DEFINE_VALARRAY_AUGMENTED_ASSIGNMENT): Adjust instantiation. (_DEFINE_BINARY_OPERATOR): Tweak definition. (_DEFINE_LOGICAL_OPERATOR): Remove. * testsuite/26_numerics/valarray_name_lookup.C (main): Add more tests. From-SVN: r56001
2002-08-02init.c (build_member_call): Use build_new_method_call, not build_method_call.Mark Mitchell4-6/+41
* init.c (build_member_call): Use build_new_method_call, not build_method_call. * g++.dg/inherit/access3.C: New test. From-SVN: r56000
2002-08-02Makefile.in (gengtype-lex.o, [...]): Add path to gengtype-* dependencies.Krister Walfridsson2-2/+7
* Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to gengtype-* dependencies. From-SVN: r55999
2002-08-02config.gcc (mips*-*-linux*): Fix ordering of tm_file.Eric Christopher3-4/+12
2002-08-02 Eric Christopher <echristo@redhat.com> * config.gcc (mips*-*-linux*): Fix ordering of tm_file. * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change #ifndef to #undef. (TARGET_MEM_FUNCTIONS): Define instead of define to 1. From-SVN: r55998