aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-12-25Daily bump.GCC Administrator1-1/+1
From-SVN: r75014
2003-12-24avr.c: Fix comment formatting.Kazu Hirata3-23/+28
* config/avr/avr.c: Fix comment formatting. * config/avr/avr.md: Likewise. From-SVN: r75011
2003-12-24re PR target/12721 (ICE when building a cross compiler for avr-elf)Kazu Hirata3-34/+20
PR target/12721. * config/avr/avr.c: Include ggc.h. (tmp_reg_rtx): Declare with GTY. (zero_reg_rtx): Likewise. (ldi_reg_rtx): Remove. (avr_override_options): Initialize zero_reg_rtx and ldi_reg_rtx. (avr_init): Remove. Include gt-avr.h. * config/avr/avr.h (LDI_REG_REGNO): Remove. Remove externs for tmp_reg_rtx, zero_reg_rtx, and ldi_reg_rtx. From-SVN: r75010
2003-12-24* doc/md.texi: Document PowerPC vector register constraint letter.David Edelsohn2-1/+8
From-SVN: r75009
2003-12-24calls.c (expand_call): Recognize calls to "sqrt" and create corresponding notes.Mark Mitchell9-21/+77
* calls.c (expand_call): Recognize calls to "sqrt" and create corresponding notes. * g++.dg/bprob/bprob.exp: Load target-supports.exp * g77.dg/bprob/bprob.exp: Likewise. * gcc.misc-tests/bprob.exp: Likewise. * gcc.dg/builtins-18.c: Use builtins-config.h. Do not test float variants on systems where the library does not provide that functionality. * gcc.dg/builtins-20.c: Use builtins-config.h. * gcc.dg/builtins-config.h: New file. From-SVN: r75003
2003-12-24mips.c (override_options): Use `inform' instead of `warning' for -g -mabi=32 ↵Kaveh R. Ghazi3-8/+12
and native assembler. * config/mips/mips.c (override_options): Use `inform' instead of `warning' for -g -mabi=32 and native assembler. * config/mips/t-iris6 (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS): Don't pass -Wno-error. From-SVN: r75002
2003-12-23function.c (assign_parms): Update max_parm_reg and parm_reg_stack_loc when ↵David Edelsohn2-0/+24
adding new parm reg. * function.c (assign_parms): Update max_parm_reg and parm_reg_stack_loc when adding new parm reg. From-SVN: r75001
2003-12-24gnat_ug.texi: Force a CVS commit by updating copyright.Kelley Cook6-5/+13
2003-12-23 Kelley Cook <kcook@gcc.gnu.org> * gnat_ug.texi: Force a CVS commit by updating copyright. * gnat_ug_vxw.texi: Regenerate. * gnat_ug_wnt.texi: Regenerate. * gnat_ug_vms.texi: Regenerate. * gnat_ug_unx.texi: Regenerate. From-SVN: r75000
2003-12-24Daily bump.GCC Administrator1-1/+1
From-SVN: r74998
2003-12-24Makefile.in (OBJS-common): Remove dwarfout.o.Mark Mitchell24-6482/+41
* Makefile.in (OBJS-common): Remove dwarfout.o. (dwarfout.o): Remove. * common.opt: Remove -gdwarf, -gdwarf+. * defaults.h (PREFERRED_DEBUGGING_TYPE): Do not check for DWARF_DEBUGGING_INFO. * dwarf2out.c: Fix typo in comment. * dwarfout.c: Remove. * opts.c (common_handle_option): Remove OPT_gdwarf, OPT_gdwarf_. * toplev.c (process_options): Remove check for DWARF_DEBUGGING_INFO. * config/elfos.h (DWARF_DEBUGGING_INFO): Do not #define it or #undef it. * config/netware.h (DWARF_DEBUGGING_INFO): Likewise. * config/ptx4.h (DWARF_DEBUGGING_INFO): Likewise. * config/vxworks.h (DWARF_DEBUGGING_INFO): Likewise. * config/alpha/unicosmk.h (DWARF_DEBUGGING_INFO): Likewise. * config/arc/arc.h (DWARF_DEBUGGING_INFO): Likewise. * config/i386/sco5.h (DWARF_DEBUGGING_INFO): Likewise. * config/i386/x86-64.h (DWARF_DEBUGGING_INFO): Likewise. * config/m32r/m32r.h (DWARF_DEBUGGING_INFO): Likewise. * config/mcore/mcore-elf.h (DWARF_DEBUGGING_INFO): Likewise. * config/sparc/linux64.h (DWARF_DEBUGGING_INFO): Likewise. * config/sparc/liteelf.h (DWARF_DEBUGGING_INFO): Likewise. * config/sparc/sol26-sld.h (DWARF_DEBUGGING_INFO): Likewise. * config/sparc/sp86x-elf.h (DWARF_DEBUGGING_INFO): Likewise. * doc/invoke.texi: Do not mention -gdwarf, -gdwarf-1, -gdwarf-1+, or -gdwarf+. * doc/tm.texi: Likewise. From-SVN: r74996
2003-12-23gcc-dg.exp (dg-require-profiling): New function.Mark Mitchell9-18/+53
* lib/gcc-dg.exp (dg-require-profiling): New function. * lib/target-supports.exp (check_profiling_available): Likewise. * g++.dg/bprob/bprob.exp: Use check_profiling_available. * g77.dg/bprob/bprob.exp: Likewise. * gcc.misc-tests/bprob.exp: Likewise. * g++.old-deja/g++.law/profile1.C: Use dg-require-profiling. * gcc.dg/20021014-1.c: Likewise. * gcc.dg/nest.c: Likewise. From-SVN: r74995
2003-12-23java1.C: Use -fdollars-in-identifiers when compiling.Mark Mitchell4-3/+10
* g++.dg/lookup/java1.C: Use -fdollars-in-identifiers when compiling. * g++.dg/lookup/java2.C: Likewise. * gcc.dg/cpp/lexident.c: Likewise. From-SVN: r74992
2003-12-23* config/ns32k/ns32k.c: Convert to ISO-C.Kazu Hirata2-69/+35
From-SVN: r74989
2003-12-2320020604-1.c: XFAIL on H8 if -mn is given.Kazu Hirata4-3/+10
* gcc.c-torture/compile/20020604-1.c: XFAIL on H8 if -mn is given. * gcc.c-torture/compile/961203-1.c: Likewise. * gcc.c-torture/compile/980506-1.c: Likewise. From-SVN: r74981
2003-12-23ia64.c (ia64_va_arg): Pass pointer for variable-sized type through ↵Zack Weinberg6-35/+91
convert_memory_address. gcc: * config/ia64/ia64.c (ia64_va_arg): Pass pointer for variable-sized type through convert_memory_address. (ia64_in_small_data_p): Always return false for FUNCTION_DECLs. gcc/testsuite: * lib/gcc-dg.exp (dg-prune-output): New annotation. (additional_prunes): New global. (gcc-dg-prune): Handle additional per-test pruning. (dg-test): Clear additional_prunes between tests. * gcc.c-torture/compile/920625-1.c: Remove xfail. Use dg-prune-output to avoid spurious failures from assembler complaining about nonexistent WAW violations. * gcc.c-torture/compile/981223-1.c: Remove dg-options line. Use dg-prune-output to avoid spurious failures from assembler warning about Itanium B-step errata. From-SVN: r74980
2003-12-23common.opt (fprofile-generate,fprofile-use): Add.Jan Hubicka5-1/+74
* common.opt (fprofile-generate,fprofile-use): Add. * gcc.c (LINK_COMMAND_SPEC): Arrange -fprofile-generate to imply -lgcov * opts.c (profile_arc_flag_set, flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set, flag_value_profile_transformations_set, flag_peel_loops_set): New static variables. (common_handle_option): Deal with -fprofile-generate/-fprofile-use * invoke.texi (-fprofile-generate, -fprofile-use): Describe. From-SVN: r74976
2003-12-23c-common.c (flag_abi_version): Default to 2.Mark Mitchell22-34/+85
* c-common.c (flag_abi_version): Default to 2. * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_ABI_VERSION uniformly for versions above 2. * doc/invoke.texi: Update documentation for -fabi-version. * cp-lang.c (cp_expr_size): Return zero for empty classes. * cp-tree.h (warn_if_uknown_interface): Remove unused function. * decl2.c (warn_if_unknown_interface): Likewise. * g++.dg/abi/macro0.C: New test. * g++.dg/abi/macro1.C: Likewise. * g++.dg/abi/macro2.C: Likewise. * g++.dg/abi/bitfield5.C: Add explicit -fabi-version=1 option. * g++.dg/abi/bitfield7.C: Likewise. * g++.dg/abi/dtor2.C: Likewise. * g++.dg/abi/mangle11.C: Likewise. * g++.dg/abi/mangle12.C: Likewise. * g++.dg/abi/mangle14.C: Likewise. * g++.dg/abi/mangle17.C: Likewise. * g++.dg/abi/vbase10.C: Likewise. * g++.dg/abi/vbase14.C: Likewise. * g++.dg/template/qualttp17.C: Likewise. From-SVN: r74973
2003-12-23re PR c/11995 (Error recovery problem after invalid labelled declaration in ↵Andrew Pinski2-0/+16
c99 mode) 2003-12-21 Andrew Pinski <pinskia@physics.uc.edu> PR c/11995 * gcc.dg/20031223-1.c: New test. From-SVN: r74970
2003-12-23re PR c++/13387 (assignment to base class corrupts subclass)Nathan Sidwell2-2/+8
PR c++/13387 * cp-lang.c (cxx_get_alias_set): Correct logic for a base type. From-SVN: r74968
2003-12-23rs6000.md: Change many instances of '!Geoffrey Keating2-102/+51
* config/rs6000/rs6000.md: Change many instances of '! TARGET_POWERPC64' to 'TARGET_32BIT' when the pattern being guarded was guarded only because it changed CR0 or the carry bit in XER. From-SVN: r74966
2003-12-23re PR rtl-optimization/13394 (noreturn attribute ignored on recursive ↵Eric Botcazou4-4/+61
invokation) PR optimization/13394 * toplev.c (rest_of_compilation): Move call to check_function_return_warnings right after the sibcall optimization pass. From-SVN: r74961
2003-12-23re PR c/13382 (Type information for const pointer disappears during ↵Eric Botcazou4-4/+32
optimisation.) PR c/13382 * c-typeck.c (convert_for_assignment): When converting from integral type to pointer type, always call convert. From-SVN: r74960
2003-12-23* doc/invoke.texi: Deprecate -fwritable-strings.Mark Mitchell2-0/+4
From-SVN: r74959
2003-12-23Daily bump.GCC Administrator1-1/+1
From-SVN: r74957
2003-12-22re PR c++/12862 (Conflicts Between typedefs/enums and Namespace Member ↵Mark Mitchell15-205/+61
Declarations) * c-common.c (flag_external_templates): Remove. (flag_alt_external_templates): Likewise. * c-common.h (flag_external_templates): Remove. (flag_alt_external_templates): Likewise. * c-opts.c (c_common_handle_option): Unsupport -falt-external-templates and -ftemplates. * doc/invoke.texi: Remove mention of -fexternal-templates and -falt-external-templates. * decl.c (start_function): Do not check flag_alt_external_templates or flag_external_templates. * decl2.c (warn_if_unknown_interface): Likewise. * lex.c (extract_interface_info): Likewise. * pt.c (lookup_template_class): Likewise. PR c++/12862 * name-lookup.c (pushdecl): Look up all namespace-scope entities in their corresponding namespace. * g++.old-deja/g++.jason/template18.C: Remove. * g++.old-deja/g++.jason/template37.C: Likewise. PR c++/12862 * g++.dg/lookup/ns1.C: New test. From-SVN: r74954
2003-12-22re PR target/13466 (-mpowerpc64 causes ICE)Andrew Pinski2-2/+3
2003-12-22 Andrew Pinski <pinskia@physics.uc.edu> PR target/13466 * config.gcc (powerpc-*-darwin): Remove overridden value of need_64bit_hwint. From-SVN: r74952
2003-12-22re PR c++/12397 (two-stage name lookup argument shadowed by global type)Mark Mitchell4-0/+30
PR c++/12397 * typeck.c (finish_class_member_access_expr): Don't tree IDENTIFIER_NODEs as non-dependent expressions. PR c++/12397 * g++.dg/template/lookup3.C: New test. From-SVN: r74949
2003-12-22re PR c++/5050 (template instantiation depth exceeds/maybe recursion problem)Andrew Pinski6-28/+30
2003-12-22 Andrew Pinski <pinskia@physics.uc.edu> PR c++/5050 * tree.c (cp_start_inlining): Remove. (cp_end_inlining): Remove. * cp-lang.c (LANG_HOOKS_TREE_INLINING_START_INLINING): Do not define. (LANG_HOOKS_TREE_INLINING_END_INLINING): Do not define. * cp-tree.h (cp_start_inlining): Do not declare. (cp_end_inlining): Do not declare. PR c++/5050 * g++.dg/template/recurse1.C: New test. From-SVN: r74947
2003-12-22emit-rtl.c (copy_rtx_if_shared): Add comment about its use of ↵Andrew Pinski2-1/+9
copy_rtx_if_shared_1. * emit-rtl.c (copy_rtx_if_shared): Add comment about its use of copy_rtx_if_shared_1. (copy_rtx_if_shared_1): Add comment about what the function does. From-SVN: r74945
2003-12-22darwin-misaligned.c: New test.Fariborz Jahanian1-0/+4
2003-12-22 Fariborz Jahanian <fjahanian@apple.com> * gcc.dg/darwin-misaligned.c: New test. From-SVN: r74942
2003-12-22c-decl.c (finish_function): Change order of checks.Andrew Pinski2-3/+9
2003-12-22 Andrew Pinski <pinskia@physics.uc.edu> * c-decl.c (finish_function): Change order of checks. (c_expand_body): Likewise. From-SVN: r74941
2003-12-22re PR c++/12479 ([3.4 only] System header should not cause -pedantic to ↵Mark Mitchell5-1/+19
error about "extra `;'") PR c++/12479 * parser.c (cp_parser_declaration_seq_opt): Only issue "extra ;" pedwarn when not in a system header. PR c++/12479 * g++.dg/parse/semicolon1.C: New test. * g++.dg/parse/semicolon1.h: Likewise. From-SVN: r74940
2003-12-22Test to check for a valid memory reference of a misaligned DImode memoryFariborz Jahanian1-0/+32
with -O3 -mpowerpc64. From-SVN: r74939
2003-12-22Correct check for legitimate offset when addressing a DImode memory inFariborz Jahanian1-0/+6
-mpowerpc64. From-SVN: r74938
2003-12-22Check for a legitimate offset when addressing DImode memory with -mpowerpc64.Fariborz Jahanian1-2/+2
From-SVN: r74937
2003-12-22reload1.c: Add reg_reloaded_call_part_clobbered.Dale Johannesen2-4/+35
2003-12-22 Dale Johannesen <dalej@apple.com> * reload1.c: Add reg_reloaded_call_part_clobbered. (reload_as_needed): Use it. (forget_old_reloads_1): Ditto. (emit_reload_insns): Ditto. From-SVN: r74936
2003-12-22re PR rtl-optimization/12828 (-floop-optimize is unstable on PowerPC (float ↵Dale Johannesen3-1/+43
to int conversion problem)) 2003-12-21 Dale Johannesen <dalej@apple.com> PR optimization/12828 * loop.c: Add find_regs_nested to look inside CLOBBER(MEM). (scan_loop): Call it. * regclass.c (reg_scan_mark_regs): Look inside CLOBBER(MEM). From-SVN: r74935
2003-12-22re PR c/9163 (ICE in genrtl_compound_stmt at c-semantics.c:776 with c99 mode ↵Andrew Pinski4-5/+42
and checking enabled) 2003-12-22 Andrew Pinski <pinskia@physics.uc.edu> PR c/9163 * c-decl.c (poplevel): Only set DECL_INITIAL of a current function if it is non-null. (finish_function): Check for error_mark_node or null on DECL_RESULT and DECL_RESULT of fndecl. (c_expand_body): Only expand when DECL_INITIAL of fndecl is not error_mark_node and not null. 2003-12-22 Andrew Pinski <pinskia@physics.uc.edu> PR c/9163 * gcc.dg/20031222-1.c: New test. From-SVN: r74934
2003-12-22re PR c++/13438 (internal compiler error: tree check: expected ↵Mark Mitchell6-22/+19
identifier_node, have integer_cst in c_parse_error at c-common.c:5921) PR c++/13438 * cp-tree.h (cp_tree_index): Remove CPTI_RECORD_TYPE, CPTI_UNION_TYPE, CPTI_ENUM_TYPE. (record_type_node): Remove. (union_type_node): Likewise. (enum_type_node): Likewise. * decl.c: Remove mention of above tree nodes in comment. * lex.c (cxx_init): Do not assign to record_type_node, union_type_node, or enum_type_node. Simplify handling of class_type_node. PR c++/13438 * g++.dg/parse/error8.C: New test. From-SVN: r74931
2003-12-21Patch from Dan NicolaescuDan Nicolaescu9-308/+423
* rtl.h (dump_rtx_statistics): Declare it. * rtl.c (rtx_alloc_counts, rtx_alloc_sizes, rtvec_alloc_counts, rtx_alloc_sizes): New static vars. (rtx_alloc, rtvec_alloc): Update them. (dump_rtx_statistics): New function. * toplev.c (finalize): Call it. * ggc-page.c (struct globals): Fix comments. Add new member total_allocated_per_order. (ggc_alloc): Keep track of the total allocated memory. (ggc_print_statistics): Clarify message. Print total allocated memory stats. * configure.in (gather-detailed-mem-stats): New flag. * configure: Regenerate. * config.in: Regenerate. * doc/install.texi (Configuration): Document --enable-gather-detailed-mem-stats. From-SVN: r74930
2003-12-22re PR c++/11554 (Warning about reordering of initializers doesn't mention ↵Mark Mitchell4-0/+20
location of constructor) PR c++/11554 * init.c (sort_mem_initializers): Add warning. PR c++/11554 * testsuite/g++.dg/warn/ctor-init-1.C: New test. From-SVN: r74926
2003-12-22system.h (CONVERT_HARD_REGISTER_TO_SSA_P): Poison.Kazu Hirata3-6/+7
* system.h (CONVERT_HARD_REGISTER_TO_SSA_P): Poison. * config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Remove. From-SVN: r74925
2003-12-2220020910-1.c: Disable if __INT_MAX is too small.Kazu Hirata14-7/+126
* gcc.c-torture/compile/20020910-1.c: Disable if __INT_MAX is too small. * gcc.c-torture/compile/930217-1.c: Likewise. * gcc.c-torture/compile/930513-1.c: Likewise. * gcc.c-torture/execute/920908-2.c: Likewise. * gcc.c-torture/execute/921204-1.c: Likewise. * gcc.c-torture/execute/930621-1.c: Likewise. * gcc.c-torture/execute/930630-1.c: Likewise. * gcc.c-torture/execute/931031-1.c: Likewise. * gcc.c-torture/execute/980602-2.c: Likewise. * gcc.c-torture/execute/comp-goto-1.c: Likewise. * gcc.c-torture/execute/compndlit-1.c: Likewise. * gcc.c-torture/execute/extzvsi.c: Likewise. * gcc.c-torture/unsorted/ext.c: Likewise. From-SVN: r74923
2003-12-22Daily bump.GCC Administrator1-1/+1
From-SVN: r74921
2003-12-21hpux.h (TARGET_OS_CPP_BUILTINS): Define _ILP32 when compiling in ILP32 mode.Roger Sayle2-0/+7
* config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Define _ILP32 when compiling in ILP32 mode. From-SVN: r74918
2003-12-21call.c: Fix comment formatting.Kazu Hirata18-65/+86
* call.c: Fix comment formatting. * class.c: Likewise. * cp-tree.h: Likewise. * cvt.c: Likewise. * cxx-pretty-print.c: Likewise. * decl.c: Likewise. * decl2.c: Likewise. * error.c: Likewise. * except.c: Likewise. * init.c: Likewise. * name-lookup.c: Likewise. * parser.c: Likewise. * pt.c: Likewise. * rtti.c: Likewise. * semantics.c: Likewise. * typeck.c: Likewise. * typeck2.c: Likewise. From-SVN: r74916
2003-12-21rs6000.c (rs6000_tls_referenced_p): Return early if TARGET_HAVE_TLS is false.Andrew Pinski2-0/+8
2003-12-21 Andrew Pinski <pinskia@physics.uc.edu> * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Return early if TARGET_HAVE_TLS is false. From-SVN: r74912
2003-12-21ip2k-protos.h: Remove the prototype for asm_output_section_name.Kazu Hirata3-11/+6
* config/ip2k/ip2k-protos.h: Remove the prototype for asm_output_section_name. * config/ip2k/ip2k.c (asm_output_section_name): Remove. From-SVN: r74911
2003-12-21alias.c: Fix comment formatting.Kazu Hirata33-61/+97
* alias.c: Fix comment formatting. * alloc-pool.c: Likewise. * bitmap.c: Likewise. * bitmap.h: Likewise. * bt-load.c: Likewise. * c-common.c: Likewise. * c-common.h: Likewise. * c-decl.c: Likewise. * c-opts.c: Likewise. * c-pretty-print.c: Likewise. * caller-save.c: Likewise. * cfghooks.h: Likewise. * cgraph.c: Likewise. * collect2.c: Likewise. * cppfiles.c: Likewise. * cpplib.h: Likewise. * dwarf2out.c: Likewise. * dwarfout.c: Likewise. * emit-rtl.c: Likewise. * final.c: Likewise. * function.c: Likewise. * gcov.c: Likewise. * gcse.c: Likewise. * genemit.c: Likewise. * ggc.h: Likewise. * haifa-sched.c: Likewise. * ifcvt.c: Likewise. * libgcc2.h: Likewise. * loop.c: Likewise. * predict.h: Likewise. * unwind-libunwind.c: Likewise. * varasm.c: Likewise. From-SVN: r74907
2003-12-21mn10300.c (mn10300_encode_section_info): Fix a warning.Kazu Hirata2-1/+6
* config/mn10300/mn10300.c (mn10300_encode_section_info): Fix a warning. From-SVN: r74902