aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-12-29re PR c++/12403 (ICE in push_template_decl_real on member function template ↵Kriang Lerdsuwanakij5-5/+32
specialization) PR c++/12403 * parser.c (cp_parser_template_declaration_after_export): Set up template specialization scope in case of explicit specialization. * g++.dg/parse/explicit1.C: New test. * g++.old-deja/g++.pt/explicit71.C: Adjust expected error. From-SVN: r75199
2003-12-29coverage.c (read_counts_file): Better error messages...Jan Hubicka2-14/+38
* coverage.c (read_counts_file): Better error messages; cause corrupted profiles to produce hard errors, not just warnings (get_coverage_counts): Similarly. From-SVN: r75198
2003-12-29* toplev.c (rest_of_handle_loop_optimize): Enable LOOP_AUTO_UNROLL.Jan Hubicka2-1/+5
From-SVN: r75197
2003-12-29cppopts.texi: Use of -idirafter...Phil Edwards2-2/+5
2003-12-29 Phil Edwards <phil@codesourcery.com> * doc/cppopts.texi: Use of -idirafter, -iprefix, -iwithprefix, and -iwithprefixbefore is not discouraged. From-SVN: r75196
2003-12-29re PR c++/13081 (forward template declarations in <complex> let inlining fail)Mark Mitchell5-1/+52
PR c++/13081 * decl.c (duplicate_decls): Preserve inline-ness when redeclaring a function template. PR c++/12613 * decl.c (reshape_init): Reject GNU colon-style designated initializers in arrays. PR c++/13081 * g++.dg/opt/inline6.C: New test. PR c++/12613 * g++.dg/parse/error9.C: New test. From-SVN: r75192
2003-12-29* gcc.dg/const-elim-1.c: XFAIL on arm-*-*.Mark Mitchell2-1/+8
From-SVN: r75191
2003-12-29re PR c++/13009 (Implicitly-defined assignment operator writes to wrong memory)Mark Mitchell4-6/+56
PR c++/13009 * call.c (build_special_member_call): Do not assume that we have a pointer to the complete object in an assignment operator. PR c++/13009 * g++.dg/init/assign1.C: New test. From-SVN: r75189
2003-12-29Daily bump.GCC Administrator1-1/+1
From-SVN: r75187
2003-12-28re PR c++/13070 (-Wformat option ignored in g++)Roger Sayle4-1/+29
PR c++/13070 * decl.c (duplicate_decls): When setting the type of an anticipated declaration, merge the existing type attributes. * g++.dg/warn/format3.C: New test case. From-SVN: r75185
2003-12-28sbitmap.c (sbitmap_union_of_diff_cg, [...]): Accumulate "changed" properly.Mostafa Hagog2-3/+16
2003-12-28 Mostafa Hagog <mustafa@il.ibm.com> * sbitmap.c (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg): Accumulate "changed" properly. (sbitmap_not): Zero all bits past n_bit. From-SVN: r75182
2003-12-28Daily bump.GCC Administrator1-1/+1
From-SVN: r75177
2003-12-27re PR rtl-optimization/13159 (FAIL: gcc.c-torture/compile/930621-1.c)Zdenek Dvorak5-1/+33
PR opt/13159 * cfgloopanal.c (mark_irreducible_loops): Fix the strongly connected components detection. * loop-unswitch.c (unswitch_loop): Preserve simple preheaders. * gcc.c-torture/compile/20031227-1.c: New test. From-SVN: r75174
2003-12-27uclinux.h (LIB_SPEC): Add elf2flt magic required for correct linking of ↵Bernardo Innocenti2-1/+6
executables using id-based... * config/m68k/uclinux.h (LIB_SPEC): Add elf2flt magic required for correct linking of executables using id-based shared libraries. From-SVN: r75173
2003-12-27i386-interix.h: Remove uses of "register" specifier in declarations of ↵Kazu Hirata6-72/+76
arguments and local... * config/i386/i386-interix.h: Remove uses of "register" specifier in declarations of arguments and local variables. * config/i386/i386.c: Likewise. * config/i386/i386elf.h: Likewise. * config/i386/ptx4-i.h: Likewise. * config/i386/sysv4.h: Likewise. From-SVN: r75170
2003-12-27Daily bump.GCC Administrator1-1/+1
From-SVN: r75047
2003-12-26rs6000.c (legitimate_offset_address_p): Do not restrict DFmode and TFmode to ↵Fariborz Jahanian3-6/+17
word alignment. 2003-12-26 Fariborz Jahanian <fjahanian@apple.com> Geoffrey Keating <geoffk@apple.com> David Edelsohn <edelsohn@gnu.org> * config/rs6000/rs6000.c (legitimate_offset_address_p): Do not restrict DFmode and TFmode to word alignment. * config/rs6000/rs6000.md (movdf_hardfloat64): Use 'o' constraint for ld/std and order before mr. Co-Authored-By: David Edelsohn <edelsohn@gnu.org> Co-Authored-By: Geoffrey Keating <geoffk@apple.com> From-SVN: r75040
2003-12-26darwin.h (LINK_COMMAND_SPEC): Arrange -fprofile-generate to imply -lgcov.Andrew Pinski2-1/+6
2003-12-25 Andrew Pinski <pinskia@physics.uc.edu> * config/darwin.h (LINK_COMMAND_SPEC): Arrange -fprofile-generate to imply -lgcov. From-SVN: r75038
2003-12-26h8300.md (ldm_h8300s_2_normal): Use HImode for addresses.Kazu Hirata2-4/+9
* config/h8300/h8300.md (ldm_h8300s_2_normal): Use HImode for addresses. From-SVN: r75036
2003-12-26Daily bump.GCC Administrator1-1/+1
From-SVN: r75028
2003-12-25* config/m32r/m32r.md: Remove a constraint from a splitter.Kazu Hirata2-1/+5
From-SVN: r75026
2003-12-25parse.y (catch_clause_parameter): Fix typo.Andrew Pinski2-1/+3
2003-12-25 Andrew Pinski <pinskia@physics.uc.edu> * parse.y (catch_clause_parameter): Fix typo. From-SVN: r75025
2003-12-25PR c++/13268, c++/13339Andrew Pinski3-3/+19
PR c++/13268, c++/13339 * class.c (add_method): Return early when method is error_mark_node. * pt.c (tsubst_friend_function): Return early when new_friend is error_mark_node. From-SVN: r75022
2003-12-25PR C++/13429, C/11944Andrew Pinski2-0/+13
2003-12-25 Andrew Pinski <pinskia@physics.uc.edu> PR C++/13429, C/11944 * c-common.c (c_build_qualified_type): Return early when type is error_mark_node. (c_apply_type_quals_to_decl): Likewise. From-SVN: r75021
2003-12-25re PR java/13404 (ICE when Missing identifier on catch clause)Andrew Pinski2-9/+24
2003-12-25 Andrew Pinski <pinskia@physics.uc.edu> PR java/13404 * parse.y: (catch_clause_parameter): Return early if $3, aka formal_parameter, is null. From-SVN: r75020
2003-12-25alpha-modes.def: Fix comment formatting.Kazu Hirata24-101/+127
* config/alpha/alpha-modes.def: Fix comment formatting. * config/alpha/alpha.c: Likewise. * config/alpha/alpha.h: Likewise. * config/alpha/elf.h: Likewise. * config/alpha/lib1funcs.asm: Likewise. * config/alpha/openbsd.h: Likewise. * config/alpha/vms-cc.c: Likewise. * config/alpha/vms-crt0-64.c: Likewise. * config/alpha/vms-crt0.c: Likewise. * config/alpha/vms-ld.c: Likewise. * config/alpha/vms-psxcrt0-64.c: Likewise. * config/alpha/vms-psxcrt0.c: Likewise. * config/alpha/vms.h: Likewise. * config/arc/arc.c: Likewise. * config/arm/aof.h: Likewise. * config/arm/arm-modes.def: Likewise. * config/arm/arm.c: Likewise. * config/arm/arm.h: Likewise. * config/arm/arm.md: Likewise. * config/arm/linux-elf.h: Likewise. * config/arm/vxworks.h: Likewise. * config/avr/avr.c: Likewise. * config/avr/avr.h: Likewise. From-SVN: r75019
2003-12-25elf.h: Fix comment formatting.Kazu Hirata5-67/+74
* config/xtensa/elf.h: Fix comment formatting. * config/xtensa/xtensa-protos.h: Likewise. * config/xtensa/xtensa.c: Likewise. * config/xtensa/xtensa.h: Likewise. From-SVN: r75018
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