URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk/gnu-src/gcc-4.5.1/gcc/cp
- from Rev 283 to Rev 378
- ↔ Reverse comparison
Rev 283 → Rev 378
/init.c
2158,7 → 2158,8
{ |
init_expr = cp_build_indirect_ref (data_addr, RO_NULL, complain); |
|
if (TYPE_NEEDS_CONSTRUCTING (type) && !explicit_value_init_p) |
if (TYPE_NEEDS_CONSTRUCTING (type) |
&& (!explicit_value_init_p || processing_template_decl)) |
{ |
init_expr = build_special_member_call (init_expr, |
complete_ctor_identifier, |
2168,9 → 2169,13
} |
else if (explicit_value_init_p) |
{ |
/* Something like `new int()'. */ |
init_expr = build2 (INIT_EXPR, type, |
init_expr, build_value_init (type)); |
if (processing_template_decl) |
/* Don't worry about it, we'll handle this properly at |
instantiation time. */; |
else |
/* Something like `new int()'. */ |
init_expr = build2 (INIT_EXPR, type, |
init_expr, build_value_init (type)); |
} |
else |
{ |
/decl.c
2077,6 → 2077,10
SET_DECL_INIT_PRIORITY (olddecl, DECL_INIT_PRIORITY (newdecl)); |
DECL_HAS_INIT_PRIORITY_P (olddecl) = 1; |
} |
/* Likewise for DECL_USER_ALIGN and DECL_PACKED. */ |
DECL_USER_ALIGN (olddecl) = DECL_USER_ALIGN (newdecl); |
if (TREE_CODE (newdecl) == FIELD_DECL) |
DECL_PACKED (olddecl) = DECL_PACKED (newdecl); |
|
/* The DECL_LANG_SPECIFIC information in OLDDECL will be replaced |
with that from NEWDECL below. */ |