| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
From-SVN: r80840
|
|
|
|
| |
From-SVN: r55764
|
|
|
|
| |
From-SVN: r55420
|
|
|
|
|
|
|
|
|
|
|
|
| |
functions)
PR c++/7224
* class.c (add_method): Simplify.
PR c++/7224
* g++.dg/overload/error1.C: New test.
From-SVN: r55408
|
|
|
|
|
|
|
|
| |
PR c++/7279
* tree.c (cp_copy_res_decl_for_inlining): Also copy
TREE_ADDRESSABLE.
From-SVN: r55406
|
|
|
|
|
|
|
|
| |
PR c++/6255
* decl.c (lookup_name_real): Build a new TYPENAME_TYPE rather than
modifying the old one.
From-SVN: r55353
|
|
|
|
|
|
|
| |
* pt.c (can_complete_type_without_circularity): Add static to
function definition.
From-SVN: r55327
|
|
|
|
|
|
|
| |
* cvt.c (cp_convert_to_pointer): Call force_fit_type for null
pointers.
From-SVN: r55273
|
|
|
|
|
|
|
|
| |
Fix problem reported in http://gcc.gnu.org/ml/gcc-patches/2002-07/msg00238.html
* decl.c (mark_named_label_lists): Add missing & in call to
mark_binding_level.
From-SVN: r55265
|
|
|
|
|
|
|
|
|
|
|
| |
value optimization generates bad code)
PR optimization/7145
* tree.c (cp_copy_res_decl_for_inlining): Also copy DECL_INITIAL.
[[Split portion of a mixed commit.]]
From-SVN: r55262.1
|
|
|
|
|
|
|
|
|
|
| |
platform(s) where it should be weak)
PR c++/6611
* decl2.c (import_export_decl): If we clear
DECL_NOT_REALLY_EXTERN, make sure DECL_EXTERNAL is set.
From-SVN: r55243
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
multi-dim arrays)
PR c++/6944
* init.c (build_aggr_init): Remove qualifiers of init before calling
build_vec_init.
(build_vec_init): Flatten multi-dimensional array during cleanup.
(build_vec_delete_1): Abort if the type of each element is array.
* g++.dg/init/array4.C: New test.
* g++.dg/init/array5.C: New test.
From-SVN: r55213
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR c++/6716
* pt.c (can_complete_type_without_circularity): New function.
(instantiate_class_template): Use it.
* typeck2.c (incomplete_type_error): Improve error message
due to incomplete fields.
* g++.dg/template/instantiate1.C: New test.
From-SVN: r55181
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR c++/7112
* g++.dg/template/sizeof1.C: New test.
PR c++/7112
* mangle.c (write_expression): Add mangling for sizeof when
applied to a type.
* operators.def: Remove stale comment.
* cp-demangle.c (demangle_operator_name): Add type_arg parameter.
Set it for the "st" operator.
(demangle_expression): Handle expressions with types as arguments.
From-SVN: r55168
|
|
|
|
|
|
|
|
|
|
|
| |
PR c++/6695
* pt.c (tsubst_friend_class): Substitute into the context of the
friend before using it.
PR c++/6695
* g++.dg/template/friend7.C: New file.
From-SVN: r55043
|
|
|
|
|
|
|
| |
* decl.c (finish_function): Change "#ifdef VMS_TARGET" to
"#if VMS_TARGET".
From-SVN: r54933
|
|
|
|
|
|
|
|
| |
* typeck.c (mark_addressable): Don't test TREE_ADDRESSABLE early.
Call put_var_into_stack.
* g++.dg/opt/asm1.C: New.
From-SVN: r54864
|
|
|
|
|
|
|
| |
PR c++/6892
* pt.c (tsubst_expr): Handle FILE_STMT.
From-SVN: r54838
|
|
|
|
|
|
|
|
|
|
|
| |
PR c++/6723
* pt.c (lookup_template_class): Don't build complete argument of
BOUND_TEMPLATE_TEMPLATE_PARM if appeared as a default template
argument.
* g++.dg/template/ttp4.C: New test.
From-SVN: r54837
|
|
|
|
|
|
|
|
|
|
| |
instantiation.
* tree.c (cp_cannot_inline_tree_fn): Don't short-circuit test
after template instantiation.
* g++.dg/opt/inline3.C: New.
From-SVN: r54689
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2002-06-07 H.J. Lu (hjl@gnu.org)
* configure.in: Add --enable-__cxa_atexit.
* configure: Regenerated.
* config.in: Likewise.
* defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
not defined.
2002-06-07 H.J. Lu (hjl@gnu.org)
* decl2.c (flag_use_cxa_atexit): Set to DEFAULT_USE_CXA_ATEXIT.
From-SVN: r54344
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR preprocessor/6517
* Makefile.in: Update.
* c-common.c (c_common_post_options): Add preprocessor
errors to the error count.
* c-lang.c (c_post_options): Kill.
(LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
* hooks.h: Add header guards.
* langhooks-def.h: Include hooks.h.
(LANG_HOOKS_POST_OPTIONS): Update.
* langhooks.h (struct lang_hooks): Update post_options.
* toplev.c (parse_options_and_default_flags): Update.
cp:
* cp-lang.c (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
* cp-tree.h (cxx_post_options): Kill.
* cp-lex.c (cxx_post_options): Kill.
objc:
* objc-lang.c (objc_post_options): Kill.
(LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
From-SVN: r53797
|
|
|
|
| |
From-SVN: r53738
|
|
|
|
| |
From-SVN: r53624
|
|
|
|
|
|
|
|
|
| |
PR c++/186, DR 259
* pt.c (do_decl_instantiation): Don't complain explicit
instantiation after explicit specialization.
(do_type_instantiation): Likewise.
From-SVN: r53622
|
|
|
|
| |
From-SVN: r53504
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* cp-tree.h (struct lang_type): Added non_zero_init.
(CLASS_NON_ZERO_INIT_P): New macro.
(zero_init_p, force_store_init_value, build_forced_zero_init): Declare.
* class.c (check_field_decls): Test non_zero_init.
* cvt.c (convert_to_pointer_force): Use cp_convert_to_pointer for
zero-to-NULL conversions.
* decl.c (obscure_complex_init): Don't reset DECL_INITIAL of a
type that needs zero-initialization without zeros.
(check_initializer_decl): Compute zero-initializer for types
that require a non-trivial one.
* init.c (build_forced_zero_init): New function.
(build_default_init): Use it.
* tree.c (zero_init_p): New function.
* typeck2.c (force_store_init_value): New function.
(process_init_constructor): Create non-trivial zero-initializers
for array members and class fields.
From-SVN: r53501
|
|
|
|
| |
From-SVN: r53469
|
|
|
|
| |
From-SVN: r53466
|
|
|
|
| |
From-SVN: r53112
|
|
|
|
|
|
|
|
|
|
| |
* defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
* c-decl.c (c_init_decl_processing): Use it.
* config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
* config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
* config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
From-SVN: r53087
|
|
|
|
|
|
|
|
|
|
| |
declare this type.
* dwarf2out.c (gen_type_die): Don't recurse if TYPE_NAME doesn't
actually declare this type.
* decl.c (grokdeclarator): Revert last change.
From-SVN: r53084
|
|
|
|
|
|
|
|
|
| |
* init.c (perform_base_cleanups): Correct order of base class
cleanups.
* g++.dg/init/dtor1.C: Make it tougher.
From-SVN: r53060
|
|
|
|
|
|
|
|
|
|
| |
week))
PR c++/6527
* init.c (perform_base_cleanups): Emit cleanups in reverse order
of construction.
From-SVN: r53032
|
|
|
|
| |
From-SVN: r53000
|
|
|
|
| |
From-SVN: r52978
|
|
|
|
|
|
|
|
|
|
|
|
| |
TYPE_HAS_TRIVIAL_INIT_REF is false or...
2002-04-30 Mark Mitchell <mark@codesourcery.com>
* class.c (finish_struct_bits): Only mark TREE_ADDRESSABLE if
TYPE_HAS_TRIVIAL_INIT_REF is false or
TYPE_HAS_NONTRIVIAL_DESTRUCTOR is true.
From-SVN: r52975
|
|
|
|
|
|
|
|
|
|
|
| |
a typedef if...
* decl.c (grokdeclarator): Don't override TYPE_NAME of an
anonymous class with a typedef if there are attributes.
[[Split portion of a mixed commit.]]
From-SVN: r52955.1
|
|
|
|
| |
From-SVN: r52947
|
|
|
|
|
|
|
|
|
| |
as initdcl0_innards expects.
* parse.y (nomods_initdcl0): Do not move stack entries
when setting things up as initdcl0_innards expects.
From-SVN: r52940
|
|
|
|
|
|
|
|
|
|
| |
PR c++/6477
* decl.c (follow_tag_typedef): Check if TYPE_NAME (original) is
non-NULL first.
* g++.dg/parse/typedef1.C: New test.
From-SVN: r52896
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR c++/6492
* pt.c (tsubst_friend_class): If the friend has an explicit scope,
enter that scope before name lookup.
PR c++/6486
* method.c (do_build_copy_constructor): Avoid building
cv-qualified reference types.
PR c++/6486
* g++.dg/template/friend6.C: New test.
PR c++/6492
* g++.dg/init/copy1.C: New test.
From-SVN: r52894
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
const T& )')
cp:
PR c++/5719
* decl.c (grok_op_properties): Assignment ops don't have to return
by value. operator% should.
testsuite:
* g++.dg/warn/effc1.C: New test.
From-SVN: r52887
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
PR c/6343
* c-decl.c (duplicate_decls): Call merge_weak.
* c-pragma.c (apply_pragma_weak): Warn about misuse.
* output.h (merge_weak): Prototype merge_weak.
* varasm.c (merge_weak): New function.
(declare_weak): Make sure we don't give an error on VAR_DECLs.
Mark RTL with SYMBOL_REF_WEAK.
cp:
* decl.c (duplicate_decls): Call merge_weak.
testsuite:
* gcc.dg/weak-[2-7].c: New tests.
From-SVN: r52848
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR bootstrap/6445
* config/i386/i386.md (untyped_call): Return the value in a float
register if TARGET_FLOAT_RETURNS_IN_80387, not just if
TARGET_80387.
PR c++/6497
* method.c (do_build_assign_ref): Pass a derivation to
build_method_call when calling base class assignment operators.
PR c++/6497
* g++.dg/inherit/access2.C: New test.
PR bootstrap/6445
* gcc.dg/20020426-1.c: New test.
From-SVN: r52808
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
type.
2002-04-24 Mark Mitchell <mark@codesourcery.com>
* mangle.c (write_type): Don't use TYPE_MAIN_VARIANT when writing
out an array type.
(write_CV_qualifiers_for_type): Use TYPE_QUALS, not cp_type_quals,
to determine qualifiers.
From-SVN: r52748
|
|
|
|
|
|
|
|
|
|
|
| |
unconditional.
* typeck.c (build_modify_expr): The pedwarn for array assignment is
now unconditional.
* tree.c (build_cplus_array_type_1): Still process simple array types
normally in templates.
From-SVN: r52747
|
|
|
|
|
|
|
| |
* cvt.c (convert_to_void): Don't unconditionally make COND_EXPRs
void.
From-SVN: r52741
|
|
|
|
|
|
|
|
| |
PR c++/6331
* method.c (do_build_copy_constructor): Use cp_build_qualified_type.
* typeck.c (build_modify_expr): Allow arrays to differ in cv-quals.
From-SVN: r52710
|
|
|
|
|
|
|
|
| |
PR c++/6395
* decl.c (make_rtl_for_nonlocal_decl): Don't mess with #pragma i/i
stuff for comdats.
From-SVN: r52697
|