Changeset 1600
- Timestamp:
- Nov 4, 2004, 1:37:17 AM (21 years ago)
- Location:
- trunk/src/gcc
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gcc/configure
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r1599 r1600 90 90 target_makefile_frag= 91 91 undefs=NOUNDEFS 92 version="$Revision: 1.49 $"92 version="$Revision: 1.49.4.1 $" 93 93 x11=default 94 94 bindir='${exec_prefix}/bin' … … 698 698 # Perform the same cleanup as the trap handler, minus the "exit 1" of course, 699 699 # and reset the trap handler. 700 trap 0700 trap '' 0 701 701 rm -rf Makefile* ${tmpdir} 702 702 # Execute the final clean-up actions … … 1598 1598 # and reset the trap handler. 1599 1599 rm -rf ${tmpdir} 1600 trap 01600 trap '' 0 1601 1601 1602 1602 exit 0 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/cp/decl.c
-
Property cvs2svn:cvs-rev
changed from
1.5
to1.6
r1599 r1600 148 148 static void expand_static_init (tree, tree); 149 149 static tree next_initializable_field (tree); 150 static bool reshape_init_array (tree, tree, tree *, tree); 150 151 static tree reshape_init (tree, tree *); 151 152 … … 8227 8228 } 8228 8229 8230 /* Subroutine of reshape_init. Reshape the constructor for an array. INITP 8231 is the pointer to the old constructor list (to the CONSTRUCTOR_ELTS of 8232 the CONSTRUCTOR we are processing), while NEW_INIT is the CONSTRUCTOR we 8233 are building. 8234 ELT_TYPE is the element type of the array. MAX_INDEX is an INTEGER_CST 8235 representing the size of the array minus one (the maximum index), or 8236 NULL_TREE if the array was declared without specifying the size. */ 8237 8238 static bool 8239 reshape_init_array (tree elt_type, tree max_index, 8240 tree *initp, tree new_init) 8241 { 8242 bool sized_array_p = (max_index != NULL_TREE); 8243 HOST_WIDE_INT max_index_cst = 0; 8244 HOST_WIDE_INT index; 8245 8246 if (sized_array_p) 8247 /* HWI is either 32bit or 64bit, so it must be enough to represent the 8248 array size. */ 8249 max_index_cst = tree_low_cst (max_index, 1); 8250 8251 /* Loop until there are no more initializers. */ 8252 for (index = 0; 8253 *initp && (!sized_array_p || index <= max_index_cst); 8254 ++index) 8255 { 8256 tree element_init; 8257 tree designated_index; 8258 8259 element_init = reshape_init (elt_type, initp); 8260 if (element_init == error_mark_node) 8261 return false; 8262 TREE_CHAIN (element_init) = CONSTRUCTOR_ELTS (new_init); 8263 CONSTRUCTOR_ELTS (new_init) = element_init; 8264 designated_index = TREE_PURPOSE (element_init); 8265 if (designated_index) 8266 { 8267 if (TREE_CODE (designated_index) != INTEGER_CST) 8268 abort (); 8269 if (sized_array_p 8270 && tree_int_cst_lt (max_index, designated_index)) 8271 { 8272 error ("Designated initializer `%E' larger than array " 8273 "size", designated_index); 8274 TREE_PURPOSE (element_init) = NULL_TREE; 8275 } 8276 else 8277 index = tree_low_cst (designated_index, 1); 8278 } 8279 } 8280 8281 return true; 8282 } 8283 8229 8284 /* Undo the brace-elision allowed by [dcl.init.aggr] in a 8230 8285 brace-enclosed aggregate initializer. … … 8402 8457 else if ((TREE_CODE (type) == ARRAY_TYPE)|| (TREE_CODE (type) == VECTOR_TYPE)) 8403 8458 { 8404 tree index;8405 8459 tree max_index; 8406 8460 … … 8409 8463 max_index = ((TYPE_DOMAIN (type) && (TREE_CODE (type) == ARRAY_TYPE)) 8410 8464 ? array_type_nelts (type) : NULL_TREE); 8411 /* Loop through the array elements, gathering initializers. */ 8412 for (index = size_zero_node; 8413 *initp && (!max_index || !tree_int_cst_lt (max_index, index)); 8414 index = size_binop (PLUS_EXPR, index, size_one_node)) 8415 { 8416 tree element_init; 8417 8418 element_init = reshape_init (TREE_TYPE (type), initp); 8419 if (element_init == error_mark_node) 8420 return error_mark_node; 8421 TREE_CHAIN (element_init) = CONSTRUCTOR_ELTS (new_init); 8422 CONSTRUCTOR_ELTS (new_init) = element_init; 8423 if (TREE_PURPOSE (element_init)) 8424 index = convert (sizetype, TREE_PURPOSE (element_init)); 8425 } 8465 if (!reshape_init_array (TREE_TYPE (type), max_index, 8466 initp, new_init)) 8467 return error_mark_node; 8426 8468 } 8427 8469 else -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/cp/error.c
-
Property cvs2svn:cvs-rev
changed from
1.5
to1.6
r1599 r1600 423 423 { 424 424 tree args = TYPE_TI_ARGS (t); 425 dump_qualifiers (t, after); 425 426 print_tree_identifier (scratch_buffer, TYPE_IDENTIFIER (t)); 426 427 print_template_argument_list_start (scratch_buffer); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/cp/semantics.c
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r1599 r1600 2458 2458 && CLEANUP_DECL (*tp) == nrv) 2459 2459 CLEANUP_EH_ONLY (*tp) = 1; 2460 2460 /* Replace the DECL_STMT for the NRV with an initialization of the 2461 RESULT_DECL, if needed. */ 2462 else if (TREE_CODE (*tp) == DECL_STMT 2463 && DECL_STMT_DECL (*tp) == nrv) 2464 { 2465 tree init; 2466 if (DECL_INITIAL (nrv) 2467 && DECL_INITIAL (nrv) != error_mark_node) 2468 { 2469 init = build (INIT_EXPR, void_type_node, 2470 DECL_RESULT (current_function_decl), 2471 DECL_INITIAL (nrv)); 2472 DECL_INITIAL (nrv) = error_mark_node; 2473 } 2474 else 2475 init = NULL_TREE; 2476 init = build_stmt (EXPR_STMT, init); 2477 TREE_CHAIN (init) = TREE_CHAIN (*tp); 2478 STMT_LINENO (init) = STMT_LINENO (*tp); 2479 *tp = init; 2480 } 2481 2461 2482 /* Keep iterating. */ 2462 2483 return NULL_TREE; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/doc/invoke.texi
-
Property cvs2svn:cvs-rev
changed from
1.4
to1.5
r1599 r1600 348 348 -mno-impure-text -mno-stack-bias -mno-unaligned-doubles @gol 349 349 -msoft-float -msoft-quad-float -msparclite -mstack-bias @gol 350 -msupersparc -munaligned-doubles -mv8} 350 -msupersparc -munaligned-doubles -mv8 351 -threads -pthreads} 351 352 352 353 @emph{ARM Options} … … 3901 3902 @option{-fpeephole2} enabled at levels @option{-O2}, @option{-O3}, @option{-Os}. 3902 3903 3903 @item -fbranch-probabilities 3904 @itemx -fno-guess-branch-probability 3904 @item -fno-guess-branch-probability 3905 3905 @opindex fno-guess-branch-probability 3906 3906 Do not guess branch probabilities using a randomized model. … … 5960 5960 when making stack frame references. 5961 5961 Otherwise, assume no such offset is present. 5962 @end table 5963 5964 These switches are supported in addition to the above on Solaris: 5965 5966 @table @gcctabopt 5967 @item -threads 5968 @opindex threads 5969 Add support for multithreading using the Solaris threads library. This 5970 option sets flags for both the preprocessor and linker. This option does 5971 not affect the thread safety of object code produced by the compiler or 5972 that of libraries supplied with it. 5973 5974 @item -pthreads 5975 @opindex pthreads 5976 Add support for multithreading using the POSIX threads library. This 5977 option sets flags for both the preprocessor and linker. This option does 5978 not affect the thread safety of object code produced by the compiler or 5979 that of libraries supplied with it. 5962 5980 @end table 5963 5981 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.