aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2004-01-29error11.C: New test.Giovanni Bajo3-0/+70
* g++.dg/parse/error11.C: New test. * g++.dg/parse/error12.C: Likewise. From-SVN: r76846
2004-01-29parser.c (cp_parser_template_id): Parse tentatively `[:' after a template ↵Giovanni Bajo2-14/+103
name as it was `<::' (digraph typo). * parser.c (cp_parser_template_id): Parse tentatively `[:' after a template name as it was `<::' (digraph typo). (cp_parser_nth_token_starts_template_argument_list_p): New function. (cp_parser_id_expression): Use it. (cp_parser_nested_name_specifier_opt): Likewise. (cp_parser_template_name): Likewise. (cp_parser_class_name): Likewise. (cp_lexer_get_preprocessor_token): Use c_lex_with_flags. From-SVN: r76845
2004-01-29c-lex.c (c_lex): Rename to...Giovanni Bajo3-1/+17
* c-lex.c (c_lex): Rename to... (c_lex_with_flags): Add new parameter to get CPP flags. (c_lex): Thunk to c_lex_with_flags while keeping the old interface. * c-pragma.h (c_lex_with_flags): Declare. From-SVN: r76844
2004-01-28Fix LP64 failures.Ziemowit Laski2-3/+12
* objc.dg/proto-qual-1.m (ROUND, aligned_sizeof): New. (scan_initial, main): Use aligned_sizeof instead of sizeof. From-SVN: r76842
2004-01-29re PR c++/13791 (ICE in layout_type with packed types)Mark Mitchell4-0/+29
PR c++/13791 * typeck.c (merge_types): Do not merge attributes into TYPENAME_TYPEs. 2004-01-28 Mark Mitchell <mark@codesourcery.com> PR c++/13791 * g++.dg/ext/attrib12.C: New test. From-SVN: r76837
2004-01-29mcore.c (mcore_external_libcall): Add a comment.Kazu Hirata2-0/+10
* config/mcore/mcore.c (mcore_external_libcall): Add a comment. (mcore_return_in_memory): Likewise. From-SVN: r76836
2004-01-29mcore-protos.h: Remove the prototype for mcore_setup_incoming_varargs.Kazu Hirata4-39/+69
* config/mcore/mcore-protos.h: Remove the prototype for mcore_setup_incoming_varargs. * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New. (TARGET_PROMOTE_FUNCTION_ARGS): Likewise. (TARGET_PROMOTE_FUNCTION_RETURN): Likewise. (TARGET_PROMOTE_PROTOTYPES): Likewise. (TARGET_STRUCT_VALUE_RTX): Likewise. (TARGET_RETURN_IN_MEMORY): Likewise. (TARGET_SETUP_INCOMING_VARARGS): Likewise. (mcore_setup_incoming_varargs): Make it static. Receive the first argument by reference. Add argument second_time. (mcore_external_libcall): New. (mcore_return_in_memory): Likewise. * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New. (PROMOTE_FUNCTION_RETURN): Likewise. (STRUCT_VALUE): Likewise. (RETURN_IN_MEMORY): Likewise. (SETUP_INCOMING_VARARGS): Likewise. (PROMOTE_PROTOTYPES): Likewise. (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise. From-SVN: r76835
2004-01-29m32r-protos.h: Remove the prototype for m32r_setup_incoming_varargs.Kazu Hirata4-58/+44
* config/m32r/m32r-protos.h: Remove the prototype for m32r_setup_incoming_varargs. * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New. (TARGET_STRUCT_VALUE_RTX): Likewise. (TARGET_RETURN_IN_MEMORY): Likewise. (TARGET_SETUP_INCOMING_VARARGS): Likewise. (m32r_return_in_memory): New. (m32r_setup_incoming_varargs): Make it static. * config/m32r/m32r.h: Remove #undef of ASM_OUTPUT_EXTERNAL_LIBCALL. Remove the commented-out definitions of PROMOTE_FUNCTION_ARGS and PROMOTE_FUNCTION_RETURN. (PROMOTE_PROTOTYPES): Remove. (RETURN_IN_MEMORY): Likewise. (STRUCT_VALUE): Likewise. From-SVN: r76834
2004-01-29m68k.c (TARGET_PROMOTE_PROTOTYPES): New.Kazu Hirata6-15/+43
* config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New. (TARGET_STRUCT_VALUE_RTX): Likewise. (m68k_struct_value_rtx): Likewise. * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to STRUCT_VALUE_REGNUM. (PROMOTE_PROTOTYPES): Remove. * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to STRUCT_VALUE_REGNUM. * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise. * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise. From-SVN: r76833
2004-01-29* config/stormy16/stormy16.cKazu Hirata2-2/+8
(TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to TARGET_BUILD_BUILTIN_VA_LIST. From-SVN: r76832
2004-01-29v850.c (TARGET_PROMOTE_PROTOTYPES): New.Kazu Hirata3-19/+51
* config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New. (TARGET_STRUCT_VALUE_RTX): Likewise. (TARGET_RETURN_IN_MEMORY): Likewise. (TARGET_SETUP_INCOMING_VARARGS): Likewise. (v850_return_in_memory): Likewise. (v850_setup_incoming_varargs): Likewise. * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove. (SETUP_INCOMING_VARARGS): Likewise. (RETURN_IN_MEMORY): Likewise. (STRUCT_VALUE): Likewise. From-SVN: r76831
2004-01-29fr30.c (TARGET_PROMOTE_PROTOTYPES): New.Kazu Hirata3-24/+21
* config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New. (fr30_setup_incoming_varargs): Don't use STRICT_ARGUMENT_NAMING. * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove. (STRICT_ARGUMENT_NAMING): Likewise. From-SVN: r76830
2004-01-29Fix typo in ChangeLogMark Mitchell1-1/+1
From-SVN: r76827
2004-01-29frv-protos.h: Remove the prototype for frv_expand_builtin_saveregs.Kazu Hirata4-33/+54
* config/frv/frv-protos.h: Remove the prototype for frv_expand_builtin_saveregs. * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise. (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise. (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of STRUCT_VALUE_REGNUM. (frv_expand_builtin_saveregs): Make it static. (frv_struct_value_rtx): New. * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove. From-SVN: r76826
2004-01-29re PR c++/13736 (Parser confused on compound casts)Mark Mitchell4-3/+33
PR c++/13736 * parser.c (cp_parser_direct_declarator): Do not prevent backtracking inside a parenthesized declarator. (cp_parser_parameter_declaration): Fix typo in comment. PR c++/13736 * g++.dg/parse/cast2.C (main): New test. From-SVN: r76825
2004-01-29re PR c++/12850 (memory consumption for heavy template instantiations ↵Jan Hubicka4-15/+43
tripled since 3.3) PR c++/12850 * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and initial pointers. * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS for functions that will be only inlined. (cgraph_mark_function_to_output): Likewise. (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear; do not clear function body. * tree-optimize.c (clear_decl_rtl): Use decl_function_context. (tree_rest_of_compilation): Reorganize the logic releasing function body to use callgraph datastructure. From-SVN: r76822
2004-01-29Daily bump.GCC Administrator1-1/+1
From-SVN: r76818
2004-01-28pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand to ↵John David Anglin2-1/+6
register_operand. * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand to register_operand. From-SVN: r76814
2004-01-28* config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)Zack Weinberg2-8/+15
(cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and match_operand expressions so that all match_dups appear lexically after their corresponding match_operands. From-SVN: r76812
2004-01-28h8300.c (WORD_REG_USED): Use HARD_FRAME_POINTER_REGNUM instead of ↵Kazu Hirata4-41/+94
FRAME_POINTER_REGNUM. * config/h8300/h8300.c (WORD_REG_USED): Use HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM. (compute_saved_regs): Likewise. (h8300_expand_prologue): Likewise. Allocate locals after saving registers. (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM. Deallocate locals before saving registers. (h8300_initial_elimination_offset): Adjust for the new frame layout, which swaps flips the order of locals and saved registers. * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12. (HARD_FRAME_POINTER_REGNUM): New. (ELIMINABLE_REGS): Add an elimination rule from FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM. (REGISTER_NAMES): Add fp. * config/h8300/h8300.md (FP_REG): Change to 11. (HFP_REG): New. From-SVN: r76811
2004-01-28* genrecog.c (write_node): Remove a useless local variable.Kazu Hirata2-4/+5
From-SVN: r76807
2004-01-28* semantics.c (expand_body) Do emit_associated_thunks beforeJan Hubicka2-3/+8
expansion. From-SVN: r76804
2004-01-28Makefile.in (options.c options.h): Use stamp file s-options to avoid ↵Ian Lance Taylor2-5/+17
unnecessary rebuilds. * Makefile.in (options.c options.h): Use stamp file s-options to avoid unnecessary rebuilds. (options.o): New target listing dependencies. (gtyp-gen.h): Use stamp file s-gtyp-gen. (STAGESTUFF): Add s-gtyp-gen. From-SVN: r76803
2004-01-28ggc.h (ggc_free): Declare.Richard Henderson4-41/+184
* ggc.h (ggc_free): Declare. * ggc-common.c (ggc_realloc): Use it. * ggc-page.c: Remove lots of inline markers. (globals): Add free_object_list. (ggc_alloc): Tidy. (ggc_free, validate_free_objects): New. (poison_pages): Provide default. (ggc_collect): Call validate_free_objects; emit markers to the debug file. From-SVN: r76801
2004-01-28Make-lang.in (f/str-*.h, f/str-*.j): Use stamp files and move-if-change to ↵Ian Lance Taylor2-21/+54
avoid changing these files unnecessarily. * Make-lang.in (f/str-*.h, f/str-*.j): Use stamp files and move-if-change to avoid changing these files unnecessarily. From-SVN: r76800
2004-01-28ia64.c (ia64_split_tmode, [...]): Rewrite to use ↵Zack Weinberg3-130/+196
POST_INC/POST_DEC/POST_MODIFY instead of a scratch pointer. 2004-01-28 Zack Weinberg <zack@codesourcery.com> Jim Wilson <wilson@specifixinc.com> * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move): Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a scratch pointer. (ia64_secondary_reload_class): Delete case GR_REGS. * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal): Do not allocate a scratch register. (reload_inti, reload_outti, reload_intf, reload_outtf): Delete. From-SVN: r76798
2004-01-28gcse.c (bypass_block): Prevent edges to be unified when we are about to emit ↵Jan Hubicka2-0/+20
compenstation code. * gcse.c (bypass_block): Prevent edges to be unified when we are about to emit compenstation code. From-SVN: r76791
2004-01-28(arm_expand_builtin): Force second argument of the setcwx insn into a register.Nick Clifton2-1/+6
From-SVN: r76787
2004-01-28encode-2.m (main): New local string.James E Wilson3-4/+22
* objc.dg/encode-2.m (main): New local string. Set depending on sizeof long. Use in sscanf call. * objc.dg/encode-3.m (main): New local string. Set depending on sizeof long. Use in scan_initial call. From-SVN: r76783
2004-01-28fp-bit.c (pack_d): When using paired doubles to implement a long double...Richard Sandiford2-32/+65
* config/fp-bit.c (pack_d): When using paired doubles to implement a long double, round the high part separately. (unpack_d): Fix the case in which the high part is a power of two and the low part is a nonzero value of the opposite sign. From-SVN: r76780
2004-01-28c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.Kazu Hirata3-10/+38
* config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New. (TARGET_STRUCT_VALUE_RTX): Likewise. (c4x_external_libcall): Likewise. (c4x_struct_value_rtx): Likewise. * config/c4x/c4x.h: Remove. (STRUCT_VALUE_REGNUM): Likewise. (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise. From-SVN: r76779
2004-01-28i386.c (TARGET_PROMOTE_PROTOTYPES): New.Kazu Hirata3-15/+15
* config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New. (TARGET_STRUCT_VALUE_RTX): Likewise. * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove. (STRUCT_VALUE): Likewise. (PROMOTE_PROTOTYPES): Likewise. From-SVN: r76778
2004-01-28pa.c (emit_move_sequence): Check that operand1 is a CONST_INT before using ↵Roger Sayle2-1/+9
INTVAL. * config/pa/pa.c (emit_move_sequence): Check that operand1 is a CONST_INT before using INTVAL. From-SVN: r76776
2004-01-28Daily bump.GCC Administrator1-1/+1
From-SVN: r76771
2004-01-28s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.Ulrich Weigand5-5/+20
* config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN. * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current frame if !TARGET_BACKCHAIN. * config/s390/s390.md ("allocate_stack"): Use pattern only if TARGET_BACKCHAIN. * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default. From-SVN: r76767
2004-01-27ia64.c (ia64_function_arg): When placing HFAs in integer registers...Zack Weinberg2-11/+21
* ia64.c (ia64_function_arg): When placing HFAs in integer registers, do not special case the mode used for complex types. Do not advance int_regs until the current register is full. From-SVN: r76758
2004-01-27re PR target/7297 ([irix6 o32] sjlj exceptions fail)Richard Sandiford2-4/+7
PR target/7297 * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp(). From-SVN: r76754
2004-01-27call-super-2.m: Make LP64-safe.Kaveh R. Ghazi3-18/+23
* objc.dg/call-super-2.m: Make LP64-safe. * objc.dg/desig-init-1.m: Likewise. From-SVN: r76753
2004-01-27rs6000.c (rs6000_emit_move): #if 0 splitting slow, unaligned loads and ↵David Edelsohn2-14/+20
stores while debugging. * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting slow, unaligned loads and stores while debugging. Fix formatting. From-SVN: r76752
2004-01-27rs6000.md (save_stack_nonlocal): Use Pmode instead of computing wmode.David Edelsohn2-6/+10
* config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead of computing wmode. (restore_stack_nonlocal): Same. From-SVN: r76750
2004-01-27Makefile.in (dwarf2out.o): Depend on input.hDevang Patel13-89/+636
2004-01-27 Devang Patel <dpatel@apple.com> * Makefile.in (dwarf2out.o): Depend on input.h * dbxout.c (dbx_debug_hooks): Add new empty hook for imported_module_or_decl. (xcoff_debug_hooks): Same. * sdbout.c (sdb_debug_hooks): Same. * vmsdbgout.c (vmsdbg_debug_hooks): Same. * debug.c (do_nothing_debug_hooks): Same. (debug_nothing_tree_tree): New function. * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl. * dwarf2out.c: Include input.h. (dwarf2_debug_hooks): Add new hook for imported_module_or_decl. (remove_child_TAG): New function. (dwarf_tag_name): Handle DW_TAG_imported_module. (gen_subprogram_die): Equate decl number to declaration die. Do not remove all children dies while reusing declaration die for definition. Instead, selectively remove only formal parameters. (gen_variable_die): Equate variable decl to declaration die. (gen_field_die): Equate field decl to line number. (force_namespace_die): Replace it with ... (force_decl_die): ... this. (force_type_die): New function. (setup_namespace_context): Replace use of force_namespace_die() with force_decl_die(). (gen_namespace_die): Same. (dwarf2out_imported_module_or_decl): New function. testsuite: * g++.dg/debug/namespace1.C: New test. cp: * name-lookup.c: Include "debug.h" (do_namespace_alias): Invoke debug_hooks to emit debug info for namespace alias. (do_local_using_decl): Invoke debug_hooks to emit debug info for using decl. (do_class_using_decl): Same. (do_toplevel_using_decl): Same. (do_using_directive): Same. (cp_emit_debug_info_for_using): New function. * Make-lang.in (cp/parser.o): Depend on debug.h (cp/name-lookup.o): Same. From-SVN: r76746
2004-01-27xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG on CQImode and CHImode ↵Bob Wilson4-17/+62
incoming arguments in register a7. * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG on CQImode and CHImode incoming arguments in register a7. (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL. * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define. * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or xtensa_copy_incoming_a7 before reload. From-SVN: r76742
2004-01-27coverage.c (get_coverage_counts): Give a different message if ↵J"orn Rennecke3-9/+20
flag_guess_branch_prob is set. * coverage.c (get_coverage_counts): Give a different message if flag_guess_branch_prob is set. * predict.c (counts_to_freqs): Return an int. (estimate_bb_frequencies): If counts_to_freqs returns zero, calculate estimates. From-SVN: r76741
2004-01-27iq2000-protos.h: Remove the prototype for iq2000_setup_incoming_varargs.Kazu Hirata4-34/+66
* config/iq2000/iq2000-protos.h: Remove the prototype for iq2000_setup_incoming_varargs. * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New. (TARGET_PROMOTE_FUNCTION_RETURN): Likewise. (TARGET_PROMOTE_PROTOTYPES): Likewise. (TARGET_STRUCT_VALUE_RTX): Likewise. (TARGET_RETURN_IN_MEMORY): Likewise. (TARGET_SETUP_INCOMING_VARARGS): Likewise. (TARGET_STRICT_ARGUMENT_NAMING): Likewise. (iq2000_return_in_memory): Likewise. (iq2000_setup_incoming_varargs): Make it static. Receive the first argument by reference. * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove. (PROMOTE_FUNCTION_RETURN): Likewise. (PROMOTE_PROTOTYPES): Likewise. (RETURN_IN_MEMORY): Likewise. (STRUCT_VALUE): Likewise. (SETUP_INCOMING_VARARGS): Likewise. (STRICT_ARGUMENT_NAMING): Likewise. From-SVN: r76739
2004-01-27fixinc.c (test_test): Initialize res.James A. Morrison2-1/+10
2004-01-24 James A. Morrison <ja2morri@uwaterloo.ca> * fixinc/fixinc.c (test_test): Initialize res. (start_flexer): Initialize pz_cmd_save. From-SVN: r76738
2004-01-27rtl.texi (Arithmetic): Rewrite entries for PLUS, SS_PLUS, US_PLUS, LO_SUM, ↵Zack Weinberg2-33/+40
MINUS, SS_MINUS, US_MINUS. * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS, SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS. From-SVN: r76735
2004-01-27* config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)Zack Weinberg2-127/+166
(*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf) (*nmaddxf4_alts, *nmaddxf4_truncdf_alts): Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))). Possibly rename pattern for consistency. Remove ??? comments suggesting that this be done. (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts): New patterns. (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr) (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr) (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr) (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr): Update to match. From-SVN: r76734
2004-01-27parse.y (check_interface_throws_clauses): Make sure class_decl has been loaded.Andrew Haley2-2/+18
2004-01-27 Andrew Haley <aph@redhat.com> java/13273 * parse.y (check_interface_throws_clauses): Make sure class_decl has been loaded. From-SVN: r76732
2004-01-27const-elim-1.c: Add xfail for strongarm-*-* and xscale-*-*.Ian Lance Taylor2-1/+4
* gcc.dg/const-elim-1.c: Add xfail for strongarm-*-* and xscale-*-*. From-SVN: r76714
2004-01-27arm.c (output_return_instruction): Only restore IP into SP if ↵Ian Lance Taylor4-9/+54
frame_pointer_needed. * config/arm/arm.c (output_return_instruction): Only restore IP into SP if frame_pointer_needed. * gcc.dg/arm-mmx-1.c: New test. From-SVN: r76710