1 2008-07-23 Michael Meissner <gnu@the-meissners.org>
2 Karthik Kumar <karthikkumar@gmail.com>
4 * attribs.c (file scope): Include c-common.h.
5 (decl_attributes): Add support for #pragma GCC optimize and
8 * targhooks.c (default_can_inline_p): New function that is the
9 default for the TARGET_CAN_INLINE_P target hook.
11 * targhooks.h (default_can_inline_p): Add declaration.
13 * tree.c (cl_optimization_node): New static tree for building
14 OPTIMIZATION_NODE tree.
15 (cl_target_option_node): New static tree for building
16 TARGET_OPTION_NODE tree.
17 (cl_option_hash_table): New hash table for hashing
18 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
19 (cl_option_hash_hash): New function to provide the hash value for
20 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
21 (cl_option_hash_eq): New function to provide an equality test for
22 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
23 (tree_code_size): Add support for OPTIMIZATION_NODE and
24 TARGET_OPTION_NODE trees.
25 (tree_code_structure): Add support for OPTIMIZATION_NODE and
26 TARGET_OPTION_NODE trees.
27 (build_optimization_node): Build a tree that has all of the
28 current optimization options.
29 (build_target_option_node): Build a tree that has the target
30 options that might be changed on a per function basis.
32 * tree.h (file scope): Include options.h.
33 (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
34 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
35 (TREE_OPTIMIZATION): Ditto.
36 (TREE_TARGET_SPECIFIC): Ditto.
37 (struct tree_function_decl): Add fields for remembering the
38 current optimization options and target specific options.
39 (struct tree_optimization_option): New tree variant that remembers
40 the optimization options.
41 (struct tree_target_option): New tree variant that remembers the
42 target specific flags that might change for compiling a particular
44 (union tree_node): Include tree_optimization_option and
45 tree_target_option fields.
46 (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
47 TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
48 TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
49 TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
50 TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
51 optimization and target options.
52 (optimization_default_node): New macro to refer to global_trees
54 (optimization_current_node): Ditto.
55 (optimization_cold_node): Ditto.
56 (optimization_hot_node): Ditto.
57 (target_option_default_node): Ditto.
58 (target_option_current_node): Ditto.
59 (current_option_pragma): Ditto.
60 (current_optimize_pragma): Ditto.
62 * target.h (struct gcc_target): Add valid_option_attribute_p,
63 target_option_save, target_option_restore, target_option_print,
64 target_option_pragma_parse, and can_inline_p hooks.
66 * toplev.h (parse_optimize_options): Add declaration.
67 (fast_math_flags_struct_set_p): Ditto.
69 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
70 adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
73 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
74 tree_can_inline_p hook to see if one function can inline another.
75 (cgraph_decide_inlining): Ditto.
76 (cgraph_decide_inlining_incrementally): Ditto.
78 * opts.c (decode_options): Add support for running multiple times
79 to allow functions with different target or optimization options
80 than was specified on the command line.
81 (fast_math_flags_struct_set_p): New function that is similar to
82 fast_math_flags_set_p, except it uses the values in the
83 cl_optimization structure instead of global variables.
85 * optc-gen.awk: Add support for TargetSave to allow a back end to
86 declare new fields that need to be saved when using function
87 specific options. Include flags.h and target.h in the options.c
88 source. Add support for Save to indicate which options can be set
89 for individual functions. Generate cl_optimize_save,
90 cl_optimize_restore, cl_optimize_print, cl_target_option_save,
91 cl_target_option_restore, cl_target_option_print functions to
92 allow functions to use different optimization or target options.
94 * opt-functions.awk (var_type_struct): Return the type used for
95 storing the field in a structure.
97 * opth-gen.awk: Add support for TargetSave to allow a back end to
98 declare new fields that need to be saved when using function
99 specific options. Add support for Save to indicate which options
100 can be set for individual functions. Only generate one extern for
101 Mask fields. Generate cl_optimization and cl_target_option
102 structures to remember optimization and target options.
104 * treestruct.def (TS_OPTIMIZATION): Add support for garbage
105 collecting new tree nodes.
106 (TS_TARGET_OPTION): Ditto.
108 * c-decl.c (merge_decls): Merge function specific target and
109 optimization options.
111 * function.c (invoke_set_current_function_hook): If the function
112 uses different optimization options, change the global variables
115 * coretypes.h (struct cl_optimization): Add forward reference.
116 (struct cl_target_option): Ditto.
118 * c-pragma.c (option_stack): New static vector to remember the
119 current #pragma GCC option stack.
120 (handle_pragma_option): New function to support #pragma GCC option
121 to change target options.
122 (optimize_stack): New static vector to remember the current
123 #pragma GCC optimize stack.
124 (handle_pragma_optimize): New function to support #pragma GCC
125 optimize to change optimization options.
126 (init_pragma): Add support for #pragma GCC optimize and #pragma
129 * tree.def (OPTIMIZATION_NODE): New tree code for remembering
130 optimization options.
131 (TARGET_OPTION_NODE): New tree code for remembering certain target
134 * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
135 TARGET_OPTION_NODE trees.
137 * common.opt (-O): Add Optimization flag.
139 (-fmath-errno): Ditto.
140 (-falign-functions): Add UInteger flag to make sure flag gets full
141 int in cl_optimization structure.
142 (-falign-jumps): Ditto.
143 (-falign-labels): Ditto.
144 (-falign-loops): Ditto.
145 (-fsched-stalled-insns): Ditto.
146 (-fsched-stalled-insns-dep): Ditto.
148 * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
150 (TARGET_OPTION_SAVE): Ditto.
151 (TARGET_OPTION_RESTORE): Ditto.
152 (TARGET_OPTION_PRINT): Ditto.
153 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
154 (TARGET_CAN_INLINE_P): Ditto.
155 (TARGET_INITIALIZER): Add new hooks.
157 * tree-inline.c (tree_can_inline_p): New function to determine
158 whether one function can inline another. Check if the functions
159 use compatible optimization options, and also call the backend
162 * tree-inline.h (tree_can_inline_p): Add declaration.
164 * c-common.c (c_common_attribute): Add support for option and
166 (handle_option_attribute): Add support for the option attribute to
167 allow the user to specify different target options for compiling a
169 (handle_optimize_attribute): Add support for the optimize
170 attribute to allow the user to specify different optimization
171 options for compiling a specific function.
172 (handle_hot_attribute): Turn on -O3 optimization for this one
173 function if it isn't the default optimization level.
174 (handle_cold_attribute): Turn on -Os optimization for this one
175 function if it insn't the default optimization.
176 (const_char_p): New const char * typedef.
177 (optimize_args): New static vector to remember the optimization
179 (parse_optimize_options): New function to set up the optimization
180 arguments from either the optimize attribute or #pragma GCC
183 * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
184 (builtin_define_std): Ditto.
186 * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
187 Add t-i386 Makefile fragment to add i386-c.o and i386.o
191 * Makefile.in (TREE_H): Add options.h.
192 (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
194 * doc/extend.texi (option attribute): Document new attribute.
195 (optimize attribute): Ditto.
196 (hot attribute): Document hot attribute sets -O3.
197 (cold attribute): Document cold attribute sets -Os.
198 (#pragma GCC option): Document new pragma.
199 (#pragma GCC optimize): Ditto.
201 * doc/options.texi (TargetSave): Document TargetSave syntax.
202 (UInteger): Document UInteger must be used for certain flags.
203 (Save): Document Save option to create target specific options
204 that can be saved/restored on a function specific context.
206 * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new
208 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
210 * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new
212 (TARGET_OPTION_SAVE): Ditto.
213 (TARGET_OPTION_RESTORE): Ditto.
214 (TARGET_OPTION_PRINT): Ditto.
215 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
216 (TARGET_CAN_INLINE_P): Ditto.
218 * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
220 (-mfpmath=both): Ditto.
222 2008-07-23 Michael Meissner <gnu@the-meissners.org>
223 Karthik Kumar <karthikkumar@gmail.com>
225 * config/i386/i386.h (TARGET_ABM): Move switch into
227 (TARGET_POPCNT): Ditto.
228 (TARGET_SAHF): Ditto.
230 (TARGET_PCLMUL): Ditto.
231 (TARGET_CMPXCHG16B): Ditto.
232 (TARGET_RECIP): Move switch into target_flags.
233 (TARGET_FUSED_MADD): Ditto.
234 (ix86_arch_features): Make an unsigned char type.
235 (ix86_tune_features): Ditto.
236 (OVERRIDE_OPTIONS): Add bool argument to override_options call.
237 (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
238 (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
240 * config/i386/i386.opt (arch): New TargetSave field to define
241 fields that need to be saved for function specific option
245 (branch_cost): Ditto.
246 (ix86_isa_flags_explicit): Ditto.
247 (tune_defaulted): Ditto.
248 (arch_specified): Ditto.
249 (-m128-long-double): Add Save flag to save option for target
250 specific option support.
252 (-maccumulate-outgoing-args): Ditto.
253 (-malign-double): Ditto.
254 (-malign-stringops): Ditto.
255 (-mfancy-math-387): Ditto.
256 (-mhard-float): Ditto.
258 (-minline-all-stringops): Ditto.
259 (-minline-stringops-dynamically): Ditto.
260 (-mms-bitfields): Ditto.
261 (-mno-align-stringops): Ditto.
262 (-mno-fancy-math-387): Ditto.
263 (-mno-push-args): Ditto.
264 (-mno-red-zone): Ditto.
265 (-mpush-args): Ditto.
268 (-msseregparm): Ditto.
269 (-mstack-arg-probe): Ditto.
284 (-mrecip): Move flag into target_flags.
286 (-mno-fused-madd): Ditto.
287 (-mfused-madd): Ditto.
288 (-mabm): Move flag into ix86_isa_flags.
295 * config/i386/i386-c.c: New file for #pragma support.
296 (ix86_target_macros_internal): New function to #define or #undef
297 target macros based when the user uses the #pragma GCC option to
298 change target options.
299 (ix86_pragma_option_parse): New function to add #pragma GCC option
301 (ix86_target_macros): Move defining the target macros here from
302 TARGET_CPU_CPP_BUILTINS in i386.h.
303 (ix86_register_pragmas): Register the #pragma GCC option hook. If
304 defined, initialize any subtarget #pragmas.
306 * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
307 REGISTER_TARGET_PRAGMAS.
309 * config/i386/t-i386: New file for x86 dependencies.
310 (i386.o): Make dependencies mirror the include files used.
311 (i386-c.o): New file, add dependencies.
313 * config/i386/i386-protos.h (override_options): Add bool
315 (ix86_valid_option_attribute_tree): Add declaration.
316 (ix86_target_macros): Ditto.
317 (ix86_register_macros): Ditto.
319 * config/i386/i386.c (ix86_tune_features): Move initialization of
320 the target masks to initial_ix86_tune_features to allow functions
321 to have different target options. Make type unsigned char,
322 instead of unsigned int.
323 (initial_ix86_tune_features): New static vector to hold processor
324 masks for the tune variables.
325 (ix86_arch_features): Move initialization of the target masks to
326 initial_ix86_arch_features to allow functions to have different
327 target options. Make type unsigned char, instead of unsigned
329 (initial_ix86_arch_features): New static vector to hold processor
330 masks for the arch variables.
331 (enum ix86_function_specific_strings): New enum to describe the
332 string options used for attribute((option(...))).
333 (ix86_target_string): New function to return a string that
334 describes the target options.
335 (ix86_debug_options): New function to print the current options in
337 (ix86_function_specific_save): New function hook to save the
338 function specific global variables in the cl_target_option
340 (ix86_function_specific_restore): New function hook to restore the
341 function specific variables from the cl_target_option structure to
342 the global variables.
343 (ix86_function_specific_print): New function hook to print the
344 target specific options in the cl_target_option structure.
345 (ix86_valid_option_attribute_p): New function hook to validate
346 attribute((option(...))) arguments.
347 (ix86_valid_option_attribute_tree): New function that is common
348 code between attribute((option(...))) and #pragma GCC option
349 support that parses the options and returns a tree holding the
351 (ix86_valid_option_attribute_inner_p): New helper function for
352 ix86_valid_option_attribute_tree.
353 (ix86_can_inline_p): New function hook to decide if one function
354 can inline another on a target specific basis.
355 (ix86_set_current_function); New function hook to switch target
356 options if the user used attribute((option(...))) or #pragma GCC
358 (ix86_tune_defaulted): Move to static file scope from
360 (ix86_arch_specified): Ditto.
361 (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
363 (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
364 (OPTION_MASK_ISA_ABM_SET): Ditto.
365 (OPTION_MASK_ISA_POPCNT_SET): Ditto.
366 (OPTION_MASK_ISA_CX16_SET): Ditto.
367 (OPTION_MASK_ISA_SAHF_SET): Ditto.
368 (OPTION_MASK_ISA_AES_UNSET): Ditto.
369 (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
370 (OPTION_MASK_ISA_ABM_UNSET): Ditto.
371 (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
372 (OPTION_MASK_ISA_CX16_UNSET): Ditto.
373 (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
374 (struct ptt): Move to static file scope from override_options.
375 (processor_target_table): Ditto.
377 (ix86_handle_option): Add support for options that are now isa
379 (override_options): Add support for declaring functions that
380 support different target options than were specified on the
381 command line. Move struct ptt, processor_target_table, cpu_names,
382 ix86_tune_defaulted, ix86_arch_specified to static file scope.
383 Add bool argument. Fix up error messages so the appropriate error
384 is given for either command line or attribute.
385 (ix86_previous_fndecl): New static to remember previous function
386 declaration to see if we need to change target options.
387 (ix86_builtins_isa): New array to record the ISA of each builtin
389 (def_builtin): Always create the builtin function, even if the
390 current ISA doesn't support it.
391 (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
392 tests for those builtins.
393 (ix86_init_builtins): Remove TARGET_MMX test for calling
394 ix86_init_mmx_sse_builtins.
395 (ix86_expand_builtin): If the current ISA doesn't support a given
396 builtin, signal an error.
397 (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
398 (TARGET_SET_CURRENT_FUNCTION): Ditto.
399 (TARGET_OPTION_SAVE): Ditto.
400 (TARGET_OPTION_RESTORE): Ditto.
401 (TARGET_OPTION_PRINT): Ditto.
402 (TARGET_CAN_INLINE_P): Ditto.
404 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
406 * c-typeck.c (build_external_ref): Don't call assemble_external.
407 * final.c (output_operand): Call assemble_external.
409 2008-07-21 DJ Delorie <dj@redhat.com>
411 * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
412 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
414 2008-07-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
416 * config/spu/spu.md ("div<mode>3"): Convert into expander, move
417 original insn and splitter contents into ...
418 ("*div<mode>3_fast"): ... this new pattern. Enable only if
419 flag_unsafe_math_optimizations. Add dummy scratch register.
420 ("*div<mode>3_adjusted"): New insn and splitter. Enable only if
421 !flag_unsafe_math_optimizations. Returns number with next
422 highest magnitude if this is still less or equal to the true
423 quotient in magnitude.
425 2008-07-21 Rafael Avila de Espindola <espindola@google.com>
427 * Makefile.in: Replace toplev.h with TOPLEV_H.
428 * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
429 * c-lex.c (fe_file_change): Don't set in_system_header.
430 * c-parser.c (c_token): Remove in_system_header.
431 (c_lex_one_token): Don't set in_system_header.
432 (c_parser_set_source_position_from_token): Don't set in_system_header.
433 * diagnostic.c (diagnostic_report_diagnostic): Use location from
436 * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
437 * flags.h (in_system_header): Remove.
438 * function.c (saved_in_system_header): Remove.
439 (push_cfun): Don't set in_system_header.
440 (pop_cfun): Don't set in_system_header.
441 (push_struct_function): Don't set in_system_header.
442 * input.h (expanded_location): Add sysp.
443 (in_system_header_at): New.
444 (in_system_header): New.
445 * toplev.c (in_system_header): Remove.
446 * toplev.h: Include input.h
448 * tree-cfg.c (execute_warn_function_return): Call warning_at.
449 * tree-ssa.c (warn_uninit): Call warning_at.
450 (warn_uninitialized_var): Update calls to warn_uninit.
451 (warn_uninitialized_phi): Update calls to warn_uninit.
452 * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
453 (expand_location): Initialize xloc.sysp.
454 * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
455 (tree_decl_with_vis): Remove in_system_header_flag.
457 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
460 * recog.c (asm_operand_ok): Change the order of the extra
461 memory constraint checks.
463 2008-07-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
466 * tree-switch-conversion.c (build_one_array): Call
467 varpool_mark_needed_node and varpool_finalize_decl
468 instead of assemble_variable.
470 2008-07-19 Jan Hubicka <jh@suse.cz>
472 * cgraph.c (cgraph_add_new_function): Do early local passes.
473 * tree-nrv.c (gate_pass_return_slot): New gate.
474 (pass_nrv): Add the gate.
475 * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
477 (coalesce_ssa_name): Coalesce SSA names.
478 * tree-ssa-live.c (remove_unused_locals): Be more conservative when
479 not optimizing so unused user vars remains visible.
480 * common.opt (flag_tree_ter): Always enable by default.
481 * tree-ssa-ter.c: Include flags.h
482 (is_replaceable_p): Check that locations match; when aliasing is missing
483 be conservative about loads.
484 * tree-optimize.c (gate_init_datastructures): Remove.
485 (pass_init_datastructures): New.
486 * passes.c: Reorder passes so we always go into SSA.
488 2008-07-19 Jan Hubicka <jh@suse.cz>
490 * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
491 * doc/invoke.texi (--combine): Likewise.
492 (-finline-functions-called-once): Update levels when enabled.
493 (-funit-at-a-time): Document new behaviour.
494 (-ftoplevel-reorder): Document that it is enabled -O0 and imply
495 -fno-section-anchors when disabled explicitly.
496 (inline params): They are not ignored now.
497 (precompiled headers): Remove unit-at-a-time as being incompatible.
498 * opts.c (decode_options): Handle unit-at-a-time as alias;
499 imply -fno-section-anchors when toplevel reorder is disabled
501 * common.opt (ftoplevel-reorder): Set default value to 2.
502 (funit-at-a-time): Set default value to 1.
503 * config/rs6000/rs6000.c (optimization_options): Set section anchors
506 2008-07-19 Jan Hubicka <jh@suse.cz>
508 * builtins.c (expand_builtin_int_roundingfn,
509 expand_builtin_int_roundingfn_2): Do not take subtarget argument;
512 2008-07-19 Richard Guenther <rguenther@suse.de>
515 * tree-ssa-sccvn.h (get_constant_value_id): Declare.
516 * tree-ssa-sccvn.c (get_constant_value_id): New function.
517 * tree-ssa-pre.c (get_expr_value_id): For newly created
518 constant value-ids make sure to add the expression to its
521 2008-07-19 Jakub Jelinek <jakub@redhat.com>
524 * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
525 return value of the builtin is ignored.
527 2008-07-19 Olivier Hainque <hainque@adacore.com>
529 * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
530 bits, a C conformant malloc implementation has to provide.
531 * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
533 2008-07-19 Joseph Myers <joseph@codesourcery.com>
537 * reload.c (find_reloads_subreg_address): Only reload address if
538 reloaded == 0, not for reloaded != 1.
541 2008-07-16 Joseph Myers <joseph@codesourcery.com>
542 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
543 (m32c_legitimate_address_p): Handle "++rii" addresses created by
544 m32c_legitimize_reload_address.
546 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
547 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
548 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
550 2008-07-19 Olivier Hainque <hainque@adacore.com>
552 * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
553 argument, saying whether nested array are to be collapsed
554 into a single array type DIE with multiple subscripts.
555 (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
556 issues, centralize the nested array types collapsing control and
557 disable the transformation for Ada.
559 2008-07-18 Uros Bizjak <ubizjak@gmail.com>
562 * config/i386/i386.md (x86_64_shift_adj_1): Rename from
564 (x86_64_shift_adj_2): New expander.
565 (x86_64_shift_adj_3): Ditto.
566 * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
567 to split TImode operands.
568 (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
569 (ix86_split_lshr): Ditto.
571 2008-07-18 Kris Van Hees <kris.van.hees@oracle.com>
573 * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
575 * c-typeck.c (digest_init): Support char16_t and char32_t.
576 (set_nonincremental_init_from_string): Idem.
578 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
581 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
582 PREFERRED_STACK_BOUNDARY.
583 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
585 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
588 * function.c (locate_and_pad_parm): Cap boundary earlier.
590 2008-07-17 Julian Brown <julian@codesourcery.com>
592 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
593 no-op for targets which don't use DLLs.
595 2008-07-17 Martin Jambor <mjambor@suse.cz>
597 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
598 that nodes are relevant by examining the node->analyzed flag.
599 (ipcp_init_stage): Check which nodes are relevant, assert that the
600 relevant ones are also required.
601 (ipcp_propagate_stage): Check on the side arrays are properly
603 (ipcp_print_all_jump_functions): Make sure not to touch any node
604 that is not analyzed or an edge that does not have a corresponding
605 entry in the on-the-side vectors.
606 (ipcp_function_scale_print): Likewise.
607 (ipcp_update_callgraph): Check that the node is relevant.
608 (ipcp_insert_stage): Check that the node is relevant. Check there is
609 an info for every node and edge.
610 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
611 (ipa_print_all_tree_maps): Likewise and a new variable info.
612 (ipa_print_all_params_modified): Likewise.
613 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
615 2008-07-17 Roman Zippel <zippel@linux-m68k.org>
618 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
620 2008-07-17 Paolo Bonzini <bonzini@gnu.org>
622 PR rtl-optimization/36753
623 * fwprop.c (use_killed_between): Don't shortcut
624 single-definition global registers.
626 2008-07-16 Jan Hubicka <jh@suse.cz>
628 * cgraph.h (varpool_empty_needed_queue): Declare.
629 * cgraphunit.c (output_in_order): Mark all variables as needed;
631 * varpool.c (varpool_assemble_node): Update debug queue.
632 (varpool_assemble_pending_decls): Don't do it here.
633 (varpool_empty_needed_queue): New function.
635 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
637 * recog.c (peephole2_optimize): Fix formatting.
639 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
641 * c-pch.c (get_ident): Avoid C++ keywords.
642 * combine-stack-adj.c (single_set_for_csa): Likewise.
643 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
644 output_asm_insn): Likewise.
645 * reload.c (push_secondary_reload, find_reusable_reload,
646 push_reload, combine_reloads, find_reloads,
647 debug_reload_to_stream): Likewise.
648 * reload.h (struct reload): Likewise.
649 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
650 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
651 emit_output_reload_insns): Likewise.
652 * targhooks.c (default_secondary_reload): Likewise.
653 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
655 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
657 * recog.c (validate_change_1, validate_change,
658 validate_unshare_change, validate_replace_rtx_1, struct
659 funny_match, constrain_operands, peephole2_optimize): Avoid C++
661 * reload.c (push_secondary_reload, secondary_reload_class,
662 scratch_reload_class, find_valid_class, find_reusable_reload,
663 push_reload, find_dummy_reload, find_reloads_address_1,
664 find_reloads_address_part, find_equiv_reg): Likewise.
665 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
666 choose_reload_regs): Likewise.
667 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
669 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
670 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
671 * sched-rgn.c (concat_INSN_LIST): Likewise.
672 * stor-layout.c (mode_for_size, mode_for_size_tree,
673 smallest_mode_for_size): Likewise.
675 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
677 * cfg.c (dump_reg_info): Avoid C++ keywords.
678 * dwarf2asm.c (dw2_force_const_mem,
679 dw2_asm_output_encoded_addr_rtx): Likewise.
680 * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
681 * expmed.c (expand_shift): Likewise.
682 * global.c (find_reg): Likewise.
683 * graph.c (draw_edge): Likewise.
684 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
685 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
686 widen_clz, widen_bswap, expand_parity, expand_unop,
687 emit_cmp_and_jump_insn_1): Likewise.
688 * postreload.c (reload_cse_simplify_operands): Likewise.
689 * ra.h (add_neighbor): Likewise.
690 * reg-stack.c (remove_regno_note, change_stack): Likewise.
691 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
692 record_reg_classes, copy_cost, record_address_regs,
693 invalid_mode_change_p): Likewise.
694 * regrename.c (regrename_optimize, scan_rtx_reg,
695 dump_def_use_chain, find_oldest_value_reg,
696 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
698 2008-07-16 David Edelsohn <edelsohn@gnu.org>
700 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
701 MASK_POWERPC64 for power4 in previous commit.
703 2008-07-16 Olivier Hainque <hainque@adacore.com>
705 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
706 instead of bare conversion to cast const-ness away.
708 2008-07-16 Anatoly Sokolov <aesok@post.ru>
710 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
711 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
712 * config/xtensa/xtensa.c (xtensa_function_value): New function.
713 (TARGET_FUNCTION_VALUE): Define.
715 2008-07-16 David Edelsohn <edelsohn@gnu.org>
717 * config/rs6000/rs6000.c (processor_target_table): Add
718 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
720 2008-07-16 Joseph Myers <joseph@codesourcery.com>
723 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
724 (m32c_legitimate_address_p): Handle "++rii" addresses created by
725 m32c_legitimize_reload_address.
727 2007-07-16 Rafael Avila de Espindola <espindola@google.com>
729 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
730 DECL_IN_SYSTEM_HEADER in sync.
732 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
734 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
735 * tree-ssa-pre.c (pre_expr_eq): Ditto
736 (get_constant_for_value_id): Take a type as an argument.
737 (fully_constant_expression): Pass in type.
738 (find_or_generate_expression): Short circuit constant case.
739 (create_expression_by_pieces): Remove special casing of
741 (do_regular_insertion): Short circuit constant case.
742 (do_partial_partial_insertion): Ditto.
744 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
747 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
749 2008-07-15 Bob Wilson <bob.wilson@acm.org>
751 * config/xtensa/libgcc-xtensa.ver: New file.
752 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
754 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
756 * df-problems.c (df_set_note): Avoid C++ keywords.
757 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
758 * dse.c (record_store, remove_useless_values): Likewise.
759 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
760 gen_reg_rtx_offset, operand_subword, change_address_1,
761 change_address, adjust_address_1, offset_address,
762 widen_memory_access, emit_copy_of_insn_after): Likewise.
763 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
764 * fwprop.c (should_replace_address, propagate_rtx_1,
765 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
767 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
768 gcse_emit_move_after, update_ld_motion_stores): Likewise.
769 * lcm.c (compute_insert_delete, pre_edge_lcm,
770 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
771 * lower-subreg.c (resolve_reg_notes): Likewise.
772 * mode-switching.c (optimize_mode_switching): Likewise.
774 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
776 * bt-load.c (add_btr_def, migrate_btr_def,
777 branch_target_load_optimize): Avoid C++ keywords.
778 * caller-save.c (insert_restore, insert_save, insert_one_insn):
780 * combine.c (subst, simplify_set, make_extraction,
781 make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
782 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
783 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
785 2008-07-15 Richard Guenther <rguenther@suse.de>
788 * c-common.c (strict_aliasing_warning): Do not warn for
789 TYPE_REF_CAN_ALIAS_ALL pointers.
790 (c_common_get_alias_set): may_alias types are not special.
791 * tree.c (build_pointer_type_for_mode): Look up the may_alias
792 attribute and set can_ref_all accordingly.
793 (build_reference_type_for_mode): Likewise.
794 * doc/extend.texi (may_alias): Clarify.
796 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
799 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
800 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
802 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
805 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
806 gcc_assert, instead call output_operand_lossage.
808 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
810 * builtins.c (std_canonical_va_list): Treat structure based
813 2008-07-15 Ben Elliston <bje@au.ibm.com>
815 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
817 2007-07-14 Rafael Avila de Espindola <espindola@google.com>
819 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
822 2008-07-14 Jan Hubicka <jh@suse.cz>
824 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
825 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
826 fix predicates and constraints.
827 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
828 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
830 2008-07-14 Doug Kwan <dougkwan@google.com>
832 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
833 additional option file arm/eabi.opt.
834 * config/arm/eabi.h (File): New configuration file for EABI targets.
835 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
836 SUBSUBTARGET_EXTRA_SPECS.
837 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
838 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
839 from STARTFILE_SPEC so that it can be referenced in an override.
840 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
841 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
842 can be referenced in an override.
843 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
844 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
845 so that it can be referenced in an override.
846 (LINK_SPEC): Use BPABI_LINK_SPEC.
847 * config/arm/eabi.opt (File): New.
849 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
851 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
852 (FIXED_VALUE_H): New variable.
853 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
854 input.h, fixed-value.h.
855 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
856 (BASIC_BLOCK_H): Use $(BITMAP_H).
857 (FUNCTION_H): Add varray.h.
858 (IPA_REFERENCE_H): Use $(BITMAP_H).
859 (CGRAPH_H): Add $(BASIC_BLOCK_H).
860 (DF_H): Use $(BITMAP_H).
861 (GGC_H): Add statistics.h.
863 (INSN_ATTR_H): Use it.
864 (SYSTEM_H): Add safe-ctype.h, filenames.h.
866 (SYMTAB_H): Add $(OBSTACK_H).
867 (CPP_INTERNAL_H): New.
868 (TREE_DUMP_H): Add tree-pass.h.
869 (TREE_FLOW_H): Use $(BITMAP_H)
870 (PRETTY_PRINT_H): Use $(INPUT_H).
871 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
874 (many object files): Fix lots of header dependencies throughout.
876 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
878 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
880 (s-gtyp-input): Use them to write tmp-gi.list.
881 (echo_to_gi.list): Remove.
883 2008-07-14 Richard Guenther <rguenther@suse.de>
885 * tree-ssa-sccvn.c (pre_info): Remove.
886 (switch_to_PRE_table): Likewise.
887 (free_scc_vn): Do not clear SSA_NAME_VALUE. Do not free pre_info.
888 (set_hashtable_value_ids): Do not create value-ids for the
890 (run_scc_vn): Remove double test. Remove bogus special-case
891 in value-number printing.
892 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
893 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
895 * tree-flow-inline.h (get_value_handle): Remove.
896 * tree-flow.h (get_value_handle): Remove.
898 2008-07-14 Martin Jambor <mjambor@suse.cz>
900 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
901 in which we generate arithmetics is not a subrange.
903 2008-07-14 Martin Jambor <mjambor@suse.cz>
905 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
907 2008-07-14 Richard Guenther <rguenther@suse.de>
909 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
911 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
914 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
915 reload for symbol refs moved to r0 with -fPIC.
916 (legitimize_pic_address): Use the target register as temporary
918 (emit_symbolic_move): Adjust comment.
919 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
922 2008-07-14 Ben Elliston <bje@au.ibm.com>
924 * c-common.h (C_CPP_HASHNODE): New macro.
925 * coretypes.h (struct cpp_token): Forward declare.
926 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
927 the context-sensitive keyword method.
928 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
929 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
930 expand_bool_pixel): New.
931 (altivec_categorize_keyword): New function.
932 (init_vector_keywords): New function.
933 (rs6000_macro_to_expand): Likewise.
934 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
935 compiling an ISO C dialect.
937 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
939 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
940 (create_expression_by_pieces): Fix typo.
941 (do_regular_insertion): Use debug counter here too.
943 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
946 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
947 CONST_OK_FOR_LETTER_P. All port-local users changed.
948 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
949 implement Kp matching power-of-two.
950 (CONSTRAINT_LEN): Define to match.
951 * config/cris/cris.md: Replace all use of constraint K with Kc.
952 ("*btst*): Use Kp for operand 0 of last alternative.
954 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
957 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
960 2008-07-13 Jan Hubicka <jh@suse.cz>
962 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
965 2008-07-13 Richard Guenther <rguenther@suse.de>
968 * langhooks.c (lhd_print_error_function): Deal with recursive
971 2008-07-12 Jan Hubicka <jh@suse.cz>
973 * cgraph.c (assembler_name_hash): New static var.
974 (hash_node_by_assembler_name, eq_assembler_name): New.
975 (cgraph_node_for_asm): Use hashtable.
976 (cgraph_remove_node): Maintain hashtable.
977 (change_decl_assembler_name): Sanity check that names are not changing
978 after aliasing was processed.
979 * cgraph.h (varpoon_node): Add next GGC marker.
980 * tree.c (decl_assembler_name_equal): Constify.
981 (decl_assembler_name_hash): New.
982 * tree.h (decl_assembler_name_equal): Constify.
983 (decl_assembler_name_hash): Update.
985 2008-07-12 David Daney <ddaney@avtrex.com>
987 * config/mips/driver-native.c (host_detect_local_cpu): Handle
990 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
992 * doc/md.texi: Document the MIPS "v" constraint.
993 * config/mips/mips.h (reg_class): Revert last change.
994 (REG_CLASS_NAMES): Likewise.
995 (REG_CLASS_CONTENTS): Likewise.
996 * config/mips/mips.c (mips_regno_to_class): Likewise.
997 * config/mips/constraints.md (v): Likewise, but add documentation.
998 Add a comment to say that this constraint should not be used in
1001 2008-07-11 DJ Delorie <dj@redhat.com>
1003 * config/h8300/h8300.md (length): Fix branch offset limit.
1005 2008-07-11 Anatoly Sokolov <aesok@post.ru>
1007 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
1008 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
1009 (avr_hard_regno_scratch_ok): New function.
1010 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1011 * config/avr/avr.md (all peepholes that request a scratch register):
1012 Remove avr_peep2_scratch_safe use.
1014 2008-07-11 Tom Tromey <tromey@redhat.com>
1015 Ian Lance Taylor <iant@google.com>
1017 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
1018 (struct c_common_resword): Define.
1019 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
1020 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
1021 (c_common_reswords, num_c_common_reswords): Declare.
1022 * c-common.c (c_common_reswords): New global const array.
1023 (num_c_common_reswords): New const int.
1024 * c-parser.c (struct resword, reswords): Don't define.
1025 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
1026 (c_parse_init): Clarify mask code. Use c_common_reswords rather
1027 than reswords. If warning about C++ keywords, give them a special
1029 (c_lex_one_token): Warn about C++ keywords. Call
1030 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
1031 (c_parser_external_declaration): Look for RID_xxx rather than
1032 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
1033 (c_parser_statement_after_labels): Likewise.
1034 (c_parser_objc_class_instance_variables): Likewise.
1035 (c_parser_objc_class_declaration): Likewise.
1036 (c_parser_objc_try_catch_statement): Likewise.
1037 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
1038 (declspecs_add_type): Likewise.
1040 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
1042 * ggc-page.c (alloc_page):
1043 Substituting xmalloc, xcalloc with
1044 XNEWVEC and XCNEWVAR macros which add the
1047 2008-07-11 Richard Guenther <rguenther@suse.de>
1049 PR tree-optimization/36765
1050 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
1051 aliases from HEAP vars to SMTs.
1053 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1055 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
1056 * configure.ac (loose_warn): Move -Wc++-compat from here...
1057 (strict_warn): ...to here.
1058 * configure: Regenerate.
1060 2008-07-10 Joseph Myers <joseph@codesourcery.com>
1062 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
1063 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
1064 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
1065 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
1066 excluding more specific h8300-*-* and sh-*-* targets.
1068 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
1070 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
1072 (execute_pre): Call loop_optimizer_finalize in early exit.
1074 2008-07-10 Jakub Jelinek <jakub@redhat.com>
1077 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
1078 uids in the bitmap, not just VAR_DECL uids.
1080 PR rtl-optimization/36419
1081 * combine-stack-adj.c (adjust_frame_related_expr): New function.
1082 (combine_stack_adjustments_for_block): Call it if needed. Delete
1084 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
1085 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
1086 prologue sp adjustment.
1088 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
1091 * opts.c (print_ignored_options): Report postponed diagnostics for
1092 unknown -Wno-* options as warnings, not errors.
1093 (postpone_unknown_option_error): Renamed to...
1094 (postpone_unknown_option_warning): ... this.
1096 2008-07-09 Doug Kwan <dougkwan@google.com>
1099 2008-07-08 Doug Kwan <dougkwan@google.com>
1101 * config/arm/arm.opt (mandroid): New option.
1102 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
1103 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
1105 (CC1PLUS_SPEC): Same.
1107 (STARTFILE_SPEC): Same.
1108 (ENDFILE_SPEC): Same.
1109 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
1112 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
1115 * config/mips/mips.h (reg_class): Remove V1_REG.
1116 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
1117 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
1119 (mips_get_tp): New function.
1120 (mips_legitimize_tls_address): Use it.
1121 * config/mips/constraints.md (v): Delete.
1122 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
1123 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
1124 After reload, split into a move and ...
1125 (*tls_get_tp_<mode>_split): ...this new instruction.
1127 2008-07-09 David Daney <ddaney@avtrex.com>
1129 * config/mips/driver-native.c: Include coretypes.h and tm.h.
1131 2008-07-09 Jakub Jelinek <jakub@redhat.com>
1133 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
1134 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
1136 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
1137 htab_delete should be called. Don't free c.
1138 (lookup_tmp_var): Create temp_htab lazily.
1139 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
1140 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
1142 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
1143 lower_omp_ordered, lower_omp_critical, lower_omp_for,
1144 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
1145 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
1146 * tree-sra.c (generate_element_init): Likewise.
1147 * tree-mudflap.c (execute_mudflap_function_ops,
1148 execute_mudflap_function_decls): Likewise.
1149 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
1150 * tree-gimple.h (struct gimplify_ctx): New type.
1151 (push_gimplify_context): Adjust prototype.
1153 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
1155 * tree-ssa-pre.c (phi_translate_1): Update placement of
1158 2008-07-09 Anatoly Sokolov <aesok@post.ru>
1160 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
1161 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
1162 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
1163 * targhooks.c (default_hard_regno_scratch_ok): New function.
1164 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
1165 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
1166 * recog.c: Include "target.h".
1167 (peep2_find_free_register): Add check for global regs. Add target
1169 * Makefile.in (recog.o): Depend on target.h.
1171 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
1173 * config/sh/sh.c (sh_canonical_va_list_type): New.
1174 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
1176 2008-07-09 Raksit Ashok <raksit@google.com>
1178 * doc/invoke.texi (Option Summary): Mention new option
1179 -Wdisallowed-function-list=...
1180 (Warning Options): Document -Wdisallowed-function-list=...
1181 * common.opt (Wdisallowed-function-list=): New flag.
1182 * flags.h (warn_disallowed_functions): External definition of new
1183 boolean warning flag.
1184 (warn_if_disallowed_function_p): Declare new function.
1185 * opts.c (warning_disallowed_functions): New static variable.
1186 (warn_disallowed_functions): New boolean warning flag.
1187 (warn_if_disallowed_function_p): New function.
1188 (add_comma_separated_to_vector): Rename
1189 add_instrument_functions_exclude_list to this.
1190 (common_handle_option): Handle new option. Rename calls to
1191 add_instrument_functions_exclude_list into calls to
1192 add_comma_separated_to_vector.
1193 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
1194 based on flag warn_disallowed_functions.
1196 2008-07-09 Christian Bruel <christian.bruel@st.com>
1198 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
1199 instead of get_attr_length.
1201 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1203 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
1205 * genemit.c (gen_insn): Likewise.
1206 * gengtype.c (note_def_vec): Likewise.
1207 * gengtype.h (note_def_vec): Likewise.
1208 * genoutput.c (struct data, output_insn_data, process_template,
1209 gen_expand, gen_split, note_constraint): Likewise.
1210 * genrecog.c (new_decision, add_to_sequence, factor_tests,
1211 make_insn_sequence): Likewise.
1212 * gensupport.c (record_insn_name): Likewise.
1214 2008-07-08 Doug Kwan <dougkwan@google.com>
1216 * config/arm/arm.opt (mandroid): New option.
1217 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
1218 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
1220 (CC1PLUS_SPEC): Same.
1222 (STARTFILE_SPEC): Same.
1223 (ENDFILE_SPEC): Same.
1224 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
1227 2008-07-08 Raksit Ashok <raksit@google.com>
1229 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
1230 (set_storage_via_setmem): Fix expected_align parameter.
1231 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
1232 missing from the list.
1233 * doc/md.texi (movmem): Explicitly state that expected alignment is
1234 to be expressed in bytes.
1235 (setmem): Explicitly state that expected alignment is to be expressed
1238 2008-07-08 Joseph Myers <joseph@codesourcery.com>
1240 * reload.c (find_reloads_subreg_address): Do not require validity
1241 of address in original mode before reloading address.
1243 2008-07-07 Tianwei Sheng <tianweis@google.com>
1245 * df-core.c (df_remove_problem): Adjust the access to avoid out of
1246 bounds array access.
1248 2008-07-08 Jakub Jelinek <jakub@redhat.com>
1250 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
1252 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
1254 Fix PR tree-optimization/23455
1255 Fix PR tree-optimization/35286
1256 Fix PR tree-optimization/35287
1257 * Makefile.in (OBJS-common): Remove tree-vn.o.
1258 (tree-vn.o): Remove.
1259 * dbgcnt.def: Add treepre_insert debug counter.
1260 * gcc/tree-flow.h (add_to_value): Updated for other changes.
1261 (debug_value_expressions): Ditto.
1262 (print_value_expressions): Ditto.
1263 * tree-pretty-print.c (dump_generic_node): Updated for
1264 VALUE_HANDLE removal.
1265 * tree-ssa-dom.c (record_equality): Ditto.
1266 (cprop_operand): Ditto.
1267 (lookup_avail_expr): Ditto.
1268 * tree-ssa-threadedge.c
1269 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
1270 (simplify_control_stmt_condition): Ditto.
1271 * tree.c (tree_code_size): Ditto.
1272 (tree_node_structure): Ditto.
1273 (iterative_hash_expr): Ditto.
1275 * tree.h (VALUE_HANDLE_ID): Ditto.
1276 (VALUE_HANDLE_EXPR_SET): Ditto.
1277 (struct tree_value_handle): Ditto.
1278 (union tree_node): Ditto.
1279 * treestruct.def: Ditto.
1280 * tree-vn.c: Removed.
1281 * tree-ssa-pre.c: Rewritten entirely.
1282 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
1283 (constant_value_ids): Ditto.
1284 (vn_nary_op_t): Moved to header.
1286 (vn_reference_op_t): Ditto
1287 (vn_reference_t): Ditto.
1288 (next_value_id): New variable.
1289 (VN_INFO): Add an assert.
1290 (vn_constant_eq): New function.
1291 (vn_constant_hash): Ditto.
1292 (get_or_alloc_constant_value_id): Ditto.
1293 (value_id_constant_p): Ditto.
1294 (vn_reference_compute_hash): De-staticify.
1295 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
1296 Disable some code with a FIXME. Remove VALUE_HANDLE use.
1297 (valueize_refs): Update opcode if it changes from ssa name to constant.
1298 (vn_reference_lookup_1): Add new argument.
1299 (vn_reference_lookup): Ditto.
1300 (vn_reference_lookup_pieces): New function.
1301 (vn_reference_insert): Add return type. Modify to deal with value ids.
1302 (vn_reference_insert_pieces): New function.
1303 (vn_nary_op_compute_hash): De-staticify.
1304 (vn_nary_op_eq): Ditto.
1305 (vn_nary_op_lookup_pieces): New function.
1306 (vn_nary_op_lookup): Add new argument.
1307 (vn_nary_op_insert_pieces): New function.
1308 (vn_nary_op_insert): Add return type. Modify to deal with value ids.
1309 (vn_phi_insert): Ditto.
1310 (visit_unary_op): Update for callee changes.
1311 (visit_binary_op): Ditto.
1312 (visit_reference_op_load): Ditto.
1313 (visit_reference_op_store): Ditto.
1314 (init_scc_vn): Init next_value_id, constant_to_value_id and
1316 (free_scc_vn): Free them.
1317 (set_hashtable_value_ids): New function.
1318 (run_scc_vn): Use it.
1319 (get_max_value_id): New function.
1320 (get_next_value_id): Ditto.
1321 (expressions_equal_p): Moved from tree-vn.c
1322 (sort_vuses): Ditto.
1323 (sort_vuses_heap): Ditto.
1324 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
1326 * tree.c (iterative_hash_hashval_t): Made non-static
1327 * tree.h (iterative_hash_hashval_t): Declare it.
1329 2008-07-08 Martin Jambor <mjambor@suse.cz>
1331 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
1332 instead of ipa_create_node_params.
1333 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
1334 ipa_check_create_edge_args, free them with
1335 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
1337 * ipa-prop.c: Include flags.h and tree-inline.h.
1338 (ipa_node_params_vector): New variable.
1339 (ipa_edge_args_vector): New variable.
1340 (edge_removal_hook_holder): New variable.
1341 (node_removal_hook_holder): New variable.
1342 (edge_duplication_hook_holder): New variable.
1343 (node_duplication_hook_holder): New variable.
1344 (ipa_detect_param_modifications): Check for presence of modified flags.
1345 (ipa_compute_jump_functions): Check for presence of jump functions.
1346 (ipa_free_edge_args_substructures): New function.
1347 (ipa_create_node_params): Removed.
1348 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
1349 (ipa_free_node_params_substructures): New function.
1350 (ipa_free_all_node_params): Changed to deallocate the on-the-side
1352 (ipa_edge_removal_hook): New function.
1353 (ipa_node_removal_hook): New function.
1354 (duplicate_array): New function.
1355 (ipa_edge_duplication_hook): New function.
1356 (ipa_node_duplication_hook): New function.
1357 (ipa_register_cgraph_hooks): New function.
1358 (ipa_unregister_cgraph_hooks): New function.
1359 (free_all_ipa_structures_after_ipa_cp): New function.
1361 * ipa-prop.h: Include vec.h.
1362 (ipa_node_params_t): New typedef with vector types for it.
1363 (ipa_edge_args_t): New typedef with vector types for it.
1364 (IPA_NODE_REF): Changed to access an on-the-side vector.
1365 (IPA_EDGE_REF): Changed to access an on-the-side vector.
1366 (ipa_check_create_node_params): New function.
1367 (ipa_check_create_edge_args): New function.
1369 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
1372 2008-07-07 Tom Tromey <tromey@redhat.com>
1374 * configure, config.in: Rebuilt.
1375 * configure.ac: Don't check for scandir or alphasort.
1377 2008-07-07 Joseph Myers <joseph@codesourcery.com>
1379 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
1380 types immediately after creating them.
1382 2008-07-07 Joseph Myers <joseph@codesourcery.com>
1384 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
1386 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
1388 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
1389 dump_constraint_graph.
1390 (dump_constraint_edge): New function.
1391 (dump_constraint_graph): New function.
1392 (debug_constraint_graph): New function.
1393 (dump_constraint): Removed useless comparison.
1394 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
1395 (dump_constraint_graph): Declare.
1396 (debug_constraint_graph): Declare.
1397 * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
1399 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
1401 * config/i386/i386.c (is_va_list_char_pointer): New.
1402 (ix86_va_start): Replace compare with ms_va_list_type_node
1403 by is_va_list_char_pointer.
1404 (ix86_gimplify_va_arg): Likewise.
1406 2008-07-07 Martin Jambor <mjambor@suse.cz>
1408 * cgraph.c (cgraph_edge_max_uid): New variable.
1409 (struct cgraph_edge_hook_list): New type.
1410 (struct cgraph_node_hook_list): New type.
1411 (struct cgraph_2edge_hook_list): New type.
1412 (struct cgraph_2node_hook_list): New type.
1413 (first_cgraph_edge_removal_hook): New variable.
1414 (first_cgraph_node_removal_hook): New variable.
1415 (first_cgraph_edge_duplicated_hook): New variable.
1416 (first_cgraph_node_duplicated_hook): New variable.
1417 (cgraph_add_edge_removal_hook): New function.
1418 (cgraph_remove_edge_removal_hook): New function.
1419 (cgraph_call_edge_removal_hooks): New function.
1420 (cgraph_add_node_removal_hook): New function.
1421 (cgraph_remove_node_removal_hook): New function.
1422 (cgraph_call_node_removal_hooks): New function.
1423 (cgraph_add_edge_duplication_hook): New function.
1424 (cgraph_remove_edge_duplication_hook): New function.
1425 (cgraph_call_edge_duplication_hooks): New function.
1426 (cgraph_add_node_duplication_hook): New function.
1427 (cgraph_remove_node_duplication_hook): New function.
1428 (cgraph_call_node_duplication_hooks): New function.
1429 (cgraph_create_edge): Assign to edge uid.
1430 (cgraph_remove_edge): Call edge removal hooks.
1431 (cgraph_node_remove_callees): Call edge removal hooks.
1432 (cgraph_node_remove_callers): Call edge removal hooks.
1433 (cgraph_remove_node): Call node removal hooks.
1434 (cgraph_clone_edge): Call edge duplication hooks.
1435 (cgraph_clone_node): Call node duplication hooks.
1437 * cgraph.h (cgraph_edge): New field uid.
1438 (cgraph_edge_hook): New type.
1439 (cgraph_node_hook): New type.
1440 (cgraph_2edge_hook): New type.
1441 (cgraph_2node_hook): New type.
1443 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
1445 * config.in: Regenerate.
1447 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
1449 * gcc.c (print_sysroot): New.
1450 (option_map, display_help, process_command): Handle the
1451 -print-sysroot option.
1452 (main): Print the sysroot if requested.
1453 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
1455 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1458 * unwind-pe.h (size_of_encoded_value): add attribute unused.
1460 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
1462 * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
1463 (assign_parm_setup_block_p): Also check mode of entry_parm.
1465 2008-07-07 Richard Guenther <rguenther@suse.de>
1467 * tree-ssa-structalias.h (set_used_smts): Remove.
1468 * tree-ssa-structalias.c (used_smts): Likewise.
1469 (set_used_smts): Likewise.
1470 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
1471 call to set_used_smts.
1473 2008-07-07 Richard Guenther <rguenther@suse.de>
1475 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
1476 (new_var_info): Set it to false.
1477 (solution_set_add): Correctly handle pointers outside a var and
1479 (type_safe): Treat variables with is_full_var properly.
1480 (do_sd_constraint): Likewise.
1481 (do_ds_constraint): Likewise.
1482 (process_constraint): Remove zeroing offset for !use_field_sensitive.
1483 (get_constraint_for_ptr_offset): New function.
1484 (get_constraint_for_component_ref): For addresses at least include
1485 the last field of the variable. Handle is_full_vars properly.
1486 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
1487 (handle_ptr_arith): Remove.
1488 (find_func_aliases): Simplify assignment handling.
1489 (create_function_info_for): For parameter and result varinfos set
1491 (create_variable_info_for): Set is_full_var flag whenever we
1492 just created a single varinfo for a decl.
1493 (init_alias_vars): Initialize use_field_sensitive from
1494 max-fields-for-field-sensitive parameter.
1496 2008-07-07 Richard Guenther <rguenther@suse.de>
1498 PR tree-optimization/36713
1499 * tree-flow-inline.h (is_call_used): New function.
1500 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
1501 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
1502 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
1504 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
1506 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
1508 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
1510 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
1512 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
1513 Nathan Sidwell <nathan@codesourcery.com>
1515 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
1516 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
1518 * config/m68k/t-linux: New.
1519 * doc/install.texi: Document m68k-*-linux is now multilibbed by
1522 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
1524 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
1525 * config/m68k/m68k-devices.def: Remove multilibs that only differ
1528 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1530 * gcc.c (execute): Fix -Wc++-compat warning.
1532 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
1535 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
1536 constant for little endian.
1538 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
1540 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
1541 mips_base_mips16 instead of TARGET_MIPS16.
1542 (mips_base_mips16): Declare.
1543 * config/mips/mips.c (mips_base_mips16): Make global.
1544 (was_mips16_p): Remove GTY marker.
1545 (was_mips16_pch_p): New variable.
1546 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
1547 (mips_override_options): Force to non-MIPS16 mode initially.
1548 Do not complain about MIPS16 PIC incompatibilities here.
1549 Only allow -mgpopt if -mexplicit-relocs is in force for
1552 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
1554 * configure.ac: Check for caddr_t, define to char * if not defined.
1555 * configure: Regenerate.
1556 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
1557 (mmap_gt_pch_use_address): Likewise.
1558 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
1560 2008-07-06 Richard Guenther <rguenther@suse.de>
1562 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
1563 (new_var_info): Deal with it.
1564 (solution_set_add): Likewise.
1565 (bitpos_of_field): Make signed, fix.
1566 (struct fieldoff): Remove type and decl fields. Make size field
1567 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
1569 (fieldoff_compare): Deal with it.
1570 (push_fields_onto_fieldstack): Remove has_union argument, glob
1571 adjacent non-pointer fields together.
1572 (create_function_info_for): Do not set has_union.
1573 (create_variable_info_for): Simplify.
1575 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
1577 * config.gcc (extra_headers): Add cross-stdarg.h for target
1578 x86_64-*-* and i?86-*-*.
1579 * config/i386/cross-stdarg.h: New.
1580 * builtins.c (std_fn_abi_va_list): New.
1581 (std_canonical_va_list_type): New.
1582 (stabilize_va_list): Replace va_list_type_node use by
1583 mtarget.canonical_va_list_type.
1584 (gimplify_va_arg_expr): Likewise.
1585 (expand_builtin_va_copy): Replace va_list_type_node use by
1586 mtarget.fn_abi_va_list.
1587 * tree-sra.c (is_va_list_type): New helper.
1588 (decl_can_be_decomposed_p): Replace
1589 va_list_type_node use by is_va_list_type.
1590 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
1591 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
1592 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
1593 * config/i386/i386-protos.h (ix86_get_valist_type): New.
1594 (ix86_enum_va_list): New.
1595 * config/i386/i386.c (sysv_va_list_type_node): New.
1596 (ms_va_list_type_node): New.
1597 (ix86_function_type_abi): Remove sorry.
1598 (ix86_build_builtin_va_list_abi): New.
1599 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
1601 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
1602 (ix86_init_builtins_va_builtins_abi): New.
1603 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
1605 (ix86_handle_abi_attribute): New.
1606 (attribute_spec): Add sysv_abi and ms_abi.
1607 (ix86_fn_abi_va_list): New.
1608 (ix86_canonical_va_list_type): New.
1609 (ix86_enum_va_list): New.
1610 (TARGET_FN_ABI_VA_LIST): New.
1611 (TARGET_CANONICAL_VA_LIST_TYPE): New.
1612 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
1613 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
1614 (TARGET_CANONICAL_VA_LIST_TYPE): New.
1615 (TARGET_ENUM_VA_LIST): New.
1616 * expr.h (std_fn_abi_va_list): New.
1617 (std_canonical_va_list_type): New.
1618 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
1619 (TARGET_CANONICAL_VA_LIST_TYPE): New.
1620 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
1621 TARGET_CANONICAL_VA_LIST_TYPE.
1622 * target.h (struct gcc_target): Add fn_abi_va_list hook
1623 and canonical_va_list_type hook.
1625 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
1627 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
1628 integral and pointer types.
1630 2008-07-04 Roger Sayle <roger@eyesopen.com>
1632 * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
1633 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
1635 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
1638 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
1640 2008-07-04 Jakub Jelinek <jakub@redhat.com>
1642 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
1643 build_gimple_modify_stmt.
1644 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
1645 gimple operand. Use fold_build* instead of build*.
1647 2008-07-04 Richard Guenther <rguenther@suse.de>
1649 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
1650 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
1651 properly to compute the reachability set if we do field-sensitive PTA.
1652 * invoke.texi (max-fields-for-field-sensitive): Document default.
1653 * opts.c (decode_options): Set max-fields-for-field-sensitive to
1654 100 for optimize >= 2.
1656 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1658 * ggc-zone.c (lookup_page_table_if_allocated,
1659 set_page_table_entry, zone_find_object_size, alloc_small_page,
1660 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
1661 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
1662 -Wc++-compat and/or -Wcast-qual warnings.
1664 2008-07-04 Alan Modra <amodra@bigpond.net.au>
1667 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
1668 pic_offset_table_rtx to be marked as used here.
1669 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
1670 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
1671 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
1672 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
1675 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1677 * alloc-pool.c (hash_descriptor, eq_descriptor,
1678 alloc_pool_descriptor): Fix -Wc++-compat warnings.
1679 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
1681 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
1682 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
1683 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
1684 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
1687 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
1689 * tree-flow.h (loop_only_exit_p): Declare.
1690 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
1691 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
1692 the number of iterations if it is constant. Otherwise, if this is the
1693 only possible exit of the loop, use the conservative estimate on the
1694 number of iterations of the entire loop if available.
1696 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
1698 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
1699 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
1700 Add synchronization functions.
1701 * config/sync.c: New file.
1702 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
1703 (LIBGCC_SYNC_CFLAGS): Likewise.
1705 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
1708 * config/i386/i386.md (mode): Add TF to "mode" attribute.
1709 (*pushtf_sse): New insn pattern.
1710 (pushtf splitters): New splitters.
1712 2008-07-03 Michael Meissner <gnu@the-meissners.org>
1715 * predict.c (build_predict_expr): Use void_type_node for the tree
1716 type, instead of NULL_TREE.
1718 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
1720 * config/i386/i386.c (contains_aligned_value_p): Return true
1722 (ix86_data_alignment): Align TCmode to 128bits.
1723 (ix86_local_alignment): Likewise.
1725 2008-07-03 Andrew Haley <aph@redhat.com>
1728 * vec.h (VEC_TA): New.
1729 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
1730 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
1731 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
1732 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
1733 (C_COMMON_FIXED_TYPES): Remove first arg.
1734 (C_COMMON_FIXED_MODE_TYPES): Likewise.
1735 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
1736 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
1737 not to use empty macro arguments.
1739 2008-07-02 Joseph Myers <joseph@codesourcery.com>
1741 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
1742 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
1743 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
1744 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
1745 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
1746 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
1747 config/ia64/crtn.asm, config/m68hc11/larith.asm,
1748 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
1749 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
1750 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
1751 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
1752 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
1753 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
1754 config/rs6000/e500crtres64gpr.asm,
1755 config/rs6000/e500crtres64gprctr.asm,
1756 config/rs6000/e500crtrest32gpr.asm,
1757 config/rs6000/e500crtrest64gpr.asm,
1758 config/rs6000/e500crtresx32gpr.asm,
1759 config/rs6000/e500crtresx64gpr.asm,
1760 config/rs6000/e500crtsav32gpr.asm,
1761 config/rs6000/e500crtsav64gpr.asm,
1762 config/rs6000/e500crtsav64gprctr.asm,
1763 config/rs6000/e500crtsavg32gpr.asm,
1764 config/rs6000/e500crtsavg64gpr.asm,
1765 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
1766 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
1767 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
1768 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
1769 config/sparc/sol2-cn.asm: Remove .file directives.
1771 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
1773 * resource.c (mark_referenced_resources): Look inside
1774 UNSPEC_VOLATILEs and ASM_INPUTs.
1776 2008-07-02 Ian Lance Taylor <iant@google.com>
1778 * rtlanal.c (add_reg_note): New function.
1779 * rtl.h (add_reg_note): Declare.
1780 * auto-inc-dec.c (attempt_change): Use add_reg_note.
1781 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
1782 * builtins.c (expand_builtin_longjmp): Likewise.
1783 (expand_builtin_nonlocal_goto): Likewise.
1784 * calls.c (emit_call_1, expand_call): Likewise.
1785 * cfgexpand.c (add_reg_br_prob_note): Likewise.
1786 * cfglayout.c (fixup_reorder_chain): Likewise.
1787 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
1788 (commit_one_edge_insertion): Likewise.
1789 * combine.c (move_deaths, distribute_notes): Likewise.
1790 * df-problems.c (df_set_note): Likewise.
1791 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
1792 (set_unique_reg_note): Likewise.
1793 (emit_copy_of_insn_after): Likewise.
1794 * expr.c (expand_expr_real): Likewise.
1795 * gcse.c (add_label_notes): Likewise.
1796 * haifa-sched.c (create_check_block_twin): Likewise.
1797 * jump.c (mark_jump_label_1): Likewise.
1798 * loop-doloop.c (add_test, doloop_modify): Likewise.
1799 * loop-unswitch.c (compare_and_jump_seq): Likewise.
1800 * lower-subreg.c (move_eh_region_note): Likewise.
1801 * optabs.c (emit_libcall_block): Likewise.
1802 * predict.c (predict_insn): Likewise.
1803 (combine_predictions_for_insn): Likewise.
1804 * recog.c (peephole2_optimize): Likewise.
1805 * regmove.c (try_auto_increment): Likewise.
1806 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
1807 * reload.c (find_reloads): Likewise.
1808 * reload1.c (fixup_eh_region_note): Likewise.
1809 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
1810 * reorg.c (delete_prior_computation): Likewise.
1811 (delete_computation, dbr_schedule): Likewise.
1812 * config/pa/pa.c (legitimize_pic_address): Likewise.
1813 * config/sh/sh.c (sh_reorg): Likewise.
1815 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
1818 * config/libgcc-glibc.ver: Add %exclude.
1819 * config/m32r/libgcc-glibc.ver: Likwise.
1820 * config/s390/libgcc-glibc.ver: Likwise.
1821 * config/sh/libgcc-glibc.ver: Likwise.
1822 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
1824 * config/i386/libgcc-glibc.ver: New.
1826 * config/i386/libgcc-x86_64-glibc.ver: Removed.
1828 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
1830 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
1831 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
1832 i[34567]86-*-linux*, x86_64-*-linux*. Add
1833 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
1834 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
1835 x86_64-*-linux*. Add i386/t-linux to tmake_file for
1836 i[34567]86-*-linux*, x86_64-*-linux*.
1838 * libgcc-std.ver: Add empty GCC_4.4.0.
1840 * mkmap-symver.awk: Support multiple versions per symbol.
1842 * config/i386/i386.c (ix86_init_builtins): Always define
1843 __builtin_fabsq and __builtin_copysignq with fallbacks.
1844 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
1845 and __builtin_copysignq if SSE2 isn't available.
1847 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
1848 (LIBGCC2_TF_CEXT): Likwise.
1851 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
1853 * config/i386/sfp-machine.h: Moved to libgcc.
1855 * config/i386/sfp-machine.h: New.
1856 * config/i386/t-linux: Likwise.
1858 * config/i386/t-darwin: Remove softfp_wrap_start and
1860 * config/i386/t-darwin64: Likewise.
1862 * config/i386/t-fprules-softfp64: Renamed to ...
1863 * config/i386/t-fprules-softfp: This.
1865 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
1866 and softfp_wrap_end.
1868 2008-07-02 Jason Merrill <jason@redhat.com>
1870 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
1872 * tree.c (ctor_to_list): New fn.
1873 * tree.h: Declare it.
1874 (CONSTRUCTOR_ELT): New macro.
1875 (CONSTRUCTOR_NELTS): New macro.
1877 2008-07-02 Richard Guenther <rguenther@suse.de>
1879 * tree-ssa-structalias.c (struct variable_info): Reorder
1880 to fill padding on 64bit hosts. Make collapsed_to an int.
1881 (get_varinfo_fc): Deal with that.
1882 (new_var_info): Likewise.
1883 (collapse_rest_of_var): Likewise.
1885 2008-07-02 Joshua Sumali <jsumali@redhat.com>
1887 * doc/install.texi (--enable-java-home): Document.
1888 (--enable-aot-compile-rpm): Likewise.
1889 (--with-arch-directory): Likewise.
1890 (--with-os-directory): Likewise.
1891 (--with-origin-name): Likewise.
1892 (--with-arch-suffix): Likewise.
1893 (--with-jvm-root-dir): Likewise.
1894 (--with-jvm-jar-dir): Likewise.
1895 (--with-python-dir): Likewise.
1897 2008-07-02 Richard Guenther <rguenther@suse.de>
1899 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
1900 from decls explicitly. Merge operand checking from tuples.
1902 2008-07-02 Martin Jambor <mjambor@suse.cz>
1904 * tree-switch-conversion.c: Included timevar.h which I forgot before.
1906 2008-07-02 Martin Jambor <mjambor@suse.cz>
1908 * tree-switch-conversion.c: Included timevar.h
1909 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
1911 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
1913 2008-07-02 Martin Jambor <mjambor@suse.cz>
1915 * tree-switch-conversion.c: Corrected various comments and
1917 (build_constructors): Fixed minor formatting mistakes.
1919 * invoke.texi (Optimize Options): Corrected the
1920 switch-conversion-max-branch-ratio parameter.
1922 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
1924 * final.c (asm_insn_count): Return zero for an empty asm body.
1926 2008-07-02 Richard Guenther <rguenther@suse.de>
1928 * bitmap.h (bitmap_set_bit): Return bool.
1929 (bitmap_clear_bit): Likewise.
1930 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
1931 write to the bitmap if it would.
1932 (bitmap_clear_bit): Likewise.
1933 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
1934 bitmap_set_bit return value.
1935 (add_pred_graph_edge): Likewise.
1936 (add_graph_edge): Likewise.
1937 (do_sd_constraint): Likewise.
1938 (do_ds_constraint): Likewise.
1940 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1942 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
1943 Fix -Wc++-compat and/or -Wcast-qual warnings.
1944 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
1945 gen_regparm_prefix): Likewise.
1946 * vmsdbgout.c (write_modbeg, lookup_filename,
1947 vmsdbgout_source_line, vmsdbgout_init): Likewise.
1949 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
1951 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
1952 defaults.h definition apply.
1954 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1956 * function.c (assign_parm_remove_parallels): New.
1957 (assign_parm_setup_block_p): Do not return true for non-BLKmode
1959 (assign_parm_setup_block): Do not handle them.
1960 (assign_parm_setup_reg, assign_parm_setup_stack): Call
1961 assign_parm_remove_parallels.
1963 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
1965 * c-typeck.c (convert_for_assignment): Use
1966 vector_targets_convertible_p.
1967 * c-common.c (vector_targets_convertible_p): New.
1968 * c-common.h (vector_targets_convertible_p): New prototype.
1969 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
1970 opaque_p_V2SI_type_node.
1972 2008-07-01 Steve Ellcey <sje@cup.hp.com>
1974 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
1977 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
1979 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
1980 TFmode constants via two element DImode vector for hosts with
1981 HOST_BITS_PER_WIDE_INT < 64.
1982 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
1983 also for HOST_BITS_PER_WIDE_INT < 64.
1985 2008-07-01 Richard Guenther <rguenther@suse.de>
1987 PR tree-optimization/36666
1988 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
1989 (get_constraint_exp_from_ssa_var): Split into ...
1990 (get_constraint_exp_for_temp): ... this ...
1991 (get_constraint_for_ssa_var): ... and that.
1992 Return constraint expressions for all touched sub-fields
1993 if the results address is not taken.
1994 (process_constraint): Remove assertion that aggregate
1995 assignments do not happen at this place.
1996 (get_constraint_for_component_ref): Add address_p argument.
1997 Return constraint expressions for all touched sub-fields
1998 if the results address is not taken.
1999 (do_deref): Use get_constraint_exp_for_temp.
2000 (get_constraint_for_1): Rename from ...
2001 (get_constraint_for): ... this. Add the old function as wrapper.
2002 (do_structure_copy): Use get_constraint_for_1.
2004 2008-07-01 Martin Jambor <mjambor@suse.cz>
2006 * Makefile.in (tree-switch-conversion.o): Add.
2007 (OBJS-common): Add tree-swtch-conversion.o.
2008 * passes.c (init_optimization_passes): Add pass_convert_switch.
2009 * tree-pass.h: (pass_convert_switch): Add.
2010 * tree-switch-conversion.c: New file.
2011 * gcc.dg/tree-ssa/cswtch.c: New testcase.
2012 * common.opt (ftree-cswtch): New option.
2013 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
2014 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
2015 * opts.c (decode_options): Set flag_tree_switch_conversion when
2016 optimization level is >= 2.
2017 * doc/invoke.texi (Optimize Options): Added description of
2018 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
2020 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2022 * config/darwin-driver.c (darwin_default_min_version): Fix
2023 -Wc++-compat warnings.
2025 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
2027 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
2030 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
2032 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
2034 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
2036 PR rtl-optimization/34744
2037 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
2038 (df_scan_free_internal): Free data structures not
2039 allocated in storage pools.
2040 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
2041 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
2042 df_scan_free_mws_vec.
2043 * dse.c (dse_step6): Free offset_map_p and offset_map_n
2046 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
2048 * config/i386/i386.c (contains_aligned_value_p): Return true
2050 (ix86_function_arg_boundary): Return its natural boundary
2052 (return_in_memory_32): Don't check TDmode.
2053 (ix86_split_to_parts): Support splitting into 4 parts and
2054 support TFmode for 32bit target.
2055 (ix86_split_long_move): Support splitting into 4 parts.
2056 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
2058 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
2059 (ix86_init_builtins): Here.
2060 (ix86_scalar_mode_supported_p): Always return true for TFmode.
2061 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
2062 'q' and 'w', respectively.
2064 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
2066 (movtf_internal): Likewise.
2067 (<code>tf2): Likewise.
2068 (*absnegtf2_sse): Likewise.
2069 (copysign<mode>3): Likewise.
2070 (copysign<mode>3_const): Likewise.
2071 (copysign<mode>3_var): Likewise.
2072 (define_split UNSPEC_COPYSIGN): Likewise.
2073 * config/i386/sse.md (*nandtf3): Likewise.
2074 (<code>tf3): Likewise.
2075 (*<code>tf3): Likewise.
2077 2008-06-30 Joey Ye <joey.ye@intel.com>
2078 H.J. Lu <hongjiu.lu@intel.com>
2080 * global.c (compute_regsets): Set frame_pointer_needed here.
2081 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
2083 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2085 * doc/install.texi (specific): Expand Windows build notes.
2087 2008-06-30 Ira Rosen <irar@il.ibm.com>
2089 PR tree-optimization/36648
2090 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
2091 number of prolog iterations by step. Fix the comment.
2093 2008-06-30 Richard Guenther <rguenther@suse.de>
2096 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
2097 handle calls from ECF_MALLOC functions.
2098 (handle_pure_call): ECF_MALLOC functions do not return
2100 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
2102 2008-06-29 Andreas Schwab <schwab@suse.de>
2104 * config/m68k/m68k.c (print_operand): Always print a float
2106 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
2107 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
2110 * config/rs6000/x-linux64: Remove never used file.
2112 2008-06-29 Richard Guenther <rguenther@suse.de>
2114 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
2116 (struct alias_info): Move ...
2117 * tree-ssa-alias.c: ... here.
2118 (update_alias_info): Declare.
2119 (compute_may_aliases): Call it.
2120 (update_alias_info): New function.
2121 * tree-ssa-structalias.c (update_alias_info): Move ...
2122 * tree-ssa-alias.c (update_alias_info_1): ... here.
2123 * tree-ssa-structalias.c (process_constraint_1): Remove
2124 unused from_call argument. Rename to ...
2125 (process_constraint): ... this. Delete old wrapper.
2126 (make_constraint_to): Adjust callers.
2127 (handle_const_call): Likewise.
2128 (handle_pure_call): Likewise.
2129 (init_base_vars): Likewise.
2130 (handle_lhs_call): Likewise. Remove unnecessary constraint.
2131 (find_func_aliases): We don't need structure copies for
2133 (make_constraint_from_anything): Remove.
2134 (create_variable_info_for): For globals make constraints
2135 from escaped, not from anything.
2136 (compute_points_to_sets): Do not call update_alias_info.
2137 (ipa_pta_execute): Use make_constraint_from.
2139 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2141 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
2142 (bitmap.o-warn, dominance.o-warn): New.
2143 * configure.ac (cxx_compat_warn): Delete.
2144 (loose_warn): Add -Wcast-qual and -Wc++-compat.
2145 * system.h: Remove #pragma diagnostic for -Wcast-qual and
2147 * configure: Regenerate.
2149 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
2152 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2154 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
2155 * df-scan.c (df_notes_rescan): Likewise.
2156 * ggc-page.c (set_page_table_entry): Likewise.
2157 * intl.c (gcc_gettext_width): Likewise.
2158 * varasm.c (get_unnamed_section, get_noswitch_section,
2159 get_section): Likewise.
2161 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
2163 * regrename.c (build_def_use): Don't copy RTX.
2165 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
2167 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
2168 (Type Attributes): Fix nesting of @table and @subsection. Adjust
2169 punctuation. Use @ref instead of @xref.
2170 (Function Names): Remove stray @display/@end display.
2171 (C++ Attributes): Use @ref instead of @xref.
2172 (Deprecated Features): Fix punctuation around @xref.
2173 (Backwards Compatibility): Likewise.
2174 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
2176 2008-06-28 Joseph Myers <joseph@codesourcery.com>
2178 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
2179 constants for E500 double.
2181 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2183 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
2184 element type of const_vector.
2186 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
2188 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
2189 Remove FLAGS_REG clobber from expander pattern.
2190 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
2191 (anddi3, andsi3, andhi3, andqi3): Ditto.
2192 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
2193 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
2194 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
2195 (ashlsi3, ashlhi3, ashlqi3): Ditto.
2196 (ashrsi3, ashrhi3, ashrqi3): Ditto.
2197 (lshrsi3, lshrhi3, lshrqi3): Ditto.
2198 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
2199 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
2201 2008-06-28 Richard Guenther <rguenther@suse.de>
2203 * tree-ssa-structalias.c (callused_id, var_callused,
2204 callused_tree): Add.
2205 (handle_pure_call): New function.
2206 (find_func_aliases): Call it.
2207 (find_what_p_points_to): Handle the call-used set.
2208 (clobber_what_escaped): Likewise.
2209 (compute_call_used_vars): New function.
2210 (init_base_vars): Init the call-used variable.
2211 (do_sd_constraint): Do not propagate the solution from CALLUSED
2212 but use CALLUSED as a placeholder.
2213 (solve_graph): Likewise.
2214 * tree-flow-inline.h (gimple_call_used_vars): New function.
2215 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
2216 (compute_call_used_vars): Declare.
2217 * tree-ssa-alias.c (set_initial_properties): Call
2218 compute_call_used_vars.
2219 (reset_alias_info): Clear call-used variables.
2220 (add_call_clobber_ops): Assert we are not called for const/pure
2221 functions. Remove handling of them.
2222 (add_call_read_ops): Handle pure functions by adding the
2223 call-used set of variables as VUSEs.
2224 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
2225 (delete_tree_ssa): Free it.
2226 * tree-dfa.c (remove_referenced_var): Clear the var from the
2229 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
2231 * tree.c (build_varargs_function_type_list): New.
2232 (build_function_type_list_1): New.
2233 (build_function_type_list): Use build_function_type_list_1.
2234 * tree.h (build_varargs_function_type_list): New.
2236 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2239 * config/spu/spu.c (spu_builtin_splats): Do not generate
2240 invalid CONST_VECTOR expressions.
2241 (spu_expand_vector_init): Likewise.
2243 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
2245 * optabs.c (libfunc_decls): New variable.
2246 (libfunc_decl_hash, libfunc_decl_eq): New functions.
2247 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
2248 for the same function twice.
2250 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
2252 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
2253 ix86_expand_binary_operator directly.
2254 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
2256 (*ashrti3_1): Ditto.
2257 (*lshrti3_1): Ditto.
2258 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
2259 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
2260 using only one splitter. Conditionaly execute splitter before or
2261 after peephole2 pass.
2262 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
2263 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
2264 Use only one alternative in asm template.
2265 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
2267 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
2268 "J" operand constraint for operand 2.
2269 (*ashldi3_cconly_rex64): Ditto.
2270 (*ashrdi3_cmp_rex64): Ditto.
2271 (*ashrdi3_cconly_rex64): Ditto.
2272 (*lshrdi3_cmp_rex64): Ditto.
2273 (*lshrdi3_cconly_rex64): Ditto.
2274 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
2275 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
2276 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
2279 2008-06-27 Jakub Jelinek <jakub@redhat.com>
2281 * gimplify.c (omp_is_private): Don't return true if decl is not
2282 already private on #pragma omp for or #pragma omp parallel for.
2285 * tree-cfg.c (struct move_stmt_d): Replace block field with
2286 orig_block and new_block fields.
2287 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
2288 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
2289 (move_block_to_fn): Replace vars_map and new_label_map arguments
2290 with struct move_stmt_d pointer.
2291 (replace_block_vars_by_duplicates): New function.
2292 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
2293 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
2294 all subblocks of ORIG_BLOCK to the new function. Call
2295 replace_block_vars_by_duplicates.
2296 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
2297 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
2298 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
2299 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
2300 (expand_omp): Temporarily set input_location to the location of
2301 region's controlling stmt.
2302 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
2303 BIND_EXPR, push ctx->block_vars and gimplification vars into
2304 the BIND_EXPR and its block's BLOCK_VARS instead of directly
2306 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
2307 there are any BLOCK_VARS.
2308 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
2309 OMP_PARALLEL or OMP_TASK stmt.
2310 (lower_omp): Save and restore input_location around the lower_omp_1
2313 2008-06-27 Richard Guenther <rguenther@suse.de>
2315 PR tree-optimization/36400
2316 PR tree-optimization/36373
2317 PR tree-optimization/36344
2318 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
2319 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
2320 (update_alias_info): Remove call clobbering code.
2321 (make_constraint_to): New helper function.
2322 (make_escape_constraint): Likewise.
2323 (handle_rhs_call): Use it on all pointer containing arguments.
2324 Also mark the static chain escaped.
2325 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
2326 instead of ANYTHING.
2327 (make_constraint_from): New helper split out from ...
2328 (make_constraint_from_anything): ... here.
2329 (find_func_aliases): Add constraints for escape sites.
2330 (intra_create_variable_infos): Make constraints from NONLOCAL
2332 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
2334 (clobber_what_p_points_to): Remove.
2335 (clobber_what_escaped): New function.
2336 (init_base_vars): Init NONLOCAL and ESCAPED.
2337 (do_sd_constraint): Do not propagate the solution from ESCAPED
2338 but use ESCAPED as a placeholder.
2339 (solve_graph): Likewise.
2340 * tree-flow.h (clobber_what_p_points_to): Remove.
2341 (clobber_what_escaped): Declare.
2342 * tree-ssa-alias.c (set_initial_properties): Call it.
2343 Remove code clobbering escaped pointers.
2345 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
2347 * function.c (allocate_struct_function): Only allocate a unique
2348 funcdef_no if the decl is nonzero.
2350 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
2352 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
2353 * config/mips/mips.c (mips_split_const_insns): New function.
2354 * config/mips/mips.md (move_type): New attribute.
2355 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
2356 (dword_mode): New attribute.
2357 (type): Avoid long line. Map "move_type"s to "type"s,
2358 choosing "multi" for doubleword moves if appropriate.
2359 Swap MTC/MFC comments to match their declaration order.
2360 (extended_mips16): Default to "yes" if "move_type" is "sll0",
2361 "type" is "branch" or "jal" is "direct".
2362 (length): Handle "extended_mips16" first. Make the default
2363 "0" for "ghost" instructions. Set the length from "move_type".
2364 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
2365 of "type", with "sll0" for the register alternative. Remove the
2366 "extended_mips16" attribute.
2367 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
2368 of "type", with "shift_shift" for the register alternative.
2369 Remove the "length" attribute.
2370 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
2371 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
2372 of "type", with "andi" for the register alternative.
2373 (*zero_extendqihi2): Likewise.
2374 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
2375 of "andi" instead of a "type" of "arith".
2376 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
2378 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
2379 (mov_<store>r, *mov<mode>_ra): Likewise.
2380 (extendsidi2): Use "move_type" instead of "type", with "move"
2381 for the register alternative.
2382 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
2383 of "type", with "signext" for the register alternative.
2384 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
2385 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
2386 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
2387 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
2388 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
2389 (unnamed branch insn): Likewise.
2390 (*movdi_gp32_fp64): Fold into...
2391 (*movdi_32bit): ...here.
2392 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
2393 (*movdf_hardfloat): ...this new pattern.
2394 (*movdf_softfloat): Remove redundant FPR alternatives.
2395 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
2396 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
2397 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
2398 the "move" attribute.
2399 (*movdi_32bit): Use "move_type" instead of "type" and remove the
2400 "length" attribute. Use "fpload" and "fpstore" instead of "load"
2401 and "store" for COP loads and stores.
2402 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
2403 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
2404 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
2405 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
2406 (*movtf_mips16, *movv2sf): Likewise.
2407 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
2408 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
2409 (mfhc1<mode>): Use "move_type" instead of "move".
2410 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
2411 (loadgp_blockage): Remove the "length" attribute.
2412 (blockage, set_got_version, update_got_version): Likewise.
2413 (call_internal): Remove the "extended_mips16" attribute.
2414 (call_value_internal, call_value_multiple_internal): Likewise.
2415 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
2417 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
2418 the "length" attribute.
2420 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2422 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
2423 -Wcast-qual warnings.
2424 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
2425 handle_pragma_pop_macro): Likewise.
2426 * collect2.c (resolve_lib_name): Likewise.
2427 * config/arc/arc.c (arc_init): Likewise.
2428 * config/arm/arm.c (neon_builtin_compare,
2429 locate_neon_builtin_icode): Likewise.
2430 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
2431 * config/bfin/bfin.c (bfin_init_machine_status,
2432 bfin_optimize_loop): Likewise.
2433 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
2434 * config/cris/cris.c (cris_init_expanders): Likewise.
2435 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
2436 * config/darwin.c (machopic_indirection_eq,
2437 machopic_indirection_name, machopic_output_indirection): Likewise.
2438 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
2439 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
2440 frv_optimize_membar): Likewise.
2441 * config/i386/cygwin.h (mingw_scan,
2442 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
2443 * config/i386/cygwin1.c (mingw_scan): Likewise.
2444 * config/i386/i386.c (machopic_output_stub): Likewise.
2445 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
2446 i386_pe_unique_section): Likewise.
2447 * config/ia64/ia64.c (ia64_init_machine_status,
2448 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
2450 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
2451 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
2452 * config/m68k/m68k.c (m68k_handle_option,
2453 m68k_sched_md_init_global): Likewise.
2454 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
2455 mcore_unique_section): Likewise.
2456 * config/mips/mips.c (mips_block_move_straight,
2457 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
2459 * config/mmix/mmix.c (mmix_init_machine_status,
2460 mmix_encode_section_info): Likewise.
2461 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
2462 * config/rs6000/rs6000.c (rs6000_init_machine_status,
2463 print_operand_address, output_toc, redefine_groups,
2464 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
2465 * config/s390/s390.c (s390_init_machine_status): Likewise.
2466 * config/score/score.c (score_block_move_straight,
2467 score_block_move_loop_body): Likewise.
2468 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
2469 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
2470 * emit-rtl.c (find_auto_inc): Likewise.
2471 * gcc.c (translate_options, process_command): Likewise.
2472 * reorg.c (dbr_schedule): Likewise.
2473 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
2474 * xcoffout.c (xcoffout_declare_function): Likewise.
2476 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
2478 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
2479 ipa-pta working again.
2481 2008-06-27 David Edelsohn <edelsohn@gnu.org>
2483 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
2486 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
2488 * config.gcc (powerpc*-*-*): Add new core e500mc.
2489 * config/rs6000/e500mc.md: New file.
2490 * config/rs6000/rs6000.c (processor_costs): Add new costs for
2492 (rs6000_override_options): Add e500mc case to
2493 processor_target_table. Altivec and Spe options not allowed
2494 with e500mc. Add isel instruction to e500mc by
2495 default. Initialize rs6000_cost for e500mc.
2496 (rs6000_issue_rate): Set issue rate for e500mc.
2497 * config/rs6000/rs6000.h (processor_type): Add
2498 PROCESSOR_PPCE500MC.
2499 (ASM_CPU_SPEC): Add e500mc.
2500 Set TARGET_ISEL to rs6000_isel.
2501 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
2502 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
2503 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
2505 * doc/invoke.texi: Add e500mc to list of cpus.
2507 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2510 * c-lex.c (lex_charconst): Initialize unsignedp.
2512 2008-06-27 Olivier Hainque <hainque@adacore.com>
2514 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
2515 documented assumptions.
2517 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
2519 * dwarf2out.c: Remove trailing white spaces. Break long line
2522 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
2524 * libfuncs.h (LTI_synchronize): New libfunc_index.
2525 (synchronize_libfunc): Declare.
2526 * builtins.c (expand_builtin_synchronize): Consider using
2527 synchronize_libfunc before falling back on an asm blockage.
2528 * config/mips/mips.c: Include libfuncs.h
2529 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
2531 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
2533 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
2534 parameter. Copy stack_reg to r11 where appropriate.
2535 (no_global_regs_above): Add gpr parameter.
2536 (rs6000_stack_info): Only add padding for SPE save area if we
2537 are saving SPE GPRs and CR.
2538 (saveres_routine_syms): New variable.
2539 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
2541 (rs6000_savres_routine_sym): New function.
2542 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
2544 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
2545 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
2546 Tweak FPR out-of-line saving.
2547 (rs6000_make_savres_rtx): New function.
2548 (rs6000_use_multiple_p): New function.
2549 (rs6000_savres_strategy): New function.
2550 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
2551 out-of-line if appropriate.
2552 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
2553 if we are optimizing for size.
2554 (GP_SAVE_INLINE): Define.
2555 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
2556 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
2557 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
2558 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
2559 (*save_fpregs_<mode>): Add use of r11.
2560 (*restore_gpregs_<mode>): New insn.
2561 (*return_and_restore_gpregs_<mode>): New insn.
2562 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
2564 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
2565 (*restore_gpregs_spe): New insn.
2566 (*return_and_restore_gpregs_spe): New insn.
2567 * config/rs6000/predicates.md (save_world_operation): Fix check.
2569 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
2571 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
2572 this point, so assert that.
2574 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
2576 * cfganal.c: Include vec.h and vecprim.h.
2577 (compute_idf): Import from...
2578 * tree-into-ssa (compute_idf): ...here.
2579 * basic-block.h (compute_idf): Export.
2581 2008-06-26 Joseph Myers <joseph@codesourcery.com>
2583 * c-decl.c (merge_decls): Use !current_function_decl to check for
2584 extern declaration of C99 inline function being at file scope.
2586 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
2588 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
2590 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2592 * alias.c (record_alias_subset, init_alias_analysis): Fix
2593 -Wc++-compat and/or -Wcast-qual warnings.
2594 * attribs.c (lookup_attribute_spec): Likewise.
2595 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
2596 copy_bb, connect_traces,
2597 find_rarely_executed_basic_blocks_and_cr): Likewise.
2598 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
2599 note_btr_set, migrate_btr_defs): Likewise.
2600 * builtins.c (result_vector, expand_builtin_memcpy,
2601 expand_builtin_mempcpy_args, expand_builtin_strncpy,
2602 builtin_memset_read_str, expand_builtin_printf,
2603 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
2605 * caller-save.c (mark_set_regs): Likewise.
2606 * calls.c (expand_call, emit_library_call_value_1): Likewise.
2607 * cgraph.c (cgraph_edge): Likewise.
2608 * combine.c (likely_spilled_retval_1): Likewise.
2609 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
2610 htab_counts_entry_del, get_coverage_counts): Likewise.
2611 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
2612 new_cselib_val): Likewise.
2613 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
2614 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
2616 * df-core.c (df_compact_blocks): Likewise.
2617 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
2618 * df-scan.c (df_grow_reg_info, df_ref_create,
2619 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
2620 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
2621 df_record_entry_block_defs, df_record_exit_block_uses,
2622 df_bb_verify): Likewise.
2623 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
2624 DF_REF_EXTRACT_MODE_CONST): New.
2625 * dominance.c (get_immediate_dominator, get_dominated_by,
2626 nearest_common_dominator, root_of_dom_tree,
2627 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
2628 -Wc++-compat and/or -Wcast-qual warnings.
2629 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
2630 record_store, replace_read, check_mem_read_rtx, scan_insn,
2631 dse_step1, dse_record_singleton_alias_set): Likewise.
2632 * dwarf2asm.c (dw2_force_const_mem): Likewise.
2634 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2636 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
2637 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
2638 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
2639 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
2640 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
2641 add_ranges_num, add_ranges_by_labels, file_info_cmp,
2642 file_name_acquire, output_file_names, add_const_value_attribute,
2643 premark_used_types_helper, file_table_eq, file_table_hash,
2644 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
2645 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
2646 -Wcast-qual warnings.
2647 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
2648 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
2649 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
2650 gen_reg_rtx, start_sequence, init_emit): Likewise.
2651 * et-forest.c (et_new_occ, et_new_tree): Likewise.
2652 * except.c (init_eh_for_function, gen_eh_region,
2653 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
2654 arh_to_landing_pad, arh_to_label, add_action_record,
2655 add_call_site, switch_to_exception_section): Likewise.
2656 * expmed.c (synth_mult): Likewise.
2657 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
2658 store_expr): Likewise.
2659 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
2661 * function.c (assign_stack_temp_for_type,
2662 allocate_struct_function, match_asm_constraints_1): Likewise.
2663 * gcov-io.c (gcov_allocate): Likewise.
2664 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
2665 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
2666 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
2667 record_one_set, insert_expr_in_table, insert_set_in_table,
2668 dump_hash_table, compute_hash_table_work, alloc_hash_table,
2669 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
2670 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
2671 -Wcast-qual warnings.
2673 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2675 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
2676 -Wcast-qual warnings.
2677 * gcc.c (process_command): Likewise.
2678 * genattrtab.c (oballoc): Use XOBNEW.
2679 (oballocvec): Define.
2680 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
2681 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
2682 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
2683 -Wc++-compat and/or -Wcast-qual warnings.
2684 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
2685 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
2686 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
2687 gen_presence_absence_set, gen_automaton, gen_regexp_el,
2688 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
2689 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
2690 add_excls, process_presence_absence_names,
2691 process_presence_absence_patterns, add_presence_absence,
2692 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
2693 get_free_state, add_arc, get_free_automata_list_el,
2694 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
2695 transform_3, cache_presence, create_ainsns, create_automata,
2696 create_state_ainsn_table, dfa_insn_code_enlarge,
2697 output_trans_func, output_min_issue_delay_func,
2698 output_dead_lock_func, output_reset_func,
2699 output_get_cpu_unit_code_func, output_dfa_start_func,
2700 expand_automata): Likewise.
2701 * genextract.c (gen_insn): Likewise.
2702 * gengtype-lex.l: Likewise.
2703 * gengtype.c (read_input_list, adjust_field_type,
2704 process_gc_options): Likewise.
2705 * genoutput.c (note_constraint): Likewise.
2706 * genpreds.c (mangle, add_constraint): Likewise.
2707 * genrecog.c (process_define_predicate, new_decision,
2708 add_to_sequence): Likewise.
2709 * gensupport.c (record_insn_name): Likewise.
2711 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2713 * config/i386/driver-i386.c (detect_caches_amd,
2714 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
2715 and/or -Wcast-qual warnings.
2716 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
2717 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
2718 gt_pch_save): Likewise.
2719 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
2720 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
2721 * global.c (compute_regsets): Likewise.
2722 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
2723 finish_graph_dump_file): Likewise.
2724 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
2725 unlink_bb_notes): Likewise.
2726 * integrate.c (get_hard_reg_initial_val): Likewise.
2727 * ipa-prop.c (ipa_push_func_to_list): Likewise.
2728 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
2729 * local-alloc.c (update_equiv_regs): Likewise.
2730 * loop-invariant.c (check_invariant_table_size,
2731 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
2733 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
2734 altered_reg_used, mark_altered): Likewise.
2735 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
2736 insert_var_expansion_initialization,
2737 combine_var_copies_in_loop_exit, apply_opt_in_copies,
2738 release_var_copies): Likewise.
2739 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
2740 analyze_matrix_decl, add_allocation_site, analyze_transpose,
2741 analyze_accesses_for_phi_node, check_var_notmodified_p,
2742 check_allocation_function, find_sites_in_func,
2743 record_all_accesses_in_func, transform_access_sites,
2744 transform_allocation_sites): Likewise.
2745 * omp-low.c (new_omp_region, create_omp_child_function_name,
2746 check_omp_nesting_restrictions, check_combined_parallel,
2747 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
2748 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
2749 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
2750 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
2752 * opts-common.c (prune_options): Likewise.
2753 * opts.c (add_input_filename, print_filtered_help,
2754 get_option_state): Likewise.
2755 * params.c (add_params): Likewise.
2756 * passes.c (set_pass_for_id, next_pass_1,
2757 do_per_function_toporder, pass_fini_dump_file): Likewise.
2758 * postreload.c (reload_cse_simplify_operands): Likewise.
2759 * predict.c (tree_predicted_by_p, tree_predict_edge,
2760 clear_bb_predictions, combine_predictions_for_bb): Likewise.
2762 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2764 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
2766 * recog.c (check_asm_operands, validate_change_1): Likewise.
2767 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
2768 subst_asm_stack_regs): Likewise.
2769 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
2770 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
2771 * regmove.c (reg_is_remote_constant_p): Likewise.
2772 * regrename.c (regrename_optimize, scan_rtx_reg,
2773 kill_clobbered_value, kill_set_value, kill_autoinc_value):
2775 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
2776 regstat_compute_calls_crossed): Likewise.
2777 * reload1.c (init_reload, new_insn_chain,
2778 has_nonexceptional_receiver, reload, copy_reloads,
2779 calculate_needs_all_insns, init_elim_table): Likewise.
2780 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
2781 * rtl.c (shallow_copy_rtx_stat): Likewise.
2782 * rtlanal.c (parms_set): Likewise.
2783 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
2784 sbitmap_resize, sbitmap_vector_alloc): Likewise.
2785 * sched-ebb.c (earliest_block_with_similiar_load,
2786 add_deps_for_risky_insns): Likewise.
2787 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
2788 schedule_region): Likewise.
2789 * see.c (eq_descriptor_pre_extension,
2790 hash_descriptor_pre_extension, hash_del_pre_extension,
2791 eq_descriptor_properties, hash_descriptor_properties,
2792 hash_del_properties, see_seek_pre_extension_expr,
2793 see_initialize_data_structures, see_print_register_properties,
2794 see_print_pre_extension_expr, see_delete_merged_def_extension,
2795 see_delete_unmerged_def_extension, see_emit_use_extension,
2796 see_pre_delete_extension, see_map_extension, see_commit_changes,
2797 see_analyze_merged_def_local_prop,
2798 see_analyze_merged_def_local_prop,
2799 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
2800 see_set_prop_merged_def, see_set_prop_unmerged_def,
2801 see_set_prop_unmerged_use, see_print_one_extension,
2802 see_merge_one_use_extension, see_merge_one_def_extension,
2803 see_store_reference_and_extension, see_update_uses_relevancy,
2804 see_update_defs_relevancy): Likewise.
2805 * statistics.c (hash_statistics_hash, hash_statistics_eq,
2806 hash_statistics_free, curr_statistics_hash): Likewise.
2807 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
2808 expand_asm_operands, expand_return, case_bit_test_cmp,
2809 expand_case): Likewise.
2810 * stor-layout.c (start_record_layout): Likewise.
2811 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
2812 gt_pch_save_stringpool): Likewise.
2813 * tree-data-ref.c (hash_stmt_vertex_info,
2814 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
2815 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
2817 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
2820 * config/i386/i386.md : Change constraints of HImode and QImode
2821 immediate operands from "i" to "n". Change SImode "ni" constraint to
2822 "i" and SImode "rmi" constraint to "g". Remove all constraints
2823 from const0_operand and const1_operand predicated operands.
2824 (i): Change QImode and HImode attribute from "i" to "n".
2825 (*subqi_2): Change HImode operands to QImode.
2828 2008-06-25 Olivier Hainque <hainque@adacore.com>
2830 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
2833 2008-06-25 Richard Guenther <rguenther@suse.de>
2835 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
2836 not overflow the result type.
2838 2008-06-25 Richard Guenther <rguenther@suse.de>
2840 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
2841 (vn_lookup): Likewise.
2843 2008-06-25 Richard Guenther <rguenther@suse.de>
2845 PR tree-optimization/35518
2846 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
2847 * tree-sra.c (instantiate_element): Use fold_build3 to build
2849 (try_instantiate_multiple_fields): Likewise.
2851 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
2853 * config/rs6000/rs6000.md: Change all string instruction's clobber to
2856 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
2858 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
2859 use_backchain_to_restore_sp to true
2860 if the offset of the link register save area would go over the 32k - 1
2861 offset limit of the load
2864 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
2866 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
2867 anchor for the type-punning blurb. Cross-reference "Structures
2868 unions enumerations and bit-fields implementation". Provide a
2869 cast-through-pointer example. Make final sentence self-contained.
2870 * doc/implement-c.texi (Structures unions enumerations and
2871 bit-fields implementation): Cross-reference the type-punning blurb
2872 in the -fstrict-aliasing documentation.
2874 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
2877 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
2878 the memory instead of the memory itself for the save area.
2880 2008-06-24 Olivier Hainque <hainque@adacore.com>
2881 Nicolas Roche <roche@adacore.com>
2883 * gengtype.c (srcdir_len): size_t instead of int.
2884 (get_file_realbasename): New function. For F a filename, the real
2885 basename of F, with all the path components stripped.
2886 (get_file_srcdir_relative_path): New function. For F a filename, the
2887 relative path to F from $(srcdir).
2888 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
2889 get_file_realbasename. Adjust the head comment.
2890 (get_prefix_langdir_index): New function. For F a filename, return the
2891 lang_dir_names[] relative index of the language directory that is
2893 (get_file_langdir): For F a filename, return the name of the language
2894 directory where F is located.
2895 (get_file_gtfilename): New function. The gt- output file name for an
2897 (get_output_file_with_visibility): Replace in-line computations with
2898 uses of get_file_gtfilename and get_prefix_langdir_index.
2899 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
2901 2008-06-24 Jakub Jelinek <jakub@redhat.com>
2903 PR tree-optimization/36504
2904 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
2905 references without base address.
2907 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
2910 * calls.c (expand_call): Increase alignment for recursive functions.
2912 2008-06-23 Anatoly Sokolov <aesok@post.ru>
2914 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
2915 (TARGET_FUNCTION_VALUE): New define.
2916 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
2917 * config/avr/avr.h (FUNCTION_VALUE): Remove.
2919 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
2921 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
2922 (fmod<mode>3): Ditto.
2923 (remainderxf3): Ditto.
2924 (remainder<mode>3): Ditto.
2926 2008-06-23 Jakub Jelinek <jakub@redhat.com>
2929 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
2930 REG is a hard register.
2932 PR tree-optimization/36508
2933 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
2934 499, don't check it at all in release compilers.
2936 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
2938 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
2939 together with SSE_TARGET_MATH to disable insn pattern.
2940 (*fop_<MODEF:mode>_2_i387): Ditto.
2941 (*fop_<MODEF:mode>_3_i387): Ditto.
2943 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
2945 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
2947 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2950 * gimplify.c (gimplify_asm_expr): Check the return code of
2951 parse_output_constraint call, set function return and is_inout
2954 2008-06-22 Ian Lance Taylor <iant@google.com>
2956 * c-lex.c (narrowest_unsigned_type): Change itk to int.
2957 (narrowest_signed_type): Likewise.
2958 * c-typeck.c (c_common_type): Change local variable mclass to enum
2960 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
2961 tcc_comparison, not the tree code itself.
2962 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
2963 (c_expand_expr): Cast modifier to enum expand_modifier.
2964 * c-common.h (C_RID_CODE): Add casts.
2965 (C_SET_RID_CODE): Define.
2966 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
2967 (c_lex_one_token): Add cast to avoid warning.
2968 (c_parser_objc_type_name): Rename local typename to type_name.
2969 (check_no_duplicate_clause): Change code parameter to enum
2971 (c_parser_omp_var_list_parens): Change kind parameter to enum
2973 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
2974 c_parser_omp_list_var_parens.
2975 (c_parser_omp_threadprivate): Likewise.
2976 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
2977 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
2978 * c-format.c (NO_FMT): Define.
2979 (printf_length_specs): Use NO_FMT.
2980 (asm_fprintf_length_specs): Likewise.
2981 (gcc_diag_length_specs): Likewise.
2982 (scanf_length_specs): Likewise.
2983 (strfmon_length_specs): Likewise.
2984 (gcc_gfc_length_specs): Likewise.
2985 (printf_flag_specs): Change 0 to STD_C89.
2986 (asm_fprintf_flag_specs): Likewise.
2987 (gcc_diag_flag_specs): Likewise.
2988 (gcc_cxxdiag_flag_specs): Likewise.
2989 (scanf_flag_specs): Likewise.
2990 (strftime_flag_specs): Likewise.
2991 (strfmon_flag_specs): Likewise.
2992 (print_char_table): Likewise.
2993 (asm_fprintf_char_table): Likewise.
2994 (gcc_diag_char_table): Likewise.
2995 (gcc_tdiag_char_table): Likewise.
2996 (gcc_cdiag_char_table): Likewise.
2997 (gcc_cxxdiag_char_table): Likewise.
2998 (gcc_gfc_char_table): Likewise.
2999 (scan_char_table): Likewise.
3000 (time_char_table): Likewis.
3001 (monetary_char_table): Likewise.
3002 * c-format.h (BADLEN): Likewise.
3004 2008-06-21 Ian Lance Taylor <iant@google.com>
3006 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
3007 Define END_OF_BASE_TREE_CODES around inclusion.
3008 * tree.c (tree_code_type): New global array.
3009 (tree_code_length, tree_code_name): Likewise.
3010 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
3012 (all-tree.def, s-alltree): New targets.
3013 (gencheck.h, s-gencheck): Remove.
3014 (tree.o): Depend upon all-tree.def.
3015 (build/gencheck.o): Remove gencheck.h dependency.
3016 (mostlyclean): Don't remove gencheck.h.
3017 * c-common.h (enum c_tree_code): Remove.
3018 * c-lang.c (tree_code_type): Remove.
3019 (tree_code_length, tree_code_name): Remove.
3020 * gencheck.c (tree_codes): Include all-tree.def, rather than
3021 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
3023 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
3025 * cp/cp-tree.h (enum cplus_tree_code): Remove.
3026 (operator_name_info): Size to MAX_TREE_CODES.
3027 (assignment_operator_name_info): Likewise.
3028 * cp/cp-lang.c (tree_code_type): Remove.
3029 (tree_code_length, tree_code_name): Remove.
3030 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
3031 (assignment_operator_name_info): Likewise.
3032 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
3034 * cp/mangle.c (write_expression): Likewise.
3035 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
3036 * fortran/f95-lang.c (tree_code_type): Remove.
3037 (tree_code_length, tree_code_name): Remove.
3038 * java/java-tree.h (enum java_tree_code): Remove.
3039 * java/lang.c (tree_code_type): Remove.
3040 (tree_code_length, tree_code_name): Remove.
3041 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
3042 * objc/objc-act.h (enum objc_tree_code): Remove.
3043 * objc/objc-lang.c (tree_code_type): Remove.
3044 (tree_code_length, tree_code_name): Remove.
3045 * objcp/objcp-lang.c (tree_code_type): Remove.
3046 (tree_code_length, tree_code_name): Remove.
3047 * ada/ada-tree.h (enum gnat_tree_code): Remove.
3048 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
3049 * ada/misc.c (tree_code_type): Remove.
3050 (tree_code_length, tree_code_name): Remove.
3052 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
3054 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
3055 the grand_bitmap_obstack.
3057 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3059 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
3060 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
3061 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
3062 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
3063 move_stmt_r, new_label_mapper): Likewise.
3064 * tree-complex.c (cvc_lookup): Likewise.
3065 * tree-dfa.c (create_function_ann): Likewise.
3066 * tree-dump.c (dump_register): Likewise.
3067 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
3068 find_phi_replacement_condition): Likewise.
3069 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
3070 tree_function_versioning): Likewise.
3071 * tree-into-ssa.c (cmp_dfsnum): Likewise.
3072 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
3073 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
3074 get_nonlocal_debug_decl, convert_nonlocal_reference,
3075 convert_nonlocal_omp_clauses, get_local_debug_decl,
3076 convert_local_reference, convert_local_omp_clauses,
3077 convert_nl_goto_reference, convert_nl_goto_receiver,
3078 convert_tramp_reference, convert_call_expr): Likewise.
3079 * tree-outof-ssa.c (contains_tree_r): Likewise.
3080 * tree-parloops.c (reduction_phi, initialize_reductions,
3081 eliminate_local_variables_1, add_field_for_reduction,
3082 add_field_for_name, create_phi_for_local_result,
3083 create_call_for_reduction_1, create_loads_for_reductions,
3084 create_stores_for_reduction, create_loads_and_stores_for_name):
3086 * tree-phinodes.c (allocate_phi_node): Likewise.
3087 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
3088 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
3089 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
3090 * tree-ssa-coalesce.c (compare_pairs): Likewise.
3091 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
3092 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
3093 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
3094 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
3095 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
3096 vn_nary_op_insert): Likewise.
3097 * tree-ssa.c (redirect_edge_var_map_add,
3098 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
3099 * tree-vectorizer.c (vectorize_loops): Likewise.
3100 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
3101 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
3102 tree_cons_stat, build1_stat, build_variant_type_copy,
3103 decl_init_priority_lookup, decl_fini_priority_lookup,
3104 decl_priority_info, decl_restrict_base_lookup,
3105 decl_restrict_base_insert, decl_debug_expr_lookup,
3106 decl_debug_expr_insert, decl_value_expr_lookup,
3107 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
3108 type_hash_add, get_file_function_name, tree_check_failed,
3109 tree_not_check_failed, tree_range_check_failed,
3110 omp_clause_range_check_failed, build_omp_clause,
3111 build_vl_exp_stat): Likewise.
3112 * value-prof.c (gimple_histogram_value,
3113 gimple_duplicate_stmt_histograms): Likewise.
3114 * var-tracking.c (attrs_list_insert, attrs_list_copy,
3115 unshare_variable, variable_union_info_cmp_pos, variable_union,
3116 dataflow_set_different_1, dataflow_set_different_2,
3117 vt_find_locations, variable_was_changed, set_variable_part,
3118 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
3119 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
3120 section_entry_hash, object_block_entry_eq,
3121 object_block_entry_hash, create_block_symbol,
3122 initialize_cold_section_name, default_function_rodata_section,
3123 strip_reg_name, set_user_assembler_name, const_desc_eq,
3124 build_constant_desc, output_constant_def, lookup_constant_def,
3125 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
3126 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
3127 default_internal_label): Likewise.
3128 * varray.c (varray_init, varray_grow): Likewise.
3129 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
3131 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
3133 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
3134 operators for "test" insn. Macroize insn using SWI mode macro.
3135 (*jcc_fused_2): Ditto.
3136 (*jcc_fused_3): Macroize insn using SWI mode macro.
3137 (*jcc_fused_4): Ditto.
3139 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
3141 * tree-ssa-pre.c: Fix typo in comment.
3142 (init_antic, fini_antic): Add explicit funtions for
3143 initializing and deinitializing ANTIC and AVAIL sets.
3144 (create_expression_by_pieces): Fix typo in comment.
3145 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
3146 (execute_pre): Eventually dump details about ANTIC_IN.
3148 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3150 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
3151 * gcc.c (translate_options, init_spec, store_arg, read_specs,
3152 add_to_obstack, file_at_path, find_a_file, execute,
3153 add_preprocessor_option, add_assembler_option, add_linker_option,
3154 process_command, insert_wrapper, do_option_spec, do_self_spec,
3155 spec_path, do_spec_1, is_directory, main, used_arg,
3156 getenv_spec_function): Likewise.
3157 * tlink.c (symbol_hash_lookup, file_hash_lookup,
3158 demangled_hash_lookup, symbol_push, file_push, frob_extension):
3161 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
3163 * doc/rtl.texi: Updated subreg section.
3165 2008-06-19 Jakub Jelinek <jakub@redhat.com>
3168 * cgraphunit.c (cgraph_process_new_functions): Don't clear
3169 node->needed and node->reachable.
3170 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
3171 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
3172 (expand_task_call): Don't call expand_task_copyfn.
3173 (expand_task_copyfn): Renamed to...
3174 (finalize_task_copyfn): ... this.
3176 2008-06-19 Jan Hubicka <jh@suse.cz>
3178 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
3179 clobbering framepointer.
3181 2008-06-19 Jan Hubicka <jh@suse.cz>
3183 * tree-optimize.c (execute_early_local_optimizations): Set
3184 cgraph_state only at first invocation.
3186 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3188 * system.h (-Wc++-compat): Activate as a warning, no an error.
3190 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
3192 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
3193 instead of "#" in insn asm template.
3194 (*jcc_fused_2): Ditto.
3196 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
3198 * config/i386/i386.h (ix86_tune_indices)
3199 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
3200 (TARGET_FUSE_CMP_AND_BRANCH): New define.
3201 * config/i386/i386.md (*jcc_fused_1): New insn pattern
3202 (*jcc_fused_2): Ditto.
3203 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
3204 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
3205 (print operand): Handle 'E' and 'e' code.
3207 2008-06-19 Anatoly Sokolov <aesok@post.ru>
3209 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
3210 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
3211 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
3213 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
3215 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
3217 (cgraph_expand_function): Use local copy of decl.
3218 (cgraph_expand_all_functions): Remove redundant initialization of
3220 (cgraph_optimize): Reword internal_error message.
3222 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
3224 * arm-protos.h (arm_return_in_memory): Remove public
3225 arm_return_in_memory() prototype.
3226 * arm.c (arm_return_in_memory): Add static prototype, add target
3227 hook macro, change definition and comments.
3228 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
3230 2008-06-19 Ben Elliston <bje@au.ibm.com>
3232 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
3233 real.c: Remove references to IEEE 754R.
3234 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
3235 * doc/libgcc.texi (Decimal float library routines): Likewise.
3237 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3239 * targhooks.h (struct gcc_target): New member unwind_word_mode.
3240 (default_unwind_word_mode): Add prototype.
3241 * targhooks.c (default_unwind_word_mode): New function.
3242 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
3243 instead of word_mode.
3244 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
3245 (TARGET_INITIALIZER): Use it.
3247 * c-common.c (handle_mode_attribute): Support "unwind_word"
3249 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
3251 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
3252 word_mode to access SjLj_Function_Context member "data".
3253 (sjlj_emit_dispatch_table): Likewise. Also, perform type
3254 conversion from targetm.eh_return_filter_mode () to
3255 targetm.unwind_word_mode () if they differ.
3257 * builtin-types.def (BT_UNWINDWORD): New primitive type.
3258 (BT_FN_UNWINDWORD_PTR): New function type.
3259 (BT_FN_WORD_PTR): Remove.
3260 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
3261 * except.c (expand_builtin_extend_pointer): Convert pointer to
3262 targetm.unwind_word_mode () instead of word_mode.
3264 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
3265 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
3266 (spu_unwind_word_mode): New function.
3267 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
3268 (TARGET_UNWIND_WORD_MODE): Define.
3269 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
3271 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3273 * config/spu/spu.c (reg_align): Remove.
3274 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
3275 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
3276 (spu_split_store): Likewise.
3278 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
3280 * gcc/tree-vn.c: Fix typo in comment.
3282 2008-06-18 Jan Hubicka <jh@suse.cz>
3284 * cgraphunit.c (cgraph_optimize): Output debug info when doing
3285 toplevel reorder too.
3287 2008-06-18 Jan Hubicka <jh@suse.cz>
3289 * c-opts.c (c_common_post_options): PCH is not compatible with
3291 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
3292 -fno-toplevel-reorder by default now.
3294 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3296 PR documentation/30739
3297 * doc/install.texi (Prerequisites): Document dependency on awk.
3299 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
3300 Ian Lance Taylor <iant@google.com>
3302 PR rtl-optimization/35604
3303 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
3304 only want to change jump destinations, not eventual label comparisons.
3306 2008-06-16 Jan Hubicka <jh@suse.cz>
3308 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
3310 (cgraph_analyze_function): Likewise.
3312 2008-06-16 Jan Hubicka <jh@suse.cz>
3314 * cgraph.h (cgraph_mark_if_needed): New function.
3315 * cgraphunit.c (cgraph_mark_if_needed): New function.
3316 * c-decl.c (duplicate_decl): Use it.
3318 2008-06-16 Jan Hubicka <jh@suse.cz>
3320 * cgraph.c (cgraph_add_new_function): When in expansion state, do
3323 2008-06-16 Jan Hubicka <jh@suse.cz>
3325 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
3327 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
3328 Kazu Hirata <kazu@codesourcery.com>
3329 Maxim Kuvyrkov <maxim@codesourcery.com
3331 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
3332 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
3333 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
3334 EXTRA_SPEC_FUNCTIONS.
3335 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
3336 (DRIVER_SELF_SPECS): Adjust.
3337 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
3338 * config/mips/st.h, config/mips/t-st: New.
3339 * config/mips/driver-native.c, config/mips/x-native: New.
3340 * doc/invoke.texi (MIPS): Document 'native' value for -march and
3343 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
3345 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
3347 (ISA_HAS_FP_CONDMOVE): New macro.
3348 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
3349 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
3350 (ISA_HAS_NMADD3_NMSUB3): New macro.
3351 * config/mips/mips.c (mips_rtx_costs): Update.
3352 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
3353 compiling for ST Loongson 2E/2F.
3354 (madd<mode>): Rename to madd4<mode>. Update.
3355 (madd3<mode>): New pattern.
3356 (msub<mode>): Rename to msub4<mode>. Update.
3357 (msub3<mode>): New pattern.
3358 (nmadd<mode>): Rename to nmadd4<mode>. Update.
3359 (nmadd3<mode>): New pattern.
3360 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
3361 (nmadd3<mode>_fastmath): New pattern.
3362 (nmsub<mode>): Rename to nmsub4<mode>. Update.
3363 (nmsub3<mode>): New pattern.
3364 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
3365 (nmsub3<mode>_fastmath): New pattern.
3366 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
3368 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
3370 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
3371 (DF_REF_INSN_INFO): New.
3372 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
3373 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
3374 with a NULL DF_REF_INSN_INFO.
3375 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
3377 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
3378 DF_INSN_INFO_EQ_USES): New.
3379 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
3380 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
3381 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
3382 * df-core.c: Update comment for above changes.
3383 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
3384 DF_INSN_UID_* macros.
3385 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
3386 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
3387 insn rtx. Update all callers.
3388 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
3389 df_ref_create_structure, df_insn_refs_collect): Likewise.
3390 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
3391 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
3392 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
3393 macros to access the insn refs.
3394 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
3395 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
3396 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
3397 for accessing the refs.
3398 (try_fwprop_subst): Likewise.
3399 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
3400 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
3401 for accessing the refs.
3402 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
3403 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
3404 to look at the insn refs.
3405 (record_uses): Likewise.
3406 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
3408 (mark_artificial_uses): Don't mark_insn for artificial refs.
3409 (mark_reg_rependencies): Likewise.
3411 * doc/rtl.texi: Remove documentation of ADDRESSOF.
3413 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3415 * configure: Regenerate.
3417 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
3419 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
3420 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3421 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3423 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
3425 * config/avr/avr.c (avr_mcu_t): Add attiny167.
3426 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3427 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3429 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
3431 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
3432 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3433 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3435 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
3437 * tree-ssa-sccvn.c: Fix format of comments.
3439 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
3441 * cgraph.c: Remove unneeded forward declarations of eq_node()
3444 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
3446 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
3448 (see_update_relevancy): Likewise.
3449 * fwprop.c (try_fwprop_subst): Likewise.
3450 * rtlanal.c (noop_move_p): Likewise.
3451 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
3452 notes to non-existing libcall blocks.
3453 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
3455 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
3456 (dead_libcall_p): Remove.
3457 (delete_trivially_dead_insns): Don't use it.
3458 * web.c (union_defs): Remove comment about keeping nops.
3459 * gcse.c (hash_scan_insn): Don't take libcall pointers.
3460 (compute_hash_table_work): Don't track libcall notes.
3461 (do_local_cprop): Don't take libcall pointers. Don't update
3463 (adjust_libcall_notes): Deleted.
3464 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
3465 ever have existed in the first place).
3466 (replace_store_insn): Don't try to remove libcall notes.
3467 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
3468 (resolve_reg_notes): Don't call them.
3469 (resolve_simple_move): Likewise.
3470 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
3471 Don't remove REG_RETVAL notes.
3472 * emit-rtl.c (try_split): Don't update libcall notes.
3473 (emit_copy_of_insn_after): Dito.
3474 * cselib.c (cselib_current_insn_in_libcall): Remove.
3475 (cselib_process_insn): Don't set/clear it.
3476 (new_elt_loc_list): Don't record it.
3477 (cselib_init): Don't initialize it.
3478 * cselib.c (struct elt_loc_list): Remove in_libcall field.
3479 * loop-invariant.c (find_invariant_insn): Don't look for libcall
3481 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
3482 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
3483 (init_deps): Don't initialize it.
3484 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
3485 * combine.c (delete_noop_moves): Don't update libcall notes.
3486 (can_combine_p): Remove now pointless #if 0 block.
3487 (try_combine): Remove another obsolete #if 0 block.
3488 (distribute_notes): Don't distribute libcall notes.
3489 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
3490 * dce.c (libcall_dead_p): Remove.
3491 (delete_unmarked_insns): Don't handle libcall blocks.
3492 (preserve_libcall_for_dce): Remove.
3493 (prescan_insns_for_dce): Don't special-case libcall block insns.
3494 * reload1 (reload): Don't handle libcall notes.
3495 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
3498 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
3500 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
3501 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3502 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3504 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
3506 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
3507 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3508 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3510 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3512 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
3514 2008-06-16 Ira Rosen <irar@il.ibm.com>
3516 PR tree-optimization/36493
3517 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
3518 the arguments list. Use VECTYPE to create vector pointer.
3519 (vectorizable_store): Fail if accesses through a pointer to vectype
3520 do not alias the original memory reference operands.
3521 Call vect_create_data_ref_ptr without the removed argument.
3522 (vectorizable_load): Likewise.
3523 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
3526 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
3529 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
3532 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3534 * config/mips/loongson2ef.md: New file.
3535 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
3536 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
3537 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
3538 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
3539 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
3541 (loongson2ef.md): New include.
3542 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
3543 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
3544 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
3545 (loongson_gt_<mode>, loongson_extract_halfword)
3546 (loongson_insert_halfword_0, loongson_insert_halfword_2)
3547 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
3548 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
3549 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
3550 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
3551 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
3552 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
3553 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
3554 (vec_interleave_low<mode>): Define type attribute.
3555 * config/mips/mips.c (mips_ls2): New static variable.
3556 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
3557 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
3558 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
3559 Implement target scheduling hooks.
3560 (mips_multipass_dfa_lookahead): Update to handle tuning for
3562 (mips_sched_init): Initialize data for Loongson scheduling.
3563 (mips_ls2_variable_issue): New static function.
3564 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
3566 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
3567 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
3568 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
3569 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
3570 Handle ST Loongson 2E/2F cores.
3571 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
3573 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3575 * omp-low.c (extract_omp_for_data): Fix comment typo.
3578 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3580 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
3581 FIXME note about gcc/config.guess.
3582 * doc/options.texi (Option file format): Remove non-ASCII bytes.
3583 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
3584 * doc/cppopts.texi: Likewise.
3585 * doc/extend.texi: Likewise.
3586 * doc/gcc.texi: Likewise.
3587 * doc/gccint.texi: Likewise.
3588 * doc/gcov.texi: Likewise.
3589 * doc/gty.texi: Likewise.
3590 * doc/hostconfig.texi: Likewise.
3591 * doc/install.texi: Likewise.
3592 * doc/invoke.texi: Likewise.
3593 * doc/loop.texi: Likewise.
3594 * doc/makefile.texi: Likewise.
3595 * doc/md.texi: Likewise.
3596 * doc/passes.texi: Likewise.
3597 * doc/tm.texi: Likewise.
3598 * doc/tree-ssa.texi: Likewise.
3599 * doc/trouble.texi: Likewise.
3601 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
3602 Nathan Sidwell <nathan@codesourcery.com>
3603 Maxim Kuvyrkov <maxim@codesourcery.com>
3604 Richard Sandiford <rdsandiford@googlemail.com>
3606 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
3607 * config/mips/mips-protos.h (mips_expand_vector_init): New.
3608 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
3610 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
3611 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
3612 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
3614 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
3615 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
3616 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
3617 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
3618 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
3619 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
3620 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
3621 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
3622 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
3623 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
3624 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
3625 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
3626 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
3627 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
3628 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
3629 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
3630 (mips_builtins): Add Loongson builtins.
3631 (mips_loongson_2ef_bdesc): New.
3632 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
3633 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
3634 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
3635 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
3637 (mips_expand_vector_init): New.
3638 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
3639 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
3641 * config/mips/mips.md: Add unspec numbers for Loongson
3642 builtins. Include loongson.md.
3643 (MOVE64): Include Loongson vector modes.
3644 (SPLITF): Include Loongson vector modes.
3645 (HALFMODE): Handle Loongson vector modes.
3646 * config/mips/loongson.md: New.
3647 * config/mips/loongson.h: New.
3648 * config.gcc: Add loongson.h header for mips*-*-* targets.
3649 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
3651 2008-06-14 Joseph Myers <joseph@codesourcery.com>
3653 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
3654 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
3655 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
3656 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
3657 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
3658 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
3659 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
3660 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
3661 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
3662 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
3663 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
3664 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
3665 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
3666 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
3667 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
3668 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
3669 Remove use_fixproto=yes.
3670 (ia64*-*-hpux*): Remove comment about using fixproto.
3671 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
3673 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3675 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
3677 * configure: Regenerate.
3679 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
3682 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
3683 before evaluating it.
3685 2008-06-13 Jakub Jelinek <jakub@redhat.com>
3688 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
3689 nested inline functions.
3690 (start_decl, start_function): Don't invert DECL_EXTERNAL
3691 for nested inline functions.
3693 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
3695 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
3696 splits that must be made for correctness.
3698 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
3700 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
3701 (AVAIL_NON_MIPS16): Likewise.
3702 (mips_builtin_description): Replace target_flags with a predicate.
3703 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
3704 (dspr2_32): New availability predicates.
3705 (MIPS_BUILTIN): New macro.
3706 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
3707 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
3708 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
3709 Replace the TARGET_FLAGS parameters with AVAIL parameters.
3710 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
3711 (mips_dsp_32only_bdesc): Merge into...
3712 (mips_builtins): ...this new array.
3713 (mips_bdesc_map, mips_bdesc_arrays): Delete.
3714 (mips_init_builtins): Update after above changes.
3715 (mips_expand_builtin_1): Merge into...
3716 (mips_expand_builtin): ...here and update after above changes.
3718 2008-06-12 Paul Brook <paul@codesourcery.com>
3720 * longlong.h (__arm__): Define count_leading_zeros.
3721 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
3722 (clzsi2, clzdi2): New functions.
3723 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
3724 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
3725 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
3726 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
3727 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
3728 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
3729 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
3730 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
3731 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
3732 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
3734 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
3736 * config/m68k/m68k.c (m68k_tune_flags): New.
3737 (override_options): Compute m68k_tune_flags.
3738 (MULL_COST, MULW_COST): Update for various variants of CFV2.
3739 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
3741 2008-06-12 Jakub Jelinek <jakub@redhat.com>
3744 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
3746 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
3748 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
3749 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
3751 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
3753 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
3754 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
3756 2008-06-12 Jakub Jelinek <jakub@redhat.com>
3759 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
3762 2008-06-12 Richard Guenther <rguenther@suse.de>
3764 PR tree-optimization/36345
3765 * tree-flow.h (struct ptr_info_def): Align escape_mask,
3766 add memory_tag_needed flag.
3767 (may_alias_p): Declare.
3768 * tree-ssa-alias.c (may_alias_p): Export.
3769 (set_initial_properties): Use memory_tag_needed flag.
3770 (update_reference_counts): Likewise.
3771 (reset_alias_info): Reset memory_tag_needed flag.
3772 (create_name_tags): Check memory_tag_needed flag.
3773 (dump_points_to_info_for): Dump it.
3774 * tree-ssa-structalias.c (struct variable_info): Remove
3775 directly_dereferenced flag.
3776 (new_var_info): Do not initialize it.
3777 (process_constraint_1): Do not set it.
3778 (update_alias_info): Set is_dereferenced flag.
3779 (set_uids_in_ptset): Use may_alias_p.
3780 (set_used_smts): Check memory_tag_needed flag.
3781 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
3782 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
3783 memory_tag_needed flag.
3784 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
3787 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
3789 * config/i386/i386.c (ix86_compute_frame_layout): Disable
3790 red zone for w64 abi.
3791 (ix86_expand_prologue): Likewise.
3792 (ix86_force_to_memory): Likewise.
3793 (ix86_free_from_memory): Likewise.
3795 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
3798 * config/rs6000/rs6000.c (rs6000_override_options): Set
3799 rs6000_isel conditionally to the absence of comand line override.
3800 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
3801 Remove duplicate rs6000_isel setting.
3802 * config/rs6000/eabispe.h: Ditto.
3804 2008-06-11 Richard Guenther <rguenther@suse.de>
3806 * alias.c (get_alias_set): Use the element alias-set for arrays.
3807 (record_component_aliases): For arrays and vectors do nothing.
3808 * c-common.c (strict_aliasing_warning): Handle the cases
3809 of alias set zero explicitly.
3810 * Makefile.in (dfp.o-warn): Add -Wno-error.
3812 2008-06-11 Joseph Myers <joseph@codesourcery.com>
3814 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
3816 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
3817 tune_32 tune_64 to supported_defaults. Allow values not
3818 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
3819 x86_64. Do not override cpu_32 or cpu_64 values from target name.
3820 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
3821 with_cpu_64 to generic for 64-bit-supporting configurations, not
3822 with_cpu. Remove FIXMEs.
3823 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
3824 --with-arch-64, --with-tune-32, --with-tune-64): Document.
3825 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
3826 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
3827 arch_32 and arch_64.
3829 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
3830 Olivier Hainque <hainque@adacore.com>
3832 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
3833 Use DECL_SIZE_UNIT to retrieve the size of the field.
3835 2008-06-11 Joseph Myers <joseph@codesourcery.com>
3837 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
3838 with function calls after declarations. Lay out
3839 neon_float_type_node before further use.
3841 2008-06-11 Richard Guenther <rguenther@suse.de>
3843 * tree-flow.h (may_point_to_global_var): Declare.
3844 * tree-ssa-alias.c (may_point_to_global_var): New function.
3845 * tree-ssa-sink.c (is_hidden_global_store): Use it.
3847 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
3849 * configure.ac: Teach that fido supports .debug_line.
3850 * configure: Regenerate.
3852 2008-06-10 Tom Tromey <tromey@redhat.com>
3854 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
3857 2008-06-10 Joseph Myers <joseph@codesourcery.com>
3859 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
3860 (encode_decimal64, decode_decimal64, encode_decimal128,
3861 decode_decimal128): Reverse order of 32-bit parts of value if host
3862 and target endianness differ.
3864 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
3866 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
3867 Avoid division by 0.
3868 (tree_mod_pow2_value_transform): Likewise.
3869 (tree_ic_transform): Likewise.
3870 (tree_stringops_transform): Likewise.
3871 (tree_mod_subtract_transform): Likewise.
3872 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
3873 (copy_edges_for_bb): Likewise.
3874 (initialize_cfun): Likewise.
3876 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
3878 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
3879 nonmemory_operand. Add "N" operand constraint.
3881 (*jcc_btdi_mask_rex64): New instruction and split pattern.
3882 (*jcc_btsi_mask): Ditto.
3883 (*jcc_btsi_mask_1): Ditto.
3885 2008-06-10 Joseph Myers <joseph@codesourcery.com>
3887 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
3888 TYPE_CANONICAL for copied element type.
3890 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
3893 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
3894 Add m_CORE2 and m_GENERIC.
3895 * config/i386/predicates.md (bt_comparison_operator): New predicate.
3896 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
3898 (*jcc_btdi_rex64): New instruction and split pattern.
3900 (*jcc_btsi_1): Ditto.
3901 (*btsq): Fix Intel asm dialect operand order.
3905 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
3908 * simplify-rtx.c (simplify_subreg): Add check for shift count
3911 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
3913 * doc/md.texi: Synchronize with later constraints.md change.
3914 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
3915 with a C implementation.
3916 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
3918 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
3919 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
3920 when moving to and from MD_REGNUM.
3921 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
3922 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
3923 Handle byte and halfword moves.
3924 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
3926 * config/mips/constraints.md (h): Turn into NO_REGS.
3927 (l, x): Update documentation.
3928 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
3929 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
3930 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
3931 (HILO): New mode iterator.
3933 (any_div): New code iterator.
3934 (u): Extend code attribute to div and udiv.
3935 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
3936 d_operand in the splitters. Remove redundant CONST_INT checks.
3937 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
3938 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
3939 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
3940 accordingly, using normal moves instead of unspecs to move LO into
3941 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
3942 (<u>mulsidi3): Handle expansion in C code.
3943 (<u>mulsidi3_32bit_internal): Rename to...
3944 (<u>mulsidi3_32bit): ...this.
3945 (<u>mulsidi3_32bit_r4000): Fix insn separator.
3946 (*<u>mulsidi3_64bit): Rename to...
3947 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
3948 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
3949 to set LO and HI to the multiplication result. Use a normal move
3950 for MFLO and an unspec for MFHI.
3951 (*<u>mulsidi3_64bit_parts): Replace with...
3952 (<u>mulsidi3_64bit_hilo): ...this new instruction.
3953 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
3954 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
3955 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
3956 instead of HI. Split the instruction into a separate multiplication
3957 and MFHI if !TARGET_FIX_R4000.
3958 (<su>muldi3_highpart): Likewise.
3959 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
3960 and the "=h" clobber.
3961 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
3962 (<u>mulditi3): New expander.
3963 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
3964 (madsi): Remove "=h" clobber.
3965 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
3966 Force the modulus result to be a GPR and split the instruction into
3967 a division followed by an MFHI after reload.
3968 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
3969 (*lea_high64): Use d_operand in the define_peephole2. Likewise
3970 the MIPS16 HIGH define_split.
3971 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
3972 of acc<->gpr moves to "multi".
3973 (*movdi_64bit): Replace the single "x" alternative with
3974 alternatives for moving into and out of "a".
3975 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
3976 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
3977 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
3978 Use d_operand in the splitters. Remove redundant CONST_INT checks.
3979 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
3980 (movti): New expander.
3981 (*movti, *movti_mips16): New insns.
3982 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
3983 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
3984 (mthi<GPR:mode>_<HILO:mode>): Likewise.
3985 * config/mips/predicates.md (fpr_operand): Delete.
3986 (d_operand): New predicate.
3988 2008-06-09 Michael Meissner <michael.meissner@amd.com>
3990 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
3991 failure on some Bourne shells.
3992 (x86_64-*-*): Ditto.
3994 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
3996 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
3998 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
4000 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
4001 (sparc-sun-solaris2*): Likewise.
4003 2008-06-09 Arnaud Charlet <charlet@adacore.com
4005 * doc/install.texi: Update requirements to build the Ada compiler.
4007 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
4009 * df-scan.c (struct df_scan_problem_data): Remove the
4010 mw_link_pool alloc pool.
4011 (df_scan_free_internal): Don't free it.
4012 (df_scan_alloc): Don't allocate it.
4013 * df.h (struct df_link): Update comment.
4015 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
4017 * except.h: Correct checks for when SJLJ exceptions must be used.
4019 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4021 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
4024 2008-06-08 Joseph Myers <joseph@codesourcery.com>
4026 PR tree-optimization/36218
4027 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
4028 configure for the build system.
4029 (BUILD_LDFLAGS): Define.
4030 * configure: Regenerate.
4031 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
4033 2008-07-08 Anatoly Sokolov <aesok@post.ru>
4036 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
4037 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
4038 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
4040 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
4042 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
4044 2008-06-07 Joseph Myers <joseph@codesourcery.com>
4046 * config.gcc (Obsolete configurations): Remove list of
4048 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
4049 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
4050 targets matched by those patterns.
4051 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
4052 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
4053 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
4054 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
4055 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
4056 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
4057 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
4058 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
4059 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
4060 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
4061 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
4062 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
4063 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
4064 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
4065 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
4066 Make code for Solaris 7 and greater unconditional for Solaris.
4067 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
4068 Remove --with-* handling.
4069 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
4070 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
4071 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
4072 LINK_OS_WINDISS_SPEC): Remove.
4073 * config/rs6000/sysv4.opt (mwindiss): Remove.
4074 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
4075 * configure: Regenerate.
4076 * doc/cpp.texi: Don't mention BeOS.
4077 * doc/extend.texi (interrupt): Don't mention MS1.
4078 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
4079 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
4080 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
4081 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
4082 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
4084 * doc/invoke.texi (MT Options): Remove.
4085 (-mwindiss): Remove.
4086 (CRIS Options): Remove cris-axis-aout references.
4087 (HPPA Options): Don't mention hppa1.1-*-pro.
4088 * doc/md.texi: (MorphoTech family): Remove.
4089 * libgcc2.c: Don't handle UWIN.
4090 * config/alpha/t-unicosmk: Remove.
4091 * config/alpha/unicosmk.h: Remove.
4092 * config/arm/kaos-arm.h: Remove.
4093 * config/arm/kaos-strongarm.h: Remove.
4094 * config/arm/strongarm-coff.h: Remove.
4095 * config/arm/strongarm-elf.h: Remove.
4096 * config/arm/strongarm-pe.h: Remove.
4097 * config/arm/t-strongarm-pe: Remove.
4098 * config/arm/t-xscale-coff: Remove.
4099 * config/arm/t-xscale-elf: Remove.
4100 * config/arm/xscale-coff.h: Remove.
4101 * config/arm/xscale-elf.h: Remove.
4102 * config/chorus.h: Remove.
4103 * config/cris/aout.h: Remove.
4104 * config/cris/aout.opt: Remove.
4105 * config/cris/t-aout: Remove.
4106 * config/i386/beos-elf.h: Remove.
4107 * config/i386/kaos-i386.h: Remove.
4108 * config/i386/ptx4-i.h: Remove.
4109 * config/i386/sco5.h: Remove.
4110 * config/i386/sco5.opt: Remove.
4111 * config/i386/sysv4-cpp.h: Remove.
4112 * config/i386/sysv5.h: Remove.
4113 * config/i386/t-beos: Remove.
4114 * config/i386/t-sco5: Remove.
4115 * config/i386/t-uwin: Remove.
4116 * config/i386/uwin.asm: Remove.
4117 * config/i386/uwin.h: Remove.
4118 * config/kaos.h: Remove.
4119 * config/mips/windiss.h: Remove.
4120 * config/mt: Remove directory.
4121 * config/pa/pa-osf.h: Remove.
4122 * config/pa/pa-pro-end.h: Remove.
4123 * config/pa/t-pro: Remove.
4124 * config/ptx4.h: Remove.
4125 * config/rs6000/beos.h: Remove.
4126 * config/rs6000/kaos-ppc.h: Remove.
4127 * config/rs6000/t-beos: Remove.
4128 * config/rs6000/windiss.h: Remove.
4129 * config/sh/kaos-sh.h: Remove.
4130 * config/sol2-6.h: Remove.
4131 * config/sparc/sol26-sld.h: Remove.
4132 * config/sparc/sysv4-only.h: Remove.
4133 * config/vax/bsd.h: Remove.
4134 * config/vax/t-memfuncs: Remove.
4135 * config/vax/ultrix.h: Remove.
4136 * config/vax/vaxv.h: Remove.
4137 * config/windiss.h: Remove.
4139 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
4141 PR rtl-optimization/36438
4142 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
4143 for vector shifts with constant scalar shift operands.
4145 2008-06-06 Sandip Matte <sandip@rmicorp.com>
4147 * doc/invoke.texi: Document -march=xlr.
4148 * config/mips/xlr.md: New file.
4149 * config/mips/mips.md: Include it.
4151 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
4152 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
4153 (mips_rtx_cost_data): Likewise.
4155 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
4157 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
4158 PRE_INC and PRE_DEC cases.
4160 2008-06-06 Jakub Jelinek <jakub@redhat.com>
4162 PR rtl-optimization/36419
4163 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
4164 the emitting jump insn.
4167 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
4168 is not bool, boolify the whole *expr_p and convert to the desired type.
4170 2008-06-06 Jakub Jelinek <jakub@redhat.com>
4172 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
4173 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
4174 Add omp_private_outer_ref hook, add another argument to
4175 omp_clause_default_ctor hook.
4176 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
4177 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
4178 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
4179 hook_tree_tree_tree_tree_null.
4180 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
4181 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
4182 * hooks.c (hook_tree_tree_tree_tree_null): New function.
4183 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
4184 * tree.def (OMP_TASK): New tree code.
4185 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
4186 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
4187 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
4188 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
4189 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
4190 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
4191 OMP_CLAUSE_COLLAPSE_EXPR): Define.
4192 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
4193 (OMP_DIRECTIVE_P): Add OMP_TASK.
4194 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
4195 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
4196 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
4197 and OMP_CLAUSE_UNTIED entries.
4198 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
4200 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4201 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
4202 * tree-pretty-print.c (dump_omp_clause): Handle
4203 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
4204 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
4205 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
4206 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
4207 warning about unsigned iterators. Change decl/init/cond/incr
4208 arguments to TREE_VECs, check arguments for all collapsed loops.
4209 (c_finish_omp_taskwait): New function.
4210 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
4212 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
4213 default_function_array_conversion on init. Add par_clauses argument.
4214 If decl is present in parallel's lastprivate clause, change it to
4215 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
4216 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
4217 collapse count in clauses.
4218 (c_parser_omp_for, c_parser_omp_parallel): Adjust
4219 c_parser_omp_for_loop callers.
4220 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
4221 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
4222 (c_parser_omp_clause_name): Handle collapse and untied clauses.
4223 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
4225 (c_parser_omp_clause_schedule): Handle schedule(auto).
4226 Include correct location in the error message.
4227 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
4228 and PRAGMA_OMP_CLAUSE_UNTIED.
4229 (OMP_TASK_CLAUSE_MASK): Define.
4230 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
4231 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
4232 * tree-nested.c (convert_nonlocal_omp_clauses,
4233 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
4234 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
4235 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4236 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
4238 (conver_nonlocal_reference, convert_local_reference,
4239 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
4240 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
4241 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
4242 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
4243 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
4244 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
4245 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
4246 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
4247 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
4249 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
4250 * c-common.h (c_finish_omp_taskwait): New prototype.
4251 * gimple-low.c (lower_stmt): Handle OMP_TASK.
4252 * tree-parloops.c (create_parallel_loop): Create 1 entry
4253 vectors for OMP_FOR_{INIT,COND,INCR}.
4254 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
4255 (make_edges): Handle OMP_TASK.
4256 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
4257 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
4258 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
4259 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
4260 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
4261 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
4262 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
4263 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
4264 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
4265 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
4266 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
4267 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
4268 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
4269 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
4270 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
4271 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
4272 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
4273 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
4274 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
4275 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
4276 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
4277 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
4278 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
4279 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
4280 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
4281 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
4282 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
4283 original iterator is present in lastprivate clause or if
4284 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
4285 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
4286 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
4287 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
4288 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
4289 if it is set, lookup var in outer contexts too. Handle
4290 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
4291 to be implicitly determined firstprivate for task regions.
4292 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
4293 if it is set, lookup var in outer contexts too. Set
4294 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
4295 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
4296 OMP_CLAUSE_UNTIED. Take region_type as last argument
4297 instead of in_parallel and in_combined_parallel.
4298 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
4300 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
4301 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
4302 (new_omp_context): Set default_kind to
4303 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
4304 (omp_region_type): New enum.
4305 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
4306 fields, add region_type.
4307 (new_omp_context): Take region_type as argument instead of is_parallel
4308 and is_combined_parallel.
4309 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
4310 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
4311 ctx->is_combined_parallel checks.
4312 (gimplify_omp_task): New function.
4313 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
4315 * omp-low.c (extract_omp_for_data): Use schedule(static)
4316 for schedule(auto). Handle pointer and unsigned iterators.
4317 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
4318 Add loops argument. Extract data for collapsed OMP_FOR loops.
4319 (expand_parallel_call): Assert sched_kind isn't auto,
4320 map runtime schedule to index 3.
4321 (struct omp_for_data_loop): New type.
4322 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
4323 Add loop, loops, collapse and iter_type fields.
4324 (workshare_safe_to_combine_p): Disallow combined for if
4325 iter_type is unsigned long long. Don't combine collapse > 1 loops
4326 unless all bounds and steps are constant. Adjust extract_omp_for_data
4328 (expand_omp_for_generic): Handle pointer, unsigned and long long
4329 iterators. Handle collapsed OMP_FOR loops. Adjust
4330 for struct omp_for_data changes. If libgomp function doesn't return
4331 boolean_type_node, add comparison of the return value with 0.
4332 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
4333 pointer, unsigned and long long iterators. Adjust for struct
4334 omp_for_data changes.
4335 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
4336 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
4337 unsigned long long. Allocate loops array, pass it to
4338 extract_omp_for_data. For collapse > 1 loops use always
4339 expand_omp_for_generic.
4340 (omp_context): Add sfield_map and srecord_type fields.
4341 (is_task_ctx, lookup_sfield): New functions.
4342 (use_pointer_for_field): Use is_task_ctx helper. Change first
4343 argument's type from const_tree to tree. Clarify comment.
4344 In OMP_TASK disallow copy-in/out sharing.
4345 (build_sender_ref): Call lookup_sfield instead of lookup_field.
4346 (install_var_field): Add mask argument. Populate both record_type
4347 and srecord_type if needed.
4348 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
4350 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
4351 and DECL_FIELD_OFFSET.
4352 (scan_sharing_clauses): Adjust install_var_field callers. For
4353 firstprivate clauses on explicit tasks allocate the var by value in
4354 record_type unconditionally, rather than by reference.
4355 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
4356 Use is_taskreg_ctx instead of is_parallel_ctx.
4357 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4358 (create_omp_child_function_name): Add task_copy argument, use
4359 *_omp_cpyfn* names if it is true.
4360 (create_omp_child_function): Add task_copy argument, if true create
4361 *_omp_cpyfn* helper function.
4362 (scan_omp_parallel): Adjust create_omp_child_function callers.
4363 Rename parallel_nesting_level to taskreg_nesting_level.
4364 (scan_omp_task): New function.
4365 (lower_rec_input_clauses): Don't run constructors for firstprivate
4366 explicit task vars which are initialized by *_omp_cpyfn*.
4367 Pass outer var ref to omp_clause_default_ctor hook if
4368 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
4369 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
4370 OMP_CLAUSE_REDUCTION_INIT.
4371 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
4372 avoid duplicate setting of fields. Handle
4373 OMP_CLAUSE_PRIVATE_OUTER_REF.
4374 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
4375 copy-out if TREE_READONLY, only copy-in.
4376 (expand_task_copyfn): New function.
4377 (expand_task_call): New function.
4378 (struct omp_taskcopy_context): New type.
4379 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
4381 (lower_omp_parallel): Rename to...
4382 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
4383 Call create_task_copyfn if srecord_type is needed. Adjust
4385 (task_shared_vars): New variable.
4386 (check_omp_nesting_restrictions): Warn if work-sharing,
4387 barrier, master or ordered region is closely nested inside OMP_TASK.
4388 Add warnings for barrier if closely nested inside of work-sharing,
4389 ordered, or master region.
4390 (scan_omp_1): Call check_omp_nesting_restrictions even for
4391 GOMP_barrier calls. Rename parallel_nesting_level to
4392 taskreg_nesting_level. Handle OMP_TASK.
4393 (lower_lastprivate_clauses): Even if some lastprivate is found on a
4394 work-sharing construct, continue looking for them on parent parallel
4396 (lower_omp_for_lastprivate): Add lastprivate clauses
4397 to the beginning of dlist rather than end. Adjust for struct
4398 omp_for_data changes.
4399 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
4400 not after it. Handle collapsed OMP_FOR loops, adjust for
4401 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
4402 (get_ws_args_for): Adjust extract_omp_for_data caller.
4403 (scan_omp_for): Handle collapsed OMP_FOR
4404 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
4405 (lower_omp_single_simple): If libgomp function doesn't return
4406 boolean_type_node, add comparison of the return value with 0.
4407 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
4408 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
4409 (parallel_nesting_level): Rename to...
4410 (taskreg_nesting_level): ... this.
4411 (is_taskreg_ctx): New function.
4412 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
4414 (execute_lower_omp): Rename parallel_nesting_level to
4415 taskreg_nesting_level.
4416 (expand_omp_parallel): Rename to...
4417 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
4418 Call omp_task_call for OMP_TASK regions.
4419 (expand_omp): Adjust caller, handle OMP_TASK.
4420 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
4422 * bitmap.c (bitmap_default_obstack_depth): New variable.
4423 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
4424 if argument is NULL and bitmap_default_obstack is already initialized.
4425 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
4427 * matrix-reorg.c (matrix_reorg): Likewise.
4429 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
4431 * config/i386/i386.md (*indirect_jump): Macroize using P
4432 mode iterator. Remove !TARGET_64BIT from insn constraints.
4433 (*tablejump_1): Ditto.
4434 (*indirect_jump_rex64): Remove insn pattern.
4435 (*tablejump_1_rex64): Ditto.
4436 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
4437 and eh_return_si insn patterns.
4439 2008-06-06 Richard Guenther <rguenther@suse.de>
4441 * tree-ssa-structalias.c (merge_smts_into): Remove.
4442 (find_what_p_points_to): Do not bother to compute the
4443 points-to set for pt_anything pointers.
4444 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
4445 for pt_anything pointers is ok.
4447 2008-06-06 Jan Hubicka <jh@suse.cz>
4449 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
4451 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4453 * cgraph.c: Fix typos in comments.
4454 (cgraph_availability_names): Fix string typo.
4455 * fold-const.c: Fix typos in comments.
4456 (fold_binary): Fix typo in warning.
4457 * genautomata.c: Fix typos in comments.
4458 (check_presence_pattern_sets): Fix typo in local variable.
4459 (output_description): Fix typo in output.
4460 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
4461 * hwint.h: Likewise.
4462 * matrix-reorg.c (check_allocation_function): Likewise.
4463 * omega.c (smooth_weird_equations): Likewise.
4464 * auto-inc-dec.c: Fix typos in comments.
4465 * bb-reorder.c: Likewise.
4466 * builtins.c: Likewise.
4467 * c-common.c: Likewise.
4468 * c-cppbuiltin.c: Likewise.
4469 * c-parser.c: Likewise.
4470 * c-pretty-print.c: Likewise.
4471 * cfgcleanup.c: Likewise.
4472 * cfgexpand.c: Likewise.
4473 * cfghooks.c: Likewise.
4474 * cfglayout.c: Likewise.
4475 * cfgloopmanip.c: Likewise.
4476 * cgraphunit.c: Likewise.
4477 * coverage.c: Likewise.
4478 * dbxout.c: Likewise.
4479 * df-byte-scan.c: Likewise.
4480 * df-core.c: Likewise.
4481 * df-problems.c: Likewise.
4482 * df-scan.c: Likewise.
4484 * dominance.c: Likewise.
4485 * domwalk.c: Likewise.
4487 * dwarf2out.c: Likewise.
4488 * emit-rtl.c: Likewise.
4489 * et-forest.c: Likewise.
4490 * function.c: Likewise.
4491 * function.h: Likewise.
4493 * gcov-io.c: Likewise.
4496 * genattrtab.c: Likewise.
4497 * ggc-page.c: Likewise.
4498 * gimplify.c: Likewise.
4499 * gthr-lynx.h: Likewise.
4500 * haifa-sched.c: Likewise.
4501 * ipa-cp.c: Likewise.
4502 * ipa-inline.c: Likewise.
4503 * ipa-prop.h: Likewise.
4504 * ipa-pure-const.c: Likewise.
4505 * ipa-struct-reorg.c: Likewise.
4506 * ipa-struct-reorg.h: Likewise.
4507 * ipa-type-escape.c: Likewise.
4509 * loop-doloop.c: Likewise.
4510 * mips-tfile.c: Likewise.
4511 * mkmap-flat.awk: Likewise.
4512 * mkmap-symver.awk: Likewise.
4513 * modulo-sched.c: Likewise.
4514 * omp-low.c: Likewise.
4515 * optabs.c: Likewise.
4516 * optabs.h: Likewise.
4518 * passes.c: Likewise.
4519 * postreload-gcse.c: Likewise.
4520 * postreload.c: Likewise.
4521 * predict.c: Likewise.
4522 * pretty-print.h: Likewise.
4523 * profile.c: Likewise.
4524 * protoize.c: Likewise.
4525 * ra-conflict.c: Likewise.
4527 * recog.c: Likewise.
4528 * regclass.c: Likewise.
4530 * reload.c: Likewise.
4531 * rtl-error.c: Likewise.
4532 * rtlanal.c: Likewise.
4534 * sched-rgn.c: Likewise.
4537 * target.h: Likewise.
4538 * tree-dfa.c: Likewise.
4539 * tree-eh.c: Likewise.
4540 * tree-flow-inline.h: Likewise.
4541 * tree-inline.c: Likewise.
4542 * tree-into-ssa.c: Likewise.
4543 * tree-loop-distribution.c: Likewise.
4544 * tree-nested.c: Likewise.
4545 * tree-parloops.c: Likewise.
4546 * tree-pass.h: Likewise.
4547 * tree-pretty-print.c: Likewise.
4548 * tree-profile.c: Likewise.
4549 * tree-scalar-evolution.c: Likewise.
4550 * tree-sra.c: Likewise.
4551 * tree-ssa-alias-warnings.c: Likewise.
4552 * tree-ssa-ccp.c: Likewise.
4553 * tree-ssa-coalesce.c: Likewise.
4554 * tree-ssa-dom.c: Likewise.
4555 * tree-ssa-dse.c: Likewise.
4556 * tree-ssa-forwprop.c: Likewise.
4557 * tree-ssa-live.c: Likewise.
4558 * tree-ssa-live.h: Likewise.
4559 * tree-ssa-loop-im.c: Likewise.
4560 * tree-ssa-loop-ivopts.c: Likewise.
4561 * tree-ssa-loop-niter.c: Likewise.
4562 * tree-ssa-loop-prefetch.c: Likewise.
4563 * tree-ssa-phiopt.c: Likewise.
4564 * tree-ssa-phiprop.c: Likewise.
4565 * tree-ssa-sccvn.c: Likewise.
4566 * tree-ssa-ter.c: Likewise.
4567 * tree-ssa-threadupdate.c: Likewise.
4568 * tree-ssa.c: Likewise.
4569 * tree-vect-analyze.c: Likewise.
4570 * tree-vect-transform.c: Likewise.
4571 * tree-vectorizer.c: Likewise.
4572 * tree-vn.c: Likewise.
4573 * tree-vrp.c: Likewise.
4575 * tree.def: Likewise.
4577 * unwind-dw2-fde.c: Likewise.
4578 * unwind.inc: Likewise.
4579 * value-prof.c: Likewise.
4580 * vmsdbgout.c: Likewise.
4582 2008-06-05 David Edelsohn <edelsohn@gnu.org>
4584 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
4585 always place FP constants in the TOC for TARGET_POWERPC64.
4586 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
4588 2008-06-05 Joseph Myers <joseph@codesourcery.com>
4590 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
4591 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
4592 enable for TARGET_E500_DOUBLE.
4593 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
4594 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
4595 floating-point modes like integer modes for E500 double.
4596 (rs6000_legitimate_offset_address_p): Likewise.
4597 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
4598 addressing for DDmode for E500 double.
4599 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
4600 modes as using 64-bits of registers for E500 double.
4601 (spe_build_register_parallel): Do not handle DDmode or TDmode.
4602 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
4603 specially for E500 double.
4604 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
4605 TDmode for E500 double.
4606 (rs6000_gimplify_va_arg): Only handle SDmode in registers
4607 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
4608 (rs6000_split_multireg_move): Do not handle TDmode specially for
4610 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
4611 using 64-bit registers for E500 double.
4612 (emit_frame_save): Do not handle DDmode specially for E500 double.
4613 (gen_frame_mem_offset): Likewise.
4614 (rs6000_function_value): Do not call spe_build_register_parallel
4615 for DDmode or TDmode.
4616 (rs6000_libcall_value): Likewise.
4617 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
4618 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
4621 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
4623 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
4626 2008-06-04 Junjie Gu <jgu@tensilica.com>
4628 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
4629 comparison for frame pointers.
4631 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
4634 * config/avr/avr.h (PUSH_ROUNDING): Remove.
4636 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
4639 * builtins.c (expand_builtin_signbit): Don't take lowpart when
4640 register is already smaller or equal to required mode.
4642 2008-06-04 Xinliang David Li <davidxl@google.com>
4644 * tree-call-cdce.c: New file.
4645 (cond_dead_built_in_calls): New static variable.
4646 (input_domain): New struct.
4647 (check_pow): New function.
4648 (check_builtin_call): Ditto.
4649 (check_target_format): Ditto.
4650 (is_call_dce_candidate): Ditto.
4651 (gen_one_condition): Ditto.
4652 (gen_conditions_for_domain): Ditto.
4653 (get_domain): Ditto.
4654 (gen_conditions_for_pow_cst_base): Ditto.
4655 (gen_conditions_for_pow_int_base): Ditto.
4656 (gen_conditions_for_pow): Ditto.
4657 (get_no_error_domain): Ditto.
4658 (gen_shrink_wrap_conditions): Ditto.
4659 (shrink_wrap_one_built_in_call): Ditto.
4660 (shink_wrap_conditional_dead_built_in_calls): Ditto.
4661 (tree_call_cdce): Ditto.
4662 (gate_call_cdce): Ditto.
4663 (pass_call_cdce): New gimple pass.
4664 * passes.c: (init_optimization_passes): New pass.
4665 * tree-pass.h: New pass declaration.
4666 * opts.c (decode_options): New flag setting.
4667 * common.opt: Add -ftree-builtin-call-dce flag.
4668 * Makefile.in: Add new source file.
4669 * tempvar.def: New tv_id.
4670 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
4672 2008-06-04 Richard Guenther <rguenther@suse.de>
4674 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
4675 (is_call_clobbered): Always check var_ann->call_clobbered.
4676 (mark_call_clobbered): Always set var_ann->call_clobbered.
4677 (clear_call_clobbered): Always clear var_ann->call_clobbered.
4678 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
4679 (reset_alias_info): Clear call clobbering info on MTAGs and
4681 (set_pt_anything): Set pt_global_mem.
4682 (create_tag_raw): Adjust comment.
4683 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
4685 2008-06-04 Joseph Myers <joseph@codesourcery.com>
4686 Maxim Kuvyrkov <maxim@codesourcery.com>
4688 * config/m68k/m68k.opt (mxgot): New option.
4689 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
4690 (m68k_output_addr_const_extra): New.
4691 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
4692 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
4693 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
4694 * doc/invoke.texi (M680x0 Options): Document -mxgot.
4696 2008-06-04 Richard Guenther <rguenther@suse.de>
4698 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
4699 negative or non-representable offsets.
4701 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
4703 * config/i386/i386.c (ix86_gen_leave): New.
4704 (ix86_gen_pop1): Likewise.
4705 (ix86_gen_add3): Likewise.
4706 (ix86_gen_sub3): Likewise.
4707 (ix86_gen_sub3_carry): Likewise.
4708 (ix86_gen_one_cmpl2): Likewise.
4709 (ix86_gen_monitor): Likewise.
4710 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
4711 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
4712 ix86_gen_one_cmpl2 and ix86_gen_monitor.
4713 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
4714 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
4715 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
4716 (ix86_expand_epilogue): Updated.
4717 (print_operand): Handle integer register operand for 'z'.
4718 (ix86_expand_strlensi_unroll_1): Likewise.
4719 (ix86_expand_strlen): Likewise.
4720 (ix86_expand_builtin): Likewise.
4721 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
4722 mov{q}/mov{l} and add{q}/add{l}.
4724 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
4726 * config/i386/i386.md (P): New mode iterator.
4727 (SFmode push_operand splitter): Macroize DImode and SImode pushes
4728 using P mode iterator.
4729 (DFmode push_operand splitter): Ditto.
4730 (XFmode push_operand splitter): Ditto.
4731 (DFmode float_extend SFmode push_operand splitter): Ditto.
4732 (XFmode float_extend SFmode push_operand splitter): Do not generate
4733 SImode pushes for 64bit target. Macroize Dimode and SImode
4734 pushes using P mode iterator.
4735 (XFmode float_extend DFmode push_operand splitter): Ditto.
4737 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
4739 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
4740 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
4741 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
4743 (ix86_call_abi_override): Remove check for call_used_regs.
4745 2008-06-03 Richard Guenther <rguenther@suse.de>
4747 * tree-ssa-structalias.c (find_func_aliases): Add constraints
4748 for the lhs of calls if the return type contains pointers.
4750 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
4752 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
4753 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
4754 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
4755 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
4756 of cfun and DEFAULT_ABI to deceide abi mode.
4758 (REG_PARM_STACK_SPACE): Removed.
4759 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
4760 (STACK_BOUNDARY): Use default target to deceide stack boundary.
4761 * config/i386/i386-protos.h (ix86_cfun_abi): New.
4762 (ix86_function_abi): Likewise.
4763 (ix86_function_type_abi): Likewise.
4764 (ix86_call_abi_override): Likewise.
4765 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
4766 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
4767 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
4768 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
4770 (X86_64_REGPARM_MAX): New.
4771 (X86_64_SSE_REGPARM_MAX): New.
4772 (X64_REGPARM_MAX): New.
4773 (X64_SSE_REGPARM_MAX): New.
4774 (X86_32_REGPARM_MAX): New.
4775 (X86_32_SSE_REGPARM_MAX): New.
4776 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
4777 (ix86_function_regparm): Handle user calling abi.
4778 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
4779 by DEFAULT_ABI versus SYSV_ABI check.
4780 (ix86_reg_parm_stack_space): New.
4781 (ix86_function_type_abi): New.
4782 (ix86_call_abi_override): New.
4783 (ix86_function_abi): New.
4784 (ix86_cfun_abi): New.
4785 (init_cumulative_args): Call abi specific initialization.
4786 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
4787 (function_arg_64): Extend SSE_REGPARM_MAX check.
4788 (function_arg (): Remove TARGET_64BIT_MS_ABI.
4789 (ix86_pass_by_reference): Likewise.
4790 (ix86_function_value_regno_p): Likewise.
4791 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
4792 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
4793 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
4794 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
4795 (setup_incoming_varargs_64): Adjust regparm for call abi.
4796 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
4797 (ix86_va_start): Likewise.
4798 (ix86_gimplify_va_arg): Likewise.
4799 (ix86_expand_prologue): Likewise.
4800 (output_pic_addr_const): Likewise.
4801 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
4802 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
4803 (x86_output_mi_thunk): Likewise.
4804 (x86_function_profiler): Likewise.
4805 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
4806 (SYSV_ABI, MS_ABI): New constants.
4808 (init_regs): Add prototype of function in regclass.c file.
4809 (OVERRIDE_ABI_FORMAT): New.
4810 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
4811 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
4812 (OUTGOING_REG_PARM_STACK_SPACE): New.
4813 (ix86_reg_parm_stack_space): New prototype.
4814 (CUMULATIVE_ARGS): Add call_abi member.
4815 (machine_function): Add call_abi member.
4816 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
4817 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
4819 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
4822 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
4823 (avr_builtin_setjmp_frame_value): New function.
4824 * config/avr/avr.md (nonlocal_goto_receiver): Define.
4825 (nonlocal_goto): Define.
4827 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
4829 * config/mips/mips.c (mips_emit_loadgp): Return early if
4830 there is nothing do to, otherwise emit a blockage if
4831 !TARGET_EXPLICIT_RELOCS || crtl->profile.
4832 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
4834 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4836 * configure.ac: Drop unneeded backslash ending up in config.in.
4837 * acinclude.m4: Likewise.
4838 * config.in: Regenerate.
4840 2008-05-26 Jan Hubicka <jh@suse.cz>
4842 * predict.c (maybe_hot_frequency_p): Break out of...
4843 (maybe_hot_bb_p): ... here.
4844 (maybe_hot_edge_p): New.
4845 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
4846 * basic-block.h (maybe_hot_edge_p): Declare.
4848 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
4850 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
4851 (*cmpfp_<mode>_cc): Ditto.
4852 (*fp_jcc_8<mode>_387): Ditto.
4853 (*fop_<MODEF:mode>_2_i387): Ditto.
4854 (*fop_<MODEF:mode>_3_i387): Ditto.
4855 (*fop_xf_2_i387): Ditto.
4856 (*fop_xf_3_i387): Ditto.
4858 2008-06-02 Tomas Bily <tbily@suse.cz>
4860 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
4862 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4864 * config/mips/mips.c (mips_valid_offset_p): New function.
4865 (mips_valid_lo_sum_p): Likewise.
4866 (mips_classify_address): Use them.
4867 (mips_force_address): New function.
4868 (mips_legitimize_address): Use it.
4869 * config/mips/mips.md (MOVE128): New mode iterator.
4870 (movtf): Require TARGET_64BIT. Remove empty strings.
4871 (*movtf_internal): Rename to...
4872 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
4873 of "R" and use {,fp}{load,store} attributes instead of "multi".
4874 Use a separate define_split.
4875 (*movtf_mips16): New pattern.
4877 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4879 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
4880 * config/mips/mips.c (mips_expand_before_return): New function.
4881 (mips_expand_epilogue): Call it.
4882 * config/mips/mips.md (return): Turn into a define_expand.
4883 (*return): New insn.
4885 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4887 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
4888 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
4889 functions. Do not emit uses and clobbers of CONCATs; individually
4890 use and clobber their operands.
4891 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
4892 gen_clobber, emit_use and gen_use.
4893 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
4894 (expand_builtin_return): Likewise.
4895 * cfgbuild.c (count_basic_blocks): Likewise.
4896 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
4897 * explow.c (emit_stack_restore): Likewise.
4898 * expmed.c (extract_bit_field_1): Likewise.
4899 * expr.c (convert_move, emit_move_complex_parts): Likewise.
4900 (emit_move_multi_word, store_constructor): Likewise.
4901 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
4902 (thread_prologue_and_epilogue_insns): Likewise.
4903 * lower-subreg.c (resolve_simple_move): Likewise.
4904 * optabs.c (widen_operand, expand_binop): Likewise.
4905 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
4906 * reload.c (find_reloads): Likewise.
4907 * reload1.c (eliminate_regs_in_insn): Likewise.
4908 * stmt.c (expand_nl_goto_receiver): Likewise.
4909 * config/alpha/alpha.md (builtin_longjmp): Likewise.
4910 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
4911 * config/arm/arm.c (arm_load_pic_register): Likewise.
4912 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
4913 * config/arm/arm.md (untyped_return): Likewise.
4914 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
4915 * config/avr/avr.c (expand_prologue): Likewise.
4916 * config/bfin/bfin.c (do_unlink): Likewise.
4917 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
4918 * config/cris/cris.c (cris_expand_prologue): Likewise.
4919 * config/darwin.c (machopic_indirect_data_reference): Likewise.
4920 (machopic_legitimize_pic_address): Likewise.
4921 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
4922 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
4923 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
4924 (ix86_expand_convert_uns_didf_sse): Likewise.
4925 (ix86_expand_vector_init_general): Likewise.
4926 * config/ia64/ia64.md (eh_epilogue): Likewise.
4927 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
4928 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
4929 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
4930 (config/iq2000/iq2000.c): Likewise.
4931 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
4932 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
4933 (builtin_longjmp): Likewise.
4934 * config/mn10300/mn10300.md (call, call_value): Likewise.
4935 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
4936 * config/pdp11/pdp11.md (abshi2): Likewise.
4937 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
4938 * config/s390/s390.c (s390_emit_prologue): Likewise.
4939 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
4940 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
4941 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
4942 * config/sh/sh.c (prepare_move_operands): Likewise.
4943 (output_stack_adjust, sh_expand_epilogue): Likewise.
4944 (sh_set_return_address, sh_expand_t_scc): Likewise.
4945 * config/sparc/sparc.c (load_pic_register): Likewise.
4946 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
4947 * config/spu/spu.c (spu_expand_epilogue): Likewise.
4948 * config/v850/v850.c (expand_epilogue): Likewise.
4950 2008-05-31 Anatoly Sokolov <aesok@post.ru>
4952 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
4953 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
4954 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
4955 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
4956 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
4957 stack pointer register.
4958 (output_movhi): Remove code for interrupt specific writing to the
4959 stack pointer register.
4961 2008-05-31 Richard Guenther <rguenther@suse.de>
4963 PR tree-optimization/34244
4964 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
4965 (tree_expr_nonzero_warnv_p): Likewise.
4966 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
4967 ssa_name_nonnegative_p.
4968 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
4969 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
4970 not tree_expr_nonzero_warnv_p.
4972 PR tree-optimization/36262
4974 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
4976 PR tree-optimization/34244
4977 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
4978 (record_numbers_of_iterations): New function.
4979 (execute_vrp): Cache the numbers of iterations of loops.
4980 * tree-scalar-evolution.c (scev_reset_except_niters):
4982 (scev_reset): Use scev_reset_except_niters.
4983 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
4985 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
4987 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4988 __WORKAROUND_RETS when appropriate.
4990 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
4992 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
4993 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
4995 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
4996 *fop_df_comm_sse insn patterns using MODEF mode iterator.
4997 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
4998 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
4999 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
5000 *fop_df_1_mixed insn patterns using MODEF mode iterator.
5001 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
5002 *fop_df_1_sse insn patterns using MODEF mode iterator.
5003 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
5004 *fop_df_1_i387 insn patterns using MODEF mode iterator.
5005 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
5006 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
5007 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
5008 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
5009 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
5010 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
5011 (*fop_xf_4_i387): Use <MODE> for mode attribute.
5012 (*fop_xf_5_i387): Ditto.
5013 (*fop_xf_6_i387): Ditto.
5015 2008-05-30 Richard Guenther <rguenther@suse.de>
5017 * builtins.c (build_string_literal): Avoid generating
5018 a non-gimple_val result.
5020 2008-05-30 DJ Delorie <dj@redhat.com>
5022 * exec-tool.in: Use an environment variable (private) instead of a
5023 file (shared) as a semaphore, so as to not break parallel builds.
5025 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
5027 * optabs.c (maybe_encapsulate_block): Remove.
5028 (emit_libcall_block): Adjust accordingly.
5029 * optabs.h (maybe_encapsulate_block): Remove prototype.
5031 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
5032 Don't use maybe_encapsulate_block.
5034 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
5036 * config/rs6000/rs6000.c (rs6000_legitimize_address,
5037 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
5038 rtx is a SYMBOL_REF before calling get_pool_constant.
5040 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
5042 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
5044 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
5046 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
5047 rather than OS names to choose INO_T_EQ definition.
5048 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
5049 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
5051 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
5054 * config/darwin-f.c: New.
5055 * config/t-darwin: Added rule to build darwin-f.o.
5056 * config.gcc: Defined new variable, fortran_target_objs.
5057 (*-*-darwin*): Set fortran_target_objs.
5058 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
5059 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
5060 * configure: Regenerated.
5062 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
5065 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
5066 canonical type if needed.
5068 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
5070 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
5072 2008-05-29 Richard Guenther <rguenther@suse.de>
5074 PR tree-optimization/36343
5075 PR tree-optimization/36346
5076 PR tree-optimization/36347
5077 * tree-flow.h (clobber_what_p_points_to): Declare.
5078 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
5079 pointed-to variable is dereferenced is irrelevant to whether
5080 the pointer can access the pointed-to variable.
5081 (clobber_what_p_points_to): New function.
5082 * tree-ssa-alias.c (set_initial_properties): Use it.
5083 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
5084 call clobber check for NMTs.
5086 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
5088 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
5089 for printing gcov_type.
5091 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
5093 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
5094 and the eh region information.
5095 * value-prof.c (gimple_move_stmt_histograms): New function.
5096 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
5098 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
5100 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
5102 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
5104 * value-prof.c (tree_ic_transform): Print counts.
5105 * tree-profile.c (tree_gen_ic_func_profiler):
5106 Clear __gcov_indreict_call_callee variable to avoid misattribution
5109 2008-05-28 Rafael Espindola <espindola@google.com>
5111 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
5114 2008-05-28 Richard Guenther <rguenther@suse.de>
5116 PR tree-optimization/36339
5117 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
5118 and clobbering code out of the loop.
5120 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
5122 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
5125 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
5126 s390_contiguous_bitmask_p, s390_symref_operand_p,
5127 s390_check_symref_alignment, s390_reload_larl_operand,
5128 s390_reload_symref_address): New functions.
5129 (s390_branch_condition_mnemonic): Support compare and branch
5131 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
5132 and 'W' constraints.
5133 (s390_secondary_reload): Add secondary reloads for unaligned
5134 symbol refs or symbol refs to floating point or QI/TI mode
5136 (legitimate_address_p): Accept symbol references as addresses.
5137 (s390_expand_insv): Use rotate and insert selected bits
5138 instruction for insv when building for z10.
5139 (print_operand_address): Handle symbol ref addresses.
5140 (print_operand): Output modifier 'c' added for signed byte values.
5141 (s390_encode_section_info): Mark symbol refs with
5142 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
5144 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
5145 (length attribute): RRF, RRR have 4 byte length.
5146 (FPALL, INTALL): New mode iterators added.
5147 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
5148 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
5149 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
5150 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
5151 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
5152 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
5153 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
5154 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
5156 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
5157 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
5158 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
5159 reload<INTALL:mode><P:mode>_toreg_z10,
5160 reload<FPALL:mode><P:mode>_tomem_z10,
5161 reload<FPALL:mode><P:mode>_toreg_z10,
5162 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
5163 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
5164 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
5165 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
5167 (movmem, clrmem, cmpmem): New splitters added.
5169 * config/s390/predicates.md (larl_operand): Use
5170 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
5171 SYMBOL_REF_ALIGN1_P.
5172 (s390_signed_integer_comparison,
5173 s390_unsigned_integer_comparison): New predicates.
5175 * config/s390/s390-protos.h (s390_check_symref_alignment,
5176 s390_contiguous_bitmask_p, s390_reload_larl_operand,
5177 s390_reload_symref_address,
5178 s390_compare_and_branch_condition_mask): Prototypes added.
5180 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
5181 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
5182 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
5184 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
5186 * config/s390/s390.c (z10_cost): New cost function for z10.
5187 (s390_handle_arch_option, override_options): Support -march=z10 switch.
5188 (s390_issue_rate): Adjust issue rate for z10.
5189 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
5190 (processor_flags): Add PF_Z10.
5191 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
5192 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
5193 * gcc/config.gcc: Add z10.
5195 2008-05-28 Richard Guenther <rguenther@suse.de>
5197 PR tree-optimization/36291
5198 * tree-flow. h (struct gimple_df): Remove var_anns member.
5199 * tree-flow-inline.h (gimple_var_anns): Remove.
5200 (var_ann): Simplify.
5201 * tree-dfa.c (create_var_ann): Simplify.
5202 (remove_referenced_var): Clear alias info from var_anns of globals.
5203 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
5204 (delete_tree_ssa): Clear alias info from var_anns of globals.
5205 Do not free var_anns.
5206 (var_ann_eq): Remove.
5207 (var_ann_hash): Likewise.
5209 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
5211 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
5212 and loongson2f entries.
5213 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
5214 * config/mips/mips.h (processor_type): Add Loongson-2E
5215 and Loongson-2F entries.
5216 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
5217 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
5218 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
5219 * doc/invoke.texi (MIPS Options): Document loongson2e
5220 and loongson2f processor names.
5222 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
5226 * config/i386/i386.c (ix86_function_arg_boundary): Use
5227 alignment of canonical type.
5228 (ix86_expand_vector_move): Check unaligned memory access for
5231 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
5233 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
5234 Moved to the front of file.
5236 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
5237 H.J. Lu <hongjiu.lu@intel.com>
5239 * dwarf2out.c (current_fde): New.
5241 (lookup_cfa:): Likewise.
5242 (dwarf2out_end_epilogue): Likewise.
5243 (dwarf2out_note_section_used): Likewise.
5245 2008-05-27 Michael Matz <matz@suse.de>
5248 * c.opt (Wenum-compare): New warning option.
5249 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
5251 2008-05-27 Michael Matz <matz@suse.de>
5254 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
5256 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
5257 into memory as tail calls.
5259 2008-05-27 Richard Guenther <rguenther@suse.de>
5261 PR tree-optimization/36339
5262 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
5263 pointers cause all addressable variables to be call clobbered.
5265 2008-05-27 Richard Guenther <rguenther@suse.de>
5267 PR tree-optimization/36245
5268 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
5270 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
5272 * config/s390/s390.md: Replace all occurences of the 'm'
5273 constraint with 'RT'.
5275 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
5277 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
5279 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
5281 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
5282 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
5283 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
5285 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
5287 * reload.c: (find_reloads): Skip alternatives according to the
5288 "enabled" attribute. Constify the constraint variable.
5289 * recog.c (get_attr_enabled): Add default implementation.
5290 (extract_insn): Set the alternative_enabled_p array
5291 in the recog_data struct.
5292 (preprocess_constraints, constrain_operands): Skip
5293 alternatives according to the "enabled" attribute
5294 * recog.h (struct recog_data): New field alternative_enabled_p.
5295 (skip_alternative): New inline function.
5296 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
5297 (record_reg_classes): Skip alternative according to the
5298 "enabled" attribute.
5300 * doc/md.texi: Add documention for the "enabled" attribute.
5302 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
5304 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
5305 * postreload.c (reload_cse_simplify_operands): Replace 'm'
5306 constraint with TARGET_MEM_CONSTRAINT.
5307 * recog.c (asm_operand_ok, preprocess_constraints,
5308 constrain_operands): Likewise.
5309 * regclass.c (record_reg_classes): Likewise.
5310 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
5311 * reload1.c (maybe_fix_stack_asms): Likewise.
5312 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
5313 * recog.h: Adjust comment.
5314 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
5315 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
5316 * doc/md.texi: Add a note to description of 'm' constraint.
5317 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
5319 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
5321 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
5322 that the bitfield is of integral type before testing its precision.
5324 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
5325 Sa Liu <saliu@de.ibm.com>
5327 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
5328 __modti3, __udivti3, __umodti3 and __udivmodti4.
5329 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
5330 that implement TImode mul and div functions.
5331 * config/spu/multi3.c: New. Implement __multi3.
5332 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
5333 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
5336 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
5338 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
5339 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
5340 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
5341 tls_sysv_suffix): New mode and mode attribute iterators.
5342 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
5343 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
5344 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
5345 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
5346 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
5349 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
5351 PR tree-optimization/36329
5352 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
5353 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
5354 * cgraphbuild.c (initialize_inline_failed): Use the latter
5355 macro in lieu of the former.
5356 * ipa-inline.c (cgraph_mark_inline): Likewise.
5357 (cgraph_decide_inlining_of_small_function): Likewise.
5358 (cgraph_decide_inlining): Likewise.
5359 (cgraph_decide_inlining_incrementally): Likewise.
5361 2008-05-26 Tristan Gingold <gingold@adacore.com>
5362 Anatoly Sokolov <aesok@post.ru>
5364 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
5365 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
5366 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
5367 optimization for 'avr6' architecture.
5369 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
5372 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
5374 2008-05-26 Richard Guenther <rguenther@suse.de>
5376 * tree-ssa-sccvn.c (expr_has_constants): Declare.
5377 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
5379 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
5382 * caller-save.c (insert_restore): Verify alignment of spill space.
5383 (insert_save): Likewise.
5384 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
5385 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
5386 (STACK_SLOT_ALIGNMENT): Likewise.
5387 * function.c (LOCAL_ALIGNMENT): Removed.
5388 (get_stack_local_alignment): New.
5389 (assign_stack_local): Use it. Set alignment on stack slot.
5390 (assign_stack_temp_for_type): Use get_stack_local_alignment.
5391 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
5392 (STACK_SLOT_ALIGNMENT): New.
5393 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
5394 stack slot in XFmode.
5396 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
5398 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
5401 * config/i386/i386.md (allocate_stack_worker_64): Make sure
5402 argument operand in rax isn't removed.
5404 2008-05-26 Richard Guenther <rguenther@suse.de>
5407 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
5408 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
5410 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
5413 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
5415 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
5417 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
5418 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
5420 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
5422 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
5423 build a trampoline if we don't want one.
5424 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
5425 return zero for nested functions if we don't want a trampoline.
5427 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
5429 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
5431 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
5434 * c.opt: Removed undocumented option '-lang-fortran'.
5435 * c-common.h: Removed global variable 'lang_fortran'.
5436 * c-opts.c (c_common_handle_option): Removed code to handle
5437 option '-lang-fortran'. Updated includes.
5438 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
5439 definition of '__GFORTRAN__'.
5440 (define__GNUC__): Reimplemented to use BASEVER and
5441 cpp_define_formatted.
5442 (builtin_define_with_value_n): Removed.
5443 * c-incpath.h: Renamed to ...
5444 * incpath.h: ... this.
5445 * c-incpath.c: Renamed to ...
5446 * incpath.c: ... this. Updated includes.
5447 * fix-header.c: Updated includes.
5448 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
5449 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
5450 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
5452 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
5454 * tree.h: Update the table of flags used on tree nodes.
5455 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
5456 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
5457 (FORCED_LABEL): Add access check.
5458 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
5459 (ASM_INPUT_P): Likewise.
5460 (ASM_VOLATILE_P): Likewise.
5461 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
5462 (OMP_SECTION_LAST): Access private_flag directly.
5463 (OMP_RETURN_NOWAIT): Likewise.
5464 (OMP_PARALLEL_COMBINED): Likewise.
5465 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
5466 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
5467 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
5468 deprecated_flag directly.
5470 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
5472 * final.c (frame_pointer_needed): Removed.
5473 * flags.h (frame_pointer_needed): Likewise.
5475 * function.h (rtl_data): Add frame_pointer_needed.
5476 (frame_pointer_needed): New.
5478 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
5480 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
5482 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
5484 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
5487 2008-05-25 Alan Modra <amodra@bigpond.net.au>
5489 * c-common.c (strip_array_types): Move function to..
5491 (get_inner_array_type): Delete.
5492 * c-common.h (strip_array_types): Move declaration to..
5494 (get_inner_array_type): Delete.
5495 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
5496 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
5497 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
5498 * config/pa/pa.c (emit_move_sequence): Likewise.
5500 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
5502 * config/i386/i386.md (*sse_prologue_save_insn): Set length
5505 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
5507 * function.c: Include target hook for nonlocal_goto frame value.
5509 2008-05-24 Richard Guenther <rguenther@suse.de>
5511 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
5512 variable can be only accessed through a pointer or a union.
5514 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5516 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
5517 * doc/extend.texi: Likewise.
5519 2008-05-23 DJ Delorie <dj@redhat.com>
5521 * config/m32c/jump.md (untyped_call): Add.
5523 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
5525 (m32c_address_cost): Detail costs for indirect offsets.
5527 2008-05-23 Rafael Espindola <espindola@google.com>
5529 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
5530 if a node is a SUBREG.
5531 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
5534 2008-05-23 Paul Brook <paul@codesourcery.com>
5535 Carlos O'Donell <carlos@codesourcery.com>
5537 * doc/extend.texi: Clarify use of __attribute__((naked)).
5538 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
5539 * target.h (gcc_target): Add allocate_stack_slots_for_args.
5540 * function.c (use_register_for_decl): Use
5541 targetm.calls.allocate_stack_slots_for_args.
5542 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
5543 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
5544 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
5546 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
5548 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
5550 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
5552 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
5553 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
5554 is only rounded once.
5556 2008-05-23 Richard Guenther <rguenther@suse.de>
5558 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
5560 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
5561 Jakub Jelinek <jakub@redhat.com>
5564 * configure.ac: Handle --enable-cld.
5565 * configure: Regenerated.
5566 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
5567 * config/i386/i386.h (struct machine_function): Add needs_cld field.
5568 (ix86_current_function_needs_cld): New define.
5569 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
5570 (cld): New isns pattern.
5571 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
5572 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
5573 * config/i386/i386.opt (mcld): New option.
5574 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
5575 TARGET_CLD and ix86_current_function_needs_cld.
5576 (override_options): Use -mcld by default for 32-bit code if
5579 * doc/install.texi (Options specification): Document --enable-cld.
5580 * doc/invoke.texi (Machine Dependent Options)
5581 [i386 and x86-64 Options]: Add -mcld option.
5582 (Intel 386 and AMD x86-64 Options): Document -mcld option.
5584 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
5585 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
5586 (return_in_memory_64): Likewise.
5587 (return_in_memory_ms_64): Likewise.
5589 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5591 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
5592 * builtins.c (fold_builtin_fpclassify): New.
5593 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
5594 * builtins.def (BUILT_IN_FPCLASSIFY): New.
5595 * c-common.c (handle_type_generic_attribute): Adjust to accept
5596 fixed arguments before an elipsis.
5597 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
5598 * doc/extend.texi: Document __builtin_fpclassify.
5600 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
5602 * omp-low.c (gate_expand_omp_ssa): Remove.
5603 (pass_expand_omp_ssa): Remove.
5604 (gate_expand_omp): Do not check for flag_openmp_ssa.
5605 * common.opt (-fopenmp-ssa): Remove.
5606 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
5608 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
5610 * config/sh/sh.opt (mfixed-range): New option.
5611 * config/sh/sh-protos.h (sh_fix_range): Declare.
5612 * config/sh/sh.c (sh_fix_range): New function.
5613 * config/sh/sh.h (sh_fixed_range_str): Declare.
5614 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
5616 * doc/invoke.texi (SH Options): Document -mfixed-range.
5618 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
5620 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
5621 it before the redeclaration.
5623 2008-05-22 Anatoly Sokolov <aesok@post.ru>
5625 * config/avr/avr.c (get_sequence_length): Add new function.
5626 (expand_prologue, expand_epilogue): Remove duplicate code.
5628 2008-05-22 Rafael Espindola <espindola@google.com>
5630 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
5633 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
5635 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
5636 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
5638 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
5639 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
5640 (vect_update_misalignment_for_peel): Likewise.
5641 (vector_alignment_reachable_p): Likewise.
5642 * tree-vect-transform.c (vectorizable_load): Likewise.
5643 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
5644 (get_vectype_for_scalar_type): Pass mode of scalar_type
5645 to UNITS_PER_SIMD_WORD.
5647 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
5648 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
5649 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
5650 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
5651 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
5653 2008-05-22 Ira Rosen <irar@il.ibm.com>
5655 PR tree-optimization/36293
5656 * tree-vect-transform.c (vect_transform_strided_load): Don't check
5657 if the first load must be skipped because of a gap.
5659 2008-05-22 Richard Guenther <rguenther@suse.de>
5661 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
5662 more cases of offset disambiguation that is possible if
5663 strict-aliasing rules apply.
5664 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
5665 for basic offset and type-based disambiguation.
5667 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
5669 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
5670 ix86_expand_vector_set on V16QImode for SSE4.1.
5672 2008-05-21 Tom Tromey <tromey@redhat.com>
5674 * c.opt (Wimport): Mark as undocumented.
5675 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
5677 (Warning Options): Likewise.
5678 * doc/cppopts.texi: Don't mention -Wimport.
5680 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
5682 PR tree-optimization/36287
5683 PR tree-optimization/36286
5684 * lambda-code.c (build_access_matrix): Do not use the loop->num
5685 for computing the number of induction variables: use the loop depth
5688 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
5691 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
5692 option -f(no-)leading-underscore.
5694 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
5696 * config/i386/i386.c (ix86_expand_vector_init_general): Use
5697 GET_MODE_NUNITS (mode).
5699 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
5701 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
5702 (-mmulhw): Add 464 to description.
5703 (-mdlmzb): Likewise.
5704 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
5705 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
5707 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
5708 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
5709 * config/rs6000/rs6000.md: Update comments for 464.
5711 2008-05-21 Janis Johnson <janis187@us.ibm.com>
5713 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
5715 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
5717 * config/i386/sse.md (vec_extractv4sf): Removed.
5718 (vec_extractv2df): Likewise.
5719 (vec_extractv2di): Likewise.
5720 (vec_extractv4si): Likewise.
5721 (vec_extractv8hi): Likewise.
5722 (vec_extractv16qi): Likewise.
5723 (vec_extract<mode>): New.
5725 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
5727 * config/i386/sse.md (vec_setv4sf): Removed.
5728 (vec_setv2df): Likewise.
5729 (vec_setv2di): Likewise.
5730 (vec_setv4si): Likewise.
5731 (vec_setv8hi): Likewise.
5732 (vec_setv16qi): Likewise.
5733 (vec_set<mode>): New.
5735 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
5737 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
5738 goto for vec_concat and vec_interleave.
5740 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
5742 * config/i386/sse.md (vec_initv4sf): Removed.
5743 (vec_initv2df): Likewise.
5744 (vec_initv2di): Likewise.
5745 (vec_initv4si): Likewise.
5746 (vec_initv8hi): Likewise.
5747 (vec_initv16qi): Likewise.
5748 (vec_init<mode>): New.
5750 2008-05-21 Joseph Myers <joseph@codesourcery.com>
5752 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
5754 2008-05-21 Tom Tromey <tromey@redhat.com>
5756 * ggc-zone.c (lookup_page_table_if_allocated): New function.
5757 (zone_find_object_offset): Likewise.
5758 (gt_ggc_m_S): Likewise.
5759 (highest_bit): Likewise.
5760 * ggc-page.c (gt_ggc_m_S): New function.
5761 * stringpool.c (string_stack): Remove.
5762 (init_stringpool): Update.
5763 (ggc_alloc_string): Use ggc_alloc.
5764 (maybe_delete_ident): New function.
5765 (ggc_purge_stringpool): Likewise.
5766 (gt_ggc_m_S): Remove.
5767 * ggc-common.c (ggc_protect_identifiers): New global.
5768 (ggc_mark_roots): Call ggc_purge_stringpool. Use
5769 ggc_protect_identifiers.
5770 * ggc.h (ggc_protect_identifiers): Declare.
5771 (gt_ggc_m_S): Update.
5772 (ggc_purge_stringpool): Declare.
5773 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
5774 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
5776 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
5778 2008-05-21 David S. Miller <davem@davemloft.net>
5780 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
5783 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
5785 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
5788 2008-05-20 David Daney <ddaney@avtrex.com>
5790 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
5791 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
5792 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
5793 UNSPEC_UPDATE_GOT_VERSION): Renumber.
5794 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
5795 (atomic_hiqi_op): New define_code_iterator.
5796 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
5797 mips_expand_compare_and_swap_12.
5798 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
5799 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
5800 (sync_<optab><mode>, sync_old_<optab><mode>,
5801 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
5802 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
5803 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
5804 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
5805 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
5806 (test_and_set_12): New insn.
5807 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
5808 sync_new_<optab><mode>, sync_old_nand<mode>,
5809 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
5810 clobber to operand 0 for SI and DI mode insns.
5811 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
5812 mips_gen_fn_4): New typedefs.
5813 (mips_gen_fn_ptrs): Define new union type.
5814 (mips_expand_compare_and_swap_12): Remove declaration.
5815 (mips_expand_atomic_qihi): Declare function.
5816 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
5817 (mips_expand_atomic_qihi): ... this. Use new generator function
5819 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
5820 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
5821 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
5822 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
5823 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
5824 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
5825 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
5826 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
5827 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
5828 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
5831 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
5833 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
5836 2008-05-20 Anatoly Sokolov <aesok@post.ru>
5838 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
5839 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
5840 (avr_attribute_table): Add 'OS_main' function attribute.
5841 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
5842 functions with 'OS_main' attribute.
5844 2008-05-20 Richard Guenther <rguenther@suse.de>
5846 PR tree-optimization/35204
5847 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
5848 helper, split out from ...
5849 (DFS): ... here. Make the DFS walk non-recursive.
5851 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
5852 Jan Sjodin <jan.sjodin@amd.com>
5854 PR tree-optimization/36181
5855 * tree-parloops.c (loop_has_vector_phi_nodes): New.
5856 (parallelize_loops): Don't parallelize when the loop has vector
5859 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
5860 Sebastian Pop <sebastian.pop@amd.com>
5862 * tree-loop-linear.c (gather_interchange_stats): Look in the access
5863 matrix, and never look at the tree representation of the memory
5865 (linear_transform_loops): Computes parameters and access matrices.
5866 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
5868 (access_matrix_get_index_for_parameter): New.
5869 * tree-data-ref.h (struct access_matrix): New.
5870 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
5871 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
5872 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
5873 am_vector_index_for_loop): New.
5874 (struct data_reference): Add field access_matrix.
5875 (DR_ACCESS_MATRIX): New.
5876 (compute_data_dependences_for_loop): Update declaration.
5877 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
5878 * lambda.h (lambda_vector_vec_p): Declared.
5879 * lambda-code.c: Depend on pointer-set.h.
5880 (lambda_collect_parameters_from_af, lambda_collect_parameters,
5881 av_for_af_base, av_for_af, build_access_matrix,
5882 lambda_compute_access_matrices): New.
5883 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
5885 2008-05-20 Joseph Myers <joseph@codesourcery.com>
5887 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
5890 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
5891 Sebastian Pop <sebastian.pop@amd.com>
5893 PR tree-optimization/36206
5894 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
5896 (instantiate_scev_1): Rename flags to fold_conversions.
5897 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
5898 outeside instantiation_loop.
5899 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
5900 (evolution_function_is_affine_or_constant_p): Removed.
5901 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
5903 (analyze_siv_subscript): Pass in the loop nest number.
5904 Call evolution_function_is_affine_in_loop instead of
5905 evolution_function_is_affine_p.
5906 (analyze_overlapping_iterations): Pass in the loop nest number.
5908 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
5909 Sebastian Pop <sebastian.pop@amd.com>
5911 PR tree-optimization/36206
5912 * tree-chrec.h (chrec_fold_op): New.
5913 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
5916 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
5918 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
5920 (remove_duplicates): Do not set inode on non-inode systems.
5923 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
5925 * config.gcc (tm_file): Update comments about relative pathnames.
5927 2008-05-20 Richard Guenther <rguenther@suse.de>
5929 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
5930 * tree-ssa-sccvn.c (process_scc): Likewise.
5931 * tree-ssa-sink.c (execute_sink_code): Likewise.
5932 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
5933 * tree-vrp.c (process_assert_insertions): Likewise.
5934 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
5935 (perform_tree_ssa_dce): Likewise.
5936 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
5937 (dump_dominator_optimization_stats): Likewise.
5938 * tree-vectorizer.c (vectorize_loops): Likewise.
5940 2008-05-20 Richard Guenther <rguenther@suse.de>
5942 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
5944 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
5946 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
5947 (ix86_i386elf_return_in_memory): Likewise.
5948 (ix86_i386interix_return_in_memory): Likewise.
5949 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
5950 (SUBTARGET_RETURN_IN_MEMORY): New.
5951 * config/i386/i386elf.h: Likewise.
5952 * config/i386/ptx4-i.h: Likewise.
5953 * config/i386/sol2-10.h: Likewise.
5954 * config/i386/sysv4.h: Likewise.
5955 * config/i386/vx-common.h: Likewise.
5956 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
5957 * config/i386/i386.c (ix86_return_in_memory): Made static and
5958 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
5959 (ix86_i386elf_return_in_memory): Removed.
5960 (ix86_i386interix_return_in_memory): Removed.
5961 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
5962 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
5964 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
5966 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
5968 2008-05-19 Xinliang David Li <davidxl@google.com>
5970 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
5972 * common.opt: Ditto.
5973 * doc/invoke.texi: Ditto.
5975 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
5977 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
5978 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
5980 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
5982 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
5983 sizes of operand array from 8/4 to 4/2.
5984 (ix86_expand_vector_init_general): Change size of operand array
5985 from 32 to 16. Remove op0, op1 and half_mode.
5987 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
5989 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
5990 (ix86_expand_vector_init_interleave): Likewise.
5991 (ix86_expand_vector_init_general): Use them. Assert
5992 word_mode == SImode when n_words == 4.
5994 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
5996 * config/i386/i386.c (ix86_secondary_reload): New static function.
5997 (TARGET_SECONDARY_RELOAD): New define.
5998 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
5999 * config/i386/i386.md (reload_outqi): Remove.
6001 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6004 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
6005 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
6006 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
6007 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
6008 (fold_builtin_1): Likewise.
6009 * builtins.def (BUILT_IN_ISINF_SIGN): New.
6010 c-common.c (check_builtin_function_arguments): Handle
6011 BUILT_IN_ISINF_SIGN.
6012 * doc/extend.texi: Document __builtin_isinf_sign.
6013 * fold-const.c (operand_equal_p): Handle COND_EXPR.
6015 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
6017 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
6018 EH cleanup at the end of the pass, search for those that have been
6019 turned into forwarder blocks and do the cleanup on their successor.
6021 2008-05-18 Richard Guenther <rguenther@suse.de>
6023 * tree-cfg.c (verify_gimple_expr): Allow conversions from
6024 pointers to sizetype and vice versa.
6026 2008-05-18 Xinliang David Li <davidxl@google.com>
6028 * gcc/tree-ssa-dce.c: Coding style fix.
6029 (check_pow): Documentation comment.
6030 (check_log): Documenation comment. Coding style fix.
6031 (is_unnecessary_except_errno_call): Ditto.
6032 (gen_conditions_for_pow): Ditto.
6033 (gen_conditions_for_log): Ditto.
6034 (gen_shrink_wrap_conditions): Ditto.
6035 (shrink_wrap_one_built_in_calls): Ditto.
6036 * gcc/doc/invoke.texi: Better documentation string.
6037 * ChangeLog: Fix wrong change log entries from
6038 May 17 checkin on function call DCE.
6040 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
6042 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
6044 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
6046 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
6047 * df-problems.c (simulation routines): Fixed block comment to
6048 properly say how to add forwards scanning functions.
6050 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
6052 * tree-inline.c (setup_one_parameter): Remove dead code.
6054 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
6056 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
6057 a BIT_AND_EXPR only for an INTEGER_TYPE.
6059 2008-05-17 Xinliang David Li <davidxl@google.com>
6061 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
6062 (check_pow, check_log, is_unnecessary_except_errno_call): New
6063 functions to check for eliminating math functions that are pure
6064 except for setting errno.
6065 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
6066 general condition expressions for shrink-wrapping pow/log calls.
6067 (gen_shrink_wrap_conditions): Ditto.
6068 (shrink_wrap_one_built_in_call): Ditto.
6069 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
6070 (mark_operand_necessary): If debugging, output if OP is necessary.
6071 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
6073 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
6075 * gcc/common.opt: New user flag -ftree-builtin-dce.
6076 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
6078 2008-05-16 David S. Miller <davem@davemloft.net>
6080 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
6081 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
6083 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
6086 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
6088 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6090 * ifcvt.c (dead_or_predicable): Rename
6091 df_simulate_one_insn_backwards to df_simulate_one_insn.
6092 * recog.c (peephole2_optimize): Ditto.
6093 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
6095 * df.h: Rename df_simulate_one_insn_backwards to
6096 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
6097 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
6098 scanning of defs and uses.
6099 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
6100 (df_simulate_one_insn_forwards): Removed.
6102 2008-05-16 Doug Kwan <dougkwan@google.com>
6104 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
6106 (real_from_string): Handle NaNs and Inf as approriate.
6108 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
6110 * doc/gty.texi (Source Files Containing Type Information): Note
6111 that headers should appear first in the gtfiles list.
6113 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6115 * tree.def (COND_EXEC): Properly documented this code.
6117 2008-05-16 Diego Novillo <dnovillo@google.com>
6119 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
6120 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
6123 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6125 * tree-ssa-dse (max_stmt_uid): Removed.
6126 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
6127 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
6128 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
6129 * function.h (cfun.last_stmt_uid): New field.
6130 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
6131 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
6133 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
6134 (create_stmt_ann): Initialize the ann->uid field.
6135 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
6137 * tree-flow.h (renumber_gimple_stmt_uids): New function.
6139 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
6141 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
6142 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
6143 (init_empty_tree_cfg): Call it.
6145 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6147 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
6150 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
6152 * doc/invoke.text (-fdump-tree-*-verbose): New option.
6153 * tree-dump.c (dump_options): New verbose option.
6154 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
6156 * tree-pass.h (TDF_VERBOSE): New dump flag.
6157 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
6158 (tree-flow.h): Added include.
6159 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
6161 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
6163 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
6165 From Jie Zhang <jie.zhang@analog.com>
6166 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6167 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
6168 mcpu=bf561-none and mcpu=bf561-0.2.
6169 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6170 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
6171 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6172 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
6173 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
6174 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
6175 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
6177 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
6178 (cputype_selected): Remove.
6179 (bfin_handle_option): Don't use cputype_selected.
6180 (override_options): When no mcpu option, enable all workarounds.
6181 Don't use bfin_workarounds.
6182 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
6184 (DEFAULT_CPU_TYPE): Don't define.
6186 2008-05-16 Richard Guenther <rguenther@suse.de>
6188 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
6189 on deletion of the last stmt.
6191 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
6193 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
6194 V8HImode for SSE2 and V16QImode for SSE4.1.
6196 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
6198 * cgraph.h (compute_inline_parameters): Made public.
6199 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
6200 variable_generate_summary, function_write_summary,
6201 variable_write_summary, variable_read_summary. Added generate_summary,
6202 write_summary, read_summary.
6203 * cgraphunit.c (cgraph_process_new_functions): Changed call from
6204 pass_ipa_inline.function_generate_summary, to
6205 compute_inline_parameters.
6206 * ipa-inline.c (compute_inline_parameters): Made public and added
6208 (compute_inline_parameters_for_current): New function.
6209 (pass_inline_param): Now calls compute_inline_parameters_for_current.
6210 (inline_generate_summary): Removed parameter and made to loop over
6212 (pass_ipa_inline): Updated for new IPA_PASS structure.
6213 * passes.c (execute_ipa_summary_passes): Now is called once per
6214 pass rather than once per node*pass.
6216 2008-05-15 Anatoly Sokolov <aesok@post.ru>
6218 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
6219 avr_have_mul_p, avr_asm_only_p): Remove variables.
6220 (avr_override_options): Remove initialization of removed variables.
6221 (avr_file_start): Convert removed variables to fields of
6222 'struct base_arch_s *avr_current_arch'.
6223 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
6224 (AVR_HAVE_MUL): (Ditto.).
6225 (AVR_HAVE_MOVW): (Ditto.).
6226 (AVR_HAVE_LPMX): (Ditto.).
6227 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
6228 avr_asm_only_p): Remove declaration.
6230 2008-05-15 Diego Novillo <dnovillo@google.com>
6232 * config/arm/arm.c (arm_return_in_memory): Fix return type.
6233 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
6235 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
6238 * combine.c (check_conversion): Rename back to check_promoted_subreg.
6239 Don't call record_truncated_value from here.
6240 (record_truncated_value): Turn it into a for_each_rtx callback.
6241 (record_truncated_values): New function.
6242 (combine_instructions): Call note_uses with record_truncated_values.
6243 Change name of check_conversion to check_promoted_subreg.
6245 2008-05-15 Janis Johnson <janis187@us.ibm.com>
6247 * doc/sourcebuild.texi: Document support for torture tests.
6249 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
6251 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
6252 to alternative 4 of operand 2.
6254 2008-05-15 Richard Guenther <rguenther@suse.de>
6256 * tree-pass.h (current_pass): Declare.
6257 (get_pass_for_id): Likewise.
6258 * passes.c (passes_by_id, passes_by_id_size): New globals.
6259 (set_pass_for_id): New function.
6260 (get_pass_for_id): Likewise.
6261 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
6262 (execute_function_todo): Flush per function statistics.
6263 * toplev.c (compile_file): Init statistics.
6264 (general_init): Do early statistics initialization.
6265 (finalize): Finish statistics.
6266 * statistics.h (statistics_early_init): Declare.
6267 (statistics_init): Likewise.
6268 (statistics_fini): Likewise.
6269 (statistics_fini_pass): Likewise.
6270 (statistics_counter_event): Likewise.
6271 (statistics_histogram_event): Likewise.
6272 * statistics.c: New file.
6273 * Makefile.in (OBJS-common): Add statistics.o.
6274 (statistics.o): Add dependencies.
6275 * doc/invoke.texi (-fdump-statistics): Document.
6277 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
6279 (execute_pre): Use statistics_counter_event.
6280 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
6281 (substitute_and_fold): Increment it. Use statistics_counter_event.
6283 2008-05-15 Diego Novillo <dnovillo@google.com>
6285 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
6287 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
6288 * tree-ssa-alias.c (new_type_alias): Remove references to
6289 sub-variables from comment.
6290 * tree-ssa-operands.c (swap_tree_operands): Likewise.
6292 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
6294 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
6295 attribute to 1 only for insertps alternative.
6297 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
6299 * config/bfin/bfin.md (loadbytes): New pattern.
6300 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
6301 (bfin_init_builtins): Initialize it.
6302 (bdesc_1arg): Add it.
6304 2008-05-15 Sa Liu <saliu@de.ibm.com>
6306 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
6307 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
6308 * testsuite/lib/target-supports.exp: Add
6309 check_effective_target_fortran_integer_16.
6311 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
6313 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
6314 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
6315 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
6316 (TARGET_RETURN_IN_MEMORY): Define.
6318 2008-05-15 Richard Guenther <rguenther@suse.de>
6321 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
6322 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
6323 represent unmodifiable vars.
6325 2008-05-15 Richard Guenther <rguenther@suse.de>
6327 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
6328 INDIRECT_REF and TARGET_MEM_REF.
6329 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
6332 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
6333 H.J. Lu <hongjiu.lu@intel.com>
6335 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
6336 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
6337 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
6338 insn alternatives. Add missing alternatives.
6339 (*vec_concatv2di_rex64_sse4_1): Likewise.
6340 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
6341 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
6344 2008-05-15 Richard Guenther <rguenther@suse.de>
6346 PR tree-optimization/36009
6347 PR tree-optimization/36204
6348 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
6349 (determine_invariantness_stmt): Record the loop a store is
6351 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
6354 2008-05-15 Richard Guenther <rguenther@suse.de>
6356 PR tree-optimization/34330
6357 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
6358 through the pointer will alias the SMT.
6360 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
6362 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
6364 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
6366 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
6368 2008-05-14 Michael Meissner <michael.meissner@amd.com>
6369 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6371 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
6372 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
6373 (vashl_optab): New optab for vector/vector shifts.
6374 (vashr_optab): Ditto.
6375 (vlshr_optab): Ditto.
6376 (vrotl_optab): Ditto.
6377 (vrotr_optab): Ditto.
6378 (optab_subtype): New enum for optab_for_tree_code call.
6379 (optab_for_tree_code): Add enum optab_subtype argument.
6381 * optabs.c (optab_for_tree_code): Take an additional argument to
6382 distinguish between a vector shift by a scalar and vector shift by
6383 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
6384 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
6385 vector shift by a vector.
6386 (expand_widen_pattern_expr): Pass additional argument to
6387 optab_for_tree_code.
6389 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
6390 vrotl_optab, vrotr_optab.
6392 * expr.c (expand_expr_real_1): Update calls to
6393 optab_for_tree_code to distinguish between vector shifted by a
6394 scalar and vector shifted by a vector.
6395 * tree-vectorizer.c (supportable_widening_operation): Ditto.
6396 (supportable_narrowing_operation): Ditto.
6397 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
6398 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
6399 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
6400 (vect_create_epilog_for_reduction): Ditto.
6401 (vectorizable_reduction): Ditto.
6402 (vectorizable_operation): Ditto.
6403 (vect_strided_store_supported): Ditto.
6404 (vect_strided_load_supported): Ditto.
6405 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
6406 * expmed.c (expand_shift): Ditto.
6408 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
6410 (ashr@var{m}3): Ditto.
6411 (vashl@var{m}3): Document new vector/vector shift standard name.
6412 (vashr@var{m}3): Ditto.
6413 (vlshr@var{m}3): Ditto.
6414 (vrotl@var{m}3): Ditto.
6415 (vrotr@var{m}3): Ditto.
6417 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
6418 (PPERM_INVERT): Ditto.
6419 (PPERM_REVERSE): Ditto.
6420 (PPERM_REV_INV): Ditto.
6421 (PPERM_ZERO): Ditto.
6422 (PPERM_ONES): Ditto.
6423 (PPERM_SIGN): Ditto.
6424 (PPERM_INV_SIGN): Ditto.
6425 (PPERM_SRC1): Ditto.
6426 (PPERM_SRC2): Ditto.
6428 * config/i386/sse.md (mulv2di3): Add SSE5 support.
6429 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
6430 allows a memory operand to be the value being added, and split it
6431 to improve vectorization.
6432 (sse5_pmacsdqh_mem): Ditto.
6433 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
6434 (sse5_mulv2div2di3_high): Ditto.
6435 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
6436 (vec_pack_trunc_v4si): Ditto.
6437 (vec_pack_trunc_v2di): Ditto.
6438 (sse5_pcmov_<mode>): Remove code that tried to use use
6439 andps/andnps instead of pcmov.
6440 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
6441 pmacsdqh instructions.
6442 (vec_widen_smult_lo_v4si): Ditto.
6444 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
6445 (PPERM_INVERT): Ditto.
6446 (PPERM_REVERSE): Ditto.
6447 (PPERM_REV_INV): Ditto.
6448 (PPERM_ZERO): Ditto.
6449 (PPERM_ONES): Ditto.
6450 (PPERM_SIGN): Ditto.
6451 (PPERM_INV_SIGN): Ditto.
6452 (PPERM_SRC1): Ditto.
6453 (PPERM_SRC2): Ditto.
6454 (ix86_expand_sse_movcc): Move the SSE5 test after the if
6456 (ix86_expand_int_vcond): If SSE5 generate all possible integer
6458 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
6459 says ignore whether the last reference is a memory operand.
6461 2008-05-14 Michael Meissner <michael.meissner@amd.com>
6462 Paolo Bonzini <bonzini at gnu dot org>
6464 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
6467 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
6468 (vlshr<mode>3): Rename from vlshr<mode>3.
6469 (vashr<mode>3): Rename from vashr<mode>3.
6470 (mulv4sf3): Change the names of vector shift patterns.
6474 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
6477 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
6502 * config/spu/spu.md (v): New iterator macro to add v for vector types.
6503 (floatunssidf2_internal): Change vector/vector shift names.
6504 (floatunsdidf2_internal): Ditto.
6511 (vashl<mode>3): Rename from ashl<mode>3.
6512 (vashr<mode>3): Rename from ashr<mode>3.
6513 (vlshr<mode>3): Rename from lshr<mode>3.
6514 (vrotl<mode>3): Rename from rotl<mode>3.
6516 2008-05-14 Michael Meissner <michael.meissner@amd.com>
6519 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
6520 multiply gives the wrong value when doing widening multiplies.
6521 (vec_widen_smult_lo_v4si): Ditto.
6523 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
6525 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
6526 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
6527 emit_library_call_value.
6528 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
6529 * tree.h (ECF_LIBCALL_BLOCK): Removed.
6530 * calls.c (initialize_argument_information, precompute_arguments,
6531 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
6532 (precompute_arguments): Removed flags parameter.
6533 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
6535 2008-05-14 Richard Guenther <rguenther@suse.de>
6537 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
6538 Make sure to register the store if the use is a PHI_NODE.
6540 2008-05-14 Olivier Hainque <hainque@adacore.com>
6542 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
6543 memory if the component is to be referenced in BLKmode according
6544 to get_inner_reference.
6546 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
6548 * calls.c (emit_library_call_value_1): Restore code clearing
6549 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
6551 2008-05-14 Olivier Hainque <hainque@adacore.com>
6552 Nicolas Roche <roche@adacore.com>
6554 * configure.ac: Add support for a "gcc_subdir" variable in
6555 config-lang.in, to denote a subdirectory where the language/GCC
6556 integration files are to be found.
6557 * configure: Regenerate.
6559 2008-05-14 Ira Rosen <irar@il.ibm.com>
6561 PR tree-optimization/36098
6562 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
6563 value for the first load in the group in case of a gap.
6564 (vect_build_slp_tree): Check that there are no gaps in loads.
6566 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
6568 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
6569 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
6570 expand_copysign_bit, ): Change call to emit_no_conflict_block to
6571 emit_insn and remove unneeded code to construct extra args.
6572 (emit_no_conflict_block): Removed.
6573 * optabls.h: (emit_no_conflict_block): Removed.
6574 * cse.c (cse_extended_basic_block): Remove search for
6575 REG_NO_CONFLICT note.
6576 * global.c: Removed incorrect comment added in revision 117.
6577 * expr.c (convert_move): Change call to emit_no_conflict_block to
6579 * recog.c: Change comments so that they do not mention
6581 * local_alloc.c (combine_regs): Removed last parameter.
6582 (no_conflict_p): Removed.
6583 (block_alloc): Removed note, no_conflict_combined_regno and set
6584 local vars. Removed all code to process REG_NO_CONFLICT blocks.
6585 (combine_regs): Removed already_dead and code to look for
6586 REG_NO_CONFLICT notes.
6587 * lower_subreg (remove_retval_note): Removed code to look for
6588 REG_NO_CONFLICT block.
6589 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
6590 (resolve_clobber): Remove code to process libcalls that have
6591 REG_NO_CONFLICT notes.
6592 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
6594 * combine.c (can_combine_p, distribute_notes): Removed
6595 REG_NO_CONFLICT case.
6596 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
6598 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
6599 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
6601 * reg-notes.def (NO_CONFLICT): Removed.
6603 2008-05-14 David S. Miller <davem@davemloft.net>
6605 * config/sparc/sparc.c (sparc_profile_hook): If
6606 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
6607 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
6608 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
6610 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
6612 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
6614 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
6617 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
6618 and op1 expansion before vector concat to have less live pseudos.
6620 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
6622 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
6623 ix86_expand_vector_set if supported.
6625 2008-05-13 Diego Novillo <dnovillo@google.com>
6626 Kenneth Zadeck <zadeck@naturalbridge.com>
6628 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
6630 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
6631 phinodes_print_statistics, init_ssanames, fini_ssanames,
6632 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
6633 release_ssa_name, release_defs, replace_ssa_name_symbol,
6634 ssanames_print_statistics): Move ...
6635 * tree-flow.h: ... here.
6636 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
6637 Use FN instead of cfun.
6638 (make_ssa_name_fn): Rename from make_ssa_name.
6639 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
6640 * tree-flow-inline.h (make_ssa_name): Move from
6641 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
6642 * omp-low.c (expand_omp_parallel):
6643 * tree-flow-inline.h (redirect_edge_var_map_result):
6644 * tree-ssa.c (init_tree_ssa): Add argument FN.
6645 Use it instead of cfun. Update all users.
6647 2008-05-13 Tom Tromey <tromey@redhat.com>
6649 PR preprocessor/22168:
6650 * doc/cpp.texi (Top): Update menu.
6651 (Alternatives to Wrapper #ifndef): New node.
6652 (Other Directives): Document deprecation.
6653 (Obsolete Features): Remove menu.
6654 (Assertions): Merge node into Obsolete Features.
6655 (Obsolete once-only headers): Move earlier; rename to Alternatives
6657 * doc/cppopts.texi: Update.
6658 * c.opt (Wdeprecated): Enable for C and ObjC.
6659 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
6660 (C++ Dialect Options): Move -Wno-deprecated from here to...
6661 (Warning Options): ... here.
6663 2008-05-13 Richard Guenther <rguenther@suse.de>
6666 * fold-const.c (fold_sign_changed_comparison): Do not allow
6667 changes in pointer-ness.
6669 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
6672 * config/sh/sh.c (sh_expand_prologue): Don't clear
6673 RTX_FRAME_RELATED_P for push insns.
6675 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
6677 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
6679 2008-05-12 Anatoly Sokolov <aesok@post.ru>
6681 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
6682 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
6683 Use 'machine->is_leaf' instead of 'leaf_func_p'.
6685 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
6687 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
6688 (*vec_concatv4sf_sse): This.
6689 (*sse2_concatv2si): Renamed to ...
6690 (*vec_concatv2si_sse2): This.
6691 (*sse1_concatv2si): Renamed to ...
6692 (*vec_concatv2si_sse): This.
6693 (*vec_concatv2di_rex): Renamed to ...
6694 (*vec_concatv2di_rex64): This.
6695 (*vec_concatv2si_sse4_1): New.
6696 (*vec_concatv2di_rex64_sse4_1): Likewise.
6698 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
6700 PR rtl-optimization/36111
6701 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
6702 that was created for swappable operands.
6704 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
6707 * Makefile.in: Substitute GNATMAKE and GNATBIND.
6708 * configure.ac: Add call to ACX_PROG_GNAT.
6710 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
6712 * optc-gen.awk: Fix comment typo.
6714 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
6716 * pretty-print.c (pp_integer_with_precision): Use
6717 HOST_LONG_LONG_FORMAT.
6719 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
6721 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
6723 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
6725 * config/i386/i386.c (bdesc_ptest): Removed.
6726 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
6727 (bdesc_args): Add __builtin_ia32_ptestz128,
6728 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
6729 (ix86_init_mmx_sse_builtins): Updated.
6730 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
6731 (ix86_expand_builtin): Updated.
6733 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
6735 * tree-cfg.c (valid_fixed_convert_types_p): New function.
6736 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
6738 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
6740 * value-prof.c (interesting_stringop_to_profile): Do not
6741 return early for BUILT_IN_MEMPCPY.
6743 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
6745 * calls.c (expand_call): Don't use callgraph to increase
6746 preferred_stack_boundary.
6748 * cgraph.h (cgraph_rtl_info): Use unsigned on
6749 preferred_incoming_stack_boundary.
6751 * final.c (rest_of_clean_state): Use unsigned on
6752 preferred_stack_boundary.
6754 2008-05-09 Tom Tromey <tromey@redhat.com>
6756 PR preprocessor/22231:
6757 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
6760 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
6762 PR tree-optimization/36129
6763 * tree-ssa-ccp.c: Include value-prof.h.
6764 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
6765 built-in function was folded to a constant.
6766 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
6768 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
6769 Sebastian Pop <sebastian.pop@amd.com>
6771 * tree-scalar-evolution.c: Document instantiate_scev.
6772 (instantiate_parameters_1): Renamed instantiate_scev_1.
6773 Don't use the same loop for instantiation_loop and evolution_loop.
6774 (instantiate_scev): New.
6775 (instantiate_parameters): Moved...
6776 (resolve_mixers): Update call to instantiate_scev_1 to pass the
6777 same loop twice. Maintains the semantics for this function.
6778 * tree-scalar-evolution.h (instantiate_scev): Declare.
6779 (instantiate_parameters): ...here. Now static inline.
6780 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
6781 instead of resolve_mixers.
6783 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
6785 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
6787 2008-05-09 Tomas Bily <tbily@suse.cz>
6789 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
6790 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
6791 * tree-ssa-structalias.c (get_constraint_for): Likewise.
6792 * c-common.c (c_common_truthvalue_conversion): Likewise.
6793 * tree-object-size.c (compute_object_offset): Likewise.
6794 * tree-inline.c (estimate_num_insns_1): Likewise.
6795 * varasm.c (const_hash_1, compare_constant, copy_constant)
6796 (compute_reloc_for_constant, output_addressed_constants)
6797 (initializer_constant_valid_p): Likewise.
6798 * c-omp.c (check_omp_for_incr_expr): Likewise.
6799 * gimplify.c (gimplify_expr): Likewise.
6800 * c-typeck.c (c_finish_return): Likewise.
6801 * tree-vectorizer.c (supportable_widening_operation)
6802 (supportable_narrowing_operation): Likewise.
6803 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
6804 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
6805 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
6806 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
6807 (descr_info_loc): Likewise.
6808 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
6809 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
6810 (fold_unary): Likewise.
6811 * builtins.c (get_pointer_alignment): Likewise.
6812 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
6813 (instantiate_parameters_1): Likewise.
6814 * tree.c (expr_align, stabilize_reference): Likewise.
6815 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
6816 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
6817 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
6818 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
6819 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
6820 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
6822 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
6823 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
6824 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
6825 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
6826 (forward_propagate_comparison)
6827 (tree_ssa_forward_propagate_single_use_vars): Likewise.
6828 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
6829 * emit-rtl.c (component_ref_for_mem_expr)
6830 (set_mem_attributes_minus_bitpos): Likewise.
6831 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
6832 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
6834 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
6835 (build_function_call, pointer_diff, build_compound_expr)
6836 (c_finish_return): Likewise.
6837 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
6838 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
6840 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
6841 * expr.c (is_aligning_offset): Likewise.
6842 * tree-ssa-alias.c (is_escape_site): Likewise.
6843 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
6844 (check_all_va_list_escapes): Likewise.
6845 * tree-ssa-loop-ivopts.c (determine_base_object)
6846 (determine_common_wider_type): Likewise.
6847 * dojump.c (do_jump): Likewise.
6848 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
6849 * tree-gimple.c (is_gimple_cast): Likewise.
6850 * fold-const.c (decode_field_reference, )
6851 (fold_sign_changed_comparison, fold_unary, fold_comparison)
6852 (fold_binary): Likewise.
6853 * tree-ssa-alias-warnings.c (find_alias_site_helper)
6854 (already_warned_in_frontend_p): Likewise.
6855 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
6856 * tree.c (really_constant_p, get_unwidened): Likewise.
6857 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
6858 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
6859 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
6861 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
6863 (CONVERT_EXPR_P): Define.
6864 (CASE_CONVERT): Define.
6866 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
6869 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
6870 (delete_unmarked_insns): When deleting a call, call
6871 delete_unreachable_blocks.
6872 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
6873 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
6875 2008-05-08 Richard Guenther <rguenther@suse.de>
6877 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
6878 (-ftree-salias): Likewise.
6879 (salias-max-implicit-fields): Remove param documentation.
6880 (salias-max-array-elements): Likewise.
6881 * tree-pass.h (pass_create_structure_vars): Remove.
6882 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
6883 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
6884 * tree-ssa-alias.c (create_structure_vars): Remove.
6885 (gate_structure_vars): Likewise.
6886 (pass_create_structure_vars): Likewise.
6887 (gate_build_alias): Likewise.
6888 (pass_build_alias): Adjust to run always and dump the function.
6889 * common.opt (ftree-salias): Hide.
6890 * passes.c (init_optimization_passes): Remove
6891 pass_create_structure_vars, adjust comment.
6892 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
6893 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
6894 * opts.c (decode_options): Do not set flag_tree_salias.
6895 (common_handle_option): Add OPT_ftree_salias to the backward
6896 compatibility section.
6898 2008-05-08 Richard Guenther <rguenther@suse.de>
6900 * tree-flow-inline.h (var_can_have_subvars): Move ...
6901 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
6902 * tree-flow.h (var_can_have_subvars): Remove.
6903 (push_fields_onto_fieldstack): Remove.
6904 (sort_fieldstack): Likewise.
6905 (struct fieldoff): Move ...
6906 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
6907 alias_set and base_for_components fields.
6908 (sort_fieldstack): Make static.
6909 (push_fields_onto_fieldstack): Likewise. Remove code that
6910 handles anything but RECORD_TYPEs. Remove alias_set and
6911 base_for_components handling.
6912 (create_variable_info_for): Adjust.
6914 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
6916 * common.opt (Wframe-larger-than=): Shorten the help message
6918 * doc/invoke.texi (Wframe-larger-than=): Add more description.
6920 2008-05-08 Rafael Espindola <espindola@google.com>
6922 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
6924 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
6925 trap and that both operands are gimple values.
6926 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
6927 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
6930 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
6932 * read-rtl.c (join_c_conditions): Return the first string if the
6933 two strings are equal.
6935 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
6937 * gensupport.h (pred_data): Add a "num_codes" field.
6938 (add_predicate_code): Declare.
6939 * gensupport.c (add_predicate_code): New function.
6940 (std_pred_table): Add an "allows_const_p" field.
6941 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
6942 Remove the (incomplete) list of such codes from the codes field.
6943 (init_predicate_table): Use add_predicate_code. Add all
6944 RTX_CONST_OBJs if allows_const_p is true.
6945 * genrecog.c (process_define_predicate): Use add_predicate_code.
6947 2008-05-08 David Daney <ddaney@avtrex.com>
6948 Richard Sandiford <rsandifo@nildram.co.uk>
6950 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
6951 special case of constant zero operands.
6952 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
6953 old and new values. Special case constant zero values.
6954 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
6956 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
6957 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
6959 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
6962 * simplify-rtx.c (simplify_plus_minus): Create CONST of
6963 similar RTX_CONST_OBJ before CONST_INT.
6965 2008-05-08 Steve Ellcey <sje@cup.hp.com>
6967 * stmt.c (expand_stack_restore): Change sa mode if needed.
6969 2008-05-08 Richard Guenther <rguenther@suse.de>
6971 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
6972 return type to bool.
6973 (ix86_sol10_return_in_memory): Likewise.
6974 (ix86_i386elf_return_in_memory): Likewise.
6975 (ix86_i386interix_return_in_memory): Likewise.
6976 * config/i386/i386.c (ix86_return_in_memory): Likewise.
6977 (ix86_sol10_return_in_memory): Likewise.
6978 (ix86_i386elf_return_in_memory): Likewise.
6979 (ix86_i386interix_return_in_memory): Likewise.
6981 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
6984 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
6986 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
6987 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
6990 2008-05-08 Richard Guenther <rguenther@suse.de>
6992 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
6993 * tree-data-ref.h (struct dr_alias): Remove subvars field.
6994 (DR_SUBVARS): Remove.
6995 * tree-dfa.c (dump_subvars_for): Remove.
6996 (debug_subvars_for): Likewise.
6997 (dump_variable): Do not dump subvars.
6998 (remove_referenced_var): Do not remove subvars.
6999 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
7000 (lookup_subvars_for_var): Remove.
7001 (get_subvars_for_var): Likewise.
7002 (get_subvars_at): Likewise.
7003 (get_first_overlapping_subvar): Likewise.
7004 (overlap_subvar): Likewise.
7005 * tree-flow.h (subvar_t): Remove.
7006 (struct var_ann_d): Remove subvars field.
7007 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
7008 argument. Remove special handling of SFTs.
7009 (compute_tag_properties): Likewise.
7010 (set_initial_properties): Likewise.
7011 (compute_call_clobbered): Likewise.
7012 (count_mem_refs): Likewise.
7013 (compute_memory_partitions): Likewise.
7014 (compute_flow_insensitive_aliasing): Likewise.
7015 (setup_pointers_and_addressables): Likewise.
7016 (new_type_alias): Likewise.
7017 (struct used_part): Remove.
7018 (used_portions): Likewise.
7019 (struct used_part_map): Likewise.
7020 (used_part_map_eq): Likewise.
7021 (used_part_map_hash): Likewise.
7022 (free_used_part_map): Likewise.
7023 (up_lookup): Likewise.
7024 (up_insert): Likewise.
7025 (get_or_create_used_part_for): Likewise.
7026 (create_sft): Likewise.
7027 (create_overlap_variables_for): Likewise.
7028 (find_used_portions): Likewise.
7029 (create_structure_vars): Likewise.
7030 * tree.def (STRUCT_FIELD_TAG): Remove.
7031 * tree.h (MTAG_P): Adjust.
7032 (struct tree_memory_tag): Remove base_for_components and
7033 unpartitionable flags.
7034 (struct tree_struct_field_tag): Remove.
7035 (SFT_PARENT_VAR): Likewise.
7036 (SFT_OFFSET): Likewise.
7037 (SFT_SIZE): Likewise.
7038 (SFT_NONADDRESSABLE_P): Likewise.
7039 (SFT_ALIAS_SET): Likewise.
7040 (SFT_UNPARTITIONABLE_P): Likewise.
7041 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
7042 (union tree_node): Remove sft field.
7043 * alias.c (get_alias_set): Remove special handling of SFTs.
7044 * print-tree.c (print_node): Remove handling of SFTs.
7045 * tree-dump.c (dequeue_and_dump): Likewise.
7046 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
7047 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
7048 * tree-predcom.c (set_alias_info): Do not set subvars.
7049 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
7050 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
7051 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
7052 (add_vars_for_offset): Remove.
7053 (add_virtual_operand): Remove special handling of SFTs.
7054 (add_call_clobber_ops): Likewise.
7055 (add_call_read_ops): Likewise.
7056 (get_asm_expr_operands): Likewise.
7057 (get_modify_stmt_operands): Likewise.
7058 (get_expr_operands): Likewise.
7059 (add_to_addressable_set): Likewise.
7060 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
7061 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
7062 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
7063 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
7064 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
7065 (tree_node_structure): Likewise.
7066 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
7068 (find_what_p_points_to): Likewise.
7070 2008-05-08 Sa Liu <saliu@de.ibm.com>
7072 * config/spu/spu.md: Fixed subti3 pattern.
7074 2008-05-08 Richard Guenther <rguenther@suse.de>
7077 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
7078 sure to create a representative for trailing arrays for PTA.
7080 2008-05-08 Richard Guenther <rguenther@suse.de>
7083 * fold-const.c (operand_equal_p): Two objects which types
7084 differ in pointerness are not equal.
7086 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
7088 * calls.c (compute_argument_block_size): Add argument tree fndecl.
7089 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
7090 (emit_library_call_value_1): Add new variable fndecl initialized by
7091 NULL_TREE. It should be the decl type of orgfun, but this information
7092 seems not to be available here, so it uses the default calling abi.
7093 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
7094 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
7095 by TARGET_RETURN_IN_MEMORY.
7096 * config/i386/i386-interix.h: Likewise.
7097 * config/i386/i386.h: Likewise.
7098 * config/i386/i386elf.h: Likewise.
7099 * config/i386/ptx4-i.h: Likewise.
7100 * config/i386/sol2-10.h: Likewise.
7101 * config/i386/sysv4.h: Likewise.
7102 * config/i386/vx-common.h: Likewise.
7103 * config/cris/cris.h: Removed #if 0 clause.
7104 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
7105 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
7107 (ix86_sol10_return_in_memory): Likewise.
7108 (ix86_i386elf_return_in_memory): New.
7109 (ix86_i386interix_return_in_memory): New.
7110 * config/mt/mt-protos.h (mt_return_in_memory): New.
7111 * config/mt/mt.c: Likewise.
7112 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
7113 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
7114 * config/bfin/bfin.h: Likewise.
7115 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
7117 * config/bfin/bfin.c: Likewise.
7118 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
7119 * config/alpha/unicosmk.h: Likewise.
7120 * config/i386/cygming.h: Likewise.
7121 * config/iq2000/iq2000.h: Likewise.
7122 * config/mips/mips.h: Likewise.
7123 * config/mn10300/mn10300.h: Likewise.
7124 * config/rs6000/rs6000.h: Likewise.
7125 * config/score/score.h: Likewise.
7126 * config/spu/spu.h: Likewise.
7127 * config/v850/v850.h: Likewise.
7128 * defaults.h: Likewise.
7129 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
7130 * expr.c (emit_block_move): Adjust use of
7131 OUTGOING_REG_PARM_STACK_SPACE.
7132 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
7133 OUTGOING_REG_PARM_STACK_SPACE.
7134 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
7136 2008-05-08 Jakub Jelinek <jakub@redhat.com>
7138 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
7139 on OMP_RETURN for OMP_FOR.
7142 * dwarf2out.c (dw_expand_expr, common_check): Removed.
7143 (fortran_common): New function.
7144 (gen_variable_die): Call fortran_common instead of common_check,
7145 adjust for it returning tree instead of rtx. Formatting.
7147 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
7151 * see.c (see_copy_insn): Copy new pure const attributes for new call.
7152 * c-decl.c (merge_decls): Ditto.
7153 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
7154 to RTL_CONST_OR_PURE_CALL_P.
7155 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
7156 Initialized DECL_LOOPING_CONST_PURE.
7157 (process_call_operands): Set tree_side_effects properly.
7158 * tree.h (TREE_READONLY_DECL_P): Removed.
7159 (DECL_IS_PURE): Renamed to DECL_PURE_P.
7160 (DECL_LOOPING_OR_CONST_P): New macro.
7161 (struct tree_function_decl): Added looping_const_or_pure_p.
7163 (ECF_LOOPING_OR_CONST_P): New macro.
7164 * rtlanal.c (pure_const_p): Removed.
7165 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
7166 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
7167 to RTL_CONST_CALL_P.
7168 * ipa-pure-const.c (pure_const_state_e): Added looping field.
7169 (check_decl, check_tree, check_call, scan_function): Initialize
7171 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
7172 (static_execute): Set looping true for recursive functions.
7173 Undo setting state to IPA_NEITHER for recursive functions.
7175 * ifcvt.c (noce_can_store_speculate_p): Changed
7176 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
7177 RTL_CONST_OR_PURE_CALL_P.
7178 * dse.c (scan_insn): Ditto.
7179 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
7180 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
7181 RTL_CONST_OR_PURE_CALL_P.
7182 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
7183 pure_call_p to RTL_CONST_CALL_P.
7184 * gimplify.c (gimplify_call_expr): Clear side effects for
7185 non-looping pure and constant calls.
7186 * calls.c (emit_call_1): Set rtl flags from ecf flags.
7187 (flags_from_decl_or_type): Set ecf flags from decl flags.
7188 (initialize_argument_information): Turn off
7189 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
7190 Change const to pure if callee_copies is true rather than just
7192 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
7193 way of marking pure calls.
7194 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
7195 Remove hack that was supposed to fix pr7335 and remove old
7196 way of marking pure calls.
7197 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
7198 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
7199 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
7200 RTL_CONST_OR_PURE_CALL_P.
7201 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
7202 * loop-invariant.c (find_exits, find_invariant_bb): Changed
7203 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
7204 * sched-deps.c (schedule_analyze): Ditto.
7205 * rtl.h (struct rtx_def): Use call field, unchanging field, and
7206 return_val field of calls to represent pure and const function info.
7207 (CONST_OR_PURE_CALL_P): Deleted macro.
7208 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7209 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
7210 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
7212 * tree-optimize.c (execute_fixup_cfg): Added test for
7213 ECF_LOOPING_CONST_OR_PURE.
7214 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
7216 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
7217 effects for looping pure or const calls.
7218 (verify_gimple_expr): Added verification code.
7219 * config/alpha/alpha.c (alpha_legitimize_address,
7220 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
7222 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
7223 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
7224 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
7225 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
7226 RTL_CONST_OR_PURE_CALL_P.
7227 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
7228 and const calls to be deleted.
7230 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
7233 * config/i386/mmx.md (mmx_subv2sf3): New expander.
7234 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
7235 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
7236 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
7237 to handle nonimmediate operands.
7238 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
7239 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
7240 to handle nonimmediate operands.
7241 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
7242 (mmx_pmulhrwv4hi3): New expander. Use
7243 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7244 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
7245 (sse2_umulv1siv1di3): New expander. Use
7246 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7247 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
7248 (mmx_eq<mode>3): New expander. Use
7249 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7250 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
7251 (mmx_uavgv8qi3): New expander. Use
7252 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7253 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
7254 (mmx_uavgv4hi3): New expander. Use
7255 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7257 * config/i386/sse.md
7258 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
7259 to handle nonimmediate operands.
7260 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
7261 to handle nonimmediate operands.
7262 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
7263 to handle nonimmediate operands.
7264 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
7265 to handle nonimmediate operands.
7266 (sse2_unpckhpd_exp): New expander. Use
7267 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7268 (sse2_unpcklpd_exp): New expander. Use
7269 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7270 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
7271 to handle nonimmediate operands.
7272 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
7273 to handle nonimmediate operands.
7274 (*sse2_<plusminus_insn><mode>3): Rename from
7275 sse2_<plusminus_insn><mode>3 insn pattern.
7276 (sse2_<plusminus_insn><mode>3): New expander. Use
7277 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7278 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
7279 (sse2_umulv2siv2di3): New expander. Use
7280 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7281 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
7282 (sse4_1_mulv2siv2di3): New expander. Use
7283 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7284 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
7285 (sse2_pmaddwd): New expander. Use
7286 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7287 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
7288 (sse2_eq<mode>3): New expander. Use
7289 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7290 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
7291 (sse4_1_eqv2di3): New expander. Use
7292 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7293 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
7294 (sse2_uavgv16qi3): New expander. Use
7295 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7296 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
7297 (sse2_uavgv16qi3): New expander. Use
7298 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7299 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
7300 (sse2_uavgv8hi3): New expander. Use
7301 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7302 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
7303 (ssse3_pmulhrswv8hi3): New expander. Use
7304 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7305 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
7306 (ssse3_pmulhrswv4hi3): New expander. Use
7307 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7309 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
7310 (<sse>_vmmul<mode>3): Ditto.
7311 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
7313 (ssse3_pmaddubsw128): Use register_operand for operand 1.
7314 (ssse3_pmaddubsw): Ditto.
7316 * config/i386/i386.c (struct_builtin_description)
7317 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
7318 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
7319 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
7320 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
7321 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
7322 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
7323 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
7324 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
7325 (ix86_fixup_binary_operands): Assert that src1
7326 and src2 must have the same mode when swapped.
7327 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
7328 and ix86_binary_operator_ok. Do not force operands in registers
7331 2008-05-07 Jan Hubicka <jh@suse.cz>
7333 * cgraph.c (dump_cgraph_node): Update.
7334 * cgraph.h (cgraph_local_info): Break out inline summary.
7335 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
7337 * ipa-inline (inline_summary): New accestor function.
7338 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
7339 cgraph_decide_inlining, compute_inline_parameters): Update.
7340 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
7342 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
7344 Cleanup ColdFire scheduling support and add V4 pipeline model.
7346 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
7347 (define_attr cpu): Add cfv4 value.
7348 (define_attr type, define_attr type1): Merge into a single 'type'
7349 attribute. Update all uses.
7350 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
7351 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
7353 (define_attr opx_mem, define_attr opy_mem): Remove.
7354 (define_attr op_mem): Clean up, update comment.
7355 (define_attr size): Use specific values instead of general int.
7356 (define_attr guess, define_attr split): Remove. Update all uses.
7357 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
7358 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
7359 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
7360 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
7361 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
7362 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
7363 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
7364 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
7365 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
7366 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
7367 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
7368 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
7369 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
7370 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
7371 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
7372 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
7373 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
7374 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
7375 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
7376 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
7377 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
7378 Update or set attributes.
7379 (stack_tie): New fake instruction.
7381 * config/m68k/m68k.h (TUNE_CFV4): New macro.
7382 (m68k_sched_attr_size): Update declaration.
7383 (m68k_sched_attr_type2): Remove.
7384 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
7385 Declare new bypass predicates.
7387 * config/m68k/m68k.c (m68k_sched_issue_rate,
7388 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
7390 (TARGET_SCHED_ISSUE_RATE,
7391 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
7392 (override_options): Handle scheduling for ColdFire V4 core.
7393 (m68k_expand_prologue): Emit stack_tie.
7394 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
7395 'OP_TYPE_FPN'. Update all uses.
7396 (sched_guess_p): Remove.
7397 (sched_address_type): Handle symbolic addresses.
7398 (sched_get_operand): New static function.
7399 (sched_operand_type): Merge into sched_attr_op_type.
7400 (sched_attr_op_type): Handle FP registers, handle quick constants,
7402 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
7403 (m68k_sched_attr_size): Update. Move logic to ...
7404 (sched_get_attr_size_int): New static function.
7405 (sched_get_opxy_mem_type): New static function.
7406 (m68k_sched_attr_op_mem): Update.
7407 (m68k_sched_attr_type2): Remove.
7408 (sched_cfv4_bypass_data): New static variable.
7409 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
7410 (m68k_sched_issue_rate): Implement scheduler hook.
7411 (struct _sched_ib: enabled_p): New field.
7412 (m68k_sched_variable_issue): Update. Handle V4.
7413 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
7414 sched_dump_class_func_t, sched_dump_split_class,
7415 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
7416 sched_dump_dfa_class, m68k_sched_dump): Remove.
7417 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
7419 (m68k_sched_init_global): Remove statisctics dumping, introduce
7420 sanity check that all instructions have pipeline reservations. Handle
7422 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
7423 Handle ColdFire V4 core.
7424 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
7425 New static functions.
7426 (m68k_sched_address_bypass_p): New bypass predicate.
7427 (sched_get_indexed_address_scale): New static function.
7428 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
7430 * cf.md: Update comments.
7431 (define_attr type2): Remove. Use 'type' attribute instead.
7433 (cf_ib): Rename to cfv123_ib. Update all uses.
7434 (cf_oep): Rename to cfv123_oep. Update all uses.
7435 (cf_chr): Rename to cfv123_chr. Update all uses.
7436 (cf_mem): Rename to cfv123_mem. Update all uses.
7437 (cf_mac): Move to more appropriate place.
7438 (cfv123_guess): New automaton and cpu_unit.
7439 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
7440 Update uses of 'size' attribute. Handle before reload scheduling.
7441 (cfv123_guess): New dummy reservation for unhandled instructions.
7442 (cfv4_*): Pipeline description of ColdFire V4 core.
7443 (ignore): New reservation to handle 'ignore' type.
7445 2008-05-07 Ian Lance Taylor <iant@google.com>
7448 * gimplify.c (find_single_pointer_decl_1): Don't look through
7450 (find_single_pointer_decl): Adjust comments.
7452 2008-05-07 Jakub Jelinek <jakub@redhat.com>
7455 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
7456 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
7459 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
7460 integral type rather than floating point, then VIEW_CONVERT_EXPR
7461 to the floating point type.
7463 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
7465 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
7466 TFmode op0 to register.
7468 2008-05-07 Alan Modra <amodra@bigpond.net.au>
7470 * c-decl.c (grokdeclarator): Comment typo.
7472 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
7474 * tree-flow.h: Remove prototype for computed_goto_p.
7475 * tree-cfg.c (computed_goto_p): Make static.
7477 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
7480 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
7481 (contains_aligned_value_p): This. Handle _Decimal128.
7482 (ix86_function_arg_boundary): Only align _Decimal128 to its
7483 natural boundary and handle it properly.
7485 2008-05-06 Martin Jambor <mjambor@suse.cz>
7487 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
7488 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
7489 (ipcp_method_set_orig_node): Removed.
7490 (ipcp_cval_get_cvalue_type): Removed.
7491 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
7492 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
7493 (ipcp_cval_set_cvalue_type): Removed.
7494 (ipcp_cval_get_cvalue): Removed.
7495 (ipcp_cval_set_cvalue): Removed.
7496 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
7497 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
7498 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
7499 (ipcp_cval_meet): Renamed to ipa_lattice_meet
7500 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
7501 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
7502 (ipcp_get_ith_lattice): Changed parameters.
7503 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
7504 (ipcp_lattice_from_jfunc): Changed parameters.
7505 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
7506 (ipcp_method_cval_print): Added temporary variable info.
7507 (ipcp_redirect): Removed already unused local variable caller.
7508 (ipcp_redirect): New temporary variable orig_callee_info
7509 (ipcp_redirect): Removed newly unused local variable callee.
7510 (ipcp_redirect): Removed (a bit confusing) local variable type.
7511 (ipcp_insert_stage): Added local variable info.
7512 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
7514 (ipcp_formal_create): Removed.
7515 (ipcp_method_cval_set): Removed.
7516 (ipcp_propagate_stage): Renamed lattice variables.
7517 (ipcp_method_cval_set_cvalue_type): Removed.
7518 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
7519 (ipcp_print_all_lattices): Changed printed strings to refer to
7520 lattices rather than cvals.
7521 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
7522 (ipcp_propagate_const): Changed formal parameters.
7523 (build_const_val): Changed formal parameters.
7524 (ipcp_insert_stage): Removed useless variable cvalue
7525 (build_const_val): Changed formal parameters.
7526 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
7527 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
7528 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
7529 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
7530 (ipcp_print_func_profile_counts): Changed string from "method" to
7532 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
7533 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
7534 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
7535 (ipcp_structures_print): Renamed to ipcp_print_all_structures
7536 (ipcp_profile_print): Renamed to ipcp_print_profile_data
7537 (ipcp_lat_is_const): Changed parameters and made inline.
7538 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
7539 (ipcp_redirect): Renamed to ipcp_need_redirect_p
7540 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
7541 the predicate condition directly
7542 (ipcp_propagate_stage): Added local variable args. Removed local
7543 variable callee. (Both are mere code simplifications.)
7544 (ipcp_method_dont_insert_const): Renamed to
7545 ipcp_node_not_modifiable_p.
7546 (ipcp_node_not_modifiable_p): Made inline.
7547 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
7548 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
7549 (ipcp_print_all_lattices): Removed variable cvalue
7550 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
7553 2008-05-06 Olivier Hainque <hainque@adacore.com>
7555 * tree-sra.c (try_instantiate_multiple_fields): Early return
7556 if field has POINTER_TYPE.
7558 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
7560 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
7561 by using 'q' specifier for instruction.
7562 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
7564 2008-05-06 Anatoly Sokolov <aesok@post.ru>
7566 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
7567 Change mode of zero_extract from QImode to HImode.
7568 (sign bit tests peepholes): (Ditto.).
7570 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
7572 * config/i386/mmx.md: Remove double backslashes from asm templates.
7573 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
7574 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
7575 to handle nonimmediate operands.
7576 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
7577 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
7578 to handle nonimmediate operands.
7579 (*mmx_<code>v2sf3_finite): New insn pattern.
7580 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
7581 (mmx_<code>v2sf3): New expander. Use
7582 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7583 (mmx_<plusminus_insn><mode>3): New expander. Use
7584 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7585 (*mmx_<plusminus_insn><mode>3): New insn pattern.
7586 (mmx_add<mode>3): Removed.
7587 (mmx_ssadd<mode>3): Ditto.
7588 (mmx_usadd<mode>3): Ditto.
7589 (mmx_sub<mode>3): Ditto.
7590 (mmx_sssub<mode>3): Ditto.
7591 (mmx_ussub<mode>3): Ditto.
7592 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
7593 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
7594 to handle nonimmediate operands.
7595 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
7597 (mmx_smulv4hi3_highpart): New expander. Use
7598 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7599 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
7601 (mmx_umulv4hi3_highpart): New expander. Use
7602 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7603 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
7604 (mmx_<code>v4hi3): New expander. Use
7605 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7606 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
7607 (mmx_<code>v8qi3): New expander. Use
7608 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7609 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
7610 (mmx_<code><mode>3): New expander. Use
7611 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7613 2008-05-05 Jan Hubicka <jh@suse.cz>
7615 PR tree-optimization/36118
7616 * passes.c (pass_init_dump_file): Fix dump header.
7618 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
7621 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
7622 VCE for function decls.
7624 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
7626 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
7628 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
7630 * config/i386/i386.md (sat_plusminus): New.
7631 (plusminus_insn): Likewise.
7632 (plusminus_mnemonic): Likewise.
7634 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
7635 (*<addsub><mode>3_cc_overflow): Renamed to ...
7636 (*<plusminus_insn><mode>3_cc_overflow): This.
7637 (*<addsub>si3_zext_cc_overflow): Renamed to ...
7638 (*<plusminus_insn>si3_zext_cc_overflow): This.
7640 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
7641 (<plusminus_insn><mode>3): This.
7642 (*<addsub><mode>3): Renamed to ...
7643 (*<plusminus_insn><mode>3): This.
7644 (<sse>_vm<addsub><mode>3): Renamed to ...
7645 (<sse>_vm<plusminus_insn><mode>3): This.
7646 (sse3_h<addsub>v4sf3): Renamed to ...
7647 (sse3_h<plusminus_insn>v4sf3): This.
7648 (sse3_h<addsub>v2df3): Renamed to ...
7649 (sse3_h<plusminus_insn>v2df3): This.
7650 (<plusminus_insn><mode>3): New.
7651 (*<plusminus_insn><mode>3): Likewise.
7652 (sse2_<plusminus_insn><mode>3): Likewise.
7653 (add<mode>): Removed.
7654 (*add<mode>3): Likewise.
7655 (sse2_ssadd<mode>3): Likewise.
7656 (sse2_usadd<mode>3): Likewise.
7657 (sub<mode>3): Likewise.
7658 (*sub<mode>3): Likewise.
7659 (sse2_sssub<mode>3): Likewise.
7660 (sse2_ussub<mode>3): Likewise.
7662 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
7664 * gthr-single.h: Add in required interface elements as per gthr.h.
7665 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
7666 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
7667 Generalize UNUSED macro.
7668 (__gthread_once): Add.
7669 (__gthread_key_create): Add.
7670 (__gthread_key_delete): Add.
7671 (__gthread_getspecific): Add.
7672 (__gthread_setspecific): Add.
7674 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
7676 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
7677 the same size types for the indirect reference on the rhs, then
7680 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
7682 * config/i386/i386.md
7683 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
7684 one insn template instead of template series.
7685 (*xordi_1_rex64): Ditto.
7686 (*xordi_2_rex64): Ditto.
7688 2008-05-05 Ira Rosen <irar@il.ibm.com>
7690 PR tree-optimization/36119
7691 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
7694 2008-06-04 Jan Hubicka <jh@suse.cz>
7696 tree-optimization/36100
7697 * tree-pass.h (pass_O0_always_inline): Declare.
7698 * ipa-inline.c (inline_transform): Remove dead code.
7699 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
7700 pass_O0_always_inline): New.
7701 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
7703 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
7705 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
7706 mnemonic in this_param move for TARGET_64BIT.
7708 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
7710 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
7711 (*strmovsi_rex_1): Ditto.
7712 (*strsetsi_1): Ditto.
7713 (*strsetsi_rex_1): Ditto.
7715 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
7716 adddicc expanders using SWI mode iterator.
7718 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
7721 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
7724 2008-05-04 David S. Miller <davem@davemloft.net>
7726 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
7727 (sparc*-*-linux*): Use linux.h in tm_file.
7728 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
7729 compiler defaulting to 32-bit.
7730 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
7732 * config/sparc/linux.h: Remove definitions now obtained
7733 properly from linux.h
7734 * config/sparc/linux64.h: Likewise.
7735 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
7736 don't want this setting for 32-bit builds in a biarch compiler.
7737 * doc/install.texi: Add sparc-linux to list of targets
7738 supporting --enable-targets=all.
7740 2008-05-03 Andrew Pinski <pinskia@gmail.com>
7742 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
7744 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
7746 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
7747 after V4SI_FTYPE_V8HI.
7748 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
7749 case V4SI_FTYPE_V2DF.
7751 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
7753 * doc/invoke.texi (max-flow-memory-locations): Removed.
7754 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
7756 2008-05-03 Richard Guenther <rguenther@suse.de>
7759 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
7761 2008-05-02 David S. Miller <davem@davemloft.net>
7763 * config.gcc (need_64bit_hwint): Document libcpp dependency.
7765 2008-05-02 Simon Baldwin <simonb@google.com>
7768 * c-common.h (warn_array_subscript_range): Removed.
7769 * c-common.c (warn_array_subscript_range): Ditto.
7770 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
7771 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
7773 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
7775 * config/i386/i386.c (ix86_special_builtin_type): New.
7776 (bdesc_special_args): Likewise.
7777 (ix86_expand_special_args_builtin): Likewise.
7778 (ix86_init_mmx_sse_builtins): Updated.
7779 (ix86_expand_builtin): Updated.
7780 (ix86_expand_store_builtin): Removed.
7781 (ix86_expand_unop_builtin): Likewise.
7783 * config/i386/mm3dnow.h (__v2sf): Moved to ...
7784 * config/i386/mmintrin.h (__v2sf): Here.
7786 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
7788 (_mm_loadl_pi): Likewise.
7789 (_mm_storeh_pi): Replace __v2si with __v2sf.
7790 (_mm_storel_pi): Likewise.
7792 * doc/extend.texi: Correct __builtin_ia32_loadhps,
7793 __builtin_ia32_loadlps, __builtin_ia32_storehps,
7794 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
7795 __builtin_ia32_loadlpd.
7797 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
7799 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
7800 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
7801 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
7802 (ix86_init_mmx_sse_builtins): Updated.
7803 (ix86_expand_args_builtin): Likewise.
7804 (ix86_expand_builtin): Likewise.
7805 (ix86_expand_unop1_builtin): Renamed to ...
7806 (ix86_expand_unop_vec_merge_builtin): This.
7808 2008-05-01 Jan Hubicka <jh@suse.cz>
7811 * ipa-inline.c (inline_generate_summary): Make static.
7812 (inline_transform): Do not call inlining at -O0; make static.
7813 * passes.c (execute_todo): Add sanity check.
7814 (execute_one_ipa_transform_pass): Execute proper flags.
7816 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
7818 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
7819 (DECL_NONADDRESSABLE_P): Likewise.
7820 * alias.c (record_component_aliases): Fix comment.
7822 2008-05-01 Simon Baldwin <simonb@google.com>
7824 * c-common.h (warn_array_subscript_range): New function.
7825 * c-common.c (warn_array_subscript_range): Ditto.
7826 * tree-vrp.c (check_array_ref): Corrected code to agree with
7827 comment, ignoring only arrays of size 0 or size 1.
7828 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
7830 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
7832 * config/i386/i386.c (ix86_builtin_type): Replace
7833 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
7834 (bdesc_args): Updated.
7835 (ix86_init_mmx_sse_builtins): Likewise.
7836 (ix86_expand_args_builtin): Likewise.
7838 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
7841 * doc/extend.texi: Correct __builtin_ia32_palignr.
7843 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
7846 * config/i386/i386.c (bdesc_crc32): Removed.
7847 (ix86_expand_crc32): Likewise.
7848 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
7849 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
7850 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
7851 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
7852 UINT_FTYPE_UINT_UCHAR.
7853 (bdesc_args): Updated. Add crc32 builtins.
7854 (ix86_init_mmx_sse_builtins): Updated.
7855 (ix86_expand_args_builtin): Updated to support subreg.
7857 * doc/extend.texi: Correct __builtin_ia32_crc32di.
7859 2008-05-01 Jan Hubicka <jh@suse.cz>
7861 * tree-pass.h (opt_pass): Add IPA_PASS.
7862 (varpool_node, cgraph_node): Forward declare.
7863 (ipa_opt_pass): Define.
7864 (pass_ipa_inline): Turn into ipa_opt_pass.
7865 (pass_apply_inline): Remove.
7866 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
7867 (apply_inline): Turn into ....
7868 (inline_transform): ... this one.
7869 (inline_generate_summary): New function.
7870 (pass_apply_inline): Remove.
7871 * function.h (ipa_opt_pass): Forward declare structure; typedef;
7873 (struct function): Add ipa_transforms_to_apply.
7874 * passes.c (register_one_dump_file): Work on IPA_PASS.
7875 (init_optimization_passes): Remove pass_inline_parameters and
7877 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
7878 (execute_one_pass) ... here; apply transforms when possible.
7879 (add_ipa_transform_pass, execute_ipa_summary_asses,
7880 execute_one_ipa_transform_pass): New.
7881 (execute_ipa_pass_list): Update for IPA_PASS type.
7883 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
7885 * config/i386/i386.c (ix86_builtin_type): Add
7886 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
7887 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
7888 (bdesc_args): Add SSE4a builtins.
7889 (ix86_init_mmx_sse_builtins): Updated.
7890 (ix86_expand_args_builtin): Likewise.
7891 (ix86_expand_builtin): Likewise.
7893 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
7895 * config/i386/i386.c (ix86_builtin_type): Add
7896 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
7897 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
7898 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
7899 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
7900 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
7901 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
7902 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
7903 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
7904 and DI_FTYPE_DI_DI_INT.
7905 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
7906 (ix86_init_mmx_sse_builtins): Updated.
7907 (ix86_expand_args_builtin): Likewise.
7908 (ix86_expand_builtin): Likewise.
7909 (ix86_expand_binop_imm_builtin): Removed.
7911 * doc/extend.texi: Correct __builtin_ia32_palignr128.
7913 2008-04-30 Richard Guenther <rguenther@suse.de>
7915 PR tree-optimization/32921
7916 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
7918 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
7920 * config/arm/arm.c (arm_unwind_emit): Use
7921 crtl->all_throwers_are_sibcalls instead of
7922 cfun->all_throwers_are_sibcalls.
7923 (arm_output_fn_unwind): Likewise.
7924 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
7925 instead of cfun->uses_pic_offset_table.
7926 (frv_expand_prologue): Likewise.
7927 (frv_frame_pointer_required): Likewise.
7928 (frv_expand_fdpic_call): Likewise.
7929 (frv_emit_movsi): Likewise.
7930 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
7931 cfun->returns_pcc_struct instead of
7932 current_function_returns_pcc_struct.
7933 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
7934 instead of cfun->calls_eh_return.
7935 (m32c_pushm_popm): Likewise.
7936 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
7937 "extern" declaration.
7939 2008-04-30 Richard Guenther <rguenther@suse.de>
7941 PR tree-optimization/21636
7942 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
7944 (evaluate_stmt): Print the likely value.
7945 (ccp_visit_stmt): Avoid excessive vertical spacing.
7947 2008-04-30 Rafael Espindola <espindola@google.com>
7949 * builtins.c (fold_call_expr): Return realret.
7950 * tree-ssa-threadedge.c
7951 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
7952 __builtin_object_size.
7954 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
7956 * gcc.c (wrapper_string): New variable.
7957 (insert_wrapper): New function.
7958 (execute): New option -wrapper.
7959 * doc/invoke.texi (Overall Options): New driver option -wrapper.
7961 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
7963 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
7964 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
7965 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
7967 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
7968 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
7969 config/rs6000/e500crtres64gprctr.asm,
7970 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
7971 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
7972 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
7973 config/rs6000/e500crtsav64gprctr.asm,
7974 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
7975 config/rs6000/e500crtsavg64gprctr.asm: New files.
7976 * config/rs6000/t-ppccomm: Add build rules for new files.
7977 (LIB2FUNCS_STATIC_EXTRA): Add new files.
7978 * config/rs6000/t-netbsd: Add build rules for new files.
7979 (LIB2FUNCS_STATIC_EXTRA): New variable.
7980 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
7981 (CRTSAVRES_DEFAULT_SPEC): Likewise.
7982 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
7984 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
7986 * config/i386/i386.c (ix86_builtin_type): Add
7987 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
7988 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
7989 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
7990 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
7991 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
7992 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
7993 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
7994 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
7995 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
7996 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
7997 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
7998 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
7999 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
8000 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
8001 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
8002 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
8003 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
8004 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
8005 V1DI_FTYPE_V2SI_V2SI.
8006 (bdesc_2arg): Moved to ...
8008 (ix86_init_mmx_sse_builtins): Updated.
8009 (ix86_expand_args_builtin): Updated. Take a pointer
8010 to const struct builtin_description. Handle comparison
8012 (ix86_expand_sse_compare): Take a new argument for swapping operands.
8013 (ix86_expand_builtin): Updated.
8015 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
8016 (ssse3_pmaddubsw128): This.
8017 (ssse3_pmaddubswv4hi3): Renamed to ...
8018 (ssse3_pmaddubsw): This.
8020 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
8021 (__builtin_ia32_packssdw128): Likewise.
8022 (__builtin_ia32_packuswb128): Likewise.
8023 (__builtin_ia32_pmaddubsw): Likewise.
8024 (__builtin_ia32_pmaddubsw128): Likewise.
8026 2008-04-30 Richard Guenther <rguenther@suse.de>
8028 PR tree-optimization/14847
8029 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
8030 (recognize_bits_test): Use it.
8031 (recognize_single_bit_test): Likewise.
8033 2008-04-30 Martin Jambor <mjambor@suse.cz>
8035 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
8036 instead of setting number of formal parameters to zero.
8037 (ipcp_init_stage): Do not set the number of actual parameters to zero
8039 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
8040 which are called with variable number of arguments.
8041 (ipcp_insert_stage): Explicitely skipping all nodes which are
8042 called with variable number of arguments.
8043 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
8044 number of parameters.
8046 * ipa-prop.h (struct ipa_node_params): Added flag
8047 called_with_var_arguments
8048 (ipa_set_param_count): Added. Changed sole setter to use it.
8049 (ipa_get_param_count): Added. All readers of param_count
8050 converted to use it instead.
8051 (ipa_set_called_with_variable_arg): Added.
8052 (ipa_is_called_with_var_arguments): Added.
8053 (ipa_get_ith_param): Added. All readers of param_decls converted
8055 (ipa_set_cs_argument_count): Added, sole writer to argument_count
8057 (ipa_get_cs_argument_count): Added, all readers of argument_count
8059 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
8062 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
8063 (struct ipcp_lattice): Renamed cval_type to type
8064 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
8066 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
8067 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
8068 (ipcp_insert_stage): Changed the type of variable cvalue to tree
8069 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
8070 (build_const_val): Changed the type of parameter cvalue to tree
8071 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
8072 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
8074 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
8077 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
8078 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
8079 (ipa_add_method): Renamed to ipa_push_func_to_list
8080 (ipa_remove_method): Renamed to ipa_pop_func_from_list
8081 (ipa_callsite_param_count): Removed.
8082 (ipa_callsite_param_count_set): Removed.
8083 (ipa_callsite_param): Removed.
8084 (ipa_callsite_callee): Removed.
8085 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
8086 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
8087 (ipa_method_formal_count): Removed.
8088 (ipa_method_formal_count_set): Removed.
8089 (ipa_method_get_tree): Removed.
8090 (ipa_method_tree_map_create): Removed.
8091 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
8092 (ipa_create_param_decls_array): Creates the array itself
8093 (ipa_create_param_decls_array): Temporary variable info instead of
8095 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
8096 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
8097 (get_type): Removed.
8098 (ipa_jf_get_info_type): Removed.
8099 (ipa_node_create): Renamed to ipa_create_node_params
8100 (ipa_free): Renamed to ipa_free_all_node_params
8101 (ipa_nodes_create): Renamed to ipa_create_all_node_params
8102 (ipa_edges_create): Renamed to ipa_create_all_edge_args
8103 (ipa_edges_free): Renamed to ipa_free_all_edge_args
8104 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
8105 (ipa_free_all_node_params): Deallocation to jump_functions moved to
8106 ipa_free_all_edge_args
8107 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
8108 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
8109 (ipa_create_methodlist_node): Removed.
8110 (ipa_methodlist_method): Removed.
8111 (ipa_methodlist_method_set): Removed.
8112 (ipa_methodlist_next_method): Removed.
8113 (ipa_methodlist_next_method_set): Removed.
8114 (ipa_method_is_modified): Removed.
8115 (ipa_method_modify_create): Removed.
8116 (ipa_method_modify_init): Temporary variable info instead of a few
8118 (ipa_detect_param_modifications): Temporary variable info instead of
8120 (ipa_compute_jump_functions): Temporary variable info instead of
8122 (ipa_method_modify_set): Removed.
8123 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
8124 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
8125 than craph_node as the first parameter.
8126 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
8127 (ipa_method_modify_init): Removed.
8128 (ipa_compute_jump_functions): Added a temp variable instead of
8129 repeatadly dereferencing the cgraph_edge.aux pointer
8130 (ipa_callsite_param_set_type): Removed.
8131 (ipa_compute_jump_functions): i renamed to index and moved to
8133 (ipa_callsite_param_set_info_type_formal): Removed.
8134 (ipa_callsite_param_set_info_type): Removed.
8135 (ipa_callsite_param_map_create): Removed.
8136 (ipa_callsite_tree): Removed.
8137 (ipa_callsite_caller): Removed.
8138 (ipa_pop_func_from_list): return_method removed to return_func
8140 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
8141 prefixed all values with IPA_. Changed all users.
8142 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
8143 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
8144 and FORMAL_IPATYPE IPA_PASS_THROUGH.
8145 (union parameter_info): Renamed to jump_func_value.
8146 (union jump_func_value): Renamed value to constant
8147 (struct ipa_jump_func): Renamed info_type to value
8148 (struct ipa_node): Renamed to ipa_node_params
8149 (struct ipa_node_params): Renamed ipa_arg_num to param_count
8150 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
8151 (struct ipa_node_params): Renamed ipa_mod to modified_flags
8152 (struct ipa_edge): Renamed to ipa_edge_args
8153 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
8154 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
8155 (struct ipa_methodlist): Renamed to ipa_func_list
8156 (struct ipa_func_list): method_p renamed to node, next_method
8158 (ipa_methodlist_p): Removed, switched all users to struct pointer
8159 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
8161 2008-04-30 Alan Modra <amodra@bigpond.net.au>
8163 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
8164 (rs6000_emit_epilogue): Use backchain to restore only when we
8165 have a large frame. Make use of frame pointer to restore if we
8166 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
8168 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
8170 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
8171 Add mode to zero_extract.
8172 (sign bit tests peepholes): (Ditto.).
8174 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
8176 * config/i386/i386.c (ix86_builtins): Replace Prescott New
8177 Instructions in comments with SSE3.
8178 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
8179 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
8180 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
8181 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
8182 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
8183 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
8184 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
8185 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
8186 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
8187 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
8188 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
8189 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
8190 (bdesc_sse_args): Renamed to ...
8191 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
8192 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
8193 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
8195 (bdesc_1arg): Moved to ...
8197 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
8198 Instructions in comments with SSE3.
8199 (ix86_expand_sse_operands_builtin): Renamed to ...
8200 (ix86_expand_args_builtin): This. Updated.
8201 (ix86_expand_unop1_builtin): Update comments.
8202 (ix86_expand_builtin): Updated.
8204 2008-04-29 Richard Guenther <rguenther@suse.de>
8206 PR tree-optimization/36078
8207 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
8208 Update virtual SSA form after cleaning up the CFG.
8210 2008-04-29 Richard Guenther <rguenther@suse.de>
8213 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
8215 2008-04-29 Richard Guenther <rguenther@suse.de>
8217 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
8218 (compute_may_aliases): Do not call finalize_ref_all_pointers.
8219 (compute_flow_insensitive_aliasing): Do not treat
8220 PTR_IS_REF_ALL pointers special.
8221 (get_smt_for): Likewise.
8222 (may_alias_p): Re-structure.
8223 (is_escape_site): A ref-all pointer conversion is not an escape site.
8224 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
8225 PTR_IS_REF_ALL pointers special.
8226 * tree-ssa-structalias.h (struct alias_info): Remove
8227 ref_all_symbol_mem_tag field.
8228 (PTR_IS_REF_ALL): Remove.
8230 2008-04-29 Richard Guenther <rguenther@suse.de>
8233 * fold-const.c (extract_muldiv_1): In combining division constants
8234 make sure to never overflow.
8236 2008-04-29 Nick Clifton <nickc@redhat.com>
8238 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
8240 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8243 * optc-gen.awk: Work around HP-UX/IA awk bug.
8245 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
8247 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
8250 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
8253 * config/i386/i386.md
8254 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
8255 Change operand 1 predicate to nonimmediate_operand.
8257 2008-04-28 Jakub Jelinek <jakub@redhat.com>
8260 * dwarf2out.c (struct die_struct): Mark as chain_circular through
8262 * gengtype.c (walk_type, write_func_for_structure): Handle
8264 * doc/gty.texi: Document chain_circular.
8266 2008-04-28 Richard Guenther <rguenther@suse.de>
8268 PR tree-optimization/36066
8269 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
8272 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
8275 * config/i386/i386.md
8276 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
8277 Use match_scratch instead of match_operand for operands 3 and 4.
8279 2008-04-27 Richard Guenther <rguenther@suse.de>
8281 PR tree-optimization/18754
8282 PR tree-optimization/34223
8283 * tree-pass.h (pass_complete_unrolli): Declare.
8284 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
8285 loop size before and after unconditionally of UL_NO_GROWTH in effect.
8286 Rewrite loop into loop closed SSA form if it is not already.
8287 (tree_unroll_loops_completely): Re-structure to iterate over
8288 innermost loops with intermediate CFG cleanups.
8289 Unroll outermost loops only if requested or the code does not grow
8291 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
8292 loops are available.
8293 (tree_vectorize): Instead do so here.
8294 (tree_complete_unroll): Also unroll outermost loops.
8295 (tree_complete_unroll_inner): New function.
8296 (gate_tree_complete_unroll_inner): Likewise.
8297 (pass_complete_unrolli): New pass.
8298 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
8299 uses outside of the loop.
8300 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
8301 form if it is available.
8302 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
8303 * passes.c (init_optimization_passes): Schedule complete inner
8304 loop unrolling pass before the first CCP pass after final inlining.
8306 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
8308 * targhooks.h (default_emutls_var_fields,
8309 default_emutls_var_init): Declare.
8310 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
8311 * target.h (struct gcc_target): Add struct emutls member.
8312 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
8313 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
8314 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
8315 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
8316 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
8317 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
8318 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
8319 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
8320 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
8321 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
8322 emit debug information.
8323 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
8324 * varasm.c: Include targhooks.h.
8325 (emutls_object_section, emutls_tmpl_section): New.
8326 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
8327 (EMUTLS_SEPARATOR): New.
8329 (get_emutls_object_name): New.
8330 (default_emutls_var_fields): New, broken out of ...
8331 (get_emutls_object_type): ... here. Adjust to use target hooks.
8332 (get_emutls_init_templ_addr): Adjust to use target hooks.
8333 (emutls_decl): Adjust to use target hooks.
8334 (emutls_finish): Likewise.
8335 (default_emutls_var_init): New, broken out of ...
8336 (assemble_variable): ... here. Adjust to use target hooks.
8337 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
8339 * c-common.c (handle_section_attribute): Prevent overriding
8340 sections for emulated tls with special sections.
8341 * config/i386/i386.c (x86_64_elf_select_section): Add
8342 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
8343 (x86_64_elf_unique_section): Likewise.
8344 * config/vxworks.c: Include tree.h.
8345 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
8346 (vxworks_override_options): Set TLS scheme.
8347 * doc/tm.texi (Emulated TLS): New node.
8349 2008-04-26 Simon Baldwin <simonb@google.com>
8352 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
8353 with propagated string constants.
8355 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
8357 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
8358 constraint for operand 2 when operand 0 is memory operand.
8359 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
8360 operand 0 is memory operand.
8361 (fix_trunc<mode>_i387_with_temp): Ditto.
8362 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
8363 operand 2 when operand 1 is memory operand.
8364 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
8365 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
8366 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
8367 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
8368 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
8369 operands 2,3 and 4 when operand 1 is memory operand.
8370 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
8372 (fistdi2_floor_with_temp): Ditto.
8373 (fist<mode>2_floor_with_temp): Ditto.
8374 (fistdi2_ceil_with_temp): Ditto.
8375 (fist<mode>2_ceil_with_temp): Ditto.
8376 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
8378 2008-04-26 David Daney <ddaney@avtrex.com>
8380 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
8382 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
8383 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
8384 UNSPEC_UPDATE_GOT_VERSION): Renumber.
8385 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
8386 (compare_and_swap_12): New insn.
8387 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
8388 * config/mips/mips.c (mips_force_binary): New function.
8389 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
8390 (mips_expand_compare_and_swap_12): New function.
8391 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
8393 2008-04-25 Jan Hubicka <jh@suse.cz>
8396 * cfgexpand.c (pass_expand): Turn into RTL pass.
8397 * passes.c (execute_one_pass): Do pass typechecking after execution.
8398 * tree-pass.h (pass_expand): Turn into RTL pass.
8400 * function.h (struct rtl_data): Move here fields
8401 accesses_prior_frames, calls_eh_return, saves_all_registers,
8402 has_nonlocal_goto, has_asm_statement, is_thunk,
8403 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
8404 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
8405 arg_pointer_save_area_init from struct function; turn into bool.
8406 (struct function): Move
8407 calls_eh_return, saves_all_registers, has_nonlocal_goto,
8408 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
8409 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
8410 tail_call_emit, arg_pointer_save_area_init
8411 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
8412 (current_function_returns_struct, current_function_returns_pcc_struct,
8413 current_function_calls_setjmp, current_function_calls_alloca,
8414 current_function_accesses_prior_frames,
8415 current_function_calls_eh_return, current_function_is_thunk,
8416 current_function_stdarg, current_function_profile,
8417 current_function_limit_stack, current_function_uses_pic_offset_table,
8418 current_function_uses_const_pool, current_function_has_nonlocal_label,
8419 current_function_saves_all_registers,
8420 current_function_has_nonlocal_goto,
8421 current_function_has_asm_statement): Remove accesor macros.
8422 * ra-conflict.c (global_conflicts): Update.
8423 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
8424 (suitable_for_tail_call_opt_p): Update.
8425 * builtins.c (expand_builtin_return_addr): Update.
8426 (expand_builtin_setjmp_setup): Update.
8427 (expand_builtin_nonlocal_goto): Update.
8428 * final.c (final_start_function): Update.
8429 (profile_function): Update.
8430 (leaf_function_p): Update.
8431 (only_leaf_regs_used): Update.
8432 * df-scan.c (df_get_exit_block_use_set): Update.
8433 * dojump.c (clear_pending_stack_adjust): Update.
8434 * tree-stdarg.c (gate_optimize_stdarg): Update.
8435 * gimple-low.c (lower_function_body): Update.
8436 * global.c (compute_regsets): Update.
8437 (global_alloc): Update.
8438 * dwarf2out.c (dwarf2out_begin_prologue): Update.
8439 * expr.c (expand_assignment): Update.
8440 * dse.c (dse_step0): Update.
8441 (dse_step1): Update.
8442 * c-decl.c (store_parm_decls): Update.
8443 * local-alloc.c (combine_regs): Update.
8444 (find_free_reg): Update.
8445 * function.c (assign_parms_augmented_arg_list): Update.
8446 (assign_parm_find_data_types): Update.
8447 (assign_parms): Update.
8448 (allocate_struct_function): Update.
8449 (expand_function_start): Update.
8450 (expand_function_end): Update.
8451 (get_arg_pointer_save_area): Update.
8452 (thread_prologue_and_epilogue_insns): Update.
8453 (rest_of_match_asm_constraints): Update.
8454 * stor-layout.c (variable_size): Update.
8455 * gcse.c (gcse_main): Update.
8456 (bypass_jumps): Update.
8457 * gimplify.c (gimplify_function_tree): Update.
8458 * calls.c (emit_call_1): Update.
8459 (expand_call): Update.
8460 * bt-load.c (compute_defs_uses_and_gen): Update.
8461 * except.c (sjlj_assign_call_site_values): Update.
8462 (sjlj_emit_function_enter): Update.
8463 (can_throw_external): Update.
8464 (set_nothrow_function_flags): Update.
8465 (expand_builtin_unwind_init): Update.
8466 (expand_eh_return): Update.
8467 (convert_to_eh_region_ranges): Update.
8468 (output_function_exception_table): Update.
8469 * emit-rtl.c (gen_tmp_stack_mem): Update.
8470 * cfgexpand.c (expand_used_vars): Update.
8471 (tree_expand_cfg): Update.
8472 * cfgcleanup.c (rest_of_handle_jump): Update.
8473 * explow.c (allocate_dynamic_stack_space): Update.
8474 * varasm.c (assemble_start_function): Update.
8475 (force_const_mem): Update.
8476 (mark_constant_pool): Update.
8477 * tree-optimize.c (tree_rest_of_compilation): Update.
8478 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
8479 * tree-cfg.c (notice_special_calls): Update.
8480 (is_ctrl_altering_stmt): Update.
8481 (tree_can_make_abnormal_goto): Update.
8482 (tree_purge_dead_abnormal_call_edges): Update.
8483 * config/alpha/predicates.md: Update.
8484 * config/alpha/alpha.c (alpha_sa_mask): Update.
8485 (alpha_sa_size): Update.
8486 (alpha_does_function_need_gp): Update.
8487 (alpha_expand_prologue): Update.
8488 (alpha_start_function): Update.
8489 (alpha_output_function_end_prologue): Update.
8490 (alpha_expand_epilogue): Update.
8491 * config/frv/frv.c (frv_stack_info): Update.
8492 (frv_expand_epilogue): Update.
8493 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
8494 (s390_register_info): Update.
8495 (s390_frame_info): Update.
8496 (s390_init_frame_layout): Update.
8497 (s390_can_eliminate): Update.
8498 (save_gprs): Update.
8499 * config/spu/spu.c (spu_split_immediate): Update.
8500 (need_to_save_reg): Update.
8501 (spu_expand_prologue): Update.
8502 (spu_expand_epilogue): Update.
8503 * config/sparc/sparc.md: Update.
8504 * config/sparc/sparc.c (eligible_for_return_delay): Update.
8505 (sparc_tls_got): Update.
8506 (legitimize_pic_address): Update.
8507 (sparc_emit_call_insn): Update.
8508 (sparc_expand_prologue): Update.
8509 (output_return): Update.
8510 (print_operand): Update.
8511 (sparc_function_ok_for_sibcall): Update.
8512 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
8513 * config/m32r/m32r.md: Update.
8514 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
8515 (m32r_compute_frame_size): Update.
8516 (m32r_expand_prologue): Update.
8517 (m32r_expand_epilogue): Update.
8518 (m32r_legitimize_pic_address): Update.
8519 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
8520 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
8521 * config/i386/i386.c (ix86_frame_pointer_required): Update.
8523 (ix86_save_reg): Update.
8524 (ix86_compute_frame_layout): Update.
8525 (ix86_expand_prologue): Update.
8526 (ix86_expand_epilogue): Update.
8527 * config/sh/sh.c (output_stack_adjust): Update.
8528 (calc_live_regs): Update.
8529 (sh5_schedule_saves): Update.
8530 (sh_expand_prologue): Update.
8531 (sh_expand_epilogue): Update.
8532 (sh_setup_incoming_varargs): Update.
8533 (sh_allocate_initial_value): Update.
8534 (sh_get_pr_initial_val): Update.
8535 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
8536 * config/sh/sh.md (label:): Update.
8537 * config/avr/avr.c (out_movhi_mr_r): Update.
8538 * config/crx/crx.h (enum): Update.
8539 * config/xtensa/xtensa.h (along): Update.
8540 * config/stormy16/stormy16.c Update.
8541 (xstormy16_compute_stack_layout): Update.
8542 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
8543 (fr30_expand_prologue): Update.
8544 * config/cris/cris.c (cris_conditional_register_usage): Update.
8545 (cris_reg_saved_in_regsave_area): Update.
8546 (cris_initial_frame_pointer_offset): Update.
8547 (cris_simple_epilogue): Update.
8548 (cris_expand_prologue): Update.
8549 (cris_expand_epilogue): Update.
8550 (cris_expand_pic_call_address): Update.
8551 (cris_asm_output_symbol_ref): Update.
8552 (cris_asm_output_label_ref): Update.
8553 * config/cris/cris.md Update.
8554 * config/iq2000/iq2000.c (compute_frame_size): Update.
8555 (iq2000_expand_epilogue): Update.
8556 * config/mt/mt.h (save_direction): Update.
8557 * config/mn10300/mn10300.c (mn10300_function_value): Update.
8558 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
8559 (ia64_secondary_reload_class): Update.
8560 * config/m68k/m68k.c (m68k_save_reg): Update.
8561 (m68k_expand_prologue): Update.
8562 (m68k_expand_epilogue): Update.
8563 (legitimize_pic_address): Update.
8564 * config/rs6000/rs6000.c (rs6000_got_register): Update.
8565 (first_reg_to_save): Update.
8566 (first_altivec_reg_to_save): Update.
8567 (compute_vrsave_mask): Update.
8568 (compute_save_world_info): Update.
8569 (rs6000_stack_info): Update.
8570 (spe_func_has_64bit_regs_p): Update.
8571 (rs6000_ra_ever_killed): Update.
8572 (rs6000_emit_eh_reg_restore): Update.
8573 (rs6000_emit_allocate_stack): Update.
8574 (rs6000_emit_prologue): Update.
8575 (rs6000_emit_epilogue): Update.
8576 (rs6000_output_function_epilogue): Update.
8577 (output_profile_hook): Update.
8578 (rs6000_elf_declare_function_name): Update.
8579 * config/rs6000/rs6000.h (rs6000_args): Update.
8580 * config/rs6000/rs6000.md: Update.
8581 * config/mcore/mcore.c (mcore_expand_prolog): Update.
8582 * config/arc/arc.c (arc_output_function_epilogue): Update.
8583 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
8584 * config/darwin.c (machopic_function_base_name): Update.
8585 * config/score/score3.c (score3_compute_frame_size): Update.
8588 (score3_epilogue): Update.
8589 * config/score/score7.c (score7_compute_frame_size): Update.
8590 (score7_prologue): Update.
8591 (score7_epilogue): Update.
8592 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
8593 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
8594 * config/arm/arm.c (use_return_insn): Update.
8595 (require_pic_register): Update.
8596 (arm_load_pic_register): Update.
8597 (arm_compute_save_reg0_reg12_mask): Update.
8598 (arm_compute_save_reg_mask): Update.
8599 (thumb1_compute_save_reg_mask): Update.
8600 (output_return_instruction): Update.
8601 (arm_output_function_prologue): Update.
8602 (arm_output_epilogue): Update.
8603 (arm_get_frame_offsets): Update.
8604 (arm_expand_prologue): Update.
8605 (thumb_pushpop): Update.
8606 (thumb_exit): Update.
8607 (thumb1_expand_prologue): Update.
8608 (thumb1_expand_epilogue): Update.
8609 (arm_unwind_emit): Update.
8610 (arm_output_fn_unwind): Update.
8611 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
8612 * config/arm/arm.md: Update.
8613 * config/pa/pa.md: Update.
8614 * config/pa/pa.c (legitimize_pic_address): Update.
8615 (compute_frame_size): Update.
8616 (hppa_expand_prologue): Update.
8617 (hppa_expand_epilogue): Update.
8618 (borx_reg_operand): Update.
8619 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
8620 (HARD_REGNO_RENAME_OK): Update.
8621 * config/mips/mips.c (mips_global_pointer): Update.
8622 (mips_save_reg_p): Update.
8623 (mips_compute_frame_info): Update.
8624 (mips_frame_pointer_required): Update.
8625 (mips_expand_prologue): Update.
8626 (mips_expand_epilogue): Update.
8627 (mips_can_use_return_insn): Update.
8628 (mips_reorg_process_insns): Update.
8629 * config/v850/v850.c (compute_register_save_size): Update.
8630 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
8631 * config/mmix/mmix.c (along): Update.
8632 (mmix_expand_epilogue): Update.
8633 * config/bfin/bfin.c (legitimize_pic_address): Update.
8634 (must_save_p): Update.
8635 (stack_frame_needed_p): Update.
8636 (add_to_reg): Update.
8637 (bfin_expand_prologue): Update.
8638 * stmt.c (expand_asm_operands): Update.
8639 * reload1.c (reload): Update.
8640 (init_elim_table): Update.
8642 2008-04-25 Bob Wilson <bob.wilson@acm.org>
8644 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
8646 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
8648 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
8649 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
8650 (mov<mode>): Removed.
8651 (*movv4sf_internal): Likewise.
8652 (*movv2df_internal): Likewise.
8654 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
8656 * config.gcc (crx-*-elf): Remove deprecation.
8658 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
8660 * config/i386/cygming-crtend.c (register_frame_ctor): Register
8661 __gcc_deregister_frame with atexit.
8662 (deregister_frame_dtor): Remove.
8664 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
8665 Nathan Sidwell <nathan@codesourcery.com>
8667 * config/rs6000/rs6000.opt (mspe): Remove Var property.
8669 * config/rs6000/rs6000.h (rs6000_spe): Declare.
8670 (rs6000_isel): Likewise.
8671 * config/rs6000/rs6000.c (rs6000_spe): New variable.
8672 (rs6000_isel): New variable.
8673 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
8675 2008-04-24 Jakub Jelinek <jakub@redhat.com>
8678 * c-common.c (handle_vector_size_attribute): Call
8679 lang_hooks.types.reconstruct_complex_type instead of
8680 reconstruct_complex_type.
8681 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
8682 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
8683 * langhooks.h (struct lang_hooks_for_types): Add
8684 reconstruct_complex_type hook.
8685 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
8686 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
8688 2008-04-24 Richard Guenther <rguenther@suse.de>
8690 * c-common.h (check_builtin_function_arguments): Declare.
8691 * c-common.c (validate_nargs): New function.
8692 (check_builtin_function_arguments): Likewise.
8693 * c-typeck.c (build_function_call): Call
8694 check_builtin_function_arguments.
8695 * builtins.c (fold_builtin_classify): Remove error reporting code.
8696 (fold_builtin_unordered_cmp): Likewise.
8697 (fold_builtin_1): Likewise.
8698 (fold_builtin_n): Likewise.
8700 2008-04-24 Jakub Jelinek <jakub@redhat.com>
8702 PR tree-optimization/36008
8703 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
8704 the original op1, rather than delta by step.
8706 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
8707 Sebastian Pop <sebastian.pop@amd.com>
8709 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
8710 eliminate_local_variables_stmt, eliminate_local_variables,
8711 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
8712 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
8713 of code delimited by two edges in the CFG.
8714 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
8715 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
8716 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
8717 the case of parallelisation of reductions.
8718 (expr_invariant_in_region_p): New.
8720 * tree-flow.h (gather_blocks_in_sese_region): Declared.
8721 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
8723 2008-04-24 Ira Rosen <irar@il.ibm.com>
8724 Richard Guenther <rguenther@suse.de>
8726 PR tree-optimization/36034
8727 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
8728 incapable of dealing with loads with gaps.
8730 2008-04-24 Rafael Espindola <espindola@google.com>
8732 * tree-flow.h (vrp_evaluate_conditional): Change signature.
8733 * tree-ssa-propagate.c (fold_predicate_in): Update call to
8734 vrp_evaluate_conditional.
8735 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
8736 (vrp_evaluate_conditional): Split the cond argument.
8737 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
8738 (simplify_stmt_for_jump_threading): Update call to
8739 vrp_evaluate_conditional.
8741 2008-04-24 Ira Rosen <irar@il.ibm.com>
8743 PR tree-optimization/35982
8744 * tree-vect-analyze.c (vect_check_interleaving): Check that the
8745 interleaved data-refs are of the same type.
8747 2008-04-24 Danny Smith <dannysmith@users.net>
8749 * c-format.c (check_format_info_main): Use strncmp rather than a
8750 magic prefix to handle multichar length specs.
8751 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
8752 Don't prefix "I64" and "I32" with '\0'.
8754 2008-04-24 Jakub Jelinek <jakub@redhat.com>
8757 * config/i386/i386.c (init_cumulative_args): Don't pass anything
8758 in registers for -m32 only if stdarg_p (fntype).
8760 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
8762 PR rtl-optimization/36006
8763 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
8764 temp to op0 in order to avoid invalid rtx sharing.
8766 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
8768 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
8769 check TREE_INVARIANT.
8770 * tree-gimple.c (is_gimple_address): New.
8771 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
8772 * tree-gimple.h (is_gimple_address): New.
8773 * tree.h (decl_address_invariant_p): New.
8774 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
8775 (build_string): Likewise.
8776 (decl_address_invariant_p): New, from is_gimple_invariant_address.
8777 (tree_invariant_p_1): Likewise.
8778 (save_expr): Use it.
8779 (tree_invariant_p): New.
8780 (skip_simple_arithmetic): Use it.
8781 (stabilize_reference_1): Use it.
8782 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
8784 (build1_stat): Drop code to compute TREE_INVARIANT.
8785 (build2_stat): Drop code to compute TREE_INVARIANT.
8786 (build3_stat): Drop code to compute TREE_INVARIANT.
8787 (build4_stat): Drop code to compute TREE_INVARIANT.
8788 (build5_stat): Drop code to compute TREE_INVARIANT.
8789 (build7_stat): Drop code to compute TREE_INVARIANT.
8790 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
8791 * tree.h (struct tree_base): Remove invariant_flag.
8792 (TREE_INVARIANT): Remove.
8793 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
8794 (fold_builtin_expect): Check TREE_CONSTANT.
8795 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
8796 * c-tree.h (c_expr_to_decl): Drop third parameter.
8797 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
8798 (build_c_cast): Don't set TREE_INVARIANT.
8799 (pop_init_level): Don't set TREE_INVARIANT.
8800 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
8801 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
8803 (gimplify_init_constructor): Don't set TREE_INVARIANT.
8804 (gimplify_addr_expr): Adjust comment.
8805 * tree-mudflap.c (mf_build_string):
8806 * print-tree.c (print_node): Don't print TREE_INVARIANT.
8807 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
8808 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
8809 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
8810 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
8811 * langhooks.h (struct lang_hooks): Drop third parameter from
8814 2008-04-23 Richard Guenther <rguenther@suse.de>
8816 PR tree-optimization/27799
8817 PR tree-optimization/32921
8818 PR tree-optimization/32624
8819 * tree-ssa-structalias.c (merge_smts_into): Only merge the
8820 SMTs aliases and the tag itself into the solution.
8821 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
8822 merge the points-to solution back into the SMT aliases.
8823 (may_alias_p): Use alias_set_subset_of instead of
8824 aliases_conflict_p. A pointer which points to
8825 memory with alias set zero may access any variable.
8827 2008-04-23 Richard Guenther <rguenther@suse.de>
8829 * alias.c (alias_set_subset_of): Correctly handle asking
8830 if zero is a subset of an alias set with zero child.
8831 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
8832 (compute_flow_insensitive_aliasing): Correctly walk all
8833 pointers. Do not unnecessarily union sets.
8835 2008-04-23 Richard Guenther <rguenther@suse.de>
8838 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
8840 2008-04-22 Tomas Bily <tbily@suse.cz>
8842 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
8844 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
8846 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
8847 * tree-ssa-structalias.c (get_constraint_for): Likewise.
8848 * tree-inline.c (estimate_num_insns_1): Likewise.
8849 * varasm.c (const_hash_1, compare_constant, copy_constant)
8850 (compute_reloc_for_constant, output_addressed_constants): Likewise.
8851 * emit-rtl.c (component_ref_for_mem_expr)
8852 (set_mem_attributes_minus_bitpos): Likewise.
8853 * expr.c (highest_pow2_factor, expand_expr_real_1, )
8854 (is_aligning_offset): Likewise.
8855 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
8856 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
8857 * dojump.c (do_jump): Likewise.
8858 * builtins.c (get_pointer_alignment, get_memory_rtx)
8859 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
8860 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
8862 2008-04-23 Jakub Jelinek <jakub@redhat.com>
8864 PR rtl-optimization/36017
8865 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
8866 expanding the library call.
8868 2008-04-22 Ian Lance Taylor <iant@google.com>
8870 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
8873 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
8875 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
8876 of LR/CTR moves for Power6.
8878 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
8881 * passes.c (init_optimization_passes): Remove
8882 pass_fast_rtl_byte_dce.
8884 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
8887 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
8888 builtin functions to generate faster code.
8889 (_mm_cvtpu16_ps): Ditto.
8890 (_mm_cvtpi32x2_ps): Ditto.
8892 2008-04-22 Nick Clifton <nickc@redhat.com>
8894 * common.opt (ftree-loop-distribution): Add Optimization
8897 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
8898 (frv_expand_builtin_va_start): Likewise.
8900 * config/arm/arm.c (thumb_find_work_register): Fix location of
8901 argument register count.
8903 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
8905 Support scheduling for ColdFire V1 and V3 microarchitecture.
8906 Improve scheduling of multiplication instructions.
8908 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
8909 (mac): New instruction attribute.
8910 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
8911 (m68k_sched_mac): New variable.
8912 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
8913 Handle cfv1 and cfv3.
8914 (max_insn_size): New static variable.
8915 (struct _sched_ib): New type.
8916 (sched_ib): New static variable.
8917 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
8918 to fields of 'struct _sched_ib sched_ib'. Update all uses.
8919 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
8921 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
8922 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
8923 new variables. Update.
8924 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
8925 Add modeling of cfv3 instruction buffer. Update.
8926 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
8927 * config/m68k/m68k.h (TUNE_CFV3): New macro.
8928 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
8929 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
8930 a particular reservation applies to.
8931 (type2): Reorganize attribute values. Rename alu to alu_reg,
8932 alu_l to alu, move_l to omove. Join move to alu. Split mul
8934 (cf_ib_*): Simplify description of instruction buffer.
8935 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
8936 (cf_mem): Split into cf_mem1 and cf_mem2.
8937 (cf_v2_move_??): Rename to cfv12_alu_??.
8938 (cf_v2_move_l_??): Rename to cfv12_omove_??.
8939 (cf_v2_mul_??): Remove reservations.
8940 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
8941 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
8942 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
8944 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
8945 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
8946 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
8947 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
8948 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
8949 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
8950 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
8951 expansions of the above reservations for instructions of sizes
8954 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
8956 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
8958 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
8960 * coverage.c: Include tree-pass.h.
8961 (coverage_counter_alloc): Print da_file_name to the dump file.
8963 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
8965 * sbitmap.c (sbitmap_range_empty_p): New function.
8966 * sbitmap.h (sbitmap_range_empty_p): New function.
8967 * bitmap.h: Now includes obstack.h.
8969 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
8970 Kenneth Zadeck <zadeck@naturalbridge.com>
8972 * dbgcnt.def (ra_byte_scan): Added.
8973 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
8974 when the last hit happens for a counter.
8975 * timevar.def (TV_DF_BYTE_LR): New variable.
8976 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
8977 * passes.c (pass_fast_rtl_byte_dce): New pass.
8978 * fwprop.c (update_df): Added mode to call df_ref_create.
8979 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
8980 DF_REF_EXTRACT_OFFSET.
8981 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
8982 DF_BYTE_LR_OUT, df_byte_lr): New macro.
8984 (df_ref_extract): Added mode field.
8985 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
8986 DF_REF_EXTRACT_OFFSET.
8987 (DF_REF_EXTRACT_MODE): New macro.
8988 (df_byte_lr_bb_info): New structure.
8989 (df_print_byte_regset, df_compute_accessed_bytes,
8990 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
8991 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
8992 df_byte_lr_simulate_uses,
8993 df_byte_lr_simulate_artificial_refs_at_top,
8994 df_byte_lr_simulate_artificial_refs_at_end,
8995 df_compute_accessed_bytes): New function.
8996 (df_ref_create): Add parameter.
8997 (df_byte_lr_get_bb_info): New inline function.
8998 * df-scan.c (df_ref_record, df_uses_record,
8999 df_ref_create_structure): Added mode parameter.
9000 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
9001 df_defs_record, df_uses_record, df_get_conditional_uses,
9002 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
9003 df_entry_block_defs_collect, df_exit_block_uses_collect):
9004 Added mode parameter to calls to df_ref_record, df_uses_record,
9005 df_ref_create_structure.
9006 (df_ref_equal_p, df_ref_compare): Added test for modes.
9007 (df_ref_create_structure): Added code to set mode. Renamed
9008 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9009 DF_REF_EXTRACT_OFFSET.
9010 * df-core.c (df_print_byte_regset): New function.
9011 * df-byte-scan.c: New file.
9012 * df-problems.c (df_rd_transfer_function): Removed unnecessary
9013 calls to BITMAP_FREE.
9014 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
9015 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
9016 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
9017 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
9018 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
9019 df_byte_lr_local_compute, df_byte_lr_init,
9020 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
9021 df_byte_lr_transfer_function, df_byte_lr_free,
9022 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
9023 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
9024 df_byte_lr_simulate_uses,
9025 df_byte_lr_simulate_artificial_refs_at_top,
9026 df_byte_lr_simulate_artificial_refs_at_end): New function.
9027 * dce.c (byte_dce_process_block): New function.
9028 (dce_process_block): au is now passed in rather than computed
9029 locally. Changed loops that look at artificial defs to not look
9030 for conditional or partial ones, because there never are any.
9031 (fast_dce): Now is able to drive byte_dce_process_block or
9032 dce_process_block depending on the kind of dce being done.
9033 (rest_of_handle_fast_dce): Add parameter to fast_dce.
9034 (rest_of_handle_fast_byte_dce): New function.
9035 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
9036 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
9038 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
9041 * gcc.h: Added fortran options that take arguments to
9042 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
9045 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
9047 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
9048 scalarization if on the LHS and not a full access.
9050 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9052 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
9054 2008-04-18 Rafael Espindola <espindola@google.com>
9056 * tree-vrp.c (find_case_label_index): Fix the binary search.
9057 (find_case_label_range): New.
9058 (vrp_visit_switch_stmt): Use find_case_label_range.
9059 (simplify_switch_using_ranges): Use find_case_label_range.
9061 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
9063 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
9064 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
9066 2008-04-18 Tom Tromey <tromey@redhat.com>
9069 * doc/cpp.texi (Implementation-defined behavior): Mention
9072 2008-04-18 Ian Lance Taylor <iant@google.com>
9074 * fold-const.c (pointer_may_wrap_p): New static function.
9075 (fold_comparison): Add another test for pointer overflow. Use
9076 pointer_may_wrap_p to disable some false positives.
9078 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
9080 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
9081 (fname_as_string): Match updated cpp_interpret_string prototype.
9082 (fix_string_type): Support char16_t* and char32_t*.
9083 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
9084 derivative) nodes. Register as builtin if C++0x.
9085 (c_parse_error): Support CPP_CHAR{16,32}.
9086 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
9087 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
9088 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
9089 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
9090 CTI_CHAR32_ARRAY_TYPE>: New elements.
9091 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
9092 char32_type_node, signed_char32_type_node, char16_array_type_node,
9093 char32_array_type_node): New defines.
9094 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
9095 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
9096 (lex_string): Support CPP_STRING{16,32}, match updated
9097 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
9098 (lex_charconst): Support CPP_CHAR{16,32}.
9099 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
9100 and CPP_STRING{16,32}.
9102 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
9105 * aclocal.m4: Regenerate.
9106 * configure: Regenerate.
9108 2008-04-18 Jan Hubicka <jh@suse.cz>
9110 * except.c (dw2_size_of_call_site_table,
9111 sjlj_size_of_call_site_table): Use vector API for call_site_record.
9113 * cgraphbuild.c (build_cgraph_edges): Update.
9114 * tree-pass.h: Update comment.
9115 * final.c (leaf_function_p): Update.
9116 (leaf_renumber_regs): Update.
9117 (rest_of_clean_state): Update.
9118 * omp-low.c (expand_omp_parallel): Update.
9119 * ipa-reference.c (analyze_function): Update.
9120 * reorg.c (find_end_label): Update.
9121 (optimize_skip): Update.
9122 (fill_simple_delay_slots): Update.
9123 (fill_simple_delay_slots): Update.
9124 (make_return_insns): Update.
9125 (dbr_schedule): Update.
9126 * gimple-low.c (record_vars_into): Update.
9127 * cfgbuild.c (make_edges): Update.
9128 * function.c (assign_stack_local): Update.
9129 (assign_parm_adjust_stack_rtl): Update.
9130 (locate_and_pad_parm): Update.
9131 (allocate_struct_function): Do not initialize stack_alignment_needed
9132 and preferred_stack_boundary here.
9133 (stack_protect_prologue): Update.
9134 (stack_protect_epilogue): Update.
9135 (expand_function_start): Initialize stack_alignment_needed,
9136 preferred_stack_boundary and max_jumptable_ents.
9137 (expand_function_end): Update.
9138 (free_after_compilation): Do not NULLify epilogue_delay_list.
9139 * function.h (struct rtl_data): Add stack_protect_guard,
9140 stack_alignment_needed,
9141 preferred_stack_boundary, epilogue_delay_list.
9142 (struct function): Remove value_histograms, stack_alignment_needed,
9143 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
9145 unexpanded_var_list, stack_protect_guard.
9146 (current_function_epilogue_delay_list): Remove.
9147 * ipa-type-escape.c (analyze_function): Update.
9148 * gimplify.c (pop_gimplify_context): Update comment.
9149 * calls.c (expand_call): Update.
9150 (emit_library_call_value_1): Update.
9151 * except.c (set_nothrow_function_flags): Update.
9152 * cfgexpand.c (get_decl_align_unit): Update.
9153 (create_stack_guard): Update.
9154 (estimated_stack_frame_size): Update.
9155 (expand_used_vars): Update.
9156 (tree_expand_cfg): Free histogram earliers, init expansion variables.
9157 * explow.c (allocate_dynamic_stack_space): Update.
9158 * tree-ssa-live.c (remove_unused_locals): Update.
9159 * varasm.c (mark_constant_pool): Update.
9160 * tree-inline.c (remap_decls): Update.
9161 (initialize_cfun): Update.
9162 (declare_return_variable): Update.
9163 (inline_forbidden_p): Update.
9164 (expand_call_inline): Update.
9165 (declare_inline_vars): Update.
9166 (tree_function_versioning): Update.
9167 * tree-flow.h (value_histograms): New.
9168 (VALUE_HISTOGRAMS): New macro.
9169 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
9171 * tree-cfg.c (set_bb_for_stmt): Update.
9172 (replace_by_duplicate_decl): Update.
9173 (move_block_to_fn): Update.
9174 (new_label_mapper): Update.
9175 (dump_function_to_file): Update.
9176 * ipa-struct-reorg.c (build_data_structure): Update.
9177 * cfgrtl.c (print_rtl_with_bb): Update.
9178 * reload1.c (reload): Update.
9180 * config/i386/i386.c (setup_incoming_varargs_64,
9181 ix86_compute_frame_layout): Update.
9182 * config/arc/arc.c (arc_output_function_epilogue): Update.
9184 2008-04-18 Marius Strobl <marius@FreeBSD.org>
9186 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
9187 for FreeBSD as well.
9188 * gthr-posix95.h: Likewise.
9190 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
9192 PR rtl-optimization/35838
9193 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
9194 out the byte offset of the first subreg.
9196 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
9198 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
9199 to split_ti instead of three separate calls with single member arrays.
9200 (subti3 splitter): Ditto.
9201 (adddi3 splitter): Ditto with split_di.
9202 (subdi3 splitter): Ditto.
9203 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
9204 two separate calls with single member arrays. Swap match_dup
9205 operands 1 and 2 to better fit into the array.
9206 (negdi2 splitter): Ditto with split_di.
9207 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
9208 two separate calls with single member arrays. Swap match_dup operands
9209 6 and 7 to better fit into the array.
9211 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
9213 * config/i386/i386.c (sse_builtin_type): New.
9214 (bdesc_sse_args): Likewise.
9215 (bdesc_sse_3arg): Removed.
9216 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
9217 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
9218 IX86_BUILTIN_ROUNDPS.
9219 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
9220 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
9221 IX86_BUILTIN_ROUNDPS.
9222 (ix86_expand_sse_4_operands_builtin): Removed.
9223 (ix86_expand_sse_operands_builtin): New.
9224 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
9225 and CODE_FOR_sse4_1_roundps.
9226 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
9227 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
9229 2008-04-17 Alan Modra <amodra@bigpond.net.au>
9232 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
9233 regs before frame pop when needed. If use_backchain_to_restore_sp
9234 then load backchain into a temp reg to restore vr and vrsave. Add
9235 code to restore vr after frame pop if possible.
9237 2008-04-17 Richard Guenther <rguenther@suse.de>
9239 * tree-vn.c (expressions_equal_p): Do not check type
9240 equality or compatibility before calling operand_equal_p.
9241 * fold-const.c (operand_equal_p): Check equivalence of
9242 integer constants before bailing out due to signedness or
9243 precision differences.
9244 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
9245 spurious differences in type qualification. Ignore types
9246 for COMPONENT_REFs at all.
9248 2008-04-17 Christian Bruel <christian.bruel@st.com>
9250 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
9251 msw_skip comparison.
9253 2008-04-16 Jakub Jelinek <jakub@redhat.com>
9256 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
9259 PR tree-optimization/35899
9260 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
9261 rather than TREE_OPERAND.
9263 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
9266 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
9267 temporary registers. Change operand predicate to general_operand.
9268 (remainderxf3): Ditto.
9270 2008-04-16 Richard Guenther <rguenther@suse.de>
9272 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
9273 * tree-affine.c (aff_combination_expand): Look through some
9276 2008-04-15 Doug Kwan <dougkwan@google.com>
9278 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
9280 * tree-pretty-print.c (dump_generic_node): Ditto.
9281 * final.c (output_addr_const): Ditto.
9282 * dwarf2out.c (output_cfi): Ditto.
9283 * c-pretty-print.c (pp_c_integer_constant): Ditto.
9284 * print-rtl.c (print_rtx): Ditto.
9285 * print-tree.c (print_node_brief, print_node): Ditto.
9286 * c-common.c (match_case_to_enum_1): Ditto.
9287 * sched-vis.c (print_value): Ditto.
9288 * config/i386/i386.c (print_operand): Cast to long unsigned int
9291 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
9292 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
9293 MS Windows VirtualProtect function.
9295 2008-04-15 Jan Hubicka <jh@suse.cz>
9297 * gengtype.c (write_root): Param_is argument is OK.
9298 * expr.c (expand_expr_real_1): Update call of get_exception_*.
9299 * function.h: Include varray.h
9300 (rtl_eh): New stucture based on except.c one.
9301 (call_site_record): New forward declaration and vector type.
9302 * calls.c (emit_call_1): Do not call
9303 note_current_region_may_contain_throw.
9304 * except.c (eh_status): Remove cur_region, try_region since they are
9306 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
9307 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
9308 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
9309 Remove call_site_data_used, call_site_data_size.
9310 Turn call_site_record into vector in function.h.
9311 (note_current_region_may_contain_throw): Remove.
9312 (get_exception_pointer, get_exception_filter): Do not take struct
9313 function argument; update.
9314 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
9315 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
9316 build_post_landing_pads, dw2_build_landing_pads,
9317 sjlj_assign_call_site_values, sjlj_mark_call_sites,
9318 sjlj_emit_function_enter, sjlj_emit_function_enter,
9319 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
9320 sjlj_build_landing_pads, finish_eh_generation,
9321 remove_exception_handler_label, remove_eh_handler,
9322 maybe_remove_eh_handler, add_reachable_handler,
9323 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
9324 add_action_record, collect_one_action_chain, add_call_site,
9325 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
9326 sjlj_output_call_site_table, output_function_exception_table,
9327 * except.h (note_current_region_may_contain_throw): Remove
9328 (get_exception_pointer, get_exception_filter): Do not take struct
9330 * Makefile.in (GTFILES): Put varargs before struct function.
9332 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
9334 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
9335 punt for STRING_CST.
9336 (get_constraint_for): Deal with STRING_CST here instead.
9338 2008-04-15 Richard Guenther <rguenther@suse.de>
9340 * tree-ssa-propagate.c (substitute_and_fold): Substitute
9341 statements in a basic-block with a backward walk. Do not
9342 substitute into dead statements but instead remove those.
9344 2008-04-15 Richard Guenther <rguenther@suse.de>
9346 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
9347 to zero, thus disable creation of SFTs.
9349 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
9351 * tree-predcom.c (suitable_reference_p): Return false if the
9352 reference can throw.
9354 2008-04-15 Jakub Jelinek <jakub@redhat.com>
9357 * c-decl.c (finish_decl): If extern or static var has variable
9358 size, set TREE_TYPE (decl) to error_mark_node.
9360 2008-04-15 Rafael Espindola <espindola@google.com>
9362 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
9365 2008-04-15 Richard Guenther <rguenther@suse.de>
9367 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
9368 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
9369 (visit_reference_op_load): Do walk vuse-vdef chains on
9370 vn_reference_lookup.
9371 (visit_reference_op_store): But do not here.
9372 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
9373 vn_reference_lookup.
9374 (vn_lookup_with_vuses): But do so here.
9376 2008-04-14 Ian Lance Taylor <iant@google.com>
9378 * fold-const.c (fold_overflow_warning): Remove assertion.
9380 2008-04-15 Ben Elliston <bje@au.ibm.com>
9382 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
9383 temp1 local variables.
9385 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
9388 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
9389 ".text.unlikely" section as executable.
9391 2008-04-14 James E. Wilson <wilson@tuliptree.org>
9393 * config/ia64/ia64.c (rtx_needs_barrier): Handle
9394 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
9395 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
9396 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
9397 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
9398 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
9399 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
9401 2008-04-14 Ian Lance Taylor <iant@google.com>
9403 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
9404 * fold-const.c (fold_comparison): If appropriate, test
9405 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
9406 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
9407 reassociating a pointer type.
9408 * doc/invoke.texi (Optimize Options): Document that
9409 -fstrict-overflow applies to pointer wraparound.
9411 2008-04-13 Jan Hubicka <jh@suse.cz>
9413 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
9415 2008-04-12 Andrew Pinski <pinskia@gmail.com>
9417 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
9418 we are going to "save the world".
9420 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
9422 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
9423 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
9424 operand 0 constraint, not "=".
9426 2008-04-11 James E. Wilson <wilson@tuliptree.org>
9428 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
9430 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
9432 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
9433 of size of positions_needed * CHAR_BIT.
9435 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
9438 * dse.c (store_info): Change positions_needed to unsigned
9440 (lowpart_bitmask): New.
9441 (record_store): Cast to unsigned HOST_WIDE_INT for
9442 positions_needed. Assert width <= size of positions_needed *
9443 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
9444 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
9445 lowpart_bitmask to set mask.
9447 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
9449 * config/bfin/constraints.md: New file.
9450 * config/bfin/bfin.md: Include it.
9451 (adddi3): Use satisfies_constraint functions instead of the old macros.
9452 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
9453 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
9454 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
9455 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
9456 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
9457 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
9458 EXTRA_CONSTRAINT): Delete.
9459 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
9460 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
9462 * config/bfin/bfin.c: Include "tm-constrs.h".
9463 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
9464 Use satisfies_constraint functions instead of the old macros.
9465 * doc/md.texi (Blackfin Constraints): Update file name reference.
9467 2008-04-11 Richard Guenther <rguenther@suse.de>
9469 PR tree-optimization/35869
9470 * tree-vrp.c (execute_vrp): Move switch statement update after
9471 jump threading. Schedule another cfg cleanup run.
9473 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
9476 * attribs.c (decl_attributes): Return early on errorneous node.
9478 2008-04-10 Oleg Ryjkov <olegr@google.com>
9480 * tree.h (struct tree_base): Added a new flag default_def_flag.
9481 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
9483 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
9485 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
9487 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9490 * pa.md: Define mode iterator P. Define mode attribute dwc.
9491 (dcacheflush): Update pattern to use iterator P and attribute dwc.
9492 (icacheflush): Likewise.
9493 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
9494 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
9496 2008-04-11 Ben Elliston <bje@au.ibm.com>
9498 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
9500 2008-04-10 Rafael Espindola <espindola@google.com>
9502 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
9503 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
9504 (extract_range_from_expr): The same.
9506 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
9508 * config/mips/mips.md (GPR2): New mode iterator.
9510 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
9511 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
9512 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
9513 Rewrite these to take two modes, the mode of comparison and the
9514 mode of the destination.
9515 * config/mips/mips.c (mips_expand_scc): Instead of having
9516 paradoxical subreg as destination, expand "narrowing" scc if mode
9517 of comparison is SI and target is requested in DI mode.
9518 (mips_emit_int_order_test): Update comment. Make mode of
9519 comparison match CMP0 rather than TARGET. When creating inverse
9520 target use mode of TARGET.
9522 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
9524 * gcov-dump.c (tag_summary): Only print summaries for the first
9525 GCOV_COUNTERS_SUMMABLE counters.
9527 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
9529 * config/i386/i386.md (absneg): New code iterator.
9530 (absnegprefix): New code attribute.
9531 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
9532 patterns using absneg code iterator.
9533 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
9534 using absneg code iterator.
9535 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
9536 *neg<mode>2 patterns using absneg code iterator.
9537 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
9538 *negextendsfdf2 patterns using absneg code iterator.
9539 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
9540 *negextendsfxf2 patterns using absneg code iterator.
9541 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
9542 *negextendsfdf2 patterns using absneg code iterator.
9543 * config/i386/sse.md (<code><mode>2): Macroize expander from
9544 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
9546 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
9548 * config/s390/s390.h: Remove the remains of the recent search
9549 & replace action of current_function_outgoing_args_size.
9551 2008-04-10 Ira Rosen <irar@il.ibm.com>
9553 PR tree-optimization/35821
9554 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
9555 NEW_STMT_LIST is not NULL.
9557 2008-04-09 David Edelsohn <edelsohn@gnu.org>
9560 * toplev.c (process_options): Remove -ffunction-sections debugging
9563 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
9565 PR middle-end/PR28690
9566 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
9567 than gen_rtx_fmt_ee to perform more canonicalizations.
9569 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9572 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
9574 2008-04-09 Richard Guenther <rguenther@suse.de>
9576 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
9577 (dump_function_to_file): Dump function arguments with types.
9579 2008-04-08 Richard Guenther <rguenther@suse.de>
9581 * fold-const.c (fold_widened_comparison): Do not allow
9582 sign-changes that change the result.
9584 2008-04-08 Janis Johnson <janis187@us.ibm.com>
9587 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
9588 kinds of indirect references.
9590 2008-04-08 David Edelsohn <edelsohn@gnu.org>
9592 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
9593 GNU Fortran language string.
9595 2008-04-08 Rafael Espindola <espindola@google.com>
9597 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
9598 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
9599 * tree.h (tree_call_nonnegative_warnv_p): New.
9601 2008-04-08 Jan Hubicka <jh@suse.cz>
9603 * function.c (free_after_compilation): Clear out regno_reg_rtx
9606 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
9609 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
9611 PR middle-end/PR28690
9612 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
9613 same precedence as REG_POINTER and MEM_POINTER operands.
9615 2008-04-08 Richard Guenther <rguenther@suse.de>
9618 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
9619 for adding index to base.
9621 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
9623 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
9624 (MINGW_ENABLE_EXECUTE_STACK): New.
9625 (IN_LIBGCC2): For libgcc include windows.h file for
9626 function declarations.
9628 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
9630 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
9631 and tem2 if tem1 is not a REG or MULT.
9633 2008-04-08 Jan Hubicka <jh@suse.cz>
9635 * function.h (incomming_args): Break out of struct function.
9636 (function_subsections): Break out of struct function.
9637 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
9638 return_rtx and hard_reg_initial_vals from struct function.
9639 Kill inl_max_label_num.
9640 (current_function_pops_args, current_function_args_info,
9641 current_function_args_size, current_function_args_size,
9642 current_function_pretend_args_size,
9643 current_function_outgoing_args_size,
9644 current_function_internal_arg_pointer, current_function_return_rtx):
9645 Kill compatibility accestor macros.
9646 * builtins.c (expand_builtin_apply_args_1): Update.
9647 (expand_builtin_next_arg): Update.
9648 * df-scan.c (df_get_call_refs): Update.
9649 * dbxout.c (dbxout_function_end): Update.
9650 * dwarf2out.c (dwarf2out_switch_text_section): Update.
9651 (output_line_info): Update.
9652 (secname_for_decl): Update.
9653 (dwarf2out_var_location): Update.
9654 * function.c (free_after_compilation): Update.
9655 (assign_parm_find_stack_rtl): Update.
9656 (assign_parms): Update.
9657 (expand_dummy_function_end): Update.
9658 (expand_function_end): Update.
9659 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
9660 (expand_call): Update.
9661 (emit_library_call_value_1): Update.
9662 (store_one_arg): Update.
9663 * varasm.c (initialize_cold_section_name): Update.
9664 (unlikely_text_section): Update.
9665 (unlikely_text_section_p): Update.
9666 (assemble_start_function): Update.
9667 (assemble_end_function): Update.
9668 (default_section_type_flags): Update.
9669 (switch_to_section): Update.
9670 * integrate.c (set_decl_abstract_flags): Update.
9671 (get_hard_reg_initial_val): Update.
9672 (has_hard_reg_initial_val): Update.
9673 (allocate_initial_values): Update.
9674 * resource.c (init_resource_info): Update.
9675 * config/alpha/alpha.c (NUM_ARGS): Update.
9676 (direct_return): Update.
9677 (alpha_va_start): Update.
9678 (alpha_sa_size): Update.
9679 (alpha_initial_elimination_offset): Update.
9680 (alpha_expand_prologue): Update.
9681 (alpha_start_function): Update.
9682 (alpha_expand_epilogue): Update.
9683 (unicosmk_initial_elimination_offset):
9684 * config/alpha/alpha.md (call expander): Update.
9685 * config/s390/s390.c (s390_register_info): Update.
9686 (s390_register_info): Update.
9687 (s390_frame_info): Update.
9688 (s390_initial_elimination_offset): Update.
9689 (s390_build_builtin_va_list): Update.
9690 (s390_va_start): Update.
9691 * config/spu/spu.c (direct_return): Update.
9692 (spu_expand_prologue): Update.
9693 (spu_initial_elimination_offset): Update.
9694 (spu_build_builtin_va_list): Update.
9695 (spu_va_start): Update.
9696 * config/sparc/sparc.c (sparc_init_modes): Update.
9697 (sparc_compute_frame_size): Update.
9698 (function_value): Update.
9699 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
9700 * config/i386/i386.md (return expander): Update.
9701 * config/i386/i386.c (ix86_va_start): Update.
9702 (ix86_can_use_return_insn_p): Update.
9703 (ix86_compute_frame_layout): Update.
9704 (ix86_expand_epilogue): Update.
9705 * config/sh/sh.c (output_stack_adjust): Update.
9706 (calc_live_regs): Update.
9707 (sh_expand_prologue): Update.
9708 (sh_builtin_saveregs): Update.
9709 (sh_va_start): Update.
9710 (initial_elimination_offset): Update.
9711 (sh_allocate_initial_value): Update.
9712 (sh_function_ok_for_sibcall): Update.
9713 (sh_get_pr_initial_val): Update.
9714 * config/sh/sh.md (return expander): Update.
9715 * config/avr/avr.c (frame_pointer_required_p): UPdate.
9716 * config/crx/crx.c (crx_compute_frame): UPdate.
9717 (crx_initial_elimination_offset): UPdate.
9718 * config/xtensa/xtensa.c (compute_frame_size): Update
9719 (xtensa_builtin_saveregs): Update.
9720 (xtensa_va_start): Update.
9721 (order_regs_for_local_alloc): Update.
9722 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
9723 (xstormy16_expand_builtin_va_start): Update.
9724 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
9725 * config/m68hc11/m68hc11.md (return expanders): Update.
9726 * config/m68hc11/m68hc11.c (expand_prologue): Update.
9727 (expand_epilogue): Update.
9728 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
9729 (cris_simple_epilogue): Update.
9730 (cris_expand_prologue): Update.
9731 (cris_expand_epilogue): Update.
9732 * config/iq2000/iq2000.c (iq2000_va_start): Update.
9733 (compute_frame_size): Update.
9734 * config/mt/mt.c (mt_compute_frame_size): Update.
9735 * config/mn10300/mn10300.c (expand_prologue): Update.
9736 (expand_epilogue): Update.
9737 (initial_offset): Update.
9738 (mn10300_builtin_saveregs):
9739 * config/mn10300/mn10300.md (return expander): Update.
9740 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
9741 (ia64_initial_elimination_offset): Update.
9742 (ia64_initial_elimination_offset): Update.
9743 (ia64_expand_prologue): Update.
9744 * config/m68k/m68k.md (return expander): Update.
9745 * config/rs6000/rs6000.c (rs6000_va_start): Update.
9746 (rs6000_stack_info): Update.
9747 * config/mcore/mcore.c (layout_mcore_frame): Update.
9748 (mcore_expand_prolog): Update.
9749 * config/arc/arc.c (arc_compute_frame_size): Update.
9750 * config/score/score3.c (score3_compute_frame_size): Update.
9751 * config/score/score7.c (score7_compute_frame_size): Update.
9752 * config/arm/arm.c (use_return_insn): Update.
9753 (thumb_find_work_register): Update.
9754 (arm_compute_save_reg_mask): Update.
9755 (arm_output_function_prologue): Update.
9756 (arm_output_epilogue): Update.
9757 (arm_size_return_regs): Update.
9758 (arm_get_frame_offsets): Update.
9759 (arm_expand_prologue): Update.
9760 (thumb_exit): Update.
9761 (thumb_unexpanded_epilogue): Update.
9762 (thumb1_output_function_prologue): Update.
9763 * config/pa/pa.md (return expander): Update.
9764 * config/pa/pa.c (compute_frame_size): Update.
9765 (hppa_builtin_saveregs): Update.
9766 * config/mips/mips.c (mips_va_start): Update.
9767 (mips16_build_function_stub): Update.
9768 (mips_compute_frame_info): Update.
9769 (mips_restore_gp): Update.
9770 (mips_output_function_prologue): Update.
9771 (mips_expand_prologue): Update.
9772 * config/v850/v850.c (compute_frame_size): Update.
9773 (expand_prologue): * config/mmix/mmix.c (along): update.
9774 (mmix_initial_elimination_offset): update.
9775 (mmix_reorg): update.
9776 (mmix_use_simple_return): update.
9777 (mmix_expand_prologue): update.
9778 (mmix_expand_epilogue): Update.
9779 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
9780 (emit_link_insn): Update.
9782 2008-04-08 Anatoly Sokolov <aesok@post.ru>
9784 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
9785 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
9787 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
9790 2008-04-07 Jan Hubicka <jh@suse.cz>
9792 * function.h (rtl): Rename to x_rtl.
9794 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
9795 frame_offset, stack_check_probe_note, arg_pointer_save_area,
9796 used_temp_slots avail_temp_slots, temp_slot_level,
9797 nonlocal_goto_handler_labels): Update accesstors.
9798 (rtl): New global variable.
9799 (struct function): Move some fileds to rtl_data.
9800 (get_arg_pointer_save_area): Update prototype.
9801 * builtins.c (expand_builtin_setjmp_receiver): Update call of
9802 get_arg_pointer_save_area.
9803 * expr.c (init_expr): Update
9804 * function.c (get_frame_size): Update
9805 (assign_stack_local): Update
9806 (expand_function_end): Update.
9807 (get_art_pointer_save_area): Update
9809 * emit-rtl.c (rtl): Declare.
9810 (regno_reg_rtx): Declare.
9811 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
9813 (gen_reg_rtx): Update.
9814 * varasm.c (n_deferred_constatns): Update accestor.
9815 (init_varasm_status): Do not allocate varasm_status.
9816 (force_const_mem, get_pool_size, output_constant_pool): Update.
9817 * stmt.c (force_label_rtx): Do not use x_ prefixes.
9818 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
9819 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
9820 * sparc/sparc.h (INIT_EXPANDERS): Update.
9821 * ia64/ia64.h (INIT_EXPANDERS): Update.
9823 2008-04-07 James E. Wilson <wilson@tuliptree.org>
9825 * reload.c (push_secondary_reload): Add missing break to for loop.
9827 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
9829 PR middle-end/PR28690
9830 * rtlanal.c: Update copyright years.
9831 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
9832 as REG_POINTER and MEM_POINTER operands.
9833 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
9834 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
9835 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
9836 * gcse.c: Update copyright years.
9837 (pre_delete): Call gen_reg_rtx_and_attrs.
9838 (hoist_code): Likewise.
9839 (build_store_vectors): Likewise.
9840 (delete_store): Likewise.
9841 * loop-invariant.c (move_invariant_reg): Likewise.
9842 Update copyright years.
9844 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
9846 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
9847 control string instead of quoted.
9849 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
9851 * doc/rtl.texi: Rewrite of subreg section.
9853 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
9856 * config/i386/i386.c (legitimize_pic_address): Add treating
9857 of dllimport SYM_REF's.
9858 (legitimize_dllimport_symbol): Add prototype.
9860 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
9862 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
9863 reference in constructor with non self-referential type.
9865 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
9867 Removal of Return with Depressed Stack Pointer support
9868 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
9869 (ECF_SP_DEPRESSED): Likewise.
9870 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
9871 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
9872 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9873 (expand_call): Do not test ECF_SP_DEPRESSED.
9874 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9875 * function.c (keep_stack_depressed): Delete.
9876 (handle_epilogue_set): Likewise.
9877 (update_epilogue_consts): Likewise.
9878 (emit_equiv_load): Likewise.
9879 (thread_prologue_and_epilogue_insns): Remove support for Return with
9880 Depressed Stack Pointer.
9881 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9883 2008-04-06 Richard Guenther <rguenther@suse.de>
9885 PR tree-optimization/35400
9886 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
9887 information from SSA_NAMEs.
9889 2008-04-06 Anatoly Sokolov <aesok@post.ru>
9891 * config/avr/avr.h (avr_mega_p): Remove declaration.
9892 (AVR_MEGA): Remove macro.
9893 * config/avr/avr.c (avr_mega_p): Remove variable.
9894 (avr_override_options): Remove inicializion of avr_mega_p.
9895 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
9896 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
9897 (avr_jump_mode): (Ditto.).
9898 (avr_output_progmem_section_asm_op): (Ditto.).
9899 (avr_asm_init_sections): (Ditto.).
9900 (avr_asm_init_sections): (Ditto.).
9901 (avr_rtx_costs): (Ditto.).
9902 * config/avr/avr.md: (Ditto.).
9903 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
9906 2008-04-06 Richard Guenther <rguenther@suse.de>
9908 PR tree-optimization/35842
9909 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
9910 is_gimple_invariant_address.
9912 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9914 * gcc.c (default_compilers): Sync Fortran extensions list with
9915 that in fortran/lang-specs.h.
9916 * doc/invoke.texi: Likewise.
9917 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
9918 * dwarf2out.c (gen_compile_unit_die): Likewise.
9920 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
9922 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
9924 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
9927 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
9928 attribute is used for nested functions.
9930 2008-04-05 Jan Hubicka <jh@suse.cz>
9932 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
9934 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
9936 (dump_files): Update.
9937 (enable_rtl_dump_file): Do not accept letter argument.
9938 * tree-pass.h (dump_file_info): Remove letter argument.
9939 * toplev.c (decode_d_option): Update -da handling.
9940 * toplev.h (enable_rtl_dump_file): Update prototype.
9941 * passes.c (register_one_dump_file): Do not accept IPA argument; work
9942 it out based on pass type.
9943 (register_dump_files_1): Likewise.
9944 (init_optimization_passes): Update register_one_dump_file calls.
9945 (execute_one_pass): Sanity check that IPA passes are called at IPA
9946 level and RTL passes at RTL level.
9947 (execute_pass_list): IPA pass can not be after or subpass of
9949 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
9950 disallov RTL subpasses of IPA subpasses.
9952 2008-04-05 Ben Elliston <bje@au.ibm.com>
9954 * tree-cfg.c (need_fake_edge_p): Return false for calls to
9955 builtins that return exactly once and do not throw. Cache call to
9958 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
9960 PR rtl-optimization/34916
9962 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
9963 between instruction pairs.
9965 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
9967 * doc/invoke.texi: Document -mbitops for SH.
9968 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
9969 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
9970 * config/sh/sh.c (print_operand): Add %t operand code.
9971 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
9972 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
9973 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
9974 (extendqihi2): Likewise.
9975 (movqi_i): Likewise.
9976 (insv): Use bset, bclr and bst instructions for SH2A if possible.
9977 (extv): Use bld instruction for SH2A if possible.
9979 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
9980 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
9981 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
9982 (bset.b, bclr.b): Define peepholes.
9983 * config/sh/sh.opt (mbitops): New option.
9985 2008-04-04 Janis Johnson <janis187@us.ibm.com>
9988 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
9989 and view convert expression.
9991 2008-04-04 Jakub Jelinek <jakub@redhat.com>
9994 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
9996 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
9998 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
10000 * config/i386/cpuid.h (bit_AES): New.
10001 (bit_PCLMUL): Likewise.
10003 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
10004 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
10005 SSE2 if AES or PCLMUL is enabled.
10006 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
10007 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10008 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
10009 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
10010 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
10011 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
10012 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10013 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
10014 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
10015 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
10016 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
10017 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
10018 __builtin_ia32_aeskeygenassist128 and
10019 __builtin_ia32_pclmulqdq128.
10020 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
10021 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
10022 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
10024 * config/i386/i386.h (TARGET_AES): New.
10025 (TARGET_PCLMUL): Likewise.
10026 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
10028 * config/i386/i386.md (UNSPEC_AESENC): New.
10029 (UNSPEC_AESENCLAST): Likewise.
10030 (UNSPEC_AESDEC): Likewise.
10031 (UNSPEC_AESDECLAST): Likewise.
10032 (UNSPEC_AESIMC): Likewise.
10033 (UNSPEC_AESKEYGENASSIST): Likewise.
10034 (UNSPEC_PCLMUL): Likewise.
10036 * config/i386/i386.opt (maes): New.
10037 (mpclmul): Likewise.
10039 * config/i386/sse.md (aesenc): New pattern.
10040 (aesenclast): Likewise.
10041 (aesdec): Likewise.
10042 (aesdeclast): Likewise.
10043 (aesimc): Likewise.
10044 (aeskeygenassist): Likewise.
10045 (pclmulqdq): Likewise.
10047 * config/i386/wmmintrin.h: New.
10049 * doc/extend.texi: Document AES and PCLMUL built-in function.
10051 * doc/invoke.texi: Document -maes and -mpclmul.
10053 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
10055 * function.c (free_after_parsing): Replace with
10056 cxx_push_function_context from C++ front-end.
10057 (allocate_struct_function): Don't call langhook.
10058 * langhooks.h (struct lang_hooks_for_functions): Delete.
10059 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
10061 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
10062 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
10063 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
10064 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
10065 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
10066 remove LANG_HOOKS_FUNCTION_INITIALIZER.
10067 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
10069 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
10070 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
10072 2008-04-04 Jakub Jelinek <jakub@redhat.com>
10075 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
10078 2008-04-04 Richard Guenther <rguenther@suse.de>
10080 PR middle-end/35823
10081 * fold-const.c (optimize_minmax_comparison): Use the correct
10082 type for the constant in the simplified comparison.
10084 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
10086 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
10087 Pass L2 size as "--param l2-cache-size" to the compiler.
10088 (decode_l2_cache): New function to decode L2 cache parameters using
10089 0x8000006 extended cpuid function.
10090 (detect_caches_amd): Determine parameters of L2 cache using
10091 decode_l2_caches function.
10092 (decode_caches_intel): Decode L2 cache parameters.
10093 (detect_caches_intel): Determine L2 cache parameters using
10094 decode_caches_intel and decode_l2_caches functions.
10096 2008-04-03 Bob Wilson <bob.wilson@acm.org>
10098 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
10099 secondary input reload for subword loads from the constant pool.
10101 2008-04-03 Janis Johnson <janis187@us.ibm.com>
10104 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
10105 constants of the appropriate size for runtime calculations.
10108 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
10109 decimal-float literal constant zero.
10111 2008-04-03 Jakub Jelinek <jakub@redhat.com>
10114 * c-parser.c (c_parser_omp_atomic): Call
10115 default_function_array_conversion on the RHS.
10117 PR middle-end/35818
10118 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
10119 call is_variable_sized if decl has incomplete type.
10121 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
10123 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
10125 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
10127 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
10129 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
10130 (sgt<u>): Merge sgt and sgtu into new expander.
10131 (sgt, sgtu): Remove expanders.
10132 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
10133 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
10134 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
10135 *sgtu_<mode>_mips16 into new pattern.
10136 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
10137 (sge<u>): Merge sge and sgeu into new expander.
10138 (sge, sgeu): Remove expanders.
10139 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
10141 (*sge_<mode>, second *sge_<mode>): Remove patterns.
10142 (slt<u>): Merge slt and sltu into new expander.
10143 (slt, sltu): Remove expanders.
10144 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
10145 (*slt_<mode>, *sltu_<mode>): Remove patterns.
10146 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
10147 *sltu_<mode>_mips16 into new pattern.
10148 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
10149 (sle<u>): Merge sle and sleu into new expander.
10150 (sle, sleu): Remove expanders.
10151 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
10152 (*sle_<mode>, *sleu_<mode>): Remove patterns.
10153 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
10154 *sleu_<mode>_mips16 into new pattern.
10155 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
10157 2008-04-03 Jan Hubicka <jh@suse.cz>
10159 PR tree-optimization/35795
10160 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
10161 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10162 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10163 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
10164 * score/score3.c (score3_output_mi_thunk): Likewise.
10165 * score/score7.c (score7_output_mi_thunk): Likewise.
10166 * mips/mips.c (mips_output_mi_thunk): Likewise.
10168 2008-04-03 Richard Guenther <rguenther@suse.de>
10170 * tree-vrp.c (extract_range_from_unary_expr): Handle all
10171 conversions. Simplify code.
10173 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
10175 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
10177 2008-04-03 Tom Tromey <tromey@redhat.com>
10178 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10180 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
10181 * config/bfin/t-bfin-linux (generated_files): Add
10182 linux-sysroot-suffix.h.
10183 * doc/install.texi (Prerequisites): Require make 3.80.
10184 * doc/sourcebuild.texi (Front End Directory): Document new
10186 * Makefile.in (generated_files): New variable.
10187 (ALL_HOST_OBJS): New variable.
10188 ($(ALL_HOST_OBJS)): New target.
10190 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
10192 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
10193 (remap_block): Call id->transform_lang_insert_block instead
10195 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
10196 Set id.transform_lang_insert_block to NULL.
10197 (clone_body): Move to cp/optimize.c
10198 * tree-inline.h (struct copy_body_data): Change
10199 transform_lang_insert_block to function pointer.
10200 (copy_generic_body, copy_decl_no_change): Export.
10201 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
10202 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
10203 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
10205 * c-tree.h (insert_block): Kill.
10206 * c-decl.c (insert_block): Kill.
10208 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
10210 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10211 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
10212 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
10214 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
10215 argument, call {push,pop}_function_context from here.
10216 * c-parser.c: Use c_{push,pop}_function_context.
10218 * function.c (push_function_context_to): Move meat ...
10219 (push_function_context): ... here. Simplify.
10220 * function.c (pop_function_context_from): Move meat ...
10221 (pop_function_context): ... here. Simplify.
10222 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
10224 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10225 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
10226 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
10227 * tree.h (push_function_context_to, pop_function_context_from): Remove.
10229 2008-04-03 Ben Elliston <bje@au.ibm.com>
10231 * expmed.c (extract_force_align_mem_bit_field): Remove.
10233 2008-04-03 Richard Guenther <rguenther@suse.de>
10235 PR middle-end/35800
10236 * expr.h (try_casesi): Adjust prototype.
10237 * expr.c (try_casesi): Take fallback label as extra parameter.
10238 Use that for gen_casesi if default_label is NULL.
10239 * stmt.c (expand_case): Pass fallback label to try_casesi,
10240 make sure to fill gaps with a fallback label if default_label
10243 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
10246 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
10248 2008-04-03 Ben Elliston <bje@au.ibm.com>
10250 * expmed.c (extract_split_bit_field): Remove if (0) code.
10251 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
10252 (do_ds_constraint): Likewise.
10254 2008-04-02 Joseph Myers <joseph@codesourcery.com>
10256 * doc/cppopts.texi (-dU): Document.
10257 * c-common.h (flag_dump_macros): Update comment.
10258 * c-opts.c (handle_OPT_d): Handle -dU.
10259 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
10260 dump_queued_macros, cb_used_define, cb_used_undef): New.
10261 (init_pp_output): Handle -dU.
10262 (cb_line_change): Call dump_queued_macros.
10263 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
10265 2008-04-02 Anatoly Sokolov <aesok@post.ru>
10267 * config/avr/predicates.md (io_address_operand): New predicate.
10268 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
10269 * config/avr/avr.c (avr_io_address_p): Remove function.
10270 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
10271 'avr_io_address_p' function.
10272 (out_movhi_r_mr): (Ditto.).
10273 (out_movqi_mr_r): (Ditto.).
10274 (out_movhi_mr_r): (Ditto.).
10275 (avr_address_cost): (Ditto.).
10277 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
10279 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
10280 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
10281 in 32bit mode when XMM registers are available to avoid store
10283 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
10284 corresponding post-reload splitters.
10286 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
10288 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
10289 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
10290 __builtin_ia32_roundss.
10291 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
10292 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
10293 __builtin_ia32_roundss.
10294 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
10295 IX86_BUILTIN_SHUFPD here.
10297 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
10299 * config/i386/i386.md (plogic): New.
10300 (plogicprefix): Likewise.
10302 * config/i386/mmx.md (mmx_<code><mode>3): New.
10303 (mmx_and<mode>3): Removed.
10304 (mmx_ior<mode>3): Likewise.
10305 (mmx_xor<mode>3): Likewise.
10307 * config/i386/sse.md (<code><mode>3): New.
10308 (*<code><mode>3): Likewise.
10309 (*<code><mode>3): Likewise.
10310 (<code><mode>3): Likewise.
10311 (*sse_<code><mode>3): Likewise.
10312 (*sse2_<code><mode>3): Likewise.
10313 (<code>tf3): Likewise.
10314 (*<code>tf3): Likewise.
10315 (and<mode>3): Likewise.
10316 (*and<mode>3): Likewise.
10317 (ior<mode>3): Removed.
10318 (*ior<mode>3): Likewise.
10319 (xor<mode>3): Likewise.
10320 (*xor<mode>3): Likewise.
10321 (*and<mode>3): Likewise.
10322 (*ior<mode>3): Likewise.
10323 (*xor<mode>3): Likewise.
10324 (and<mode>3): Likewise.
10325 (*sse_and<mode>3): Likewise.
10326 (*sse2_and<mode>3): Likewise.
10327 (andtf3): Likewise.
10328 (*andtf3): Likewise.
10329 (ior<mode>3): Likewise.
10330 (*sse_ior<mode>3): Likewise.
10331 (*sse2_ior<mode>3): Likewise.
10332 (iortf3): Likewise.
10333 (*iortf3): Likewise.
10334 (xor<mode>3): Likewise.
10335 (*sse_xor<mode>3): Likewise.
10336 (*sse2_xor<mode>3): Likewise.
10337 (xortf3): Likewise.
10338 (*xortf3): Likewise.
10340 2008-04-02 Richard Guenther <rguenther@suse.de>
10342 PR tree-optimization/14495
10343 PR tree-optimization/34793
10344 * tree-vrp.c (struct switch_update): New structure.
10345 (to_remove_edges, to_update_switch_stmts): New VECs.
10346 (simplify_switch_using_ranges): New function. Remove not taken
10347 case labels and edges.
10348 (simplify_stmt_using_ranges): Call it.
10349 (identify_jump_threads): Mark edges we have queued for removal
10350 so we don't thread them.
10351 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
10353 * tree-cfg.c (group_case_labels): Deal with missing default label.
10354 (tree_verify_flow_info): Allow missing default label.
10355 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
10356 (emit_case_nodes): Likewise.
10357 (expand_case): Do not rely on the default label to be present.
10358 * expr.c (try_casesi): Deal with NULL default_label.
10359 (do_tablejump): Likewise.
10361 2008-04-02 Richard Guenther <rguenther@suse.de>
10363 PR tree-optimization/14495
10364 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
10365 SWITCH_EXPR here ...
10366 (vrp_visit_switch_stmt): ... but here (new function).
10367 (find_case_label_index): New helper function.
10368 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
10370 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
10372 * fwprop.c: Fix ISO-C99ism.
10374 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
10377 * Makefile.in (objdir): Set it here.
10378 * configure.ac: Not here. Find dynamic linker characteristics.
10379 * exec-tool.in: Use them.
10380 * aclocal.m4: Regenerate.
10381 * configure: Regenerate.
10383 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
10385 * expr.c (expand_var): Delete it.
10386 * expr.h (expand_var): Delete prototype.
10387 * function.c (expand_function_start): Use expand_decl instead.
10388 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
10391 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
10393 PR rtl-optimization/35542
10394 * fwprop.c (forward_propagate_and_simplify): Replace
10395 loc_reg_mentioned_in_p with reg_mentioned_p.
10397 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
10399 PR rtl-optimization/35281
10400 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
10401 (propagate_rtx_1): Handle PR_HANDLE_MEM.
10402 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
10403 (varying_mem_p): Move above propagate_rtx.
10404 (all_uses_available_at): Do not check MEMs.
10406 2008-04-02 Rafael Espindola <espindola@google.com>
10408 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
10409 (register_edge_assert_for_2): Split the cond argument.
10410 (register_edge_assert_for_1): Adjust for the change in
10411 register_edge_assert_for_2.
10412 (register_edge_assert_for): Split the cond argument.
10413 (find_switch_asserts): Adjust for the change in
10414 register_edge_assert_for.
10416 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
10418 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
10419 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
10420 offsets for 64-bit mingw.
10421 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
10422 abi for x86_64-pc-mingw.
10424 2008-04-02 Richard Guenther <rguenther@suse.de>
10426 * tree-vrp.c (extract_range_from_assert): Make sure to not
10427 produce range min/max with TREE_OVERFOW set.
10428 If merging a anti-range and a range keep the anti-range if
10429 the range covers all values of the type.
10430 (register_edge_assert_for_2): Only allow sign-changing
10431 conversions in detecting canonical range checks. Also
10432 register an assert for the unsigned name if useful.
10434 PR tree-optimization/35787
10435 * tree-vrp.c (vrp_val_max): New function.
10436 (vrp_val_min): Likewise.
10437 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
10438 (vrp_val_is_min): Likewise.
10439 (supports_overflow_infinity): Use vrp_val_{min,max}.
10440 (negative_overflow_infinity): Likewise.
10441 (positive_overflow_infinity): Likewise.
10442 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
10443 (is_positive_overflow_infinity): Likewise.
10444 (is_overflow_infinity): Likewise.
10445 (avoid_overflow_infinity): Use vrp_val_{min,max} and
10446 vrp_val_is_{min,max}.
10447 (set_and_canonicalize_value_range): Canonicalize anti-ranges
10448 to ranges if possible. Avoid empty ranges.
10450 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10452 PR middle-end/35705
10453 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
10454 the expression is a function address.
10456 2008-04-01 George Helffrich <george@gcc.gnu.org>
10458 PR fortran/35154, fortran/23057
10459 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
10460 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
10461 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
10462 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
10464 (dbxout_syms): Check for COMMON-based symbol and wrap in
10465 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
10466 in bracket for efficiency.
10468 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
10469 using DW_TAG_common_block + member offset.
10470 (add_pubname_string): New function.
10471 (dw_expand_expr): New function to find block name and offset for
10473 (common_check): New function to check whether symbol in Fortran COMMON.
10474 (gen_variable_die): If COMMON, use DW_TAG_common_block.
10476 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
10479 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
10481 2008-04-02 Ben Elliston <bje@au.ibm.com>
10483 * config/v850/v850.md (casesi): Remove if (0) code.
10484 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10485 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
10487 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
10489 * config/i386/i386.md (rex64suffix): New mode attribute.
10490 (floathi<mode>2): Disable expander for SSE math.
10491 (*floathi<mode>2_1): New insn insn_and_split pattern.
10492 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
10493 corresponding post-reload splitters.
10494 (*floathi<mode>2_i387): New macroized insn pattern.
10495 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
10496 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
10497 insn_and_split pattern.
10498 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
10499 New macroized instruction patterns and corresponding post-reload
10501 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
10502 and corresponding post-reload splitters.
10503 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
10504 New macroized instruction patterns.
10505 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
10506 macroized instruction patterns and corresponding post-reload splitters.
10507 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
10508 corresponding post-reload splitters.
10509 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
10510 New macroized instruction patterns.
10511 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
10512 corresponding post-reload splitters.
10513 (*floatsi<mode>2_i387): New macroized instruction patterns.
10515 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
10517 * config/i386/i386.md (smaxmin): New.
10518 (umaxmin): Likewise.
10519 (maxminiprefix): Likewise.
10520 (maxminfprefix): Likewise.
10521 (<code><mode>3): Likewise.
10522 (smin<mode>3): Removed.
10523 (smax<mode>3): Likewise.
10525 * config/i386/mmx.md (mmx_<code>v2sf3): New.
10526 (mmx_<code>v4hi3): Likewise.
10527 (mmx_<code>v8qi3): Likewise.
10528 (mmx_smaxv2sf3): Removed.
10529 (mmx_sminv2sf3): Likewise.
10530 (mmx_umaxv8qi3): Likewise.
10531 (mmx_smaxv4hi3): Likewise.
10532 (mmx_uminv8qi3): Likewise.
10533 (mmx_sminv4hi3): Likewise.
10535 * config/i386/sse.md (<addsub><mode>3): New.
10536 (*<addsub><mode>3): Likewise.
10537 (<sse>_vm<addsub><mode>3): Likewise.
10538 (<maxmin><mode>3): Likewise.
10539 (*<maxmin><mode>3_finite): Likewise.
10540 (*<maxmin><mode>3): Likewise.
10541 (<sse>_vm<maxmin><mode>3): Likewise.
10542 (sse3_h<addsub>v4sf3): Likewise.
10543 (sse3_h<addsub>v2df3): Likewise.
10544 (<maxmin>v16qi3): Likewise.
10545 (*<maxmin>v16qi3): Likewise.
10546 (<maxmin>v8hi3): Likewise.
10547 (*<maxmin>v8hi3): Likewise.
10548 (*sse4_1_<maxmin><mode>3): Likewise.
10549 (*sse4_1_<maxmin><mode>3): Likewise.
10550 (add<mode>3): Removed.
10551 (*add<mode>3): Likewise.
10552 (<sse>_vmadd<mode>3): Likewise.
10553 (sub<mode>3): Likewise.
10554 (*sub<mode>3): Likewise.
10555 (<sse>_vmsub<mode>3): Likewise.
10556 (smin<mode>3): Likewise.
10557 (*smin<mode>3_finite): Likewise.
10558 (*smin<mode>3): Likewise.
10559 (<sse>_vmsmin<mode>3): Likewise.
10560 (smax<mode>3): Likewise.
10561 (*smax<mode>3_finite): Likewise.
10562 (*smax<mode>3): Likewise.
10563 (<sse>_vmsmax<mode>3): Likewise.
10564 (sse3_haddv4sf3): Likewise.
10565 (sse3_haddv2df3): Likewise.
10566 (sse3_hsubv4sf3): Likewise.
10567 (sse3_hsubv2df3): Likewise.
10568 (umaxv16qi3): Likewise.
10569 (*umaxv16qi3): Likewise.
10570 (smaxv8hi3): Likewise.
10571 (*smaxv8hi3): Likewise.
10572 (*sse4_1_smax<mode>3): Likewise.
10573 (*sse4_1_umax<mode>3): Likewise.
10574 (uminv16qi3): Likewise.
10575 (*uminv16qi3): Likewise.
10576 (sminv8hi3): Likewise.
10577 (*sminv8hi3): Likewise.
10578 (*sse4_1_smin<mode>3): Likewise.
10579 (*sse4_1_umin<mode>3): Likewise.
10581 2008-04-01 Rafael Espindola <espindola@google.com>
10583 * tree-cfg.c (verify_expr): remove in_phi.
10584 (verify_stmt): Don't call walk_tree with verify_expr. Use
10585 is_gimple_min_invariant instead of is_gimple_val.
10587 2008-04-01 Joseph Myers <joseph@codesourcery.com>
10589 * doc/include/gpl_v3.texi: Update for manpage generation.
10590 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
10592 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
10593 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
10594 gpl_v3.texi instead of gpl.texi.
10597 2008-04-01 Jakub Jelinek <jakub@redhat.com>
10600 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
10602 2008-04-01 Rafael Espindola <espindola@google.com>
10604 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
10605 (extract_code_and_val_from_cond): Use
10606 extract_code_and_val_from_cond_with_ops.
10608 2008-04-01 Jan Hubicka <jh@suse.cz>
10610 * function.c (free_after_compilation): Free epilogue_delay_list.
10611 (prepare_function_start): Assert that previous compilation was freed.
10613 2008-04-01 Jan Hubicka <jh@suse.cz>
10614 Jim Wilson <wilson@tuliptree.org>
10615 Andreas Tobler <andreast@gcc.gnu.org>
10617 PR middle-end/35781
10618 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
10619 rtl.emit instead cfun->emit.
10620 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
10621 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
10623 2008-04-01 Ben Elliston <bje@au.ibm.com>
10625 * doc/c-tree.texi (Function Basics): Fix grammatical error.
10627 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
10629 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
10631 (fprofile-use): Add var flag_profile_use
10632 * coverage.c (coverage_begin_output): Do not open a gcno file for
10633 output only if -ftest-coverage is set.
10634 Do not add getpwd() to gcda file path.
10635 (build_gcov_info): Check the new flag
10636 flag_profile_datafile_relative_path.
10637 (coverage_init): Use profile_data_prefix.
10638 Read profile counter only if flag_profile_use is set.
10639 * opts.c (common_handle_option): New option fprofile-use=,
10640 fprofile-dir=, fprofile-generate=.
10641 * toplev.c (profile_data_prefix): New variable definition.
10642 * toplev.h (profile_data_prefix): New declaration.
10643 * doc/invoke.tex (Option Summary, Optimization Options):
10646 2008-03-31 James E. Wilson <wilson@tuliptree.org>
10648 * varasm.c (output_constant_pool_1): In LABEL_REF check,
10649 use tmp consistently.
10652 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
10653 * config/ia64/ia64.c (rtx_needs_barrier): Handle
10654 UNSPEC_FR_RECIP_APPROX_RES.
10655 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
10657 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
10660 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
10662 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
10664 PR middle-end/30186
10665 * fold-const.c (fold_indirect_ref_1): Support accessing non first
10666 element of the vector via a pointer.
10668 2008-03-31 Ian Lance Taylor <iant@google.com>
10670 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
10672 2008-03-31 Jan Hubicka <jh@suse.cz>
10674 * builtins.c (expand_builtin_setjmp_receiver): Update call of
10675 get_arg_pointer_save_area.
10676 * expr.c (init_expr): Just clear out rtl.expr.
10677 * function.c (free_after_compilation): Clear out whole RTL structure.
10678 (get_func_frame_size): Merge into ...
10679 (get_frame_size): ... this one.
10680 (assign_stack_local_1): Merge into ...
10681 (assign_stack_local): ... this one.
10682 (expand_function_end): Update call of get_arg_pointer_save_area.
10683 (get_art_pointer_save_area): Remove cfun argument.
10684 * function.h (emit_status): regno_pointer_align does not need length
10685 attribute. Move x_regno_reg_rtx to ...
10686 (regno_reg_rtx): ... new global array.
10687 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
10688 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
10689 apply_args_value, forced_labels, stack_pointer_delta):
10691 (struct varasm_status): Move here from varasm.c
10692 (struct rtl_data): New. Move here some fields from struct function.
10693 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
10694 frame_offset, stack_check_probe_note, arg_pointer_save_area,
10695 used_temp_slots avail_temp_slots, temp_slot_level,
10696 nonlocal_goto_handler_labels): Update accesstors.
10697 (rtl): New global variable.
10698 (struct function): Move some fileds to rtl_data.
10699 (get_arg_pointer_save_area): Update prototype.
10700 * emit-rtl.c (rtl): Declare.
10701 (regno_reg_rtx): Declare.
10702 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
10704 (gen_reg_rtx): Update.
10705 (init_virtual_regs): Do not tate emit_status argument.
10706 (init_emit): Do not allocate emit.
10707 * varasm.c (varasm_statuc): Move to function.h.
10708 (n_deferred_constatns): Update accestor.
10709 (init_varasm_status): Do not allocate varasm_status.
10710 (force_const_mem, get_pool_size, output_constant_pool): Update.
10711 * stmt.c (force_label_rtx): Do not use x_ prefixes.
10712 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
10714 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
10716 PR rtl-optimization/35729
10717 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
10720 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
10723 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
10724 load/store if memory is unaligned.
10725 (*movti_rex64): Likewise.
10727 * config/i386/predicates.md (misaligned_operand): New.
10729 2008-03-31 Andrew Pinski <pinskia@gmail.com>
10732 * tree-ssa-phiopt.c (conditional_replacement): Return early for
10735 2008-03-31 Jan Beulich <jbeulich@novell.com>
10737 * config/ia64/constraints.md: Add 'j' constraint.
10738 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
10739 (movdi_internal): Likewise.
10741 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
10744 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
10746 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
10749 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
10750 proper error message for the third argument on blendpd and
10753 * config/i386/sse.md (blendbits): New.
10754 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
10756 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
10758 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
10760 2008-03-30 Richard Guenther <rguenther@suse.de>
10762 PR middle-end/31023
10763 * fold-const.c (fold_sign_changed_comparison): Do leave
10764 conversions to base-types alone.
10766 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
10768 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
10769 the link register if one altivec register is be saved.
10771 2008-03-30 Ben Elliston <bje@au.ibm.com>
10773 * final.c (final_scan_insn): Remove if (0) code.
10775 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
10777 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
10779 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
10781 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
10782 of V4SFmode to ix86_binary_operator_ok.
10784 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
10786 * config/i386/i386.c (override_options): Initialize
10787 ix86_veclib_handler to ix86_veclibabi_svml when
10788 -mveclibabi=svml is used.
10789 (ix86_veclibabi_svml): New function for SVML ABI style
10790 vectorization support.
10791 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
10793 2008-03-28 Rafael Espindola <espindola@google.com>
10795 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
10796 (tree_binary_nonnegative_warnv_p): Make it public.
10797 (tree_single_nonnegative_warnv_p): Make it public.
10798 (tree_invalid_nonnegative_warnv_p): Make it public.
10799 (tree_unary_nonzero_warnv_p): Make it public.
10800 (tree_binary_nonzero_warnv_p): Make it public
10801 (tree_single_nonzero_warnv_p): Make it public.
10802 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
10803 (extract_range_from_binary_expr): Split the expr argument.
10804 (extract_range_from_unary_expr): Split the expr argument.
10805 (extract_range_from_comparison): Split the expr argument.
10806 (extract_range_from_expr): Use the new aux functions.
10807 (vrp_evaluate_conditional_warnv): Use
10808 vrp_evaluate_conditional_warnv_with_ops.
10809 * tree.h (tree_unary_nonzero_warnv_p): Declare.
10810 (tree_binary_nonzero_warnv_p): Declare.
10811 (tree_single_nonzero_warnv_p): Declare.
10812 (tree_expr_nonzero_warnv_p): Declare.
10813 (tree_unary_nonnegative_warnv_p): Declare.
10814 (tree_binary_nonnegative_warnv_p): Declare.
10815 (tree_single_nonnegative_warnv_p): Declare.
10816 (tree_invalid_nonnegative_warnv_p): Declare.
10818 2008-03-28 Richard Guenther <rguenther@suse.de>
10820 PR tree-optimization/30317
10821 PR tree-optimization/30911
10822 PR tree-optimization/34793
10823 * tree-vrp.c (set_and_canonicalize_value_range): New function.
10824 (struct assert_locus_d): New member EXPR.
10825 (register_new_assert_for): Add EXPR parameter to support
10826 ASSERT_EXPR <name, expr OP limit>.
10827 (register_edge_assert_for_1): Adjust callers.
10828 (find_assert_locations): Likewise.
10829 (process_assert_insertions_for): Build condition from expression.
10830 (extract_range_from_assert): Handle ASSERT_EXPRs
10831 of the form ASSERT_EXPR <name, expr OP limit>.
10832 (register_edge_assert_for_2): New helper registering
10833 asserts for comparisons. Recognize range tests of the form
10834 (unsigned)i - CST1 OP CST2.
10835 (register_edge_assert_for_1): Use it.
10836 (register_edge_assert_for): Likewise.
10837 (needs_overflow_infinity): Integer sub-types
10838 do not need overflow infinities.
10839 (vrp_val_is_max): The extreme values of integer sub-types
10840 are those of the base type.
10841 (vrp_val_is_min): Likewise.
10842 * tree.def (ASSERT_EXPR): Document extra allowed conditional
10845 2008-03-28 Nick Clifton <nickc@redhat.com>
10848 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
10849 Return GENERAL_REGS for stack adjustment reloads.
10851 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
10854 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
10855 const_vector when all the vectors are constant.
10857 2008-03-27 Bob Wilson <bob.wilson@acm.org>
10859 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
10861 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
10862 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
10864 (s<code>_sf): Use new scc_sf attribute for opcode names.
10866 2008-03-27 Tom Tromey <tromey@redhat.com>
10868 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
10869 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
10870 config/spu/t-spu-elf, config/i386/t-interix,
10871 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
10872 config/i386/x-darwin, config/i386/x-mingw32,
10873 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
10874 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
10875 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
10876 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
10877 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
10878 config/rs6000/x-darwin, config/rs6000/t-rs6000,
10879 config/score/t-score-elf, config/arm/t-strongarm-pe,
10880 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
10881 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
10882 Revert automatic dependency patch.
10884 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
10887 * config/i386/i386.c (ix86_function_arg_boundary): Align
10888 decimal floating point to its natural boundary.
10890 2008-03-27 Richard Guenther <rguenther@suse.de>
10892 PR middle-end/35716
10893 * fold-const.c (fold_comparison): Restrict distinct decl
10894 comparison folding to VAR_DECLs and PARM_DECLs. Do not
10895 solely rely on operand_equal_p.
10897 2008-03-27 Richard Guenther <rguenther@suse.de>
10900 * c-common.c (handle_weak_attribute): Reject combination of
10903 2008-03-27 Richard Guenther <rguenther@suse.de>
10905 PR tree-optimization/32810
10906 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
10907 conversions from DECL_INITIAL.
10908 (fold_const_aggregate_ref): Likewise from constructor elements.
10910 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
10912 * tree-affine.h (aff_combination_expand): Declare.
10913 (get_inner_reference_aff): Likewise.
10914 * tree-affine.c (aff_combination_expand): Split out from
10915 tree_to_aff_combination_expand.
10916 (get_inner_reference_aff): New function.
10917 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
10918 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
10919 (struct lim_aux_data): sm_done field removed.
10920 (mem_ref_loc_p, mem_ref_locs_p): New types.
10921 (struct mem_ref): Added id, stored, accesses_in_loop,
10922 indep_loop, dep_loop, indep_ref, dep_ref fields.
10923 Removed is_stored, locs and next fields.
10924 (memory_accesses): New variable.
10925 (movement_possibility): Do not allow moving statements
10926 that store to memory.
10927 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
10929 (determine_max_movement): For statements with memory references,
10930 find the outermost loop in that the reference is independent.
10931 (move_computations_stmt): Mark the virtual operands for renaming.
10932 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
10933 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
10934 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
10935 add_vop_ref_mapping, create_vop_ref_mapping_loop,
10936 create_vop_ref_mapping, analyze_memory_references,
10937 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
10938 get_all_locs_in_loop, ref_always_accessed_p,
10939 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
10940 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
10941 store_motion_loop, store_motion): New functions.
10942 (struct vop_to_refs_elt): New type.
10943 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
10944 memref_hash, memref_eq, hoist_memory_references): Rewritten.
10945 (schedule_sm): Replaced by...
10946 (execute_sm): ... this.
10947 (determine_lsm_ref, hoist_memory_references,
10948 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
10949 find_more_ref_vops, free_mem_ref, free_mem_refs,
10950 determine_lsm_loop, determine_lsm): Removed.
10951 (tree_ssa_lim_finalize): Free data structures used by store motion.
10952 (tree_ssa_lim): Call analyze_memory_references. Use
10953 store_motion instead of determine_lsm.
10955 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
10957 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
10958 rename tmake_file to m68hc11/t-m68hc11.
10959 (mcore): Set inhibit_libc to true.
10960 * config.host (alpha*-dec-*vms*): Set extra_programs.
10961 (interix3*): Don't use host_xmake_file.
10962 * configure.ac: Let config.gcc override inhibit_libc.
10963 * configure: Regenerate.
10965 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
10966 * config/t-openbsd-thread: Remove commented out lines.
10968 * config/x-interix: Remove.
10970 * config/m68hc11/t-m68hc11-gas: Rename to...
10971 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
10973 * config/mcore/t-mcore: Remove T_CFLAGS.
10974 * config/mcore/t-mcore-pe: Likewise.
10976 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
10978 * configure.ac: Replace custom __GNU_SOURCE test with
10979 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
10980 * aclocal.m4: Regenerate.
10981 * configure: Regenerate.
10982 * config.in: Regenerate.
10984 2008-03-27 Richard Guenther <rguenther@suse.de>
10986 * fold-const.c (target.h): Include.
10987 (fold_comparison): Fold comparison of addresses of decls
10988 that bind locally or of constants. Consolidate address folding code.
10989 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
10990 results from fold_binary_to_constant.
10991 (compare_values_warnv): Likewise.
10993 2008-03-27 Andrew Pinski <pinskia@gmail.com>
10995 PR middle-end/35429
10996 * fold-const.c (fold_truthop): Check for integeral types when folding
10997 a == 0 && b == 0 and a != 0 || b != 0 .
10999 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
11001 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
11003 2008-03-26 Andreas Schwab <schwab@suse.de>
11005 * doc/invoke.texi: Fix use of @item vs. @itemx.
11007 2008-03-26 Tom Tromey <tromey@redhat.com>
11009 * Makefile.in (build/gensupport.o, build/print-rtl.o,
11010 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
11011 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
11012 build/gencodes.o, build/genconditions.o, build/genconfig.o,
11013 build/genconstants.o, build/genemit.o, build/genextract.o,
11014 build/genflags.o, build/genmddeps.o, build/genopinit.o,
11015 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
11018 2008-03-26 Richard Guenther <rguenther@suse.de>
11021 2008-03-26 Richard Guenther <rguenther@suse.de>
11023 * fold-const.c (target.h): Include.
11024 (fold_comparison): Fold comparison of addresses of two decls
11025 that bind locally. Consolidate address folding code.
11027 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11029 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
11030 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
11031 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
11032 dconstsqrt2, dconstthird, dconste and/or dconst10.
11033 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
11034 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
11035 dconstsqrt2, dconste): Delete.
11036 (init_emit_once): Likewise. Simplify initializing dconstm1.
11038 * real.c (get_real_const): New.
11039 * real.h (dconst3, dconst10, dconstm2, dconstthird,
11040 dconstsqrt2, dconste): Delete.
11041 (real_value_const, get_real_const): New.
11043 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
11045 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
11047 * config/i386/i386.c (ix86_function_arg_boundary): Check
11048 BIGGEST_ALIGNMENT instead of 128.
11049 (setup_incoming_varargs_64): Likewise.
11051 2008-03-26 Tom Tromey <tromey@redhat.com>
11053 * Makefile.in (DEPFILES): Add missing '/'.
11055 2008-03-26 Richard Guenther <rguenther@suse.de>
11057 * fold-const.c (target.h): Include.
11058 (fold_comparison): Fold comparison of addresses of two decls
11059 that bind locally. Consolidate address folding code.
11061 2008-03-26 Nick Clifton <nickc@redhat.com>
11064 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
11065 not allow INT+INT as a legitimate addressing mode.
11067 2008-03-26 Richard Guenther <rguenther@suse.de>
11069 * tree-flow.h (widen_bitfield): Remove declaration.
11070 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
11071 (widen_bitfield): Remove function.
11072 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
11075 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
11078 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
11081 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
11083 PR rtl-optimization/35232
11084 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
11085 (forget_old_reloads_1, forget_marked_reloads): Don't clear
11086 reg_reloaded_call_part_clobbered here.
11087 (reload_regs_reach_end_p): New function.
11088 (reload_reg_rtx_for_input): New variable.
11089 (reload_reg_rtx_for_output): Likewise.
11090 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
11091 when reassigning a pseudo register. Load reloadreg from
11092 reload_reg_rtx_for_input, moving the mode and register
11094 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
11095 instead of the original when deciding whether an input reload
11096 would be a no-op or whether an output reload can be deleted.
11097 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
11098 when setting up new_spill_reg_store. Load it from
11099 reload_reg_rtx_for_output, moving the mode and register
11101 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
11102 instead of the original when deciding whether an output reload
11103 would be a no-op. Do the same when modifying insn notes.
11104 Use rtx_equal_p instead of == to compare the registers.
11105 (inherit_piecemeal_p): Take a mode and two register numbers
11107 (emit_reload_insns): Clear new_spill_reg_store for every hard
11108 register in the reload register. Remove spill registers
11109 from reg_reloaded_valid before considering whether to record
11110 inheritance information for them. Use reload_reg_rtx_for_output
11111 instead of reg_rtx when recording output reloads. Use
11112 reload_reg_rtx_for_input instead of reg_rtx when recording
11113 input reloads. Set or clear reg_reloaded_call_part_clobbered
11114 at the same time as setting reg_reloaded_valid.
11115 (delete_output_reload): Add a new_reload_reg parameter and use it
11116 instead of rld[j].reg_rtx.
11117 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
11120 2008-03-25 Tom Tromey <tromey@redhat.com>
11122 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
11123 (build/genattr.o): Likewise.
11124 (build/genattrtab.o): Likewise.
11125 (build/gencodes.o): Likewise.
11126 (build/genconfig.o): Likewise.
11127 (build/genconstants.o): Likewise.
11128 (build/genemit.o): Likewise.
11129 (build/genextract.o): Likewise.
11130 (build/genflags.o): Likewise.
11132 2008-03-25 Bob Wilson <bob.wilson@acm.org>
11134 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
11135 instead of size_int for integer types.
11136 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
11137 to match type of MINUS_EXPR.
11139 2008-03-25 Tom Tromey <tromey@redhat.com>
11141 * configure: Rebuilt.
11142 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
11145 2008-03-25 Tom Tromey <tromey@redhat.com>
11147 * config/x-solaris (host-solaris.o): Update.
11148 * config/x-linux (host-linux.o): Update.
11149 * config/x-hpux (host-hpux.o): Update.
11150 * config/x-darwin (host-darwin.o): Update.
11151 * config/v850/t-v850e (v850-c.o): Update.
11152 * config/v850/t-v850 (v850-c.o): Update.
11153 * config/t-vxworks (vxworks.o): Update.
11154 * config/t-sol2 (sol2-c.o, sol2.o): Update.
11155 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
11156 * config/spu/t-spu-elf (spu-c.o): Update.
11158 * config/sh/t-symbian (sh-c.o): Update.
11159 (symbian.o): Update.
11160 * config/sh/t-sh (sh-c.o): Update.
11161 * config/score/t-score-elf (score7.o, score3.o): Update.
11162 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
11163 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
11164 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
11165 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
11166 (rs6000.o): Remove.
11167 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
11168 * config/m32c/t-m32c (m32c-pragma.o): Update.
11169 * config/ia64/t-ia64 (ia64-c.o): Update.
11170 * config/i386/x-mingw32 (host-mingw32.o): Update.
11171 * config/i386/x-i386 (driver-i386.o): Update.
11172 * config/i386/x-darwin (host-i386-darwin.o): Update.
11173 * config/i386/x-cygwin (host-cygwin.o): Update.
11174 * config/i386/t-nwld (nwld.o): Update.
11175 * config/i386/t-netware (netware.o): Update.
11176 * config/i386/t-interix (winnt.o): Update.
11177 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
11178 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
11179 msformat-c.o): Update.
11180 * config/bfin/t-bfin-linux (generated_files): Add
11181 linux-sysroot-suffix.h.
11182 * config/arm/t-wince-pe (pe.o): Update.
11183 * config/arm/t-strongarm-pe (pe.o): Update.
11184 * config/arm/t-pe (pe.o): Update.
11185 * config/arm/t-arm (arm-c.o): Update.
11186 * doc/install.texi (Prerequisites): Require make 3.80.
11187 * Makefile.in: Remove .o targets.
11188 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
11189 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
11190 (simple_generated_h, simple_generated_c): Move earlier.
11191 (generated_files): New variable.
11192 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
11193 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
11194 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
11195 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
11196 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
11197 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
11198 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
11199 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
11200 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
11201 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
11202 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
11203 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
11205 (COMPILE.base, COMPILE): New variables.
11206 (%.o): New pattern rule.
11207 (ALL_HOST_OBJS): New variable.
11208 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
11209 (dummy-checksum.o, cc1-checksum.o): Remove.
11210 (DRIVER_SHLIB): New variable.
11211 (DRIVER_DEFINES): Use it.
11212 (gencondmd.c): Move out of build/.
11213 (s-conditions): Update.
11214 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
11215 (ALL_BUILD_OBJS): Likewise.
11216 (build/%.o): Use BUILDCOMPILE.
11217 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
11218 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
11219 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
11220 build/gencheck.o, build/gencodes.o, build/genconditions.o,
11221 build/genconfig.o, build/genconstants.o, build/genemit.o,
11222 build/genextract.o, build/genflags.o, build/genmddeps.o,
11223 build/genopinit.o, build/genoutput.o, build/genpeep.o,
11224 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
11225 build/gen-protos.o, build/scan.o, build/fix-header.o,
11226 build/scan-decls.o): Simplify.
11227 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
11228 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
11229 prefix.o, toplev.o): Reduce to variable setting.
11230 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
11231 ($(out_object_file), gcc-options.o): New targets.
11232 ($(ALL_HOST_OBJS)): New target. Include dependency files.
11233 * configure: Rebuilt.
11234 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
11235 * doc/sourcebuild.texi (Front End Directory): Document new variable.
11237 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
11239 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
11240 complain when we hit an error, return ERROR_MARK_NODE.
11242 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
11244 * config/sh/constraints.md (Pso, Psz): New constraints.
11245 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
11246 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
11248 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
11250 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
11251 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
11253 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
11255 * config/sh/sh.md (prefetch): Add condition for SH2A target.
11256 (prefetch_sh2a): New.
11258 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
11259 Naveen.H.S <naveen.hs@kpitcummins.com>
11261 * config/sh/constraints.md (I28): New constraint.
11262 * config/sh/sh.c (broken_move): Add support for movi20s.
11263 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
11265 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
11266 Jayant Sonar <Jayant.sonar@kpitcummins.com>
11267 Naveen.H.S <naveen.hs@kpitcummins.com>
11269 * config/sh/sh.c (SH_ATTRIBUTES): Define.
11270 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
11271 (print_operand): Handle resbank in %@ operand code.
11272 (sh_encode_section_info): New.
11273 (push_regs): Add conditions for resbank.
11274 (sh_expand_epilogue): Likewise.
11275 (sh_insert_attributes): Likewise.
11276 (sh_attribute_table): Likewise.
11277 (sh_handle_resbank_handler_attribute): New.
11278 (sh2a_handle_function_vector_handler_attribute): New.
11279 (sh2a_is_function_vector_call): New.
11280 (sh2a_get_function_vector_number): New.
11281 (sh2a_function_vector_p): New.
11282 (sh_cfun_resbank_handler_p): New.
11283 * config/sh/sh.md (calli): Emit jsr/n if possible.
11284 (calli_tbr_rel): New.
11285 (calli_pcrel): Emit jsr/n if possible.
11286 (return_i): Emit rts/n if possible.
11287 (call_valuei_tbr_rel): New.
11288 (call_valuei_pcrel): Add condition for SH2A target.
11289 (call_value): Likewise.
11290 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
11291 (sh2a_get_function_vector_number): Likewise.
11292 (sh2a_is_function_vector_call): Likewise.
11293 * doc/extend.texi: Document TBR relative addressing of SH2A.
11294 (resbank): Add description for SH2A.
11296 2008-03-24 Richard Guenther <rguenther@suse.de>
11299 * gimplify.c (gimplify_modify_expr): For frontend type-correct
11300 pointer assignments change conversions according to middle-end rules.
11301 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
11302 * configure.ac: Include type checking in yes.
11303 * configure: Regenerate.
11305 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11307 * diagnostic.c (diagnostic_count_diagnostic): Delete.
11308 (diagnostic_report_diagnostic): Update. Handle ICEs here.
11310 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
11312 * gthr-vxworks.h (UNUSED): Define.
11314 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
11316 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
11318 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
11320 * doc/extend.texi (Function Attributes): Add missing comma in the
11321 example of the "alloc_size" attribute.
11323 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
11326 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
11328 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
11331 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
11334 * stor-layout.c (update_alignment_for_field): Set minimum alignment
11335 of the underlying type of a MS bitfield layout to the natural
11336 alignment of the type.
11338 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
11340 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
11341 to their natural alignment to avoid store forwarding stalls.
11343 2008-03-22 Richard Guenther <rguenther@suse.de>
11345 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
11346 For PHI nodes verify the address is invariant.
11347 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
11348 (get_symbol_constant_value): Use is_gimple_min_invariant.
11349 (maybe_fold_stmt_indirect): Likewise.
11351 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
11353 PR rtl-optimization/33927
11354 * Makefile.in (dse.o): Depend on $(TM_P_H).
11355 * expr.h (extract_low_bits): Declare.
11356 * expmed.c (extract_low_bits): New function.
11357 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
11358 * dse.c: Include tm_p.h.
11359 (find_shift_sequence): Remove the read_reg argument and return the
11360 read value. Emit the instructions instead of returning them.
11361 Iterate on new_mode rather than calculating it each time.
11362 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
11363 source to NEW_MODE and extract_low_bits to convert the shifted
11364 value to READ_MODE.
11365 (replace_read): Allow the load and store to have different mode
11366 classes. Use extract_low_bits when SHIFT == 0. Create the shift
11367 or extraction instructions before trying the replacement. Update
11368 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
11370 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
11372 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
11373 to their natural alignment to avoid store forwarding stalls.
11375 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
11378 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
11379 encouraging but not allowing gprs for input;
11380 change the input constraint to !f#r.
11381 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
11383 change the output constraint to !f#r.
11385 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
11388 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
11389 corresponding post-reload splitters.
11390 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
11391 when x87 FP math is selected.
11392 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
11393 New function prototype.
11394 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
11395 unreachable function to ease macroization of insn patterns.
11397 2008-03-21 Martin Jambor <mjambor@suse.cz>
11399 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
11400 reference dumps if ddr is NULL or dependence is unknown.
11402 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
11404 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
11405 unsigned extension into account.
11406 (ATOMIC_COMPARE_AND_SWAP): Likewise.
11407 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
11408 Do computations on a scratch register.
11410 2008-03-21 Richard Guenther <rguenther@suse.de>
11412 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
11413 Use is_gimple_min_invariant instead of TREE_INVARIANT.
11414 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
11415 * tree-ssa-dom.c (record_equality): Likewise.
11416 * tree-inline.c (copy_body_r): Likewise.
11417 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
11420 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
11422 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
11423 as 'delete_unused' argument.
11425 2008-03-20 Richard Guenther <rguenther@suse.de>
11427 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
11428 special casing of constant qualifiers.
11429 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
11430 care about them in general.
11431 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
11432 regardless of their type.
11433 (fold_stmt_r): Forcefully fold *& if we end up with that.
11435 2008-03-20 Paul Brook <paul@codesourcery.com>
11437 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
11438 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
11440 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
11442 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
11443 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
11445 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
11447 * common.opt (Wmudflap): New option.
11448 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
11449 (mx_register_decls): Likewise.
11450 (mudflap_finish_file): Likewise.
11451 * doc/invoke.texi: Document -Wno-mudflap.
11453 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
11455 * c-format.c (replace_format_name_to_system_name): New.
11456 (cmp_attribs): New.
11457 (convert_format_name_to_system_name): New.
11458 (decode_format_attr): Add use of convert_format_name_to_system_name.
11459 (format_types_orig): Add gnu_ prefix to names.
11460 (check_format_info_main): Special treating of \0 escaped names for
11461 supporting multi-character format specifiers as I32, I64.
11462 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
11463 (gnu_target_overrides_format_attributes): New.
11464 * c-format.h: Add structure target_ovr_attr to hold
11465 system specific formatter names.
11466 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
11467 msformat-c.o file to c_target_objs and cxx_target_objs.
11468 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
11469 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
11470 (TARGET_N_FORMAT_TYPES): New.
11471 * config/i386/msformat-c.c: New.
11472 * config/i386/t-cygming: Add build rule for msformat-c.o.
11473 * doc/extend.texi: Add new format names gnu_* and ms_* and
11475 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
11477 2008-03-20 Ira Rosen <irar@il.ibm.com>
11479 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
11480 optimizations turned on under -O3.
11481 (ftree-vectorize): Add that the flag is turned on with -O3.
11483 2008-03-20 Ben Elliston <bje@au.ibm.com>
11485 * regmove.c (try_auto_increment): Fix spelling error in comment.
11486 * final.c (final_scan_insn): Likewise.
11488 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
11491 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
11492 allocator preferences for "y" and "r" class registers.
11493 ("*mov<mode>_internal"): Ditto.
11494 ("*movv2sf_internal_rex64"): Ditto.
11495 ("*movv2sf_internal"): Ditto.
11497 2008-03-19 Michael Matz <matz@suse.de>
11499 PR middle-end/35616
11500 * calls.c (expand_call): Check overlap of arguments with call
11501 address for sibcalls.
11503 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
11506 * stor-layout.c (update_alignment_for_field): Set minimum alignment
11507 of the underlying type of a MS bitfield layout to the natural
11508 alignment of the type.
11510 2008-03-19 Jan Hubicka <jh@suse.cz>
11513 * toplev.c (decode_d_option): Handle all CPP flags.
11514 * tree-vrp.c: Update tree_pass descriptors.
11515 * regrename.c: Update tree_pass descriptors.
11516 * fwprop.c: Update tree_pass descriptors.
11517 * doc/invoke.texi: Remove documentation of dropped -d? flags.
11518 * tree-into-ssa.c: Update tree_pass descriptors.
11519 * tree-dump.c: Update tree_pass descriptors.
11520 * tree-complex.c: Update tree_pass descriptors.
11521 * tree-dump.h: Update tree_pass descriptors.
11522 * see.c: Update tree_pass descriptors.
11523 * cgraphbuild.c: Update tree_pass descriptors.
11524 * tracer.c: Update tree_pass descriptors.
11525 * tree-loop-distribution.c: Update tree_pass descriptors.
11526 * cgraph.c: Update tree_pass descriptors.
11527 * postreload-gcse.c: Update tree_pass descriptors.
11528 * postreload.c: Update tree_pass descriptors.
11529 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
11530 * tree-tailcall.c: Update tree_pass descriptors.
11531 * tree-pass.h (tree_opt_pass): Rename to ...
11532 (opt_pass) ... this one; add "type" field and remove letter field.
11533 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
11534 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
11535 all_lowering_passes): Update declaration.
11536 * ipa-cp.c: Update tree_pass descriptors.
11537 * final.c: Update tree_pass descriptors.
11538 * omp-low.c: Update tree_pass descriptors.
11539 * tree-ssa-dse.c: Update tree_pass descriptors.
11540 * ipa-reference.c: Update tree_pass descriptors.
11541 * tree-ssa-uncprop.c: Update tree_pass descriptors.
11542 * auto-inc-dec.c: Update tree_pass descriptors.
11543 * reorg.c: Update tree_pass descriptors.
11544 * cgraphunit.c: Update tree_pass descriptors.
11545 * tree-ssa-copyrename.c: Update tree_pass descriptors.
11546 * tree-ssa-ccp.c: Update tree_pass descriptors.
11547 * df-core.c: Update tree_pass descriptors.
11548 * mode-switching.c: Update tree_pass descriptors.
11549 * tree-nomudflap.c: Update tree_pass descriptors.
11550 * modulo-sched.c: Update tree_pass descriptors.
11551 * ipa-pure-const.c: Update tree_pass descriptors.
11552 * cse.c: Update tree_pass descriptors.
11553 * web.c: Update tree_pass descriptors.
11554 * tree-stdarg.c: Update tree_pass descriptors.
11555 * tree-ssa-math-opts.c: Update tree_pass descriptors.
11556 * tree-ssa-dom.c: Update tree_pass descriptors.
11557 * tree-nrv.c: Update tree_pass descriptors.
11558 * tree-ssa-alias.c: Update tree_pass descriptors.
11559 * loop-init.c: Update tree_pass descriptors.
11560 * gimple-low.c: Update tree_pass descriptors.
11561 * ipa-inline.c: Update tree_pass descriptors.
11562 * tree-ssa-sink.c: Update tree_pass descriptors.
11563 * global.c: Update tree_pass descriptors.
11564 * ifcvt.c: Update tree_pass descriptors.
11565 * jump.c: Update tree_pass descriptors.
11566 * predict.c: Update tree_pass descriptors.
11567 * tree-ssa-loop.c: Update tree_pass descriptors.
11568 * recog.c: Update tree_pass descriptors.
11569 * dse.c: Update tree_pass descriptors.
11570 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
11571 * tree-eh.c: Update tree_pass descriptors.
11572 * regmove.c: Update tree_pass descriptors.
11574 * function.c: Update tree_pass descriptors.
11575 * tree-vectorizer.c: Update tree_pass descriptors.
11576 * gcse.c: Update tree_pass descriptors.
11577 * ipa-type-escape.c: Update tree_pass descriptors.
11578 * tree-if-conv.c: Update tree_pass descriptors.
11579 * init-regs.c: Update tree_pass descriptors.
11580 * ipa.c: Update tree_pass descriptors.
11581 * tree-ssa-phiopt.c: Update tree_pass descriptors.
11582 * rtl-factoring.c: Update tree_pass descriptors.
11583 * lower-subreg.c: Update tree_pass descriptors.
11584 * bt-load.c: Update tree_pass descriptors.
11585 * tree-dfa.c: Update tree_pass descriptors.
11586 * except.c: Update tree_pass descriptors.
11587 * emit-rtl.c: Update tree_pass descriptors.
11588 * cfgexpand.c: Update tree_pass descriptors.
11589 * tree-cfgcleanup.c: Update tree_pass descriptors.
11590 * cfgcleanup.c: Update tree_pass descriptors.
11591 * tree-ssa-pre.c: Update tree_pass descriptors.
11592 * tree-sra.c: Update tree_pass descriptors.
11593 * tree-mudflap.c: Update tree_pass descriptors.
11594 * tree-ssa-copy.c: Update tree_pass descriptors.
11595 * cfglayout.c: Update tree_pass descriptors.
11596 * tree-ssa-forwprop.c: Update tree_pass descriptors.
11597 * tree-ssa-dce.c: Update tree_pass descriptors.
11598 * tree-ssa.c: Update tree_pass descriptors.
11599 * regclass.c: Update tree_pass descriptors.
11600 * integrate.c: Update tree_pass descriptors.
11601 * tree-optimize.c: Update tree_pass descriptors.
11602 * tree-ssa-phiprop.c: Update tree_pass descriptors.
11603 * tree-object-size.c: Update tree_pass descriptors.
11604 * combine.c: Update tree_pass descriptors.
11605 * tree-outof-ssa.c: Update tree_pass descriptors.
11606 * bb-reorder.c: Update tree_pass descriptors.
11607 * stack-ptr-mod.c: Update tree_pass descriptors.
11608 * var-tracking.c: Update tree_pass descriptors.
11609 * tree-profile.c: Update tree_pass descriptors.
11610 * tree-vect-generic.c: Update tree_pass descriptors.
11611 * reg-stack.c: Update tree_pass descriptors.
11612 * sched-rgn.c: Update tree_pass descriptors.
11613 * tree-ssa-structalias.c: Update tree_pass descriptors.
11614 * tree-cfg.c: Update tree_pass descriptors.
11615 * passes.c (current_pass): Update declaration.
11616 (finish_optimization_passes): Update.
11617 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
11618 (register_one_dump_file, register_dump_files_1, next_pass_1):
11620 (init_optimization_passes): Update handling of new types.
11621 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
11622 * ipa-struct-reorg.c: Update tree_pass descriptors.
11623 * tree-ssa-reassoc.c: Update tree_pass descriptors.
11624 * combine-stack-adj.c: Update tree_pass descriptors.
11625 * cfgrtl.c: Update tree_pass descriptors.
11626 * dce.c: Update tree_pass descriptors.
11627 * tree-ssanames.c: Update tree_pass descriptors.
11629 2008-03-19 Richard Guenther <rguenther@suse.de>
11631 PR middle-end/35609
11632 * tree-ssa.c (walk_data): New structure.
11633 (warn_uninitialized_var): If not always_executed warn with "maybe"
11635 (execute_early_warn_uninitialized): Compute post-dominators.
11636 Initialize always_executed before processing each basic block.
11638 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
11641 * config/i386/i386.c (x86_this_parameter): Calculate correct location
11642 of "this" pointer when "regparm = N" or "fastcall" is in effect.
11644 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11646 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
11648 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
11650 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
11652 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
11653 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
11654 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
11655 target after ignore has been set, and move there also the commputation
11656 of subtarget and original_target.
11657 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
11658 (LANG_HOOKS_INITIALIZER): Remove it.
11659 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
11661 2008-03-18 Richard Guenther <rguenther@suse.de>
11663 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
11664 found an expression with constants, note that in the VN for the lhs.
11665 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
11666 fold them to constants if possible. Run cleanup_cfg if done so.
11667 (execute_pre): Return todo.
11668 (do_pre): Likewise.
11669 (execute_fre): Likewise.
11670 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
11672 (get_prop_source_stmt): Look through pointer conversions.
11674 2008-03-18 Jan Hubicka <jh@suse.cz>
11676 * tree-pretty-print.c: Include predict.h.
11677 (dump_generic_node): Dump predictor.
11678 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
11679 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
11680 * gimple-low.c (lower_stmt): Likewise.
11681 * expr.c (expand_expr_real): Likewise.
11682 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
11684 (build_predict_expr, build_predict_expr): New.
11685 * predict.h (predictor_name, build_predict_expr): Update.
11686 * c-typeck.c (c_finish_bc_stmt): Add prediction.
11687 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
11688 * predict.def (PRED_CONTINUE): Update hitrate.
11689 * tree.def (PREDICT_EXPR): Define.
11690 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
11691 do not handle BIND_EXPR.
11692 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
11693 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
11694 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
11697 2008-03-18 Michael Matz <matz@suse.de>
11699 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
11701 2008-03-18 Richard Guenther <rguenther@suse.de>
11703 * tree-gimple.h (is_gimple_invariant_address): Declare.
11704 (is_gimple_constant): Likewise.
11705 * tree-gimple.c (is_gimple_constant): New function.
11706 (is_gimple_invariant_address): Likewise.
11707 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
11708 and is_gimple_invariant_address.
11709 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
11711 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
11712 an addressable base.
11714 2008-03-18 Jakub Jelinek <jakub@redhat.com>
11716 PR middle-end/35611
11717 * gimplify.c (gimplify_expr): Gimplify second operand of
11720 2008-03-17 Richard Guenther <rguenther@suse.de>
11722 PR tree-optimization/19637
11723 * fold-const.c (fold_unary): Remove restrictions of removing
11724 intermediate pointer-conversions (P2)(P1)P0.
11725 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
11726 conversion to void pointer.
11727 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
11729 2008-03-16 James E. Wilson <wilson@tuliptree.org>
11732 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
11733 emulated thread local variables.
11735 2008-03-16 Richard Guenther <rguenther@suse.de>
11737 PR middle-end/35607
11738 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
11739 expand TREE_INVARIANT operations that are not gimple invariant.
11741 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
11743 * doc/extend.texi (Alignment): Say that the ABI controls
11744 the __alignof__ for non-strict-alignment targets rather
11745 than being a recommendation.
11747 2008-03-15 Paul Brook <paul@codesourcery.com>
11749 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
11751 (arm_output_fn_unwind): Mark functions that can not be unwound.
11753 2008-03-15 Paul Brook <paul@codesourcery.com>
11755 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
11756 extension instructions.
11758 2008-03-15 Richard Guenther <rguenther@suse.de>
11760 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
11761 and fold constant aggregate refs.
11762 (fold_const_aggregate_ref): Handle string constants
11763 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
11764 (evaluate_stmt): Simplify now that ccp_fold folds constant
11767 2008-03-15 Paul Brook <paul@codesourcery.com>
11769 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
11770 (extzv): Use gen_extzv_t2.
11771 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
11773 2008-03-15 Richard Guenther <rguenther@suse.de>
11775 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
11776 (fold_const_aggregate_ref): Likewise.
11777 (get_value): Return NULL if we don't have any values.
11778 (ccp_finalize): Set const_val to NULL after freeing it.
11779 * tree-flow.h (get_symbol_constant_value): Declare.
11780 (fold_const_aggregate_ref): Likewise.
11781 * tree-ssa-sccvn.c (try_to_simplify): Use them.
11783 2008-03-15 Richard Guenther <rguenther@suse.de>
11785 PR middle-end/35593
11786 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
11787 to not produce negative array indices if not allowed. Add
11788 parameter to indicate that.
11789 (maybe_fold_offset_to_component_ref): Allow negative array
11790 indices only for the first member of a structure.
11791 (maybe_fold_offset_to_reference): Allow negative array indices.
11792 (maybe_fold_stmt_addition): Likewise.
11794 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
11795 Anatoly Sokolov <aesok@post.ru>
11797 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
11798 (avr_arch): Add ARCH_AVR6.
11799 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
11800 (initial_elimination_offset): Initialize and use 'avr_pc_size'
11801 instead of fixed value 2.
11802 (print_operand_address): Use gs() asm specifier instead of pm().
11803 (avr_assemble_integer): (Ditto.).
11804 (avr_output_addr_vec_elt): (Ditto.).
11805 (print_operand): Handle "!" code.
11806 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
11807 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
11808 (AVR_HAVE_EIJMP_EICALL): Define.
11809 (AVR_3_BYTE_PC): Redefine.
11810 (AVR_2_BYTE_PC): (Ditto.).
11811 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
11812 (LINK_SPEC): Add atmega2560 and atmega2561.
11813 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
11815 * config/avr/avr.md (call_insn): Use eicall instead of icall
11816 for 3 byte PC devices.
11817 (call_value_insn): (Ditto.).
11818 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
11819 (indirect_jump): Use only for for 2 byte PC devices.
11820 (*tablejump): (Ditto.).
11821 (*indirect_jump_avr6): Add insn.
11822 (*tablejump_rjmp): Don't use for 3 byte PC devices.
11823 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
11824 instead of ijmp for 3 byte PC devices.
11825 (__tablejump2__): (Ditto.).
11826 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
11827 (MULITLIB_DIRNAMES): (Ditto.).
11828 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
11830 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
11832 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
11833 "sse2_umulsidi3". Use V1DI mode for operand 0.
11834 ("mmx_psadbw"): Use V1DI mode for operand 0.
11835 * config/i386/i386-modes.def (V1SI): New vector mode.
11836 * config/i386/i386.c (struct builtin_description)
11837 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
11838 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
11839 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
11840 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
11841 v1di_ftype_v8qi_v8qi type.
11842 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
11844 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
11845 __builtin_ia32_pmuludq]: Fix the mode of return value.
11847 2008-03-15 Richard Guenther <rguenther@suse.de>
11849 PR middle-end/35595
11850 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
11853 2008-03-14 Bob Wilson <bob.wilson@acm.org>
11855 * doc/invoke.texi (Option Summary, Xtensa Options): Document
11856 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
11857 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
11858 unless TARGET_SERIALIZE_VOLATILE is enabled.
11859 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
11860 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
11861 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
11863 2008-03-14 Richard Guenther <rguenther@suse.de>
11865 PR tree-optimization/34172
11866 * tree-flow.h (refs_may_alias_p): Declare.
11867 (get_single_def_stmt): Likewise.
11868 (get_single_def_stmt_from_phi): Likewise.
11869 (get_single_def_stmt_with_phi): Likewise.
11870 * tree-dfa.c (refs_may_alias_p): New function.
11871 (get_single_def_stmt): Likewise.
11872 (get_single_def_stmt_from_phi): Likewise.
11873 (get_single_def_stmt_with_phi): Likewise.
11874 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
11875 (vn_reference_lookup_1): New helper function.
11876 (vn_reference_lookup): Walk the virtual use-def chain to
11877 continue searching for a match if the def does not alias the
11878 reference we are looking for.
11880 2008-03-14 David Edelsohn <edelsohn@gnu.org>
11882 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
11883 archive and Perzl. Update The Written Word listing.
11885 2008-03-14 Richard Guenther <rguenther@suse.de>
11887 PR tree-optimization/34043
11888 PR tree-optimization/33989
11889 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
11891 (bitmap_find_leader): Use extra argument to verify dominance
11892 relationship inside a basic-block.
11893 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
11894 (find_leader_in_sets): Adjust.
11895 (create_component_ref_by_pieces): Take extra argument for
11896 dominance check, handle lookup failures.
11897 (find_or_generate_expression): Likewise.
11898 (create_expression_by_pieces): Likewise.
11899 (insert_into_preds_of_block): Adjust.
11900 (create_value_expr_from): If asked for, verify all operands
11901 are in the blocks AVAIL_OUT set.
11902 (make_values_for_stmt): Check for SSA_NAMEs that are life
11903 over an abnormal edge.
11904 (compute_avail): Remove such check.
11905 (do_SCCVN_insertion): New function.
11906 (eliminate): If we do not find a leader suitable for replacement
11907 insert a replacement expression from SCCVN if available.
11908 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
11909 (struct vn_ssa_aux): Add needs_insertion flag.
11910 * tree-ssa-sccvn.c (may_insert): New global flag.
11911 (copy_reference_ops_from_ref): Value-number union member access
11912 based on its size, not type and member if insertion is allowed.
11913 (visit_reference_op_load): For a weak match from union type
11914 punning lookup a view-converted value and insert a SSA_NAME
11915 for that value if that is not found.
11916 (visit_use): Make dumps shorter. Do not disallow value numbering
11917 SSA_NAMEs that are life over an abnormal edge to constants.
11918 (free_scc_vn): Release inserted SSA_NAMEs.
11919 (run_scc_vn): New flag to specify whether insertion is allowed.
11920 Process SSA_NAMEs in forward order.
11921 * tree-ssa-loop-im.c (for_each_index): Handle invariant
11922 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
11923 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
11924 pointer type to/from integral types that do not change the
11925 precision to regular conversions.
11927 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
11929 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
11930 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
11931 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
11932 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
11933 input arguments and the mode of return value. Built-in functions
11934 that operate on whole 64-bit MMX register now use V1DI mode.
11936 2008-03-13 Alon Dayan <alond@il.ibm.com>
11937 Olga Golovanevsky <olga@il.ibm.com>
11939 PR tree-optimization/35041
11940 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
11941 to locate the right position in a statement.
11943 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
11947 * config/i386/xmmintrin.h: Change all static inline functions to
11948 extern inline and add __gnu_inline__ attribute.
11949 * config/i386/bmintrin.h: Ditto.
11950 * config/i386/smmintrin.h: Ditto.
11951 * config/i386/tmmintrin.h: Ditto.
11952 * config/i386/mmintrin-common.h: Ditto.
11953 * config/i386/ammintrin.h: Ditto.
11954 * config/i386/emmintrin.h: Ditto.
11955 * config/i386/pmmintrin.h: Ditto.
11956 * config/i386/mmintrin.h: Ditto.
11957 * config/i386/mm3dnow.h: Ditto.
11959 2008-03-13 Jakub Jelinek <jakub@redhat.com>
11961 PR middle-end/35185
11962 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
11963 (lower_omp_2): New function.
11964 (lower_omp_1, lower_omp): Rewritten.
11966 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
11969 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
11970 with the phrase "Microsoft Windows compilers".
11971 (Push/Pop Macro Pragmas): New subsection. Document
11972 #pragma push_macro and pragma pop_macro.
11974 2008-03-12 Paul Brook <paul@codesourcery.com>
11976 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
11978 2008-03-12 Paul Brook <paul@codesourcery.com>
11980 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
11981 (thumb2_alusi3_short): Exclude PLUS and MINUS.
11982 (thumb2_addsi_shortim): Rename ...
11983 (thumb2_addsi_short): ... to this. Allow register operands.
11984 (thumb2_subsi_short): New pattern.
11985 (thumb2_one_cmplsi2_short,
11986 thumb2_negsi2_short): New patterns and peepholes.
11988 2008-03-12 Paul Brook <paul@codesourcery.com>
11990 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
11992 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
11994 * config/i386/i386.md (int_cond): New code iterator.
11996 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
11997 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
11998 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
11999 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
12000 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
12001 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
12002 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
12003 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
12005 2008-03-12 Paul Brook <paul@codesourcery.com>
12007 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
12008 instead of {arm,thumb}_compute_save_reg_mask.
12009 (output_return_instruction): Ditto.
12010 (thumb_unexpanded_epilogue): Ditto.
12011 (thumb1_expand_prologue): Ditto.
12012 (thumb1_output_function_prologue): Ditto.
12013 (arm_set_return_address): Ditto.
12014 (thumb_set_return_address): Ditto.
12015 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
12016 regs to achieve stack alignment.
12017 (thumb1_compute_save_reg_mask): Fix compiler warning.
12018 (arm_output_epilogue): Use offsets->saved_regs_mask.
12019 Adjust stack pointer by poping call clobered registers.
12020 (arm_expand_prologue): Use offsets->saved_regs_mask.
12021 Adjust stack pointer by pushing extra registers.
12022 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
12024 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
12027 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
12028 conversion to the operands of a multiplication.
12030 2008-03-12 Richard Guenther <rguenther@suse.de>
12032 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
12033 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
12034 * timevar.def (TV_TREE_PHIPROP): Add.
12035 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
12036 pass description. Use TV_TREE_PHIPROP.
12037 * tree-ssa-forwprop.c: Remove phiprop code.
12039 2008-03-12 Jakub Jelinek <jakub@redhat.com>
12041 PR middle-end/35549
12042 * omp-low.c (maybe_lookup_decl): Constify first argument.
12043 (use_pointer_for_field): Change last argument from bool to
12044 omp_context *. Disallow shared copy-in/out in nested
12045 parallel if decl is shared in outer parallel too.
12046 (build_outer_var_ref, scan_sharing_clauses,
12047 lower_rec_input_clauses, lower_copyprivate_clauses,
12048 lower_send_clauses, lower_send_shared_vars): Adjust callers.
12050 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
12051 Ira Rosen <irar@il.ibm.com>
12053 * tree-vectorizer.c (free_stmt_vec_info): New function.
12054 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
12055 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
12056 * tree-vectorizer.h (free_stmt_vec_info): Declare.
12057 * tree-vect-transform.c (vectorizable_conversion): Free
12058 vec_oprnds0 if it was allocated.
12059 (vect_permute_store_chain): Remove unused VECs.
12060 (vectorizable_store): Free VECs that are allocated in the..
12062 (vect_transform_strided_load, vectorizable_load): Likewise.
12063 (vect_remove_stores): Simplify the code.
12064 (vect_transform_loop): Move code to vect_remove_stores().
12065 Call vect_remove_stores() and free_stmt_vec_info().
12067 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12069 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
12070 TARGET_HPUX. Revise comment.
12071 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
12072 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
12073 Use sr4 variant of `be' instruction when not generating PIC code.
12074 (attr_length_call): Adjust for above change.
12076 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
12078 * ipa-reference.c (static_execute): Remove module_statics_const and
12079 associated setting code.
12081 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
12084 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
12085 predicate for operand 1.
12086 (paritysi2_cmp): Use register_operand predicate for operand 2.
12087 Use earlyclobber modifier for operand 1. Remove support for
12089 (paritydi2_cmp): Use register_operand predicate for operand 3.
12090 Use earlyclobber modifier for operand 1. Remove support for
12093 2008-03-11 Paul Brook <paul@codesourcery.com>
12094 Vladimir Prus <vladimir@codesourcery.com>
12096 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
12097 (arm_compute_save_reg0_reg12_mask): Always
12098 check if register 11 must be saved. Always safe hard frame pointer
12099 when frame_pointer_needeed.
12100 (arm_compute_save_reg_mask): Save IP and PC
12101 only with apcs frames.
12102 (arm_output_epilogue): Adjust Thumb2 codepath to
12103 be also invoked and work for ARM non-apcs frames.
12104 (arm_expand_prologue): Don't bother saving IP
12105 for non-apcs frame, since it's not clobbered by
12106 prologue code. Implement non-apcs frame
12109 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
12111 PR rtl-optimization/35281
12112 * expr.c (convert_move): Use a new pseudo for the intermediate
12113 from_mode->word_mode result.
12115 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
12117 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
12118 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
12119 * toplev.c (compile_file): Don't call it.
12121 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
12123 PR middle-end/35526
12124 * expr.c (store_expr): Call emit_block_move if the mode
12125 of "temp" RTX is BLKmode.
12127 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
12128 Richard Guenther <rguenther@suse.de>
12130 PR tree-optimization/31358
12131 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
12132 the step with a NULL_TREE.
12133 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
12134 to sizetype if type is a pointer type.
12135 (add_candidate_1): Don't convert the base and step to
12136 the generic type if the orginal type is a pointer type.
12137 (add_iv_value_candidates): Use sizetype for the step
12138 if type is a pointer type.
12139 (cand_value_at): Likewise.
12140 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
12142 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
12143 Don't convert the tem affine to the type.
12144 (add_elt_to_tree): Use sizetype for the step if a pointer.
12145 Use POINTER_PLUS_EXPR for pointers.
12146 (aff_combination_to_tree): Use sizetype for the step if a
12149 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
12151 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
12152 Remove commutativity hint.
12154 2008-03-10 Jakub Jelinek <jakub@redhat.com>
12158 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
12159 errorneous type. Check that v is a VAR_DECL.
12161 PR middle-end/35099
12162 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
12164 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
12166 PR tree-optimization/35494
12167 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
12168 may be overriden at link and run time.
12170 2008-03-10 Richard Guenther <rguenther@suse.de>
12172 PR tree-optimization/34677
12173 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
12174 (poolify_tree): Likewise.
12175 (modify_expr_template): Likewise.
12176 (poolify_modify_stmt): Likewise.
12177 (insert_fake_stores): Handle all component-ref style stores
12178 in addition to INDIRECT_REF. Also handle complex types.
12179 Do not poolify the inserted load.
12180 (realify_fake_stores): Do not rebuild the tree but only
12181 make it a SSA_NAME copy.
12182 (init_pre): Remove initialzation of modify_expr_template.
12183 Do not allocate modify_expr_node_pool.
12184 (fini_pre): Do not free modify_expr_node_pool.
12186 2008-03-10 Paul Brook <paul@codesourcery.com>
12188 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
12189 to avoid conflicts.
12191 2008-03-10 Paul Brook <paul@codesourcery.com>
12192 Mark Shinwell <shinwell@codesourcery.com>
12194 * config/arm/cortex-r4.md: New.
12195 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
12197 * config/arm/arm.md: Include cortex-r4.md.
12198 (insn): Add smmls, sdiv and udiv values.
12199 (generic_sched): Don't use generic scheduling for Cortex-R4.
12200 (arm_issue_rate): New function.
12201 (TARGET_SCHED_ISSUE_RATE): Define.
12203 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
12205 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
12207 2008-03-10 Richard Guenther <rguenther@suse.de>
12209 * tree-ssa-pre.c (get_sccvn_value): Simplify.
12210 (compute_avail): Do not add stmt uses to AVAIL_OUT.
12212 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
12214 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
12215 Set default to true.
12217 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12219 * c.opt (Wsynth): Deprecate.
12220 * doc/invoke.texi (Option Summary, Warning Options): Document
12221 -Wno-format-contains-nul.
12223 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
12226 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
12227 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
12229 2008-03-09 Ira Rosen <irar@il.ibm.com>
12231 * config/rs6000/rs6000.c (builtin_description): Rename vector
12232 left shift operations.
12233 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
12234 (altivec_vsl<VI_char>): Rename to ...
12235 (ashl<mode>3): ... new name.
12236 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
12238 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
12240 2008-03-08 Richard Guenther <rguenther@suse.de>
12242 * coverage.h (tree_coverage_counter_addr): Declare.
12243 * coverage.c (tree_coverage_counter_addr): New function.
12244 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
12245 before using again.
12246 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
12247 (tree_gen_one_value_profiler): Likewise.
12248 (tree_gen_ic_profiler): Likewise.
12249 (tree_gen_average_profiler): Likewise.
12250 (tree_gen_ior_profiler): Likewise.
12252 2008-03-08 Richard Guenther <rguenther@suse.de>
12254 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
12255 (vn_binary_op_insert): Likewise.
12256 (vn_unary_op_lookup): Likewise.
12257 (vn_unary_op_insert): Likewise.
12258 (vn_nary_op_lookup): Declare.
12259 (vn_nary_op_insert): Likewise.
12260 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
12261 and binary hashes, use a single obstack for unary_op_pool
12262 and binary_op_pool.
12263 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
12264 a single struct vn_nary_op_s. Store tree code length and
12265 a variable number of operands.
12266 (struct vn_reference_op_struct): Remove unused op2.
12267 (vn_reference_op_eq): Do not compare op2.
12268 (vn_reference_op_compute_hash): Do not compute hash of op2.
12269 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
12270 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
12271 with vn_nary_op_compute_hash.
12272 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
12273 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
12275 (vn_unary_op_insert, vn_binary_op_insert): Replace with
12277 (visit_unary_op): Call nary functions.
12278 (visit_binary_op): Likewise.
12279 (process_scc): Adjust for struct vn_tables_s changes.
12280 (allocate_vn_table): Likewise.
12281 (free_vn_table): Likewise.
12282 * tree-vn.c (vn_add): Call nary functions.
12283 (vn_lookup): Likewise.
12285 2008-03-08 Jakub Jelinek <jakub@redhat.com>
12288 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
12289 wdst back after sync_compare_and_swapqhi_internal.
12291 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
12294 * config/i386/i386-modes.def (V1DI): New vector mode.
12295 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
12296 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
12297 (MMXMODE248): Ditto.
12298 (MMXMODE): Add V1DI mode.
12299 (mmxvecsize): Change DI mode to V1DI mode.
12300 ("mov<mode>): Use MMXMODEI8 mode iterator.
12301 ("*mov<mode>_internal_rex64"): Ditto.
12302 ("*mov<mode>_internal"): Ditto.
12303 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
12304 ("mmx_sub<mode>3"): Ditto.
12305 ("mmx_adddi3"): Remove insn pattern.
12306 ("mmx_subdi3"): Ditto.
12307 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
12308 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
12309 ("mmx_ashl<mode>3"): Ditto.
12310 ("mmx_lshrdi3"): Remove insn pattern.
12311 ("mmx_ashldi3"): Ditto.
12312 * config/i386/i386.c (classify_argument): Handle V1DImode.
12313 (function_arg_advance_32): Ditto.
12314 (function_arg_32): Ditto.
12315 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
12316 mmx_addv1di3 insn pattern.
12317 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
12318 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
12319 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
12320 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
12321 Remove definitions of built-in functions.
12322 (V1DI_type_node): New node.
12323 (v1di_ftype_v1di_int): Ditto.
12324 (v1di_ftype_v1di_v1di): Ditto.
12325 (v2si_ftype_v2si_si): Ditto.
12326 (v4hi_ftype_v4hi_di): Remove node.
12327 (v2si_ftype_v2si_di): Ditto.
12328 (ix86_init_mmx_sse_builtins): Handle V1DImode.
12329 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
12330 Redefine builtins using def_builtin_const with *_ftype_*_int node.
12331 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
12332 Add new builtins using def_builtin_const.
12333 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
12334 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
12335 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
12336 * config/i386/mmintrin.h (__v1di): New typedef.
12337 (_mm_add_si64): Cast arguments to __v1di type.
12338 (_mm_sub_si64): Ditto.
12339 (_mm_sll_pi16): Cast __count to __v4hi type.
12340 (_mm_sll_pi32): Cast __count to __v2si type.
12341 (_mm_sll_si64): Cast arguments to __v1di type.
12342 (_mm_srl_pi16): Cast __count to __v4hi type.
12343 (_mm_srl_pi32): Cast __count to __v2si type.
12344 (_mm_srl_si64): Cast arguments to __v1di type.
12345 (_mm_sra_pi16): Cast __count to __v4hi type.
12346 (_mm_sra_pi32): Cast __count to __v2si type.
12347 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
12348 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
12349 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
12350 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
12351 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
12352 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
12353 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
12354 (_mm_srai_pi32): Use __builtin_ia32_psradi.
12355 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
12356 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
12357 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
12358 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
12360 2008-03-07 Joseph Myers <joseph@codesourcery.com>
12362 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
12364 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
12367 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
12368 reg+const addressing for Altivec modes. Don't generate reg+reg
12369 addressing for TFmode or TDmode quantities.
12371 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
12373 * c-common.c (vector_types_convertible_p): Call langhook
12374 instead of comptypes.
12376 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
12379 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
12380 integral and scalar float variables which have a
12383 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
12385 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
12386 dwarf_register_span hook when emitting unwind information for
12387 register-to-memory saves.
12388 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
12389 (rs6000_frame_related): Remove call to spe_synthesize_frame.
12391 2008-03-06 Jakub Jelinek <jakub@redhat.com>
12393 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
12394 for the same VAR_DECL.
12396 2008-03-06 Tom Tromey <tromey@redhat.com>
12398 * treelang: Delete.
12399 * doc/standards.texi (Standards): Don't mention treelang.
12400 * doc/invoke.texi (Overall Options): Don't mention treelang.
12401 * doc/install.texi (Prerequisites): Don't mention bison or
12403 (Configuration): Don't mention treelang.
12404 (Building): Likewise.
12405 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
12407 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
12409 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
12410 word-extractions out of a multi-word object.
12412 2008-03-06 Richard Guenther <rguenther@suse.de>
12414 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
12415 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
12416 result type and precision.
12417 * expr.c (get_inner_reference): Set unsignedp based on the result
12418 type of BIT_FIELD_REF.
12419 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
12420 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
12421 (try_instantiate_multiple_fields): Likewise. Use the correct type
12423 (sra_build_assignment): Likewise.
12424 (sra_build_elt_assignment): Likewise.
12425 (sra_explode_bitfield_assignment): Likewise.
12426 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
12427 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
12428 set BIT_FIELD_REF_UNSIGNED.
12429 (vectorizable_load): Likewise.
12431 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
12433 * cse.c (cse_extended_basic_block): Invalidate artificial defs
12436 2008-03-06 Richard Guenther <rguenther@suse.de>
12438 * alias.c (struct alias_set_entry): Move has_zero_child field
12439 to pack with alias_set.
12441 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
12443 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
12446 2008-03-05 Ian Lance Taylor <iant@google.com>
12448 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
12450 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
12452 * fwprop.c (update_df): Support width and offset parameters of
12454 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
12455 global_conflicts): Change DF_REF_EXTRACT to either
12456 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
12457 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
12458 * df-scan.c (df_ref_record, df_defs_record,
12459 df_ref_create_structure, df_def_record_1, df_uses_record,
12460 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
12461 df_bb_refs_collect, df_entry_block_defs_collect,
12462 df_exit_block_uses_collect): Support new width and offset fields.
12463 (ref_extract_pool): New storage pool.
12464 (df_free_ref): New function.
12465 (df_reg_chain_unlink, df_free_collection_rec,
12466 df_sort_and_compress_refs): Call df_free_ref.
12467 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
12469 (df_ref_create_structure): Allocate df_ref_extract if offset and
12470 width fields are used.
12471 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
12472 (df_uses_record): Get offset and width from ZERO_EXTRACT
12474 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
12475 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
12476 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
12477 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
12478 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
12479 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
12480 (df_ref_extract): New structure.
12481 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
12482 (df_ref_create): Add width and offset parameters.
12484 2008-03-05 Richard Guenther <rguenther@suse.de>
12486 * tree-ssa-structalias.c (get_constraint_for_component_ref):
12487 Use ranges_overlap_p.
12488 (offset_overlaps_with_access): Rename
12489 to ranges_overlap_p and move ...
12490 * tree-flow-inline.h (ranges_overlap_p): ... here.
12492 * tree.h (get_inner_reference, handled_component_p): Update
12495 * tree.h (record_component_aliases, get_alias_set,
12496 alias_sets_conflict_p, alias_sets_must_conflict_p,
12497 objects_must_conflict_p): Move declarations ...
12498 * alias.h (record_component_aliases, get_alias_set,
12499 alias_sets_conflict_p, alias_sets_must_conflict_p,
12500 objects_must_conflict_p): ... here.
12501 Include coretypes.h.
12502 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
12504 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
12506 * cfg.c: Include tree-flow.h.
12507 (remove_edge_raw): Call redirect_edge_var_map_clear.
12508 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
12509 * tree-flow-inline.h (redirect_edge_var_map_def): New.
12510 (redirect_edge_var_map_result): New.
12511 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
12512 PENDING_STMT use with redirect_edge_var_map_*.
12513 * tree-ssa.c (edge_var_maps): New definition.
12514 (redirect_edge_var_map_add): New.
12515 (redirect_edge_var_map_clear): New.
12516 (redirect_edge_var_map_dup): New.
12517 (redirect_edge_var_map_vector): New.
12518 (redirect_edge_var_map_destroy): New.
12519 (ssa_redirect_edge): Replace PENDING_STMT use with
12520 redirect_edge_var_map_*.
12521 (flush_pending_stmts): Same.
12522 (delete_tree_ssa): Destroy edge var map.
12523 * tree-flow.h (struct _edge_var_map): New.
12524 Define edge_var_map vector type.
12525 Declare redirect_edge_var_map_* prototypes.
12526 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
12527 * tree-cfg.c (reinstall_phi_args): Replace
12528 PENDING_STMT use with redirect_edge_var_map_*.
12530 2008-03-05 Richard Guenther <rguenther@suse.de>
12532 PR tree-optimization/35472
12533 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
12534 whose single use_stmt has a overlapping set of loaded and
12535 stored symbols as that use_stmt might be a noop assignment then.
12537 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
12539 * gthr-rtems.h: Implement __gthread_mutex_destroy.
12541 2008-03-05 Richard Guenther <rguenther@suse.de>
12544 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
12545 should be constants.
12546 * tree-cfg.c (verify_expr): Verify it.
12547 * fold-const.c (fold_truthop): Remove code generating
12548 BIT_FIELD_REFs of structure bases.
12549 (fold_binary): Likewise.
12550 (fold_ternary): Position and size of BIT_FIELD_REFs are
12551 always host integers.
12552 (make_bit_field_ref): Remove.
12553 (optimize_bit_field_compare): Remove.
12554 (all_ones_mask_p): Remove.
12556 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
12559 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
12560 (split_block_and_df_analyze): New. Split basic block and rebuild
12562 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
12564 (split_pattern_seq): Likewise.
12565 (erase_matching_seqs): Likewise.
12566 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
12568 2008-03-04 Geoff Keating <geoffk@apple.com>
12570 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
12571 declaration and code.
12572 (tree_invalid_nonnegative_warnv_p): Likewise.
12574 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
12576 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
12577 examples. Truncate option-names then causing overfull hbox.
12579 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12582 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
12584 * configure: Rebuilt.
12586 2008-03-04 Rafael Espindola <espindola@google.com>
12588 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
12589 (tree_unary_nonnegative_warnv_p): New.
12590 (tree_binary_nonnegative_warnv_p): New.
12591 (tree_single_nonnegative_warnv_p): New.
12592 (tree_invalid_nonnegative_warnv_p): New.
12593 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
12595 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12598 * opts.c (handle_option): Postpone 'unknown option' errors only for
12601 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
12604 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
12607 2008-03-04 Rafael Espindola <espindola@google.com>
12609 * fold-const.c (tree_unary_nonzero_warnv_p): New.
12610 (tree_binary_nonzero_warnv_p): New.
12611 (tree_single_nonzero_warnv_p): New.
12612 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
12614 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
12616 PR middle-end/35456
12617 * fold-const.c (fold_cond_expr_with_comparison): Prevent
12618 transformations for modes that have signed zeros.
12619 * ifcvt.c (noce_try_abs): Ditto.
12621 2008-03-04 Joseph Myers <joseph@codesourcery.com>
12623 * config/i386/i386.c (override_options): Force
12624 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
12626 2008-03-04 Jan Hubicka <jh@suse.cz>
12629 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
12632 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
12634 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
12635 label to probe the stack.
12637 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
12639 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
12640 (__gthr_win32_mutex_destroy): Declare.
12641 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
12642 __gthr_win32_mutex_destroy.
12643 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
12645 2008-03-03 Jan Hubicka <jh@suse.cz>
12648 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
12649 aggressive on inlining cold calls.
12651 2008-03-03 Richard Guenther <rguenther@suse.de>
12653 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
12654 struct copies into the expression table.
12655 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
12656 (try_to_simplify): Likewise.
12657 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
12658 integral and pointer arguments which do not change the
12659 precision to NOP_EXPRs.
12660 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
12661 VIEW_CONVERT_EXPR case.
12663 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
12665 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
12666 defined in a loop at depth 0 is invariant.
12667 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
12668 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
12669 be called at loop depth 0.
12671 2008-03-02 Jakub Jelinek <jakub@redhat.com>
12674 * gcc.c (process_command): Update copyright notice dates.
12675 * gcov.c (print_version): Likewise.
12676 * gcov-dump.c (print_version): Likewise.
12677 * mips-tfile.c (main): Likewise.
12678 * mips-tdump.c (main): Likewise.
12680 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12683 * c-common.c (flag_permissive): Delete.
12684 (constant_expression_warnings): Check flags first.
12685 (constant_expression_error): New.
12686 * c-common.h (flag_permissive): Delete.
12687 (constant_expression_error): Declare.
12688 * flags.h (flag_permissive): Declare. Update description.
12689 * diagnostic.c (pedwarn): Update.
12691 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
12692 (permissive_error_kind): New.
12693 * toplev.c (flag_permissive): Define. Update description.
12694 * toplev.h (permissive_error_kind): Declare.
12695 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
12696 (pedwarn_c90): Use pedantic_warning_kind.
12697 * c-opts.c (c_common_post_options): flag_permissive does not affect
12698 flag_pedantic_errors.
12700 2008-03-02 Joseph Myers <joseph@codesourcery.com>
12702 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
12703 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
12704 __absvsi2, __absvDI2): Use unsigned arithmetic.
12706 2008-03-02 Andi Kleen <ak@suse.de>
12707 Richard Guenther <rguenther@suse.de>
12709 * struct-equiv.c: Remove file.
12710 * cfg_cleanup.c (condjump_equiv_p): Remove.
12711 * Makefile.in (OBJS-common): Remove struct-equiv.o.
12712 (struct-equiv.o): Remove rule.
12713 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
12714 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
12715 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
12717 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
12719 * ifcvt.c (noce_process_if_block): Try to handle only the then
12720 block if the else block exists but isn't suitable.
12722 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
12725 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
12726 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
12727 regression from previous patch.
12729 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
12732 * gthr.h: Add __gthread_mutex_destroy as a function that must be
12734 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
12735 * gthr-single.h (__gthread_mutex_destroy): Likewise.
12736 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
12737 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
12738 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
12739 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
12740 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
12741 (__gthread_mutex_destroy_function): Rename to
12742 __gthread_mutex_destroy.
12743 * gthr-dce.h (__gthread_mutex_destroy): Call
12744 pthread_mutex_destroy.
12745 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
12746 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
12747 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
12749 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
12751 * df-scan.c (df_ref_chain_change_bb): Simplify.
12752 (df_insn_change_bb): Add new_bb argument. Simplify. Call
12753 set_block_for_insn if there's any change.
12754 * df.h ((df_insn_change_bb): Fix prototype.
12755 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
12756 df_insn_change_bb, don't call set_block_for_insn.
12757 * emit-rtl.c (reorder_insns): Likewise.
12758 * haifa-sched.c (move_insn): Likewise.
12760 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
12762 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
12764 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
12766 * tree-flow-inline.h (next_readonly_imm_use): Return
12767 NULL_USE_OPERAND_P after the end.
12769 2008-03-01 Richard Guenther <rguenther@suse.de>
12771 PR tree-optimization/35411
12772 * tree-sra.c (sra_build_assignment): Split conversion to
12773 final type to a separate statement if we are not assigning
12776 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12778 * fold-const.c (fold_convertible_p): Correct the logic to follow
12779 that in fold_convert().
12781 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
12784 * tree-inline.c (build_duplicate_type): When we make a
12785 duplicate type, make it unique in the canonical types system.
12787 2008-02-29 Tom Tromey <tromey@redhat.com>
12789 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
12790 input_file_stack_history, input_file_stack_restored): Remove.
12791 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
12792 * input.h (struct file_stack): Remove.
12793 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
12794 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
12796 * diagnostic.h (struct diagnostic_context) <last_module>: Change
12798 (diagnostic_last_module_changed): Add 'map' argument.
12799 (diagnostic_set_last_function): Likewise.
12800 * diagnostic.c (undiagnostic_report_current_module): Iterate using
12801 line map, not input_file_stack.
12802 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
12804 2008-02-29 Paul Brook <paul@codesourcery.com>
12806 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
12808 2008-02-29 Paul Brook <paul@codesourcery.com>
12810 * config/arm/ieee754-df.S (muldf3): Use RET macros.
12812 2008-02-29 Richard Guenther <rguenther@suse.de>
12814 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
12816 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
12817 value for comparing for a store match.
12818 (simplify_unary_expression): Do nothing for SSA_NAMEs.
12819 (try_to_simplify): Do not do a full-blown reference lookup.
12821 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
12823 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
12824 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
12826 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
12828 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
12830 * tree-loop-linear.c (try_interchange_loops): Compare memory access
12831 strides against cache sizes.
12833 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
12835 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
12838 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
12840 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
12841 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
12842 is smaller than the original promoted value.
12843 (simplify_subreg): If OP is a SUBREG, try to preserve its
12844 SUBREG_PROMOTED_VAR_P information.
12846 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
12848 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
12849 (VN_INFO_GET): Allocate new objects on the obstack.
12850 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
12851 for rpo_numbers_temp, for consistency.
12852 (free_scc_vn): Free the obstack.
12854 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
12856 * doc/invoke.texi: Document -ftree-loop-distribution.
12857 * tree-loop-distribution.c: New.
12858 * tree-pass.h (pass_loop_distribution): New.
12859 * graphds.h (struct graph): Add htab_t indices.
12860 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
12861 * tree-vectorizer.c (rename_variables_in_loop): Extern.
12862 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
12863 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
12864 * tree-data-ref.c (debug_data_dependence_relations): New.
12865 (dump_data_dependence_relation): Also print data references.
12866 (free_data_ref): Extern.
12867 (same_access_functions): Moved...
12868 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
12869 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
12870 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
12871 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
12872 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
12873 (stmts_from_loop): Skip LABEL_EXPR.
12874 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
12876 (build_rdg): Initialize rdg->indices htab.
12877 (free_rdg, stores_from_loop, ref_base_address,
12878 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
12879 have_similar_memory_accesses_1, ref_base_address_1,
12880 remove_similar_memory_refs): New.
12881 * tree-data-ref.h: Depend on tree-chrec.h.
12882 (debug_data_dependence_relations, free_data_ref): Declared.
12883 (same_access_functions): ... here.
12884 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
12886 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
12887 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
12888 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
12889 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
12890 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
12891 rdg_vertex_for_stmt): Declared.
12892 (struct rdg_edge): Add level.
12894 (free_rdg, stores_from_loop, remove_similar_memory_refs,
12895 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
12897 (rdg_has_similar_memory_accesses): New.
12898 * tree-vect-analyze.c: Remove unused static decls.
12899 * lambda.h (dependence_level): New.
12900 * common.opt (ftree-loop-distribution): New.
12901 * tree-flow.h (mark_virtual_ops_in_bb,
12902 slpeel_tree_duplicate_loop_to_edge_cfg,
12903 rename_variables_in_loop): Declared.
12904 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
12905 (OBJS-common): Add tree-loop-distribution.o.
12906 (tree-loop-distribution.o): New rule.
12907 * tree-cfg.c (mark_virtual_ops_in_bb): New.
12908 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
12909 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
12911 2008-02-28 Joseph Myers <joseph@codesourcery.com>
12914 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
12915 other than structures and unions.
12917 2008-02-28 Richard Guenther <rguenther@suse.de>
12920 2008-02-26 Richard Guenther <rguenther@suse.de>
12922 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12923 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12924 (lookup_decl_from_uid): Declare.
12925 (remove_decl_from_map): Likewise.
12926 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12927 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12928 (decl_for_uid_map): New global hashtable mapping DECL_UID
12930 (init_ttree): Allocate it.
12931 (insert_decl_to_uid_decl_map): New helper function.
12932 (make_node_stat): Insert new decls into the map.
12933 (copy_node_stat): Likewise.
12934 (lookup_decl_from_uid): New function.
12935 (remove_decl_from_map): Likewise.
12936 (print_decl_for_uid_map_statistics): New helper.
12937 (dump_tree_statistics): Call it.
12939 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12940 (referenced_var_iterator): Adjust.
12941 (FOR_EACH_REFERENCED_VAR): Adjust.
12942 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12943 (num_referenced_vars): Adjust.
12944 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12945 (first_referenced_var): Remove.
12946 (end_referenced_vars_p): Likewise.
12947 (next_referenced_var): Likewise.
12948 (referenced_var_iterator_set): New helper function.
12949 * tree-dfa.c (referenced_var_lookup): Adjust.
12950 (referenced_var_check_and_insert): Likewise.
12951 (remove_referenced_var): Likewise.
12952 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12953 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12954 (verify_call_clobbering): Likewise.
12955 (verify_memory_partitions): Likewise.
12956 (init_tree_ssa): Allocate bitmap instead of hashtable for
12958 (delete_tree_ssa): Adjust.
12959 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12960 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12961 (compute_tag_properties): Likewise.
12962 (set_initial_properties): Likewise.
12963 (find_partition_for): Likewise.
12964 (update_reference_counts): Likewise.
12965 (dump_may_aliases_for): Likewise.
12966 * tree-ssa-operands.c (add_virtual_operand): Likewise.
12967 (add_call_clobber_ops): Likewise.
12968 (add_call_read_ops): Likewise.
12969 (get_asm_expr_operands): Likewise.
12970 * tree-into-ssa.c (dump_decl_set): Likewise.
12971 (update_ssa): Likewise.
12972 * tree-sra.c (scan_function): Likewise.
12973 (decide_instantiations): Likewise.
12974 (scalarize_parms): Likewise.
12975 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12976 (dsa_named_for): Likewise.
12977 * tree-ssa-structalias.c (update_alias_info): Likewise.
12978 (merge_smts_into): Likewise.
12980 2008-02-27 David Daney <ddaney@avtrex.com>
12983 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
12984 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
12985 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
12986 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
12987 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
12989 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
12992 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
12993 (BUILT_IN_NEXTTOWARD): Remove.
12994 (BUILT_IN_NEXTTOWARDF): Ditto.
12995 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
12996 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
12998 2008-02-27 Tom Tromey <tromey@redhat.com>
13000 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
13001 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
13003 2008-02-27 Jan Beulich <jbeulich@novell.com>
13005 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
13006 update the respective field on newdecl.
13008 2008-02-27 Revital Eres <eres@il.ibm.com>
13010 PR rtl-optimization/34999
13011 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
13012 crossing edges that ends with a call insn.
13013 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
13014 call insn and clear the EDGE_CROSSING flag of the crossing edge
13015 when fixing fallthru edges.
13017 2008-02-27 Richard Guenther <rguenther@suse.de>
13019 PR middle-end/35390
13020 * fold-const.c (fold_unary): Return the correct argument,
13021 converted to the result type.
13023 2008-02-27 Richard Guenther <rguenther@suse.de>
13025 PR middle-end/34971
13026 * expr.c (expand_expr_real_1): Assert on rotates that operate
13028 * fold-const.c (fold_binary): Use the types precision, not the
13029 bitsize of the mode if folding rotate expressions. Build rotates
13030 only for full modes.
13032 2008-02-27 Jakub Jelinek <jakub@redhat.com>
13034 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
13035 and CPP_PRAGMA_EOL.
13036 * c-pragma.c (pragma_ns_name): New typedef.
13037 (registered_pp_pragmas): New variable.
13038 (c_pp_lookup_pragma): New function.
13039 (c_register_pragma_1): If flag_preprocess_only, do nothing
13040 for non-expanded pragmas, for expanded ones push pragma's
13041 namespace and name into registered_pp_pragmas vector.
13042 (c_invoke_pragma_handler): Register OpenMP pragmas even when
13043 flag_preprocess_only, don't register GCC pch_preprocess
13044 pragma if flag_preprocess_only.
13045 * c-opts.c (c_common_init): Call init_pragma even if
13046 flag_preprocess_only.
13047 * c-pragma.c (c_pp_lookup_pragma): New prototype.
13048 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
13049 cpp_register_pragma if flag_preprocess_only.
13051 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13054 * c-parser.c (c_parser_translation_unit): Warn for empty
13055 translation unit, not empty source file.
13057 2008-02-26 Paul Brook <paul@codesourcery.com>
13059 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
13060 operand for Thumb-2.
13061 * config/arm/arm.h (reg_class): Add CORE_REGS.
13062 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
13063 (BASE_REG_CLASS): Use CORE_REGS.
13064 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
13065 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
13066 (REGNO_OK_FOR_INDEX_P): Exclude SP.
13067 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
13068 ARM_REGNO_OK_FOR_INDEX_P.
13069 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
13070 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
13071 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
13072 (ldm/stm peepholes): Ditto.
13073 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
13074 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
13075 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
13076 * config/arm/constraints.md: Enable "k" constraint on ARM.
13078 2008-02-27 Ben Elliston <bje@au.ibm.com>
13080 * config/rs6000/rs6000.c: Annotate cache line size field in all
13081 instances of struct processor_costs.
13083 2008-02-26 David Edelsohn <edelsohn@gnu.org>
13085 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
13086 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
13087 jump_bypass): New counters.
13088 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
13089 * dce.c (gate_ud_dce): Same.
13090 (gate_fast_dce): Same.
13091 * dse.c (gate_dse1): New function.
13092 (gate_dse2): New function.
13093 (gate_dse): Merge results of new gate functions.
13094 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
13095 (gate_handle_jump_bypass): Add dbg_cnt.
13096 (gate_handle_gcse): Add dbg_cnt.
13097 * ifcvt.c (gate_handle_if_conversion): Same.
13098 (gate_handle_if_after_combine): Same.
13099 (gate_handle_if_after_reload): Same.
13100 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
13102 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
13104 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
13106 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
13108 2008-02-26 Jason Merrill <jason@redhat.com>
13111 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
13112 alone if it's the naming decl for the type's main variant.
13114 2008-02-26 Tom Tromey <tromey@redhat.com>
13116 * system.h (USE_MAPPED_LOCATION): Poison.
13117 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
13118 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
13119 (make_goto_expr_edges): Likewise.
13120 (remove_bb): Likewise.
13121 (execute_warn_function_return): Likewise.
13122 * basic-block.h (struct edge_def) <goto_locus>: Change type to
13124 * c-common.c (fname_decl): Remove old location code.
13125 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
13127 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
13129 (ASM_INPUT_SOURCE_LOCATION): Likewise.
13130 (gen_rtx_ASM_INPUT): Likewise.
13131 (gen_rtx_ASM_INPUT_loc): Likewise.
13132 (get_rtx_asm_OPERANDS): Remove.
13133 * cfglayout.c (insn_locators_alloc): Remove old location code.
13134 (set_curr_insn_source_location): Likewise.
13135 (curr_insn_locator): Likewise.
13136 * print-tree.c (print_node): Remove old location code.
13137 * tree-mudflap.c (mf_varname_tree): Remove old location code.
13138 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
13139 * cfgexpand.c (expand_gimple_cond_expr): Don't use
13140 location_from_locus.
13141 (construct_exit_block): Remove old location code.
13142 * emit-rtl.c (force_next_line_note): Remove old location code.
13143 * profile.c (branch_prob): Remove old location code.
13144 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
13145 LOC_LINE): Remove old-location variants.
13146 * langhooks.c (lhd_print_error_function): Remove old location
13148 * configure, config.in: Rebuilt.
13149 * configure.ac (--enable-mapped-location): Remove.
13150 * c-decl.c (c_init_decl_processing): Remove old location code.
13151 (finish_function): Likewise.
13152 * recog.c (decode_asm_operands): Remove old location code.
13153 * c-pch.c (c_common_read_pch): Remove old location code.
13154 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
13156 * gimple-low.c (lower_function_body): Remove old location code.
13157 * toplev.c (unknown_location): Remove.
13158 (push_srcloc): Remove old-location variant.
13159 (process_options): Remove old location code.
13160 (lang_dependent_init): Likewise.
13161 * input.h (UNKNOWN_LOCATION): Move definition.
13162 (location_t): Undeprecate.
13163 (source_locus): Remove.
13164 (location_from_locus): Remove.
13165 (struct location_s): Remove.
13166 Remove all old-location code.
13167 (input_line, input_filename): Remove.
13168 * final.c (final_scan_insn): Remove old location code.
13169 * diagnostic.c (diagnostic_build_prefix): Remove
13170 USE_MAPPED_LOCATION test.
13171 * tree.h (gimple_stmt) <locus>: Now a location_t.
13172 (tree_exp) <locus>: Likewise.
13173 (DECL_IS_BUILTIN): Remove old-location variant.
13174 (annotate_with_file_line, annotate_with_locus): Likewise.
13175 (expr_locus, set_expr_locus): Update.
13176 * tree.c (build1_stat): Remove old location code.
13177 (last_annotated_node): Remove.
13178 (annotate_with_file_line): Remove old-location variant.
13179 (annotate_with_locus): Likewise.
13180 (expr_location): Remove old location code.
13181 (set_expr_location): Likewise.
13182 (expr_has_location): Likewise.
13183 (expr_locus): Likewise.
13184 (set_expr_locus): Likewise.
13185 (expr_filename): Don't use location_from_locus.
13186 (expr_lineno): Likewise.
13187 * rtl-error.c (location_for_asm): Remove old location code.
13188 * c-lex.c (cb_line_change): Remove old location code.
13189 (fe_file_change): Likewise.
13190 (cb_def_pragma): Likewise.
13191 (c_lex_with_flags): Likewise.
13192 * gengtype.c (do_typedef): Don't special-case location types.
13193 (define_location_structures): Remove.
13194 (main): Don't call define_location_structures.
13195 * tree-pretty-print.c (dump_implicit_edges): Remove old location
13198 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13201 * builtins.def (BUILT_IN_STDARG_START): Remove.
13202 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
13203 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
13204 * tree-inline.c (inline_forbidden_p_1): Likewise.
13206 2008-02-26 Richard Guenther <rguenther@suse.de>
13208 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13209 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13210 (lookup_decl_from_uid): Declare.
13211 (remove_decl_from_map): Likewise.
13212 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13213 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13214 (decl_for_uid_map): New global hashtable mapping DECL_UID
13216 (init_ttree): Allocate it.
13217 (insert_decl_to_uid_decl_map): New helper function.
13218 (make_node_stat): Insert new decls into the map.
13219 (copy_node_stat): Likewise.
13220 (lookup_decl_from_uid): New function.
13221 (remove_decl_from_map): Likewise.
13222 (print_decl_for_uid_map_statistics): New helper.
13223 (dump_tree_statistics): Call it.
13225 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13226 (referenced_var_iterator): Adjust.
13227 (FOR_EACH_REFERENCED_VAR): Adjust.
13228 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13229 (num_referenced_vars): Adjust.
13230 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13231 (first_referenced_var): Remove.
13232 (end_referenced_vars_p): Likewise.
13233 (next_referenced_var): Likewise.
13234 (referenced_var_iterator_set): New helper function.
13235 * tree-dfa.c (referenced_var_lookup): Adjust.
13236 (referenced_var_check_and_insert): Likewise.
13237 (remove_referenced_var): Likewise.
13238 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13239 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13240 (verify_call_clobbering): Likewise.
13241 (verify_memory_partitions): Likewise.
13242 (init_tree_ssa): Allocate bitmap instead of hashtable for
13244 (delete_tree_ssa): Adjust.
13245 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13246 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13247 (compute_tag_properties): Likewise.
13248 (set_initial_properties): Likewise.
13249 (find_partition_for): Likewise.
13250 (update_reference_counts): Likewise.
13251 (dump_may_aliases_for): Likewise.
13252 * tree-ssa-operands.c (add_virtual_operand): Likewise.
13253 (add_call_clobber_ops): Likewise.
13254 (add_call_read_ops): Likewise.
13255 (get_asm_expr_operands): Likewise.
13256 * tree-into-ssa.c (dump_decl_set): Likewise.
13257 (update_ssa): Likewise.
13258 * tree-sra.c (scan_function): Likewise.
13259 (decide_instantiations): Likewise.
13260 (scalarize_parms): Likewise.
13261 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13262 (dsa_named_for): Likewise.
13263 * tree-ssa-structalias.c (update_alias_info): Likewise.
13264 (merge_smts_into): Likewise.
13266 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13269 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
13270 * c-opts.c (c_common_handle_option): Wall enables
13271 Wvolatile-register-var.
13272 * common.opt: Move Wvolatile-register-var to...
13275 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13277 * common.opt (Wlarger-than=): New.
13278 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
13280 * opts.c (common_handle_option): Handle -Wlarger-than=.
13281 * optc-gen.awk: Likewise.
13282 * opth-gen.awk: Likewise.
13283 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
13284 * tree-optimize.c (tree_rest_of_compilation): Likewise.
13286 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13288 * c-common.c (match_case_to_enum_1): Add appropriate
13289 OPT_W* parameter to warning.
13290 (c_do_switch_warnings): Likewise.
13291 * c-typeck.c (warning_init): Add one more parameter following
13292 'warning' function.
13293 (push_init_level): Update call to warning_init.
13294 (pop_init_level): Likewise.
13295 (add_pending_init): Likewise.
13296 (output_init_element: Likewise.
13298 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13301 * toplev.c (toplev_main): If there are warnings or error, print
13302 errors for ignored options.
13303 * opts.c (ignored_options): New static variable.
13304 (postpone_unknown_option_error): New.
13305 (print_ignored_options): New.
13306 (handle_option): Postpone errors for unknown -Wno-* options.
13307 * opts.h (print_ignored_options): Declare.
13309 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
13311 * config/mips/mips.md (loadgp_blockage, blockage): Change type
13314 2008-02-25 Richard Guenther <rguenther@suse.de>
13317 2008-02-25 Richard Guenther <rguenther@suse.de>
13319 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13320 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13321 (lookup_decl_from_uid): Declare.
13322 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13323 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13324 (decl_for_uid_map): New global hashtable mapping DECL_UID
13326 (init_ttree): Allocate it.
13327 (insert_decl_to_uid_decl_map): New helper function.
13328 (make_node_stat): Insert new decls into the map.
13329 (copy_node_stat): Likewise.
13330 (lookup_decl_from_uid): New function.
13331 (print_decl_for_uid_map_statistics): New helper.
13332 (dump_tree_statistics): Call it.
13334 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13335 (referenced_var_iterator): Adjust.
13336 (FOR_EACH_REFERENCED_VAR): Adjust.
13337 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13338 (num_referenced_vars): Adjust.
13339 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13340 (first_referenced_var): Remove.
13341 (end_referenced_vars_p): Likewise.
13342 (next_referenced_var): Likewise.
13343 (referenced_var_iterator_set): New helper function.
13344 * tree-dfa.c (referenced_var_lookup): Adjust.
13345 (referenced_var_check_and_insert): Likewise.
13346 (remove_referenced_var): Likewise.
13347 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13348 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13349 (verify_call_clobbering): Likewise.
13350 (verify_memory_partitions): Likewise.
13351 (init_tree_ssa): Allocate bitmap instead of hashtable for
13353 (delete_tree_ssa): Adjust.
13354 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13355 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13356 (compute_tag_properties): Likewise.
13357 (set_initial_properties): Likewise.
13358 (find_partition_for): Likewise.
13359 (update_reference_counts): Likewise.
13360 (dump_may_aliases_for): Likewise.
13361 * tree-ssa-operands.c (add_virtual_operand): Likewise.
13362 (add_call_clobber_ops): Likewise.
13363 (add_call_read_ops): Likewise.
13364 (get_asm_expr_operands): Likewise.
13365 * tree-into-ssa.c (dump_decl_set): Likewise.
13366 (update_ssa): Likewise.
13367 * tree-sra.c (scan_function): Likewise.
13368 (decide_instantiations): Likewise.
13369 (scalarize_parms): Likewise.
13370 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13371 (dsa_named_for): Likewise.
13372 * tree-ssa-structalias.c (update_alias_info): Likewise.
13373 (merge_smts_into): Likewise.
13375 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
13378 * doc/invoke.texi (-fcx-limited-range): Document new option.
13379 * toplev.c (process_options): Handle -fcx-fortran-rules.
13380 * common.opt: Add documentation for -fcx-fortran-rules.
13382 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
13385 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
13386 actual behaviour and C99.
13388 2008-02-26 Ben Elliston <bje@au.ibm.com>
13390 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
13391 (ASM_CPU_POWER6_SPEC): Likewise.
13392 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
13393 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
13394 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
13396 2008-02-25 Richard Guenther <rguenther@suse.de>
13398 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13399 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13400 (lookup_decl_from_uid): Declare.
13401 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13402 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13403 (decl_for_uid_map): New global hashtable mapping DECL_UID
13405 (init_ttree): Allocate it.
13406 (insert_decl_to_uid_decl_map): New helper function.
13407 (make_node_stat): Insert new decls into the map.
13408 (copy_node_stat): Likewise.
13409 (lookup_decl_from_uid): New function.
13410 (print_decl_for_uid_map_statistics): New helper.
13411 (dump_tree_statistics): Call it.
13413 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13414 (referenced_var_iterator): Adjust.
13415 (FOR_EACH_REFERENCED_VAR): Adjust.
13416 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13417 (num_referenced_vars): Adjust.
13418 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13419 (first_referenced_var): Remove.
13420 (end_referenced_vars_p): Likewise.
13421 (next_referenced_var): Likewise.
13422 (referenced_var_iterator_set): New helper function.
13423 * tree-dfa.c (referenced_var_lookup): Adjust.
13424 (referenced_var_check_and_insert): Likewise.
13425 (remove_referenced_var): Likewise.
13426 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13427 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13428 (verify_call_clobbering): Likewise.
13429 (verify_memory_partitions): Likewise.
13430 (init_tree_ssa): Allocate bitmap instead of hashtable for
13432 (delete_tree_ssa): Adjust.
13433 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13434 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13435 (compute_tag_properties): Likewise.
13436 (set_initial_properties): Likewise.
13437 (find_partition_for): Likewise.
13438 (update_reference_counts): Likewise.
13439 (dump_may_aliases_for): Likewise.
13440 * tree-ssa-operands.c (add_virtual_operand): Likewise.
13441 (add_call_clobber_ops): Likewise.
13442 (add_call_read_ops): Likewise.
13443 (get_asm_expr_operands): Likewise.
13444 * tree-into-ssa.c (dump_decl_set): Likewise.
13445 (update_ssa): Likewise.
13446 * tree-sra.c (scan_function): Likewise.
13447 (decide_instantiations): Likewise.
13448 (scalarize_parms): Likewise.
13449 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13450 (dsa_named_for): Likewise.
13451 * tree-ssa-structalias.c (update_alias_info): Likewise.
13452 (merge_smts_into): Likewise.
13454 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
13457 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
13458 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
13459 * alias.h (nonoverlapping_memrefs_p): Likewise.
13461 2008-02-25 Jan Beulich <jbeulich@novell.com>
13463 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
13464 * config/i386/netware-libgcc.exp: Add __bswap?i2,
13465 __emultls_get_address, __emultls_register_common,
13466 __floatundi?f, and _Unwind_GetIPInfo.
13467 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
13468 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
13469 (gen_regparm_prefix): Likewise.
13470 (i386_nlm_encode_section_info): Sync with
13471 config/i386/winnt.c:i386_pe_encode_section_info().
13472 (i386_nlm_maybe_mangle_decl_assembler_name): New.
13473 i386_nlm_mangle_decl_assembler_name): New.
13474 (netware_override_options): New.
13475 * config/i386/netware.h (netware_override_options): Declare.
13476 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
13477 (i386_nlm_mangle_decl_assembler_name): Declare.
13478 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
13480 2008-02-25 Ben Elliston <bje@au.ibm.com>
13483 * c-decl.c (grokdeclarator): Remove unused local variables
13484 `typedef_type' and `type_as_written'.
13486 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
13487 unused local variable `has_hot_blocks'.
13488 (fix_crossing_conditional_branches): Remove unused local variable
13491 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
13493 PR middle-end/19984
13494 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
13495 using DEF_C99_BUILTIN.
13496 (BUILT_IN_NANF): Ditto.
13497 (BUILT_IN_NANL): Ditto.
13499 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
13500 Revital Eres <eres@il.ibm.com>
13502 * modulo-sched.c (calculate_must_precede_follow): Address TODO
13503 regarding the order of two dependent insns in the same row.
13505 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
13507 * stor-layout.c (layout_decl): Do not bump the alignment of a
13508 bit-field to more than byte alignment if it is packed.
13510 2008-02-24 David Edelsohn <edelsohn@gnu.org>
13512 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
13515 2008-02-24 Diego Novillo <dnovillo@google.com>
13517 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
13520 * tree-vrp.c (vrp_evaluate_conditional): With
13521 -Wtype-limits, emit a warning when comparing against a
13522 constant outside the natural range of OP0's type.
13523 * c.opt (Wtype-limits): Move ...
13524 * common.opt (Wtype-limits): ... here.
13526 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
13528 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
13529 * config/rs6000/e300c2c3.md: New file.
13530 * config/rs6000/rs6000.c (processor_costs): Add new costs for
13532 (rs6000_override_options): Add e300c2 and e300c3 cases to
13533 processor_target_table. Do not allow usage of Altivec or Spe
13534 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
13535 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
13536 * config/rs6000/rs6000.h (processor_type): Add
13537 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
13538 (ASM_CPU_SPEC): Add e300c2 and e300c3.
13539 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
13540 and ppce300c3. Include e300c2c3.md.
13542 2008-02-23 David Edelsohn <edelsohn@gnu.org>
13544 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
13545 instead of TARGET_STRICT_ALIGN.
13547 2008-02-23 Joseph Myers <joseph@codesourcery.com>
13549 * explow.c (memory_address): Assert that the generated address is
13552 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
13555 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
13556 * config/darwin-ppc-ldouble-patch.def: New file.
13557 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
13558 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
13559 SUBTARGET_INIT_BUILTINS if defined.
13560 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
13563 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
13566 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
13567 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
13569 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
13572 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
13573 file" warning condtional on -Winvalid-PCH.
13575 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
13577 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
13579 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
13583 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
13584 prevent reload from using MMX registers.
13585 (*mov<mode>_internal): Ditto.
13586 (*movv2sf_internal_rex64): Ditto.
13587 (*movv2sf_internal): Ditto.
13589 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13591 PR documentation/31569
13592 * doc/install.texi2html: Use makeinfo --no-number-sections.
13594 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
13596 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
13597 ensure that we can address an entire entity > 8 bytes. Don't
13598 generate reg+reg addressing for such data.
13600 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
13602 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
13603 strings when optimizing for size, unless the target cares about
13606 2008-02-22 Tom Tromey <tromey@redhat.com>
13608 * regclass.c (current_pass): Remove declaration.
13610 2008-02-22 Anatoly Sokolov <aesok@post.ru>
13612 * config/avr/libgcc.S (__RAMPZ__): Define.
13613 (__do_copy_data): Add for devices with 128KB code memory.
13615 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
13617 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
13619 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
13621 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
13623 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
13626 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13629 * c-typeck.c (build_binary_op): Warn about floating point
13630 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
13632 2008-02-21 Janis Johnson <janis187@us.ibm.com>
13635 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
13636 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
13638 (rs6000_override_options): Set altivec_abi as default, not override,
13639 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
13640 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
13641 is used; use new member spe_abi.
13642 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
13643 spe_abi and altivec_abi.
13645 2008-02-22 Tomas Bily <tbily@suse.cz>
13647 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
13649 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13652 * config.build (build_file_translate): Set to `CMD //c' only if
13654 * Makefile.in (build_file_translate): Improve comment.
13656 2008-02-21 Jan Hubicka <jh@suse.cz>
13658 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
13659 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
13660 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
13662 2008-02-21 Michael Matz <matz@suse.de>
13665 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
13667 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
13669 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
13670 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
13671 as insn constraint.
13672 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
13673 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
13674 SSE_VEC_FLOAT_MODE_P as insn constraint.
13675 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
13676 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
13677 sse4a_movntdf using MODEF mode iterator.
13678 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
13679 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
13680 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
13681 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
13682 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
13683 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
13684 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
13686 2008-02-21 Richard Guenther <rguenther@suse.de>
13688 * tree.def (PAREN_EXPR): New tree code.
13689 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
13691 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
13692 * expr.c (expand_expr_real_1): Likewise.
13693 * tree-inline.c (estimate_num_insns_1): Likewise.
13694 * tree-complex.c (expand_complex_move): Likewise.
13695 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
13698 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
13701 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
13703 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
13706 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
13708 * config/sh/sh.c (find_barrier): Don't go past
13709 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
13711 2008-02-20 DJ Delorie <dj@redhat.com>
13713 * config/h8300/h8300.md (insv): Force source operand to be a register.
13715 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
13716 as a jump, not as a plain insn.
13718 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
13720 * doc/invoke.texi (Warning Options): Add new option
13721 -Wframe-larger-than=.
13722 (-Wframe-larger-than): Document.
13724 * flags.h (warn_frame_larger_than, frame_larger_than_size):
13725 Add declarations for new option variables.
13727 * final.c (final_start_function): Check the frame size
13728 before emission and issue a Wframe-larger-than warning.
13730 * opts.c (warn_frame_larger_than, frame_larger_than_size):
13731 Add definitions for new option variables.
13732 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
13734 * common.opt (Wframe-larger-than=): New option.
13736 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
13738 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
13739 (<sse>_div<mode>3): Ditto.
13740 (<sse>_vmdiv<mode>3): Ditto.
13741 (<sse>_vmsqrt<mode>2): Ditto.
13742 (*smax<mode>3): Ditto.
13743 (sse5_frcz<mode>2): Ditto.
13744 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
13745 as insn constraint.
13747 2008-02-20 Richard Guenther <rguenther@suse.de>
13749 PR middle-end/35265
13750 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
13751 be happy with INTEGRAL_TYPE_P.
13753 2008-02-20 Richard Guenther <rguenther@suse.de>
13755 * fold-const.c (split_tree): Associate floatig-point expressions
13756 if flag_associative_math is set.
13758 2008-02-20 Richard Guenther <rguenther@suse.de>
13760 * tree.h (fold_real_zero_addition_p): Declare.
13761 * fold-const.c (fold_real_zero_addition_p): Export.
13762 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
13763 floating-point operations with zero and one.
13765 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
13767 * doc/install.texi: Correct references to CFLAGS, replacing them
13768 with BOOT_CFLAGS. Document flags used during bootstrap for
13771 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
13773 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
13774 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
13775 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
13777 (smin<mode>3): Ditto from similar patterns.
13778 (smax<mode>3): Ditto.
13779 (*ieee_smin<mode>3): Ditto.
13780 (*ieee_smax<mode>3): Ditto.
13781 * config/i386/sse.md (sse): New mode attribute.
13782 (mov<mode>): Macroize expander from movv4sf and movv2df using
13783 SSEMODEF2P mode iterator.
13784 (<sse>_movnt<mode>): Ditto from similar patterns. Use
13785 SSE_VEC_FLOAT_MODE_P as insn constraint.
13786 (storent<mode>): Ditto.
13787 (storent<mode>): Macroize expander from storentsf and storentdf using
13788 MODEF mode iterator.
13789 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
13790 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
13791 (abs<mode>2): Ditto from similar patterns.
13792 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
13793 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
13794 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
13795 (<sse>_vmsqrt<mode>2): Ditto.
13796 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
13797 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
13798 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
13799 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
13800 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
13801 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
13802 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
13804 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
13805 iterator and SSE_FLOAT_MODE_P as insn constraint.
13806 (<sse>_ucomi): Ditto from similar patterns.
13807 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
13808 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
13809 SSE_VEC_FLOAT_MODE_P as insn constraint.
13810 (vcond<mode>): Ditto from similar patterns.
13811 (and<mode>3, *and<mode>3): Ditto.
13812 (<sse>_nand<mode>3): Ditto.
13813 (ior<mode>3, *ior<mode>3): Ditto.
13814 (xor<mode>3, *xor<mode>3): Ditto.
13815 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
13816 iterator and SSE_FLOAT_MODE_P as insn constraint.
13817 (*nand<mode>3): Ditto from similar patterns.
13818 (*ior<mode>3): Ditto.
13819 (*xor<mode>3): Ditto.
13821 2008-02-20 Ira Rosen <irar@il.ibm.com>
13823 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
13824 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
13825 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
13827 2008-02-19 Jan Hubicka <jh@suse.cz>
13829 * predict.c (tree_bb_level_predictions): Remove variable next
13830 mistakely introduced by previous commit.
13832 2008-02-19 Jan Hubicka <jh@suse.cz>
13834 * predict.c (predict_paths_leading_to): Rewrite.
13835 (predict_paths_for_bb): New.
13836 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
13838 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13841 * Makefile.in (build_file_translate): New.
13842 (gcc-vers.texi): Use it for translating $(abs_srcdir).
13843 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
13844 * configure.ac (build_file_translate): Substitute it.
13845 * configure: Regenerate.
13847 2008-02-19 Jan Hubicka <jh@suse.cz>
13849 PR rtl-optimization/34408
13850 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
13853 2008-02-19 Jan Hubicka <jh@suse.cz>
13855 PR middle-end/28779
13856 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
13859 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
13862 * config/i386/i386-modes.def: Revert the last DI alignment
13863 change until Ada people can look into it.
13865 2008-02-19 Nick Clifton <nickc@redhat.com>
13867 * opts.c (print_specific_help): Fix typo in --help text.
13869 2008-02-19 Jakub Jelinek <jakub@redhat.com>
13872 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
13873 32-bit inline asm without asm alternatives for host GCC < 3.0.
13875 2008-02-19 Richard Guenther <rguenther@suse.de>
13877 PR tree-optimization/34989
13878 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
13879 Allow propagation to INDIRECT_REF if we can simplify only.
13881 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13883 * c-common.c (warn_for_collisions_1): Use appropriate option when
13886 2008-02-19 Nick Clifton <nickc@redhat.com>
13889 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
13890 (handle_options): Fix indentation.
13891 (print_filtered_help): If no language-specific options were
13892 displayed tell the user how to list all the options supported by
13893 the language's front-end.
13894 (print_specific_help): Fix indentation and remove duplicate line.
13895 (common_handle_option): Handle the -v option.
13896 For --help enable the display of undocumented options if the -v
13897 switch has been included on the command line.
13898 For --help= check for overlaps in the arguments between the option
13899 classes and the language names and issue a warning when they
13900 cannot be disambiguated.
13901 * c.opt (v): Pass on to the common option handler.
13903 2008-02-19 Revital Eres <eres@il.ibm.com>
13905 * modulo-sched.c (sms_schedule): Change dump message when
13906 create_ddg function fails.
13907 (try_scheduling_node_in_cycle): Rename row to cycle.
13908 (print_partial_schedule): Rename CYCLE to ROW.
13910 2008-02-19 Christian Bruel <christian.bruel@st.com>
13911 Zdenek Dvorak <ook@ucw.cz>
13913 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
13915 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
13918 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
13919 (*x86_movdicc_0_m1_se): Ditto.
13921 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
13923 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
13924 (CMPtype): Define as __gcc_CMPtype.
13925 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
13926 (CMPtype): Define as __gcc_CMPtype.
13928 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
13930 Support valgrind 3.3 for --enable-checking=valgrind.
13931 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
13933 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
13934 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
13935 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
13936 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
13937 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
13938 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
13939 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
13941 * ggc-zone.c: Similar.
13942 * ggc-page.c: Similar.
13944 2008-02-19 Paul Brook <paul@codesourcery.com>
13947 * config/arm/ieee754-df.S: Fix do_it typo.
13948 * config/arm/ieee754-sf.S: Fix do_it typo.
13950 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
13953 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
13954 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
13955 (OPTION_MASK_ISA_SSE_SET): Likewise.
13956 (OPTION_MASK_ISA_SSE2_SET): Likewise.
13957 (OPTION_MASK_ISA_SSE3_SET): Likewise.
13958 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
13959 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
13960 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
13961 (OPTION_MASK_ISA_SSE4_SET): Likewise.
13962 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
13963 (OPTION_MASK_ISA_SSE5_SET): Likewise.
13964 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
13965 (OPTION_MASK_ISA_MMX_UNSET): Updated.
13966 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
13967 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
13968 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
13969 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
13970 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
13971 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
13972 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
13973 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
13974 (OPTION_MASK_ISA_SSE4): Removed.
13975 (ix86_handle_option): Turn on bits in ix86_isa_flags and
13976 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
13977 (override_options): Don't turn on implied SSE/MMX bits in
13980 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
13982 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13985 2008-02-18 Joey Ye <joey.ye@intel.com>
13987 PR middle-end/34921
13988 * tree-nested.c (insert_field_into_struct): Set type alignment
13989 to field alignment if the former is less than the latter.
13991 2008-02-18 Jakub Jelinek <jakub@redhat.com>
13993 * BASE-VER: Set to 4.4.0.
13995 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13997 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
13998 * doc/cfg.texi: Likewise.
13999 * doc/extend.texi: Likewise.
14000 * doc/gty.texi: Likewise.
14001 * doc/invoke.texi: Likewise.
14002 * doc/loop.texi: Likewise.
14003 * doc/md.texi: Likewise.
14004 * doc/passes.texi: Likewise.
14005 * doc/rtl.texi: Likewise.
14006 * doc/sourcebuild.texi: Likewise.
14007 * doc/tm.texi: Likewise.
14008 * doc/tree-ssa.texi: Likewise.
14010 2008-02-17 Richard Guenther <rguenther@suse.de>
14012 PR middle-end/35227
14013 * tree-complex.c (init_parameter_lattice_values): Handle parameters
14014 without default definition.
14016 2008-02-17 Richard Guenther <rguenther@suse.de>
14018 PR tree-optimization/35231
14019 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
14022 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
14025 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
14026 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
14027 libgcc_cmp_return mode.
14029 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14032 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
14034 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
14036 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
14039 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14041 * doc/c-tree.texi: Use `@.' where appropriate.
14042 * doc/extend.texi: Likewise.
14043 * doc/install.texi: Likewise.
14044 * doc/invoke.texi: Likewise.
14045 * doc/loop.texi: Likewise.
14046 * doc/makefile.texi: Likewise.
14047 * doc/md.texi: Likewise.
14048 * doc/passes.texi: Likewise.
14049 * doc/standards.texi: Likewise.
14050 * doc/tm.texi: Likewise.
14052 2008-02-15 Jakub Jelinek <jakub@redhat.com>
14054 PR middle-end/35196
14055 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
14057 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
14058 rather than in entry_bb.
14060 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
14062 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
14063 libgcc_cmp_return mode.
14065 2008-02-15 Jakub Jelinek <jakub@redhat.com>
14067 PR middle-end/35130
14068 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
14069 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
14071 2008-02-15 Richard Guenther <rguenther@suse.de>
14072 Zdenek Dvorak <ook@ucw.cz>
14074 PR tree-optimization/35164
14075 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
14076 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
14077 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
14078 Only propagate addresses which do not have abnormal SSA_NAMEs
14081 2008-02-15 Joseph Myers <joseph@codesourcery.com>
14084 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
14086 2008-02-15 Jan Hubicka <jh@suse.cz>
14088 PR middle-end/35149
14089 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
14091 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
14093 PR middle-end/34621
14094 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
14095 when calculating alignment_pad.
14097 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
14099 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
14100 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
14101 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
14102 and STACK_BOUNDARY define.
14104 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
14106 PR preprocessor/35061
14107 * c-pragma.c (handle_pragma_pop_macro): Check that
14108 pushed_macro_table has been allocated.
14110 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
14112 PR middle-end/35136
14113 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
14114 (force_gimple_operand): Likewise.
14115 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
14116 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
14117 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
14118 (find_interesting_uses_address): Check addressability and alignment
14119 of the base expression only after substituting bases of IVs into it.
14121 2008-02-14 Michael Matz <matz@suse.de>
14124 * function.c (instantiate_virtual_regs_in_insn): Reload address
14125 before falling back to reloading the whole operand.
14127 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
14129 * config/s390/s390.c (s390_mainpool_start): Emit the pool
14130 before the first section switch note.
14132 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14134 * doc/bugreport.texi: Update copyright years.
14135 * doc/c-tree.texi: Likewise.
14136 * doc/cfg.texi: Likewise.
14137 * doc/cpp.texi: Likewise.
14138 * doc/cppinternals.texi: Likewise.
14139 * doc/fragments.texi: Likewise.
14140 * doc/frontends.texi: Likewise.
14141 * doc/gcc.texi: Likewise.
14142 * doc/gty.texi: Likewise.
14143 * doc/hostconfig.texi: Likewise.
14144 * doc/implement-c.texi: Likewise.
14145 * doc/libgcc.texi: Likewise.
14146 * doc/loop.texi: Likewise.
14147 * doc/makefile.texi: Likewise.
14148 * doc/options.texi: Likewise.
14149 * doc/passes.texi: Likewise.
14150 * doc/rtl.texi: Likewise.
14151 * doc/sourcebuild.texi: Likewise.
14152 * doc/standards.texi: Likewise.
14153 * doc/tree-ssa.texi: Likewise.
14154 * doc/trouble.texi: Likewise.
14156 * doc/extend.texi: Use @: or add comma where appropriate.
14157 * doc/invoke.texi: Likewise.
14158 * doc/tm.texi: Likewise.
14160 2008-02-14 Alan Modra <amodra@bigpond.net.au>
14163 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
14166 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
14168 * doc/md.texi (clz, ctz): Add reference.
14169 * doc/rtl.texi (clz, ctz): Likewise.
14171 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14174 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
14177 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
14179 * config/s390/s390.c (struct constant_pool): New field
14180 emit_pool_after added.
14181 (s390_mainpool_start): Set the emit_pool_after flag according
14182 to the section switch notes.
14183 (s390_mainpool_finish): Consider emit_pool_after when emitting
14184 the literal pool at the end of the function.
14185 (s390_chunkify_start): Force literal pool splits at section
14188 2008-02-13 Michael Matz <matz@suse.de>
14191 * var-tracking.c (clobber_variable_part): Correctly traverse the
14194 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14197 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
14198 Add -fdump-ipa-inline.
14199 * tree-dump.c (dump_files): Remove tree-inlined dump.
14200 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
14202 2008-02-12 Richard Guenther <rguenther@suse.de>
14204 PR tree-optimization/35171
14205 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
14208 2008-02-12 Richard Guenther <rguenther@suse.de>
14210 PR middle-end/35163
14211 * fold-const.c (fold_widened_comparison): Use get_unwidened in
14212 value-preserving mode. Disallow final truncation.
14214 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
14216 PR middle-end/35136
14217 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
14218 code from here to...
14219 (force_gimple_operand): ...here.
14221 2008-02-12 Jakub Jelinek <jakub@redhat.com>
14224 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
14225 non-compatible pointers.
14226 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
14227 different FIELD_DECLs, try harder by comparing field offsets, sizes
14230 PR inline-asm/35160
14231 * function.c (match_asm_constraints_1): Don't replace the same input
14234 2008-02-12 Anatoly Sokolov <aesok@post.ru>
14236 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
14237 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
14238 (expand_epilogue): Restore RAMPZ register.
14239 * config/avr/avr.md (RAMPZ_ADDR): New constant.
14241 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
14243 * config/i386/cygwin.asm: (__alloca): Correct calling
14244 convention and alignment.
14245 (__chkstk): Force 8 byte stack alignment.
14247 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
14248 Richard Guenther <rguenther@suse.de>
14250 PR tree-optimization/33992
14251 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
14252 the zero we compare against.
14254 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
14256 PR libfortran/35063
14257 * gthr-win32.h (__gthread_mutex_destroy_function): New function
14258 to CloseHandle after unlocking to prevent accumulation of handle
14261 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14263 PR middle_end/34150
14264 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
14265 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
14266 and update LABEL_NUSES during and after reload.
14268 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
14270 PR middle-end/34627
14271 * combine.c (simplify_if_then_else): Make sure the comparison is
14272 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
14274 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
14277 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
14278 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
14279 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
14280 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
14281 * tree.h (get_type_static_bounds): Likewise.
14283 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14285 * doc/invoke.texi (Option Summary, C++ Dialect Options)
14286 (Objective-C and Objective-C++ Dialect Options, Warning Options):
14287 Make -Wfoo language annotations match what the compiler outputs.
14289 2008-02-08 Sa Liu <saliu@de.ibm.com>
14291 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
14292 intrinsics spu_convts, spu_convtu, spu_convtf.
14294 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
14296 * doc/extend.texi (Function Attributes) <noinline>: Mention
14297 asm ("") as method to keep calls.
14299 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14302 * doc/options.texi (Options): Replace references to opts.sh with
14304 * opts-common.c: Likewise.
14305 * optc-gen.awk: Likewise.
14307 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
14309 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
14311 2008-02-07 Richard Henderson <rth@redhat.com>
14314 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
14315 EXPR_LIST for the REG_EQUAL instead of a comparison with a
14318 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
14320 PR tree-optimization/35085
14321 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
14322 for operand entry oe2 in addition to operand entry oe3 in order to
14323 expose more opportunities for vectorizer sum reduction.
14325 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14328 * Makefile.in (LIBS): Remove $(GMPLIBS).
14329 (cc1-dummy, cc1): Add $(GMPLIBS).
14331 2008-02-06 Jan Hubicka <jh@suse.cz>
14334 * i386.md (moddf_integer): Do not produce partial memory stalls for
14335 targets where it hurts.
14337 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
14340 * optabs.c (expand_float): Do not check for decimal modes when
14341 expanding unsigned integer through signed conversion.
14343 2008-02-06 Nick Clifton <nickc@redhat.com>
14345 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
14346 inside the clobber with a match_operand and duplicated operand
14347 number in the constraint.
14348 (ineqbranchsi): Delete redundant comment.
14350 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
14352 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
14353 builtin_define ("__USE_INIT_FINI__").
14354 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
14356 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
14358 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14360 PR documentation/30330
14361 * doc/invoke.texi (C++ Dialect Options)
14362 (Objective-C and Objective-C++ Dialect Options, Warning Options):
14363 For each warning option -Wfoo that allows -Wno-foo, ensure both
14364 -Wfoo and -Wno-foo are listed in the option index. Fix index
14365 entry of -Wswitch-default, index -Wnormalized= including the
14366 `=', and -Wlarger-than-@var{len} including @var{len}.
14368 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
14370 * config/i386/i386.md (floatunssisf2): Use
14371 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
14372 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
14373 Macroize expander using MODEF mode iterator.
14375 2008-02-05 Diego Novillo <dnovillo@google.com>
14377 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
14380 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
14382 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14385 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
14387 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
14390 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
14391 to indicate if a message should be generated.
14392 (init_cumulative_args): Updated.
14393 (function_value_32): Likewise.
14395 2008-02-05 Joseph Myers <joseph@codesourcery.com>
14397 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
14399 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
14402 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
14403 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
14405 2008-02-04 Diego Novillo <dnovillo@google.com>
14407 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
14410 * tree-vrp.c (vrp_evaluate_conditional): With
14411 -Wtype-limits, emit a warning when comparing against a
14412 constant outside the natural range of OP0's type.
14414 2008-02-04 Richard Guenther <rguenther@suse.de>
14416 PR middle-end/33631
14417 * expr.c (count_type_elements): Give for unions instead of
14420 2008-02-04 Richard Guenther <rguenther@suse.de>
14422 PR middle-end/35043
14423 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
14424 to TYPE_DOMAINs base type instead of using bitsizetype here.
14426 2008-02-03 Jason Merrill <jason@redhat.com>
14428 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
14430 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14433 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
14434 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
14435 (RS/6000 and PowerPC Options): Fix typos and markup.
14436 * doc/passes.texi (Tree-SSA passes): Likewise.
14438 2008-02-02 Michael Matz <matz@suse.de>
14441 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
14442 from record_last_reg_set_info.
14443 (record_last_reg_set_info): Take an RTX argument, iterate over all
14444 constituent hardregs.
14445 (record_last_set_info, record_opr_changes): Change calls to
14446 new signature or to record_last_reg_set_info_regno.
14448 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14450 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
14452 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
14454 PR rtl-optimization/34773
14455 * reg-notes.def (EQUAL): Mention significance of combination of
14456 REG_EQUAL and REG_RETVAL.
14457 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
14458 insn that has a REG_RETVAL.
14460 2008-02-01 Roger Sayle <roger@eyesopen.com>
14463 * configure.ac (--enable-fixed-point): Disable unless explicitly
14465 * configure: Regenerate.
14467 2008-02-01 Richard Guenther <rguenther@suse.de>
14470 * invoke.texi (-finline-limit): Remove no longer true parts
14471 of the documentation. Note that there is no default value.
14473 2008-02-01 Andrew Pinski <pinskia@gmail.com>
14474 Mark Mitchell <mark@codesourcery.com>
14475 Ben Elliston <bje@au.ibm.com>
14478 * doc/extend.texi (Other Builtins): Document.
14480 2008-01-31 Tom Browder <tom.browder@gmail.com>
14482 * doc/c-tree.texi (Types): Fix grammar.
14483 (Expression trees): Ditto.
14484 * doc/passes.texi (Tree-SSA passes): Ditto.
14486 * doc/configterms.texi (Configure Terms): Fix typo.
14487 * doc/cpp.texi (Common Predefined Macros): Ditto.
14488 * doc/md.texi (Machine Constraints): Ditto.
14490 * doc/makefile.texi (Makefile): Add comma.
14492 2008-01-31 Tom Browder <tom.browder@gmail.com>
14493 Gerald Pfeifer <gerald@pfeifer.com>
14495 * doc/sourcebuild.texi (Front End): Remove references to CVS
14496 and CVSROOT/modules.
14497 (Texinfo Manuals): Replace reference to CVS by one to SVN.
14498 (Back End): Remove reference to CVS.
14500 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
14503 * config/mips/mips.c (gen_load_const_gp): New function, taking a
14505 (mips16_gp_pseudo_reg): ...here.
14506 * config/mips/mips.md (load_const_gp): Replace with...
14507 (load_const_gp_<mode>): ...this :P-based insn.
14509 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14511 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
14512 options. Minor fixes.
14513 (-std): Move reference to standards closer to where language
14514 standards are first mentioned.
14516 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
14518 PR rtl-optimization/34995
14519 * reload.c (alternative_allows_const_pool_ref): Take an rtx
14520 parameter and return a bool. If the rtx parameter is nonnull,
14521 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
14522 (find_reloads): Update call accordingly. Pass the new operand
14523 if it needed no address reloads, otherwise pass null.
14525 2008-01-30 Richard Henderson <rth@redhat.com>
14528 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
14529 for unbounded arrays.
14531 2008-01-30 Silvius Rus <rus@google.com>
14533 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
14535 2008-01-30 Jan Hubicka <jh@suse.cz>
14538 * i386.c (init_cumulative_args): Use real function declaration when
14541 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
14543 PR rtl-optimization/34998
14544 * global.c (build_insn_chain): Treat non-subreg_lowpart
14545 SUBREGs of pseudos as clobbering all the words covered by the
14546 SUBREG, not just all the bytes.
14547 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
14548 original df_ref rather than an extract parameter.
14549 (global_conflicts): Update call accordingly.
14551 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
14553 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
14554 the overflow check to make it easier to read.
14555 (__fixtfdi): Change the type of the ll member in union
14556 long_double to UDItype_x.
14558 2008-01-30 Jakub Jelinek <jakub@redhat.com>
14560 PR middle-end/34969
14561 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
14562 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
14563 * tree-inline.c (fold_marked_statements): Call
14564 cgraph_update_edges_for_call_stmt if folding a call statement.
14565 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
14566 debug_generic_stmt calls, reset it back afterwards.
14569 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
14571 * c-typeck.c (build_external_ref): Don't pedwarn about
14572 static vars in current function's scope.
14574 2008-01-29 Joseph Myers <joseph@codesourcery.com>
14576 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
14578 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
14581 * ipa-struct-reorg.c: Fix spelling.
14582 * params.def: Ditto.
14584 2008-01-29 Richard Guenther <rguenther@suse.de>
14586 PR middle-end/35006
14587 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
14589 * tree-inline.c (remap_type): Increment remapping_type_depth
14590 around remapping types.
14591 (copy_body_r): Only add referenced variables if they are referenced
14592 from code, not types.
14594 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
14605 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
14606 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
14608 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
14611 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
14612 pointer for tiny stack.
14614 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
14616 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
14618 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
14620 * config/vx-common.h: Fix typo in comment.
14622 2008-01-28 Ian Lance Taylor <iant@google.com>
14626 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14627 coalesce pointers if they have different DECL_NO_TBAA_P values.
14628 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
14629 between variables with different DECL_NO_TBAA_P values.
14631 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
14634 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
14635 are not legitimate small data references on SPE targets.
14637 2008-01-28 David Daney <ddaney@avtrex.com>
14639 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
14641 2008-01-28 David Daney <ddaney@avtrex.com>
14643 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
14645 2008-01-27 Joseph Myers <joseph@codesourcery.com>
14647 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
14648 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
14649 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
14650 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
14651 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
14652 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
14653 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
14654 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
14656 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
14658 * basic-block.h (condjump_equiv_p): Fix comment.
14660 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
14662 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
14663 print_generic_stmt_indented): Fix comment.
14665 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
14667 * configure.ac (__stack_chk_fail): Add detecion for availability
14668 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
14669 * configure: Regenerate.
14671 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
14673 PR middle-end/34688
14674 * final.c (output_addr_const): Handle TRUNCATE.
14676 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
14679 * tree-ssa-loop-ivopts.c (comp_cost): New type.
14680 (zero_cost, infinite_cost): New constants.
14681 (struct cost_pair): Change type of cost to comp_cost.
14682 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
14683 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
14685 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
14686 split_address_cost, ptr_difference_cost, difference_cost,
14687 get_computation_cost_at, get_computation_cost,
14688 determine_use_iv_cost_generic, determine_use_iv_cost_address,
14689 determine_use_iv_cost_condition, determine_use_iv_costs,
14690 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
14691 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
14692 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
14693 Change type of cost to comp_cost.
14694 (determine_iv_cost): Increase cost of non-original ivs, instead
14695 of decreasing the cost of original ones.
14696 (get_address_cost): Indicate the complexity of the addressing mode
14698 (try_add_cand_for): Prefer using ivs not specific to some object.
14699 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
14701 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
14702 Janis Johnson <janis187@us.ibm.com>
14705 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
14706 (TARGET_INSTANTIATE_DECLS): Likewise.
14707 * target.h (expand_to_rtl_hook): New target hook.
14708 (instantiate_decls): Likewise.
14709 * function.c (instantiate_decl): Make non-static. Rename to...
14710 (instantiate_decl_rtl): ... this.
14711 (instantiate_expr): Use instantiate_decl_rtl.
14712 (instantiate_decls_1): Likewise.
14713 (instantiate_decls): Likewise.
14714 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
14715 * function.h (instantiate_decl_rtl): Add prototype.
14716 * cfgexpand.c (target.h): New include.
14717 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
14718 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
14719 (TARGET_INSTANTIATE_DECLS): Likewise.
14720 (TARGET_INITIALIZER): New target hooks added.
14721 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
14723 * config/rs6000/rs6000.c (tree-flow.h): New include.
14724 (machine_function): Add sdmode_stack_slot field.
14725 (rs6000_alloc_sdmode_stack_slot): New function.
14726 (rs6000_instantiate_decls): Likewise.
14727 (rs6000_secondary_memory_needed_rtx): Likewise.
14728 (rs6000_check_sdmode): Likewise.
14729 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
14730 (TARGET_INSTANTIATE_DECLS): Likewise.
14731 (rs6000_hard_regno_mode_ok): Allow SDmode.
14732 (num_insns_constant): Likewise. Handle _Decimal32 constants.
14733 (rs6000_emit_move): Handle SDmode.
14734 (function_arg_advance): Likewise.
14735 (function_arg): Likewise.
14736 (rs6000_gimplify_va_arg): Likewise. Add special handling of
14737 SDmode var args for 32-bit compiles.
14738 (rs6000_secondary_reload_class): Handle SDmode.
14739 (rs6000_output_function_epilogue): Likewise.
14740 (rs6000_function_value): Simplify if statement.
14741 (rs6000_libcall_value): Likewise.
14742 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
14743 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
14744 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
14745 (movsd_hardfloat): New define_insn.
14746 (movsd_softfloat): Likewise.
14747 (movsd_store): Likewise.
14748 (movsd_load): Likewise.
14749 (extendsddd2): Likewise.
14750 (extendsdtd2): Likewise.
14751 (truncddsd2): Likewise.
14752 (movdd_hardfloat64): Fixup comment.
14753 (UNSPEC_MOVSD_LOAD): New constant.
14754 (UNSPEC_MOVSD_STORE): Likewise.
14756 2008-01-26 Jakub Jelinek <jakub@redhat.com>
14759 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
14761 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
14762 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
14763 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
14764 and TRUTH_XOR_EXPR.
14766 2008-01-26 David Edelsohn <edelsohn@gnu.org>
14769 * config.gcc: Separate AIX 5.3 from AIX 6.1.
14770 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
14771 __LONGDOUBLE128 too.
14772 * config/rs6000/aix61.h: New file.
14774 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
14776 PR rtl-optimization/34959
14777 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
14778 popcount and parity rtxes the same mode as their operand.
14779 Truncate or extend the result to the return value's mode
14782 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
14785 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
14786 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
14787 to GOT_VERSION_REGNUM.
14788 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
14789 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
14790 * config/mips/mips.c (mips_emit_call_insn): New function.
14791 (mips_call_tls_get_addr): Call mips_expand_call directly.
14792 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
14794 (mips16_build_call_stub): Likewise. Return the call insn or null.
14795 (mips_expand_call): Update the call to mips16_build_call_stub
14796 accordingly and a remove redundant condition. Assert that MIPS16
14797 stubs do not use lazy binding. Use mips_emit_call_insn and return
14799 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
14801 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
14802 (mips_avoid_hazard): Remove hazard_set handling.
14803 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
14804 (UNSPEC_RESTORE_GP): ...this.
14805 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
14806 (FAKE_CALL_REGNO): Rename to...
14807 (GOT_VERSION_REGNUM): ...this.
14808 (type): Add "ghost" value. Add an associated insn reservation.
14809 (hazard_set): Remove.
14810 (exception_receiver): Rename to...
14811 (restore_gp): ...this and update the unspec identifier accordingly.
14812 (exception_receiver, nonlocal_got_receiver): New expanders.
14813 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
14814 FAKE_CALL_REGNO. Remove hazard_set attribute.
14815 (set_got_version, update_got_version): New patterns.
14817 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
14820 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
14822 2008-01-25 Joseph Myers <joseph@codesourcery.com>
14825 * doc/install.texi2html: Generate gcc-vers.texi.
14827 2008-01-25 DJ Delorie <dj@redhat.com>
14829 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14831 2008-01-25 Joseph Myers <joseph@codesourcery.com>
14833 * config/c4x: Remove directory.
14834 * config.gcc (crx-*, mt-*): Mark obsolete.
14835 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
14836 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
14837 sh-*-rtemscoff*): Remove cases.
14838 * defaults.h (C4X_FLOAT_FORMAT): Remove.
14839 * real.c (encode_c4x_single, decode_c4x_single,
14840 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
14841 c4x_extended_format): Remove.
14842 * real.h (c4x_single_format, c4x_extended_format): Remove.
14843 * doc/extend.texi (interrupt, naked): Remove mention of attributes
14845 (Pragmas): Remove comment about c4x pragmas.
14846 * doc/install.texi (c4x): Remove target-specific instructions.
14847 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
14848 * doc/md.texi (Machine Constraints): Remove C4x documentation.
14849 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
14850 refer to C4x source files as examples.
14851 (C4X_FLOAT_FORMAT): Remove documentation.
14853 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
14855 * config/bfin/bfin.c (override_options): Reorder tests so that
14856 flag_pic gets enabled for -msep-data.
14858 2008-01-25 Richard Guenther <rguenther@suse.de>
14860 PR middle-end/32244
14861 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
14862 to its bitfield precision if required.
14864 2008-01-25 Jakub Jelinek <jakub@redhat.com>
14866 PR middle-end/33880
14867 * tree-nested.c (walk_omp_for): New function.
14868 (convert_nonlocal_reference, convert_local_reference): Call
14869 walk_omp_for on OMP_FOR.
14870 (convert_call_expr): Call walk_body on OMP_FOR's
14871 OMP_FOR_PRE_INIT_BODY.
14873 2008-01-25 Richard Guenther <rguenther@suse.de>
14875 PR tree-optimization/34966
14876 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
14877 default defs and PHI_NODEs we have to insert after the
14878 defining statement.
14880 2008-01-24 Nick Clifton <nickc@redhat.com>
14882 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
14883 Provide a default definition.
14884 (LIBGCC2_UNITS_PER_WORD): Likewise.
14886 * config/stormy16/stormy16.c: Include df.h for the prototype
14887 for df_regs_ever_live_p.
14888 (xstormy16_expand_builtin_va_start): Convert the stack offset
14889 into a component_ref and then use POINTER_PLUS_EXPR to add it
14890 to the incoming_virtual_args_rtx.
14891 (xstormy16_gimplify_va_arg_expr): Rename to
14892 xstormy16_gimplify_va_arg_expr.
14893 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
14894 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
14895 xstormy16_gimplify_va_arg_expr.
14896 Fix up some formatting issues.
14898 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
14899 Move to predicates.md.
14900 (xs_hi_general_operand): Likewise.
14901 (xs_hi_nonmemory_operand): Likewise.
14902 * config/stormy16/predicates.md:
14903 (xstormy16_carry_plus_operand): New predicate.
14904 (xs_hi_general_operand): New predicate.
14905 (xs_hi_nonmemory_operand): New predicate.
14906 * config/stormy16/stormy16-protos.h:
14907 (xstormy16_carry_plus_operand): Delete prototype.
14908 (xs_hi_general_operand): Likewise.
14909 (xs_hi_nonmemory_operand): Likewise.
14911 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
14912 modifiers as they are no longer needed and they can trigger
14913 reload spill failures.
14915 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
14916 with a match_operand in order to help reload.
14918 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
14919 constraint with 'e' for the 8th alternative as this version of
14920 the mov.w instruction only accepts the lower 8 registers.
14922 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
14925 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
14926 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
14929 2008-01-25 Jakub Jelinek <jakub@redhat.com>
14931 PR middle-end/33333
14932 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
14934 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
14936 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
14938 (remove_structure): Update allocations list before removing structure.
14940 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
14942 * ipa-struct-reorg.c (is_safe_cond_expr,
14943 create_new_stmts_for_cond_expr): Use integer_zerop function,
14944 that recognize not only zero-pointer, but zero-integer too.
14946 2008-01-25 Ben Elliston <bje@au.ibm.com>
14949 * fixproto: Escape "." in sed expression that strips leading "./".
14951 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
14954 * gcc.c (SWITCH_OK): Removed.
14955 (SWITCH_LIVE): Changed to bit.
14956 (SWITCH_FALSE): Likewise.
14957 (SWITCH_IGNORE): Likewise.
14958 (switchstr): Change live_cond to unsigned int.
14959 (process_command): Replace SWITCH_OK with 0.
14960 (do_self_spec): Likewise.
14961 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
14962 (give_switch): Likewise.
14963 (used_arg): Likewise.
14964 (do_spec_1): Set the SWITCH_IGNORE bit.
14965 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
14966 bits. Set the SWITCH_LIVE bit.
14968 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
14970 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
14972 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
14974 PR tree-optimization/34472
14975 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
14976 parameter to a "bool *" and set *DATA to false if there is
14977 an unsafe access. Do not delete the structure here.
14978 (check_cond_exprs): Delete it here instead.
14979 (check_cond_exprs, exclude_cold_structs): Do not increase
14980 I when removing a structure.
14982 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
14985 * config/i386/i386.c (ix86_expand_vector_init): Consider only
14986 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
14988 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
14990 PR middle-end/34934
14991 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
14992 a fixed vector for stack.
14994 2008-01-24 Ben Elliston <bje@au.ibm.com>
14997 * doc/gcc.texi (Software development): Add a direntry for g++.
14999 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
15001 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
15002 stale and straggling -fforce-addr comments above.
15004 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
15006 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
15007 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
15009 2008-01-23 Michael Matz <matz@suse.de>
15012 * dwarf2out.c (force_type_die): Use modified_type_die instead of
15015 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
15017 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
15018 malloc result type.
15020 2008-01-23 Anatoly Sokolov <aesok@post.ru>
15022 * config/avr/avr.c (avr_current_arch): New variable.
15023 (avr_arch_types): Add 'avr31' and 'avr51' entries.
15024 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
15025 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
15026 (avr_override_options): Init 'avr_current_arch'.
15027 (base_arch_s): Move from here...
15028 * config/avr/avr.h (base_arch_s): ... here. Add new members
15029 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
15030 'mega' to 'have_jmp_call'.
15031 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
15032 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
15034 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
15036 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15037 MULTILIB_MATCHES): (Ditto.).
15039 2008-01-23 Richard Guenther <rguenther@suse.de>
15041 PR middle-end/31529
15042 * cgraphunit.c (cgraph_reset_node): Always mark the node
15043 not reachable if it is not queued already.
15045 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
15047 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
15048 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
15049 (cputype_selected): New static variable.
15050 (bfin_handle_option): Set it if -mcpu is used.
15051 (override_option): Select default set of workarounds if no cpu type
15052 selected on the command line.
15053 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
15055 From Michael Frysinger <michael.frysinger@analog.com>
15056 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
15057 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
15059 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
15060 for bf547, bf523, bf524, and bf526.
15061 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
15063 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15064 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
15065 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
15066 __ADSPBF547__ and __ADSPBF54x__ for bf547.
15067 * doc/invoke.texi (Blackfin Options): Document that
15068 -mcpu now accept bf547, bf523, bf524, and bf526.
15070 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
15072 PR rtl-optimization/34628
15073 * combine.c (try_combine): Stop and undo after the first combination
15074 if an autoincrement side-effect on the first insn has effectively
15077 2008-01-22 David Edelsohn <edelsohn@gnu.org>
15080 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
15081 Offset addresses are not valid for Altivec or paired float modes.
15083 2008-01-22 Jakub Jelinek <jakub@redhat.com>
15086 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
15087 if DECL_INITIAL (decl) is error_mark_node.
15090 * c-common.c (handle_vector_size_attribute): Only allow
15091 integral, scalar float and fixed point types. Handle OFFSET_TYPE
15092 the same way as pointer, array etc. types.
15093 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
15096 * tree.c (build_type_attribute_qual_variant): Call
15097 build_qualified_type if attributes are equal, but quals are not.
15099 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15102 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
15103 * flags.h (warn_strict_aliasing): Remove.
15104 (warn_strict_overflow): Remove.
15105 * opts.c (warn_strict_aliasing): Remove.
15106 (warn_strict_overflow): Remove.
15107 * c-opts.c (c_common_handle_option): -Wall only sets
15108 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
15109 (c_common_post_options): Give default values to -Wstrict-aliasing
15110 and -Wstrict-overflow if they are uninitialized.
15111 * common.opt (Wstrict-aliasing): Specify Var and Init.
15112 (Wstrict-overflow): Likewise.
15114 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
15116 PR rtl-optimization/26854
15117 PR rtl-optimization/34400
15118 PR rtl-optimization/34884
15119 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
15121 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
15122 (df_rd_bb_info.expanded_lr_out): Deleted
15123 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
15124 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
15125 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
15126 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
15127 Removed code to allocate, initialize or free expanded_lr_out.
15128 (df_rd_bb_local_compute_process_def): Restructured to make more
15130 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
15131 sets if the sets are being trimmed.
15133 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
15136 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
15137 (as_vers): Likewise.
15138 * configure: Regenerated.
15140 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15142 PR middle-end/33092
15143 * tree-pass.h (pass_build_alias): New pass.
15144 * tree-ssa-alias.c (gate_build_alias): New.
15145 (pass_build_alias): New.
15146 * passes.c (init_optimization_passes): Add pass_build_alias after
15147 pass_create_structure_vars.
15149 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
15151 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
15152 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
15153 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
15154 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
15155 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
15156 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
15157 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
15158 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
15159 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
15160 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
15161 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
15162 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
15163 * config/s390/s390.md (FP_ALL): New mode iterator.
15164 (_d): New mode attribute.
15165 ("*signbit<mode>2>"): Changed mode of first operand.
15166 ("isinf<mode>2"): Changed mode of first operand.
15167 ("*TDC_insn"): Adaptation for DFP modes.
15169 2008-01-22 Ben Elliston <bje@au.ibm.com>
15171 * tree.c (check_qualified_type): Improve function description.
15173 2008-01-21 Jason Merrill <jason@redhat.com>
15176 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
15177 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
15180 2008-01-21 DJ Delorie <dj@redhat.com>
15182 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
15185 2008-01-21 Richard Guenther <rguenther@suse.de>
15187 PR middle-end/34856
15188 * tree-cfg.c (verify_expr): Allow all invariant expressions
15189 instead of just constant class ones as reference argument.
15190 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
15191 like any other constant.
15192 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15194 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
15196 * regmove.c (fixup_match_1): Update call crossed frequencies.
15198 2008-01-21 Richard Guenther <rguenther@suse.de>
15201 * tree-inline.c (setup_one_parameter): Deal with mismatched
15202 types using a VIEW_CONVERT_EXPR.
15204 2008-01-21 Alon Dayan <alond@il.ibm.com>
15205 Olga Golovanevsky <olga@il.ibm.com>
15207 PR tree-optimization/34701
15208 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
15209 when the structure size is not a power of 2.
15211 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
15213 * doc/install.texi: Add doc for --enable-checking=df.
15215 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
15217 PR rtl-optimization/34808
15218 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
15220 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
15222 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
15225 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
15227 PR rtl-optimization/26854
15228 PR rtl-optimization/34400
15229 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
15231 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
15232 (df_rd_bb_info.expanded_lr_out): New.
15233 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
15234 * loop_iv.c (iv_analysis_loop_init): Ditto.
15235 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
15236 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
15237 Added code to allocate, initialize or free expanded_lr_out.
15238 (df_rd_bb_local_compute_process_def): Restructured to make
15239 more understandable.
15240 (df_rd_confluence_n): Add code to do nothing with fake edges and
15241 code to no apply invalidate_by_call sets if the sets are being trimmed.
15242 (df_lr_local_finalize): Renamed to df_lr_finalize.
15243 (df_live_local_finalize): Renamed to df_live_finalize.
15245 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
15248 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
15249 deciding whether to use reciprocal instructions.
15251 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
15253 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
15254 dwarf2out_note_section_used if cold_text_section is NULL.
15256 2008-01-19 Jakub Jelinek <jakub@redhat.com>
15258 PR gcov-profile/34610
15259 * tree-cfg.c (make_edges): Mark both outgoing edges from
15260 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
15261 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
15262 from OMP_FOR and OMP_CONTINUE outgoing edges.
15264 * tree-profile.c (tree_profiling): Return early if
15265 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
15267 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
15268 from cfun to child_cfun.
15269 * function.h (struct function): Add after_tree_profile bit.
15271 2008-01-19 Anatoly Sokolov <aesok@post.ru>
15273 * config/avr/avr.S (_exit): Disable interrupt.
15275 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
15276 Steven Bosscher <stevenb.gcc@gmail.com>
15278 PR rtl-optimization/26854
15279 PR rtl-optimization/34400
15280 * df-problems.c (df_live_scratch): New scratch bitmap.
15281 (df_live_alloc): Allocate df_live_scratch when doing df_live.
15282 (df_live_reset): Clear the proper bitmaps.
15283 (df_live_bb_local_compute): Only process the artificial defs once
15284 since the order is not important.
15285 (df_live_init): Init the df_live sets only with the variables
15286 found live by df_lr.
15287 (df_live_transfer_function): Use the df_lr sets to prune the
15288 df_live sets as they are being computed.
15289 (df_live_free): Free df_live_scratch.
15291 2008-01-18 Ian Lance Taylor <iant@google.com>
15293 * common.opt: Add fmerge-debug-strings.
15294 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
15295 flag_merge_debug_strings rather than flag_merge_constants.
15296 * doc/invoke.texi (Option Summary): Mention
15297 -fmerge-debug-strings.
15298 (Debugging Options): Document -fmerge-debug-strings.
15300 2008-01-18 Ian Lance Taylor <iant@google.com>
15303 * tree.h (DECL_IS_OPERATOR_NEW): Define.
15304 (struct tree_function_decl): Add new field operator_new_flag.
15305 * tree-inline.c (expand_call_inline): When inlining a call to
15306 operator new, force the return value to go into a variable, and
15307 set DECL_NO_TBAA_P on that variable.
15308 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
15310 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
15313 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
15314 DWARF2_DEBUGGING_INFO.
15315 (dwarf2out_note_section_used): Ditto. Add prototype.
15316 (have_multiple_function_sections, text_section_used,
15317 cold_text_section_used, *cold_text_sections): Move declarations
15320 2008-01-17 Bob Wilson <bob.wilson@acm.org>
15322 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
15323 field and add signal_ra.
15324 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
15325 assignments to frame state pc. Move end of stack check after
15326 MD_FALLBACK_FRAME_STATE_FOR.
15327 (uw_update_context_1): Use frame state signal_regs if set, instead
15328 of checking signal_frame flag.
15329 (uw_update_context): Use frame state signal_ra if set.
15330 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
15331 * config/xtensa/linux-unwind.h: New file.
15333 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
15335 * modulo-sched.c (get_sched_window): Fix comment typo.
15337 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
15339 PR tree-optimization/34648
15340 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
15342 2008-01-17 Anatoly Sokolov <aesok@post.ru>
15344 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
15345 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
15347 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
15349 PR rtl-optimization/34400
15350 * df-core.c (df_worklist_dataflow_overeager,
15351 df_worklist_dataflow_doublequeue): New functions.
15352 (df_worklist_dataflow): Two different worklist solvers.
15353 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
15356 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
15359 * doc/invoke.texi: Document the dependence on pthread for fopenmp
15360 and ftree-parallelize-loops.
15362 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
15364 PR rtl-optimization/34826
15365 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
15367 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
15369 * global.c (find_reg): Mark the eh regs as used if necessary.
15370 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
15371 * ra.h (struct allocno): no_eh_reg field added. Changed
15372 no_stack_reg type to bitfield.
15374 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
15376 * tree.c (substitute_in_expr): Add missing 'break'.
15378 2008-01-17 Richard Guenther <rguenther@suse.de>
15380 PR tree-optimization/34825
15381 * tree-ssa-math-opts.c (is_division_by): Do not recognize
15382 x / x as division to handle.
15384 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15386 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
15387 "-pthread" is specified.
15388 * pa-hpux11.h (LIB_SPEC): Likewise.
15390 2008-01-16 Janis Johnson <janis187@us.ibm.com>
15391 Peter Bergner <bergner@vnet.ibm.com>
15393 PR rtl-optimization/33796
15394 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
15396 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15398 PR libgfortran/34699
15399 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
15401 * pa-hpux10.h (LINK_SPEC): Likewise.
15402 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
15404 2008-01-16 Richard Guenther <rguenther@suse.de>
15406 PR middle-end/32628
15407 * fold-const.c (fold_convert_const_int_from_int): Do not
15408 set overflow if that occured only because of a sign extension
15409 change when converting from/to a sizetype with the same
15410 precision and signedness.
15412 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
15415 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
15416 location address to the correct place. Update copyright year.
15418 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
15420 * lambda-code.c (lambda_transform_legal_p): Handle the case of
15421 no dependences in the dependence_relations vector.
15423 2008-01-16 Jan Hubicka <jh@suse.cz>
15425 PR rtl-optimization/31396
15426 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
15427 * cfg.c (dump_reg_info): Print it.
15428 * regs.h (struct reg_info_t): add freq_calls_crossed.
15429 (REG_FREQ_CALLS_CROSSED): New macro.
15430 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
15431 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
15432 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
15433 regmove_optimize): Update call crossed frequencies.
15434 * local-alloc.c (struct qty): Add freq_calls_crossed.
15435 (alloc_qty): Copute freq_calls_crossed.
15436 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
15437 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
15438 * ra.h (struct allocno): Add freq_calls_crossed.
15440 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
15442 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
15443 libgomp when compiling with ftree-parallelize-loops.
15444 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
15446 2008-01-16 Richard Guenther <rguenther@suse.de>
15448 PR tree-optimization/34769
15449 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
15450 * tree.c (int_cst_value): Instead make this function more
15451 permissive in what it accepts as valid input. Document this
15452 function always sign-extends the value.
15454 2008-01-16 Jakub Jelinek <jakub@redhat.com>
15455 Richard Guenther <rguenther@suse.de>
15458 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
15459 (gimple_fold_indirect_ref_rhs): ... this.
15460 (gimple_fold_indirect_ref): New function with foldings
15461 that preserve lvalueness.
15462 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
15463 * tree-flow.h (gimple_fold_indirect_ref): Declare.
15464 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
15465 to fold an INDIRECT_REF, fall back to the old use of
15466 fold_indirect_ref_1.
15468 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
15470 * tree-data-ref.c (subscript_dependence_tester_1): Call
15471 free_conflict_function.
15472 (compute_self_dependence): Same.
15474 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
15477 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
15478 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
15480 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
15481 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
15482 for DWARF2_UNWIND_INFO targets.
15484 2008-01-16 Richard Guenther <rguenther@suse.de>
15487 * c-typeck.c (common_pointer_type): Do not merge inconsistent
15488 type qualifiers for function types.
15490 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
15492 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
15493 loop_iterator li from previous commit.
15495 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
15497 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
15499 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
15501 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
15502 (parallelize_loops): Don't parallelize irreducible components.
15504 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15507 * c-opts (c_common_post_options): Do not enable CPP
15508 flag_pedantic_errors by default.
15510 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
15512 PR rtl-optimization/31944
15513 * cse.c (remove_pseudo_from_table): New function.
15514 (merge_equiv_classes): Use above function to remove pseudo-registers.
15515 (invalidate): Likewise.
15517 2008-01-13 Richard Guenther <rguenther@suse.de>
15519 PR middle-end/34601
15520 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
15521 instead of TYPE_MODE to deal with calls from expand_one_error_var.
15523 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
15525 * gcse.c (cprop_jump): Call validate_unshare_change instead of
15526 validate_change to unshare the source of the PC set.
15528 2008-01-12 Jan Hubicka <jh@suse.cz>
15530 PR middle-end/32135
15531 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
15532 references above array bounds. This might trigger bounds checks for
15533 pointers to arrays.
15535 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
15537 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
15538 new_replaceable_dependencies.
15540 2008-01-12 Doug Kwan <dougkwan@google.com>
15542 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
15543 instead of OPT_Wreturn_type in warning due to ignored return type
15545 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
15546 options included in -Wextra.
15547 * c.opt: New option -Wignored_qualifiers.
15548 * doc/invoke.texi (Warning Options, -Wextra): Add new option
15549 -Wignore_qualifiers.
15550 (-Wignored-qualifiers): Document.
15551 (-Wreturn-type): Remove description of functionality now handled
15552 by -Wignored-qualifiers.
15554 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
15557 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
15558 NOP_EXPR if it is between integral types with the same precision.
15560 2008-01-12 Jan Hubicka <jh@suse.cz>
15563 * invoke.texi (max-inline-recursive-depth): Fix default value.
15565 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
15567 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
15570 2008-01-11 Bob Wilson <bob.wilson@acm.org>
15572 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
15574 2008-01-11 James E. Wilson <wilson@specifix.com>
15577 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
15579 2008-01-11 Anatoly Sokolov <aesok@post.ru>
15581 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
15582 save/restore frame pointer register and don't use 'call-prologues'
15583 optimization in function with "OS_task" attribute.
15585 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
15587 PR middle-end/31309
15588 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
15589 when copying to memory.
15591 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
15593 PR rtl-optimization/30905
15594 * cfgcleanup.c: Include dce.h
15595 (crossjumps_occured): New global variable.
15596 (try_crossjump_bb): Exit loop after finding a fallthru edge.
15597 If something changed, set crossjumps_occured to true.
15598 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
15599 Don't add/remove fake edges to exit here...
15600 (cleanup_cfg): ...but do it here, when crossjumping.
15601 Run a fast DCE when successful crossjumps occured in the latest
15602 iteration of try_optimize_cfg.
15604 2008-01-11 Richard Guenther <rguenther@suse.de>
15606 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
15607 (struct vn_unary_op_s): Likewise.
15608 (vn_reference_insert): Free old reference on hash collision.
15610 2008-01-10 Raksit Ashok <raksit@google.com>
15612 PR rtl-optimization/27971
15613 * combine.c (find_split_point): Split PLUS expressions which are
15614 inside a MEM rtx, and whose first operand is complex.
15616 2008-01-10 DJ Delorie <dj@redhat.com>
15618 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
15619 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
15620 (m32c_hard_regno_ok): Call the underlying function.
15622 2008-01-10 Richard Guenther <rguenther@suse.de>
15624 PR middle-end/34683
15625 * tree-cfg.c (tree_merge_blocks): Do not go through the
15626 full-blown folding and stmt updating path if we just deal
15627 with virtual operands.
15628 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
15629 test for abnormal SSA_NAMEs.
15631 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
15633 PR middle-end/34641
15634 * reload.c (push_reload): Add assertions. All constants from
15635 reg_equiv_constant should have been used for replacing the respective
15637 (find_reloads_address): Invoke find_reloads_address_part for
15638 constant taken from the reg_equiv_constant array.
15640 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
15642 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
15643 field (valnum) the first in the struct. Replace bools with
15646 2008-01-10 Richard Guenther <rguenther@suse.de>
15648 PR tree-optimization/34651
15649 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
15650 types and ordering for masking and converting.
15652 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
15654 PR tree-optimization/34017
15655 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
15656 also for PHI_NODE expressions.
15658 2008-01-09 Jan Hubicka <jh@suse.cz>
15660 PR tree-optimization/34708
15661 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
15662 based on number of case labels.
15663 (init_inline_once): Remove switch_cost.
15664 * tree-inline.h (eni_weights_d): Remove switch_cost.
15666 2008-01-09 Richard Guenther <rguenther@suse.de>
15667 Andrew Pinski <andrew_pinski@playstation.sony.com>
15669 PR middle-end/30132
15670 * gimplify.c (gimplify_cond_expr): Do not create an addressable
15671 temporary if an rvalue is ok or an lvalue is not required.
15673 2008-01-09 Richard Guenther <rguenther@suse.de>
15675 PR middle-end/34458
15676 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
15677 adjust return type.
15679 2008-01-09 Richard Guenther <rguenther@suse.de>
15681 PR middle-end/34679
15682 * tree.c (host_integerp): Check for sizetype only if the
15683 type is an integer type.
15685 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
15688 * opts.c (decode_options): Disable inlining of functions called
15689 once if not in unit-at-a-time mode.
15691 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
15693 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
15695 2008-01-08 Richard Guenther <rguenther@suse.de>
15697 PR middle-end/31863
15698 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
15699 out early if the result will be unused.
15701 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
15706 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
15707 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
15710 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
15712 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
15713 for vectorization tuned.
15715 2008-01-08 Richard Guenther <rguenther@suse.de>
15717 PR tree-optimization/34683
15718 * tree-ssa-operands.c (operand_build_cmp): Export.
15719 * tree-ssa-operands.h (operand_build_cmp): Declare.
15720 * tree-vn.c (vuses_compare): Remove.
15721 (sort_vuses): Use operand_build_cmp.
15722 (sort_vuses_heap): Likewise.
15723 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
15724 to re-use old VEC if available. Do not sort already sorted VUSEs.
15725 (vdefs_to_vec): Do not sort already sorted VDEFs.
15727 2008-01-08 Jakub Jelinek <jakub@redhat.com>
15729 PR middle-end/34694
15730 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
15732 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
15735 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
15736 limitations of reciprocal sequences on x86 targets.
15738 2008-01-08 Richard Guenther <rguenther@suse.de>
15740 PR tree-optimization/34683
15741 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
15743 2008-01-07 Jakub Jelinek <jakub@redhat.com>
15746 * config/darwin.c (darwin_mergeable_string_section): Don't use
15747 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
15749 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
15752 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
15753 negxf2. Macroize expander using X87MODEF mode iterator. Change
15754 predicates of op0 and op1 to register_operand.
15755 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
15756 expander using X87MODEF mode iterator. Change predicates of
15757 op0 and op1 to register_operand.
15758 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
15759 corresponding patterns and macroize using MODEF macro. Change
15760 predicates of op0 and op1 to register_operand and remove
15761 "m" constraint. Disparage "r" alternative with "!".
15762 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
15763 macroize using X87MODEF macro. Change predicates of op0 and op1
15764 to register_operand and remove "m" constraint. Disparage "r"
15765 alternative with "!".
15766 (absneg splitter with memory operands): Remove.
15767 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
15768 patterns and macroize using X87MODEF mode iterator.
15769 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
15770 Change predicate of op1 to register_operand.
15771 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
15772 for memory operands.
15774 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
15776 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
15778 2008-01-07 Richard Guenther <rguenther@suse.de>
15780 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
15783 2008-01-07 Richard Guenther <rguenther@suse.de>
15785 PR tree-optimization/34683
15786 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
15787 VOPs of the needed size to save memory. Use VEC_quick_push
15788 to save compile-time.
15789 (vdefs_to_vec): Likewise.
15791 2008-01-07 Sa Liu <saliu@de.ibm.com>
15793 * config/spu/spu.md (divdf3): Genetate inline code for double
15794 division. The implementation doesn't handle INF or NAN, therefore it
15795 only applies when -ffinite-math-only is given.
15797 2008-01-06 Paolo Carlini <pcarlini@suse.de>
15800 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
15801 * doc/cpp.texi ([Common Predefined Macros]): Document.
15803 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
15805 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
15806 order to use commutative addition instead of subtraction.
15808 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
15809 Mircea Namolaru <namolaru@il.ibm.com>
15810 Vladimir Yanovsky <yanov@il.ibm.com>
15811 Revital Eres <eres@il.ibm.com>
15813 PR tree-optimization/34263
15814 * tree-outof-ssa.c (process_single_block_loop_latch,
15815 contains_tree_r): New functions.
15816 (analyze_edges_for_bb): Call process_single_block_loop_latch
15817 function to empty single-basic-block latch block if possible.
15819 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
15821 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
15823 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
15825 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
15827 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
15829 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
15831 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
15833 2008-01-05 Jakub Jelinek <jakub@redhat.com>
15835 PR tree-optimization/34618
15836 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
15839 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
15842 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
15843 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
15844 Update copyright year.
15846 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
15847 Update copyright year.
15848 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
15851 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
15853 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
15854 edge does not point to current bb before changing need_assert.
15856 2008-01-04 Richard Guenther <rguenther@suse.de>
15858 PR middle-end/34029
15859 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
15860 for verifying purposes if they are is_gimple_min_invariant.
15862 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
15864 PR tree-optimization/34448
15865 PR tree-optimization/34465
15866 * gimplify.c (gimplify_init_constructor): Add new parameter
15867 notify_temp_creation. Use it.
15868 (gimplify_modify_expr_rhs): Take volatiles into account when
15869 optimizing constructors.
15870 Do not optimize constructors if gimplify_init_constructor will dump to
15872 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
15873 * gcc.c-torture/compile/pr34448.c: New.
15875 2008-01-04 Jakub Jelinek <jakub@redhat.com>
15877 PR gcov-profile/34609
15878 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
15879 return_slot if result is TREE_ADDRESSABLE.
15881 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
15883 * config/mips/mips.md (sqrt_condition): Tweak comment.
15884 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
15886 2008-01-03 Tom Tromey <tromey@redhat.com>
15889 * c-common.c (c_type_hash): Handle VLAs.
15891 2008-01-03 Jan Hubicka <jh@suse.cz>
15893 PR tree-optimization/31081
15894 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
15895 0 when inlining and not inlining to first basic block.
15896 (remap_decl): When var is initialized to 0, don't set default_def.
15897 (expand_call_inline): Set entry_bb.
15898 * tree-inline.h (copy_body_data): Add entry_bb.
15900 2008-01-03 Jakub Jelinek <jakub@redhat.com>
15903 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
15906 PR tree-optimization/29484
15907 * tree-inline.c (inline_forbidden_p_2): New function.
15908 (inline_forbidden_p): Disallow inlining if some static var
15909 has an address of a local LABEL_DECL in its initializer.
15910 * doc/extend.texi (Labels as Values): Document &&foo behaviour
15913 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
15915 PR tree-optimization/34635
15916 * tree-data-ref.c (add_other_self_distances): Make sure that the
15917 evolution step is constant.
15919 2008-01-03 Jakub Jelinek <jakub@redhat.com>
15921 PR middle-end/34608
15922 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
15924 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
15926 * tree-sra.c (scalarize_init): Insert the generate_element_init
15927 statements after the generate_element_zero statements.
15929 2008-01-02 Richard Guenther <rguenther@suse.de>
15931 PR middle-end/34093
15932 PR middle-end/31976
15933 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
15934 for very large number of operands instead of ICEing.
15936 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
15939 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
15940 while stack probing.
15942 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
15944 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
15947 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
15949 PR libmudflap/26442
15950 * tree-mudflap.c (mx_register_decls): Guard warning by
15951 !DECL_ARTIFICIAL check.
15953 2008-01-01 Jakub Jelinek <jakub@redhat.com>
15955 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
15956 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
15957 sse5_perm<mode>): Fix constraints.