OSDN Git Service

pf3gnuchains/gcc-fork.git
21 years ago More AWT/Swing merge from GNU Classpath.
bryce [Fri, 9 Aug 2002 04:32:43 +0000 (04:32 +0000)]
More AWT/Swing merge from GNU Classpath.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56149 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoMore AWT/Swing merge from GNU Classpath.
bryce [Fri, 9 Aug 2002 04:29:59 +0000 (04:29 +0000)]
More AWT/Swing merge from GNU Classpath.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56148 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago AWT/Swing merge from GNU Classpath.
bryce [Fri, 9 Aug 2002 04:26:17 +0000 (04:26 +0000)]
AWT/Swing merge from GNU Classpath.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56147 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2002-08-08 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
bryce [Fri, 9 Aug 2002 03:52:23 +0000 (03:52 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56146 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agocleanup whitespacing a tad.
mrs [Fri, 9 Aug 2002 01:44:29 +0000 (01:44 +0000)]
cleanup whitespacing a tad.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56145 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * call.c (add_builtin_candidate): legal -> valid, illegal -> invalid.
mrs [Fri, 9 Aug 2002 01:16:39 +0000 (01:16 +0000)]
    * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56144 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/i386/i386.c (legitimate_constant_p): UNSPEC_TP is not
jakub [Fri, 9 Aug 2002 00:01:12 +0000 (00:01 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56143 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * objc/objc-act.c (build_selector_translation_table): Issue
dpatel [Thu, 8 Aug 2002 23:14:19 +0000 (23:14 +0000)]
    * 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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56142 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * g++.dg/abi/bitfield4.c: New test.
nathan [Thu, 8 Aug 2002 22:52:20 +0000 (22:52 +0000)]
* g++.dg/abi/bitfield4.c: New test.
* gcc.dg/bitfld-4.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56140 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2002-08-08 Stephen Clarke <stephen.clarke@superh.com>
amylaar [Thu, 8 Aug 2002 21:57:52 +0000 (21:57 +0000)]
2002-08-08  Stephen Clarke <stephen.clarke@superh.com>

* config/sh/sh.c (prepare_move_operands): Only call
target_reg_operand if TARGET_SHMEDIA.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56139 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * typeck.c (build_class_member_access_expr): Do not return
mmitchel [Thu, 8 Aug 2002 21:28:40 +0000 (21:28 +0000)]
* typeck.c (build_class_member_access_expr): Do not return
error_mark_node when no error has occurred.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56138 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/rs6000/rs6000.h, config/rs6000/aix.h,
jakub [Thu, 8 Aug 2002 17:55:37 +0000 (17:55 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56135 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * emit-rtl.c (gen_rtx_REG): After reload, only return
rth [Thu, 8 Aug 2002 17:17:09 +0000 (17:17 +0000)]
    * emit-rtl.c (gen_rtx_REG): After reload, only return
        frame_pointer_rtx or hard_frame_pointer_rtx if frame_pointer_needed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56133 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agocp:
nathan [Thu, 8 Aug 2002 15:59:33 +0000 (15:59 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56132 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove.
jakub [Thu, 8 Aug 2002 15:00:30 +0000 (15:00 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56131 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agooops - minor formatting tidy ups to previous delta
nickc [Thu, 8 Aug 2002 11:24:01 +0000 (11:24 +0000)]
oops - minor formatting tidy ups to previous delta

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56129 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago* config/arm/arm.c (thumb_unexpanded_epilogue): Stack the PIC register.
nickc [Thu, 8 Aug 2002 11:08:34 +0000 (11:08 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56128 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * class.c (convert_to_base): Correct check for error_mark_node.
nathan [Thu, 8 Aug 2002 10:14:15 +0000 (10:14 +0000)]
* class.c (convert_to_base): Correct check for error_mark_node.
(create_vtable_ptr): Remove unused VFUNS_P parm

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56127 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * configure.in (enable_coverage): New enable switch.
nathan [Thu, 8 Aug 2002 09:10:39 +0000 (09:10 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56126 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoDaily bump.
gccadmin [Thu, 8 Aug 2002 07:17:17 +0000 (07:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56125 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * c-opts.c (cpp_opts): New.
neil [Thu, 8 Aug 2002 06:30:13 +0000 (06:30 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56119 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago Rework build_component_ref.
mmitchel [Thu, 8 Aug 2002 05:48:39 +0000 (05:48 +0000)]
Rework build_component_ref.
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56117 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0.
dje [Thu, 8 Aug 2002 01:23:01 +0000 (01:23 +0000)]
    * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56115 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.
amodra [Wed, 7 Aug 2002 23:57:10 +0000 (23:57 +0000)]
* config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56113 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * stor-layout.c (place_union_field): For bitfields if
jakub [Wed, 7 Aug 2002 23:20:35 +0000 (23:20 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56112 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * pa.c (struct deferred_plabel): Constify name field.
danglin [Wed, 7 Aug 2002 22:03:58 +0000 (22:03 +0000)]
* pa.c (struct deferred_plabel): Constify name field.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56110 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.
neil [Wed, 7 Aug 2002 21:47:47 +0000 (21:47 +0000)]
* cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56109 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
danglin [Wed, 7 Aug 2002 21:38:47 +0000 (21:38 +0000)]
* configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
local_prefix are the same.
* configure: Rebuilt.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56108 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
jakub [Wed, 7 Aug 2002 21:05:16 +0000 (21:05 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56107 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago* regex.c (re_error_msgid): Just use a simple array of strings.
dj [Wed, 7 Aug 2002 20:57:22 +0000 (20:57 +0000)]
* regex.c (re_error_msgid): Just use a simple array of strings.
(re_compile_pattern): Compensate.
(re_comp): Likewise.
(re_comp): Likewise.
(regerror): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56106 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
neil [Wed, 7 Aug 2002 18:32:13 +0000 (18:32 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56105 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2002-08-07 Chris Demetriou <cgd@broadcom.com>
cgd [Wed, 7 Aug 2002 17:42:56 +0000 (17:42 +0000)]
2002-08-07  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove
        dependency on TARGET_DOUBLE_FLOAT.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56102 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
amylaar [Wed, 7 Aug 2002 16:53:25 +0000 (16:53 +0000)]
* config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
overwrite callee-save registers.  Fix comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56101 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * libsupc++/Makefile.am (LTCOMPILE): Add LIBSUPCXX_PICFLAGS.
danglin [Wed, 7 Aug 2002 15:56:11 +0000 (15:56 +0000)]
* libsupc++/Makefile.am (LTCOMPILE): Add LIBSUPCXX_PICFLAGS.
* libsupc++/Makefile.in: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56099 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoDaily bump.
gccadmin [Wed, 7 Aug 2002 07:17:51 +0000 (07:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56098 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2002-08-07 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
bryce [Wed, 7 Aug 2002 05:28:24 +0000 (05:28 +0000)]
2002-08-07  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>

* java/lang/ClassLoader.java (getSystemClassLoader, findClass,
defineClass, setSigners, getSystemResource, getSystemResourceAsStream,
findResource, getResources, findResources): Add javadoc from classpath.
(getSystemResources): Implemented.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56092 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2002-08-06 Chris Demetriou <cgd@broadcom.com>
cgd [Wed, 7 Aug 2002 02:57:53 +0000 (02:57 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56088 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * ip2k.c (ip2k_set_compare): Add missing iteration variable.
ghazi [Wed, 7 Aug 2002 01:58:49 +0000 (01:58 +0000)]
* ip2k.c (ip2k_set_compare): Add missing iteration variable.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56086 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
ghazi [Wed, 7 Aug 2002 01:57:38 +0000 (01:57 +0000)]
* Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
$(GCONFIG_H).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56085 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * c-decl.c (duplicate_decls): Error out for incompatible TLS
aldyh [Wed, 7 Aug 2002 01:25:01 +0000 (01:25 +0000)]
    * c-decl.c (duplicate_decls): Error out for incompatible TLS
        declarations.

        * testsuite/gcc.dg/tls/diag-3.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56084 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * c-common.c (c_expand_expr) [STMT_EXPR]: If the last expression is
jason [Wed, 7 Aug 2002 00:52:24 +0000 (00:52 +0000)]
    * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56083 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agocp/
gdr [Wed, 7 Aug 2002 00:38:00 +0000 (00:38 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56082 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoMark __func__ with line number 0, to avoid confusing debuggers.
dalej [Tue, 6 Aug 2002 23:36:22 +0000 (23:36 +0000)]
Mark __func__ with line number 0, to avoid confusing debuggers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56081 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * gcov.c: Tidy.
nathan [Tue, 6 Aug 2002 23:18:01 +0000 (23:18 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56080 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * dwarf2out.c: Remove unused macros.
neil [Tue, 6 Aug 2002 20:43:46 +0000 (20:43 +0000)]
* dwarf2out.c: Remove unused macros.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56079 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * function.c (TRAMPOLINE_ALIGNMENT): Always defined.
neil [Tue, 6 Aug 2002 20:39:41 +0000 (20:39 +0000)]
* function.c (TRAMPOLINE_ALIGNMENT): Always defined.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56078 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * cppinit.c (struct lang_flags): Rename trigraphs std.
neil [Tue, 6 Aug 2002 20:35:46 +0000 (20:35 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56077 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
jakub [Tue, 6 Aug 2002 18:33:21 +0000 (18:33 +0000)]
* config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56075 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoFix ChangeLog entry.
jakub [Tue, 6 Aug 2002 15:38:10 +0000 (15:38 +0000)]
Fix ChangeLog entry.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56073 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
jakub [Tue, 6 Aug 2002 15:36:40 +0000 (15:36 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56072 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
jakub [Tue, 6 Aug 2002 15:29:24 +0000 (15:29 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56071 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * doc/install.texi (Binaries): Update Bull Freeware URL.
dje [Tue, 6 Aug 2002 15:08:07 +0000 (15:08 +0000)]
    * doc/install.texi (Binaries): Update Bull Freeware URL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56069 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * g77.texi (Top): Rename Index to Keyword Index.
gerald [Tue, 6 Aug 2002 14:00:43 +0000 (14:00 +0000)]
* g77.texi (Top): Rename Index to Keyword Index.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56068 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * doc/gcc.texi (Top): Rename Index to Keyword Index.
gerald [Tue, 6 Aug 2002 13:10:09 +0000 (13:10 +0000)]
* doc/gcc.texi (Top): Rename Index to Keyword Index.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56067 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoAdd hppa-openbsd target
nickc [Tue, 6 Aug 2002 09:26:29 +0000 (09:26 +0000)]
Add hppa-openbsd target

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56066 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoDaily bump.
gccadmin [Tue, 6 Aug 2002 07:17:24 +0000 (07:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56065 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agogcc:
nathan [Mon, 5 Aug 2002 22:16:51 +0000 (22:16 +0000)]
gcc:
* gcov.c (output_data): Round to % to nearest, tweak formatting.
testsuite:
* lib/gcov.exp: Tweak expected line formats.
* gcc.misc-tests/gcov8.c: New test.
* gcc.misc-tests/gcov8.x: New flags.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56059 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
jakub [Mon, 5 Aug 2002 19:26:27 +0000 (19:26 +0000)]
* fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
of the operands into MINUS_EXPR if code is PLUS_EXPR.

* gcc.c-torture/execute/20020805-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56058 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * consistency.vlad/layout/endian.c: Include string.h.
jakub [Mon, 5 Aug 2002 19:19:32 +0000 (19:19 +0000)]
* consistency.vlad/layout/endian.c: Include string.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56057 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2002-08-05 Douglas B Rupp <rupp@gnat.com>
rupp [Mon, 5 Aug 2002 18:53:16 +0000 (18:53 +0000)]
2002-08-05  Douglas B Rupp  <rupp@gnat.com>

* config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
* config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
drectve_section): Define.
* config/i386/t-interix: Replace interix.o rule with winnt.o.
* config/i386/interix.c: Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56056 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoIndex: ChangeLog
geoffk [Mon, 5 Aug 2002 18:46:37 +0000 (18:46 +0000)]
Index: ChangeLog
2002-08-05  Geoffrey Keating  <geoffk@redhat.com>

* attribs.c: Don't include obstack.h.
* builtins.c: Likewise.
* cfganal.c: Likewise.
* cfgbuild.c: Likewise.
* cfgcleanup.c: Likewise.
* emit-rtl.c: Likewise.
* loop.c: Likewise.
* stmt.c: Likewise.

Index: cp/ChangeLog
2002-08-05  Geoffrey Keating  <geoffk@redhat.com>

* class.c: Don't include obstack.h.
(popclass):
* decl2.c: Delete bogus comment.
* error.c: Don't include obstack.h.
* except.c: Likewise.
(dump_type): Correct comment.
* method.c: Don't include obstack.h.
* tree.c: Likewise.

Index: java/ChangeLog
2002-08-05  Geoffrey Keating  <geoffk@redhat.com>

* mangle_name.c: Don't include obstack.h twice.
* xref.c: Don't include obstack.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56055 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
geoffk [Mon, 5 Aug 2002 18:45:26 +0000 (18:45 +0000)]
* Makefile.in (s-gtype): Re-add dependency on $(GTFILES).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56054 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
gdr [Mon, 5 Aug 2002 15:50:10 +0000 (15:50 +0000)]
* doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56050 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoAdd missing file
bernds [Mon, 5 Aug 2002 11:41:05 +0000 (11:41 +0000)]
Add missing file

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56049 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2002-08-05 Toon Moene <toon@moene.indiv.nluug.nl>
toon [Mon, 5 Aug 2002 09:23:43 +0000 (09:23 +0000)]
2002-08-05  Toon Moene  <toon@moene.indiv.nluug.nl>

* invoke.texi: Improve description of
-fno-finite-math-only flag.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56048 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoDaily bump.
gccadmin [Mon, 5 Aug 2002 07:17:11 +0000 (07:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56047 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2002-08-04 Chris Demetriou <cgd@broadcom.com>
cgd [Mon, 5 Aug 2002 05:36:20 +0000 (05:36 +0000)]
2002-08-04  Chris Demetriou  <cgd@broadcom.com>

        * doc/invoke.texi: Remove duplicated paragraph describing
        TARGET_SWITCHES.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56040 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agocp/
gdr [Mon, 5 Aug 2002 03:56:16 +0000 (03:56 +0000)]
cp/
        Fix PR/2213
        * cvt.c (cp_convert_to_pointer): Reject conversions from integral
        expressions to pointer-to-data-member of pointer-to-member-functions.

testsuite/
        * g++.dg/other/conversion1.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56039 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * doc/install.texi (Installing GCC): Refer to buildstat.html,
mmitchel [Mon, 5 Aug 2002 03:40:38 +0000 (03:40 +0000)]
* doc/install.texi (Installing GCC): Refer to buildstat.html,
rather than listing version-specific build status files.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56038 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago PR/7491
gdr [Mon, 5 Aug 2002 02:09:27 +0000 (02:09 +0000)]
PR/7491
* include/bits/slice_array.h(_DEFINE_VALARRAY_OPERATOR):
Instantiate with new function objects.
* include/bits/mask_array.h (_DEFINE_VALARRAY_OPERATOR): Likewise.
Reformat.  Uglify.
* include/bits/gslice_array.h: Likewise.
* include/bits/indirect_array.h: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56036 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoIndex: ChangeLog
geoffk [Sun, 4 Aug 2002 22:45:31 +0000 (22:45 +0000)]
Index: ChangeLog
2002-08-04  Geoffrey Keating  <geoffk@redhat.com>

* Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
* collect2.h (permanent_obstack): Delete declaration.
* collect2.c (permanent_obstack): Delete definition.
(main): Don't initialise permanent_obstack.  Use xstrdup instead.
* expr.c: Don't include obstack.h.
(permanent_obstack): Delete declaration.
* function.c: Don't include obstack.h.
(permanent_obstack): Delete declaration.
* integrate.c: Don't include obstack.h.
(function_maybepermanent_obstack): Delete declaration.
* print-tree.c (debug_tree): Use x*alloc not permalloc.
* sdbout.c (gen_fake_label): Use x*alloc not permalloc.
* tlink.c (pfgets): Use xstrdup not permanent_obstack.
* toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
* tree.h: Rename init_obstacks to init_ttree.  Remove declarations
of permalloc, expralloc, perm_calloc.
* tree.c (permanent_obstack): Delete definition.
(init_ttree): Rename from init_obstacks.
(permalloc): Delete.
(perm_calloc): Delete.
(dump_tree_statistics): Don't print information about
permanent_obstack.
* varasm.c (assemble_start_function): Use xstrdup instead of
permalloc/strcpy.
(assemble_variable): Likewise.
* config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
permalloc.
(unicosmk_add_extern): Likewise.
* config/c4x/c4x.c (c4x_external_ref): Likewise.
(c4x_global_label): Likewise.
* config/frv/frv.c (frv_encode_section_info): Likewise.
* config/i386/winnt.c (i386_pe_record_external_function): Likewise.
(i386_pe_record_exported_symbol): Likewise.
* config/mips/mips.c (mips_output_external): Likewise.
(mips_output_external_libcall): Likewise.
* config/pa/pa.c: (permanent_obstack): Delete declaration.
(output_call): Use ggc_strdup instead of allocating on
permanent_obstack.
* config/romp/romp.c: Include ggc.h.
(get_symref): Don't declare permanent_obstack, use ggc_strdup
intead of permanent_obstack.
* config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
instead of permalloc.
* config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
instead of permalloc
* config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
instead of permalloc.
* config/vax/vax.c (vms_check_external): Use xmalloc instead of
permalloc.

Index: cp/ChangeLog
2002-08-04  Geoffrey Keating  <geoffk@redhat.com>

* cvt.c (ocp_convert): Delete obsolete code.
* parse.y (permanent_obstack): Delete declaration.
* pt.c (permanent_obstack): Delete declaration.
* repo.c (permanent_obstack): Delete declaration.
(open_repo_file): Use xmalloc instead of permanent_obstack.
(init_repo): Use xstrdup instead of permanent_obstack.

Index: java/ChangeLog
2002-08-04  Geoffrey Keating  <geoffk@redhat.com>

* class.c: (permanent_obstack): Delete declaration.
* constants.c: (permanent_obstack): Delete declaration.
* except.c: (permanent_obstack): Delete declaration.
* expr.c: (permanent_obstack): Delete declaration.
* jcf-parse.c: (permanent_obstack): Delete declaration.
(saveable_obstack): Delete declaration.
* parse.h: (permanent_obstack): Delete declaration.
* typeck.c: (permanent_obstack): Delete declaration.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56035 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoRemove one of the files checked in previously
bernds [Sun, 4 Aug 2002 21:07:49 +0000 (21:07 +0000)]
Remove one of the files checked in previously

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56033 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2002-08-04 H.J. Lu (hjl@gnu.org)
hjl [Sun, 4 Aug 2002 19:40:07 +0000 (19:40 +0000)]
2002-08-04  H.J. Lu  (hjl@gnu.org)

* configure.in (mips*-*-linux*): Don't skip target-libffi.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56030 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoAdd the FRV port
bernds [Sun, 4 Aug 2002 19:37:03 +0000 (19:37 +0000)]
Add the FRV port

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56029 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * gcov.c (bb_file_time): New static variable.
nathan [Sun, 4 Aug 2002 17:06:10 +0000 (17:06 +0000)]
* gcov.c (bb_file_time): New static variable.
(object_directory): May also be object file.
(preserve_paths): New static variable.
(print_usage): Adjust.
(options): Adjust.
(process_args): Adjust.
(open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
file. Find modification date on bb file.
(read_profile): Don't rewind a NULL file.
(format_hwint): New static function.
(function_summary): Use format_hwint.
(output_data): SOURCE_FILE_NAME is never relative to
OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
mangling. Adjust output format to make it more machine readable.
* doc/gcov.texi: Document & clarify semantics.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56028 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.
jsm28 [Sun, 4 Aug 2002 16:55:06 +0000 (16:55 +0000)]
* doc/include/gcc-common.texi (version-GCC): Increase to 3.3.

java:
* gcj.texi (version-gcc): Increase to 3.3.

f:
* root.texi (version-gcc): Increase to 3.3.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56026 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * gcc.c (cc1_options): Pass output file as auxbase when
nathan [Sun, 4 Aug 2002 16:21:02 +0000 (16:21 +0000)]
* gcc.c (cc1_options): Pass output file as auxbase when
appropriate.
* profile.c (init_branch_prob): FILENAME has already had ending
stripped.
* final.c (end_final): Likewise.
* toplev.c (aux_base_name): New global.
(compile_file): Pass aux_base_name to init init_branch_prob and
end_final.
(independent_decode_option, case 'a'): New auxinfo options.
(case 'd'): Protect against mising basename.
(do_compile): Initialize aux_base_name.
* toplev.h (aux_base_name): New global.
* doc/invoke.texi: Adjust documentation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56025 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/i386/i386.c (x86_field_alignment): Remove duplicate test
nathan [Sun, 4 Aug 2002 14:53:45 +0000 (14:53 +0000)]
* config/i386/i386.c (x86_field_alignment): Remove duplicate test
of TARGET_ALIGN_DOUBLE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56024 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * cp-tree.h (VF_DERIVED_VALUE): Remove.
nathan [Sun, 4 Aug 2002 14:43:46 +0000 (14:43 +0000)]
* cp-tree.h (VF_DERIVED_VALUE): Remove.
* class.c (finish_struct_1): Use VF_BINFO_VALUE not VF_DERIVED_VALUE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56023 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * diagnostic.c (inform): New function.
gdr [Sun, 4 Aug 2002 14:38:40 +0000 (14:38 +0000)]
* diagnostic.c (inform): New function.
* diagnostic.h (inform): Declare.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56022 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago PR 7470.
nathan [Sun, 4 Aug 2002 13:13:56 +0000 (13:13 +0000)]
PR 7470.
C++ ABI change - vfunc ordering.
* class.c (add_virtual_function): Remove.
(dfs_modify_all_vtables): Take list of all declared
virtuals. Assign all that are not in primary base.
(check_for_override): Adjust comments.
(create_vtable_ptr): Take single list of virtuals. Build chain
of declared virtuals here.
(layout_class_type): Take single list of virtuals. Adjust.
(finish_struct_1): Keep virtuals on single list. Adjust.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56021 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoDaily bump.
gccadmin [Sun, 4 Aug 2002 07:17:06 +0000 (07:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56019 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * gcc.dg/builtins-1.c: New testcase.
sayle [Sun, 4 Aug 2002 02:08:20 +0000 (02:08 +0000)]
* gcc.dg/builtins-1.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56012 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
dje [Sat, 3 Aug 2002 23:23:49 +0000 (23:23 +0000)]
    * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
        (movhi_internal): Same.
        (movqi_internal): Same.
        (movdi_internal64): Same.

        * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405.

        * config/rs6000/xcoff.h (SKIP_ASM_OP): Define.
        (ASM_OUTPUT_SKIP): Use it.  SIZE unsigned.
        (COMMON_ASM_OP): Define.
        (ASM_OUTPUT_ALIGNED_COMMON): Use it.  SIZE unsigned.
        Use ALIGN parameter.
        (LOCAL_COMMON_ASM_OP): Define.
        (ASM_OUTPUT_LOCAL): Use it.  SIZE unsigned.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56011 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * builtins.def: Define new builtin functions exp, expf, expl,
sayle [Sat, 3 Aug 2002 23:21:31 +0000 (23:21 +0000)]
* builtins.def: Define new builtin functions exp, expf, expl,
log, logf and logl (and their __builtin_* variants).
* optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
Define exp_optab and log_optab.
* optabs.c (init_optans): Initialize exp_optab and log_optab.
* genopinit.c (optabs): Implement exp_optab and log_optab
using exp?f2 and log?f2 patterns.
* builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
and BUILT_IN_LOG* using exp_optab and log_optab respectively.
(expand_builtin): Ignore the new builtins (and all cos and
sin variants) when not optimizing.  Expand new builtins via
expand_builtin_mathfn when flag_unsafe_math_optimizations.

* doc/extend.texi: Document new exp and log builtins.
* doc/md.texi: Document new exp?f2 and log?f2 patterns
(and previously undocumented cos?f2 and sin?f2 patterns).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56010 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * explow.c (int_expr_size): New fn.
jason [Sat, 3 Aug 2002 20:20:35 +0000 (20:20 +0000)]
    * explow.c (int_expr_size): New fn.
        * expr.c (expand_expr) [CONSTRUCTOR]: Use it.
        * expr.h: Declare it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56009 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * testsuite/26_numerics/valarray_name_lookup.cc: Rename from
gdr [Sat, 3 Aug 2002 19:56:17 +0000 (19:56 +0000)]
* testsuite/26_numerics/valarray_name_lookup.cc: Rename from
testsuite/26_numerics/valarray_name_lookup.C

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56008 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoDaily bump.
gccadmin [Sat, 3 Aug 2002 07:17:08 +0000 (07:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56007 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * include/bits/valarray_array.h (_DEFINE_ARRAY_FUNCTION): Use our
gdr [Fri, 2 Aug 2002 23:08:40 +0000 (23:08 +0000)]
* include/bits/valarray_array.h (_DEFINE_ARRAY_FUNCTION): Use our
object function surrogates.
* include/bits/valarray_meta.h (__shift_left): Fix typo.
(_BinFunClos<>): Remove.
(_BinFunBase<>): Likewise.
(_BinFunBase1<>):Likewise.
(_BinFunBase2<>): Likewise.
(_DEFINE_EXPR_RELATIONAL_OPERATOR): Likewise.
(_DEFINE_EXPR_UNARY_OPERATOR): Adjust definition.
(_DEFINE_EXPR_BINARY_OPERATOR): Likewise.
(_DEFINE_EXPR_BINARY_FUNCTION): Likewise.
* include/std/std_valarray.h: Dont #include <functional> anymore.
(_Bitwise_or<>, _Bitwise_and<>, _Bitwise_xor<>, _Shift_left<>,
_Shift_right<>): Remove.
(_DEFINE_VALARRAY_AUGMENTED_ASSIGNMENT): Adjust instantiation.
(_DEFINE_BINARY_OPERATOR): Tweak definition.
(_DEFINE_LOGICAL_OPERATOR): Remove.
* testsuite/26_numerics/valarray_name_lookup.C (main): Add more tests.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56001 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * init.c (build_member_call): Use build_new_method_call, not
mmitchel [Fri, 2 Aug 2002 22:42:03 +0000 (22:42 +0000)]
* init.c (build_member_call): Use build_new_method_call, not
build_method_call.
* g++.dg/inherit/access3.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56000 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
kristerw [Fri, 2 Aug 2002 22:30:09 +0000 (22:30 +0000)]
    * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
        gengtype-* dependencies.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55999 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2002-08-02 Eric Christopher <echristo@redhat.com>
echristo [Fri, 2 Aug 2002 20:22:35 +0000 (20:22 +0000)]
2002-08-02  Eric Christopher  <echristo@redhat.com>

* config.gcc (mips*-*-linux*): Fix ordering of tm_file.
* config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change
#ifndef to #undef.
(TARGET_MEM_FUNCTIONS): Define instead of define to 1.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55998 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * Make-lang.in (spew.o, lex.o, pt.o): Add path to parse.h dependencies.
kristerw [Fri, 2 Aug 2002 19:43:25 +0000 (19:43 +0000)]
    * Make-lang.in (spew.o, lex.o, pt.o): Add path to parse.h dependencies.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55997 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * MAINTAINERS (Write After Approval): Add myself.
kristerw [Fri, 2 Aug 2002 19:02:33 +0000 (19:02 +0000)]
* MAINTAINERS (Write After Approval): Add myself.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55996 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoFix typo
mmitchel [Fri, 2 Aug 2002 18:56:48 +0000 (18:56 +0000)]
Fix typo

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55995 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * call.c (build_method_call): Issue a more helpful error message
mmitchel [Fri, 2 Aug 2002 18:53:40 +0000 (18:53 +0000)]
* call.c (build_method_call): Issue a more helpful error message
about ambiguous method names.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55994 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * include/bits/valarray_meta.h (_UnFunBase<>): Remove.
gdr [Fri, 2 Aug 2002 18:10:38 +0000 (18:10 +0000)]
* include/bits/valarray_meta.h (_UnFunBase<>): Remove.
(_UnFunClos<>): Same.
(_UnBase<>): Reformat.  Make first template-parameter non
template.
(_UnClos<>): Likewise.
(_Expr<>): Reformate.  Adjust unary member operator return types.
(_DEFINE_EXPR_UNARY_OPERATOR): Adjust definition.
(_DEFINE_EXPR_UNARY_FUNCTION): Likewise.
* include/std/std_valarray.h (_UnClos<>): Adjust declaration.
(valarray<>::_UnaryOp<>):  New nested traits. Adjust unary member
operator return types.  Reformat.
(_Bitwise_not): Remove.
(_DEFINE_VALARRAY_UNARY_OPERATOR): Adjust definition.
* testsuite/26_numerics/valarray_name_lookup.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55993 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * tree.c (build_shared_int_cst): Make cache file scope, and
nathan [Fri, 2 Aug 2002 17:21:34 +0000 (17:21 +0000)]
* tree.c (build_shared_int_cst): Make cache file scope, and
GTY it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55992 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago PR optimize/7067
dje [Fri, 2 Aug 2002 16:25:43 +0000 (16:25 +0000)]
    PR optimize/7067
        * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
        small if optimizing for size.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55991 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2002-08-02 Danny Smith <dannysmith@users.sourceforge.net>
bkoz [Fri, 2 Aug 2002 16:10:37 +0000 (16:10 +0000)]
2002-08-02  Danny Smith  <dannysmith@users.sourceforge.net>

* config/os/newlib/ctype_inline.h (is): Don't offset _M_table.
(scan_is): Use this->is.
(scan_not): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55990 138bc75d-0d04-0410-961f-82ee72b054a4