aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2002-08-09Makefile.in (c-opts.o): UpdateNeil Booth7-242/+248
* Makefile.in (c-opts.o): Update * c-opts.c: Include intl.h. (print_help): Move from cppinit.c. Remove unused options. (COMMAND_LINE_OPTIONS): Move more from cppinit.c. (missing_arg): Complain for switches without an argument. (c_common_decode_option): Reject missing joined arguments. Handle new switches from cppinit.c. * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c. (cpp_handle_option): Similarly. (print_help): Moved to c-opts.c. * cpplib.h (struct cpp_options): Remove help_only. * gcc.c (cpp_unique_options): Remove -$. * doc/cppopts.texi: Undocument -h. From-SVN: r56155
2002-08-09jcf-write.c (get_access_flags): Return correct access flags for private and ↵Bryce McKinlay2-0/+9
protected inner classes. 2002-08-08 Bryce McKinlay <bryce@waitaki.otago.ac.nz> * jcf-write.c (get_access_flags): Return correct access flags for private and protected inner classes. From-SVN: r56146
2002-08-09cleanup whitespacing a tad.Mike Stump1-15/+15
From-SVN: r56145
2002-08-09call.c (add_builtin_candidate): legal -> valid, illegal -> invalid.Mike Stump10-45/+83
* call.c (add_builtin_candidate): legal -> valid, illegal -> invalid. (type_decays_to): Likewise. * class.c (find_final_overrider): Likewise. (maybe_note_name_used_in_class): Likewise. * decl.c (current_tmpl_spec_kind): Likewise. (add_binding): Likewise. (push_class_binding): Likewise. (duplicate_decls): Likewise. (layout_var_decl): Likewise. (grokfndecl): Likewise. (grokdeclarator): Likewise. (check_default_argument): Likewise. * decl2.c (handle_class_head): Likewise. * error.c (dump_template_decl): Likewise. * init.c (build_offset_ref): Likewise. * pt.c (check_specialization_scope): Likewise. (determine_specialization): Likewise. (check_explicit_specialization): Likewise. (maybe_check_template_type): Likewise. (process_partial_specialization): Likewise. (check_default_tmpl_args): Likewise. (push_template_decl_real): Likewise. (convert_template_argument): Likewise. (try_class_unification): Likewise. (get_bindings_real): Likewise. (do_decl_instantiation): Likewise. * semantics.c (begin_function_definition): Likewise. (finish_member_declaration): Likewise. (check_multiple_declarators): Likewise. * typeck.c (comp_array_types): Likewise. (comptypes): Likewise. (expr_sizeof): Likewise. (build_binary_op): Likewise. (dubious_conversion_warnings): Likewise. (check_return_expr): Likewise. From-SVN: r56144
2002-08-09i386.c (legitimate_constant_p): UNSPEC_TP is not legitimate constant.Jakub Jelinek4-17/+91
* config/i386/i386.c (legitimate_constant_p): UNSPEC_TP is not legitimate constant. (legitimate_pic_operand_p): Neither pic operand. (legitimate_address_p): But legitimate address. (get_thread_pointer): Generate MEM/u instead of CONST around UNSPEC_TP. (print_operand): Remove printing of UNSPEC_TP. (print_operand_address): And print it here. * gcc.dg/tls/opt-2.c: New test. From-SVN: r56143
2002-08-08objc-act.c (build_selector_translation_table): Issue warning...Devang Patel4-0/+60
* objc/objc-act.c (build_selector_translation_table): Issue warning, when -Wselector is used,if method for which selector is being created does not exist. Testsuite: *objc.dg/selector-1.m: New test From-SVN: r56142
2002-08-08bitfield4.c: New test.Nathan Sidwell3-0/+87
* g++.dg/abi/bitfield4.c: New test. * gcc.dg/bitfld-4.c: New test. From-SVN: r56140
2002-08-08sh.c (prepare_move_operands): Only call target_reg_operand if TARGET_SHMEDIA.Stephen Clarke2-1/+7
2002-08-08 Stephen Clarke <stephen.clarke@superh.com> * config/sh/sh.c (prepare_move_operands): Only call target_reg_operand if TARGET_SHMEDIA. From-SVN: r56139
2002-08-08typeck.c (build_class_member_access_expr): Do not return error_mark_node ↵Mark Mitchell2-1/+5
when no error has occurred. * typeck.c (build_class_member_access_expr): Do not return error_mark_node when no error has occurred. From-SVN: r56138
2002-08-08rs6000.h, [...]: Revert last two patches.Jakub Jelinek6-9/+34
* config/rs6000/rs6000.h, config/rs6000/aix.h, config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last two patches. * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN. From-SVN: r56135
2002-08-08emit-rtl.c (gen_rtx_REG): After reload...Lars Brinkhoff2-3/+15
* emit-rtl.c (gen_rtx_REG): After reload, only return frame_pointer_rtx or hard_frame_pointer_rtx if frame_pointer_needed. Co-Authored-By: Richard Henderson <rth@redhat.com> From-SVN: r56133
2002-08-08typeck.c (build_component_addr): Remove.Nathan Sidwell4-47/+39
cp: * typeck.c (build_component_addr): Remove. (build_unary_op): Just check it's not a bitfield, and then build an ADDR_EXPR. testsuite: * g++.dg/other/packed1.C: New test. From-SVN: r56132
2002-08-08rs6000-protos.h (rs6000_field_alignment): Remove.Jakub Jelinek4-23/+13
* config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove. * config/rs6000/rs6000.c (rs6000_field_alignment): Move... * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): ...inline into the macro. From-SVN: r56131
2002-08-08oops - minor formatting tidy ups to previous deltaNick Clifton1-15/+11
From-SVN: r56129
2002-08-08arm.c (thumb_unexpanded_epilogue): Stack the PIC register.Adam Nemet3-40/+36
* config/arm/arm.c (thumb_unexpanded_epilogue): Stack the PIC register. (thumb_expand_prologue): Likewise. (thumb_output_function_prologue): Likewise. * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Account for the additional push of the PIC register. From-SVN: r56128
2002-08-08class.c (convert_to_base): Correct check for error_mark_node.Nathan Sidwell2-5/+9
* class.c (convert_to_base): Correct check for error_mark_node. (create_vtable_ptr): Remove unused VFUNS_P parm From-SVN: r56127
2002-08-08configure.in (enable_coverage): New enable switch.Nathan Sidwell16-314/+428
* configure.in (enable_coverage): New enable switch. * configure: Rebuilt. * Makefile.in (COVERAGE_FLAGS, coverageexts): New variables. (INTERNAL_CFLAGS): Append COVERAGE_FLAGS. (ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS. (mostlyclean): Remove coverage files. * doc/install.texi: Document enable_coverage. * cp/Make-lang.in (c++.mostlyclean): Remove coverage files. * ada/Make-lang.in (ada.mostlyclean): Remove coverage files. * f/Make-lang.in (f.mostlyclean): Remove coverage files. * java/Make-lang.in (java.mostlyclean): Remove coverage files. * objc/Make-lang.in (objc.mostlyclean): Remove coverage files. * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files. From-SVN: r56126
2002-08-08Daily bump.GCC Administrator3-3/+3
From-SVN: r56125
2002-08-08c-opts.c (cpp_opts): New.Neil Booth3-136/+122
* c-opts.c (cpp_opts): New. (COMMAND_LINE_OPTIONS): Add switches from cppinit.c. (c_common_decode_options): Handle cpplib switches. (c_common_init_options): Set cpp_opts. * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c. (cpp_handle_option): Similarly. From-SVN: r56119
2002-08-08Rework build_component_ref.Mark Mitchell22-437/+642
* call.c (build_vfield_ref): Do not go through build_component_ref. (build_field_call): Use build_class_member_access_expr. (build_user_type_conversion_1): Use BASELINK_FUNCTIONS. (build_object_call): Likewise. * class.c (convert_to_base): New function. (type_requires_array_cookie): Use BASELINK_FUNCTIONS. (instantiate_type): Handle BASELINKs. * cp-tree.def (BASELINK): New tree code. * cp-tree.h (BASELINK_P): Reimplement. (SET_BASELINK_P): Remove. (BASELINK_BINFO): Reimplement. (BASELINK_FUNCTIONS): Likewise. (BASELINK_ACCESS_BINFO): Likewise. (BASELINK_OPTYPE): Likewise. (convert_to_base): New function. (name_p): Likewise. (build_object_ref): Remove. (build_component_ref_1): Likewise. (build_component_ref): Likewise. (build_x_component_ref): Likewise. (build_class_member_access_expr): New function. (finish_class_member_access_expr): Likewise. (build_ptrmemfunc_access_expr): Likewise. * decl.c (grokdeclarator): Handle BASELINKs. * decl2. (build_expr_from_tree): Handle COMPONENT_REFs by using finish_class_member_access_expr. (arg_assoc): Handle BASELINKs. (do_class_using_decl): Likewise. * error.c (dump_decl): Likewise. (dump_expr): Use build_ptrmemfunc_access_expr. * except.c (dtor_nothrow): Use CLASSTYPE_DESTRUCTORS to find destructors. (build_throw): Use BASELINK_FUNCTIONS. * init.c (perform_member_init): Use build_class_member_access_expr. (build_offset_ref): Handle BASELINKs. Use build_class_member_access_expr. * method.c (hack_identifier): Likewise. * parse.y (do_id): Use BASELINK, not TREE_LIST. (primary): Remove uses of build_object_ref. * pt.c (lookup_template_function): Handle BASELINKs. (resolve_overloaded_unification): Likewise. * search.c (build_baselink): Build a BASELINK, not a TREE_LIST. (lookup_field): Use BASELINK, not TREE_LIST. (lookup_fnfiels): Likewise. (setup_class_bindings): Likewise. * semantics.c (finish_object_call_expr): Do not use build_method_call when we already know what function is being called. * spew.c (identifier_type): Use BASELINK, not TREE_LIST. * tree.c (really_overloaded_fn): Use OVL_CHAIN for OVERLOADs, not TREE_CHAIN. (name_p): New function. * typeck.c (build_object_ref): Remove. (build_component_ref_1): Likewise. (build_x_component_ref): Likewise. (build_class_member_access_expr): New function. (finish_class_member_access_expr): Likewise. (build_ptrmemfunc_access_expr): Likewise. (get_member_function_from_ptrfunc): Use build_ptrmemfunc_access_expr. (build_binary_op): Likewise. (build_unary_op): Likewise. (build_ptrmemfunc): Likewise. (pfn_from_ptrmemfunc): Likewise. * typeck2.c (build_m_component_ref): Adjust comment. * g++.dg/abi/offsetof.C: Tweak error messages. * g++.old-deja/g++.mike/p10769a.C: Likewise. From-SVN: r56117
2002-08-07aix.h (TARGET_ALTIVEC): Define to 0.David Edelsohn3-19/+35
* config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0. (TARGET_ALTIVEC_ABI): Same. (TARGET_ALTIVEC_VRSAVE): Same. * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check icode not CODE_FOR_nothing. Change switch to if. From-SVN: r56115
2002-08-08* config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.Alan Modra2-1/+5
From-SVN: r56113
2002-08-08stor-layout.c (place_union_field): For bitfields if ↵Jakub Jelinek4-0/+83
PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN... * stor-layout.c (place_union_field): For bitfields if PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's TYPE_USER_ALIGN. * gcc.dg/bitfld-3.c: New test. From-SVN: r56112
2002-08-07* pa.c (struct deferred_plabel): Constify name field.John David Anglin2-1/+5
From-SVN: r56110
2002-08-07* cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.Neil Booth2-1/+4
From-SVN: r56109
2002-08-07configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and local_prefix ↵John David Anglin3-2/+8
are the same. * configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and local_prefix are the same. * configure: Rebuilt. From-SVN: r56108
2002-08-07stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN to type_align ↵Jakub Jelinek14-50/+151
when PCC_BITFIELD_TYPE_MATTERS. * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN to type_align when PCC_BITFIELD_TYPE_MATTERS. Only apply ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN. (place_field): Likewise. * config/i386/i386.c (x86_field_alignment): Don't check DECL_USER_ALIGN here. * config/rs6000/rs6000.c (rs6000_field_alignment): New. * config/rs6000/rs6000-protos.h (rs6000_field_alignment): New prototype. * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define. * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove. * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove. * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove. * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove. * doc/tm.texi (ADJUST_FIELD_ALIGN): Update description. * gcc.dg/i386-bitfield1.c: New test. * g++.dg/abi/bitfield3.C: Update. Co-Authored-By: Richard Henderson <rth@redhat.com> From-SVN: r56107
2002-08-07Makefile.in (c-opts.o, [...]): Update.Neil Booth22-701/+1152
* Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update. * c-common.c: Don't include tree-inline.h. (c_common_init_options, c_common_post_options): Move to c-opts.c. * c-common.h (c_common_decode_option): New. * c-decl.c (c_decode_option): Remove. * c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option. * c-opts.c: New file. * c-tree.h (c_decode_option): Remove. * doc/passes.texi: Update. * objc/objc-act.c (objc_decode_option): Remove. * objc/objc-act.h (objc_decode_option): Remove. * objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option. cp: * Make-lang.in (CXX_C_OBJS): Update. * cp-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option. * cp-tree.h (cxx_decode_option): Remove. * decl2.c (compare_options, lang_f_options, unsupported_options, cxx_decode_option): Remove. testsuite: * objc.dg/const-str-2.m: Update. * gcc.dg/cpp/c++98.c: Change to C extension. * gcc.dg/cpp/c++98-pedantic.c: Similarly. * gcc.dg/cpp/cpp.exp: Process .C extensions too. From-SVN: r56105
2002-08-07mips.md (sunlt_sf, [...]): Remove dependency on TARGET_DOUBLE_FLOAT.Chris Demetriou2-3/+8
2002-08-07 Chris Demetriou <cgd@broadcom.com> * config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove dependency on TARGET_DOUBLE_FLOAT. From-SVN: r56102
2002-08-07lib1funcs.asm (GCC_shcompact_incoming_args): Don't overwrite callee-save ↵Stephen Clarke2-67/+73
registers. * config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't overwrite callee-save registers. Fix comment. From-SVN: r56101
2002-08-07Daily bump.GCC Administrator3-3/+3
From-SVN: r56098
2002-08-06mips.c (override_options): Set MASK_BRANCHLIKELY in target_flags based on ISA...Chris Demetriou4-4/+64
2002-08-06 Chris Demetriou <cgd@broadcom.com> * config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY in target_flags based on ISA, if it was not set on the command line. Warn if MASK_BRANCHLIKLEY is set but the ISA does not support Branch Likely instructions. * config/mips/mips.h (MASK_BRANCHLIKLEY): New macro. (TARGET_BRANCHLIKELY): Likewise. (TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely. (GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than ISA_HAS_BRANCHLIKELY. (ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check. * doc/invoke.texi: Document new MIPS -mbranch-likely and -mno-branch-likely options. From-SVN: r56088
2002-08-07* ip2k.c (ip2k_set_compare): Add missing iteration variable.Kaveh R. Ghazi2-0/+3
From-SVN: r56086
2002-08-07Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not $(GCONFIG_H).Kaveh R. Ghazi2-1/+6
* Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not $(GCONFIG_H). From-SVN: r56085
2002-08-07c-decl.c (duplicate_decls): Error out for incompatible TLS declarations.Aldy Hernandez4-0/+35
* c-decl.c (duplicate_decls): Error out for incompatible TLS declarations. * testsuite/gcc.dg/tls/diag-3.c: New. From-SVN: r56084
2002-08-06c-common.c (c_expand_expr): If the last expression is a VAR_DECL with RTL ↵Jason Merrill2-3/+23
that matches the target... * c-common.c (c_expand_expr) [STMT_EXPR]: If the last expression is a VAR_DECL with RTL that matches the target, just return that RTL. From-SVN: r56083
2002-08-07typeck.c (build_x_unary_op): Handle pointer-to-member.Gabriel Dos Reis5-0/+48
cp/ * typeck.c (build_x_unary_op): Handle pointer-to-member. testsuite/ * g++.dg/README (Subdirectories): Document new subdir expr. * g++.dg/expr/pmf-1.C: New test. From-SVN: r56082
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-06Daily bump.GCC Administrator3-3/+3
From-SVN: r56065