aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-03-11* Makefile.in: Fix typo.Neil Booth1-1/+1
From-SVN: r64190
2003-03-11rs6000.c (rs6000_override_options): Disable string instructions for e500.Aldy Hernandez2-0/+10
2003-03-11 Aldy Hernandez <aldyh@redhat.com> * config/rs6000/rs6000.c (rs6000_override_options): Disable string instructions for e500. From-SVN: r64188
2003-03-11Makefile.in: Update.Neil Booth3-1/+7
* Makefile.in: Update. * c-cppbuiltin.c: Include tm_p.h. From-SVN: r64187
2003-03-11tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.Aldy Hernandez5-23/+93
2003-03-11 Aldy Hernandez <aldyh@redhat.com> * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN. * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define. (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN. (_Unwind_SetGR): Same. (_Unwind_GetGRPtr): New. (_Unwind_SetGRPtr): New. (uw_update_context_1): Use accesor functions instead of accessing context->reg[] directly. (uw_install_context_1): Same. (execute_cfa_program): Same. (__frame_state_for): Same. * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as the synthetic register offset. * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New. From-SVN: r64186
2003-03-11parse.y (resolve_field_access): Initialize class if field is found in ↵Tom Tromey3-1/+28
another static field. * parse.y (resolve_field_access): Initialize class if field is found in another static field. * expr.c (build_class_init): Don't optimize out initialization of implemented interface. From-SVN: r64185
2003-03-11return-type-3.c: New test.Steven Bosscher2-0/+18
2003-03-11 Steven Bosscher <s.bosscher@student.tudelft.nl> * gcc.dg/return-type-3.c: New test. From-SVN: r64181
2003-03-11cris.md: Remove lingering EGCS reference.Hans-Peter Nilsson4-56/+81
* config/cris/cris.md: Remove lingering EGCS reference. ("*extopqihi_side_biap"): For HI operation, match cris_additive_operand_extend_operator, not cris_operand_extend_operator. Adjust condition. ("*extopqihi_side", "*extopqihi"): Ditto. ("*extopqisi_side_biap"): Correct operand numbers in condition. ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto. ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto. ("*extophisi_swap"): Ditto. ("*extopqihi_swap_side_biap"): For HI operation, match a simple PLUS, not cris_operand_extend_operator. Adjust condition and output template. ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto. * config/cris/cris.h (PREDICATE_CODES): Add cris_additive_operand_extend_operator. * config/cris/cris.c (cris_additive_operand_extend_operator): New predicate. From-SVN: r64174
2003-03-11re PR c++/8700 (unhelpful error message for binding temp to reference)Mark Mitchell5-83/+132
PR c++/8700 * call.c (convert_class_to_reference): Adjust usage of splice_viable. (any_viable): Remove. (splice_viable): Combine with any_viable. (print_z_candidates): Avoid printing duplicates. (build_user_type_conversion_1): Adjust usage of splice_viable. (build_new_function_call): Likewise. (build_operator_new_call): Likewise. (build_object_call): Likewise. (build_conditional_expr): Likewise. (build_new_op): Likewise. (build_new_method_call): Likewise. (joust): Remove spurious comment. * cp-tree.h (DECL_FRIENDLIST): Correct documentation. * decl2.c (arg_assoc_class): Simplify. * friend.c (add_friend): Likewise. From-SVN: r64173
2003-03-11bprob.exp: Disable test cases for h8300-*-* as profiling options are not ↵D.Venkatasubramanian2-1/+7
supported. * gcc.misc-tests/bprob.exp: Disable test cases for h8300-*-* as profiling options are not supported. From-SVN: r64171
2003-03-11jcf-io.c (caching_stat): Initialize origsep to remove compiler warning.Andrew Haley2-1/+6
2003-03-11 Andrew Haley <aph@redhat.com> * jcf-io.c (caching_stat): Initialize origsep to remove compiler warning. From-SVN: r64169
2003-03-11re PR c++/8660 (template overloading ICE in tsubst_expr, at cp/pt.c:7644)Jason Merrill2-1/+14
PR c++/8660 * decl2.c (check_classfn): A member template only matches a member template. [[Split portion of a mixed commit.]] From-SVN: r64167.2
2003-03-11re PR c++/8660 (template overloading ICE in tsubst_expr, at cp/pt.c:7644)Jason Merrill2-0/+16
PR c++/8660 * decl2.c (check_classfn): A member template only matches a member template. From-SVN: r64166
2003-03-11df.c (read_modify_subreg_p): Change from static to global.Hartmut Penner4-2/+23
* df.c (read_modify_subreg_p): Change from static to global. * df.h (read_modify_subreg_p): Add prototype. * sched-deps.c (sched_analyze_1): Generate true dependency for strict_low_part, certain subregs and zero/sign_extract. From-SVN: r64164
2003-03-11Makefile.in: Update.Neil Booth13-569/+623
* Makefile.in: Update. * c-common.c: Don't include real.h or except.h. (REGISTER_PREFIX): Remove. (builtin_define_std, builtin_define_with_value, builtin_define_with_int_value, builtin_define_with_hex_fp_value, builtin_define_type_max, builtin_define_type_precision, builtin_define_float_constants): Move to c-cppbuiltin.c. (c_stddef_cpp_builtins): New. * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New. * c-cppbuiltin.c: New, extracted from c-common.c. (define__GNUC__): New. * cppspec.c (lang_specific_driver): Remove support of -no-gcc. * gcc.c: Remove support of %v1, %v2 and %v3 specs. (cpp_unique_options): Don't support no-gcc. (do_spec_1): Remove support of version specs. * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3. * doc/passes.texi: Update. * doc/tm.texi: Update. cp: * Make-lang.in (CXX_C_OBJS): Update. * lang-specs.h: Don't define __GNUG__ here. From-SVN: r64162
2003-03-1116077.C: Adjust warnings.Mark Mitchell8-146/+199
* g++.old-deja/g++.benjamin/16077.C: Adjust warnings. * g++.old-deja/g++.warn/impint2.C: Likewise. * call.c (perform_overload_resolution): New function. (build_new_function_call): Use it. (build_operator_new_call): Likewise. (add_candidates): Add explicit_targs and template_only parameters. (build_new_op): Adjust accordingly. * cp-tree.h (build_operator_new_call): New function. (build_function_call_real): Remove. (build_function_call_maybe): Likewise. * init.c (build_new_1): Use build_operator_new_call. * typeck.c (build_function_call_real): Rename to ... (build_function_call): ... this. From-SVN: r64159
2003-03-11* dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.Aldy Hernandez2-1/+5
From-SVN: r64158
2003-03-11darwin.c (machopic_function_base_name): If dynamic-no-pic is on should not ↵Andrew Pinski8-34/+218
get here. 2003-03-10 Andrew Pinski <apinski@apple.com> * config/darwin.c (machopic_function_base_name): If dynamic-no-pic is on should not get here. (machopic_indirect_data_reference): If dynamic-no-pic is on just generate high/low parts of the address. (machopic_legitimize_pic_address): Change MACHOPIC_PURE to MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate symbol and labels with a new reg. Dynamic-no-pic does not have a pic_offset_table_rtx. (machopic_select_section): Change references of flag_pic to MACHOPIC_INDIRECT. (machopic_asm_out_destructor): Likewise. * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change reference of flag_pic to MACHOPIC_INDIRECT. (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC. (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on. (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on. (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on. * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as 0 for right now as dynamic-no-pic is not implemented on Darwin/ia32. * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define. (TARGET_DYNAMIC_NO_PIC): Define. (SUBTARGET_SWITCHES): Define, have sub-target switches for dynamic-no-pic. (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from rs6000_override_options to here. Dynamic-no-pic overrides pic. (CC1_SPEC): Change from not static then pic to not static and not dynamic-no-pic then pic. * config/rs6000/rs6000.c (rs6000_override_options): Move the check for -fpic and DARWIN_ABI to config/rs6000/darwin.h (rs6000_legitimize_reload_address): Add case for loading floating in dynamic-no-pic. (rs6000_emit_move): Add case for dynamic-no-pic. Change reference of flag_pic to MACHOPIC_INDIRECT. (secondary_reload_class): Conditional change the reference of flag_pic to MACHOPIC_INDIRECT. (rs6000_output_mi_thunk): Change reference of flag_pic to MACHOPIC_INDIRECT. (output_profile_hook): Likewise. (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported. * config/rs6000/rs6000.md (movdf_low): Add the case for MACHO_DYNAMIC_NO_PIC_P. (call): Change references for flag_pic in TARGET_MACHO to MACHOPIC_INDIRECT. (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and -mdynamic-no-pic is on. Also move case for -fpic from rs6000.c. * doc/invoke.texi (-mdynamic-no-pic): Document. From-SVN: r64157
2003-03-10Remove extra bits I included, by mistake, in my previous check-inDevang Patel1-4/+1
for PR/9394 fix. From-SVN: r64156
2003-03-11Daily bump.GCC Administrator1-1/+1
From-SVN: r64153
2003-03-10gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.Devang Patel9-43/+67
PR/9394 * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove. (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove. * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add. (DEFAULT_WORD_SWITCH_TAKES_ARG): Add. * cppspec.c (DEFAULT_SWTICH_TAKES_ARG): Remove. (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove. cp * g++spec.c (lang_specific_driver): Use DEFAULT_WORD_SWITCH_TAKES_ARG. testsuite * g++.dg/cpp/c++_cmd_1.C: New test. * g++.dg/cpp/c++_cmd_1.h: New file. From-SVN: r64144
2003-03-10re PR rtl-optimization/7189 (gcc -O2 -Wall does not print ``control reaches ↵Steven Bosscher1-0/+7
end of non-void function'' warning) 2003-03-10 Steven Bosscher <s.bosscher@student.tudelft.nl> PR optimization/7189 * toplev.c (rest_of_compilation): Move check_function_return_warnings up to just after delete_unreachable_blocks. From-SVN: r64143
2003-03-10* com.c (duplicate_decls): Synchronize with C's duplicate_decls.Roger Sayle2-4/+5
From-SVN: r64142
2003-03-10m68hc11.h (HARD_REGNO_RENAME_OK): Define.Stephane Carrez4-0/+32
* config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define. * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok): Declare. * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function for reg rename optimization to avoid using Z and Y registers. From-SVN: r64134
2003-03-10re PR c++/9798 (Infinite recursion (segfault) in ↵Jason Merrill3-5/+21
cp/decl.c:push_using_directive with recusive using directives) PR c++/9798 * decl.c (push_using_directive): Push before recursing. From-SVN: r64133
2003-03-10add xfailJason Merrill1-1/+1
From-SVN: r64131
2003-03-10m68hc11.md ("*addhi3_68hc12"): Accept any constant when adding to X and Y ↵Stephane Carrez3-6/+40
since leax/leay are fast. * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant when adding to X and Y since leax/leay are fast. ("*addhi3"): Accept 'I' constraint when adding to address register. ("rotlhi3"): Operand 1 must be a register_operand. (peephole2): New peephole to optimize some adds. * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint to represent -2 .. 2 small integer range. From-SVN: r64127
2003-03-10m68hc11.c (m68hc11_gen_rotate): Set carry before each 16-bit rotation.Stephane Carrez2-13/+16
* config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before each 16-bit rotation. From-SVN: r64125
2003-03-10re PR c++/9868 (ICE in c_expand_expr when qualifying member variable)Jason Merrill1-0/+10
PR c++/9868 * call.c (resolve_scoped_fn_name): Handle the case of a function pointer member. From-SVN: r64124
2003-03-10re PR c++/9868 (ICE in c_expand_expr when qualifying member variable)Jason Merrill3-3/+17
PR c++/9868 * call.c (resolve_scoped_fn_name): Handle the case of a function pointer member. From-SVN: r64122
2003-03-10altivec-9.c: New file.Segher Boessenkool2-0/+17
2003-03-10 Segher Boessenkool <segher@koffie.nl> * testsuite/gcc.dg/altivec-9.c: New file. From-SVN: r64120
2003-03-10ppc-sdata-1.c: New test.Franz Sirl3-0/+35
2003-03-10 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * gcc.dg/ppc-sdata-1.c: New test. * gcc.dg/ppc-sdata-2.c: New test. From-SVN: r64119
2003-03-10c-opts.c (add_prefixed_path): Don't use concat.Zack Weinberg2-96/+112
* c-opts.c (add_prefixed_path): Don't use concat. When prefixing with cpp_GCC_INCLUDE_DIR, copy only the first cpp_GCC_INCLUDE_DIR_len characters. From-SVN: r64114
2003-03-10jcf-io.c (caching_stat): Account for both DIR_SEPARATOR and DIR_SEPARATOR_2 ↵Ranjit Mathew3-10/+47
for a target. 2003-03-10 Ranjit Mathew <rmathew@hotmail.com> * jcf-io.c (caching_stat): Account for both DIR_SEPARATOR and DIR_SEPARATOR_2 for a target. Correct minor typos. * jcf-write.c (make_class_file_name): Take both DIR_SEPARATOR and DIR_SEPARATOR_2 for a target into account. From-SVN: r64110
2003-03-10altivec-9.c: New file.Segher Boessenkool2-28/+9
2003-03-10 Segher Boessenkool <segher@koffie.nl> * testsuite/gcc.dg/altivec-9.c: New file. * config/rs6000/rs6000.c (altivec_frame_fixup): Remove. (rs6000_emit_prologue): Use rs6000_frame_related instead. From-SVN: r64109
2003-03-10spe.h: Define __ev64_*64__ to use single element vectors.Aldy Hernandez2-4/+20
2003-03-10 Aldy Hernandez <aldyh@redhat.com> * config/rs6000/spe.h: Define __ev64_*64__ to use single element vectors. (__ev_convert_u64): Remove macro. Define as inline. (__ev_convert_s64): Same. From-SVN: r64104
2003-03-10* cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.Jan Hubicka2-0/+4
From-SVN: r64103
2003-03-10rs6000.h (DWARF_FRAME_REGISTERS): Define.Aldy Hernandez3-16/+156
2003-03-10 Aldy Hernandez <aldyh@redhat.com> * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define. (rs6000_stack_t): Add spe_64bit_regs_used. * config/rs6000/rs6000.c (rs6000_stack_info): Calculate spe_64bit_regs_used, and use it to determine the size of the frame. (spe_func_has_64bit_regs_p): New. (spe_synthesize_frame_save): New. (rs6000_frame_related): Handle SPE synthetic registers. (rs6000_emit_prologue): Only save in 64-bits if the function used any registers in 64-bit mode. (rs6000_emit_epilogue): Same, but for restore. From-SVN: r64102
2003-03-10arm.h (enum floating_point_type): Delete.Richard Earnshaw5-36/+57
* arm.h (enum floating_point_type): Delete. Replace with... (enum fputype): ... new. (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT. Values reworked. * linux-elf.h (FPUTYPE_DEFAULT): Likewise. * arm.md (attr fpu): Reworked for new underlying enum values. * arm.c (arm_fpu_arch): Now enum fputype. (arm_fpu_tune): Renamed from arm_fpu. Now enum fputype. (arm_override_options, arm_output_epilogue, arm_expand_prologue): Update uses of arm_fpu_arch and arm_fpu_tune. From-SVN: r64099
2003-03-10cfgcleanup.c (outgoing_edges_match): Compare the jump tables.Josef Zlomek5-48/+220
* cfgcleanup.c (outgoing_edges_match): Compare the jump tables. (try_crossjump_to_edge): Replace refereces to one jump table by references to identical jump table. * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label. (replace_label): Moved to rtlanal.c. (struct rtx_pair): Moved to rtl.h. * rtl.h (struct rtx_pair): Moved from loop.c. (replace_label): New extern function. (subrtx_p): New extern function. (tablejump_p): New extern function. * rtlanal.c (replace_label): Moved from loop.c. (subrtx_p_1): New static function. (subrtx_p): New function. (tablejump_p): New function. From-SVN: r64096
2003-03-10cfgcleanup.c (merge_blocks): Return where to iterate next.Jan Hubicka2-25/+42
* cfgcleanup.c (merge_blocks): Return where to iterate next. (try_optimize_cfg): Use return value of merge_blocks From-SVN: r64079
2003-03-10cfg.c (unchecked_make_edge): New.Michael Matz4-14/+40
* cfg.c (unchecked_make_edge): New. (cached_make_edge): Use it. * basic-block.h (unchecked_make_edge): Declare. * cfglayout.c (cfg_layout_duplicate_bb): Use it. From-SVN: r64077
2003-03-10re PR rtl-optimization/7189 (gcc -O2 -Wall does not print ``control reaches ↵Steven Bosscher1-2/+4
end of non-void function'' warning) 2003-03-10 Steven Bosscher <s.bosscher@student.tudelft.nl> PR optimization/7189 * toplev.c (rest_of_compilation): Move check_function_return_warnings up to just after delete_unreachable_blocks. From-SVN: r64076
2003-03-10fpa.md: New file.Richard Earnshaw3-710/+783
* fpa.md: New file. Move all patterns relating to FPA co-processor to here... * arm.md: ... from here. (cirrus.md, fpa.md): Include at end of description. (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands. (pic_load_addr_based): Remove register constraint from expander. (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered) (sordered, sungt, sunle, sunge, sunlt): Likewise. (eh_epilogue, tablejump): Likewise. From-SVN: r64075
2003-03-10re PR c++/9373 (ICE with -fstrict-aliasing in set_mem_alias_set, at ↵Mark Mitchell4-2/+27
emit-rtl.c:1932) PR c++/9373 * g++.dg/opt/ptrmem2.C: New test. PR c++/9373 * cp-lang.c (cxx_get_alias_set): Use alias set zero for pointers to member functions. From-SVN: r64070
2003-03-10re PR c++/8534 (When compiling qt contradicting aliasing class created for ↵Mark Mitchell4-0/+61
bitfield constructor) PR c++/8534 * decl.c (build_ptrmemfunc_type): Do not allow default arugments in pointer-to-member-function types. PR c++/8534 * g++.dg/opt/ptrmem1.C: New test. From-SVN: r64066
2003-03-10expr.c (cplus_expand_constant): Use C90 prototype style.Gabriel Dos Reis2-7/+7
* expr.c (cplus_expand_constant): Use C90 prototype style. (cxx_expand_expr): Likewise. From-SVN: r64064
2003-03-10Daily bump.GCC Administrator1-1/+1
From-SVN: r64062
2003-03-09rs6000.md (movsi_update1): Add TARGET_UPDATE final condition.David Edelsohn2-1/+7
* config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final condition. From-SVN: r64050
2003-03-09frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.Neil Booth12-55/+89
* config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES. * config/ip2k/ip2k.h: Similarly. * config/m32r/m32r.h: Similarly. * config/m68hc11/m68hc11.h: Similarly. * config/mn10200/mn10200.h: Similarly. * config/mn10300/mn10300.h: Similarly. * config/pdp11/pdp11.h: Similarly. * config/v850/v850.h: Similarly. * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS. * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS. * config/mips/iris3.h: Remove #if 0 block. From-SVN: r64049
2003-03-09gcc.c (do_spec_1): Revert 2003-02-24 patch.Roger Sayle2-13/+26
* gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle pending argument upon return from handle_braces here. (do_spec_2): Instead handle it upon return from do_spec_1 here. Co-Authored-By: Joern Rennecke <joern.rennecke@superh.com> From-SVN: r64047