OSDN Git Service

c946bb08659074c2303c083c051fcfbe1aae47d0
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-07-14  Ben Elliston  <bje@au.ibm.com>
2
3         * c-common.h (C_CPP_HASHNODE): New macro.
4         * coretypes.h (struct cpp_token): Forward declare.
5         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
6         the context-sensitive keyword method.
7         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
8         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
9         expand_bool_pixel): New.
10         (altivec_categorize_keyword): New function.
11         (init_vector_keywords): New function.
12         (rs6000_macro_to_expand): Likewise.
13         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
14         compiling an ISO C dialect.
15
16 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
17
18         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert
19         calls.
20         (create_expression_by_pieces): Fix typo.
21         (do_regular_insertion): Use debug counter here too.
22
23 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
24
25         PR target/35492.
26         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
27         CONST_OK_FOR_LETTER_P.  All port-local users changed.
28         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
29         implement Kp matching power-of-two.
30         (CONSTRAINT_LEN): Define to match.
31         * config/cris/cris.md: Replace all use of constraint K with Kc.
32         ("*btst*): Use Kp for operand 0 of last alternative.
33
34 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35
36         PR testsuite/36440
37         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
38         and quad formats.
39
40 2008-07-13  Jan Hubicka  <jh@suse.cz>
41
42         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
43         to be mangled too.
44
45 2008-07-13  Richard Guenther  <rguenther@suse.de>
46
47         PR middle-end/36811
48         * langhooks.c (lhd_print_error_function): Deal with recursive
49         BLOCK trees.
50
51 2008-07-12  Jan Hubicka  <jh@suse.cz>
52
53         * cgraph.c (assembler_name_hash): New static var.
54         (hash_node_by_assembler_name, eq_assembler_name): New.
55         (cgraph_node_for_asm): Use hashtable.
56         (cgraph_remove_node): Maintain hashtable.
57         (change_decl_assembler_name): Sanity check that names are not changing
58         after aliasing was processed.
59         * cgraph.h (varpoon_node): Add next GGC marker.
60         * tree.c (decl_assembler_name_equal): Constify.
61         (decl_assembler_name_hash): New.
62         * tree.h (decl_assembler_name_equal): Constify.
63         (decl_assembler_name_hash): Update.
64
65 2008-07-12  David Daney  <ddaney@avtrex.com>
66
67         * config/mips/driver-native.c (host_detect_local_cpu): Handle
68         sb1 and r5000 cpus.
69
70 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
71
72         * doc/md.texi: Document the MIPS "v" constraint.
73         * config/mips/mips.h (reg_class): Revert last change.
74         (REG_CLASS_NAMES): Likewise.
75         (REG_CLASS_CONTENTS): Likewise.
76         * config/mips/mips.c (mips_regno_to_class): Likewise.
77         * config/mips/constraints.md (v): Likewise, but add documentation.
78         Add a comment to say that this constraint should not be used in
79         gcc code.
80
81 2008-07-11  DJ Delorie  <dj@redhat.com>
82
83         * config/h8300/h8300.md (length): Fix branch offset limit.
84
85 2008-07-11  Anatoly Sokolov  <aesok@post.ru>    
86
87         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
88         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
89         (avr_hard_regno_scratch_ok): New function.
90         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
91         * config/avr/avr.md (all peepholes that request a scratch register):
92         Remove avr_peep2_scratch_safe use.
93
94 2008-07-11  Tom Tromey  <tromey@redhat.com>
95             Ian Lance Taylor  <iant@google.com>
96
97         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
98         (struct c_common_resword): Define.
99         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
100         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
101         (c_common_reswords, num_c_common_reswords): Declare.
102         * c-common.c (c_common_reswords): New global const array.
103         (num_c_common_reswords): New const int.
104         * c-parser.c (struct resword, reswords): Don't define.
105         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
106         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
107         than reswords.  If warning about C++ keywords, give them a special
108         RID code.
109         (c_lex_one_token): Warn about C++ keywords.  Call
110         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
111         (c_parser_external_declaration): Look for RID_xxx rather than
112         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
113         (c_parser_statement_after_labels): Likewise.
114         (c_parser_objc_class_instance_variables): Likewise.
115         (c_parser_objc_class_declaration): Likewise.
116         (c_parser_objc_try_catch_statement): Likewise.
117         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
118         (declspecs_add_type): Likewise.
119
120 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
121
122         * ggc-page.c (alloc_page):
123         Substituting xmalloc, xcalloc with
124         XNEWVEC and XCNEWVAR macros which add the
125         needed casts.
126
127 2008-07-11  Richard Guenther  <rguenther@suse.de>
128
129         PR tree-optimization/36765
130         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
131         aliases from HEAP vars to SMTs.
132
133 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
134
135         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
136         * configure.ac (loose_warn): Move -Wc++-compat from here...
137         (strict_warn): ...to here.
138         * configure: Regenerate.
139
140 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
141
142         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
143         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
144         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
145         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
146         excluding more specific h8300-*-* and sh-*-* targets.
147
148 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
149
150         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert
151         calls.
152         (eliminate): Ditto.
153         (execute_pre): Call loop_optimizer_finalize in early exit.
154
155 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
156
157         PR middle-end/36790
158         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
159         uids in the bitmap, not just VAR_DECL uids.
160
161         PR rtl-optimization/36419
162         * combine-stack-adj.c (adjust_frame_related_expr): New function.
163         (combine_stack_adjustments_for_block): Call it if needed.  Delete
164         correct insn.
165         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
166         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
167         prologue sp adjustment.
168
169 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
170
171         PR other/28322
172         * opts.c (print_ignored_options): Report postponed diagnostics for
173         unknown -Wno-* options as warnings, not errors.
174         (postpone_unknown_option_error): Renamed to...
175         (postpone_unknown_option_warning): ... this.
176
177 2008-07-09  Doug Kwan  <dougkwan@google.com>
178
179         Revert:
180         2008-07-08  Doug Kwan  <dougkwan@google.com>
181
182         * config/arm/arm.opt (mandroid): New option.
183         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
184         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
185         (CC1_SPEC): Same.
186         (CC1PLUS_SPEC): Same.
187         (LIB_SPEC): Same.
188         (STARTFILE_SPEC): Same.
189         (ENDFILE_SPEC): Same.
190         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
191         used.
192
193 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
194
195         PR target/35802
196         * config/mips/mips.h (reg_class): Remove V1_REG.
197         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
198         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
199         instead of V1_REGS.
200         (mips_get_tp): New function.
201         (mips_legitimize_tls_address): Use it.
202         * config/mips/constraints.md (v): Delete.
203         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
204         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
205         After reload, split into a move and ...
206         (*tls_get_tp_<mode>_split): ...this new instruction.
207
208 2008-07-09  David Daney  <ddaney@avtrex.com>
209
210         * config/mips/driver-native.c: Include coretypes.h and tm.h.
211
212 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
213
214         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
215         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
216         Add c argument.
217         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
218         htab_delete should be called.  Don't free c.
219         (lookup_tmp_var): Create temp_htab lazily.
220         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
221         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
222         callers.
223         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
224         lower_omp_ordered, lower_omp_critical, lower_omp_for,
225         create_task_copyfn, lower_omp_taskreg, execute_lower_omp): 
226         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
227         * tree-sra.c (generate_element_init): Likewise.
228         * tree-mudflap.c (execute_mudflap_function_ops,
229         execute_mudflap_function_decls): Likewise.
230         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
231         * tree-gimple.h (struct gimplify_ctx): New type.
232         (push_gimplify_context): Adjust prototype.
233
234 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
235
236         * tree-ssa-pre.c (phi_translate_1): Update placement of
237         add_to_value calls.
238
239 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
240
241         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
242         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
243         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
244         * targhooks.c (default_hard_regno_scratch_ok): New function.
245         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
246         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
247         * recog.c:  Include "target.h".
248         (peep2_find_free_register): Add check for global regs. Add target
249         specific check.
250         * Makefile.in (recog.o): Depend on target.h.
251
252 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
253
254         * config/sh/sh.c (sh_canonical_va_list_type): New.
255         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
256
257 2008-07-09  Raksit Ashok <raksit@google.com>
258
259         * doc/invoke.texi (Option Summary): Mention new option
260         -Wdisallowed-function-list=...
261         (Warning Options): Document -Wdisallowed-function-list=...
262         * common.opt (Wdisallowed-function-list=): New flag.
263         * flags.h (warn_disallowed_functions): External definition of new
264         boolean warning flag.
265         (warn_if_disallowed_function_p): Declare new function.
266         * opts.c (warning_disallowed_functions): New static variable.
267         (warn_disallowed_functions): New boolean warning flag.
268         (warn_if_disallowed_function_p): New function.
269         (add_comma_separated_to_vector): Rename
270         add_instrument_functions_exclude_list to this.
271         (common_handle_option): Handle new option. Rename calls to
272         add_instrument_functions_exclude_list into calls to
273         add_comma_separated_to_vector.
274         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
275         based on flag warn_disallowed_functions.
276
277 2008-07-09  Christian Bruel  <christian.bruel@st.com>
278
279         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
280          instead of get_attr_length.
281
282 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
283
284         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
285         keywords.
286         * genemit.c (gen_insn): Likewise.
287         * gengtype.c (note_def_vec): Likewise.
288         * gengtype.h (note_def_vec): Likewise.
289         * genoutput.c (struct data, output_insn_data, process_template,
290         gen_expand, gen_split, note_constraint): Likewise.
291         * genrecog.c (new_decision, add_to_sequence, factor_tests,
292         make_insn_sequence): Likewise.
293         * gensupport.c (record_insn_name): Likewise.
294
295 2008-07-08  Doug Kwan  <dougkwan@google.com>
296
297         * config/arm/arm.opt (mandroid): New option.
298         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
299         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
300         (CC1_SPEC): Same.
301         (CC1PLUS_SPEC): Same.
302         (LIB_SPEC): Same.
303         (STARTFILE_SPEC): Same.
304         (ENDFILE_SPEC): Same.
305         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
306         used.
307
308 2008-07-08  Raksit Ashok  <raksit@google.com>
309
310         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
311         (set_storage_via_setmem): Fix expected_align parameter.
312         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
313         missing from the list.
314         * doc/md.texi (movmem): Explicitly state that expected alignment is
315         to be expressed in bytes.
316         (setmem): Explicitly state that expected alignment is to be expressed
317         in bytes.
318
319 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
320
321         * reload.c (find_reloads_subreg_address): Do not require validity
322         of address in original mode before reloading address.
323
324 2008-07-07  Tianwei Sheng  <tianweis@google.com>
325
326         * df-core.c (df_remove_problem): Adjust the access to avoid out of
327         bounds array access.
328
329 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
330
331         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P
332         dst.
333
334 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
335         
336         Fix PR tree-optimization/23455
337         Fix PR tree-optimization/35286
338         Fix PR tree-optimization/35287
339         * Makefile.in (OBJS-common): Remove tree-vn.o.
340         tree-vn.o: Remove.
341         * dbgcnt.def: Add treepre_insert debug counter.
342         * gcc/tree-flow.h (add_to_value): Updated for other changes.
343         (debug_value_expressions): Ditto.
344         (print_value_expressions): Ditto.
345         * tree-pretty-print.c (dump_generic_node): Updated for
346         VALUE_HANDLE removal.
347         * tree-ssa-dom.c (record_equality): Ditto.
348         (cprop_operand): Ditto.
349         (lookup_avail_expr): Ditto.
350         * tree-ssa-threadedge.c
351         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
352         (simplify_control_stmt_condition): Ditto.
353         * tree.c (tree_code_size): Ditto.
354         (tree_node_structure): Ditto.
355         (iterative_hash_expr): Ditto.
356         * tree.def: Ditto.
357         * tree.h (VALUE_HANDLE_ID): Ditto.
358         (VALUE_HANDLE_EXPR_SET): Ditto.
359         (struct tree_value_handle): Ditto.
360         (union tree_node): Ditto.
361         * treestruct.def: Ditto.
362         * tree-vn.c: Removed.
363         * tree-ssa-pre.c: Rewritten entirely.
364         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
365         (constant_value_ids): Ditto.
366         (vn_nary_op_t): Moved to header.
367         (vn_phi_t): Ditto.
368         (vn_reference_op_t): Ditto
369         (vn_reference_t): Ditto.
370         (next_value_id): New variable.
371         (VN_INFO): Add an assert.
372         (vn_constant_eq): New function.
373         (vn_constant_hash): Ditto.
374         (get_or_alloc_constant_value_id): Ditto.
375         (value_id_constant_p): Ditto.
376         (vn_reference_compute_hash): De-staticify.
377         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
378         Disable some code with a FIXME.
379         Remove VALUE_HANDLE use.
380         (valueize_refs): Update opcode if it changes from ssa name to
381         constant.
382         (vn_reference_lookup_1): Add new argument.
383         (vn_reference_lookup):  Ditto.
384         (vn_reference_lookup_pieces): New function.
385         (vn_reference_insert): Add return type. Modify to deal with value
386         ids.
387         (vn_reference_insert_pieces):  New function.
388         (vn_nary_op_compute_hash): De-staticify.
389         (vn_nary_op_eq): Ditto.
390         (vn_nary_op_lookup_pieces): New function.
391         (vn_nary_op_lookup): Add new argument.  
392         (vn_nary_op_insert_pieces): New function.
393         (vn_nary_op_insert): Add return type. Modify to deal with value
394         ids.
395         (vn_phi_insert): Ditto.
396         (visit_unary_op): Update for callee changes.
397         (visit_binary_op): Ditto.
398         (visit_reference_op_load): Ditto.
399         (visit_reference_op_store): Ditto.
400         (init_scc_vn): Init next_value_id, constant_to_value_id and
401         constant_value_ids. 
402         (free_scc_vn): Free them.
403         (set_hashtable_value_ids): New function.
404         (run_scc_vn): Use it.
405         (get_max_value_id): New function.
406         (get_next_value_id): Ditto.
407         (expressions_equal_p): Moved from tree-vn.c
408         (sort_vuses): Ditto.
409         (sort_vuses_heap): Ditto.
410         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
411         above).
412         * tree.c (iterative_hash_hashval_t): Made non-static
413         * tree.h (iterative_hash_hashval_t): Declare it.
414         
415 2008-07-08  Martin Jambor  <mjambor@suse.cz>
416
417         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
418         instead of ipa_create_node_params.
419         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
420         ipa_check_create_edge_args, free them with
421         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
422
423         * ipa-prop.c: Include flags.h and tree-inline.h.
424         (ipa_node_params_vector): New variable.
425         (ipa_edge_args_vector): New variable.
426         (edge_removal_hook_holder): New variable.
427         (node_removal_hook_holder): New variable.
428         (edge_duplication_hook_holder): New variable.
429         (node_duplication_hook_holder): New variable.
430         (ipa_detect_param_modifications): Check for presence of modified flags.
431         (ipa_compute_jump_functions): Check for presence of jump functions.
432         (ipa_free_edge_args_substructures): New function.
433         (ipa_create_node_params): Removed.
434         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
435         (ipa_free_node_params_substructures): New function.
436         (ipa_free_all_node_params): Changed to deallocate the on-the-side
437         vector.
438         (ipa_edge_removal_hook): New function.
439         (ipa_node_removal_hook): New function.
440         (duplicate_array): New function.
441         (ipa_edge_duplication_hook): New function.
442         (ipa_node_duplication_hook): New function.
443         (ipa_register_cgraph_hooks): New function.
444         (ipa_unregister_cgraph_hooks): New function.
445         (free_all_ipa_structures_after_ipa_cp): New function.
446         
447         * ipa-prop.h: Include vec.h.
448         (ipa_node_params_t): New typedef with vector types for it.
449         (ipa_edge_args_t):  New typedef with vector types for it.
450         (IPA_NODE_REF): Changed to access an on-the-side vector.
451         (IPA_EDGE_REF): Changed to access an on-the-side vector.
452         (ipa_check_create_node_params): New function.
453         (ipa_check_create_edge_args): New function.
454         
455         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
456         all users.
457         
458 2008-07-07  Tom Tromey  <tromey@redhat.com>
459
460         * configure, config.in: Rebuilt.
461         * configure.ac: Don't check for scandir or alphasort.
462
463 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
464
465         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
466         types immediately after creating them.
467
468 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
469
470         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
471
472 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
473
474         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
475         dump_constraint_graph.
476         (dump_constraint_edge): New function.
477         (dump_constraint_graph): New function.
478         (debug_constraint_graph): New function.
479         (dump_constraint): Removed useless comparison.
480         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
481         (dump_constraint_graph): Declare.
482         (debug_constraint_graph): Declare.
483         * tree-dump.c (struct dump_option_value_info): Declare
484         TDF_GRAPH.
485
486 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
487
488         * config/i386/i386.c (is_va_list_char_pointer): New.
489         (ix86_va_start): Replace compare with ms_va_list_type_node
490         by is_va_list_char_pointer.
491         (ix86_gimplify_va_arg): Likewise.
492
493 2008-07-07  Martin Jambor  <mjambor@suse.cz>
494
495         * cgraph.c (cgraph_edge_max_uid): New variable.
496         (struct cgraph_edge_hook_list): New type.
497         (struct cgraph_node_hook_list): New type.
498         (struct cgraph_2edge_hook_list): New type.
499         (struct cgraph_2node_hook_list): New type.
500         (first_cgraph_edge_removal_hook): New variable.
501         (first_cgraph_node_removal_hook): New variable.
502         (first_cgraph_edge_duplicated_hook): New variable.
503         (first_cgraph_node_duplicated_hook): New variable.
504         (cgraph_add_edge_removal_hook): New function.
505         (cgraph_remove_edge_removal_hook): New function.
506         (cgraph_call_edge_removal_hooks):  New function.
507         (cgraph_add_node_removal_hook):  New function.
508         (cgraph_remove_node_removal_hook):  New function.
509         (cgraph_call_node_removal_hooks):  New function.
510         (cgraph_add_edge_duplication_hook):  New function.
511         (cgraph_remove_edge_duplication_hook):  New function.
512         (cgraph_call_edge_duplication_hooks):  New function.
513         (cgraph_add_node_duplication_hook):  New function.
514         (cgraph_remove_node_duplication_hook):  New function.
515         (cgraph_call_node_duplication_hooks):  New function.
516         (cgraph_create_edge): Assign to edge uid.
517         (cgraph_remove_edge): Call edge removal hooks.
518         (cgraph_node_remove_callees): Call edge removal hooks.
519         (cgraph_node_remove_callers): Call edge removal hooks.
520         (cgraph_remove_node): Call node removal hooks.
521         (cgraph_clone_edge): Call edge duplication hooks.
522         (cgraph_clone_node): Call node duplication hooks.
523
524         * cgraph.h (cgraph_edge): New field uid.
525         (cgraph_edge_hook): New type.
526         (cgraph_node_hook): New type.
527         (cgraph_2edge_hook): New type.
528         (cgraph_2node_hook): New type.
529
530 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
531
532         * config.in: Regenerate.
533
534 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
535
536         * gcc.c (print_sysroot): New.
537         (option_map, display_help, process_command): Handle the
538         -print-sysroot option.
539         (main): Print the sysroot if requested.
540         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
541         
542 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
543
544         PR target/34780
545         * unwind-pe.h (size_of_encoded_value): add attribute unused.
546
547 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
548
549         * function.c (assign_parm_remove_parallels): Check mode of
550         entry_parm.
551         (assign_parm_setup_block_p): Also check mode of entry_parm.
552
553 2008-07-07  Richard Guenther  <rguenther@suse.de>
554
555         * tree-ssa-structalias.h (set_used_smts): Remove.
556         * tree-ssa-structalias.c (used_smts): Likewise.
557         (set_used_smts): Likewise.
558         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
559         call to set_used_smts.
560
561 2008-07-07  Richard Guenther  <rguenther@suse.de>
562
563         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
564         (new_var_info): Set it to false.
565         (solution_set_add): Correctly handle pointers outside a var and
566         inside a field.
567         (type_safe): Treat variables with is_full_var properly.
568         (do_sd_constraint): Likewise.
569         (do_ds_constraint): Likewise.
570         (process_constraint): Remove zeroing offset for !use_field_sensitive.
571         (get_constraint_for_ptr_offset): New function.
572         (get_constraint_for_component_ref): For addresses at least include
573         the last field of the variable.  Handle is_full_vars properly.
574         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
575         (handle_ptr_arith): Remove.
576         (find_func_aliases): Simplify assignment handling.
577         (create_function_info_for): For parameter and result varinfos set
578         is_full_var flag.
579         (create_variable_info_for): Set is_full_var flag whenever we
580         just created a single varinfo for a decl.
581         (init_alias_vars): Initialize use_field_sensitive from
582         max-fields-for-field-sensitive parameter.
583
584 2008-07-07  Richard Guenther  <rguenther@suse.de>
585
586         PR tree-optimization/36713
587         * tree-flow-inline.h (is_call_used): New function.
588         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
589         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
590         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
591
592 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
593
594         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
595         
596 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
597
598         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
599
600 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
601             Nathan Sidwell  <nathan@codesourcery.com>
602
603         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
604         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
605         tmake_file.
606         * config/m68k/t-linux: New.
607         * doc/install.texi: Document m68k-*-linux is now multilibbed by
608         default.
609
610 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
611
612         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
613         * config/m68k/m68k-devices.def: Remove multilibs that only differ
614         by MAC/EMAC.
615
616 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
617
618         * gcc.c (execute): Fix -Wc++-compat warning.
619
620 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
621
622         PR target/36720
623         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
624         constant for little endian.
625
626 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
627
628         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
629         mips_base_mips16 instead of TARGET_MIPS16.
630         (mips_base_mips16): Declare.
631         * config/mips/mips.c (mips_base_mips16): Make global.
632         (was_mips16_p): Remove GTY marker.
633         (was_mips16_pch_p): New variable.
634         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
635         (mips_override_options): Force to non-MIPS16 mode initially.
636         Do not complain about MIPS16 PIC incompatibilities here.
637         Only allow -mgpopt if -mexplicit-relocs is in force for
638         non-MIPS16 code.
639
640 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
641
642         * configure.ac: Check for caddr_t, define to char * if not defined.
643         * configure: Regenerate.
644         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
645         (mmap_gt_pch_use_address): Likewise.
646         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
647
648 2008-07-06  Richard Guenther  <rguenther@suse.de>
649
650         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
651         (new_var_info): Deal with it.
652         (solution_set_add): Likewise.
653         (bitpos_of_field): Make signed, fix.
654         (struct fieldoff): Remove type and decl fields.  Make size field
655         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
656         flags.
657         (fieldoff_compare): Deal with it.
658         (push_fields_onto_fieldstack): Remove has_union argument, glob
659         adjacent non-pointer fields together.
660         (create_function_info_for): Do not set has_union.
661         (create_variable_info_for): Simplify.
662
663 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
664
665         * config.gcc (extra_headers): Add cross-stdarg.h for target
666         x86_64-*-* and i?86-*-*.
667         * config/i386/cross-stdarg.h: New.
668         * builtins.c (std_fn_abi_va_list): New.
669         (std_canonical_va_list_type): New.
670         (stabilize_va_list): Replace va_list_type_node use by
671         mtarget.canonical_va_list_type.
672         (gimplify_va_arg_expr): Likewise.
673         (expand_builtin_va_copy): Replace va_list_type_node use by
674         mtarget.fn_abi_va_list.
675         * tree-sra.c (is_va_list_type): New helper.
676         (decl_can_be_decomposed_p): Replace
677         va_list_type_node use by is_va_list_type.
678         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
679         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
680         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
681         * config/i386/i386-protos.h (ix86_get_valist_type): New.
682         (ix86_enum_va_list): New.
683         * config/i386/i386.c (sysv_va_list_type_node): New.
684         (ms_va_list_type_node): New.
685         (ix86_function_type_abi): Remove sorry.
686         (ix86_build_builtin_va_list_abi): New.
687         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
688         for 64-bit targets.
689         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
690         (ix86_init_builtins_va_builtins_abi): New.
691         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
692         for 64-bit targets.
693         (ix86_handle_abi_attribute): New.
694         (attribute_spec): Add sysv_abi and ms_abi.
695         (ix86_fn_abi_va_list): New.
696         (ix86_canonical_va_list_type): New.
697         (ix86_enum_va_list): New.
698         (TARGET_FN_ABI_VA_LIST): New.
699         (TARGET_CANONICAL_VA_LIST_TYPE): New.
700         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
701         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
702         (TARGET_CANONICAL_VA_LIST_TYPE): New.
703         (TARGET_ENUM_VA_LIST): New.
704         * expr.h (std_fn_abi_va_list): New.
705         (std_canonical_va_list_type): New.
706         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
707         (TARGET_CANONICAL_VA_LIST_TYPE): New.
708         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
709         TARGET_CANONICAL_VA_LIST_TYPE.
710         * target.h (struct gcc_target): Add fn_abi_va_list hook
711         and canonical_va_list_type hook.
712
713 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
714
715         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
716         integral and pointer types.
717
718 2008-07-04  Roger Sayle  <roger@eyesopen.com>
719
720         * config/rs6000/host-darwin.c (darwin_rs6000_extra_siganls): Cast
721         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
722
723 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
724
725         PR target/36684
726         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns
727         for PIC.
728
729 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
730
731         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
732         build_gimple_modify_stmt.
733         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
734         gimple operand.  Use fold_build* instead of build*.
735
736 2008-07-04  Richard Guenther  <rguenther@suse.de>
737
738         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
739         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
740         properly to compute the reachability set if we do field-sensitive PTA.
741         * invoke.texi (max-fields-for-field-sensitive): Document default.
742         * opts.c (decode_options): Set max-fields-for-field-sensitive to
743         100 for optimize >= 2.
744
745 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
746
747         * ggc-zone.c (lookup_page_table_if_allocated,
748         set_page_table_entry, zone_find_object_size, alloc_small_page,
749         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
750         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
751         -Wc++-compat and/or -Wcast-qual warnings.
752
753 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
754
755         PR target/36634
756         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
757         pic_offset_table_rtx to be marked as used here.
758         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
759         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
760         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
761         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
762         !TARGET_SECURE_PLT.
763
764 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
765
766         * alloc-pool.c (hash_descriptor, eq_descriptor,
767         alloc_pool_descriptor): Fix -Wc++-compat warnings.
768         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
769         Likewise.
770         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
771         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
772         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics):
773         Likewise.
774         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
775         Likewise.
776
777 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
778
779         * tree-flow.h (loop_only_exit_p): Declare.
780         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
781         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
782         the number of iterations if it is constant.  Otherwise, if this is the
783         only possible exit of the loop, use the conservative estimate on the
784         number of iterations of the entire loop if available.
785
786 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
787
788         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
789         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
790         Add synchronization functions.
791         * config/sync.c: New file.
792         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
793         (LIBGCC_SYNC_CFLAGS): Likewise.
794
795 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
796
797         PR target/36710
798         * config/i386/i386.md (mode): Add TF to "mode" attribute.
799         (*pushtf_sse): New insn pattern.
800         (pushtf splitters): New splitters.
801
802 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
803
804         PR middle-end/35736
805         * predict.c (build_predict_expr): Use void_type_node for the tree
806         type, instead of NULL_TREE.
807
808 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
809
810         * config/i386/i386.c (contains_aligned_value_p): Return true
811         for TCmode.
812         (ix86_data_alignment): Align TCmode to 128bits.
813         (ix86_local_alignment): Likewise.
814
815 2008-07-03  Andrew Haley  <aph@redhat.com>
816
817         PR bootstrap/33304
818         * vec.h (VEC_TA): New.
819         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
820         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
821         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
822         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
823         (C_COMMON_FIXED_TYPES): Remove first arg.
824         (C_COMMON_FIXED_MODE_TYPES): Likewise.
825         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
826         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
827         not to use empty macro arguments.
828
829 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
830
831         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
832         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
833         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
834         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
835         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
836         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
837         config/ia64/crtn.asm, config/m68hc11/larith.asm,
838         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
839         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
840         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
841         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
842         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
843         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
844         config/rs6000/e500crtres64gpr.asm,
845         config/rs6000/e500crtres64gprctr.asm,
846         config/rs6000/e500crtrest32gpr.asm,
847         config/rs6000/e500crtrest64gpr.asm,
848         config/rs6000/e500crtresx32gpr.asm,
849         config/rs6000/e500crtresx64gpr.asm,
850         config/rs6000/e500crtsav32gpr.asm,
851         config/rs6000/e500crtsav64gpr.asm,
852         config/rs6000/e500crtsav64gprctr.asm,
853         config/rs6000/e500crtsavg32gpr.asm,
854         config/rs6000/e500crtsavg64gpr.asm,
855         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
856         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
857         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
858         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
859         config/sparc/sol2-cn.asm: Remove .file directives.
860
861 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
862
863         * resource.c (mark_referenced_resources): Look inside
864         UNSPEC_VOLATILEs and ASM_INPUTs.
865
866 2008-07-02  Ian Lance Taylor  <iant@google.com>
867
868         * rtlanal.c (add_reg_note): New function.
869         * rtl.h (add_reg_note): Declare.
870         * auto-inc-dec.c (attempt_change): Use add_reg_note.
871         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
872         * builtins.c (expand_builtin_longjmp): Likewise.
873         (expand_builtin_nonlocal_goto): Likewise.
874         * calls.c (emit_call_1, expand_call): Likewise.
875         * cfgexpand.c (add_reg_br_prob_note): Likewise.
876         * cfglayout.c (fixup_reorder_chain): Likewise.
877         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
878         (commit_one_edge_insertion): Likewise.
879         * combine.c (move_deaths, distribute_notes): Likewise.
880         * df-problems.c (df_set_note): Likewise.
881         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
882         (set_unique_reg_note): Likewise.
883         (emit_copy_of_insn_after): Likewise.
884         * expr.c (expand_expr_real): Likewise.
885         * gcse.c (add_label_notes): Likewise.
886         * haifa-sched.c (create_check_block_twin): Likewise.
887         * jump.c (mark_jump_label_1): Likewise.
888         * loop-doloop.c (add_test, doloop_modify): Likewise.
889         * loop-unswitch.c (compare_and_jump_seq): Likewise.
890         * lower-subreg.c (move_eh_region_note): Likewise.
891         * optabs.c (emit_libcall_block): Likewise.
892         * predict.c (predict_insn): Likewise.
893         (combine_predictions_for_insn): Likewise.
894         * recog.c (peephole2_optimize): Likewise.
895         * regmove.c (try_auto_increment): Likewise.
896         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
897         * reload.c (find_reloads): Likewise.
898         * reload1.c (fixup_eh_region_note): Likewise.
899         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
900         * reorg.c (delete_prior_computation): Likewise.
901         (delete_computation, dbr_schedule): Likewise.
902         * config/pa/pa.c (legitimize_pic_address): Likewise.
903         * config/sh/sh.c (sh_reorg): Likewise.
904
905 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
906
907         PR target/36669
908         * config/libgcc-glibc.ver: Add %exclude.
909         * config/m32r/libgcc-glibc.ver: Likwise.
910         * config/s390/libgcc-glibc.ver: Likwise.
911         * config/sh/libgcc-glibc.ver: Likwise.
912         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
913
914         * config/i386/libgcc-glibc.ver: New.
915
916         * config/i386/libgcc-x86_64-glibc.ver: Removed.
917
918 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
919
920         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
921         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
922         i[34567]86-*-linux*, x86_64-*-linux*.  Add
923         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
924         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
925         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
926         i[34567]86-*-linux*, x86_64-*-linux*.
927
928         * libgcc-std.ver: Add empty GCC_4.4.0.
929
930         * mkmap-symver.awk: Support multiple versions per symbol.
931
932         * config/i386/i386.c (ix86_init_builtins): Always define
933         __builtin_fabsq and __builtin_copysignq with fallbacks.
934         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
935         and __builtin_copysignq if SSE2 isn't available.
936
937         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
938         (LIBGCC2_TF_CEXT): Likwise.
939         (TF_SIZE): Likwise.
940
941         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
942
943         * config/i386/sfp-machine.h: Moved to libgcc.
944
945         * config/i386/sfp-machine.h: New.
946         * config/i386/t-linux: Likwise.
947
948         * config/i386/t-darwin: Remove softfp_wrap_start and
949         softfp_wrap_end.
950         * config/i386/t-darwin64: Likewise.
951
952         * config/i386/t-fprules-softfp64: Renamed to ...
953         * config/i386/t-fprules-softfp: This.
954
955         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
956         and softfp_wrap_end.
957
958 2008-07-02  Jason Merrill  <jason@redhat.com>
959
960         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
961
962         * tree.c (ctor_to_list): New fn.
963         * tree.h: Declare it.
964         (CONSTRUCTOR_ELT): New macro.
965         (CONSTRUCTOR_NELTS): New macro.
966
967 2008-07-02  Richard Guenther  <rguenther@suse.de>
968
969         * tree-ssa-structalias.c (struct variable_info): Reorder
970         to fill padding on 64bit hosts.  Make collapsed_to an int.
971         (get_varinfo_fc): Deal with that.
972         (new_var_info): Likewise.
973         (collapse_rest_of_var): Likewise.
974
975 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
976
977         * doc/install.texi (--enable-java-home): Document.
978         (--enable-aot-compile-rpm): Likewise.
979         (--with-arch-directory): Likewise.
980         (--with-os-directory): Likewise.
981         (--with-origin-name): Likewise.
982         (--with-arch-suffix): Likewise.
983         (--with-jvm-root-dir): Likewise.
984         (--with-jvm-jar-dir): Likewise.
985         (--with-python-dir): Likewise.
986
987 2008-07-02  Richard Guenther  <rguenther@suse.de>
988
989         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
990         from decls explicitly.  Merge operand checking from tuples.
991
992 2008-07-02  Martin Jambor  <mjambor@suse.cz>
993
994         * tree-switch-conversion.c: Included timevar.h which I forgot before.
995         
996 2008-07-02  Martin Jambor  <mjambor@suse.cz>
997
998         * tree-switch-conversion.c: Included timevar.h
999         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
1000
1001         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
1002
1003 2008-07-02  Martin Jambor  <mjambor@suse.cz>
1004
1005         * tree-switch-conversion.c: Corrected various comments and
1006         whitespace issues
1007         (build_constructors): Fixed minor formatting mistakes.
1008
1009         * invoke.texi (Optimize Options): Corrected the
1010         switch-conversion-max-branch-ratio parameter.
1011
1012 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
1013
1014         * final.c (asm_insn_count): Return zero for an empty asm body.
1015
1016 2008-07-02  Richard Guenther  <rguenther@suse.de>
1017
1018         * bitmap.h (bitmap_set_bit): Return bool.
1019         (bitmap_clear_bit): Likewise.
1020         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
1021         write to the bitmap if it would.
1022         (bitmap_clear_bit): Likewise.
1023         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
1024         bitmap_set_bit return value.
1025         (add_pred_graph_edge): Likewise.
1026         (add_graph_edge): Likewise.
1027         (do_sd_constraint): Likewise.
1028         (do_ds_constraint): Likewise.
1029
1030 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1031
1032         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
1033         Fix -Wc++-compat and/or -Wcast-qual warnings.
1034         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
1035         gen_regparm_prefix): Likewise.
1036         * vmsdbgout.c (write_modbeg, lookup_filename,
1037         vmsdbgout_source_line, vmsdbgout_init): Likewise.
1038
1039 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
1040
1041         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
1042         defaults.h definition apply.
1043
1044 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
1045
1046         * function.c (assign_parm_remove_parallels): New.
1047         (assign_parm_setup_block_p): Do not return true for non-BLKmode
1048         PARALLELs.
1049         (assign_parm_setup_block): Do not handle them.
1050         (assign_parm_setup_reg, assign_parm_setup_stack): Call
1051         assign_parm_remove_parallels.
1052
1053 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
1054
1055         * c-typeck.c (convert_for_assignment): Use
1056         vector_targets_convertible_p.
1057         * c-common.c (vector_targets_convertible_p): New.
1058         * c-common.h (vector_targets_convertible_p): New prototype.
1059         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
1060         opaque_p_V2SI_type_node.
1061
1062 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
1063
1064         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
1065         RFmode constants.
1066
1067 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
1068
1069         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
1070         TFmode constants via two element DImode vector for hosts with
1071         HOST_BITS_PER_WIDE_INT < 64.
1072         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
1073         also for HOST_BITS_PER_WIDE_INT < 64.
1074
1075 2008-07-01  Richard Guenther  <rguenther@suse.de>
1076
1077         PR tree-optimization/36666
1078         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
1079         (get_constraint_exp_from_ssa_var): Split into ...
1080         (get_constraint_exp_for_temp): ... this ...
1081         (get_constraint_for_ssa_var): ... and that.
1082         Return constraint expressions for all touched sub-fields
1083         if the results address is not taken.
1084         (process_constraint): Remove assertion that aggregate
1085         assignments do not happen at this place.
1086         (get_constraint_for_component_ref): Add address_p argument.
1087         Return constraint expressions for all touched sub-fields
1088         if the results address is not taken.
1089         (do_deref): Use get_constraint_exp_for_temp.
1090         (get_constraint_for_1): Rename from ...
1091         (get_constraint_for): ... this.  Add the old function as wrapper.
1092         (do_structure_copy): Use get_constraint_for_1.
1093
1094 2008-07-01  Martin Jambor  <mjambor@suse.cz>
1095
1096         * Makefile.in (tree-switch-conversion.o): Add.
1097         (OBJS-common): Add tree-swtch-conversion.o.
1098         * passes.c (init_optimization_passes): Add pass_convert_switch.
1099         * tree-pass.h: (pass_convert_switch): Add.
1100         * tree-switch-conversion.c: New file.
1101         * gcc.dg/tree-ssa/cswtch.c: New testcase.
1102         * common.opt (ftree-cswtch): New option.
1103         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
1104         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
1105         * opts.c (decode_options): Set flag_tree_switch_conversion when
1106         optimization level is >= 2.
1107         * doc/invoke.texi (Optimize Options): Added description of
1108         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
1109
1110 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1111
1112         * config/darwin-driver.c (darwin_default_min_version): Fix
1113         -Wc++-compat warnings.
1114
1115 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
1116
1117         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
1118         of operand 0.
1119
1120 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
1121
1122         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
1123         
1124 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
1125
1126         PR rtl-optimization/34744
1127         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
1128         (df_scan_free_internal): Free data structures not
1129         allocated in storage pools.
1130         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
1131         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
1132         df_scan_free_mws_vec.
1133         * dse.c (dse_step6): Free offset_map_p and offset_map_n
1134         unconditionally.
1135
1136 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1137
1138         * config/i386/i386.c (contains_aligned_value_p): Return true
1139         for __float128.
1140         (ix86_function_arg_boundary): Return its natural boundary
1141         for __float128.
1142         (return_in_memory_32): Don't check TDmode.
1143         (ix86_split_to_parts): Support splitting into 4 parts and
1144         support TFmode for 32bit target.
1145         (ix86_split_long_move): Support splitting into 4 parts.
1146         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
1147         for SSE2.
1148         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
1149         (ix86_init_builtins): Here.
1150         (ix86_scalar_mode_supported_p): Always return true for TFmode.
1151         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
1152         'q' and 'w', respectively. 
1153
1154         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
1155         TARGET_64BIT.
1156         (movtf_internal): Likewise.
1157         (<code>tf2): Likewise.
1158         (*absnegtf2_sse): Likewise.
1159         (copysign<mode>3): Likewise.
1160         (copysign<mode>3_const): Likewise.
1161         (copysign<mode>3_var): Likewise.
1162         (define_split UNSPEC_COPYSIGN): Likewise.
1163         * config/i386/sse.md (*nandtf3): Likewise.
1164         (<code>tf3): Likewise.
1165         (*<code>tf3): Likewise.
1166
1167 2008-06-30  Joey Ye  <joey.ye@intel.com>
1168             H.J. Lu  <hongjiu.lu@intel.com>
1169
1170         * global.c (compute_regsets): Set frame_pointer_needed here.
1171         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
1172
1173 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1174
1175         * doc/install.texi (specific): Expand Windows build notes.
1176
1177 2008-06-30  Ira Rosen  <irar@il.ibm.com>
1178
1179         PR tree-optimization/36648
1180         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
1181         number of prolog iterations by step. Fix the comment.
1182
1183 2008-06-30  Richard Guenther  <rguenther@suse.de>
1184
1185         PR middle-end/36671
1186         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
1187         handle calls from ECF_MALLOC functions.
1188         (handle_pure_call): ECF_MALLOC functions do not return
1189         call-used memory.
1190         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
1191
1192 2008-06-29  Andreas Schwab  <schwab@suse.de>
1193
1194         * config/m68k/m68k.c (print_operand): Always print a float
1195         constant in hex.
1196         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
1197         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
1198         Remove macros.
1199
1200         * config/rs6000/x-linux64: Remove never used file.
1201
1202 2008-06-29  Richard Guenther  <rguenther@suse.de>
1203
1204         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
1205         prototype.
1206         (struct alias_info): Move ...
1207         * tree-ssa-alias.c: ... here.
1208         (update_alias_info): Declare.
1209         (compute_may_aliases): Call it.
1210         (update_alias_info): New function.
1211         * tree-ssa-structalias.c (update_alias_info): Move ...
1212         * tree-ssa-alias.c (update_alias_info_1): ... here.
1213         * tree-ssa-structalias.c (process_constraint_1): Remove
1214         unused from_call argument.  Rename to ...
1215         (process_constraint): ... this.  Delete old wrapper.
1216         (make_constraint_to): Adjust callers.
1217         (handle_const_call): Likewise.
1218         (handle_pure_call): Likewise.
1219         (init_base_vars): Likewise.
1220         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
1221         (find_func_aliases): We don't need structure copies for
1222         complex types.
1223         (make_constraint_from_anything): Remove.
1224         (create_variable_info_for): For globals make constraints
1225         from escaped, not from anything.
1226         (compute_points_to_sets): Do not call update_alias_info.
1227         (ipa_pta_execute): Use make_constraint_from.
1228
1229 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1230
1231         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
1232         (bitmap.o-warn, dominance.o-warn): New.
1233         * configure.ac (cxx_compat_warn): Delete.
1234         (loose_warn): Add -Wcast-qual and -Wc++-compat.
1235         * system.h: Remove #pragma diagnostic for -Wcast-qual and
1236         -Wc++-compat.
1237         * configure: Regenerate.
1238
1239         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
1240         warnings.
1241
1242 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1243
1244         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
1245         * df-scan.c (df_notes_rescan): Likewise.
1246         * ggc-page.c (set_page_table_entry): Likewise.
1247         * intl.c (gcc_gettext_width): Likewise.
1248         * varasm.c (get_unnamed_section, get_noswitch_section,
1249         get_section): Likewise.
1250
1251 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
1252
1253         * regrename.c (build_def_use): Don't copy RTX.
1254
1255 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
1256
1257         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
1258         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
1259         punctuation.  Use @ref instead of @xref.
1260         (Function Names): Remove stray @display/@end display.
1261         (C++ Attributes): Use @ref instead of @xref.
1262         (Deprecated Features): Fix punctuation around @xref.
1263         (Backwards Compatibility): Likewise.
1264         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
1265
1266 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
1267
1268         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
1269         constants for E500 double.
1270
1271 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1272
1273         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
1274         element type of const_vector.
1275
1276 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
1277
1278         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
1279         Remove FLAGS_REG clobber from expander pattern.
1280         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
1281         (anddi3, andsi3, andhi3, andqi3): Ditto.
1282         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
1283         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
1284         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
1285         (ashlsi3, ashlhi3, ashlqi3): Ditto.
1286         (ashrsi3, ashrhi3, ashrqi3): Ditto.
1287         (lshrsi3, lshrhi3, lshrqi3): Ditto.
1288         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
1289         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
1290
1291 2008-06-28  Richard Guenther  <rguenther@suse.de>
1292
1293         * tree-ssa-structalias.c (callused_id, var_callused,
1294         callused_tree): Add.
1295         (handle_pure_call): New function.
1296         (find_func_aliases): Call it.
1297         (find_what_p_points_to): Handle the call-used set.
1298         (clobber_what_escaped): Likewise.
1299         (compute_call_used_vars): New function.
1300         (init_base_vars): Init the call-used variable.
1301         (do_sd_constraint): Do not propagate the solution from CALLUSED
1302         but use CALLUSED as a placeholder.
1303         (solve_graph): Likewise.
1304         * tree-flow-inline.h (gimple_call_used_vars): New function.
1305         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
1306         (compute_call_used_vars): Declare.
1307         * tree-ssa-alias.c (set_initial_properties): Call
1308         compute_call_used_vars.
1309         (reset_alias_info): Clear call-used variables.
1310         (add_call_clobber_ops): Assert we are not called for const/pure
1311         functions.  Remove handling of them.
1312         (add_call_read_ops): Handle pure functions by adding the
1313         call-used set of variables as VUSEs.
1314         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
1315         (delete_tree_ssa): Free it.
1316         * tree-dfa.c (remove_referenced_var): Clear the var from the
1317         call-used bitmap.
1318
1319 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
1320
1321         * tree.c (build_varargs_function_type_list): New.
1322         (build_function_type_list_1): New.
1323         (build_function_type_list): Use build_function_type_list_1.
1324         * tree.h (build_varargs_function_type_list): New.
1325
1326 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1327
1328         PR target/34856
1329         * config/spu/spu.c (spu_builtin_splats): Do not generate
1330         invalid CONST_VECTOR expressions.
1331         (spu_expand_vector_init): Likewise.
1332
1333 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
1334
1335         * optabs.c (libfunc_decls): New variable.
1336         (libfunc_decl_hash, libfunc_decl_eq): New functions.
1337         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
1338         for the same function twice.
1339
1340 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
1341
1342         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
1343         ix86_expand_binary_operator directly.
1344         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
1345         for operand 2.
1346         (*ashrti3_1): Ditto.
1347         (*lshrti3_1): Ditto.
1348         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
1349         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
1350         using only one splitter.  Conditionaly execute splitter before or
1351         after peephole2 pass.
1352         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
1353         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
1354         Use only one alternative in asm template.
1355         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
1356         in asm template.
1357         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
1358         "J" operand constraint for operand 2.
1359         (*ashldi3_cconly_rex64): Ditto.
1360         (*ashrdi3_cmp_rex64): Ditto.
1361         (*ashrdi3_cconly_rex64): Ditto.
1362         (*lshrdi3_cmp_rex64): Ditto.
1363         (*lshrdi3_cconly_rex64): Ditto.
1364         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
1365         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
1366         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
1367         gen_x86_shrd_1.
1368
1369 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
1370
1371         * gimplify.c (omp_is_private): Don't return true if decl is not
1372         already private on #pragma omp for or #pragma omp parallel for.
1373
1374         PR debug/36617
1375         * tree-cfg.c (struct move_stmt_d): Replace block field with
1376         orig_block and new_block fields.
1377         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
1378         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
1379         (move_block_to_fn): Replace vars_map and new_label_map arguments
1380         with struct move_stmt_d pointer.
1381         (replace_block_vars_by_duplicates): New function.
1382         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
1383         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
1384         all subblocks of ORIG_BLOCK to the new function.  Call
1385         replace_block_vars_by_duplicates.
1386         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
1387         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
1388         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
1389         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
1390         (expand_omp): Temporarily set input_location to the location of
1391         region's controlling stmt.
1392         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
1393         BIND_EXPR, push ctx->block_vars and gimplification vars into
1394         the BIND_EXPR and its block's BLOCK_VARS instead of directly
1395         into dest function.
1396         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
1397         there are any BLOCK_VARS.
1398         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
1399         OMP_PARALLEL or OMP_TASK stmt.
1400         (lower_omp): Save and restore input_location around the lower_omp_1
1401         call.
1402
1403 2008-06-27  Richard Guenther  <rguenther@suse.de>
1404
1405         PR tree-optimization/36400
1406         PR tree-optimization/36373
1407         PR tree-optimization/36344
1408         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
1409         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
1410         (update_alias_info): Remove call clobbering code.
1411         (make_constraint_to): New helper function.
1412         (make_escape_constraint): Likewise.
1413         (handle_rhs_call): Use it on all pointer containing arguments.
1414         Also mark the static chain escaped.
1415         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
1416         instead of ANYTHING.
1417         (make_constraint_from): New helper split out from ...
1418         (make_constraint_from_anything): ... here.
1419         (find_func_aliases): Add constraints for escape sites.
1420         (intra_create_variable_infos): Make constraints from NONLOCAL
1421         for parameters.
1422         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
1423         as ANYTHING.
1424         (clobber_what_p_points_to): Remove.
1425         (clobber_what_escaped): New function.
1426         (init_base_vars): Init NONLOCAL and ESCAPED.
1427         (do_sd_constraint): Do not propagate the solution from ESCAPED
1428         but use ESCAPED as a placeholder.
1429         (solve_graph): Likewise.
1430         * tree-flow.h (clobber_what_p_points_to): Remove.
1431         (clobber_what_escaped): Declare.
1432         * tree-ssa-alias.c (set_initial_properties): Call it.
1433         Remove code clobbering escaped pointers.
1434
1435 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
1436
1437         * function.c (allocate_struct_function): Only allocate a unique
1438         funcdef_no if the decl is nonzero.
1439
1440 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
1441
1442         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
1443         * config/mips/mips.c (mips_split_const_insns): New function.
1444         * config/mips/mips.md (move_type): New attribute.
1445         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
1446         (dword_mode): New attribute.
1447         (type): Avoid long line.  Map "move_type"s to "type"s,
1448         choosing "multi" for doubleword moves if appropriate.
1449         Swap MTC/MFC comments to match their declaration order.
1450         (extended_mips16): Default to "yes" if "move_type" is "sll0",
1451         "type" is "branch" or "jal" is "direct".
1452         (length): Handle "extended_mips16" first.  Make the default
1453         "0" for "ghost" instructions.  Set the length from "move_type".
1454         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
1455         of "type", with "sll0" for the register alternative.  Remove the
1456         "extended_mips16" attribute.
1457         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
1458         of "type", with "shift_shift" for the register alternative.
1459         Remove the "length" attribute.
1460         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
1461         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
1462         of "type", with "andi" for the register alternative.
1463         (*zero_extendqihi2): Likewise.
1464         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
1465         of "andi" instead of a "type" of "arith".
1466         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
1467         instead of "type".
1468         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
1469         (mov_<store>r, *mov<mode>_ra): Likewise.
1470         (extendsidi2): Use "move_type" instead of "type", with "move"
1471         for the register alternative.
1472         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
1473         of "type", with "signext" for the register alternative.
1474         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
1475         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
1476         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
1477         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
1478         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
1479         (unnamed branch insn): Likewise.
1480         (*movdi_gp32_fp64): Fold into...
1481         (*movdi_32bit): ...here.
1482         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
1483         (*movdf_hardfloat): ...this new pattern.
1484         (*movdf_softfloat): Remove redundant FPR alternatives.
1485         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
1486         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
1487         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
1488         the "move" attribute.
1489         (*movdi_32bit): Use "move_type" instead of "type" and remove the
1490         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
1491         and "store" for COP loads and stores.
1492         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
1493         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
1494         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
1495         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
1496         (*movtf_mips16, *movv2sf): Likewise.
1497         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
1498         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
1499         (mfhc1<mode>): Use "move_type" instead of "move".
1500         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
1501         (loadgp_blockage): Remove the "length" attribute.
1502         (blockage, set_got_version, update_got_version): Likewise.
1503         (call_internal): Remove the "extended_mips16" attribute.
1504         (call_value_internal, call_value_multiple_internal): Likewise.
1505         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
1506         instead of "move".
1507         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
1508         the "length" attribute.
1509
1510 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1511
1512         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
1513         -Wcast-qual warnings.
1514         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
1515         handle_pragma_pop_macro): Likewise.
1516         * collect2.c (resolve_lib_name): Likewise.
1517         * config/arc/arc.c (arc_init): Likewise.
1518         * config/arm/arm.c (neon_builtin_compare,
1519         locate_neon_builtin_icode): Likewise.
1520         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
1521         * config/bfin/bfin.c (bfin_init_machine_status,
1522         bfin_optimize_loop): Likewise.
1523         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
1524         * config/cris/cris.c (cris_init_expanders): Likewise.
1525         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
1526         * config/darwin.c (machopic_indirection_eq,
1527         machopic_indirection_name, machopic_output_indirection): Likewise.
1528         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
1529         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
1530         frv_optimize_membar): Likewise.
1531         * config/i386/cygwin.h (mingw_scan,
1532         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
1533         * config/i386/cygwin1.c (mingw_scan): Likewise.
1534         * config/i386/i386.c (machopic_output_stub): Likewise.
1535         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
1536         i386_pe_unique_section): Likewise.
1537         * config/ia64/ia64.c (ia64_init_machine_status,
1538         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
1539         Likewise.
1540         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
1541         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
1542         * config/m68k/m68k.c (m68k_handle_option,
1543         m68k_sched_md_init_global): Likewise.
1544         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
1545         mcore_unique_section): Likewise.
1546         * config/mips/mips.c (mips_block_move_straight,
1547         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
1548         Likewise.
1549         * config/mmix/mmix.c (mmix_init_machine_status,
1550         mmix_encode_section_info): Likewise.
1551         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
1552         * config/rs6000/rs6000.c (rs6000_init_machine_status,
1553         print_operand_address, output_toc, redefine_groups,
1554         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
1555         * config/s390/s390.c (s390_init_machine_status): Likewise.
1556         * config/score/score.c (score_block_move_straight,
1557         score_block_move_loop_body): Likewise.
1558         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
1559         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
1560         * emit-rtl.c (find_auto_inc): Likewise.
1561         * gcc.c (translate_options, process_command): Likewise.
1562         * reorg.c (dbr_schedule): Likewise.
1563         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
1564         * xcoffout.c (xcoffout_declare_function): Likewise.
1565
1566 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
1567
1568         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
1569         ipa-pta working again.
1570
1571 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
1572
1573         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
1574         genautomata.
1575
1576 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
1577
1578         * config.gcc (powerpc*-*-*): Add new core e500mc.
1579         * config/rs6000/e500mc.md: New file.
1580         * config/rs6000/rs6000.c (processor_costs): Add new costs for
1581         e500mc.
1582         (rs6000_override_options): Add e500mc case to
1583         processor_target_table. Altivec and Spe options not allowed
1584         with e500mc. Add isel instruction to e500mc by
1585         default. Initialize rs6000_cost for e500mc.
1586         (rs6000_issue_rate): Set issue rate for e500mc.
1587         * config/rs6000/rs6000.h (processor_type): Add
1588         PROCESSOR_PPCE500MC.
1589         (ASM_CPU_SPEC): Add e500mc.
1590         Set TARGET_ISEL to rs6000_isel.
1591         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
1592         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
1593         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
1594         Include e500mc.md.
1595         * doc/invoke.texi: Add e500mc to list of cpus.
1596
1597 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1598
1599         PR c/34867
1600         * c-lex.c (lex_charconst): Initialize unsignedp.
1601
1602 2008-06-27  Olivier Hainque  <hainque@adacore.com>
1603
1604         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
1605         documented assumptions.
1606
1607 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
1608
1609         * dwarf2out.c: Remove trailing white spaces.  Break long line
1610         in comments.
1611
1612 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
1613
1614         * libfuncs.h (LTI_synchronize): New libfunc_index.
1615         (synchronize_libfunc): Declare.
1616         * builtins.c (expand_builtin_synchronize): Consider using
1617         synchronize_libfunc before falling back on an asm blockage.
1618         * config/mips/mips.c: Include libfuncs.h
1619         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
1620
1621 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
1622
1623         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
1624         parameter.  Copy stack_reg to r11 where appropriate.
1625         (no_global_regs_above): Add gpr parameter.
1626         (rs6000_stack_info): Only add padding for SPE save area if we
1627         are saving SPE GPRs and CR.
1628         (saveres_routine_syms): New variable.
1629         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
1630         Define.
1631         (rs6000_savres_routine_sym): New function.
1632         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
1633         split out of...
1634         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
1635         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
1636         Tweak FPR out-of-line saving.
1637         (rs6000_make_savres_rtx): New function.
1638         (rs6000_use_multiple_p): New function.
1639         (rs6000_savres_strategy): New function.
1640         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
1641         out-of-line if appropriate.
1642         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
1643         if we are optimizing for size.
1644         (GP_SAVE_INLINE): Define.
1645         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
1646         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
1647         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
1648         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
1649         (*save_fpregs_<mode>): Add use of r11.
1650         (*restore_gpregs_<mode>): New insn.
1651         (*return_and_restore_gpregs_<mode>): New insn.
1652         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
1653         use r11.
1654         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
1655         (*restore_gpregs_spe): New insn.
1656         (*return_and_restore_gpregs_spe): New insn.
1657         * config/rs6000/predicates.md (save_world_operation): Fix check.
1658
1659 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
1660
1661         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
1662         this point, so assert that.
1663
1664 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
1665
1666         * cfganal.c: Include vec.h and vecprim.h.
1667         (compute_idf): Import from...
1668         * tree-into-ssa (compute_idf): ...here.
1669         * basic-block.h (compute_idf): Export.
1670
1671 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
1672
1673         * c-decl.c (merge_decls): Use !current_function_decl to check for
1674         extern declaration of C99 inline function being at file scope.
1675
1676 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
1677
1678         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
1679
1680 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1681
1682         * alias.c (record_alias_subset, init_alias_analysis): Fix
1683         -Wc++-compat and/or -Wcast-qual warnings.
1684         * attribs.c (lookup_attribute_spec): Likewise.
1685         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
1686         copy_bb, connect_traces,
1687         find_rarely_executed_basic_blocks_and_cr): Likewise.
1688         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
1689         note_btr_set, migrate_btr_defs): Likewise.
1690         * builtins.c (result_vector, expand_builtin_memcpy,
1691         expand_builtin_mempcpy_args, expand_builtin_strncpy,
1692         builtin_memset_read_str, expand_builtin_printf,
1693         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
1694         Likewise.
1695         * caller-save.c (mark_set_regs): Likewise.
1696         * calls.c (expand_call, emit_library_call_value_1): Likewise.
1697         * cgraph.c (cgraph_edge): Likewise.
1698         * combine.c (likely_spilled_retval_1): Likewise.
1699         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
1700         htab_counts_entry_del, get_coverage_counts): Likewise.
1701         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
1702         new_cselib_val): Likewise.
1703         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
1704         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
1705         Likewise.
1706         * df-core.c (df_compact_blocks): Likewise.
1707         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
1708         * df-scan.c (df_grow_reg_info, df_ref_create,
1709         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
1710         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
1711         df_record_entry_block_defs, df_record_exit_block_uses,
1712         df_bb_verify): Likewise.
1713         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
1714         DF_REF_EXTRACT_MODE_CONST): New.
1715         * dominance.c (get_immediate_dominator, get_dominated_by,
1716         nearest_common_dominator, root_of_dom_tree,
1717         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
1718         -Wc++-compat and/or -Wcast-qual warnings.
1719         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
1720         record_store, replace_read, check_mem_read_rtx, scan_insn,
1721         dse_step1, dse_record_singleton_alias_set): Likewise.
1722         * dwarf2asm.c (dw2_force_const_mem): Likewise.
1723
1724 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1725
1726         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
1727         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
1728         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
1729         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
1730         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
1731         add_ranges_num, add_ranges_by_labels, file_info_cmp,
1732         file_name_acquire, output_file_names, add_const_value_attribute,
1733         premark_used_types_helper, file_table_eq, file_table_hash,
1734         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
1735         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
1736         -Wcast-qual warnings.
1737         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
1738         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
1739         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
1740         gen_reg_rtx, start_sequence, init_emit): Likewise.
1741         * et-forest.c (et_new_occ, et_new_tree): Likewise.
1742         * except.c (init_eh_for_function, gen_eh_region,
1743         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
1744         arh_to_landing_pad, arh_to_label, add_action_record,
1745         add_call_site, switch_to_exception_section): Likewise.
1746         * expmed.c (synth_mult): Likewise.
1747         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
1748         store_expr): Likewise.
1749         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
1750         Likewise.
1751         * function.c (assign_stack_temp_for_type,
1752         allocate_struct_function, match_asm_constraints_1): Likewise.
1753         * gcov-io.c (gcov_allocate): Likewise.
1754         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
1755         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
1756         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
1757         record_one_set, insert_expr_in_table, insert_set_in_table,
1758         dump_hash_table, compute_hash_table_work, alloc_hash_table,
1759         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
1760         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
1761         -Wcast-qual warnings.
1762
1763 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1764
1765         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
1766         -Wcast-qual warnings.
1767         * gcc.c (process_command): Likewise.
1768         * genattrtab.c (oballoc): Use XOBNEW.
1769         (oballocvec): Define.
1770         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
1771         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
1772         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
1773         -Wc++-compat and/or -Wcast-qual warnings.
1774         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
1775         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
1776         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
1777         gen_presence_absence_set, gen_automaton, gen_regexp_el,
1778         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
1779         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
1780         add_excls, process_presence_absence_names,
1781         process_presence_absence_patterns, add_presence_absence,
1782         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
1783         get_free_state, add_arc, get_free_automata_list_el,
1784         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
1785         transform_3, cache_presence, create_ainsns, create_automata,
1786         create_state_ainsn_table, dfa_insn_code_enlarge,
1787         output_trans_func, output_min_issue_delay_func,
1788         output_dead_lock_func, output_reset_func,
1789         output_get_cpu_unit_code_func, output_dfa_start_func,
1790         expand_automata): Likewise.
1791         * genextract.c (gen_insn): Likewise.
1792         * gengtype-lex.l: Likewise.
1793         * gengtype.c (read_input_list, adjust_field_type,
1794         process_gc_options): Likewise.
1795         * genoutput.c (note_constraint): Likewise.
1796         * genpreds.c (mangle, add_constraint): Likewise.
1797         * genrecog.c (process_define_predicate, new_decision,
1798         add_to_sequence): Likewise.
1799         * gensupport.c (record_insn_name): Likewise.
1800
1801 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1802
1803         * config/i386/driver-i386.c (detect_caches_amd,
1804         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
1805         and/or -Wcast-qual warnings.
1806         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
1807         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
1808         gt_pch_save): Likewise.
1809         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
1810         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
1811         * global.c (compute_regsets): Likewise.
1812         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
1813         finish_graph_dump_file): Likewise.
1814         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
1815         unlink_bb_notes): Likewise.
1816         * integrate.c (get_hard_reg_initial_val): Likewise.
1817         * ipa-prop.c (ipa_push_func_to_list): Likewise.
1818         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
1819         * local-alloc.c (update_equiv_regs): Likewise.
1820         * loop-invariant.c (check_invariant_table_size,
1821         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
1822         Likewise.
1823         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
1824         altered_reg_used, mark_altered): Likewise.
1825         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
1826         insert_var_expansion_initialization,
1827         combine_var_copies_in_loop_exit, apply_opt_in_copies,
1828         release_var_copies): Likewise.
1829         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
1830         analyze_matrix_decl, add_allocation_site, analyze_transpose,
1831         analyze_accesses_for_phi_node, check_var_notmodified_p,
1832         check_allocation_function, find_sites_in_func,
1833         record_all_accesses_in_func, transform_access_sites,
1834         transform_allocation_sites): Likewise.
1835         * omp-low.c (new_omp_region, create_omp_child_function_name,
1836         check_omp_nesting_restrictions, check_combined_parallel,
1837         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
1838         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
1839         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
1840         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
1841         Likewise.
1842         * opts-common.c (prune_options): Likewise.
1843         * opts.c (add_input_filename, print_filtered_help,
1844         get_option_state): Likewise.
1845         * params.c (add_params): Likewise.
1846         * passes.c (set_pass_for_id, next_pass_1,
1847         do_per_function_toporder, pass_fini_dump_file): Likewise.
1848         * postreload.c (reload_cse_simplify_operands): Likewise.
1849         * predict.c (tree_predicted_by_p, tree_predict_edge,
1850         clear_bb_predictions, combine_predictions_for_bb): Likewise.
1851
1852 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1853
1854         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
1855         warnings.
1856         * recog.c (check_asm_operands, validate_change_1): Likewise.
1857         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
1858         subst_asm_stack_regs): Likewise.
1859         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
1860         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
1861         * regmove.c (reg_is_remote_constant_p): Likewise.
1862         * regrename.c (regrename_optimize, scan_rtx_reg,
1863         kill_clobbered_value, kill_set_value, kill_autoinc_value):
1864         Likewise.
1865         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
1866         regstat_compute_calls_crossed): Likewise.
1867         * reload1.c (init_reload, new_insn_chain,
1868         has_nonexceptional_receiver, reload, copy_reloads,
1869         calculate_needs_all_insns, init_elim_table): Likewise.
1870         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
1871         * rtl.c (shallow_copy_rtx_stat): Likewise.
1872         * rtlanal.c (parms_set): Likewise.
1873         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
1874         sbitmap_resize, sbitmap_vector_alloc): Likewise.
1875         * sched-ebb.c (earliest_block_with_similiar_load,
1876         add_deps_for_risky_insns): Likewise.
1877         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
1878         schedule_region): Likewise.
1879         * see.c (eq_descriptor_pre_extension,
1880         hash_descriptor_pre_extension, hash_del_pre_extension,
1881         eq_descriptor_properties, hash_descriptor_properties,
1882         hash_del_properties, see_seek_pre_extension_expr,
1883         see_initialize_data_structures, see_print_register_properties,
1884         see_print_pre_extension_expr, see_delete_merged_def_extension,
1885         see_delete_unmerged_def_extension, see_emit_use_extension,
1886         see_pre_delete_extension, see_map_extension, see_commit_changes,
1887         see_analyze_merged_def_local_prop,
1888         see_analyze_merged_def_local_prop,
1889         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
1890         see_set_prop_merged_def, see_set_prop_unmerged_def,
1891         see_set_prop_unmerged_use, see_print_one_extension,
1892         see_merge_one_use_extension, see_merge_one_def_extension,
1893         see_store_reference_and_extension, see_update_uses_relevancy,
1894         see_update_defs_relevancy): Likewise.
1895         * statistics.c (hash_statistics_hash, hash_statistics_eq,
1896         hash_statistics_free, curr_statistics_hash): Likewise.
1897         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
1898         expand_asm_operands, expand_return, case_bit_test_cmp,
1899         expand_case): Likewise.
1900         * stor-layout.c (start_record_layout): Likewise.
1901         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
1902         gt_pch_save_stringpool): Likewise.
1903         * tree-data-ref.c (hash_stmt_vertex_info,
1904         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
1905         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
1906
1907 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
1908
1909         PR target/36627
1910         * config/i386/i386.md : Change constraints of HImode and QImode
1911         immediate operands from "i" to "n".  Change SImode "ni" constraint to
1912         "i" and SImode "rmi" constraint to "g".  Remove all constraints
1913         from const0_operand and const1_operand predicated operands.
1914         (i): Change QImode and HImode attribute from "i" to "n".
1915         (*subqi_2): Change HImode operands to QImode.
1916         (*subqi_3): Ditto.
1917
1918 2008-06-25  Olivier Hainque  <hainque@adacore.com>
1919
1920         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
1921         sed substitutions.
1922
1923 2008-06-25  Richard Guenther  <rguenther@suse.de>
1924
1925         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
1926         not overflow the result type.
1927
1928 2008-06-25  Richard Guenther  <rguenther@suse.de>
1929
1930         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
1931         (vn_lookup): Likewise.
1932
1933 2008-06-25  Richard Guenther  <rguenther@suse.de>
1934
1935         PR tree-optimization/35518
1936         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
1937         * tree-sra.c (instantiate_element): Use fold_build3 to build
1938         BIT_FIELD_REFs.
1939         (try_instantiate_multiple_fields): Likewise.
1940
1941 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1942
1943         * config/rs6000/rs6000.md: Change all string instruction's clobber to
1944         be early clobbers.
1945
1946 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1947
1948         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
1949         use_backchain_to_restore_sp to true
1950         if the offset of the link register save area would go over the 32k - 1
1951         offset limit of the load
1952         instructions.
1953
1954 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
1955
1956         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
1957         anchor for the type-punning blurb.  Cross-reference "Structures
1958         unions enumerations and bit-fields implementation".  Provide a
1959         cast-through-pointer example.  Make final sentence self-contained.
1960         * doc/implement-c.texi (Structures unions enumerations and
1961         bit-fields implementation): Cross-reference the type-punning blurb
1962         in the -fstrict-aliasing documentation.
1963
1964 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1965
1966         PR middle-end/36594
1967         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
1968         the memory instead of the memory itself for the save area.
1969
1970 2008-06-24  Olivier Hainque  <hainque@adacore.com>
1971             Nicolas Roche  <roche@adacore.com>
1972
1973         * gengtype.c (srcdir_len): size_t instead of int.
1974         (get_file_realbasename): New function.  For F a filename, the real
1975         basename of F, with all the path components stripped.
1976         (get_file_srcdir_relative_path): New function.  For F a filename, the
1977         relative path to F from $(srcdir).
1978         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
1979         get_file_realbasename.  Adjust the head comment.
1980         (get_prefix_langdir_index): New function. For F a filename, return the
1981         lang_dir_names[] relative index of the language directory that is
1982         a prefix in F.
1983         (get_file_langdir): For F a filename, return the name of the language
1984         directory where F is located.
1985         (get_file_gtfilename): New function. The gt- output file name for an
1986         input filename F.
1987         (get_output_file_with_visibility): Replace in-line computations with
1988         uses of get_file_gtfilename and get_prefix_langdir_index.
1989         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
1990
1991 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
1992
1993         PR tree-optimization/36504
1994         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
1995         references without base address.
1996
1997 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
1998
1999         PR middle-end/36584
2000         * calls.c (expand_call): Increase alignment for recursive functions.
2001
2002 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
2003
2004         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
2005         (TARGET_FUNCTION_VALUE): New define.
2006         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
2007         * config/avr/avr.h (FUNCTION_VALUE): Remove.
2008
2009 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
2010
2011         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
2012         (fmod<mode>3): Ditto.
2013         (remainderxf3): Ditto.
2014         (remainder<mode>3): Ditto.
2015
2016 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
2017
2018         PR target/36533
2019         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
2020         REG is a hard register.
2021
2022         PR tree-optimization/36508
2023         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
2024         499, don't check it at all in release compilers.
2025
2026 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
2027
2028         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
2029         together with SSE_TARGET_MATH to disable insn pattern.
2030         (*fop_<MODEF:mode>_2_i387): Ditto.
2031         (*fop_<MODEF:mode>_3_i387): Ditto.
2032
2033 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
2034
2035         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
2036         
2037 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2038
2039         PR middle-end/34906
2040         * gimplify.c (gimplify_asm_expr): Check the return code of
2041         parse_output_constraint call, set function return and is_inout
2042         value if it failed.
2043
2044 2008-06-22  Ian Lance Taylor  <iant@google.com>
2045
2046         * c-lex.c (narrowest_unsigned_type): Change itk to int.
2047         (narrowest_signed_type): Likewise.
2048         * c-typeck.c (c_common_type): Change local variable mclass to enum
2049         mode_class, twice.
2050         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
2051         tcc_comparison, not the tree code itself.
2052         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
2053         (c_expand_expr): Cast modifier to enum expand_modifier.
2054         * c-common.h (C_RID_CODE): Add casts.
2055         (C_SET_RID_CODE): Define.
2056         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
2057         (c_lex_one_token): Add cast to avoid warning.
2058         (c_parser_objc_type_name): Rename local typename to type_name.
2059         (check_no_duplicate_clause): Change code parameter to enum
2060         omp_clause_code.
2061         (c_parser_omp_var_list_parens): Change kind parameter to enum
2062         omp_clause_code.
2063         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
2064         c_parser_omp_list_var_parens.
2065         (c_parser_omp_threadprivate): Likewise.
2066         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
2067         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
2068         * c-format.c (NO_FMT): Define.
2069         (printf_length_specs): Use NO_FMT.
2070         (asm_fprintf_length_specs): Likewise.
2071         (gcc_diag_length_specs): Likewise.
2072         (scanf_length_specs): Likewise.
2073         (strfmon_length_specs): Likewise.
2074         (gcc_gfc_length_specs): Likewise.
2075         (printf_flag_specs): Change 0 to STD_C89.
2076         (asm_fprintf_flag_specs): Likewise.
2077         (gcc_diag_flag_specs): Likewise.
2078         (gcc_cxxdiag_flag_specs): Likewise.
2079         (scanf_flag_specs): Likewise.
2080         (strftime_flag_specs): Likewise.
2081         (strfmon_flag_specs): Likewise.
2082         (print_char_table): Likewise.
2083         (asm_fprintf_char_table): Likewise.
2084         (gcc_diag_char_table): Likewise.
2085         (gcc_tdiag_char_table): Likewise.
2086         (gcc_cdiag_char_table): Likewise.
2087         (gcc_cxxdiag_char_table): Likewise.
2088         (gcc_gfc_char_table): Likewise.
2089         (scan_char_table): Likewise.
2090         (time_char_table): Likewis.
2091         (monetary_char_table): Likewise.
2092         * c-format.h (BADLEN): Likewise.
2093
2094 2008-06-21  Ian Lance Taylor  <iant@google.com>
2095
2096         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
2097         Define END_OF_BASE_TREE_CODES around inclusion.
2098         * tree.c (tree_code_type): New global array.
2099         (tree_code_length, tree_code_name): Likewise.
2100         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
2101         $(lang_tree_files).
2102         (all-tree.def, s-alltree): New targets.
2103         (gencheck.h, s-gencheck): Remove.
2104         (tree.o): Depend upon all-tree.def.
2105         (build/gencheck.o): Remove gencheck.h dependency.
2106         (mostlyclean): Don't remove gencheck.h.
2107         * c-common.h (enum c_tree_code): Remove.
2108         * c-lang.c (tree_code_type): Remove.
2109         (tree_code_length, tree_code_name): Remove.
2110         * gencheck.c (tree_codes): Include all-tree.def, rather than
2111         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
2112         after it is used.
2113         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
2114         than tree.def.
2115         * cp/cp-tree.h (enum cplus_tree_code): Remove.
2116         (operator_name_info): Size to MAX_TREE_CODES.
2117         (assignment_operator_name_info): Likewise.
2118         * cp/cp-lang.c (tree_code_type): Remove.
2119         (tree_code_length, tree_code_name): Remove.
2120         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
2121         (assignment_operator_name_info): Likewise.
2122         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
2123         MAX_TREE_CODES.
2124         * cp/mangle.c (write_expression): Likewise.
2125         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
2126         * fortran/f95-lang.c (tree_code_type): Remove.
2127         (tree_code_length, tree_code_name): Remove.
2128         * java/java-tree.h (enum java_tree_code): Remove.
2129         * java/lang.c (tree_code_type): Remove.
2130         (tree_code_length, tree_code_name): Remove.
2131         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
2132         * objc/objc-act.h (enum objc_tree_code): Remove.
2133         * objc/objc-lang.c (tree_code_type): Remove.
2134         (tree_code_length, tree_code_name): Remove.
2135         * objcp/objcp-lang.c (tree_code_type): Remove.
2136         (tree_code_length, tree_code_name): Remove.
2137         * ada/ada-tree.h (enum gnat_tree_code): Remove.
2138         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
2139         * ada/misc.c (tree_code_type): Remove.
2140         (tree_code_length, tree_code_name): Remove.
2141
2142 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
2143
2144         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
2145         the grand_bitmap_obstack.
2146
2147 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2148
2149         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
2150         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
2151         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
2152         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
2153         move_stmt_r, new_label_mapper): Likewise.
2154         * tree-complex.c (cvc_lookup): Likewise.
2155         * tree-dfa.c (create_function_ann): Likewise.
2156         * tree-dump.c (dump_register): Likewise.
2157         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
2158         find_phi_replacement_condition): Likewise.
2159         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
2160         tree_function_versioning): Likewise.
2161         * tree-into-ssa.c (cmp_dfsnum): Likewise.
2162         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
2163         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
2164         get_nonlocal_debug_decl, convert_nonlocal_reference,
2165         convert_nonlocal_omp_clauses, get_local_debug_decl,
2166         convert_local_reference, convert_local_omp_clauses,
2167         convert_nl_goto_reference, convert_nl_goto_receiver,
2168         convert_tramp_reference, convert_call_expr): Likewise.
2169         * tree-outof-ssa.c (contains_tree_r): Likewise.
2170         * tree-parloops.c (reduction_phi, initialize_reductions,
2171         eliminate_local_variables_1, add_field_for_reduction,
2172         add_field_for_name, create_phi_for_local_result,
2173         create_call_for_reduction_1, create_loads_for_reductions,
2174         create_stores_for_reduction, create_loads_and_stores_for_name):
2175         Likewise.
2176         * tree-phinodes.c (allocate_phi_node): Likewise.
2177         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
2178         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
2179         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
2180         * tree-ssa-coalesce.c (compare_pairs): Likewise.
2181         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
2182         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
2183         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
2184         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise. 
2185         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
2186         vn_nary_op_insert): Likewise.
2187         * tree-ssa.c (redirect_edge_var_map_add,
2188         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
2189         * tree-vectorizer.c (vectorize_loops): Likewise.
2190         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
2191         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
2192         tree_cons_stat, build1_stat, build_variant_type_copy,
2193         decl_init_priority_lookup, decl_fini_priority_lookup,
2194         decl_priority_info, decl_restrict_base_lookup,
2195         decl_restrict_base_insert, decl_debug_expr_lookup,
2196         decl_debug_expr_insert, decl_value_expr_lookup,
2197         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
2198         type_hash_add, get_file_function_name, tree_check_failed,
2199         tree_not_check_failed, tree_range_check_failed,
2200         omp_clause_range_check_failed, build_omp_clause,
2201         build_vl_exp_stat): Likewise.
2202         * value-prof.c (gimple_histogram_value,
2203         gimple_duplicate_stmt_histograms): Likewise.
2204         * var-tracking.c (attrs_list_insert, attrs_list_copy,
2205         unshare_variable, variable_union_info_cmp_pos, variable_union,
2206         dataflow_set_different_1, dataflow_set_different_2,
2207         vt_find_locations, variable_was_changed, set_variable_part,
2208         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
2209         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
2210         section_entry_hash, object_block_entry_eq,
2211         object_block_entry_hash, create_block_symbol,
2212         initialize_cold_section_name, default_function_rodata_section,
2213         strip_reg_name, set_user_assembler_name, const_desc_eq,
2214         build_constant_desc, output_constant_def, lookup_constant_def,
2215         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
2216         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
2217         default_internal_label): Likewise.
2218         * varray.c (varray_init, varray_grow): Likewise.
2219         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
2220
2221 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
2222
2223         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
2224         operators for "test" insn.  Macroize insn using SWI mode macro.
2225         (*jcc_fused_2): Ditto.
2226         (*jcc_fused_3): Macroize insn using SWI mode macro.
2227         (*jcc_fused_4): Ditto.
2228
2229 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
2230
2231         * tree-ssa-pre.c: Fix typo in comment.
2232         (init_antic, fini_antic): Add explicit funtions for
2233         initializing and deinitializing ANTIC and AVAIL sets.
2234         (create_expression_by_pieces): Fix typo in comment.
2235         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
2236         (execute_pre): Eventually dump details about ANTIC_IN.
2237
2238 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2239
2240         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
2241         * gcc.c (translate_options, init_spec, store_arg, read_specs,
2242         add_to_obstack, file_at_path, find_a_file, execute,
2243         add_preprocessor_option, add_assembler_option, add_linker_option,
2244         process_command, insert_wrapper, do_option_spec, do_self_spec,
2245         spec_path, do_spec_1, is_directory, main, used_arg,
2246         getenv_spec_function): Likewise.
2247         * tlink.c (symbol_hash_lookup, file_hash_lookup,
2248         demangled_hash_lookup, symbol_push, file_push, frob_extension):
2249         Likewise.
2250
2251 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
2252
2253         * doc/rtl.texi: Updated subreg section.
2254
2255 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
2256
2257         PR c++/36523
2258         * cgraphunit.c (cgraph_process_new_functions): Don't clear
2259         node->needed and node->reachable.
2260         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
2261         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
2262         (expand_task_call): Don't call expand_task_copyfn.
2263         (expand_task_copyfn): Renamed to...
2264         (finalize_task_copyfn): ... this.
2265
2266 2008-06-19  Jan Hubicka  <jh@suse.cz>
2267
2268         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
2269         clobbering framepointer.
2270
2271 2008-06-19  Jan Hubicka  <jh@suse.cz>
2272
2273         * tree-optimize.c (execute_early_local_optimizations): Set
2274         cgraph_state only at first invocation.
2275
2276 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2277
2278         * system.h (-Wc++-compat): Activate as a warning, no an error.
2279
2280 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
2281
2282         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
2283         instead of "#" in insn asm template.
2284         (*jcc_fused_2): Ditto.
2285
2286 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
2287
2288         * config/i386/i386.h (ix86_tune_indices)
2289         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
2290         (TARGET_FUSE_CMP_AND_BRANCH): New define.
2291         * config/i386/i386.md (*jcc_fused_1): New insn pattern
2292         (*jcc_fused_2): Ditto.
2293         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
2294         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
2295         (print operand): Handle 'E' and 'e' code.
2296
2297 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
2298
2299         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
2300         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2301         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2302
2303 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
2304
2305         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
2306         node->decl.
2307         (cgraph_expand_function): Use local copy of decl.
2308         (cgraph_expand_all_functions): Remove redundant initialization of
2309         order_pos.
2310         (cgraph_optimize): Reword internal_error message.
2311
2312 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
2313
2314         * arm-protos.h (arm_return_in_memory): Remove public
2315         arm_return_in_memory() prototype.
2316         * arm.c (arm_return_in_memory): Add static prototype, add target
2317         hook macro, change definition and comments.
2318         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
2319
2320 2008-06-19  Ben Elliston  <bje@au.ibm.com>
2321
2322         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
2323         real.c: Remove references to IEEE 754R.
2324         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
2325         * doc/libgcc.texi (Decimal float library routines): Likewise.
2326
2327 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2328
2329         * targhooks.h (struct gcc_target): New member unwind_word_mode.
2330         (default_unwind_word_mode): Add prototype.
2331         * targhooks.c (default_unwind_word_mode): New function.
2332         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
2333         instead of word_mode.
2334         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
2335         (TARGET_INITIALIZER): Use it.
2336
2337         * c-common.c (handle_mode_attribute): Support "unwind_word"
2338         mode attribute.
2339         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
2340
2341         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
2342         word_mode to access SjLj_Function_Context member "data".
2343         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
2344         conversion from targetm.eh_return_filter_mode () to
2345         targetm.unwind_word_mode () if they differ.
2346
2347         * builtin-types.def (BT_UNWINDWORD): New primitive type.
2348         (BT_FN_UNWINDWORD_PTR): New function type.
2349         (BT_FN_WORD_PTR): Remove.
2350         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
2351         * except.c (expand_builtin_extend_pointer): Convert pointer to
2352         targetm.unwind_word_mode () instead of word_mode.
2353
2354         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
2355         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
2356         (spu_unwind_word_mode): New function.
2357         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
2358         (TARGET_UNWIND_WORD_MODE): Define.
2359         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
2360
2361 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2362
2363         * config/spu/spu.c (reg_align): Remove.
2364         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
2365         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
2366         (spu_split_store): Likewise.
2367
2368 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
2369
2370         * gcc/tree-vn.c: Fix typo in comment.
2371
2372 2008-06-18  Jan Hubicka  <jh@suse.cz>
2373
2374         * cgraphunit.c (cgraph_optimize): Output debug info when doing
2375         toplevel reorder too.
2376
2377 2008-06-18  Jan Hubicka  <jh@suse.cz>
2378
2379         * c-opts.c (c_common_post_options): PCH is not compatible with
2380         no-unit-at-a-time.
2381         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
2382         -fno-toplevel-reorder by default now.
2383
2384 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2385
2386         PR documentation/30739
2387         * doc/install.texi (Prerequisites): Document dependency on awk.
2388
2389 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
2390             Ian Lance Taylor  <iant@google.com>
2391
2392         PR rtl-optimization/35604
2393         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
2394         only want to change jump destinations, not eventual label comparisons.
2395
2396 2008-06-16  Jan Hubicka  <jh@suse.cz>
2397
2398         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
2399         syntax errors.
2400         (cgraph_analyze_function): Likewise.
2401
2402 2008-06-16  Jan Hubicka  <jh@suse.cz>
2403
2404         * cgraph.h (cgraph_mark_if_needed): New function.
2405         * cgraphunit.c (cgraph_mark_if_needed): New function.
2406         * c-decl.c (duplicate_decl): Use it.
2407
2408 2008-06-16  Jan Hubicka  <jh@suse.cz>
2409
2410         * cgraph.c (cgraph_add_new_function): When in expansion state, do
2411         lowering.
2412
2413 2008-06-16  Jan Hubicka  <jh@suse.cz>
2414
2415         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
2416
2417 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
2418             Kazu Hirata  <kazu@codesourcery.com>
2419             Maxim Kuvyrkov  <maxim@codesourcery.com
2420
2421         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
2422         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
2423         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
2424         EXTRA_SPEC_FUNCTIONS.
2425         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
2426         (DRIVER_SELF_SPECS): Adjust.
2427         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
2428         * config/mips/st.h, config/mips/t-st: New.
2429         * config/mips/driver-native.c, config/mips/x-native: New.
2430         * doc/invoke.texi (MIPS): Document 'native' value for -march and
2431         -mtune options.
2432
2433 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
2434
2435         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
2436         from it.
2437         (ISA_HAS_FP_CONDMOVE): New macro.
2438         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
2439         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
2440         (ISA_HAS_NMADD3_NMSUB3): New macro.
2441         * config/mips/mips.c (mips_rtx_costs): Update.
2442         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
2443         compiling for ST Loongson 2E/2F.
2444         (madd<mode>): Rename to madd4<mode>.  Update.
2445         (madd3<mode>): New pattern.
2446         (msub<mode>): Rename to msub4<mode>.  Update.
2447         (msub3<mode>): New pattern.
2448         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
2449         (nmadd3<mode>): New pattern.
2450         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
2451         (nmadd3<mode>_fastmath): New pattern.
2452         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
2453         (nmsub3<mode>): New pattern.
2454         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
2455         (nmsub3<mode>_fastmath): New pattern.
2456         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
2457
2458 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
2459
2460         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
2461         (DF_REF_INSN_INFO): New.
2462         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
2463         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
2464         with a NULL DF_REF_INSN_INFO.
2465         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
2466         DF_INSN_SET.
2467         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
2468         DF_INSN_INFO_EQ_USES): New.
2469         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
2470         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
2471         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
2472         * df-core.c: Update comment for above changes.
2473         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
2474         DF_INSN_UID_* macros.
2475         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
2476         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
2477         insn rtx.  Update all callers.
2478         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
2479         df_ref_create_structure, df_insn_refs_collect): Likewise.
2480         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
2481         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
2482         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
2483         macros to access the insn refs.
2484         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
2485         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
2486         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
2487         for accessing the refs.
2488         (try_fwprop_subst): Likewise.
2489         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
2490         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
2491         for accessing the refs.
2492         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
2493         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
2494         to look at the insn refs.
2495         (record_uses): Likewise.
2496         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
2497         function anymore.
2498         (mark_artificial_uses): Don't mark_insn for artificial refs.
2499         (mark_reg_rependencies): Likewise.
2500
2501         * doc/rtl.texi: Remove documentation of ADDRESSOF.
2502
2503 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2504
2505         * configure: Regenerate.
2506
2507 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
2508
2509         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
2510         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
2511         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2512
2513 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
2514
2515         * config/avr/avr.c (avr_mcu_t): Add attiny167.
2516         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
2517         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2518
2519 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
2520
2521         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
2522         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
2523         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2524
2525 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
2526
2527         * tree-ssa-sccvn.c: Fix format of comments.
2528
2529 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
2530
2531         * cgraph.c: Remove unneeded forward declarations of eq_node()
2532         and hash_node().
2533
2534 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
2535
2536         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
2537         REG_RETVAL notes.
2538         (see_update_relevancy): Likewise.
2539         * fwprop.c (try_fwprop_subst): Likewise.
2540         * rtlanal.c (noop_move_p): Likewise.
2541         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
2542         notes to non-existing libcall blocks.
2543         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
2544         Remove orig_set.
2545         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
2546         (dead_libcall_p): Remove.
2547         (delete_trivially_dead_insns): Don't use it.
2548         * web.c (union_defs): Remove comment about keeping nops.
2549         * gcse.c (hash_scan_insn): Don't take libcall pointers.
2550         (compute_hash_table_work): Don't track libcall notes.
2551         (do_local_cprop): Don't take libcall pointers.  Don't update
2552         libcall notes.
2553         (adjust_libcall_notes): Deleted.
2554         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
2555         ever have existed in the first place).
2556         (replace_store_insn): Don't try to remove libcall notes.
2557         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
2558         (resolve_reg_notes): Don't call them.
2559         (resolve_simple_move): Likewise.
2560         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
2561         Don't remove REG_RETVAL notes.
2562         * emit-rtl.c (try_split): Don't update libcall notes.
2563         (emit_copy_of_insn_after): Dito.
2564         * cselib.c (cselib_current_insn_in_libcall): Remove.
2565         (cselib_process_insn): Don't set/clear it.
2566         (new_elt_loc_list): Don't record it.
2567         (cselib_init): Don't initialize it.
2568         * cselib.c (struct elt_loc_list): Remove in_libcall field.
2569         * loop-invariant.c (find_invariant_insn): Don't look for libcall
2570         notes.
2571         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
2572         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
2573         (init_deps): Don't initialize it.
2574         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
2575         * combine.c (delete_noop_moves): Don't update libcall notes.
2576         (can_combine_p): Remove now pointless #if 0 block.
2577         (try_combine): Remove another obsolete #if 0 block.
2578         (distribute_notes): Don't distribute libcall notes.
2579         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
2580         * dce.c (libcall_dead_p): Remove.
2581         (delete_unmarked_insns): Don't handle libcall blocks.
2582         (preserve_libcall_for_dce): Remove.
2583         (prescan_insns_for_dce): Don't special-case libcall block insns.
2584         * reload1 (reload): Don't handle libcall notes. 
2585         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
2586         documentation.
2587
2588 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
2589
2590         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
2591         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2592         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2593
2594 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
2595
2596         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
2597         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2598         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2599
2600 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2601
2602         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
2603
2604 2008-06-16  Ira Rosen  <irar@il.ibm.com>
2605
2606         PR tree-optimization/36493
2607         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
2608         the arguments list. Use VECTYPE to create vector pointer.
2609         (vectorizable_store): Fail if accesses through a pointer to vectype
2610         do not alias the original memory reference operands.
2611         Call vect_create_data_ref_ptr without the removed argument.
2612         (vectorizable_load): Likewise.
2613         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
2614         removed argument.
2615
2616 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
2617
2618         PR target/36336
2619         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for 
2620         reg_equiv_constant.
2621
2622 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
2623
2624         * config/mips/loongson2ef.md: New file.
2625         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
2626         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
2627         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
2628         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
2629         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
2630         and loongson_2f.
2631         (loongson2ef.md): New include.
2632         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
2633         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
2634         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
2635         (loongson_gt_<mode>, loongson_extract_halfword)
2636         (loongson_insert_halfword_0, loongson_insert_halfword_2)
2637         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
2638         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
2639         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
2640         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
2641         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
2642         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
2643         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
2644         (vec_interleave_low<mode>): Define type attribute.
2645         * config/mips/mips.c (mips_ls2): New static variable.
2646         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
2647         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
2648         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
2649         Implement target scheduling hooks.
2650         (mips_multipass_dfa_lookahead): Update to handle tuning for
2651         Loongson 2E/2F.
2652         (mips_sched_init): Initialize data for Loongson scheduling.
2653         (mips_ls2_variable_issue): New static function.
2654         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
2655         Add sanity check.
2656         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
2657         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
2658         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
2659         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
2660         Handle ST Loongson 2E/2F cores.
2661         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
2662
2663 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2664
2665         * omp-low.c (extract_omp_for_data): Fix comment typo.
2666         * c.opt: Fix typo.
2667
2668 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2669
2670         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
2671         FIXME note about gcc/config.guess.
2672         * doc/options.texi (Option file format): Remove non-ASCII bytes.
2673         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
2674         * doc/cppopts.texi: Likewise.
2675         * doc/extend.texi: Likewise.
2676         * doc/gcc.texi: Likewise.
2677         * doc/gccint.texi: Likewise.
2678         * doc/gcov.texi: Likewise.
2679         * doc/gty.texi: Likewise.
2680         * doc/hostconfig.texi: Likewise.
2681         * doc/install.texi: Likewise.
2682         * doc/invoke.texi: Likewise.
2683         * doc/loop.texi: Likewise.
2684         * doc/makefile.texi: Likewise.
2685         * doc/md.texi: Likewise.
2686         * doc/passes.texi: Likewise.
2687         * doc/tm.texi: Likewise.
2688         * doc/tree-ssa.texi: Likewise.
2689         * doc/trouble.texi: Likewise.
2690
2691 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
2692             Nathan Sidwell  <nathan@codesourcery.com>
2693             Maxim Kuvyrkov  <maxim@codesourcery.com>
2694             Richard Sandiford  <rdsandiford@googlemail.com>
2695         
2696         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
2697         * config/mips/mips-protos.h (mips_expand_vector_init): New.
2698         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
2699         builtins.
2700         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
2701         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
2702         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
2703         V8QImode cases.
2704         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
2705         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
2706         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
2707         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
2708         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
2709         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
2710         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
2711         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
2712         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
2713         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
2714         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
2715         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
2716         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
2717         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
2718         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
2719         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
2720         (mips_builtins): Add Loongson builtins.
2721         (mips_loongson_2ef_bdesc): New.
2722         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
2723         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
2724         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
2725         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
2726         New.
2727         (mips_expand_vector_init): New.
2728         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
2729         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
2730         if appropriate.
2731         * config/mips/mips.md: Add unspec numbers for Loongson
2732         builtins.  Include loongson.md.
2733         (MOVE64): Include Loongson vector modes.
2734         (SPLITF): Include Loongson vector modes.
2735         (HALFMODE): Handle Loongson vector modes.
2736         * config/mips/loongson.md: New.
2737         * config/mips/loongson.h: New.
2738         * config.gcc: Add loongson.h header for mips*-*-* targets.
2739         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
2740
2741 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
2742
2743         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
2744         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
2745         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
2746         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
2747         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
2748         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
2749         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
2750         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
2751         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
2752         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
2753         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
2754         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
2755         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
2756         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
2757         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
2758         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
2759         Remove use_fixproto=yes.
2760         (ia64*-*-hpux*): Remove comment about using fixproto.
2761         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
2762
2763 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2764
2765         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
2766         library rebuilds.
2767         * configure: Regenerate.
2768
2769 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
2770
2771         PR middle-end/36520
2772         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
2773         before evaluating it.
2774
2775 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
2776
2777         PR c/36507
2778         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
2779         nested inline functions.
2780         (start_decl, start_function): Don't invert DECL_EXTERNAL
2781         for nested inline functions.
2782
2783 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
2784
2785         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
2786         splits that must be made for correctness.
2787
2788 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
2789
2790         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
2791         (AVAIL_NON_MIPS16): Likewise.
2792         (mips_builtin_description): Replace target_flags with a predicate.
2793         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
2794         (dspr2_32): New availability predicates.
2795         (MIPS_BUILTIN): New macro.
2796         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
2797         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
2798         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
2799         Replace the TARGET_FLAGS parameters with AVAIL parameters.
2800         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
2801         (mips_dsp_32only_bdesc): Merge into...
2802         (mips_builtins): ...this new array.
2803         (mips_bdesc_map, mips_bdesc_arrays): Delete.
2804         (mips_init_builtins): Update after above changes.
2805         (mips_expand_builtin_1): Merge into...
2806         (mips_expand_builtin): ...here and update after above changes.
2807
2808 2008-06-12  Paul Brook  <paul@codesourcery.com>
2809
2810         * longlong.h (__arm__): Define count_leading_zeros.
2811         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
2812         (clzsi2, clzdi2): New functions.
2813         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
2814         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
2815         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
2816         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
2817         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
2818         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
2819         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
2820         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
2821         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
2822         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
2823
2824 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
2825
2826         * config/m68k/m68k.c (m68k_tune_flags): New.
2827         (override_options): Compute m68k_tune_flags.
2828         (MULL_COST, MULW_COST): Update for various variants of CFV2.
2829         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
2830
2831 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
2832
2833         PR middle-end/36506
2834         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
2835
2836 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
2837
2838         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
2839         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
2840
2841 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
2842
2843         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
2844         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
2845
2846 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
2847
2848         PR middle-end/36506
2849         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
2850         reductions.
2851
2852 2008-06-12  Richard Guenther  <rguenther@suse.de>
2853
2854         PR tree-optimization/36345
2855         * tree-flow.h (struct ptr_info_def): Align escape_mask,
2856         add memory_tag_needed flag.
2857         (may_alias_p): Declare.
2858         * tree-ssa-alias.c (may_alias_p): Export.
2859         (set_initial_properties): Use memory_tag_needed flag.
2860         (update_reference_counts): Likewise.
2861         (reset_alias_info): Reset memory_tag_needed flag.
2862         (create_name_tags): Check memory_tag_needed flag.
2863         (dump_points_to_info_for): Dump it.
2864         * tree-ssa-structalias.c (struct variable_info): Remove
2865         directly_dereferenced flag.
2866         (new_var_info): Do not initialize it.
2867         (process_constraint_1): Do not set it.
2868         (update_alias_info): Set is_dereferenced flag.
2869         (set_uids_in_ptset): Use may_alias_p.
2870         (set_used_smts): Check memory_tag_needed flag.
2871         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
2872         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
2873         memory_tag_needed flag.
2874         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
2875         from broken design.
2876
2877 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
2878
2879         * config/i386/i386.c (ix86_compute_frame_layout): Disable
2880         red zone for w64 abi.
2881         (ix86_expand_prologue): Likewise.
2882         (ix86_force_to_memory): Likewise.
2883         (ix86_free_from_memory): Likewise.
2884
2885 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
2886
2887         PR target/36425
2888         * config/rs6000/rs6000.c (rs6000_override_options): Set
2889         rs6000_isel conditionally to the absence of comand line override.
2890         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
2891         Remove duplicate rs6000_isel setting.
2892         * config/rs6000/eabispe.h: Ditto.
2893
2894 2008-06-11  Richard Guenther  <rguenther@suse.de>
2895
2896         * alias.c (get_alias_set): Use the element alias-set for arrays.
2897         (record_component_aliases): For arrays and vectors do nothing.
2898         * c-common.c (strict_aliasing_warning): Handle the cases
2899         of alias set zero explicitly.
2900         * Makefile.in (dfp.o-warn): Add -Wno-error.
2901
2902 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
2903
2904         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
2905         tune_32 tune_64.
2906         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
2907         tune_32 tune_64 to supported_defaults.  Allow values not
2908         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
2909         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
2910         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
2911         with_cpu_64 to generic for 64-bit-supporting configurations, not
2912         with_cpu.  Remove FIXMEs.
2913         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
2914         --with-arch-64, --with-tune-32, --with-tune-64): Document.
2915         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
2916         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
2917         arch_32 and arch_64.
2918
2919 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
2920             Olivier Hainque  <hainque@adacore.com>
2921
2922         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
2923         Use DECL_SIZE_UNIT to retrieve the size of the field.
2924
2925 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
2926
2927         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
2928         with function calls after declarations.  Lay out
2929         neon_float_type_node before further use.
2930
2931 2008-06-11  Richard Guenther  <rguenther@suse.de>
2932
2933         * tree-flow.h (may_point_to_global_var): Declare.
2934         * tree-ssa-alias.c (may_point_to_global_var): New function.
2935         * tree-ssa-sink.c (is_hidden_global_store): Use it.
2936
2937 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
2938
2939         * configure.ac: Teach that fido supports .debug_line.
2940         * configure: Regenerate.
2941
2942 2008-06-10  Tom Tromey  <tromey@redhat.com>
2943
2944         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
2945         debug hook.
2946
2947 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
2948
2949         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
2950         (encode_decimal64, decode_decimal64, encode_decimal128,
2951         decode_decimal128): Reverse order of 32-bit parts of value if host
2952         and target endianness differ.
2953
2954 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
2955
2956         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
2957         Avoid division by 0.
2958         (tree_mod_pow2_value_transform): Likewise.
2959         (tree_ic_transform): Likewise.
2960         (tree_stringops_transform): Likewise.
2961         (tree_mod_subtract_transform): Likewise.
2962         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
2963         (copy_edges_for_bb): Likewise.
2964         (initialize_cfun): Likewise.
2965
2966 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
2967
2968         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
2969         nonmemory_operand. Add "N" operand constraint.
2970         (*btsi): Ditto.
2971         (*jcc_btdi_mask_rex64): New instruction and split pattern.
2972         (*jcc_btsi_mask): Ditto.
2973         (*jcc_btsi_mask_1): Ditto.
2974
2975 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
2976
2977         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
2978         TYPE_CANONICAL for copied element type.
2979
2980 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
2981
2982         PR target/36473
2983         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
2984         Add m_CORE2 and m_GENERIC.
2985         * config/i386/predicates.md (bt_comparison_operator): New predicate.
2986         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
2987         (*btsi): Ditto.
2988         (*jcc_btdi_rex64): New instruction and split pattern.
2989         (*jcc_btsi): Ditto.
2990         (*jcc_btsi_1): Ditto.
2991         (*btsq): Fix Intel asm dialect operand order.
2992         (*btrq): Ditto.
2993         (*btcq): Ditto.
2994
2995 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
2996
2997         PR middle-end/36447
2998         * simplify-rtx.c (simplify_subreg): Add check for shift count 
2999         greater than size.
3000
3001 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
3002
3003         * doc/md.texi: Synchronize with later constraints.md change.
3004         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
3005         with a C implementation.
3006         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
3007         MFLO handling.
3008         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
3009         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
3010         when moving to and from MD_REGNUM.
3011         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
3012         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
3013         Handle byte and halfword moves.
3014         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
3015         separately.
3016         * config/mips/constraints.md (h): Turn into NO_REGS.
3017         (l, x): Update documentation.
3018         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
3019         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
3020         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
3021         (HILO): New mode iterator.
3022         (MOVE128): Add TI.
3023         (any_div): New code iterator.
3024         (u): Extend code attribute to div and udiv.
3025         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
3026         d_operand in the splitters.  Remove redundant CONST_INT checks.
3027         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
3028         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
3029         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
3030         accordingly, using normal moves instead of unspecs to move LO into
3031         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
3032         (<u>mulsidi3): Handle expansion in C code.
3033         (<u>mulsidi3_32bit_internal): Rename to...
3034         (<u>mulsidi3_32bit): ...this.
3035         (<u>mulsidi3_32bit_r4000): Fix insn separator.
3036         (*<u>mulsidi3_64bit): Rename to...
3037         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
3038         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
3039         to set LO and HI to the multiplication result.  Use a normal move
3040         for MFLO and an unspec for MFHI.
3041         (*<u>mulsidi3_64bit_parts): Replace with...
3042         (<u>mulsidi3_64bit_hilo): ...this new instruction.
3043         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
3044         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
3045         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
3046         instead of HI.  Split the instruction into a separate multiplication
3047         and MFHI if !TARGET_FIX_R4000.
3048         (<su>muldi3_highpart): Likewise.
3049         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
3050         and the "=h" clobber.
3051         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
3052         (<u>mulditi3): New expander.
3053         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
3054         (madsi): Remove "=h" clobber.
3055         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
3056         Force the modulus result to be a GPR and split the instruction into
3057         a division followed by an MFHI after reload.
3058         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
3059         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
3060         the MIPS16 HIGH define_split.
3061         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
3062         of acc<->gpr moves to "multi".
3063         (*movdi_64bit): Replace the single "x" alternative with
3064         alternatives for moving into and out of "a".
3065         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
3066         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
3067         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
3068         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
3069         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
3070         (movti): New expander.
3071         (*movti, *movti_mips16): New insns.
3072         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
3073         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
3074         (mthi<GPR:mode>_<HILO:mode>): Likewise.
3075         * config/mips/predicates.md (fpr_operand): Delete.
3076         (d_operand): New predicate.
3077
3078 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
3079
3080         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
3081         failure on some Bourne shells.
3082         (x86_64-*-*): Ditto.
3083
3084 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
3085
3086         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
3087
3088 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
3089
3090         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
3091         (sparc-sun-solaris2*): Likewise.
3092
3093 2008-06-09  Arnaud Charlet  <charlet@adacore.com
3094
3095         * doc/install.texi: Update requirements to build the Ada compiler.
3096
3097 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
3098
3099         * df-scan.c (struct df_scan_problem_data): Remove the
3100         mw_link_pool alloc pool.
3101         (df_scan_free_internal): Don't free it.
3102         (df_scan_alloc): Don't allocate it.
3103         * df.h (struct df_link): Update comment.
3104
3105 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
3106
3107         * except.h: Correct checks for when SJLJ exceptions must be used.
3108
3109 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3110
3111         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
3112         default.
3113         
3114 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
3115
3116         PR tree-optimization/36218
3117         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
3118         configure for the build system.
3119         (BUILD_LDFLAGS): Define.
3120         * configure: Regenerate.
3121         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
3122
3123 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
3124
3125         PR target/36424
3126         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
3127         * config/avr/avr.c (avr_hard_regno_rename_ok): New function. 
3128         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype. 
3129
3130 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
3131
3132         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
3133
3134 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
3135
3136         * config.gcc (Obsolete configurations): Remove list of
3137         configurations.
3138         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
3139         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
3140         targets matched by those patterns.
3141         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
3142         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
3143         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
3144         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
3145         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
3146         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
3147         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
3148         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
3149         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
3150         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
3151         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
3152         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
3153         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
3154         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
3155         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
3156         Make code for Solaris 7 and greater unconditional for Solaris.
3157         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
3158         Remove --with-* handling.
3159         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
3160         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
3161         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
3162         LINK_OS_WINDISS_SPEC): Remove.
3163         * config/rs6000/sysv4.opt (mwindiss): Remove.
3164         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
3165         * configure: Regenerate.
3166         * doc/cpp.texi: Don't mention BeOS.
3167         * doc/extend.texi (interrupt): Don't mention MS1.
3168         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
3169         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
3170         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
3171         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
3172         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
3173         Remove.
3174         * doc/invoke.texi (MT Options): Remove.
3175         (-mwindiss): Remove.
3176         (CRIS Options): Remove cris-axis-aout references.
3177         (HPPA Options): Don't mention hppa1.1-*-pro.
3178         * doc/md.texi: (MorphoTech family): Remove.
3179         * libgcc2.c: Don't handle UWIN.
3180         * config/alpha/t-unicosmk: Remove.
3181         * config/alpha/unicosmk.h: Remove.
3182         * config/arm/kaos-arm.h: Remove.
3183         * config/arm/kaos-strongarm.h: Remove.
3184         * config/arm/strongarm-coff.h: Remove.
3185         * config/arm/strongarm-elf.h: Remove.
3186         * config/arm/strongarm-pe.h: Remove.
3187         * config/arm/t-strongarm-pe: Remove.
3188         * config/arm/t-xscale-coff: Remove.
3189         * config/arm/t-xscale-elf: Remove.
3190         * config/arm/xscale-coff.h: Remove.
3191         * config/arm/xscale-elf.h: Remove.
3192         * config/chorus.h: Remove.
3193         * config/cris/aout.h: Remove.
3194         * config/cris/aout.opt: Remove.
3195         * config/cris/t-aout: Remove.
3196         * config/i386/beos-elf.h: Remove.
3197         * config/i386/kaos-i386.h: Remove.
3198         * config/i386/ptx4-i.h: Remove.
3199         * config/i386/sco5.h: Remove.
3200         * config/i386/sco5.opt: Remove.
3201         * config/i386/sysv4-cpp.h: Remove.
3202         * config/i386/sysv5.h: Remove.
3203         * config/i386/t-beos: Remove.
3204         * config/i386/t-sco5: Remove.
3205         * config/i386/t-uwin: Remove.
3206         * config/i386/uwin.asm: Remove.
3207         * config/i386/uwin.h: Remove.
3208         * config/kaos.h: Remove.
3209         * config/mips/windiss.h: Remove.
3210         * config/mt: Remove directory.
3211         * config/pa/pa-osf.h: Remove.
3212         * config/pa/pa-pro-end.h: Remove.
3213         * config/pa/t-pro: Remove.
3214         * config/ptx4.h: Remove.
3215         * config/rs6000/beos.h: Remove.
3216         * config/rs6000/kaos-ppc.h: Remove.
3217         * config/rs6000/t-beos: Remove.
3218         * config/rs6000/windiss.h: Remove.
3219         * config/sh/kaos-sh.h: Remove.
3220         * config/sol2-6.h: Remove.
3221         * config/sparc/sol26-sld.h: Remove.
3222         * config/sparc/sysv4-only.h: Remove.
3223         * config/vax/bsd.h: Remove.
3224         * config/vax/t-memfuncs: Remove.
3225         * config/vax/ultrix.h: Remove.
3226         * config/vax/vaxv.h: Remove.
3227         * config/windiss.h: Remove.
3228
3229 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
3230
3231         PR rtl-optimization/36438
3232         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
3233         for vector shifts with constant scalar shift operands.
3234
3235 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
3236
3237         * doc/invoke.texi: Document -march=xlr.
3238         * config/mips/xlr.md: New file.
3239         * config/mips/mips.md: Include it.
3240         (cpu): Add "xlr".
3241         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
3242         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
3243         (mips_rtx_cost_data): Likewise.
3244
3245 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
3246
3247         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
3248         PRE_INC and PRE_DEC cases.
3249
3250 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
3251
3252         PR rtl-optimization/36419
3253         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
3254         the emitting jump insn.
3255
3256         PR target/36362
3257         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
3258         is not bool, boolify the whole *expr_p and convert to the desired type.
3259
3260 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
3261
3262         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
3263         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
3264         Add omp_private_outer_ref hook, add another argument to
3265         omp_clause_default_ctor hook.
3266         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
3267         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
3268         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
3269         hook_tree_tree_tree_tree_null.
3270         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
3271         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
3272         * hooks.c (hook_tree_tree_tree_tree_null): New function.
3273         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
3274         * tree.def (OMP_TASK): New tree code.
3275         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
3276         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
3277         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
3278         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
3279         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
3280         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
3281         OMP_CLAUSE_COLLAPSE_EXPR): Define.
3282         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
3283         (OMP_DIRECTIVE_P): Add OMP_TASK.
3284         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
3285         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
3286         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
3287         and OMP_CLAUSE_UNTIED entries.
3288         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
3289         num_ops to 2.
3290         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3291         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
3292         * tree-pretty-print.c (dump_omp_clause): Handle
3293         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
3294         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
3295         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
3296         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
3297         warning about unsigned iterators.  Change decl/init/cond/incr
3298         arguments to TREE_VECs, check arguments for all collapsed loops.
3299         (c_finish_omp_taskwait): New function.
3300         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
3301         ws_clauses.
3302         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
3303         default_function_array_conversion on init.  Add par_clauses argument.
3304         If decl is present in parallel's lastprivate clause, change it to
3305         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
3306         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
3307         collapse count in clauses.
3308         (c_parser_omp_for, c_parser_omp_parallel): Adjust
3309         c_parser_omp_for_loop callers.
3310         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
3311         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
3312         (c_parser_omp_clause_name): Handle collapse and untied clauses.
3313         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
3314         functions.
3315         (c_parser_omp_clause_schedule): Handle schedule(auto).
3316         Include correct location in the error message.
3317         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
3318         and PRAGMA_OMP_CLAUSE_UNTIED.
3319         (OMP_TASK_CLAUSE_MASK): Define.
3320         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
3321         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
3322         * tree-nested.c (convert_nonlocal_omp_clauses,
3323         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
3324         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
3325         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3326         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
3327         OMP_CLAUSE_DECL.
3328         (conver_nonlocal_reference, convert_local_reference,
3329         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
3330         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
3331         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
3332         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
3333         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
3334         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
3335         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
3336         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
3337         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
3338         OMP_CLAUSE_UNTIED.
3339         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
3340         * c-common.h (c_finish_omp_taskwait): New prototype.
3341         * gimple-low.c (lower_stmt): Handle OMP_TASK.
3342         * tree-parloops.c (create_parallel_loop): Create 1 entry
3343         vectors for OMP_FOR_{INIT,COND,INCR}.
3344         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
3345         (make_edges): Handle OMP_TASK.
3346         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
3347         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3348         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
3349         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
3350         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
3351         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
3352         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
3353         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
3354         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
3355         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
3356         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
3357         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
3358         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
3359         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
3360         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
3361         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
3362         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
3363         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
3364         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
3365         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
3366         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
3367         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
3368         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
3369         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
3370         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
3371         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
3372         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
3373         original iterator is present in lastprivate clause or if
3374         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
3375         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3376         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
3377         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
3378         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
3379         if it is set, lookup var in outer contexts too.  Handle
3380         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
3381         to be implicitly determined firstprivate for task regions.
3382         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
3383         if it is set, lookup var in outer contexts too.  Set
3384         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
3385         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
3386         OMP_CLAUSE_UNTIED.  Take region_type as last argument
3387         instead of in_parallel and in_combined_parallel.
3388         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
3389         Adjust callers.
3390         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
3391         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
3392         (new_omp_context): Set default_kind to
3393         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
3394         (omp_region_type): New enum.
3395         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
3396         fields, add region_type.
3397         (new_omp_context): Take region_type as argument instead of is_parallel
3398         and is_combined_parallel.
3399         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
3400         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
3401         ctx->is_combined_parallel checks.
3402         (gimplify_omp_task): New function.
3403         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
3404         OMP_CLAUSE_UNTIED.
3405         * omp-low.c (extract_omp_for_data): Use schedule(static)
3406         for schedule(auto).  Handle pointer and unsigned iterators.
3407         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
3408         Add loops argument.  Extract data for collapsed OMP_FOR loops.
3409         (expand_parallel_call): Assert sched_kind isn't auto,
3410         map runtime schedule to index 3.
3411         (struct omp_for_data_loop): New type.
3412         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
3413         Add loop, loops, collapse and iter_type fields.
3414         (workshare_safe_to_combine_p): Disallow combined for if
3415         iter_type is unsigned long long.  Don't combine collapse > 1 loops
3416         unless all bounds and steps are constant.  Adjust extract_omp_for_data
3417         caller.
3418         (expand_omp_for_generic): Handle pointer, unsigned and long long
3419         iterators.  Handle collapsed OMP_FOR loops.  Adjust
3420         for struct omp_for_data changes.  If libgomp function doesn't return
3421         boolean_type_node, add comparison of the return value with 0.
3422         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
3423         pointer, unsigned and long long iterators.  Adjust for struct
3424         omp_for_data changes.
3425         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
3426         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
3427         unsigned long long.  Allocate loops array, pass it to
3428         extract_omp_for_data.  For collapse > 1 loops use always
3429         expand_omp_for_generic.
3430         (omp_context): Add sfield_map and srecord_type fields.
3431         (is_task_ctx, lookup_sfield): New functions.
3432         (use_pointer_for_field): Use is_task_ctx helper.  Change first
3433         argument's type from const_tree to tree.  Clarify comment.
3434         In OMP_TASK disallow copy-in/out sharing.
3435         (build_sender_ref): Call lookup_sfield instead of lookup_field.
3436         (install_var_field): Add mask argument.  Populate both record_type
3437         and srecord_type if needed.
3438         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
3439         in srecord_type.
3440         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
3441         and DECL_FIELD_OFFSET.
3442         (scan_sharing_clauses): Adjust install_var_field callers.  For
3443         firstprivate clauses on explicit tasks allocate the var by value in
3444         record_type unconditionally, rather than by reference.
3445         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
3446         Use is_taskreg_ctx instead of is_parallel_ctx.
3447         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3448         (create_omp_child_function_name): Add task_copy argument, use
3449         *_omp_cpyfn* names if it is true.
3450         (create_omp_child_function): Add task_copy argument, if true create
3451         *_omp_cpyfn* helper function.
3452         (scan_omp_parallel): Adjust create_omp_child_function callers.
3453         Rename parallel_nesting_level to taskreg_nesting_level.
3454         (scan_omp_task): New function.
3455         (lower_rec_input_clauses): Don't run constructors for firstprivate
3456         explicit task vars which are initialized by *_omp_cpyfn*.  
3457         Pass outer var ref to omp_clause_default_ctor hook if
3458         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
3459         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
3460         OMP_CLAUSE_REDUCTION_INIT.
3461         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
3462         avoid duplicate setting of fields.  Handle
3463         OMP_CLAUSE_PRIVATE_OUTER_REF.
3464         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
3465         copy-out if TREE_READONLY, only copy-in.
3466         (expand_task_copyfn): New function.
3467         (expand_task_call): New function.
3468         (struct omp_taskcopy_context): New type.
3469         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
3470         New functions.
3471         (lower_omp_parallel): Rename to...
3472         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
3473         Call create_task_copyfn if srecord_type is needed.  Adjust
3474         sender_decl type.
3475         (task_shared_vars): New variable.
3476         (check_omp_nesting_restrictions): Warn if work-sharing,
3477         barrier, master or ordered region is closely nested inside OMP_TASK.
3478         Add warnings for barrier if closely nested inside of work-sharing,
3479         ordered, or master region.
3480         (scan_omp_1): Call check_omp_nesting_restrictions even for
3481         GOMP_barrier calls.  Rename parallel_nesting_level to
3482         taskreg_nesting_level.  Handle OMP_TASK.
3483         (lower_lastprivate_clauses): Even if some lastprivate is found on a
3484         work-sharing construct, continue looking for them on parent parallel
3485         construct.
3486         (lower_omp_for_lastprivate): Add lastprivate clauses
3487         to the beginning of dlist rather than end.  Adjust for struct
3488         omp_for_data changes.
3489         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
3490         not after it.  Handle collapsed OMP_FOR loops, adjust for
3491         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
3492         (get_ws_args_for): Adjust extract_omp_for_data caller.
3493         (scan_omp_for): Handle collapsed OMP_FOR
3494         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3495         (lower_omp_single_simple): If libgomp function doesn't return
3496         boolean_type_node, add comparison of the return value with 0.
3497         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
3498         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
3499         (parallel_nesting_level): Rename to...
3500         (taskreg_nesting_level): ... this.
3501         (is_taskreg_ctx): New function.
3502         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
3503         of is_parallel_ctx.
3504         (execute_lower_omp): Rename parallel_nesting_level to
3505         taskreg_nesting_level.
3506         (expand_omp_parallel): Rename to...
3507         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
3508         Call omp_task_call for OMP_TASK regions.
3509         (expand_omp): Adjust caller, handle OMP_TASK.
3510         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
3511
3512         * bitmap.c (bitmap_default_obstack_depth): New variable.
3513         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
3514         if argument is NULL and bitmap_default_obstack is already initialized.
3515         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
3516         at the end.
3517         * matrix-reorg.c (matrix_reorg): Likewise.
3518
3519 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
3520
3521         * config/i386/i386.md (*indirect_jump): Macroize using P
3522         mode iterator.  Remove !TARGET_64BIT from insn constraints.
3523         (*tablejump_1): Ditto.
3524         (*indirect_jump_rex64): Remove insn pattern.
3525         (*tablejump_1_rex64): Ditto.
3526         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
3527         and eh_return_si insn patterns.
3528
3529 2008-06-06  Richard Guenther  <rguenther@suse.de>
3530
3531         * tree-ssa-structalias.c (merge_smts_into): Remove.
3532         (find_what_p_points_to): Do not bother to compute the
3533         points-to set for pt_anything pointers.
3534         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
3535         for pt_anything pointers is ok.
3536
3537 2008-06-06  Jan Hubicka  <jh@suse.cz>
3538
3539         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
3540
3541 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3542
3543         * cgraph.c: Fix typos in comments.
3544         (cgraph_availability_names): Fix string typo.
3545         * fold-const.c: Fix typos in comments.
3546         (fold_binary): Fix typo in warning.
3547         * genautomata.c: Fix typos in comments.
3548         (check_presence_pattern_sets): Fix typo in local variable.
3549         (output_description): Fix typo in output.
3550         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
3551         * hwint.h: Likewise.
3552         * matrix-reorg.c (check_allocation_function): Likewise.
3553         * omega.c (smooth_weird_equations): Likewise.
3554         * auto-inc-dec.c: Fix typos in comments.
3555         * bb-reorder.c: Likewise.
3556         * builtins.c: Likewise.
3557         * c-common.c: Likewise.
3558         * c-cppbuiltin.c: Likewise.
3559         * c-parser.c: Likewise.
3560         * c-pretty-print.c: Likewise.
3561         * cfgcleanup.c: Likewise.
3562         * cfgexpand.c: Likewise.
3563         * cfghooks.c: Likewise.
3564         * cfglayout.c: Likewise.
3565         * cfgloopmanip.c: Likewise.
3566         * cgraphunit.c: Likewise.
3567         * coverage.c: Likewise.
3568         * dbxout.c: Likewise.
3569         * df-byte-scan.c: Likewise.
3570         * df-core.c: Likewise.
3571         * df-problems.c: Likewise.
3572         * df-scan.c: Likewise.
3573         * dfp.c: Likewise.
3574         * dominance.c: Likewise.
3575         * domwalk.c: Likewise.
3576         * dse.c: Likewise.
3577         * dwarf2out.c: Likewise.
3578         * emit-rtl.c: Likewise.
3579         * et-forest.c: Likewise.
3580         * function.c: Likewise.
3581         * function.h: Likewise.
3582         * gcc.c: Likewise.
3583         * gcov-io.c: Likewise.
3584         * gcov.c: Likewise.
3585         * gcse.c: Likewise.
3586         * genattrtab.c: Likewise.
3587         * ggc-page.c: Likewise.
3588         * gimplify.c: Likewise.
3589         * gthr-lynx.h: Likewise.
3590         * haifa-sched.c: Likewise.
3591         * ipa-cp.c: Likewise.
3592         * ipa-inline.c: Likewise.
3593         * ipa-prop.h: Likewise.
3594         * ipa-pure-const.c: Likewise.
3595         * ipa-struct-reorg.c: Likewise.
3596         * ipa-struct-reorg.h: Likewise.
3597         * ipa-type-escape.c: Likewise.
3598         * ipa.c: Likewise.
3599         * loop-doloop.c: Likewise.
3600         * mips-tfile.c: Likewise.
3601         * mkmap-flat.awk: Likewise.
3602         * mkmap-symver.awk: Likewise.
3603         * modulo-sched.c: Likewise.
3604         * omp-low.c: Likewise.
3605         * optabs.c: Likewise.
3606         * optabs.h: Likewise.
3607         * opts.c: Likewise.
3608         * passes.c: Likewise.
3609         * postreload-gcse.c: Likewise.
3610         * postreload.c: Likewise.
3611         * predict.c: Likewise.
3612         * pretty-print.h: Likewise.
3613         * profile.c: Likewise.
3614         * protoize.c: Likewise.
3615         * ra-conflict.c: Likewise.
3616         * real.c: Likewise.
3617         * recog.c: Likewise.
3618         * regclass.c: Likewise.
3619         * regs.h: Likewise.
3620         * reload.c: Likewise.
3621         * rtl-error.c: Likewise.
3622         * rtlanal.c: Likewise.
3623         * scan.h: Likewise.
3624         * sched-rgn.c: Likewise.
3625         * see.c: Likewise.
3626         * stmt.c: Likewise.
3627         * target.h: Likewise.
3628         * tree-dfa.c: Likewise.
3629         * tree-eh.c: Likewise.
3630         * tree-flow-inline.h: Likewise.
3631         * tree-inline.c: Likewise.
3632         * tree-into-ssa.c: Likewise.
3633         * tree-loop-distribution.c: Likewise.
3634         * tree-nested.c: Likewise.
3635         * tree-parloops.c: Likewise.
3636         * tree-pass.h: Likewise.
3637         * tree-pretty-print.c: Likewise.
3638         * tree-profile.c: Likewise.
3639         * tree-scalar-evolution.c: Likewise.
3640         * tree-sra.c: Likewise.
3641         * tree-ssa-alias-warnings.c: Likewise.
3642         * tree-ssa-ccp.c: Likewise.
3643         * tree-ssa-coalesce.c: Likewise.
3644         * tree-ssa-dom.c: Likewise.
3645         * tree-ssa-dse.c: Likewise.
3646         * tree-ssa-forwprop.c: Likewise.
3647         * tree-ssa-live.c: Likewise.
3648         * tree-ssa-live.h: Likewise.
3649         * tree-ssa-loop-im.c: Likewise.
3650         * tree-ssa-loop-ivopts.c: Likewise.
3651         * tree-ssa-loop-niter.c: Likewise.
3652         * tree-ssa-loop-prefetch.c: Likewise.
3653         * tree-ssa-phiopt.c: Likewise.
3654         * tree-ssa-phiprop.c: Likewise.
3655         * tree-ssa-sccvn.c: Likewise.
3656         * tree-ssa-ter.c: Likewise.
3657         * tree-ssa-threadupdate.c: Likewise.
3658         * tree-ssa.c: Likewise.
3659         * tree-vect-analyze.c: Likewise.
3660         * tree-vect-transform.c: Likewise.
3661         * tree-vectorizer.c: Likewise.
3662         * tree-vn.c: Likewise.
3663         * tree-vrp.c: Likewise.
3664         * tree.c: Likewise.
3665         * tree.def: Likewise.
3666         * tree.h: Likewise.
3667         * unwind-dw2-fde.c: Likewise.
3668         * unwind.inc: Likewise.
3669         * value-prof.c: Likewise.
3670         * vmsdbgout.c: Likewise.
3671
3672 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
3673
3674         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
3675         always place FP constants in the TOC for TARGET_POWERPC64.
3676         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
3677
3678 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
3679
3680         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
3681         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
3682         enable for TARGET_E500_DOUBLE.
3683         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
3684         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
3685         floating-point modes like integer modes for E500 double.
3686         (rs6000_legitimate_offset_address_p): Likewise.
3687         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
3688         addressing for DDmode for E500 double.
3689         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
3690         modes as using 64-bits of registers for E500 double.
3691         (spe_build_register_parallel): Do not handle DDmode or TDmode.
3692         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
3693         specially for E500 double.
3694         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
3695         TDmode for E500 double.
3696         (rs6000_gimplify_va_arg): Only handle SDmode in registers
3697         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
3698         (rs6000_split_multireg_move): Do not handle TDmode specially for
3699         E500 double.
3700         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
3701         using 64-bit registers for E500 double.
3702         (emit_frame_save): Do not handle DDmode specially for E500 double.
3703         (gen_frame_mem_offset): Likewise.
3704         (rs6000_function_value): Do not call spe_build_register_parallel
3705         for DDmode or TDmode.
3706         (rs6000_libcall_value): Likewise.
3707         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
3708         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
3709         for E500 double.
3710
3711 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3712
3713         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
3714         in comments.
3715
3716 2008-06-04  Junjie Gu <jgu@tensilica.com>
3717
3718         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
3719         comparison for frame pointers.
3720
3721 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
3722
3723         PR target/27386
3724         * config/avr/avr.h (PUSH_ROUNDING): Remove.
3725
3726 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
3727
3728         PR target/30243
3729         * builtins.c (expand_builtin_signbit): Don't take lowpart when
3730         register is already smaller or equal to required mode. 
3731
3732 2008-06-04  Xinliang David Li  <davidxl@google.com>
3733
3734         * tree-call-cdce.c: New file. 
3735         (cond_dead_built_in_calls): New static variable.
3736         (input_domain): New struct.
3737         (check_pow): New function.
3738         (check_builtin_call): Ditto.
3739         (check_target_format): Ditto.
3740         (is_call_dce_candidate): Ditto.
3741         (gen_one_condition): Ditto.
3742         (gen_conditions_for_domain): Ditto.
3743         (get_domain): Ditto.
3744         (gen_conditions_for_pow_cst_base): Ditto.
3745         (gen_conditions_for_pow_int_base): Ditto.
3746         (gen_conditions_for_pow): Ditto.
3747         (get_no_error_domain): Ditto.
3748         (gen_shrink_wrap_conditions): Ditto.
3749         (shrink_wrap_one_built_in_call): Ditto.
3750         (shink_wrap_conditional_dead_built_in_calls): Ditto.
3751         (tree_call_cdce): Ditto.
3752         (gate_call_cdce): Ditto.
3753         (pass_call_cdce): New gimple pass.
3754         * passes.c: (init_optimization_passes): New pass.
3755         * tree-pass.h: New pass declaration.
3756         * opts.c (decode_options): New flag setting.
3757         * common.opt: Add -ftree-builtin-call-dce flag.
3758         * Makefile.in: Add new source file.
3759         * tempvar.def: New tv_id.
3760         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
3761
3762 2008-06-04  Richard Guenther  <rguenther@suse.de>
3763
3764         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
3765         (is_call_clobbered): Always check var_ann->call_clobbered.
3766         (mark_call_clobbered): Always set var_ann->call_clobbered.
3767         (clear_call_clobbered): Always clear var_ann->call_clobbered.
3768         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
3769         (reset_alias_info): Clear call clobbering info on MTAGs and
3770         globals as well.
3771         (set_pt_anything): Set pt_global_mem.
3772         (create_tag_raw): Adjust comment.
3773         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
3774
3775 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
3776             Maxim Kuvyrkov  <maxim@codesourcery.com>
3777
3778         * config/m68k/m68k.opt (mxgot): New option.
3779         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
3780         (m68k_output_addr_const_extra): New.
3781         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
3782         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
3783         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
3784         * doc/invoke.texi (M680x0 Options): Document -mxgot.
3785
3786 2008-06-04  Richard Guenther  <rguenther@suse.de>
3787
3788         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
3789         negative or non-representable offsets.
3790
3791 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
3792
3793         * config/i386/i386.c (ix86_gen_leave): New.
3794         (ix86_gen_pop1): Likewise.
3795         (ix86_gen_add3): Likewise.
3796         (ix86_gen_sub3): Likewise.
3797         (ix86_gen_sub3_carry): Likewise.
3798         (ix86_gen_one_cmpl2): Likewise.
3799         (ix86_gen_monitor): Likewise.
3800         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
3801         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
3802         ix86_gen_one_cmpl2 and ix86_gen_monitor.
3803         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
3804         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
3805         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
3806         (ix86_expand_epilogue): Updated.
3807         (print_operand): Handle integer register operand for 'z'.
3808         (ix86_expand_strlensi_unroll_1): Likewise.
3809         (ix86_expand_strlen): Likewise.
3810         (ix86_expand_builtin): Likewise.
3811         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
3812         mov{q}/mov{l} and add{q}/add{l}.
3813
3814 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
3815
3816         * config/i386/i386.md (P): New mode iterator.
3817         (SFmode push_operand splitter): Macroize DImode and SImode pushes
3818         using P mode iterator.
3819         (DFmode push_operand splitter): Ditto.
3820         (XFmode push_operand splitter): Ditto.
3821         (DFmode float_extend SFmode push_operand splitter): Ditto.
3822         (XFmode float_extend SFmode push_operand splitter): Do not generate
3823         SImode pushes for 64bit target.  Macroize Dimode and SImode
3824         pushes using P mode iterator.
3825         (XFmode float_extend DFmode push_operand splitter): Ditto.
3826
3827 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
3828
3829         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
3830         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
3831         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
3832         return type to int.
3833         (ix86_call_abi_override): Remove check for call_used_regs.
3834
3835 2008-06-03  Richard Guenther  <rguenther@suse.de>
3836
3837         * tree-ssa-structalias.c (find_func_aliases): Add constraints
3838         for the lhs of calls if the return type contains pointers.
3839
3840 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
3841
3842         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
3843         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
3844         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
3845         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
3846         of cfun and DEFAULT_ABI to deceide abi mode.
3847         (DEFAULT_ABI): New.
3848         (REG_PARM_STACK_SPACE): Removed.
3849         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
3850         (STACK_BOUNDARY): Use default target to deceide stack boundary.
3851         * config/i386/i386-protos.h (ix86_cfun_abi): New.
3852         (ix86_function_abi): Likewise.
3853         (ix86_function_type_abi): Likewise.
3854         (ix86_call_abi_override): Likewise.
3855         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
3856         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
3857         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
3858         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
3859         specific defines.
3860         (X86_64_REGPARM_MAX): New.
3861         (X86_64_SSE_REGPARM_MAX): New.
3862         (X64_REGPARM_MAX): New.
3863         (X64_SSE_REGPARM_MAX): New.
3864         (X86_32_REGPARM_MAX): New.
3865         (X86_32_SSE_REGPARM_MAX): New.
3866         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
3867         (ix86_function_regparm): Handle user calling abi.
3868         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
3869         by DEFAULT_ABI versus SYSV_ABI check.
3870         (ix86_reg_parm_stack_space): New.
3871         (ix86_function_type_abi): New.
3872         (ix86_call_abi_override): New.
3873         (ix86_function_abi): New.
3874         (ix86_cfun_abi): New.
3875         (init_cumulative_args): Call abi specific initialization.
3876         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
3877         (function_arg_64): Extend SSE_REGPARM_MAX check.
3878         (function_arg (): Remove TARGET_64BIT_MS_ABI.
3879         (ix86_pass_by_reference): Likewise.
3880         (ix86_function_value_regno_p): Likewise.
3881         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
3882         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
3883         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
3884         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
3885         (setup_incoming_varargs_64): Adjust regparm for call abi.
3886         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
3887         (ix86_va_start): Likewise.
3888         (ix86_gimplify_va_arg): Likewise.
3889         (ix86_expand_prologue): Likewise.
3890         (output_pic_addr_const): Likewise.
3891         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
3892         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
3893         (x86_output_mi_thunk): Likewise.
3894         (x86_function_profiler): Likewise.
3895         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
3896         (SYSV_ABI, MS_ABI): New constants.
3897         (DEFAULT_ABI): New.
3898         (init_regs): Add prototype of function in regclass.c file.
3899         (OVERRIDE_ABI_FORMAT): New.
3900         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
3901         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
3902         (OUTGOING_REG_PARM_STACK_SPACE): New.
3903         (ix86_reg_parm_stack_space): New prototype.
3904         (CUMULATIVE_ARGS): Add call_abi member.
3905         (machine_function): Add call_abi member.
3906         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
3907         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
3908
3909 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com> 
3910
3911         PR target/34879
3912         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
3913         (avr_builtin_setjmp_frame_value): New function.
3914         * config/avr/avr.md (nonlocal_goto_receiver): Define.
3915         (nonlocal_goto): Define.
3916
3917 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
3918
3919         * config/mips/mips.c (mips_emit_loadgp): Return early if
3920         there is nothing do to, otherwise emit a blockage if
3921         !TARGET_EXPLICIT_RELOCS || crtl->profile.
3922         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
3923
3924 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3925
3926         * configure.ac: Drop unneeded backslash ending up in config.in.
3927         * acinclude.m4: Likewise.
3928         * config.in: Regenerate.
3929
3930 2008-05-26  Jan Hubicka  <jh@suse.cz>
3931
3932         * predict.c (maybe_hot_frequency_p): Break out of...
3933         (maybe_hot_bb_p): ... here.
3934         (maybe_hot_edge_p): New.
3935         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
3936         * basic-block.h (maybe_hot_edge_p): Declare.
3937
3938 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
3939
3940         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
3941         (*cmpfp_<mode>_cc): Ditto.
3942         (*fp_jcc_8<mode>_387): Ditto.
3943         (*fop_<MODEF:mode>_2_i387): Ditto.
3944         (*fop_<MODEF:mode>_3_i387): Ditto.
3945         (*fop_xf_2_i387): Ditto.
3946         (*fop_xf_3_i387): Ditto.
3947
3948 2008-06-02  Tomas Bily  <tbily@suse.cz>
3949
3950         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
3951
3952 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3953
3954         * config/mips/mips.c (mips_valid_offset_p): New function.
3955         (mips_valid_lo_sum_p): Likewise.
3956         (mips_classify_address): Use them.
3957         (mips_force_address): New function.
3958         (mips_legitimize_address): Use it.
3959         * config/mips/mips.md (MOVE128): New mode iterator.
3960         (movtf): Require TARGET_64BIT.  Remove empty strings.
3961         (*movtf_internal): Rename to...
3962         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
3963         of "R" and use {,fp}{load,store} attributes instead of "multi".
3964         Use a separate define_split.
3965         (*movtf_mips16): New pattern.
3966
3967 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3968
3969         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
3970         * config/mips/mips.c (mips_expand_before_return): New function.
3971         (mips_expand_epilogue): Call it.
3972         * config/mips/mips.md (return): Turn into a define_expand.
3973         (*return): New insn.
3974
3975 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3976
3977         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
3978         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
3979         functions.  Do not emit uses and clobbers of CONCATs; individually
3980         use and clobber their operands.
3981         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
3982         gen_clobber, emit_use and gen_use.
3983         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
3984         (expand_builtin_return): Likewise.
3985         * cfgbuild.c (count_basic_blocks): Likewise.
3986         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
3987         * explow.c (emit_stack_restore): Likewise.
3988         * expmed.c (extract_bit_field_1): Likewise.
3989         * expr.c (convert_move, emit_move_complex_parts): Likewise.
3990         (emit_move_multi_word, store_constructor): Likewise.
3991         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
3992         (thread_prologue_and_epilogue_insns): Likewise.
3993         * lower-subreg.c (resolve_simple_move): Likewise.
3994         * optabs.c (widen_operand, expand_binop): Likewise.
3995         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
3996         * reload.c (find_reloads): Likewise.
3997         * reload1.c (eliminate_regs_in_insn): Likewise.
3998         * stmt.c (expand_nl_goto_receiver): Likewise.
3999         * config/alpha/alpha.md (builtin_longjmp): Likewise.
4000         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
4001         * config/arm/arm.c (arm_load_pic_register): Likewise.
4002         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
4003         * config/arm/arm.md (untyped_return): Likewise.
4004         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
4005         * config/avr/avr.c (expand_prologue): Likewise.
4006         * config/bfin/bfin.c (do_unlink): Likewise.
4007         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
4008         * config/cris/cris.c (cris_expand_prologue): Likewise.
4009         * config/darwin.c (machopic_indirect_data_reference): Likewise.
4010         (machopic_legitimize_pic_address): Likewise.
4011         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
4012         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
4013         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
4014         (ix86_expand_convert_uns_didf_sse): Likewise.
4015         (ix86_expand_vector_init_general): Likewise.
4016         * config/ia64/ia64.md (eh_epilogue): Likewise.
4017         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
4018         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
4019         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
4020         (config/iq2000/iq2000.c): Likewise.
4021         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
4022         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
4023         (builtin_longjmp): Likewise.
4024         * config/mn10300/mn10300.md (call, call_value): Likewise.
4025         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
4026         * config/pdp11/pdp11.md (abshi2): Likewise.
4027         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
4028         * config/s390/s390.c (s390_emit_prologue): Likewise.
4029         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
4030         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
4031         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
4032         * config/sh/sh.c (prepare_move_operands): Likewise.
4033         (output_stack_adjust, sh_expand_epilogue): Likewise.
4034         (sh_set_return_address, sh_expand_t_scc): Likewise.
4035         * config/sparc/sparc.c (load_pic_register): Likewise.
4036         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
4037         * config/spu/spu.c (spu_expand_epilogue): Likewise.
4038         * config/v850/v850.c (expand_epilogue): Likewise.
4039
4040 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
4041
4042         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
4043         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
4044         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
4045         * config/avr/avr.c (expand_prologue, expand_epilogue): Use 
4046         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the 
4047         stack pointer register.
4048         (output_movhi): Remove code for interrupt specific writing to the 
4049         stack pointer register.
4050
4051 2008-05-31  Richard Guenther  <rguenther@suse.de>
4052
4053         PR tree-optimization/34244
4054         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
4055         (tree_expr_nonzero_warnv_p): Likewise.
4056         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
4057         ssa_name_nonnegative_p.
4058         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
4059         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
4060         not tree_expr_nonzero_warnv_p.
4061
4062         PR tree-optimization/36262
4063         Revert
4064         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
4065
4066         PR tree-optimization/34244
4067         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
4068         (record_numbers_of_iterations): New function.
4069         (execute_vrp): Cache the numbers of iterations of loops.
4070         * tree-scalar-evolution.c (scev_reset_except_niters):
4071         New function.
4072         (scev_reset): Use scev_reset_except_niters.
4073         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
4074
4075 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
4076
4077         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4078         __WORKAROUND_RETS when appropriate.
4079
4080 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
4081
4082         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
4083         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
4084         mode iterator.
4085         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
4086         *fop_df_comm_sse insn patterns using MODEF mode iterator.
4087         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
4088         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
4089         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
4090         *fop_df_1_mixed insn patterns using MODEF mode iterator.
4091         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
4092         *fop_df_1_sse insn patterns using MODEF mode iterator.
4093         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
4094         *fop_df_1_i387 insn patterns using MODEF mode iterator.
4095         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
4096         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
4097         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
4098         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
4099         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
4100         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
4101         (*fop_xf_4_i387): Use <MODE> for mode attribute.
4102         (*fop_xf_5_i387): Ditto.
4103         (*fop_xf_6_i387): Ditto.
4104
4105 2008-05-30  Richard Guenther  <rguenther@suse.de>
4106
4107         * builtins.c (build_string_literal): Avoid generating
4108         a non-gimple_val result.
4109
4110 2008-05-30  DJ Delorie  <dj@redhat.com>
4111
4112         * exec-tool.in: Use an environment variable (private) instead of a
4113         file (shared) as a semaphore, so as to not break parallel builds.
4114
4115 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
4116
4117         * optabs.c (maybe_encapsulate_block): Remove.
4118         (emit_libcall_block): Adjust accordingly.
4119         * optabs.h (maybe_encapsulate_block): Remove prototype.
4120
4121         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
4122         Don't use maybe_encapsulate_block.
4123
4124 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
4125
4126         * config/rs6000/rs6000.c (rs6000_legitimize_address,
4127         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
4128         rtx is a SYMBOL_REF before calling get_pool_constant.
4129
4130 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
4131
4132         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
4133
4134 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
4135
4136         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
4137         rather than OS names to choose INO_T_EQ definition.
4138         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
4139         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
4140
4141 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
4142
4143         PR target/36348
4144         * config/darwin-f.c: New.
4145         * config/t-darwin: Added rule to build darwin-f.o.
4146         * config.gcc: Defined new variable, fortran_target_objs.
4147         (*-*-darwin*): Set fortran_target_objs.
4148         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
4149         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
4150         * configure: Regenerated.
4151
4152 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
4153
4154         PR target/35771
4155         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
4156         canonical type if needed.
4157
4158 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
4159
4160         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
4161
4162 2008-05-29  Richard Guenther  <rguenther@suse.de>
4163
4164         PR tree-optimization/36343
4165         PR tree-optimization/36346
4166         PR tree-optimization/36347
4167         * tree-flow.h (clobber_what_p_points_to): Declare.
4168         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
4169         pointed-to variable is dereferenced is irrelevant to whether
4170         the pointer can access the pointed-to variable.
4171         (clobber_what_p_points_to): New function.
4172         * tree-ssa-alias.c (set_initial_properties): Use it.
4173         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
4174         call clobber check for NMTs.
4175
4176 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
4177         
4178         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
4179         for printing gcov_type.
4180
4181 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
4182
4183         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
4184         and the eh region information.
4185         * value-prof.c (gimple_move_stmt_histograms): New function.
4186         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
4187
4188 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
4189
4190         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
4191
4192 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
4193
4194         * value-prof.c (tree_ic_transform): Print counts.
4195         * tree-profile.c (tree_gen_ic_func_profiler):
4196         Clear __gcov_indreict_call_callee variable to avoid misattribution
4197         of the profile.
4198
4199 2008-05-28  Rafael Espindola  <espindola@google.com>
4200
4201         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
4202         invalid sharing.
4203
4204 2008-05-28  Richard Guenther  <rguenther@suse.de>
4205
4206         PR tree-optimization/36339
4207         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
4208         and clobbering code out of the loop.
4209
4210 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
4211
4212         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
4213         letters defined.
4214
4215         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
4216         s390_contiguous_bitmask_p, s390_symref_operand_p,
4217         s390_check_symref_alignment, s390_reload_larl_operand,
4218         s390_reload_symref_address): New functions.
4219         (s390_branch_condition_mnemonic): Support compare and branch
4220         instructions.
4221         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
4222         and 'W' constraints.
4223         (s390_secondary_reload): Add secondary reloads for unaligned
4224         symbol refs or symbol refs to floating point or QI/TI mode
4225         integer values.
4226         (legitimate_address_p): Accept symbol references as addresses.
4227         (s390_expand_insv): Use rotate and insert selected bits
4228         instruction for insv when building for z10.
4229         (print_operand_address): Handle symbol ref addresses.
4230         (print_operand): Output modifier 'c' added for signed byte values.
4231         (s390_encode_section_info): Mark symbol refs with
4232         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
4233
4234         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
4235         (length attribute): RRF, RRR have 4 byte length.
4236         (FPALL, INTALL): New mode iterators added.
4237         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
4238         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
4239         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
4240         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
4241         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
4242         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
4243         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
4244         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
4245         instructions.
4246         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
4247         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
4248         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
4249         reload<INTALL:mode><P:mode>_toreg_z10,
4250         reload<FPALL:mode><P:mode>_tomem_z10,
4251         reload<FPALL:mode><P:mode>_toreg_z10,
4252         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
4253         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
4254         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
4255         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
4256         definition.
4257         (movmem, clrmem, cmpmem): New splitters added.
4258
4259         * config/s390/predicates.md (larl_operand): Use
4260         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
4261         SYMBOL_REF_ALIGN1_P.
4262         (s390_signed_integer_comparison,
4263         s390_unsigned_integer_comparison): New predicates.
4264
4265         * config/s390/s390-protos.h (s390_check_symref_alignment,
4266         s390_contiguous_bitmask_p, s390_reload_larl_operand,
4267         s390_reload_symref_address,
4268         s390_compare_and_branch_condition_mask): Prototypes added.
4269
4270         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
4271         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
4272         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
4273
4274 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
4275
4276         * config/s390/s390.c (z10_cost): New cost function for z10.
4277         (s390_handle_arch_option, override_options): Support -march=z10 switch.
4278         (s390_issue_rate): Adjust issue rate for z10.
4279         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
4280         (processor_flags): Add PF_Z10.
4281         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
4282         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
4283         * gcc/config.gcc: Add z10.
4284
4285 2008-05-28  Richard Guenther  <rguenther@suse.de>
4286
4287         PR tree-optimization/36291
4288         * tree-flow. h (struct gimple_df): Remove var_anns member.
4289         * tree-flow-inline.h (gimple_var_anns): Remove.
4290         (var_ann): Simplify.
4291         * tree-dfa.c (create_var_ann): Simplify.
4292         (remove_referenced_var): Clear alias info from var_anns of globals.
4293         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
4294         (delete_tree_ssa): Clear alias info from var_anns of globals.
4295         Do not free var_anns.
4296         (var_ann_eq): Remove.
4297         (var_ann_hash): Likewise.
4298
4299 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
4300
4301         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
4302         and loongson2f entries.
4303         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
4304         * config/mips/mips.h (processor_type): Add Loongson-2E
4305         and Loongson-2F entries.
4306         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
4307         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
4308         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
4309         * doc/invoke.texi (MIPS Options): Document loongson2e
4310         and loongson2f processor names.
4311
4312 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
4313
4314         PR target/35767
4315         PR target/35771
4316         * config/i386/i386.c (ix86_function_arg_boundary): Use
4317         alignment of canonical type.
4318         (ix86_expand_vector_move): Check unaligned memory access for
4319         all SSE modes.
4320
4321 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
4322
4323         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
4324         Moved to the front of file.
4325
4326 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
4327             H.J. Lu  <hongjiu.lu@intel.com>
4328
4329         * dwarf2out.c (current_fde): New.
4330         (add_cfi): Use it.
4331         (lookup_cfa:): Likewise.
4332         (dwarf2out_end_epilogue): Likewise.
4333         (dwarf2out_note_section_used): Likewise.
4334
4335 2008-05-27  Michael Matz  <matz@suse.de>
4336
4337         PR c++/27975
4338         * c.opt (Wenum-compare): New warning option.
4339         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
4340
4341 2008-05-27  Michael Matz  <matz@suse.de>
4342
4343         PR middle-end/36326
4344         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
4345         non-BLKmode types.
4346         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
4347         into memory as tail calls.
4348
4349 2008-05-27  Richard Guenther  <rguenther@suse.de>
4350
4351         PR tree-optimization/36339
4352         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
4353         pointers cause all addressable variables to be call clobbered.
4354
4355 2008-05-27  Richard Guenther  <rguenther@suse.de>
4356
4357         PR tree-optimization/36245
4358         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
4359
4360 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4361
4362         * config/s390/s390.md: Replace all occurences of the 'm'
4363         constraint with 'RT'.
4364
4365 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4366
4367         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
4368         definitions added.
4369         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
4370         "*movdi_64".
4371         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
4372         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
4373         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
4374
4375 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4376
4377         * reload.c: (find_reloads): Skip alternatives according to the
4378         "enabled" attribute. Constify the constraint variable.
4379         * recog.c (get_attr_enabled): Add default implementation.
4380         (extract_insn): Set the alternative_enabled_p array
4381         in the recog_data struct.
4382         (preprocess_constraints, constrain_operands): Skip
4383         alternatives according to the "enabled" attribute
4384         * recog.h (struct recog_data): New field alternative_enabled_p.
4385         (skip_alternative): New inline function.
4386         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
4387         (record_reg_classes): Skip alternative according to the
4388         "enabled" attribute.
4389
4390         * doc/md.texi: Add documention for the "enabled" attribute.
4391
4392 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4393
4394         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
4395         * postreload.c (reload_cse_simplify_operands): Replace 'm'
4396         constraint with TARGET_MEM_CONSTRAINT.
4397         * recog.c (asm_operand_ok, preprocess_constraints,
4398         constrain_operands): Likewise.
4399         * regclass.c (record_reg_classes): Likewise.
4400         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
4401         * reload1.c (maybe_fix_stack_asms): Likewise.
4402         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
4403         * recog.h: Adjust comment.
4404         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
4405         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
4406         * doc/md.texi: Add a note to description of 'm' constraint.
4407         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
4408
4409 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
4410
4411         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
4412         that the bitfield is of integral type before testing its precision.
4413
4414 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
4415             Sa Liu  <saliu@de.ibm.com> 
4416
4417         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3, 
4418         __modti3, __udivti3, __umodti3 and __udivmodti4.
4419         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
4420         that implement TImode mul and div functions.
4421         * config/spu/multi3.c: New. Implement __multi3.
4422         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
4423         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
4424         functions on SPU.
4425
4426 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
4427
4428         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
4429         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
4430         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
4431         tls_sysv_suffix): New mode and mode attribute iterators.
4432         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
4433         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
4434         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
4435         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
4436         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
4437         iterators.
4438
4439 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
4440
4441         PR tree-optimization/36329
4442         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
4443         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
4444         * cgraphbuild.c (initialize_inline_failed): Use the latter
4445         macro in lieu of the former.
4446         * ipa-inline.c (cgraph_mark_inline): Likewise.
4447         (cgraph_decide_inlining_of_small_function): Likewise.
4448         (cgraph_decide_inlining): Likewise.
4449         (cgraph_decide_inlining_incrementally): Likewise.
4450
4451 2008-05-26  Tristan Gingold  <gingold@adacore.com>
4452             Anatoly Sokolov  <aesok@post.ru>
4453
4454         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
4455         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
4456         * config/avr/avr.c (expand_prologue): Tune "call_prologue" 
4457         optimization for 'avr6' architecture.
4458
4459 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
4460
4461         PR target/34932
4462         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
4463
4464 2008-05-26  Richard Guenther  <rguenther@suse.de>
4465
4466         * tree-ssa-sccvn.c (expr_has_constants): Declare.
4467         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
4468
4469 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
4470
4471         PR middle-end/36253
4472         * caller-save.c (insert_restore): Verify alignment of spill space.
4473         (insert_save): Likewise.
4474         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
4475         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
4476         (STACK_SLOT_ALIGNMENT): Likewise.
4477         * function.c (LOCAL_ALIGNMENT): Removed.
4478         (get_stack_local_alignment): New.
4479         (assign_stack_local): Use it.  Set alignment on stack slot.
4480         (assign_stack_temp_for_type): Use get_stack_local_alignment.
4481         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
4482         (STACK_SLOT_ALIGNMENT): New.
4483         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
4484         stack slot in XFmode.
4485
4486         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
4487
4488 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
4489
4490         PR/36321
4491         * config/i386/i386.md (allocate_stack_worker_64): Make sure
4492         argument operand in rax isn't removed.
4493
4494 2008-05-26  Richard Guenther  <rguenther@suse.de>
4495
4496         PR middle-end/36300
4497         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
4498         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
4499
4500 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
4501
4502         PR bootstrap/36331
4503         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
4504
4505 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
4506
4507         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
4508         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
4509
4510 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4511
4512         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
4513         build a trampoline if we don't want one.
4514         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
4515         return zero for nested functions if we don't want a trampoline.
4516
4517 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
4518
4519         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
4520
4521 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
4522
4523         PR fortran/18428
4524         * c.opt: Removed undocumented option '-lang-fortran'.
4525         * c-common.h: Removed global variable 'lang_fortran'.
4526         * c-opts.c (c_common_handle_option): Removed code to handle
4527         option '-lang-fortran'. Updated includes.
4528         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
4529         definition of '__GFORTRAN__'.
4530         (define__GNUC__): Reimplemented to use BASEVER and
4531         cpp_define_formatted.
4532         (builtin_define_with_value_n): Removed.
4533         * c-incpath.h: Renamed to ...
4534         * incpath.h: ... this.
4535         * c-incpath.c: Renamed to ...
4536         * incpath.c: ... this. Updated includes.
4537         * fix-header.c: Updated includes.
4538         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
4539         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
4540         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
4541
4542 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4543
4544         * tree.h: Update the table of flags used on tree nodes.
4545         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
4546         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
4547         (FORCED_LABEL): Add access check.
4548         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
4549         (ASM_INPUT_P): Likewise.
4550         (ASM_VOLATILE_P): Likewise.
4551         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
4552         (OMP_SECTION_LAST): Access private_flag directly.
4553         (OMP_RETURN_NOWAIT): Likewise.
4554         (OMP_PARALLEL_COMBINED): Likewise.
4555         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
4556         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
4557         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
4558         deprecated_flag directly.
4559
4560 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4561
4562         * final.c (frame_pointer_needed): Removed.
4563         * flags.h (frame_pointer_needed): Likewise.
4564
4565         * function.h (rtl_data): Add frame_pointer_needed.
4566         (frame_pointer_needed): New.
4567
4568 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
4569
4570         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
4571
4572 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
4573
4574         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
4575         SRC is a REG.
4576
4577 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
4578
4579         * c-common.c (strip_array_types): Move function to..
4580         * tree.c: ..here.
4581         (get_inner_array_type): Delete.
4582         * c-common.h (strip_array_types): Move declaration to..
4583         * tree.h: ..here.
4584         (get_inner_array_type): Delete.
4585         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
4586         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
4587         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
4588         * config/pa/pa.c (emit_move_sequence): Likewise.
4589
4590 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4591
4592         * config/i386/i386.md (*sse_prologue_save_insn): Set length
4593         attribute to 34.
4594
4595 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
4596
4597         * function.c: Include target hook for nonlocal_goto frame value.
4598
4599 2008-05-24  Richard Guenther  <rguenther@suse.de>
4600
4601         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
4602         variable can be only accessed through a pointer or a union.
4603
4604 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4605
4606         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
4607         * doc/extend.texi: Likewise.
4608
4609 2008-05-23  DJ Delorie  <dj@redhat.com>
4610
4611         * config/m32c/jump.md (untyped_call): Add.
4612
4613         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
4614         for A24 to PSImode.
4615         (m32c_address_cost): Detail costs for indirect offsets.
4616
4617 2008-05-23  Rafael Espindola  <espindola@google.com>
4618
4619         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
4620         if a node is a SUBREG.
4621         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
4622         is a SUBREG.
4623
4624 2008-05-23  Paul Brook  <paul@codesourcery.com>
4625             Carlos O'Donell  <carlos@codesourcery.com>
4626
4627         * doc/extend.texi: Clarify use of __attribute__((naked)).
4628         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
4629         * target.h (gcc_target): Add allocate_stack_slots_for_args.
4630         * function.c (use_register_for_decl): Use
4631         targetm.calls.allocate_stack_slots_for_args.
4632         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
4633         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
4634         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
4635
4636 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
4637
4638         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
4639
4640 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
4641
4642         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
4643         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
4644         is only rounded once.
4645
4646 2008-05-23  Richard Guenther  <rguenther@suse.de>
4647
4648         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
4649
4650 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
4651             Jakub Jelinek  <jakub@redhat.com>
4652
4653         PR target/36079
4654         * configure.ac: Handle --enable-cld.
4655         * configure: Regenerated.
4656         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
4657         * config/i386/i386.h (struct machine_function): Add needs_cld field.
4658         (ix86_current_function_needs_cld): New define.
4659         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
4660         (cld): New isns pattern.
4661         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
4662         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
4663         * config/i386/i386.opt (mcld): New option.
4664         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
4665         TARGET_CLD and ix86_current_function_needs_cld.
4666         (override_options): Use -mcld by default for 32-bit code if
4667         USE_IX86_CLD.
4668
4669         * doc/install.texi (Options specification): Document --enable-cld.
4670         * doc/invoke.texi (Machine Dependent Options)
4671         [i386 and x86-64 Options]: Add -mcld option.
4672         (Intel 386 and AMD x86-64 Options): Document -mcld option.
4673
4674 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
4675         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
4676         (return_in_memory_64): Likewise.
4677         (return_in_memory_ms_64): Likewise.
4678
4679 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4680
4681         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
4682         * builtins.c (fold_builtin_fpclassify): New.
4683         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
4684         * builtins.def (BUILT_IN_FPCLASSIFY): New.
4685         * c-common.c (handle_type_generic_attribute): Adjust to accept
4686         fixed arguments before an elipsis.
4687         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
4688         * doc/extend.texi: Document __builtin_fpclassify.
4689
4690 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
4691
4692         * omp-low.c (gate_expand_omp_ssa): Remove.
4693         (pass_expand_omp_ssa): Remove.
4694         (gate_expand_omp): Do not check for flag_openmp_ssa.
4695         * common.opt (-fopenmp-ssa): Remove.
4696         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
4697
4698 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
4699
4700         * config/sh/sh.opt (mfixed-range): New option.
4701         * config/sh/sh-protos.h (sh_fix_range): Declare.
4702         * config/sh/sh.c (sh_fix_range): New function.
4703         * config/sh/sh.h (sh_fixed_range_str): Declare.
4704         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
4705         is not empty.
4706         * doc/invoke.texi (SH Options): Document -mfixed-range.
4707
4708 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
4709
4710         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
4711         it before the redeclaration.
4712
4713 2008-05-22  Anatoly Sokolov <aesok@post.ru>
4714
4715         * config/avr/avr.c (get_sequence_length): Add new function.
4716         (expand_prologue, expand_epilogue): Remove duplicate code.
4717
4718 2008-05-22  Rafael Espindola  <espindola@google.com>
4719
4720         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
4721         sharing.
4722
4723 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4724
4725         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
4726         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
4727
4728         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
4729         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
4730         (vect_update_misalignment_for_peel): Likewise.
4731         (vector_alignment_reachable_p): Likewise.
4732         * tree-vect-transform.c (vectorizable_load): Likewise.
4733         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
4734         (get_vectype_for_scalar_type): Pass mode of scalar_type
4735         to UNITS_PER_SIMD_WORD.
4736
4737         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
4738         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
4739         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
4740         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
4741         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
4742
4743 2008-05-22  Ira Rosen  <irar@il.ibm.com>
4744
4745         PR tree-optimization/36293
4746         * tree-vect-transform.c (vect_transform_strided_load): Don't check
4747         if the first load must be skipped because of a gap.
4748
4749 2008-05-22  Richard Guenther  <rguenther@suse.de>
4750
4751         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
4752         more cases of offset disambiguation that is possible if
4753         strict-aliasing rules apply.
4754         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
4755         for basic offset and type-based disambiguation.
4756
4757 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4758
4759         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
4760         ix86_expand_vector_set on V16QImode for SSE4.1.
4761
4762 2008-05-21  Tom Tromey  <tromey@redhat.com>
4763
4764         * c.opt (Wimport): Mark as undocumented.
4765         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
4766         -Wno-import.
4767         (Warning Options): Likewise.
4768         * doc/cppopts.texi: Don't mention -Wimport.
4769
4770 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
4771
4772         PR tree-optimization/36287
4773         PR tree-optimization/36286
4774         * lambda-code.c (build_access_matrix): Do not use the loop->num
4775         for computing the number of induction variables: use the loop depth
4776         instead.
4777
4778 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
4779
4780         PR/36280
4781         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
4782         option -f(no-)leading-underscore.
4783
4784 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4785
4786         * config/i386/i386.c (ix86_expand_vector_init_general): Use
4787         GET_MODE_NUNITS (mode).
4788
4789 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
4790
4791         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
4792         (-mmulhw): Add 464 to description.
4793         (-mdlmzb): Likewise.
4794         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
4795         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
4796         464fp entries.
4797         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
4798         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
4799         * config/rs6000/rs6000.md: Update comments for 464.
4800
4801 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
4802
4803         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
4804
4805 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4806
4807         * config/i386/sse.md (vec_extractv4sf): Removed.
4808         (vec_extractv2df): Likewise.
4809         (vec_extractv2di): Likewise.
4810         (vec_extractv4si): Likewise.
4811         (vec_extractv8hi): Likewise.
4812         (vec_extractv16qi): Likewise.
4813         (vec_extract<mode>): New.
4814
4815 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4816
4817         * config/i386/sse.md (vec_setv4sf): Removed.
4818         (vec_setv2df): Likewise.
4819         (vec_setv2di): Likewise.
4820         (vec_setv4si): Likewise.
4821         (vec_setv8hi): Likewise.
4822         (vec_setv16qi): Likewise.
4823         (vec_set<mode>): New.
4824
4825 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4826
4827         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
4828         goto for vec_concat and vec_interleave.
4829
4830 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4831
4832         * config/i386/sse.md (vec_initv4sf): Removed.
4833         (vec_initv2df): Likewise.
4834         (vec_initv2di): Likewise.
4835         (vec_initv4si): Likewise.
4836         (vec_initv8hi): Likewise.
4837         (vec_initv16qi): Likewise.
4838         (vec_init<mode>): New.
4839
4840 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
4841
4842         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
4843
4844 2008-05-21  Tom Tromey  <tromey@redhat.com>
4845
4846         * ggc-zone.c (lookup_page_table_if_allocated): New function.
4847         (zone_find_object_offset): Likewise.
4848         (gt_ggc_m_S): Likewise.
4849         (highest_bit): Likewise.
4850         * ggc-page.c (gt_ggc_m_S): New function.
4851         * stringpool.c (string_stack): Remove.
4852         (init_stringpool): Update.
4853         (ggc_alloc_string): Use ggc_alloc.
4854         (maybe_delete_ident): New function.
4855         (ggc_purge_stringpool): Likewise.
4856         (gt_ggc_m_S): Remove.
4857         * ggc-common.c (ggc_protect_identifiers): New global.
4858         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
4859         ggc_protect_identifiers.
4860         * ggc.h (ggc_protect_identifiers): Declare.
4861         (gt_ggc_m_S): Update.
4862         (ggc_purge_stringpool): Declare.
4863         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
4864         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
4865         special case.
4866         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
4867
4868 2008-05-21  David S. Miller  <davem@davemloft.net>
4869
4870         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
4871         tmake_file.
4872
4873 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
4874
4875         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
4876         once finished.
4877
4878 2008-05-20  David Daney  <ddaney@avtrex.com>
4879
4880         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
4881         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
4882         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
4883         UNSPEC_UPDATE_GOT_VERSION): Renumber.
4884         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
4885         (atomic_hiqi_op): New define_code_iterator.
4886         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
4887         mips_expand_compare_and_swap_12.
4888         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
4889         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
4890         (sync_<optab><mode>, sync_old_<optab><mode>,
4891         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
4892         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
4893         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
4894         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
4895         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
4896         (test_and_set_12): New insn.
4897         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
4898         sync_new_<optab><mode>, sync_old_nand<mode>,
4899         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
4900         clobber to operand 0 for SI and DI mode insns.
4901         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
4902         mips_gen_fn_4): New typedefs.
4903         (mips_gen_fn_ptrs): Define new union type.
4904         (mips_expand_compare_and_swap_12): Remove declaration.
4905         (mips_expand_atomic_qihi): Declare function.
4906         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
4907         (mips_expand_atomic_qihi): ... this.  Use new generator function
4908         parameter.
4909         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
4910         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
4911         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
4912         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
4913         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
4914         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
4915         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
4916         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
4917         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
4918         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
4919         New macros.
4920
4921 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
4922
4923         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
4924         the missing break.
4925
4926 2008-05-20  Anatoly Sokolov <aesok@post.ru>
4927
4928         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
4929         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
4930         (avr_attribute_table): Add 'OS_main' function attribute.
4931         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
4932         functions with 'OS_main' attribute.
4933
4934 2008-05-20  Richard Guenther  <rguenther@suse.de>
4935
4936         PR tree-optimization/35204
4937         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
4938         helper, split out from ...
4939         (DFS): ... here.  Make the DFS walk non-recursive.
4940
4941 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
4942             Jan Sjodin  <jan.sjodin@amd.com>
4943
4944         PR tree-optimization/36181
4945         * tree-parloops.c (loop_has_vector_phi_nodes): New.
4946         (parallelize_loops): Don't parallelize when the loop has vector
4947         phi nodes.
4948
4949 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
4950             Sebastian Pop  <sebastian.pop@amd.com>
4951
4952         * tree-loop-linear.c (gather_interchange_stats): Look in the access
4953         matrix, and never look at the tree representation of the memory
4954         accesses.
4955         (linear_transform_loops): Computes parameters and access matrices.
4956         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
4957         when fails.
4958         (access_matrix_get_index_for_parameter): New.
4959         * tree-data-ref.h (struct access_matrix): New.
4960         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
4961         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
4962         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
4963         am_vector_index_for_loop): New.
4964         (struct data_reference): Add field access_matrix.
4965         (DR_ACCESS_MATRIX): New.
4966         (compute_data_dependences_for_loop): Update declaration.
4967         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
4968         * lambda.h (lambda_vector_vec_p): Declared.
4969         * lambda-code.c: Depend on pointer-set.h.
4970         (lambda_collect_parameters_from_af, lambda_collect_parameters,
4971         av_for_af_base, av_for_af, build_access_matrix,
4972         lambda_compute_access_matrices): New.
4973         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
4974
4975 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
4976
4977         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
4978         $SOURCEDIR/include.
4979
4980 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
4981             Sebastian Pop  <sebastian.pop@amd.com>
4982
4983         PR tree-optimization/36206
4984         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
4985         FOLD_CONVERSIONS.
4986         (instantiate_scev_1): Rename flags to fold_conversions.
4987         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
4988         outeside instantiation_loop.
4989         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
4990         (evolution_function_is_affine_or_constant_p): Removed.
4991         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
4992         instantiate_scev.
4993         (analyze_siv_subscript): Pass in the loop nest number.
4994         Call evolution_function_is_affine_in_loop instead of 
4995         evolution_function_is_affine_p.
4996         (analyze_overlapping_iterations): Pass in the loop nest number.
4997
4998 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
4999             Sebastian Pop  <sebastian.pop@amd.com>
5000
5001         PR tree-optimization/36206
5002         * tree-chrec.h (chrec_fold_op): New.
5003         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
5004         and other trees.
5005
5006 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
5007
5008         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
5009         (DIRS_EQ): New.
5010         (remove_duplicates): Do not set inode on non-inode systems.
5011         Use DIRS_EQ.
5012
5013 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
5014
5015         * config.gcc (tm_file): Update comments about relative pathnames.
5016
5017 2008-05-20  Richard Guenther  <rguenther@suse.de>
5018
5019         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
5020         * tree-ssa-sccvn.c (process_scc): Likewise.
5021         * tree-ssa-sink.c (execute_sink_code): Likewise.
5022         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
5023         * tree-vrp.c (process_assert_insertions): Likewise.
5024         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
5025         (perform_tree_ssa_dce): Likewise.
5026         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
5027         (dump_dominator_optimization_stats): Likewise.
5028         * tree-vectorizer.c (vectorize_loops): Likewise.
5029
5030 2008-05-20  Richard Guenther  <rguenther@suse.de>
5031
5032         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
5033
5034 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
5035
5036         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
5037         (ix86_i386elf_return_in_memory): Likewise.
5038         (ix86_i386interix_return_in_memory): Likewise.
5039         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
5040         (SUBTARGET_RETURN_IN_MEMORY): New.
5041         * config/i386/i386elf.h: Likewise.
5042         * config/i386/ptx4-i.h: Likewise.
5043         * config/i386/sol2-10.h: Likewise.
5044         * config/i386/sysv4.h: Likewise.
5045         * config/i386/vx-common.h: Likewise.
5046         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
5047         * config/i386/i386.c (ix86_return_in_memory): Made static and
5048         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
5049         (ix86_i386elf_return_in_memory): Removed.
5050         (ix86_i386interix_return_in_memory): Removed.
5051         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
5052         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
5053
5054 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
5055
5056         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
5057
5058 2008-05-19  Xinliang David Li  <davidxl@google.com>
5059
5060         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18. 
5061         * opts.c: Ditto.
5062         * common.opt: Ditto.
5063         * doc/invoke.texi: Ditto.
5064
5065 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
5066
5067         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
5068         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
5069
5070 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5071
5072         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
5073         sizes of operand array from 8/4 to 4/2.
5074         (ix86_expand_vector_init_general): Change size of operand array
5075         from 32 to 16.  Remove op0, op1 and half_mode.
5076
5077 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5078
5079         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
5080         (ix86_expand_vector_init_interleave): Likewise.
5081         (ix86_expand_vector_init_general): Use them.  Assert
5082         word_mode == SImode when n_words == 4.
5083
5084 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
5085
5086         * config/i386/i386.c (ix86_secondary_reload): New static function.
5087         (TARGET_SECONDARY_RELOAD): New define.
5088         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
5089         * config/i386/i386.md (reload_outqi): Remove.
5090
5091 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5092
5093         PR middle-end/35509
5094         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
5095         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
5096         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
5097         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
5098         (fold_builtin_1): Likewise.
5099         * builtins.def (BUILT_IN_ISINF_SIGN): New.
5100         c-common.c (check_builtin_function_arguments): Handle
5101         BUILT_IN_ISINF_SIGN.
5102         * doc/extend.texi: Document __builtin_isinf_sign.
5103         * fold-const.c (operand_equal_p): Handle COND_EXPR.
5104
5105 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
5106
5107         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
5108         EH cleanup at the end of the pass, search for those that have been
5109         turned into forwarder blocks and do the cleanup on their successor.
5110
5111 2008-05-18  Richard Guenther  <rguenther@suse.de>
5112
5113         * tree-cfg.c (verify_gimple_expr): Allow conversions from
5114         pointers to sizetype and vice versa.
5115
5116 2008-05-18 Xinliang David Li   <davidxl@google.com>
5117
5118         * gcc/tree-ssa-dce.c: Coding style fix.
5119         (check_pow): Documentation comment. 
5120         (check_log): Documenation comment. Coding style fix.
5121         (is_unnecessary_except_errno_call): Ditto.
5122         (gen_conditions_for_pow): Ditto.
5123         (gen_conditions_for_log): Ditto.
5124         (gen_shrink_wrap_conditions): Ditto.
5125         (shrink_wrap_one_built_in_calls): Ditto.
5126         * gcc/doc/invoke.texi: Better documentation string.
5127         * ChangeLog: Fix wrong change log entries from 
5128         May 17 checkin on function call DCE.
5129
5130 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
5131
5132         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
5133
5134 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
5135
5136         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
5137         * df-problems.c (simulation routines): Fixed block comment to
5138         properly say how to add forwards scanning functions.
5139         
5140 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
5141
5142         * tree-inline.c (setup_one_parameter): Remove dead code.
5143
5144 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
5145
5146         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
5147         a BIT_AND_EXPR only for an INTEGER_TYPE.
5148
5149 2008-05-17 Xinliang David Li   <davidxl@google.com>
5150
5151         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
5152         (check_pow, check_log, is_unnecessary_except_errno_call): New 
5153         functions to check for eliminating math functions that are pure 
5154         except for setting errno.
5155         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
5156         general condition expressions for shrink-wrapping pow/log calls.
5157         (gen_shrink_wrap_conditions): Ditto.
5158         (shrink_wrap_one_built_in_call): Ditto.
5159         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
5160         (mark_operand_necessary): If debugging, output if OP is necessary.
5161         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
5162         unnecessary.
5163         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
5164         opt level >= 2.
5165         * gcc/common.opt: New user flag -ftree-builtin-dce.
5166         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
5167
5168 2008-05-16  David S. Miller  <davem@davemloft.net>
5169
5170         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
5171         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
5172
5173 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
5174
5175         PR target/36246
5176         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
5177
5178 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5179
5180         * ifcvt.c (dead_or_predicable): Rename
5181         df_simulate_one_insn_backwards to df_simulate_one_insn.
5182         * recog.c (peephole2_optimize): Ditto.
5183         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
5184         Ditto.
5185         * df.h: Rename df_simulate_one_insn_backwards to
5186         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
5187         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
5188         scanning of defs and uses.
5189         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
5190         (df_simulate_one_insn_forwards): Removed.
5191
5192 2008-05-16  Doug Kwan  <dougkwan@google.com>
5193
5194         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
5195         QNaN & SNaN.
5196         (real_from_string): Handle NaNs and Inf as approriate.
5197
5198 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
5199
5200         * doc/gty.texi (Source Files Containing Type Information): Note
5201         that headers should appear first in the gtfiles list.
5202
5203 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5204
5205         * tree.def (COND_EXEC): Properly documented this code.
5206
5207 2008-05-16  Diego Novillo  <dnovillo@google.com>
5208
5209         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
5210         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
5211         the new field.
5212
5213 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5214
5215         * tree-ssa-dse (max_stmt_uid): Removed.
5216         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt, 
5217         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
5218         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
5219         * function.h (cfun.last_stmt_uid): New field.
5220         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
5221         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
5222         New functions.
5223         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
5224         (create_stmt_ann): Initialize the ann->uid field.
5225         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
5226         with new calls.
5227         * tree-flow.h (renumber_gimple_stmt_uids): New function.
5228
5229 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
5230
5231         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
5232         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
5233         (init_empty_tree_cfg): Call it.
5234
5235 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5236
5237         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
5238         Update all users.
5239
5240 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5241
5242         * doc/invoke.text (-fdump-tree-*-verbose): New option.
5243         * tree-dump.c (dump_options): New verbose option.
5244         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
5245         Add verbose dump.
5246         * tree-pass.h (TDF_VERBOSE): New dump flag.
5247         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
5248         (tree-flow.h): Added include.
5249         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
5250
5251 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
5252
5253         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
5254
5255         From Jie Zhang  <jie.zhang@analog.com>
5256         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5257         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
5258         mcpu=bf561-none and mcpu=bf561-0.2.
5259         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5260         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
5261         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5262         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
5263         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
5264         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
5265         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
5266         option.
5267         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
5268         (cputype_selected): Remove.
5269         (bfin_handle_option): Don't use cputype_selected.
5270         (override_options): When no mcpu option, enable all workarounds.
5271         Don't use bfin_workarounds.
5272         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
5273         processor type.
5274         (DEFAULT_CPU_TYPE): Don't define.
5275
5276 2008-05-16  Richard Guenther  <rguenther@suse.de>
5277
5278         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
5279         on deletion of the last stmt.
5280
5281 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5282
5283         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
5284         V8HImode for SSE2 and V16QImode for SSE4.1.
5285
5286 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
5287
5288         * cgraph.h (compute_inline_parameters): Made public.
5289         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
5290         variable_generate_summary, function_write_summary,
5291         variable_write_summary, variable_read_summary.  Added generate_summary,
5292         write_summary, read_summary.
5293         * cgraphunit.c (cgraph_process_new_functions): Changed call from
5294         pass_ipa_inline.function_generate_summary, to
5295         compute_inline_parameters. 
5296         * ipa-inline.c (compute_inline_parameters): Made public and added
5297         node parameter.
5298         (compute_inline_parameters_for_current): New function.
5299         (pass_inline_param): Now calls compute_inline_parameters_for_current.
5300         (inline_generate_summary): Removed parameter and made to loop over
5301         all cgraph nodes.
5302         (pass_ipa_inline): Updated for new IPA_PASS structure.
5303         * passes.c (execute_ipa_summary_passes): Now is called once per
5304         pass rather than once per node*pass.
5305         
5306 2008-05-15  Anatoly Sokolov <aesok@post.ru>
5307
5308         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
5309         avr_have_mul_p, avr_asm_only_p): Remove variables.
5310         (avr_override_options): Remove initialization of removed variables.
5311         (avr_file_start):  Convert removed variables to fields of 
5312         'struct base_arch_s *avr_current_arch'. 
5313         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
5314         (AVR_HAVE_MUL): (Ditto.).
5315         (AVR_HAVE_MOVW): (Ditto.).
5316         (AVR_HAVE_LPMX): (Ditto.). 
5317         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
5318         avr_asm_only_p): Remove declaration.
5319
5320 2008-05-15  Diego Novillo  <dnovillo@google.com>
5321
5322         * config/arm/arm.c (arm_return_in_memory): Fix return type.
5323         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
5324
5325 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
5326
5327         PR middle-end/36194
5328         * combine.c (check_conversion): Rename back to check_promoted_subreg.
5329         Don't call record_truncated_value from here.
5330         (record_truncated_value): Turn it into a for_each_rtx callback.
5331         (record_truncated_values): New function.
5332         (combine_instructions): Call note_uses with record_truncated_values.
5333         Change name of check_conversion to check_promoted_subreg. 
5334
5335 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
5336
5337         * doc/sourcebuild.texi: Document support for torture tests.
5338
5339 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
5340
5341         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
5342         to alternative 4 of operand 2.
5343
5344 2008-05-15  Richard Guenther  <rguenther@suse.de>
5345
5346         * tree-pass.h (current_pass): Declare.
5347         (get_pass_for_id): Likewise.
5348         * passes.c (passes_by_id, passes_by_id_size): New globals.
5349         (set_pass_for_id): New function.
5350         (get_pass_for_id): Likewise.
5351         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
5352         (execute_function_todo): Flush per function statistics.
5353         * toplev.c (compile_file): Init statistics.
5354         (general_init): Do early statistics initialization.
5355         (finalize): Finish statistics.
5356         * statistics.h (statistics_early_init): Declare.
5357         (statistics_init): Likewise.
5358         (statistics_fini): Likewise.
5359         (statistics_fini_pass): Likewise.
5360         (statistics_counter_event): Likewise.
5361         (statistics_histogram_event): Likewise.
5362         * statistics.c: New file.
5363         * Makefile.in (OBJS-common): Add statistics.o.
5364         (statistics.o): Add dependencies.
5365         * doc/invoke.texi (-fdump-statistics): Document.
5366
5367         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
5368         (insert): Likewise.
5369         (execute_pre): Use statistics_counter_event.
5370         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
5371         (substitute_and_fold): Increment it.  Use statistics_counter_event.
5372
5373 2008-05-15  Diego Novillo  <dnovillo@google.com>
5374
5375         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
5376
5377         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
5378         * tree-ssa-alias.c (new_type_alias): Remove references to
5379         sub-variables from comment.
5380         * tree-ssa-operands.c (swap_tree_operands): Likewise.
5381
5382 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5383
5384         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
5385         attribute to 1 only for insertps alternative.
5386
5387 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
5388
5389         * config/bfin/bfin.md (loadbytes): New pattern.
5390         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
5391         (bfin_init_builtins): Initialize it.
5392         (bdesc_1arg): Add it.
5393
5394 2008-05-15  Sa Liu  <saliu@de.ibm.com>
5395
5396         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
5397         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
5398         * testsuite/lib/target-supports.exp: Add
5399         check_effective_target_fortran_integer_16.
5400
5401 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
5402
5403         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
5404         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
5405         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
5406         (TARGET_RETURN_IN_MEMORY): Define.
5407
5408 2008-05-15  Richard Guenther  <rguenther@suse.de>
5409
5410         PR middle-end/36244
5411         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
5412         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
5413         represent unmodifiable vars.
5414
5415 2008-05-15  Richard Guenther  <rguenther@suse.de>
5416
5417         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
5418         INDIRECT_REF and TARGET_MEM_REF.
5419         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5420         TARGET_MEM_REF.
5421
5422 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
5423             H.J. Lu  <hongjiu.lu@intel.com>
5424
5425         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
5426         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
5427         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
5428         insn alternatives.  Add missing alternatives.
5429         (*vec_concatv2di_rex64_sse4_1): Likewise.
5430         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
5431         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
5432         Require TARGET_SSE.
5433
5434 2008-05-15  Richard Guenther  <rguenther@suse.de>
5435
5436         PR tree-optimization/36009
5437         PR tree-optimization/36204
5438         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
5439         (determine_invariantness_stmt): Record the loop a store is
5440         always executed in.
5441         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
5442         dependency.
5443
5444 2008-05-15  Richard Guenther  <rguenther@suse.de>
5445
5446         PR tree-optimization/34330
5447         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
5448         through the pointer will alias the SMT.
5449
5450 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
5451
5452         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
5453
5454 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5455
5456         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
5457
5458 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
5459             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
5460
5461         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
5462         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
5463         (vashl_optab): New optab for vector/vector shifts.
5464         (vashr_optab): Ditto.
5465         (vlshr_optab): Ditto.
5466         (vrotl_optab): Ditto.
5467         (vrotr_optab): Ditto.
5468         (optab_subtype): New enum for optab_for_tree_code call.
5469         (optab_for_tree_code): Add enum optab_subtype argument.
5470
5471         * optabs.c (optab_for_tree_code): Take an additional argument to
5472         distinguish between a vector shift by a scalar and vector shift by
5473         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
5474         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
5475         vector shift by a vector.
5476         (expand_widen_pattern_expr): Pass additional argument to
5477         optab_for_tree_code.
5478
5479         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
5480         vrotl_optab, vrotr_optab.
5481
5482         * expr.c (expand_expr_real_1): Update calls to
5483         optab_for_tree_code to distinguish between vector shifted by a
5484         scalar and vector shifted by a vector.
5485         * tree-vectorizer.c (supportable_widening_operation): Ditto.
5486         (supportable_narrowing_operation): Ditto.
5487         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
5488         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
5489         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
5490         (vect_create_epilog_for_reduction): Ditto.
5491         (vectorizable_reduction): Ditto.
5492         (vectorizable_operation): Ditto.
5493         (vect_strided_store_supported): Ditto.
5494         (vect_strided_load_supported): Ditto.
5495         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
5496         * expmed.c (expand_shift): Ditto.
5497
5498         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
5499         scalar type.
5500         (ashr@var{m}3): Ditto.
5501         (vashl@var{m}3): Document new vector/vector shift standard name.
5502         (vashr@var{m}3): Ditto.
5503         (vlshr@var{m}3): Ditto.
5504         (vrotl@var{m}3): Ditto.
5505         (vrotr@var{m}3): Ditto.
5506
5507         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
5508         (PPERM_INVERT): Ditto.
5509         (PPERM_REVERSE): Ditto.
5510         (PPERM_REV_INV): Ditto.
5511         (PPERM_ZERO): Ditto.
5512         (PPERM_ONES): Ditto.
5513         (PPERM_SIGN): Ditto.
5514         (PPERM_INV_SIGN): Ditto.
5515         (PPERM_SRC1): Ditto.
5516         (PPERM_SRC2): Ditto.
5517
5518         * config/i386/sse.md (mulv2di3): Add SSE5 support.
5519         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
5520         allows a memory operand to be the value being added, and split it
5521         to improve vectorization.
5522         (sse5_pmacsdqh_mem): Ditto.
5523         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
5524         (sse5_mulv2div2di3_high): Ditto.
5525         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
5526         (vec_pack_trunc_v4si): Ditto.
5527         (vec_pack_trunc_v2di): Ditto.
5528         (sse5_pcmov_<mode>): Remove code that tried to use use
5529         andps/andnps instead of pcmov.
5530         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
5531         pmacsdqh instructions.
5532         (vec_widen_smult_lo_v4si): Ditto.
5533
5534         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
5535         (PPERM_INVERT): Ditto.
5536         (PPERM_REVERSE): Ditto.
5537         (PPERM_REV_INV): Ditto.
5538         (PPERM_ZERO): Ditto.
5539         (PPERM_ONES): Ditto.
5540         (PPERM_SIGN): Ditto.
5541         (PPERM_INV_SIGN): Ditto.
5542         (PPERM_SRC1): Ditto.
5543         (PPERM_SRC2): Ditto.
5544         (ix86_expand_sse_movcc): Move the SSE5 test after the if
5545         true/false tests.
5546         (ix86_expand_int_vcond): If SSE5 generate all possible integer
5547         comparisons.
5548         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
5549         says ignore whether the last reference is a memory operand.
5550
5551 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
5552             Paolo Bonzini <bonzini at gnu dot org>
5553
5554         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
5555         shift patterns.
5556
5557         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
5558         (vlshr<mode>3): Rename from vlshr<mode>3.
5559         (vashr<mode>3): Rename from vashr<mode>3.
5560         (mulv4sf3): Change the names of vector shift patterns.
5561         (mulv4si3): Ditto.
5562         (negv4sf2): Ditt.
5563
5564         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
5565         shift insns.
5566
5567         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
5568         (SI_SHLHI): Ditto.
5569         (SI_SHL): Ditto.
5570         (SI_SHLI): Ditto.
5571         (SI_ROTH): Ditto.
5572         (SI_ROTHI): Ditto.
5573         (SI_ROT): Ditto.
5574         (SI_ROTI): Ditto.
5575         (SPU_RL_0): Ditto.
5576         (SPU_RL_1): Ditto.
5577         (SPU_RL_2): Ditto.
5578         (SPU_RL_3): Ditto.
5579         (SPU_RL_4): Ditto.
5580         (SPU_RL_5): Ditto.
5581         (SPU_RL_6): Ditto.
5582         (SPU_RL_7): Ditto.
5583         (SPU_SL_0): Ditto.
5584         (SPU_SL_1): Ditto.
5585         (SPU_SL_2): Ditto.
5586         (SPU_SL_3): Ditto.
5587         (SPU_SL_4): Ditto.
5588         (SPU_SL_5): Ditto.
5589         (SPU_SL_6): Ditto.
5590         (SPU_SL_7): Ditto.
5591
5592         * config/spu/spu.md (v): New iterator macro to add v for vector types.
5593         (floatunssidf2_internal): Change vector/vector shift names.
5594         (floatunsdidf2_internal): Ditto.
5595         (mulv8hi3): Ditto.
5596         (ashrdi3): Ditto.
5597         (ashrti3): Ditto.
5598         (cgt_df): Ditto.
5599         (cgt_v2df): Ditto.
5600         (dftsv): Ditto.
5601         (vashl<mode>3): Rename from ashl<mode>3.
5602         (vashr<mode>3): Rename from ashr<mode>3.
5603         (vlshr<mode>3): Rename from lshr<mode>3.
5604         (vrotl<mode>3): Rename from rotl<mode>3.
5605
5606 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
5607
5608         PR target/36224
5609         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
5610         multiply gives the wrong value when doing widening multiplies.
5611         (vec_widen_smult_lo_v4si): Ditto.
5612
5613 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
5614
5615         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
5616         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
5617         emit_library_call_value. 
5618         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
5619         * tree.h (ECF_LIBCALL_BLOCK): Removed.
5620         * calls.c (initialize_argument_information, precompute_arguments, 
5621         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
5622         (precompute_arguments): Removed flags parameter.
5623         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
5624         
5625 2008-05-14  Richard Guenther  <rguenther@suse.de>
5626
5627         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
5628         Make sure to register the store if the use is a PHI_NODE.
5629
5630 2008-05-14  Olivier Hainque  <hainque@adacore.com>
5631
5632         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
5633         memory if the component is to be referenced in BLKmode according
5634         to get_inner_reference.
5635
5636 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
5637
5638         * calls.c (emit_library_call_value_1): Restore code clearing
5639         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
5640
5641 2008-05-14  Olivier Hainque  <hainque@adacore.com>
5642             Nicolas Roche  <roche@adacore.com>
5643
5644         * configure.ac: Add support for a "gcc_subdir" variable in
5645         config-lang.in, to denote a subdirectory where the language/GCC
5646         integration files are to be found.
5647         * configure: Regenerate.
5648
5649 2008-05-14  Ira Rosen  <irar@il.ibm.com>
5650
5651         PR tree-optimization/36098
5652         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
5653         value for the first load in the group in case of a gap.
5654         (vect_build_slp_tree): Check that there are no gaps in loads.
5655
5656 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
5657
5658         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
5659         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
5660         expand_copysign_bit, ): Change call to emit_no_conflict_block to
5661         emit_insn and remove unneeded code to construct extra args.
5662         (emit_no_conflict_block): Removed.
5663         * optabls.h: (emit_no_conflict_block): Removed.
5664         * cse.c (cse_extended_basic_block): Remove search for
5665         REG_NO_CONFLICT note.
5666         * global.c: Removed incorrect comment added in revision 117.
5667         * expr.c (convert_move): Change call to emit_no_conflict_block to
5668         emit_insn.
5669         * recog.c: Change comments so that they do not mention
5670         REG_NO_CONFLICT.
5671         * local_alloc.c (combine_regs): Removed last parameter.
5672         (no_conflict_p): Removed.
5673         (block_alloc): Removed note, no_conflict_combined_regno and set
5674         local vars. Removed all code to process REG_NO_CONFLICT blocks.
5675         (combine_regs): Removed already_dead and code to look for
5676         REG_NO_CONFLICT notes.
5677         * lower_subreg (remove_retval_note): Removed code to look for
5678         REG_NO_CONFLICT block.
5679         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
5680         (resolve_clobber): Remove code to process libcalls that have
5681         REG_NO_CONFLICT notes.
5682         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
5683         case.
5684         * combine.c (can_combine_p, distribute_notes):  Removed
5685         REG_NO_CONFLICT case.
5686         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
5687         to emit_insns.
5688         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
5689         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
5690         Ditto.
5691         * reg-notes.def (NO_CONFLICT): Removed.
5692
5693 2008-05-14  David S. Miller  <davem@davemloft.net>
5694
5695         * config/sparc/sparc.c (sparc_profile_hook): If
5696         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
5697         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
5698         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
5699
5700 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
5701
5702         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
5703
5704 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
5705
5706         PR target/36222
5707         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
5708         and op1 expansion before vector concat to have less live pseudos.
5709
5710 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
5711
5712         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
5713         ix86_expand_vector_set if supported.
5714
5715 2008-05-13  Diego Novillo  <dnovillo@google.com>
5716             Kenneth Zadeck  <zadeck@naturalbridge.com>
5717
5718         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
5719
5720         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
5721         phinodes_print_statistics, init_ssanames, fini_ssanames,
5722         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
5723         release_ssa_name, release_defs, replace_ssa_name_symbol,
5724         ssanames_print_statistics): Move ...
5725         * tree-flow.h: ... here.
5726         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
5727         Use FN instead of cfun.
5728         (make_ssa_name_fn): Rename from make_ssa_name.
5729         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
5730         * tree-flow-inline.h (make_ssa_name): Move from
5731         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
5732         * omp-low.c (expand_omp_parallel):
5733         * tree-flow-inline.h (redirect_edge_var_map_result):
5734         * tree-ssa.c (init_tree_ssa): Add argument FN.
5735         Use it instead of cfun.  Update all users.
5736
5737 2008-05-13  Tom Tromey  <tromey@redhat.com>
5738
5739         PR preprocessor/22168:
5740         * doc/cpp.texi (Top): Update menu.
5741         (Alternatives to Wrapper #ifndef): New node.
5742         (Other Directives): Document deprecation.
5743         (Obsolete Features): Remove menu.
5744         (Assertions): Merge node into Obsolete Features.
5745         (Obsolete once-only headers): Move earlier; rename to Alternatives
5746         to Wrapper #ifndef.
5747         * doc/cppopts.texi: Update.
5748         * c.opt (Wdeprecated): Enable for C and ObjC.
5749         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
5750         (C++ Dialect Options): Move -Wno-deprecated from here to...
5751         (Warning Options): ... here.
5752
5753 2008-05-13  Richard Guenther  <rguenther@suse.de>
5754
5755         PR middle-end/36227
5756         * fold-const.c (fold_sign_changed_comparison): Do not allow
5757         changes in pointer-ness.
5758
5759 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
5760
5761         PR target/24713
5762         * config/sh/sh.c (sh_expand_prologue): Don't clear
5763         RTX_FRAME_RELATED_P for push insns.
5764
5765 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
5766
5767         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
5768
5769 2008-05-12  Anatoly Sokolov <aesok@post.ru>
5770
5771         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
5772         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
5773         Use 'machine->is_leaf' instead of 'leaf_func_p'.
5774
5775 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
5776
5777         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
5778         (*vec_concatv4sf_sse): This.
5779         (*sse2_concatv2si): Renamed to ...
5780         (*vec_concatv2si_sse2): This.
5781         (*sse1_concatv2si): Renamed to ...
5782         (*vec_concatv2si_sse): This.
5783         (*vec_concatv2di_rex): Renamed to ...
5784         (*vec_concatv2di_rex64): This.
5785         (*vec_concatv2si_sse4_1): New.
5786         (*vec_concatv2di_rex64_sse4_1): Likewise.
5787
5788 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
5789
5790         PR rtl-optimization/36111
5791         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
5792         that was created for swappable operands.
5793
5794 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
5795
5796         PR ada/36001
5797         * Makefile.in: Substitute GNATMAKE and GNATBIND.
5798         * configure.ac: Add call to ACX_PROG_GNAT.
5799
5800 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
5801
5802         * optc-gen.awk: Fix comment typo.
5803
5804 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
5805
5806         * pretty-print.c (pp_integer_with_precision): Use
5807         HOST_LONG_LONG_FORMAT.
5808
5809 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
5810
5811         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
5812                 
5813 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5814
5815         * config/i386/i386.c (bdesc_ptest): Removed.
5816         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
5817         (bdesc_args): Add __builtin_ia32_ptestz128,
5818         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
5819         (ix86_init_mmx_sse_builtins): Updated.
5820         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
5821         (ix86_expand_builtin): Updated.
5822
5823 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
5824
5825         * tree-cfg.c (valid_fixed_convert_types_p): New function.
5826         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
5827
5828 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
5829
5830         * value-prof.c (interesting_stringop_to_profile): Do not
5831         return early for BUILT_IN_MEMPCPY.
5832
5833 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
5834
5835         * calls.c (expand_call): Don't use callgraph to increase
5836         preferred_stack_boundary.
5837
5838         * cgraph.h (cgraph_rtl_info): Use unsigned on
5839         preferred_incoming_stack_boundary.
5840
5841         * final.c (rest_of_clean_state): Use unsigned on
5842         preferred_stack_boundary.
5843
5844 2008-05-09  Tom Tromey  <tromey@redhat.com>
5845
5846         PR preprocessor/22231:
5847         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
5848         proceeding.
5849
5850 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
5851
5852         PR tree-optimization/36129
5853         * tree-ssa-ccp.c: Include value-prof.h.
5854         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
5855         built-in function was folded to a constant.
5856         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
5857
5858 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
5859             Sebastian Pop  <sebastian.pop@amd.com>
5860
5861         * tree-scalar-evolution.c: Document instantiate_scev.
5862         (instantiate_parameters_1): Renamed instantiate_scev_1.
5863         Don't use the same loop for instantiation_loop and evolution_loop.
5864         (instantiate_scev): New.
5865         (instantiate_parameters): Moved...
5866         (resolve_mixers): Update call to instantiate_scev_1 to pass the
5867         same loop twice.  Maintains the semantics for this function.
5868         * tree-scalar-evolution.h (instantiate_scev): Declare.
5869         (instantiate_parameters): ...here.  Now static inline.
5870         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
5871         instead of resolve_mixers.
5872
5873 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
5874
5875         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
5876
5877 2008-05-09  Tomas Bily  <tbily@suse.cz>
5878
5879         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
5880         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
5881         * tree-ssa-structalias.c (get_constraint_for): Likewise.
5882         * c-common.c (c_common_truthvalue_conversion): Likewise.
5883         * tree-object-size.c (compute_object_offset): Likewise.
5884         * tree-inline.c (estimate_num_insns_1): Likewise.
5885         * varasm.c (const_hash_1, compare_constant, copy_constant)
5886         (compute_reloc_for_constant, output_addressed_constants)
5887         (initializer_constant_valid_p): Likewise.
5888         * c-omp.c (check_omp_for_incr_expr): Likewise.
5889         * gimplify.c (gimplify_expr): Likewise.
5890         * c-typeck.c (c_finish_return): Likewise.
5891         * tree-vectorizer.c (supportable_widening_operation)
5892         (supportable_narrowing_operation): Likewise.
5893         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
5894         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
5895         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
5896         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
5897         (descr_info_loc): Likewise.
5898         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
5899         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
5900         (fold_unary): Likewise.
5901         * builtins.c (get_pointer_alignment): Likewise.
5902         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
5903         (instantiate_parameters_1): Likewise.
5904         * tree.c (expr_align, stabilize_reference): Likewise.
5905         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
5906         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
5907         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
5908         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
5909         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
5910         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
5911         Likewise.
5912         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
5913         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
5914         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
5915         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
5916         (forward_propagate_comparison)
5917         (tree_ssa_forward_propagate_single_use_vars): Likewise.
5918         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
5919         * emit-rtl.c (component_ref_for_mem_expr)
5920         (set_mem_attributes_minus_bitpos): Likewise.
5921         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
5922         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
5923         Likewise.
5924         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
5925         (build_function_call, pointer_diff, build_compound_expr)
5926         (c_finish_return): Likewise.
5927         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
5928         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
5929         Likewise.
5930         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
5931         * expr.c (is_aligning_offset): Likewise.
5932         * tree-ssa-alias.c (is_escape_site): Likewise.
5933         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
5934         (check_all_va_list_escapes): Likewise.
5935         * tree-ssa-loop-ivopts.c (determine_base_object)
5936         (determine_common_wider_type): Likewise.
5937         * dojump.c (do_jump): Likewise.
5938         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
5939         * tree-gimple.c (is_gimple_cast): Likewise.
5940         * fold-const.c (decode_field_reference, )
5941         (fold_sign_changed_comparison, fold_unary, fold_comparison)
5942         (fold_binary): Likewise.
5943         * tree-ssa-alias-warnings.c (find_alias_site_helper)
5944         (already_warned_in_frontend_p): Likewise.
5945         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
5946         * tree.c (really_constant_p, get_unwidened): Likewise.
5947         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
5948         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
5949         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
5950         Likewise.
5951         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
5952         CONVERT_EXPR_P.
5953         (CONVERT_EXPR_P): Define.
5954         (CASE_CONVERT): Define.
5955         
5956 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
5957
5958         PR middle-end/36117
5959         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
5960         (delete_unmarked_insns): When deleting a call, call
5961         delete_unreachable_blocks.
5962         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
5963         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
5964
5965 2008-05-08  Richard Guenther  <rguenther@suse.de>
5966
5967         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
5968         (-ftree-salias): Likewise.
5969         (salias-max-implicit-fields): Remove param documentation.
5970         (salias-max-array-elements): Likewise.
5971         * tree-pass.h (pass_create_structure_vars): Remove.
5972         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
5973         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
5974         * tree-ssa-alias.c (create_structure_vars): Remove.
5975         (gate_structure_vars): Likewise.
5976         (pass_create_structure_vars): Likewise.
5977         (gate_build_alias): Likewise.
5978         (pass_build_alias): Adjust to run always and dump the function.
5979         * common.opt (ftree-salias): Hide.
5980         * passes.c (init_optimization_passes): Remove
5981         pass_create_structure_vars, adjust comment.
5982         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
5983         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
5984         * opts.c (decode_options): Do not set flag_tree_salias.
5985         (common_handle_option): Add OPT_ftree_salias to the backward
5986         compatibility section.
5987
5988 2008-05-08  Richard Guenther  <rguenther@suse.de>
5989
5990         * tree-flow-inline.h (var_can_have_subvars): Move ...
5991         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
5992         * tree-flow.h (var_can_have_subvars): Remove.
5993         (push_fields_onto_fieldstack): Remove.
5994         (sort_fieldstack): Likewise.
5995         (struct fieldoff): Move ...
5996         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
5997         alias_set and base_for_components fields.
5998         (sort_fieldstack): Make static.
5999         (push_fields_onto_fieldstack): Likewise.  Remove code that
6000         handles anything but RECORD_TYPEs.  Remove alias_set and
6001         base_for_components handling.
6002         (create_variable_info_for): Adjust.
6003
6004 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
6005
6006         * common.opt (Wframe-larger-than=): Shorten the help message
6007         to one line.
6008         * doc/invoke.texi (Wframe-larger-than=): Add more description.
6009
6010 2008-05-08  Rafael Espindola  <espindola@google.com>
6011
6012         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
6013         trap.
6014         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
6015         trap and that both operands are gimple values.
6016         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
6017         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
6018         is a fp operation.
6019
6020 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
6021
6022         * read-rtl.c (join_c_conditions): Return the first string if the
6023         two strings are equal.
6024
6025 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
6026
6027         * gensupport.h (pred_data): Add a "num_codes" field.
6028         (add_predicate_code): Declare.
6029         * gensupport.c (add_predicate_code): New function.
6030         (std_pred_table): Add an "allows_const_p" field.
6031         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
6032         Remove the (incomplete) list of such codes from the codes field.
6033         (init_predicate_table): Use add_predicate_code.  Add all
6034         RTX_CONST_OBJs if allows_const_p is true.
6035         * genrecog.c (process_define_predicate): Use add_predicate_code.
6036
6037 2008-05-08  David Daney  <ddaney@avtrex.com>
6038             Richard Sandiford  <rsandifo@nildram.co.uk>
6039         
6040         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
6041         special case of constant zero operands.
6042         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
6043         old and new values.  Special case constant zero values.
6044         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
6045         fails.
6046         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
6047         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
6048
6049 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
6050
6051         PR target/36090
6052         * simplify-rtx.c (simplify_plus_minus): Create CONST of
6053         similar RTX_CONST_OBJ before CONST_INT.
6054
6055 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
6056
6057         * stmt.c (expand_stack_restore): Change sa mode if needed.
6058
6059 2008-05-08  Richard Guenther  <rguenther@suse.de>
6060
6061         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
6062         return type to bool.
6063         (ix86_sol10_return_in_memory): Likewise.
6064         (ix86_i386elf_return_in_memory): Likewise.
6065         (ix86_i386interix_return_in_memory): Likewise.
6066         * config/i386/i386.c (ix86_return_in_memory): Likewise.
6067         (ix86_sol10_return_in_memory): Likewise.
6068         (ix86_i386elf_return_in_memory): Likewise.
6069         (ix86_i386interix_return_in_memory): Likewise.
6070
6071 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
6072
6073         PR bootstrap/36180
6074         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
6075         fndecl argument.
6076         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
6077         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
6078         declared in front.
6079
6080 2008-05-08  Richard Guenther  <rguenther@suse.de>
6081
6082         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
6083         * tree-data-ref.h (struct dr_alias): Remove subvars field.
6084         (DR_SUBVARS): Remove.
6085         * tree-dfa.c (dump_subvars_for): Remove.
6086         (debug_subvars_for): Likewise.
6087         (dump_variable): Do not dump subvars.
6088         (remove_referenced_var): Do not remove subvars.
6089         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
6090         (lookup_subvars_for_var): Remove.
6091         (get_subvars_for_var): Likewise.
6092         (get_subvars_at): Likewise.
6093         (get_first_overlapping_subvar): Likewise.
6094         (overlap_subvar): Likewise.
6095         * tree-flow.h (subvar_t): Remove.
6096         (struct var_ann_d): Remove subvars field.
6097         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
6098         argument.  Remove special handling of SFTs.
6099         (compute_tag_properties): Likewise.
6100         (set_initial_properties): Likewise.
6101         (compute_call_clobbered): Likewise.
6102         (count_mem_refs): Likewise.
6103         (compute_memory_partitions): Likewise.
6104         (compute_flow_insensitive_aliasing): Likewise.
6105         (setup_pointers_and_addressables): Likewise.
6106         (new_type_alias): Likewise.
6107         (struct used_part): Remove.
6108         (used_portions): Likewise.
6109         (struct used_part_map): Likewise.
6110         (used_part_map_eq): Likewise.
6111         (used_part_map_hash): Likewise.
6112         (free_used_part_map): Likewise.
6113         (up_lookup): Likewise.
6114         (up_insert): Likewise.
6115         (get_or_create_used_part_for): Likewise.
6116         (create_sft): Likewise.
6117         (create_overlap_variables_for): Likewise.
6118         (find_used_portions): Likewise.
6119         (create_structure_vars): Likewise.
6120         * tree.def (STRUCT_FIELD_TAG): Remove.
6121         * tree.h (MTAG_P): Adjust.
6122         (struct tree_memory_tag): Remove base_for_components and
6123         unpartitionable flags.
6124         (struct tree_struct_field_tag): Remove.
6125         (SFT_PARENT_VAR): Likewise.
6126         (SFT_OFFSET): Likewise.
6127         (SFT_SIZE): Likewise.
6128         (SFT_NONADDRESSABLE_P): Likewise.
6129         (SFT_ALIAS_SET): Likewise.
6130         (SFT_UNPARTITIONABLE_P): Likewise.
6131         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
6132         (union tree_node): Remove sft field.
6133         * alias.c (get_alias_set): Remove special handling of SFTs.
6134         * print-tree.c (print_node): Remove handling of SFTs.
6135         * tree-dump.c (dequeue_and_dump): Likewise.
6136         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
6137         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
6138         * tree-predcom.c (set_alias_info): Do not set subvars.
6139         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
6140         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
6141         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
6142         (add_vars_for_offset): Remove.
6143         (add_virtual_operand): Remove special handling of SFTs.
6144         (add_call_clobber_ops): Likewise.
6145         (add_call_read_ops): Likewise.
6146         (get_asm_expr_operands): Likewise.
6147         (get_modify_stmt_operands): Likewise.
6148         (get_expr_operands): Likewise.
6149         (add_to_addressable_set): Likewise.
6150         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
6151         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
6152         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
6153         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
6154         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
6155         (tree_node_structure): Likewise.
6156         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
6157         handling of SFTs.
6158         (find_what_p_points_to): Likewise.
6159
6160 2008-05-08  Sa Liu  <saliu@de.ibm.com>
6161
6162         * config/spu/spu.md: Fixed subti3 pattern.
6163
6164 2008-05-08  Richard Guenther  <rguenther@suse.de>
6165
6166         PR middle-end/36154
6167         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
6168         sure to create a representative for trailing arrays for PTA.
6169
6170 2008-05-08  Richard Guenther  <rguenther@suse.de>
6171
6172         PR middle-end/36172
6173         * fold-const.c (operand_equal_p): Two objects which types
6174         differ in pointerness are not equal.
6175
6176 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
6177
6178         * calls.c (compute_argument_block_size): Add argument tree fndecl.
6179         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
6180         (emit_library_call_value_1): Add new variable fndecl initialized by
6181         NULL_TREE. It should be the decl type of orgfun, but this information
6182         seems not to be available here, so it uses the default calling abi.
6183         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
6184         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
6185         by TARGET_RETURN_IN_MEMORY.
6186         * config/i386/i386-interix.h: Likewise.
6187         * config/i386/i386.h: Likewise.
6188         * config/i386/i386elf.h: Likewise.
6189         * config/i386/ptx4-i.h: Likewise.
6190         * config/i386/sol2-10.h: Likewise.
6191         * config/i386/sysv4.h: Likewise.
6192         * config/i386/vx-common.h: Likewise.
6193         * config/cris/cris.h: Removed #if 0 clause.
6194         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
6195         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
6196         argument.
6197         (ix86_sol10_return_in_memory): Likewise.
6198         (ix86_i386elf_return_in_memory): New.
6199         (ix86_i386interix_return_in_memory): New.
6200         * config/mt/mt-protos.h (mt_return_in_memory): New.
6201         * config/mt/mt.c: Likewise.
6202         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
6203         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
6204         * config/bfin/bfin.h: Likewise.
6205         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
6206         argument.
6207         * config/bfin/bfin.c: Likewise.
6208         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
6209         * config/alpha/unicosmk.h: Likewise.
6210         * config/i386/cygming.h: Likewise.
6211         * config/iq2000/iq2000.h: Likewise.
6212         * config/mips/mips.h: Likewise.
6213         * config/mn10300/mn10300.h: Likewise.
6214         * config/rs6000/rs6000.h: Likewise.
6215         * config/score/score.h: Likewise.
6216         * config/spu/spu.h: Likewise.
6217         * config/v850/v850.h: Likewise.
6218         * defaults.h: Likewise.
6219         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
6220         * expr.c (emit_block_move): Adjust use of
6221         OUTGOING_REG_PARM_STACK_SPACE.
6222         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
6223         OUTGOING_REG_PARM_STACK_SPACE.
6224         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
6225
6226 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
6227
6228         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
6229         on OMP_RETURN for OMP_FOR.
6230
6231         PR debug/35896
6232         * dwarf2out.c (dw_expand_expr, common_check): Removed.
6233         (fortran_common): New function.
6234         (gen_variable_die): Call fortran_common instead of common_check,
6235         adjust for it returning tree instead of rtx.  Formatting.
6236
6237 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
6238
6239         PR rtl/7335
6240         PR rtl/33826
6241         * see.c (see_copy_insn): Copy new pure const attributes for new call.
6242         * c-decl.c (merge_decls): Ditto.
6243         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
6244         to RTL_CONST_OR_PURE_CALL_P.
6245         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
6246         Initialized DECL_LOOPING_CONST_PURE.
6247         (process_call_operands): Set tree_side_effects properly.
6248         * tree.h (TREE_READONLY_DECL_P): Removed.
6249         (DECL_IS_PURE): Renamed to DECL_PURE_P.
6250         (DECL_LOOPING_OR_CONST_P): New macro.
6251         (struct tree_function_decl): Added looping_const_or_pure_p.
6252         (ECF_*) Renumbered.
6253         (ECF_LOOPING_OR_CONST_P): New macro.
6254         * rtlanal.c (pure_const_p): Removed.
6255         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
6256         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
6257         to RTL_CONST_CALL_P.
6258         * ipa-pure-const.c (pure_const_state_e): Added looping field.
6259         (check_decl, check_tree, check_call, scan_function): Initialize
6260         looping.
6261         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
6262         (static_execute): Set looping true for recursive functions.
6263         Undo setting state to IPA_NEITHER for recursive functions.
6264         * cse.c (cse_insn): 
6265         * ifcvt.c (noce_can_store_speculate_p): Changed
6266         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
6267         RTL_CONST_OR_PURE_CALL_P.
6268         * dse.c (scan_insn): Ditto.
6269         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
6270         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
6271         RTL_CONST_OR_PURE_CALL_P.
6272         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
6273         pure_call_p to RTL_CONST_CALL_P.
6274         * gimplify.c (gimplify_call_expr): Clear side effects for
6275         non-looping pure and constant calls.
6276         * calls.c (emit_call_1): Set rtl flags from ecf flags.
6277         (flags_from_decl_or_type): Set ecf flags from decl flags.
6278         (initialize_argument_information): Turn off
6279         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
6280         Change const to pure if callee_copies is true rather than just
6281         turning off const.
6282         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
6283         way of marking pure calls.
6284         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
6285         Remove hack that was supposed to fix pr7335 and remove old
6286         way of marking pure calls.
6287         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
6288         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
6289         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
6290         RTL_CONST_OR_PURE_CALL_P.
6291         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
6292         * loop-invariant.c (find_exits, find_invariant_bb): Changed
6293         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
6294         * sched-deps.c (schedule_analyze): Ditto.
6295         * rtl.h (struct rtx_def): Use call field, unchanging field, and
6296         return_val field of calls to represent pure and const function info.
6297         (CONST_OR_PURE_CALL_P): Deleted macro.
6298         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
6299         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
6300         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
6301         TREE_READONLY.
6302         * tree-optimize.c (execute_fixup_cfg): Added test for
6303         ECF_LOOPING_CONST_OR_PURE.
6304         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
6305         DECL_PURE_P.
6306         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
6307         effects for looping pure or const calls.
6308         (verify_gimple_expr): Added verification code. 
6309         * config/alpha/alpha.c (alpha_legitimize_address,
6310         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
6311         RTL_CONST_CALL_P.
6312         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
6313         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
6314         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
6315         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
6316         RTL_CONST_OR_PURE_CALL_P.
6317         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
6318         and const calls to be deleted.
6319
6320 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
6321
6322         PR target/35714
6323         * config/i386/mmx.md (mmx_subv2sf3): New expander.
6324         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
6325         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
6326         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
6327         to handle nonimmediate operands.
6328         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
6329         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
6330         to handle nonimmediate operands.
6331         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
6332         (mmx_pmulhrwv4hi3): New expander.  Use
6333         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6334         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
6335         (sse2_umulv1siv1di3): New expander.  Use
6336         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6337         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
6338         (mmx_eq<mode>3): New expander.  Use
6339         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6340         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
6341         (mmx_uavgv8qi3): New expander.  Use
6342         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6343         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
6344         (mmx_uavgv4hi3): New expander.  Use
6345         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6346
6347         * config/i386/sse.md
6348         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
6349         to handle nonimmediate operands.
6350         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
6351         to handle nonimmediate operands.
6352         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
6353         to handle nonimmediate operands.
6354         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
6355         to handle nonimmediate operands.
6356         (sse2_unpckhpd_exp): New expander.  Use
6357         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6358         (sse2_unpcklpd_exp): New expander.  Use
6359         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6360         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
6361         to handle nonimmediate operands.
6362         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
6363         to handle nonimmediate operands.
6364         (*sse2_<plusminus_insn><mode>3): Rename from
6365         sse2_<plusminus_insn><mode>3 insn pattern.
6366         (sse2_<plusminus_insn><mode>3): New expander.  Use
6367         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6368         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
6369         (sse2_umulv2siv2di3): New expander.  Use
6370         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6371         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
6372         (sse4_1_mulv2siv2di3): New expander.  Use
6373         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6374         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
6375         (sse2_pmaddwd): New expander.  Use
6376         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6377         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
6378         (sse2_eq<mode>3): New expander.  Use
6379         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6380         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
6381         (sse4_1_eqv2di3): New expander.  Use
6382         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6383         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
6384         (sse2_uavgv16qi3): New expander.  Use
6385         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6386         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
6387         (sse2_uavgv16qi3): New expander.  Use
6388         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6389         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
6390         (sse2_uavgv8hi3): New expander.  Use
6391         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6392         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
6393         (ssse3_pmulhrswv8hi3): New expander.  Use
6394         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6395         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
6396         (ssse3_pmulhrswv4hi3): New expander.  Use
6397         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6398
6399         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
6400         (<sse>_vmmul<mode>3): Ditto.
6401         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
6402         (divv2df3): Ditto.
6403         (ssse3_pmaddubsw128): Use register_operand for operand 1.
6404         (ssse3_pmaddubsw): Ditto.
6405
6406         * config/i386/i386.c (struct_builtin_description)
6407         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
6408         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
6409         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
6410         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
6411         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
6412         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
6413         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
6414         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
6415         (ix86_fixup_binary_operands): Assert that src1
6416         and src2 must have the same mode when swapped.
6417         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
6418         and ix86_binary_operator_ok.  Do not force operands in registers
6419         when optimizing.
6420
6421 2008-05-07  Jan Hubicka  <jh@suse.cz>
6422
6423         * cgraph.c (dump_cgraph_node): Update.
6424         * cgraph.h (cgraph_local_info): Break out inline summary.
6425         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
6426         hook.
6427         * ipa-inline (inline_summary): New accestor function.
6428         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
6429         cgraph_decide_inlining, compute_inline_parameters): Update.
6430         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
6431
6432 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
6433
6434         Cleanup ColdFire scheduling support and add V4 pipeline model.
6435
6436         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
6437         (define_attr cpu): Add cfv4 value.
6438         (define_attr type, define_attr type1): Merge into a single 'type'
6439         attribute.  Update all uses.
6440         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
6441         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
6442         Update all uses.
6443         (define_attr opx_mem, define_attr opy_mem): Remove.
6444         (define_attr op_mem): Clean up, update comment.
6445         (define_attr size): Use specific values instead of general int.
6446         (define_attr guess, define_attr split): Remove.  Update all uses.
6447         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
6448         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
6449         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
6450         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
6451         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
6452         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
6453         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
6454         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
6455         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
6456         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
6457         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
6458         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
6459         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
6460         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
6461         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
6462         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
6463         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
6464         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
6465         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
6466         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
6467         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
6468         Update or set attributes.
6469         (stack_tie): New fake instruction.
6470
6471         * config/m68k/m68k.h (TUNE_CFV4): New macro.
6472         (m68k_sched_attr_size): Update declaration.
6473         (m68k_sched_attr_type2): Remove.
6474         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
6475         Declare new bypass predicates.
6476
6477         * config/m68k/m68k.c (m68k_sched_issue_rate,
6478         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
6479         implementations.
6480         (TARGET_SCHED_ISSUE_RATE,
6481         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
6482         (override_options): Handle scheduling for ColdFire V4 core.
6483         (m68k_expand_prologue): Emit stack_tie.
6484         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
6485         'OP_TYPE_FPN'.  Update all uses.
6486         (sched_guess_p): Remove.
6487         (sched_address_type): Handle symbolic addresses.
6488         (sched_get_operand): New static function.
6489         (sched_operand_type): Merge into sched_attr_op_type.
6490         (sched_attr_op_type): Handle FP registers, handle quick constants,
6491         update.
6492         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
6493         (m68k_sched_attr_size): Update.  Move logic to ...
6494         (sched_get_attr_size_int): New static function.
6495         (sched_get_opxy_mem_type): New static function.
6496         (m68k_sched_attr_op_mem): Update.
6497         (m68k_sched_attr_type2): Remove.
6498         (sched_cfv4_bypass_data): New static variable.
6499         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
6500         (m68k_sched_issue_rate): Implement scheduler hook.
6501         (struct _sched_ib: enabled_p): New field.
6502         (m68k_sched_variable_issue): Update.  Handle V4.
6503         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
6504         sched_dump_class_func_t, sched_dump_split_class,
6505         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
6506         sched_dump_dfa_class, m68k_sched_dump): Remove.
6507         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
6508         hook.
6509         (m68k_sched_init_global): Remove statisctics dumping, introduce
6510         sanity check that all instructions have pipeline reservations.  Handle
6511         ColdFire V4 core.
6512         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
6513         Handle ColdFire V4 core.
6514         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
6515         New static functions.
6516         (m68k_sched_address_bypass_p): New bypass predicate.
6517         (sched_get_indexed_address_scale): New static function.
6518         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
6519
6520         * cf.md: Update comments.
6521         (define_attr type2): Remove.  Use 'type' attribute instead.
6522         Update all uses.
6523         (cf_ib): Rename to cfv123_ib.  Update all uses.
6524         (cf_oep): Rename to cfv123_oep.  Update all uses.
6525         (cf_chr): Rename to cfv123_chr.  Update all uses.
6526         (cf_mem): Rename to cfv123_mem.  Update all uses.
6527         (cf_mac): Move to more appropriate place.
6528         (cfv123_guess): New automaton and cpu_unit.
6529         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
6530         Update uses of 'size' attribute.  Handle before reload scheduling.
6531         (cfv123_guess): New dummy reservation for unhandled instructions.
6532         (cfv4_*): Pipeline description of ColdFire V4 core.
6533         (ignore): New reservation to handle 'ignore' type.
6534
6535 2008-05-07  Ian Lance Taylor  <iant@google.com>
6536
6537         PR middle-end/36013
6538         * gimplify.c (find_single_pointer_decl_1): Don't look through
6539         indirections.
6540         (find_single_pointer_decl): Adjust comments.
6541
6542 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
6543
6544         PR middle-end/36137
6545         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
6546         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
6547
6548         PR middle-end/36106
6549         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
6550         integral type rather than floating point, then VIEW_CONVERT_EXPR
6551         to the floating point type.
6552
6553 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
6554
6555         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
6556         TFmode op0 to register.
6557
6558 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
6559
6560         * c-decl.c (grokdeclarator): Comment typo.
6561
6562 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
6563
6564         * tree-flow.h: Remove prototype for computed_goto_p.
6565         * tree-cfg.c (computed_goto_p): Make static.
6566
6567 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
6568
6569         PR target/35657
6570         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
6571         (contains_aligned_value_p): This.  Handle _Decimal128.
6572         (ix86_function_arg_boundary): Only align _Decimal128 to its
6573         natural boundary and handle it properly.
6574
6575 2008-05-06  Martin Jambor  <mjambor@suse.cz>
6576
6577         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
6578         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
6579         (ipcp_method_set_orig_node): Removed.
6580         (ipcp_cval_get_cvalue_type): Removed.
6581         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
6582         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
6583         (ipcp_cval_set_cvalue_type): Removed.
6584         (ipcp_cval_get_cvalue): Removed.
6585         (ipcp_cval_set_cvalue): Removed.
6586         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
6587         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
6588         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
6589         (ipcp_cval_meet): Renamed to ipa_lattice_meet
6590         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
6591         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
6592         (ipcp_get_ith_lattice): Changed parameters.
6593         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
6594         (ipcp_lattice_from_jfunc): Changed parameters.
6595         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
6596         (ipcp_method_cval_print): Added temporary variable info.
6597         (ipcp_redirect): Removed already unused local variable caller.
6598         (ipcp_redirect): New temporary variable orig_callee_info
6599         (ipcp_redirect): Removed newly unused local variable callee.
6600         (ipcp_redirect): Removed (a bit confusing) local variable type.
6601         (ipcp_insert_stage): Added local variable info.
6602         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
6603         renamed too
6604         (ipcp_formal_create): Removed.
6605         (ipcp_method_cval_set): Removed.
6606         (ipcp_propagate_stage): Renamed lattice variables.
6607         (ipcp_method_cval_set_cvalue_type): Removed.
6608         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
6609         (ipcp_print_all_lattices): Changed printed strings to refer to 
6610         lattices rather than cvals.
6611         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
6612         (ipcp_propagate_const): Changed formal parameters.
6613         (build_const_val): Changed formal parameters.
6614         (ipcp_insert_stage): Removed useless variable cvalue
6615         (build_const_val): Changed formal parameters.
6616         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
6617         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
6618         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
6619         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
6620         (ipcp_print_func_profile_counts): Changed string from "method" to 
6621         "function"
6622         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
6623         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
6624         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
6625         (ipcp_structures_print): Renamed to ipcp_print_all_structures
6626         (ipcp_profile_print): Renamed to ipcp_print_profile_data
6627         (ipcp_lat_is_const): Changed parameters and made inline.
6628         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
6629         (ipcp_redirect): Renamed to ipcp_need_redirect_p
6630         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
6631         the predicate condition directly
6632         (ipcp_propagate_stage): Added local variable args. Removed local
6633         variable callee.  (Both are mere code simplifications.)
6634         (ipcp_method_dont_insert_const): Renamed to
6635         ipcp_node_not_modifiable_p.
6636         (ipcp_node_not_modifiable_p): Made inline.
6637         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
6638         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
6639         (ipcp_print_all_lattices): Removed variable cvalue
6640         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
6641         Updated comments.
6642
6643 2008-05-06  Olivier Hainque  <hainque@adacore.com>
6644
6645         * tree-sra.c (try_instantiate_multiple_fields): Early return
6646         if field has POINTER_TYPE.
6647
6648 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
6649
6650         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
6651         by using 'q' specifier for instruction.
6652         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
6653
6654 2008-05-06  Anatoly Sokolov <aesok@post.ru>
6655
6656         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
6657         Change mode of zero_extract from QImode to HImode.
6658         (sign bit tests peepholes): (Ditto.).
6659
6660 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
6661
6662         * config/i386/mmx.md: Remove double backslashes from asm templates.
6663         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
6664         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
6665         to handle nonimmediate operands.
6666         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
6667         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
6668         to handle nonimmediate operands.
6669         (*mmx_<code>v2sf3_finite): New insn pattern.
6670         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
6671         (mmx_<code>v2sf3): New expander.  Use
6672         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6673         (mmx_<plusminus_insn><mode>3): New expander.  Use
6674         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6675         (*mmx_<plusminus_insn><mode>3): New insn pattern.
6676         (mmx_add<mode>3): Removed.
6677         (mmx_ssadd<mode>3): Ditto.
6678         (mmx_usadd<mode>3): Ditto.
6679         (mmx_sub<mode>3): Ditto.
6680         (mmx_sssub<mode>3): Ditto.
6681         (mmx_ussub<mode>3): Ditto.
6682         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
6683         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
6684         to handle nonimmediate operands.
6685         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
6686         insn pattern.
6687         (mmx_smulv4hi3_highpart): New expander.  Use
6688         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6689         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
6690         insn pattern.
6691         (mmx_umulv4hi3_highpart): New expander.  Use
6692         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6693         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
6694         (mmx_<code>v4hi3): New expander.  Use
6695         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6696         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
6697         (mmx_<code>v8qi3): New expander.  Use
6698         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6699         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
6700         (mmx_<code><mode>3): New expander.  Use
6701         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6702
6703 2008-05-05  Jan Hubicka  <jh@suse.cz>
6704
6705         PR tree-optimization/36118
6706         * passes.c (pass_init_dump_file): Fix dump header.
6707
6708 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6709
6710         PR middle-end/36141
6711         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
6712         VCE for function decls.
6713
6714 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
6715
6716         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
6717
6718 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
6719
6720         * config/i386/i386.md (sat_plusminus): New.
6721         (plusminus_insn): Likewise.
6722         (plusminus_mnemonic): Likewise.
6723         (addsub): Removed.
6724         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
6725         (*<addsub><mode>3_cc_overflow): Renamed to ...
6726         (*<plusminus_insn><mode>3_cc_overflow): This.
6727         (*<addsub>si3_zext_cc_overflow): Renamed to ...
6728         (*<plusminus_insn>si3_zext_cc_overflow): This.
6729
6730         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
6731         (<plusminus_insn><mode>3): This.
6732         (*<addsub><mode>3): Renamed to ...
6733         (*<plusminus_insn><mode>3): This.
6734         (<sse>_vm<addsub><mode>3): Renamed to ...
6735         (<sse>_vm<plusminus_insn><mode>3): This.
6736         (sse3_h<addsub>v4sf3): Renamed to ...
6737         (sse3_h<plusminus_insn>v4sf3): This.
6738         (sse3_h<addsub>v2df3): Renamed to ...
6739         (sse3_h<plusminus_insn>v2df3): This.
6740         (<plusminus_insn><mode>3): New.
6741         (*<plusminus_insn><mode>3): Likewise.
6742         (sse2_<plusminus_insn><mode>3): Likewise.
6743         (add<mode>): Removed.
6744         (*add<mode>3): Likewise.
6745         (sse2_ssadd<mode>3): Likewise.
6746         (sse2_usadd<mode>3): Likewise.
6747         (sub<mode>3): Likewise.
6748         (*sub<mode>3): Likewise.
6749         (sse2_sssub<mode>3): Likewise.
6750         (sse2_ussub<mode>3): Likewise.
6751
6752 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
6753
6754         * gthr-single.h: Add in required interface elements as per gthr.h.
6755         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
6756         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
6757         Generalize UNUSED macro. 
6758         (__gthread_once): Add.
6759         (__gthread_key_create): Add.
6760         (__gthread_key_delete): Add.
6761         (__gthread_getspecific): Add.
6762         (__gthread_setspecific): Add.
6763         
6764 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
6765
6766         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
6767         the same size types for the indirect reference on the rhs, then
6768         create a VCE.
6769
6770 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
6771
6772         * config/i386/i386.md
6773         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
6774         one insn template instead of template series.
6775         (*xordi_1_rex64): Ditto.
6776         (*xordi_2_rex64): Ditto.
6777
6778 2008-05-05  Ira Rosen  <irar@il.ibm.com>
6779
6780         PR tree-optimization/36119
6781         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
6782         in case of SLP.
6783
6784 2008-06-04  Jan Hubicka  <jh@suse.cz>
6785
6786         tree-optimization/36100
6787         * tree-pass.h (pass_O0_always_inline): Declare.
6788         * ipa-inline.c (inline_transform): Remove dead code.
6789         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
6790         pass_O0_always_inline): New.
6791         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
6792
6793 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
6794
6795         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
6796         mnemonic in this_param move for TARGET_64BIT.
6797
6798 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
6799
6800         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
6801         (*strmovsi_rex_1): Ditto.
6802         (*strsetsi_1): Ditto.
6803         (*strsetsi_rex_1): Ditto.
6804
6805         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
6806         adddicc expanders using SWI mode iterator.
6807
6808 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6809
6810         PR target/36121
6811         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
6812         argument handling.
6813
6814 2008-05-04  David S. Miller  <davem@davemloft.net>
6815
6816         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
6817         (sparc*-*-linux*): Use linux.h in tm_file.
6818         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
6819         compiler defaulting to 32-bit.
6820         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
6821         no longer needed.
6822         * config/sparc/linux.h: Remove definitions now obtained
6823         properly from linux.h
6824         * config/sparc/linux64.h: Likewise.
6825         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
6826         don't want this setting for 32-bit builds in a biarch compiler.
6827         * doc/install.texi: Add sparc-linux to list of targets
6828         supporting --enable-targets=all.
6829
6830 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
6831
6832         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
6833
6834 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
6835
6836         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
6837         after V4SI_FTYPE_V8HI.
6838         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
6839         case V4SI_FTYPE_V2DF.
6840
6841 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
6842
6843         * doc/invoke.texi (max-flow-memory-locations): Removed.
6844         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
6845         
6846 2008-05-03  Richard Guenther  <rguenther@suse.de>
6847
6848         PR middle-end/34973
6849         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
6850
6851 2008-05-02  David S. Miller  <davem@davemloft.net>
6852
6853         * config.gcc (need_64bit_hwint): Document libcpp dependency.
6854
6855 2008-05-02  Simon Baldwin <simonb@google.com>
6856
6857         PR bootstrap/36108
6858         * c-common.h (warn_array_subscript_range): Removed.
6859         * c-common.c (warn_array_subscript_range): Ditto.
6860         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
6861         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
6862
6863 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
6864
6865         * config/i386/i386.c (ix86_special_builtin_type): New.
6866         (bdesc_special_args): Likewise.
6867         (ix86_expand_special_args_builtin): Likewise.
6868         (ix86_init_mmx_sse_builtins): Updated.
6869         (ix86_expand_builtin): Updated.
6870         (ix86_expand_store_builtin): Removed.
6871         (ix86_expand_unop_builtin): Likewise.
6872
6873         * config/i386/mm3dnow.h (__v2sf): Moved to ...
6874         * config/i386/mmintrin.h (__v2sf): Here.
6875
6876         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
6877         const __v2sf.
6878         (_mm_loadl_pi): Likewise.
6879         (_mm_storeh_pi): Replace __v2si with __v2sf.
6880         (_mm_storel_pi): Likewise.
6881
6882         * doc/extend.texi: Correct __builtin_ia32_loadhps,
6883         __builtin_ia32_loadlps, __builtin_ia32_storehps,
6884         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
6885         __builtin_ia32_loadlpd.
6886
6887 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
6888
6889         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
6890         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
6891         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
6892         (ix86_init_mmx_sse_builtins): Updated.
6893         (ix86_expand_args_builtin): Likewise.
6894         (ix86_expand_builtin): Likewise.
6895         (ix86_expand_unop1_builtin): Renamed to ...
6896         (ix86_expand_unop_vec_merge_builtin): This.
6897
6898 2008-05-01  Jan Hubicka  <jh@suse.cz>
6899
6900         PR bootstrap/36100
6901         * ipa-inline.c (inline_generate_summary): Make static.
6902         (inline_transform): Do not call inlining at -O0; make static.
6903         * passes.c (execute_todo): Add sanity check.
6904         (execute_one_ipa_transform_pass): Execute proper flags.
6905
6906 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
6907
6908         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
6909         (DECL_NONADDRESSABLE_P): Likewise.
6910         * alias.c (record_component_aliases): Fix comment.
6911
6912 2008-05-01  Simon Baldwin <simonb@google.com>
6913
6914         * c-common.h (warn_array_subscript_range): New function.
6915         * c-common.c (warn_array_subscript_range): Ditto.
6916         * tree-vrp.c (check_array_ref): Corrected code to agree with
6917         comment, ignoring only arrays of size 0 or size 1.
6918         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
6919
6920 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
6921
6922         * config/i386/i386.c (ix86_builtin_type): Replace
6923         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
6924         (bdesc_args): Updated.
6925         (ix86_init_mmx_sse_builtins): Likewise.
6926         (ix86_expand_args_builtin): Likewise.
6927
6928         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
6929         with __v1di.
6930
6931         * doc/extend.texi: Correct __builtin_ia32_palignr.
6932
6933 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
6934
6935         PR target/36095
6936         * config/i386/i386.c (bdesc_crc32): Removed.
6937         (ix86_expand_crc32): Likewise.
6938         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
6939         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
6940         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
6941         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
6942         UINT_FTYPE_UINT_UCHAR.
6943         (bdesc_args): Updated. Add crc32 builtins.
6944         (ix86_init_mmx_sse_builtins): Updated.
6945         (ix86_expand_args_builtin): Updated to support subreg.
6946
6947         * doc/extend.texi: Correct __builtin_ia32_crc32di.
6948
6949 2008-05-01  Jan Hubicka  <jh@suse.cz>
6950
6951         * tree-pass.h (opt_pass): Add IPA_PASS.
6952         (varpool_node, cgraph_node): Forward declare.
6953         (ipa_opt_pass): Define.
6954         (pass_ipa_inline): Turn into ipa_opt_pass.
6955         (pass_apply_inline): Remove.
6956         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
6957         (apply_inline): Turn into ....
6958         (inline_transform): ... this one.
6959         (inline_generate_summary): New function.
6960         (pass_apply_inline): Remove.
6961         * function.h (ipa_opt_pass): Forward declare structure; typedef;
6962         vector.
6963         (struct function): Add ipa_transforms_to_apply.
6964         * passes.c (register_one_dump_file): Work on IPA_PASS.
6965         (init_optimization_passes): Remove pass_inline_parameters and
6966         pass_apply_inline.
6967         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
6968         (execute_one_pass) ... here; apply transforms when possible.
6969         (add_ipa_transform_pass, execute_ipa_summary_asses,
6970         execute_one_ipa_transform_pass): New.
6971         (execute_ipa_pass_list): Update for IPA_PASS type.
6972
6973 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
6974
6975         * config/i386/i386.c (ix86_builtin_type): Add
6976         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
6977         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
6978         (bdesc_args): Add SSE4a builtins.
6979         (ix86_init_mmx_sse_builtins): Updated.
6980         (ix86_expand_args_builtin): Likewise.
6981         (ix86_expand_builtin): Likewise.
6982
6983 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
6984
6985         * config/i386/i386.c (ix86_builtin_type): Add
6986         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
6987         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
6988         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
6989         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
6990         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
6991         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
6992         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
6993         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
6994         and DI_FTYPE_DI_DI_INT.
6995         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
6996         (ix86_init_mmx_sse_builtins): Updated.
6997         (ix86_expand_args_builtin): Likewise.
6998         (ix86_expand_builtin): Likewise.
6999         (ix86_expand_binop_imm_builtin): Removed.
7000
7001         * doc/extend.texi: Correct __builtin_ia32_palignr128.
7002
7003 2008-04-30  Richard Guenther  <rguenther@suse.de>
7004
7005         PR tree-optimization/32921
7006         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
7007
7008 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
7009
7010         * config/arm/arm.c (arm_unwind_emit): Use
7011         crtl->all_throwers_are_sibcalls instead of
7012         cfun->all_throwers_are_sibcalls.
7013         (arm_output_fn_unwind): Likewise.
7014         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
7015         instead of cfun->uses_pic_offset_table.
7016         (frv_expand_prologue): Likewise.
7017         (frv_frame_pointer_required): Likewise.
7018         (frv_expand_fdpic_call): Likewise.
7019         (frv_emit_movsi): Likewise.
7020         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
7021         cfun->returns_pcc_struct instead of
7022         current_function_returns_pcc_struct.
7023         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
7024         instead of cfun->calls_eh_return.
7025         (m32c_pushm_popm): Likewise.
7026         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
7027         "extern" declaration.
7028
7029 2008-04-30  Richard Guenther  <rguenther@suse.de>
7030
7031         PR tree-optimization/21636
7032         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
7033         constant address.
7034         (evaluate_stmt): Print the likely value.
7035         (ccp_visit_stmt): Avoid excessive vertical spacing.
7036
7037 2008-04-30  Rafael Espindola  <espindola@google.com>
7038
7039         * builtins.c (fold_call_expr): Return realret.
7040         * tree-ssa-threadedge.c
7041         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
7042         __builtin_object_size.
7043
7044 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
7045
7046         * gcc.c (wrapper_string): New variable.
7047         (insert_wrapper): New function.
7048         (execute): New option -wrapper.
7049         * doc/invoke.texi (Overall Options): New driver option -wrapper.
7050
7051 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
7052
7053         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
7054         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
7055         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
7056         from...
7057         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
7058         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
7059         config/rs6000/e500crtres64gprctr.asm,
7060         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
7061         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
7062         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
7063         config/rs6000/e500crtsav64gprctr.asm,
7064         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
7065         config/rs6000/e500crtsavg64gprctr.asm: New files.
7066         * config/rs6000/t-ppccomm: Add build rules for new files.
7067         (LIB2FUNCS_STATIC_EXTRA): Add new files.
7068         * config/rs6000/t-netbsd: Add build rules for new files.
7069         (LIB2FUNCS_STATIC_EXTRA): New variable.
7070         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
7071         (CRTSAVRES_DEFAULT_SPEC): Likewise.
7072         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
7073
7074 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
7075
7076         * config/i386/i386.c (ix86_builtin_type): Add
7077         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
7078         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
7079         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
7080         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
7081         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
7082         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
7083         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
7084         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
7085         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
7086         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
7087         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
7088         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
7089         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
7090         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
7091         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
7092         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
7093         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
7094         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
7095         V1DI_FTYPE_V2SI_V2SI.
7096         (bdesc_2arg): Moved to ...
7097         (bdesc_args): Here.
7098         (ix86_init_mmx_sse_builtins): Updated.
7099         (ix86_expand_args_builtin): Updated.  Take a pointer
7100         to const struct builtin_description.  Handle comparison
7101         builtin functions.
7102         (ix86_expand_sse_compare): Take a new argument for swapping operands.
7103         (ix86_expand_builtin): Updated.
7104
7105         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
7106         (ssse3_pmaddubsw128): This.
7107         (ssse3_pmaddubswv4hi3): Renamed to ...
7108         (ssse3_pmaddubsw): This.
7109
7110         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
7111         (__builtin_ia32_packssdw128): Likewise.
7112         (__builtin_ia32_packuswb128): Likewise.
7113         (__builtin_ia32_pmaddubsw): Likewise.
7114         (__builtin_ia32_pmaddubsw128): Likewise.
7115
7116 2008-04-30  Richard Guenther  <rguenther@suse.de>
7117
7118         PR tree-optimization/14847
7119         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
7120         (recognize_bits_test): Use it.
7121         (recognize_single_bit_test): Likewise.
7122
7123 2008-04-30  Martin Jambor  <mjambor@suse.cz>
7124
7125         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
7126         instead of setting number of formal parameters to zero.
7127         (ipcp_init_stage): Do not set the number of actual parameters to zero 
7128         either.
7129         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
7130         which are called with variable number of arguments.
7131         (ipcp_insert_stage): Explicitely skipping all nodes which are
7132         called with variable number of arguments.
7133         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
7134         number of parameters.
7135
7136         * ipa-prop.h (struct ipa_node_params): Added flag
7137         called_with_var_arguments
7138         (ipa_set_param_count): Added.  Changed sole setter to use it.
7139         (ipa_get_param_count): Added.  All readers of param_count
7140         converted to use it instead.
7141         (ipa_set_called_with_variable_arg): Added.
7142         (ipa_is_called_with_var_arguments): Added.
7143         (ipa_get_ith_param): Added.  All readers of param_decls converted
7144         to use it instead.
7145         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
7146         changed to use it. 
7147         (ipa_get_cs_argument_count): Added, all readers of argument_count
7148         changed to cal it.
7149         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
7150         to use it.
7151         
7152         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
7153         (struct ipcp_lattice): Renamed cval_type to type
7154         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
7155
7156         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
7157         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
7158         (ipcp_insert_stage): Changed the type of variable cvalue to tree
7159         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
7160         (build_const_val): Changed the type of parameter cvalue to tree
7161         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
7162         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
7163         
7164         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
7165         constant 
7166
7167         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
7168         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
7169         (ipa_add_method): Renamed to ipa_push_func_to_list
7170         (ipa_remove_method): Renamed to ipa_pop_func_from_list
7171         (ipa_callsite_param_count): Removed.
7172         (ipa_callsite_param_count_set): Removed.
7173         (ipa_callsite_param): Removed.
7174         (ipa_callsite_callee): Removed.
7175         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
7176         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
7177         (ipa_method_formal_count): Removed.
7178         (ipa_method_formal_count_set): Removed.
7179         (ipa_method_get_tree): Removed.
7180         (ipa_method_tree_map_create): Removed.
7181         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
7182         (ipa_create_param_decls_array): Creates the array itself
7183         (ipa_create_param_decls_array): Temporary variable info instead of 
7184         a few dereferences.
7185         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
7186         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
7187         (get_type): Removed.
7188         (ipa_jf_get_info_type): Removed.
7189         (ipa_node_create): Renamed to ipa_create_node_params
7190         (ipa_free): Renamed to ipa_free_all_node_params
7191         (ipa_nodes_create): Renamed to ipa_create_all_node_params
7192         (ipa_edges_create): Renamed to ipa_create_all_edge_args
7193         (ipa_edges_free): Renamed to ipa_free_all_edge_args
7194         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
7195         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
7196         ipa_free_all_edge_args
7197         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
7198         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
7199         (ipa_create_methodlist_node): Removed.
7200         (ipa_methodlist_method): Removed.
7201         (ipa_methodlist_method_set): Removed.
7202         (ipa_methodlist_next_method): Removed.
7203         (ipa_methodlist_next_method_set): Removed.
7204         (ipa_method_is_modified): Removed.
7205         (ipa_method_modify_create): Removed.
7206         (ipa_method_modify_init): Temporary variable info instead of a few 
7207         dereferences.
7208         (ipa_detect_param_modifications): Temporary variable info instead of 
7209         a few dereferences.
7210         (ipa_compute_jump_functions): Temporary variable info instead of 
7211         a few dereferences.
7212         (ipa_method_modify_set): Removed.
7213         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
7214         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
7215         than craph_node as the first parameter.
7216         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
7217         (ipa_method_modify_init): Removed.
7218         (ipa_compute_jump_functions): Added a temp variable instead of 
7219         repeatadly dereferencing the cgraph_edge.aux pointer
7220         (ipa_callsite_param_set_type): Removed.
7221         (ipa_compute_jump_functions): i renamed to index and moved to 
7222         an inner block
7223         (ipa_callsite_param_set_info_type_formal): Removed.
7224         (ipa_callsite_param_set_info_type): Removed.
7225         (ipa_callsite_param_map_create): Removed.
7226         (ipa_callsite_tree): Removed.
7227         (ipa_callsite_caller): Removed.
7228         (ipa_pop_func_from_list): return_method removed to return_func
7229
7230         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
7231         prefixed all values with IPA_. Changed all users.
7232         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
7233         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
7234         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
7235         (union parameter_info): Renamed to jump_func_value.
7236         (union jump_func_value): Renamed value to constant
7237         (struct ipa_jump_func): Renamed info_type to value
7238         (struct ipa_node): Renamed to ipa_node_params
7239         (struct ipa_node_params): Renamed ipa_arg_num to param_count
7240         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
7241         (struct ipa_node_params): Renamed ipa_mod to modified_flags
7242         (struct ipa_edge): Renamed to ipa_edge_args
7243         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
7244         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
7245         (struct ipa_methodlist): Renamed to ipa_func_list
7246         (struct ipa_func_list): method_p renamed to node, next_method
7247         renamed to next
7248         (ipa_methodlist_p): Removed, switched all users to struct pointer
7249         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
7250
7251 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
7252
7253         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
7254         (rs6000_emit_epilogue): Use backchain to restore only when we
7255         have a large frame.  Make use of frame pointer to restore if we
7256         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
7257
7258 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
7259
7260         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
7261         Add mode to zero_extract.
7262         (sign bit tests peepholes): (Ditto.).
7263
7264 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
7265
7266         * config/i386/i386.c (ix86_builtins): Replace Prescott New
7267         Instructions in comments with SSE3.
7268         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
7269         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
7270         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
7271         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
7272         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
7273         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
7274         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
7275         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
7276         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
7277         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
7278         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
7279         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
7280         (bdesc_sse_args): Renamed to ...
7281         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
7282         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
7283         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
7284         IX86_BUILTIN_FABSQ.
7285         (bdesc_1arg): Moved to ...
7286         (bdesc_args): Here.
7287         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
7288         Instructions in comments with SSE3.
7289         (ix86_expand_sse_operands_builtin): Renamed to ...
7290         (ix86_expand_args_builtin): This.  Updated.
7291         (ix86_expand_unop1_builtin): Update comments.
7292         (ix86_expand_builtin): Updated.
7293
7294 2008-04-29  Richard Guenther  <rguenther@suse.de>
7295
7296         PR tree-optimization/36078
7297         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7298         Update virtual SSA form after cleaning up the CFG.
7299
7300 2008-04-29  Richard Guenther  <rguenther@suse.de>
7301
7302         PR middle-end/15255
7303         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
7304
7305 2008-04-29  Richard Guenther  <rguenther@suse.de>
7306
7307         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
7308         (compute_may_aliases): Do not call finalize_ref_all_pointers.
7309         (compute_flow_insensitive_aliasing): Do not treat
7310         PTR_IS_REF_ALL pointers special.
7311         (get_smt_for): Likewise.
7312         (may_alias_p): Re-structure.
7313         (is_escape_site): A ref-all pointer conversion is not an escape site.
7314         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
7315         PTR_IS_REF_ALL pointers special.
7316         * tree-ssa-structalias.h (struct alias_info): Remove
7317         ref_all_symbol_mem_tag field.
7318         (PTR_IS_REF_ALL): Remove.
7319
7320 2008-04-29  Richard Guenther  <rguenther@suse.de>
7321
7322         PR middle-end/36077
7323         * fold-const.c (extract_muldiv_1): In combining division constants
7324         make sure to never overflow.
7325
7326 2008-04-29  Nick Clifton  <nickc@redhat.com>
7327
7328         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
7329
7330 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7331
7332         PR bootstrap/35169
7333         * optc-gen.awk: Work around HP-UX/IA awk bug.
7334
7335 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
7336
7337         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
7338         2008-04-25 commit.
7339
7340 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
7341
7342         PR target/36073
7343         * config/i386/i386.md
7344         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
7345         Change operand 1 predicate to nonimmediate_operand.
7346
7347 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
7348
7349         PR debug/36060
7350         * dwarf2out.c (struct die_struct): Mark as chain_circular through
7351         die_sub field.
7352         * gengtype.c (walk_type, write_func_for_structure): Handle
7353         chain_circular.
7354         * doc/gty.texi: Document chain_circular.
7355
7356 2008-04-28  Richard Guenther  <rguenther@suse.de>
7357
7358         PR tree-optimization/36066
7359         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
7360         SCEV and loop.
7361
7362 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
7363
7364         PR target/36064
7365         * config/i386/i386.md
7366         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
7367         Use match_scratch instead of match_operand for operands 3 and 4.
7368
7369 2008-04-27  Richard Guenther  <rguenther@suse.de>
7370
7371         PR tree-optimization/18754
7372         PR tree-optimization/34223
7373         * tree-pass.h (pass_complete_unrolli): Declare.
7374         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
7375         loop size before and after unconditionally of UL_NO_GROWTH in effect.
7376         Rewrite loop into loop closed SSA form if it is not already.
7377         (tree_unroll_loops_completely): Re-structure to iterate over
7378         innermost loops with intermediate CFG cleanups.
7379         Unroll outermost loops only if requested or the code does not grow
7380         doing so.
7381         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
7382         loops are available.
7383         (tree_vectorize): Instead do so here.
7384         (tree_complete_unroll): Also unroll outermost loops.
7385         (tree_complete_unroll_inner): New function.
7386         (gate_tree_complete_unroll_inner): Likewise.
7387         (pass_complete_unrolli): New pass.
7388         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
7389         uses outside of the loop.
7390         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
7391         form if it is available.  
7392         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
7393         * passes.c (init_optimization_passes): Schedule complete inner
7394         loop unrolling pass before the first CCP pass after final inlining.
7395
7396 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
7397
7398         * targhooks.h (default_emutls_var_fields,
7399         default_emutls_var_init): Declare.
7400         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
7401         * target.h (struct gcc_target): Add struct emutls member.
7402         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
7403         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
7404         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
7405         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
7406         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
7407         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
7408         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
7409         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
7410         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
7411         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
7412         emit debug information.
7413         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
7414         * varasm.c: Include targhooks.h.
7415         (emutls_object_section, emutls_tmpl_section): New.
7416         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
7417         (EMUTLS_SEPARATOR): New.
7418         (prefix_name): New.
7419         (get_emutls_object_name): New.
7420         (default_emutls_var_fields): New, broken out of ...
7421         (get_emutls_object_type): ... here.  Adjust to use target hooks.
7422         (get_emutls_init_templ_addr): Adjust to use target hooks.
7423         (emutls_decl): Adjust to use target hooks.
7424         (emutls_finish): Likewise.
7425         (default_emutls_var_init): New, broken out of ...
7426         (assemble_variable): ... here.  Adjust to use target hooks.
7427         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
7428         SECCAT_EMUTLS_TMPL.
7429         * c-common.c (handle_section_attribute): Prevent overriding
7430         sections for emulated tls with special sections.
7431         * config/i386/i386.c (x86_64_elf_select_section): Add
7432         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
7433         (x86_64_elf_unique_section): Likewise.
7434         * config/vxworks.c: Include tree.h.
7435         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
7436         (vxworks_override_options): Set TLS scheme.
7437         * doc/tm.texi (Emulated TLS): New node.
7438
7439 2008-04-26  Simon Baldwin <simonb@google.com>
7440
7441         PR c/35652
7442         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
7443         with propagated string constants.
7444
7445 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
7446
7447         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
7448         constraint for operand 2 when operand 0 is memory operand.
7449         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
7450         operand 0 is memory operand.
7451         (fix_trunc<mode>_i387_with_temp): Ditto.
7452         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
7453         operand 2 when operand 1 is memory operand.
7454         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
7455         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
7456         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
7457         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
7458         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
7459         operands 2,3 and 4 when operand 1 is memory operand.
7460         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
7461         is memory operand.
7462         (fistdi2_floor_with_temp): Ditto.
7463         (fist<mode>2_floor_with_temp): Ditto.
7464         (fistdi2_ceil_with_temp): Ditto.
7465         (fist<mode>2_ceil_with_temp): Ditto.
7466         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
7467
7468 2008-04-26  David Daney  <ddaney@avtrex.com>
7469
7470         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
7471         unspec_volitile.
7472         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
7473         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
7474         UNSPEC_UPDATE_GOT_VERSION): Renumber.
7475         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
7476         (compare_and_swap_12): New insn.
7477         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
7478         * config/mips/mips.c (mips_force_binary): New function.
7479         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
7480         (mips_expand_compare_and_swap_12): New function.
7481         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
7482
7483 2008-04-25  Jan Hubicka  <jh@suse.cz>
7484
7485         PR testsuite/35843
7486         * cfgexpand.c (pass_expand): Turn into RTL pass.
7487         * passes.c (execute_one_pass): Do pass typechecking after execution.
7488         * tree-pass.h (pass_expand): Turn into RTL pass.
7489
7490         * function.h (struct rtl_data): Move here fields
7491         accesses_prior_frames, calls_eh_return, saves_all_registers,
7492         has_nonlocal_goto, has_asm_statement, is_thunk,
7493         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
7494         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
7495         arg_pointer_save_area_init from struct function; turn into bool.
7496         (struct function): Move
7497         calls_eh_return, saves_all_registers, has_nonlocal_goto,
7498         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
7499         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
7500         tail_call_emit, arg_pointer_save_area_init
7501         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
7502         (current_function_returns_struct, current_function_returns_pcc_struct,
7503         current_function_calls_setjmp, current_function_calls_alloca,
7504         current_function_accesses_prior_frames,
7505         current_function_calls_eh_return, current_function_is_thunk,
7506         current_function_stdarg, current_function_profile,
7507         current_function_limit_stack, current_function_uses_pic_offset_table,
7508         current_function_uses_const_pool, current_function_has_nonlocal_label,
7509         current_function_saves_all_registers,
7510         current_function_has_nonlocal_goto,
7511         current_function_has_asm_statement): Remove accesor macros.
7512         * ra-conflict.c (global_conflicts): Update.
7513         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
7514         (suitable_for_tail_call_opt_p): Update.
7515         * builtins.c (expand_builtin_return_addr): Update.
7516         (expand_builtin_setjmp_setup): Update.
7517         (expand_builtin_nonlocal_goto): Update.
7518         * final.c (final_start_function): Update.
7519         (profile_function): Update.
7520         (leaf_function_p): Update.
7521         (only_leaf_regs_used): Update.
7522         * df-scan.c (df_get_exit_block_use_set): Update.
7523         * dojump.c (clear_pending_stack_adjust): Update.
7524         * tree-stdarg.c (gate_optimize_stdarg): Update.
7525         * gimple-low.c (lower_function_body): Update.
7526         * global.c (compute_regsets): Update.
7527         (global_alloc): Update.
7528         * dwarf2out.c (dwarf2out_begin_prologue): Update.
7529         * expr.c (expand_assignment): Update.
7530         * dse.c (dse_step0): Update.
7531         (dse_step1): Update.
7532         * c-decl.c (store_parm_decls): Update.
7533         * local-alloc.c (combine_regs): Update.
7534         (find_free_reg): Update.
7535         * function.c (assign_parms_augmented_arg_list): Update.
7536         (assign_parm_find_data_types): Update.
7537         (assign_parms): Update.
7538         (allocate_struct_function): Update.
7539         (expand_function_start): Update.
7540         (expand_function_end): Update.
7541         (get_arg_pointer_save_area): Update.
7542         (thread_prologue_and_epilogue_insns): Update.
7543         (rest_of_match_asm_constraints): Update.
7544         * stor-layout.c (variable_size): Update.
7545         * gcse.c (gcse_main): Update.
7546         (bypass_jumps): Update.
7547         * gimplify.c (gimplify_function_tree): Update.
7548         * calls.c (emit_call_1): Update.
7549         (expand_call): Update.
7550         * bt-load.c (compute_defs_uses_and_gen): Update.
7551         * except.c (sjlj_assign_call_site_values): Update.
7552         (sjlj_emit_function_enter): Update.
7553         (can_throw_external): Update.
7554         (set_nothrow_function_flags): Update.
7555         (expand_builtin_unwind_init): Update.
7556         (expand_eh_return): Update.
7557         (convert_to_eh_region_ranges): Update.
7558         (output_function_exception_table): Update.
7559         * emit-rtl.c (gen_tmp_stack_mem): Update.
7560         * cfgexpand.c (expand_used_vars): Update.
7561         (tree_expand_cfg): Update.
7562         * cfgcleanup.c (rest_of_handle_jump): Update.
7563         * explow.c (allocate_dynamic_stack_space): Update.
7564         * varasm.c (assemble_start_function): Update.
7565         (force_const_mem): Update.
7566         (mark_constant_pool): Update.
7567         * tree-optimize.c (tree_rest_of_compilation): Update.
7568         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
7569         * tree-cfg.c (notice_special_calls): Update.
7570         (is_ctrl_altering_stmt): Update.
7571         (tree_can_make_abnormal_goto): Update.
7572         (tree_purge_dead_abnormal_call_edges): Update.
7573         * config/alpha/predicates.md: Update.
7574         * config/alpha/alpha.c (alpha_sa_mask): Update.
7575         (alpha_sa_size): Update.
7576         (alpha_does_function_need_gp): Update.
7577         (alpha_expand_prologue): Update.
7578         (alpha_start_function): Update.
7579         (alpha_output_function_end_prologue): Update.
7580         (alpha_expand_epilogue): Update.
7581         * config/frv/frv.c (frv_stack_info): Update.
7582         (frv_expand_epilogue): Update.
7583         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
7584         (s390_register_info): Update.
7585         (s390_frame_info): Update.
7586         (s390_init_frame_layout): Update.
7587         (s390_can_eliminate): Update.
7588         (save_gprs): Update.
7589         * config/spu/spu.c (spu_split_immediate): Update.
7590         (need_to_save_reg): Update.
7591         (spu_expand_prologue): Update.
7592         (spu_expand_epilogue): Update.
7593         * config/sparc/sparc.md: Update.
7594         * config/sparc/sparc.c (eligible_for_return_delay): Update.
7595         (sparc_tls_got): Update.
7596         (legitimize_pic_address): Update.
7597         (sparc_emit_call_insn): Update.
7598         (sparc_expand_prologue): Update.
7599         (output_return): Update.
7600         (print_operand): Update.
7601         (sparc_function_ok_for_sibcall): Update.
7602         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
7603         * config/m32r/m32r.md: Update.
7604         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
7605         (m32r_compute_frame_size): Update.
7606         (m32r_expand_prologue): Update.
7607         (m32r_expand_epilogue): Update.
7608         (m32r_legitimize_pic_address): Update.
7609         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
7610         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
7611         * config/i386/i386.c (ix86_frame_pointer_required): Update.
7612         (gen_push): Update.
7613         (ix86_save_reg): Update.
7614         (ix86_compute_frame_layout): Update.
7615         (ix86_expand_prologue): Update.
7616         (ix86_expand_epilogue): Update.
7617         * config/sh/sh.c (output_stack_adjust): Update.
7618         (calc_live_regs): Update.
7619         (sh5_schedule_saves): Update.
7620         (sh_expand_prologue): Update.
7621         (sh_expand_epilogue): Update.
7622         (sh_setup_incoming_varargs): Update.
7623         (sh_allocate_initial_value): Update.
7624         (sh_get_pr_initial_val): Update.
7625         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
7626         * config/sh/sh.md (label:): Update.
7627         * config/avr/avr.c (out_movhi_mr_r): Update.
7628         * config/crx/crx.h (enum): Update.
7629         * config/xtensa/xtensa.h (along): Update.
7630         * config/stormy16/stormy16.c Update.
7631         (xstormy16_compute_stack_layout): Update.
7632         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
7633         (fr30_expand_prologue): Update.
7634         * config/cris/cris.c (cris_conditional_register_usage): Update.
7635         (cris_reg_saved_in_regsave_area): Update.
7636         (cris_initial_frame_pointer_offset): Update.
7637         (cris_simple_epilogue): Update.
7638         (cris_expand_prologue): Update.
7639         (cris_expand_epilogue): Update.
7640         (cris_expand_pic_call_address): Update.
7641         (cris_asm_output_symbol_ref): Update.
7642         (cris_asm_output_label_ref): Update.
7643         * config/cris/cris.md Update.
7644         * config/iq2000/iq2000.c (compute_frame_size): Update.
7645         (iq2000_expand_epilogue): Update.
7646         * config/mt/mt.h (save_direction): Update.
7647         * config/mn10300/mn10300.c (mn10300_function_value): Update.
7648         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
7649         (ia64_secondary_reload_class): Update.
7650         * config/m68k/m68k.c (m68k_save_reg): Update.
7651         (m68k_expand_prologue): Update.
7652         (m68k_expand_epilogue): Update.
7653         (legitimize_pic_address): Update.
7654         * config/rs6000/rs6000.c (rs6000_got_register): Update.
7655         (first_reg_to_save): Update.
7656         (first_altivec_reg_to_save): Update.
7657         (compute_vrsave_mask): Update.
7658         (compute_save_world_info): Update.
7659         (rs6000_stack_info): Update.
7660         (spe_func_has_64bit_regs_p): Update.
7661         (rs6000_ra_ever_killed): Update.
7662         (rs6000_emit_eh_reg_restore): Update.
7663         (rs6000_emit_allocate_stack): Update.
7664         (rs6000_emit_prologue): Update.
7665         (rs6000_emit_epilogue): Update.
7666         (rs6000_output_function_epilogue): Update.
7667         (output_profile_hook): Update.
7668         (rs6000_elf_declare_function_name): Update.
7669         * config/rs6000/rs6000.h (rs6000_args): Update.
7670         * config/rs6000/rs6000.md: Update.
7671         * config/mcore/mcore.c (mcore_expand_prolog): Update.
7672         * config/arc/arc.c (arc_output_function_epilogue): Update.
7673         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
7674         * config/darwin.c (machopic_function_base_name): Update.
7675         * config/score/score3.c (score3_compute_frame_size): Update.
7676         (rpush): Update.
7677         (rpop): Update.
7678         (score3_epilogue): Update.
7679         * config/score/score7.c (score7_compute_frame_size): Update.
7680         (score7_prologue): Update.
7681         (score7_epilogue): Update.
7682         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
7683         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
7684         * config/arm/arm.c (use_return_insn): Update.
7685         (require_pic_register): Update.
7686         (arm_load_pic_register): Update.
7687         (arm_compute_save_reg0_reg12_mask): Update.
7688         (arm_compute_save_reg_mask): Update.
7689         (thumb1_compute_save_reg_mask): Update.
7690         (output_return_instruction): Update.
7691         (arm_output_function_prologue): Update.
7692         (arm_output_epilogue): Update.
7693         (arm_get_frame_offsets): Update.
7694         (arm_expand_prologue): Update.
7695         (thumb_pushpop): Update.
7696         (thumb_exit): Update.
7697         (thumb1_expand_prologue): Update.
7698         (thumb1_expand_epilogue): Update.
7699         (arm_unwind_emit): Update.
7700         (arm_output_fn_unwind): Update.
7701         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
7702         * config/arm/arm.md: Update.
7703         * config/pa/pa.md: Update.
7704         * config/pa/pa.c (legitimize_pic_address): Update.
7705         (compute_frame_size): Update.
7706         (hppa_expand_prologue): Update.
7707         (hppa_expand_epilogue): Update.
7708         (borx_reg_operand): Update.
7709         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
7710         (HARD_REGNO_RENAME_OK): Update.
7711         * config/mips/mips.c (mips_global_pointer): Update.
7712         (mips_save_reg_p): Update.
7713         (mips_compute_frame_info): Update.
7714         (mips_frame_pointer_required): Update.
7715         (mips_expand_prologue): Update.
7716         (mips_expand_epilogue): Update.
7717         (mips_can_use_return_insn): Update.
7718         (mips_reorg_process_insns): Update.
7719         * config/v850/v850.c (compute_register_save_size): Update.
7720         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
7721         * config/mmix/mmix.c (along): Update.
7722         (mmix_expand_epilogue): Update.
7723         * config/bfin/bfin.c (legitimize_pic_address): Update.
7724         (must_save_p): Update.
7725         (stack_frame_needed_p): Update.
7726         (add_to_reg): Update.
7727         (bfin_expand_prologue): Update.
7728         * stmt.c (expand_asm_operands): Update.
7729         * reload1.c (reload): Update.
7730         (init_elim_table): Update.
7731
7732 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
7733         
7734         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
7735         
7736 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
7737
7738         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
7739         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
7740         (mov<mode>): Removed.
7741         (*movv4sf_internal): Likewise.
7742         (*movv2df_internal): Likewise.
7743
7744 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
7745
7746         * config.gcc (crx-*-elf): Remove deprecation.
7747
7748 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
7749
7750         * config/i386/cygming-crtend.c (register_frame_ctor): Register
7751         __gcc_deregister_frame with atexit.
7752         (deregister_frame_dtor): Remove.
7753
7754 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
7755             Nathan Sidwell  <nathan@codesourcery.com>
7756
7757         * config/rs6000/rs6000.opt (mspe): Remove Var property.
7758         (misel): Likewise.
7759         * config/rs6000/rs6000.h (rs6000_spe): Declare.
7760         (rs6000_isel): Likewise.
7761         * config/rs6000/rs6000.c (rs6000_spe): New variable.
7762         (rs6000_isel): New variable.
7763         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
7764
7765 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
7766
7767         PR c++/35758
7768         * c-common.c (handle_vector_size_attribute): Call
7769         lang_hooks.types.reconstruct_complex_type instead of
7770         reconstruct_complex_type.
7771         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
7772         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
7773         * langhooks.h (struct lang_hooks_for_types): Add
7774         reconstruct_complex_type hook.
7775         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
7776         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
7777
7778 2008-04-24  Richard Guenther  <rguenther@suse.de>
7779
7780         * c-common.h (check_builtin_function_arguments): Declare.
7781         * c-common.c (validate_nargs): New function.
7782         (check_builtin_function_arguments): Likewise.
7783         * c-typeck.c (build_function_call): Call
7784         check_builtin_function_arguments.
7785         * builtins.c (fold_builtin_classify): Remove error reporting code.
7786         (fold_builtin_unordered_cmp): Likewise.
7787         (fold_builtin_1): Likewise.
7788         (fold_builtin_n): Likewise.
7789
7790 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
7791
7792         PR tree-optimization/36008
7793         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
7794         the original op1, rather than delta by step.
7795
7796 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
7797             Sebastian Pop  <sebastian.pop@amd.com>
7798
7799         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
7800         eliminate_local_variables_stmt, eliminate_local_variables,
7801         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
7802         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
7803         of code delimited by two edges in the CFG.
7804         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
7805         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
7806         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
7807         the case of parallelisation of reductions.
7808         (expr_invariant_in_region_p): New.
7809
7810         * tree-flow.h (gather_blocks_in_sese_region): Declared.
7811         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
7812
7813 2008-04-24  Ira Rosen  <irar@il.ibm.com>
7814             Richard Guenther  <rguenther@suse.de>
7815
7816         PR tree-optimization/36034
7817         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
7818         incapable of dealing with loads with gaps.
7819
7820 2008-04-24  Rafael Espindola  <espindola@google.com>
7821
7822         * tree-flow.h (vrp_evaluate_conditional): Change signature.
7823         * tree-ssa-propagate.c (fold_predicate_in): Update call to
7824         vrp_evaluate_conditional.
7825         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
7826         (vrp_evaluate_conditional): Split the cond argument.
7827         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
7828         (simplify_stmt_for_jump_threading): Update call to
7829         vrp_evaluate_conditional.
7830
7831 2008-04-24  Ira Rosen  <irar@il.ibm.com>
7832
7833         PR tree-optimization/35982
7834         * tree-vect-analyze.c (vect_check_interleaving): Check that the
7835         interleaved data-refs are of the same type.
7836
7837 2008-04-24  Danny Smith  <dannysmith@users.net>
7838
7839         * c-format.c (check_format_info_main): Use strncmp rather than a
7840         magic prefix to handle multichar length specs.
7841         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
7842         Don't prefix "I64" and "I32" with '\0'.
7843
7844 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
7845
7846         PR target/36015
7847         * config/i386/i386.c (init_cumulative_args): Don't pass anything
7848         in registers for -m32 only if stdarg_p (fntype).
7849
7850 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
7851
7852         PR rtl-optimization/36006
7853         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
7854         temp to op0 in order to avoid invalid rtx sharing.
7855
7856 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
7857
7858         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
7859         check TREE_INVARIANT.
7860         * tree-gimple.c (is_gimple_address): New.
7861         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
7862         * tree-gimple.h (is_gimple_address): New.
7863         * tree.h (decl_address_invariant_p): New.
7864         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
7865         (build_string): Likewise.
7866         (decl_address_invariant_p): New, from is_gimple_invariant_address.
7867         (tree_invariant_p_1): Likewise.
7868         (save_expr): Use it.
7869         (tree_invariant_p): New.
7870         (skip_simple_arithmetic): Use it.
7871         (stabilize_reference_1): Use it.
7872         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
7873         simplify.
7874         (build1_stat): Drop code to compute TREE_INVARIANT.
7875         (build2_stat): Drop code to compute TREE_INVARIANT.
7876         (build3_stat): Drop code to compute TREE_INVARIANT.
7877         (build4_stat): Drop code to compute TREE_INVARIANT.
7878         (build5_stat): Drop code to compute TREE_INVARIANT.
7879         (build7_stat): Drop code to compute TREE_INVARIANT.
7880         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
7881         * tree.h (struct tree_base): Remove invariant_flag.
7882         (TREE_INVARIANT): Remove.
7883         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
7884         (fold_builtin_expect): Check TREE_CONSTANT.
7885         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
7886         * c-tree.h (c_expr_to_decl): Drop third parameter.
7887         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
7888         (build_c_cast): Don't set TREE_INVARIANT.
7889         (pop_init_level): Don't set TREE_INVARIANT.
7890         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
7891         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
7892         TREE_CONSTANT.
7893         (gimplify_init_constructor): Don't set TREE_INVARIANT.
7894         (gimplify_addr_expr): Adjust comment.
7895         * tree-mudflap.c (mf_build_string):
7896         * print-tree.c (print_node): Don't print TREE_INVARIANT.
7897         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
7898         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
7899         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
7900         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
7901         * langhooks.h (struct lang_hooks): Drop third parameter from
7902         expr_to_decl.
7903
7904 2008-04-23  Richard Guenther  <rguenther@suse.de>
7905
7906         PR tree-optimization/27799
7907         PR tree-optimization/32921
7908         PR tree-optimization/32624
7909         * tree-ssa-structalias.c (merge_smts_into): Only merge the
7910         SMTs aliases and the tag itself into the solution.
7911         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
7912         merge the points-to solution back into the SMT aliases.
7913         (may_alias_p): Use alias_set_subset_of instead of
7914         aliases_conflict_p.  A pointer which points to
7915         memory with alias set zero may access any variable.
7916
7917 2008-04-23  Richard Guenther  <rguenther@suse.de>
7918
7919         * alias.c (alias_set_subset_of): Correctly handle asking
7920         if zero is a subset of an alias set with zero child.
7921         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
7922         (compute_flow_insensitive_aliasing): Correctly walk all
7923         pointers.  Do not unnecessarily union sets.
7924
7925 2008-04-23  Richard Guenther  <rguenther@suse.de>
7926
7927         PR middle-end/36021
7928         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
7929
7930 2008-04-22  Tomas Bily  <tbily@suse.cz>
7931
7932         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
7933         unreachable case.
7934         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
7935         NON_LVALUE_EXPR.
7936         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
7937         * tree-ssa-structalias.c (get_constraint_for): Likewise.
7938         * tree-inline.c (estimate_num_insns_1): Likewise.
7939         * varasm.c (const_hash_1, compare_constant, copy_constant)
7940         (compute_reloc_for_constant, output_addressed_constants): Likewise.
7941         * emit-rtl.c (component_ref_for_mem_expr)
7942         (set_mem_attributes_minus_bitpos): Likewise.
7943         * expr.c (highest_pow2_factor, expand_expr_real_1, )
7944         (is_aligning_offset): Likewise.
7945         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
7946         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
7947         * dojump.c (do_jump): Likewise.
7948         * builtins.c (get_pointer_alignment, get_memory_rtx)
7949         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
7950         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
7951
7952 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
7953
7954         PR rtl-optimization/36017
7955         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
7956         expanding the library call.
7957
7958 2008-04-22  Ian Lance Taylor  <iant@google.com>
7959
7960         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
7961         than size_in_bytes.
7962
7963 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
7964
7965         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
7966         of LR/CTR moves for Power6.
7967
7968 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
7969
7970         PR middle-end/36003
7971         * passes.c (init_optimization_passes): Remove
7972         pass_fast_rtl_byte_dce.
7973         
7974 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
7975
7976         PR target/29096
7977         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
7978         builtin functions to generate faster code.
7979         (_mm_cvtpu16_ps): Ditto.
7980         (_mm_cvtpi32x2_ps): Ditto.
7981
7982 2008-04-22  Nick Clifton  <nickc@redhat.com>
7983
7984         * common.opt (ftree-loop-distribution): Add Optimization
7985         attribute.
7986
7987         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
7988         (frv_expand_builtin_va_start): Likewise.
7989
7990         * config/arm/arm.c (thumb_find_work_register): Fix location of
7991         argument register count.
7992
7993 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
7994
7995         Support scheduling for ColdFire V1 and V3 microarchitecture.
7996         Improve scheduling of multiplication instructions.
7997
7998         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
7999         (mac): New instruction attribute.
8000         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
8001         (m68k_sched_mac): New variable.
8002         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
8003         Handle cfv1 and cfv3.
8004         (max_insn_size): New static variable.
8005         (struct _sched_ib): New type.
8006         (sched_ib): New static variable.
8007         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
8008         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
8009         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
8010         Update.
8011         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
8012         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
8013         new variables.  Update.
8014         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
8015         Add modeling of cfv3 instruction buffer.  Update.
8016         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
8017         * config/m68k/m68k.h (TUNE_CFV3): New macro.
8018         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
8019         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
8020         a particular reservation applies to.
8021         (type2): Reorganize attribute values.  Rename alu to alu_reg,
8022         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
8023         to mul_l and mul_w.
8024         (cf_ib_*): Simplify description of instruction buffer.
8025         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
8026         (cf_mem): Split into cf_mem1 and cf_mem2.
8027         (cf_v2_move_??): Rename to cfv12_alu_??.
8028         (cf_v2_move_l_??): Rename to cfv12_omove_??.
8029         (cf_v2_mul_??): Remove reservations.
8030         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
8031         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
8032         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
8033         appropriate place.
8034         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
8035         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
8036         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
8037         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
8038         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
8039         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
8040         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
8041         expansions of the above reservations for instructions of sizes
8042         1, 2 and 3 words.
8043
8044 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
8045
8046         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
8047
8048 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
8049
8050         * coverage.c: Include tree-pass.h.
8051         (coverage_counter_alloc): Print da_file_name to the dump file.
8052
8053 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
8054
8055         * sbitmap.c (sbitmap_range_empty_p): New function.
8056         * sbitmap.h (sbitmap_range_empty_p): New function.
8057         * bitmap.h: Now includes obstack.h.
8058
8059 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
8060             Kenneth Zadeck  <zadeck@naturalbridge.com>
8061
8062         * dbgcnt.def (ra_byte_scan): Added.
8063         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
8064         when the last hit happens for a counter.  
8065         * timevar.def (TV_DF_BYTE_LR): New variable.
8066         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
8067         * passes.c (pass_fast_rtl_byte_dce): New pass.
8068         * fwprop.c (update_df): Added mode to call df_ref_create.
8069         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
8070         DF_REF_EXTRACT_OFFSET.
8071         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
8072         DF_BYTE_LR_OUT, df_byte_lr): New macro.
8073         (df_mm): New enum.
8074         (df_ref_extract): Added mode field.
8075         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
8076         DF_REF_EXTRACT_OFFSET.
8077         (DF_REF_EXTRACT_MODE): New macro.
8078         (df_byte_lr_bb_info): New structure.
8079         (df_print_byte_regset, df_compute_accessed_bytes, 
8080         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
8081         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
8082         df_byte_lr_simulate_uses,
8083         df_byte_lr_simulate_artificial_refs_at_top,
8084         df_byte_lr_simulate_artificial_refs_at_end,
8085         df_compute_accessed_bytes): New function.
8086         (df_ref_create): Add parameter.
8087         (df_byte_lr_get_bb_info): New inline function.
8088         * df-scan.c (df_ref_record, df_uses_record,
8089         df_ref_create_structure): Added mode parameter.
8090         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
8091         df_defs_record, df_uses_record, df_get_conditional_uses,
8092         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
8093         df_entry_block_defs_collect, df_exit_block_uses_collect):
8094         Added mode parameter to calls to df_ref_record, df_uses_record,
8095         df_ref_create_structure.
8096         (df_ref_equal_p, df_ref_compare): Added test for modes.
8097         (df_ref_create_structure): Added code to set mode.  Renamed
8098         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
8099         DF_REF_EXTRACT_OFFSET.
8100         * df-core.c (df_print_byte_regset): New function.
8101         * df-byte-scan.c: New file.
8102         * df-problems.c (df_rd_transfer_function): Removed unnecessary
8103         calls to BITMAP_FREE.  
8104         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
8105         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
8106         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
8107         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
8108         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
8109         df_byte_lr_local_compute, df_byte_lr_init,
8110         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
8111         df_byte_lr_transfer_function, df_byte_lr_free, 
8112         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
8113         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
8114         df_byte_lr_simulate_uses,
8115         df_byte_lr_simulate_artificial_refs_at_top,
8116         df_byte_lr_simulate_artificial_refs_at_end): New function.
8117         * dce.c (byte_dce_process_block): New function.
8118         (dce_process_block): au is now passed in rather than computed
8119         locally.  Changed loops that look at artificial defs to not look
8120         for conditional or partial ones, because there never are any.  
8121         (fast_dce): Now is able to drive byte_dce_process_block or 
8122         dce_process_block depending on the kind of dce being done.
8123         (rest_of_handle_fast_dce): Add parameter to fast_dce.
8124         (rest_of_handle_fast_byte_dce): New function.
8125         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
8126         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
8127
8128 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
8129
8130         PR fortran/35019
8131         * gcc.h: Added fortran options that take arguments to
8132         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
8133         macros.
8134
8135 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
8136
8137         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
8138         scalarization if on the LHS and not a full access.
8139
8140 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8141
8142         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
8143
8144 2008-04-18  Rafael Espindola  <espindola@google.com>
8145
8146         * tree-vrp.c (find_case_label_index): Fix the binary search.
8147         (find_case_label_range): New.
8148         (vrp_visit_switch_stmt): Use find_case_label_range.
8149         (simplify_switch_using_ranges): Use find_case_label_range.
8150
8151 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
8152
8153         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
8154         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
8155
8156 2008-04-18  Tom Tromey  <tromey@redhat.com>
8157
8158         PR libcpp/15500:
8159         * doc/cpp.texi (Implementation-defined behavior): Mention
8160         -finput-charset.
8161
8162 2008-04-18  Ian Lance Taylor  <iant@google.com>
8163
8164         * fold-const.c (pointer_may_wrap_p): New static function.
8165         (fold_comparison): Add another test for pointer overflow.  Use
8166         pointer_may_wrap_p to disable some false positives.
8167
8168 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
8169           
8170         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
8171         (fname_as_string): Match updated cpp_interpret_string prototype.
8172         (fix_string_type): Support char16_t* and char32_t*.
8173         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
8174         derivative) nodes.  Register as builtin if C++0x.
8175         (c_parse_error): Support CPP_CHAR{16,32}.
8176         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
8177         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
8178         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
8179         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
8180         CTI_CHAR32_ARRAY_TYPE>: New elements.
8181         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
8182         char32_type_node, signed_char32_type_node, char16_array_type_node,
8183         char32_array_type_node): New defines.
8184         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
8185         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
8186         (lex_string): Support CPP_STRING{16,32}, match updated
8187         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
8188         (lex_charconst): Support CPP_CHAR{16,32}.
8189         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
8190         and CPP_STRING{16,32}.
8191
8192 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
8193
8194         PR bootstrap/35457
8195         * aclocal.m4: Regenerate.
8196         * configure: Regenerate.
8197
8198 2008-04-18  Jan Hubicka  <jh@suse.cz>
8199
8200         * except.c (dw2_size_of_call_site_table,
8201         sjlj_size_of_call_site_table): Use vector API for call_site_record.
8202
8203         * cgraphbuild.c (build_cgraph_edges): Update.
8204         * tree-pass.h: Update comment.
8205         * final.c (leaf_function_p): Update.
8206         (leaf_renumber_regs): Update.
8207         (rest_of_clean_state): Update.
8208         * omp-low.c (expand_omp_parallel): Update.
8209         * ipa-reference.c (analyze_function): Update.
8210         * reorg.c (find_end_label): Update.
8211         (optimize_skip): Update.
8212         (fill_simple_delay_slots): Update.
8213         (fill_simple_delay_slots): Update.
8214         (make_return_insns): Update.
8215         (dbr_schedule): Update.
8216         * gimple-low.c (record_vars_into): Update.
8217         * cfgbuild.c (make_edges): Update.
8218         * function.c (assign_stack_local): Update.
8219         (assign_parm_adjust_stack_rtl): Update.
8220         (locate_and_pad_parm): Update.
8221         (allocate_struct_function): Do not initialize stack_alignment_needed
8222         and preferred_stack_boundary here.
8223         (stack_protect_prologue): Update.
8224         (stack_protect_epilogue): Update.
8225         (expand_function_start): Initialize stack_alignment_needed,
8226         preferred_stack_boundary and max_jumptable_ents.
8227         (expand_function_end): Update.
8228         (free_after_compilation): Do not NULLify epilogue_delay_list.
8229         * function.h (struct rtl_data): Add stack_protect_guard,
8230         stack_alignment_needed,
8231         preferred_stack_boundary, epilogue_delay_list.
8232         (struct function): Remove value_histograms, stack_alignment_needed,
8233         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
8234         last_label_uid,
8235         unexpanded_var_list, stack_protect_guard.
8236         (current_function_epilogue_delay_list): Remove.
8237         * ipa-type-escape.c (analyze_function): Update.
8238         * gimplify.c (pop_gimplify_context): Update comment.
8239         * calls.c (expand_call): Update.
8240         (emit_library_call_value_1): Update.
8241         * except.c (set_nothrow_function_flags): Update.
8242         * cfgexpand.c (get_decl_align_unit): Update.
8243         (create_stack_guard): Update.
8244         (estimated_stack_frame_size): Update.
8245         (expand_used_vars): Update.
8246         (tree_expand_cfg): Free histogram earliers, init expansion variables.
8247         * explow.c (allocate_dynamic_stack_space): Update.
8248         * tree-ssa-live.c (remove_unused_locals): Update.
8249         * varasm.c (mark_constant_pool): Update.
8250         * tree-inline.c (remap_decls): Update.
8251         (initialize_cfun): Update.
8252         (declare_return_variable): Update.
8253         (inline_forbidden_p): Update.
8254         (expand_call_inline): Update.
8255         (declare_inline_vars): Update.
8256         (tree_function_versioning): Update.
8257         * tree-flow.h (value_histograms): New.
8258         (VALUE_HISTOGRAMS): New macro.
8259         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
8260         last_label_uid.
8261         * tree-cfg.c (set_bb_for_stmt): Update.
8262         (replace_by_duplicate_decl): Update.
8263         (move_block_to_fn): Update.
8264         (new_label_mapper): Update.
8265         (dump_function_to_file): Update.
8266         * ipa-struct-reorg.c (build_data_structure): Update.
8267         * cfgrtl.c (print_rtl_with_bb): Update.
8268         * reload1.c (reload): Update.
8269         (reload): Update.
8270         * config/i386/i386.c (setup_incoming_varargs_64,
8271         ix86_compute_frame_layout): Update.
8272         * config/arc/arc.c (arc_output_function_epilogue): Update.
8273
8274 2008-04-18  Marius Strobl <marius@FreeBSD.org>
8275
8276         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
8277         for FreeBSD as well.
8278         * gthr-posix95.h: Likewise.
8279
8280 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
8281
8282         PR rtl-optimization/35838
8283         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
8284         out the byte offset of the first subreg.
8285
8286 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
8287
8288         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
8289         to split_ti instead of three separate calls with single member arrays.
8290         (subti3 splitter): Ditto.
8291         (adddi3 splitter): Ditto with split_di.
8292         (subdi3 splitter): Ditto.
8293         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
8294         two separate calls with single member arrays.  Swap match_dup
8295         operands 1 and 2 to better fit into the array.
8296         (negdi2 splitter): Ditto with split_di.
8297         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
8298         two separate calls with single member arrays.  Swap match_dup operands
8299         6 and 7 to better fit into the array.
8300
8301 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
8302
8303         * config/i386/i386.c (sse_builtin_type): New.
8304         (bdesc_sse_args): Likewise.
8305         (bdesc_sse_3arg): Removed.
8306         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
8307         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
8308         IX86_BUILTIN_ROUNDPS.
8309         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
8310         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
8311         IX86_BUILTIN_ROUNDPS.
8312         (ix86_expand_sse_4_operands_builtin): Removed.
8313         (ix86_expand_sse_operands_builtin): New.
8314         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
8315         and CODE_FOR_sse4_1_roundps.
8316         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
8317         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
8318
8319 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
8320
8321         PR target/35907
8322         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
8323         regs before frame pop when needed.  If use_backchain_to_restore_sp
8324         then load backchain into a temp reg to restore vr and vrsave.  Add
8325         code to restore vr after frame pop if possible.
8326
8327 2008-04-17  Richard Guenther  <rguenther@suse.de>
8328
8329         * tree-vn.c (expressions_equal_p): Do not check type
8330         equality or compatibility before calling operand_equal_p.
8331         * fold-const.c (operand_equal_p): Check equivalence of
8332         integer constants before bailing out due to signedness or
8333         precision differences.
8334         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
8335         spurious differences in type qualification.  Ignore types
8336         for COMPONENT_REFs at all.
8337
8338 2008-04-17  Christian Bruel  <christian.bruel@st.com>
8339
8340         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
8341         msw_skip comparison.
8342         
8343 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
8344
8345         PR c/35739
8346         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
8347         reg type.
8348
8349         PR tree-optimization/35899
8350         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
8351         rather than TREE_OPERAND.
8352
8353 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
8354
8355         PR target/35944
8356         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
8357         temporary registers.  Change operand predicate to general_operand.
8358         (remainderxf3): Ditto.
8359
8360 2008-04-16  Richard Guenther  <rguenther@suse.de>
8361
8362         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
8363         * tree-affine.c (aff_combination_expand): Look through some
8364         conversions.
8365
8366 2008-04-15  Doug Kwan  <dougkwan@google.com>
8367
8368         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
8369         for hex printing.
8370         * tree-pretty-print.c (dump_generic_node): Ditto.
8371         * final.c (output_addr_const): Ditto.
8372         * dwarf2out.c (output_cfi): Ditto.
8373         * c-pretty-print.c (pp_c_integer_constant): Ditto.
8374         * print-rtl.c (print_rtx): Ditto.
8375         * print-tree.c (print_node_brief, print_node): Ditto.
8376         * c-common.c (match_case_to_enum_1): Ditto.
8377         * sched-vis.c (print_value): Ditto.
8378         * config/i386/i386.c (print_operand): Cast to long unsigned int
8379         for hex printing.
8380
8381 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
8382         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
8383         MS Windows VirtualProtect function.
8384
8385 2008-04-15  Jan Hubicka  <jh@suse.cz>
8386
8387         * gengtype.c (write_root): Param_is argument is OK.
8388         * expr.c (expand_expr_real_1): Update call of get_exception_*.
8389         * function.h: Include varray.h
8390         (rtl_eh): New stucture based on except.c one.
8391         (call_site_record): New forward declaration and vector type.
8392         * calls.c (emit_call_1): Do not call
8393         note_current_region_may_contain_throw.
8394         * except.c (eh_status): Remove cur_region, try_region since they are
8395         unused.
8396         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
8397         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
8398         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
8399         Remove call_site_data_used, call_site_data_size.
8400         Turn call_site_record into vector in function.h.
8401         (note_current_region_may_contain_throw): Remove.
8402         (get_exception_pointer, get_exception_filter): Do not take struct
8403         function argument; update.
8404         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
8405         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
8406         build_post_landing_pads, dw2_build_landing_pads,
8407         sjlj_assign_call_site_values, sjlj_mark_call_sites,
8408         sjlj_emit_function_enter, sjlj_emit_function_enter, 
8409         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
8410         sjlj_build_landing_pads, finish_eh_generation,
8411         remove_exception_handler_label, remove_eh_handler,
8412         maybe_remove_eh_handler, add_reachable_handler,
8413         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
8414         add_action_record, collect_one_action_chain, add_call_site,
8415         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
8416         sjlj_output_call_site_table, output_function_exception_table,
8417         * except.h (note_current_region_may_contain_throw): Remove
8418         (get_exception_pointer, get_exception_filter): Do not take struct
8419         function argument.
8420         * Makefile.in (GTFILES): Put varargs before struct function.
8421
8422 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8423
8424         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
8425         punt for STRING_CST.
8426         (get_constraint_for): Deal with STRING_CST here instead.
8427
8428 2008-04-15  Richard Guenther  <rguenther@suse.de>
8429
8430         * tree-ssa-propagate.c (substitute_and_fold): Substitute
8431         statements in a basic-block with a backward walk.  Do not
8432         substitute into dead statements but instead remove those.
8433
8434 2008-04-15  Richard Guenther  <rguenther@suse.de>
8435
8436         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
8437         to zero, thus disable creation of SFTs.
8438
8439 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8440
8441         * tree-predcom.c (suitable_reference_p): Return false if the
8442         reference can throw.
8443
8444 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
8445
8446         PR c/35751
8447         * c-decl.c (finish_decl): If extern or static var has variable
8448         size, set TREE_TYPE (decl) to error_mark_node.
8449
8450 2008-04-15  Rafael Espindola  <espindola@google.com>
8451
8452         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
8453         variable arg1.
8454
8455 2008-04-15  Richard Guenther  <rguenther@suse.de>
8456
8457         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
8458         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
8459         (visit_reference_op_load): Do walk vuse-vdef chains on
8460         vn_reference_lookup.
8461         (visit_reference_op_store): But do not here.
8462         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
8463         vn_reference_lookup.
8464         (vn_lookup_with_vuses): But do so here.
8465
8466 2008-04-14  Ian Lance Taylor  <iant@google.com>
8467
8468         * fold-const.c (fold_overflow_warning): Remove assertion.
8469
8470 2008-04-15  Ben Elliston  <bje@au.ibm.com>
8471
8472         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
8473         temp1 local variables.
8474
8475 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
8476
8477         PR target/35661
8478         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
8479         ".text.unlikely" section as executable.
8480
8481 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
8482
8483         * config/ia64/ia64.c (rtx_needs_barrier): Handle
8484         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
8485         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
8486         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
8487         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
8488         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
8489         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
8490
8491 2008-04-14  Ian Lance Taylor  <iant@google.com>
8492
8493         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
8494         * fold-const.c (fold_comparison): If appropriate, test
8495         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
8496         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
8497         reassociating a pointer type.
8498         * doc/invoke.texi (Optimize Options): Document that
8499         -fstrict-overflow applies to pointer wraparound.
8500
8501 2008-04-13  Jan Hubicka  <jh@suse.cz>
8502
8503         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
8504
8505 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
8506
8507         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
8508         we are going to "save the world".
8509
8510 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
8511
8512         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
8513         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
8514         operand 0 constraint, not "=".
8515
8516 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
8517
8518         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
8519
8520 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
8521
8522         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
8523         of size of positions_needed * CHAR_BIT.
8524
8525 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
8526
8527         PR middle-end/35897
8528         * dse.c (store_info): Change positions_needed to unsigned
8529         HOST_WIDE_INT.
8530         (lowpart_bitmask): New.
8531         (record_store): Cast to unsigned HOST_WIDE_INT for
8532         positions_needed.  Assert width <= size of positions_needed *
8533         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
8534         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
8535         lowpart_bitmask to set mask.
8536
8537 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
8538
8539         * config/bfin/constraints.md: New file.
8540         * config/bfin/bfin.md: Include it.
8541         (adddi3): Use satisfies_constraint functions instead of the old macros.
8542         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
8543         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
8544         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
8545         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
8546         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
8547         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
8548         EXTRA_CONSTRAINT): Delete.
8549         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
8550         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
8551         of the old macros.
8552         * config/bfin/bfin.c: Include "tm-constrs.h".
8553         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
8554         Use satisfies_constraint functions instead of the old macros.
8555         * doc/md.texi (Blackfin Constraints): Update file name reference.
8556
8557 2008-04-11  Richard Guenther  <rguenther@suse.de>
8558
8559         PR tree-optimization/35869
8560         * tree-vrp.c (execute_vrp): Move switch statement update after
8561         jump threading.  Schedule another cfg cleanup run.
8562
8563 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
8564
8565         PR c/35744
8566         * attribs.c (decl_attributes): Return early on errorneous node.
8567
8568 2008-04-10  Oleg Ryjkov  <olegr@google.com>
8569
8570         * tree.h (struct tree_base): Added a new flag default_def_flag.
8571         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
8572
8573 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
8574
8575         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
8576
8577 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8578
8579         PR target/35768
8580         * pa.md: Define mode iterator P.  Define mode attribute dwc.
8581         (dcacheflush): Update pattern to use iterator P and attribute dwc.
8582         (icacheflush): Likewise.
8583         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
8584         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
8585
8586 2008-04-11  Ben Elliston  <bje@au.ibm.com>
8587
8588         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
8589
8590 2008-04-10  Rafael Espindola  <espindola@google.com>
8591
8592         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
8593         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
8594         (extract_range_from_expr): The same.
8595
8596 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
8597
8598         * config/mips/mips.md (GPR2): New mode iterator.
8599         (seq): Add comment.
8600         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
8601         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
8602         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
8603         Rewrite these to take two modes, the mode of comparison and the
8604         mode of the destination.
8605         * config/mips/mips.c (mips_expand_scc): Instead of having
8606         paradoxical subreg as destination, expand "narrowing" scc if mode
8607         of comparison is SI and target is requested in DI mode.
8608         (mips_emit_int_order_test): Update comment.  Make mode of
8609         comparison match CMP0 rather than TARGET.  When creating inverse
8610         target use mode of TARGET.
8611
8612 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
8613
8614         * gcov-dump.c (tag_summary): Only print summaries for the first
8615         GCOV_COUNTERS_SUMMABLE counters.
8616
8617 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
8618
8619         * config/i386/i386.md (absneg): New code iterator.
8620         (absnegprefix): New code attribute.
8621         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
8622         patterns using absneg code iterator.
8623         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
8624         using absneg code iterator.
8625         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
8626         *neg<mode>2 patterns using absneg code iterator.
8627         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
8628         *negextendsfdf2 patterns using absneg code iterator.
8629         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
8630         *negextendsfxf2 patterns using absneg code iterator.
8631         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
8632         *negextendsfdf2 patterns using absneg code iterator.
8633         * config/i386/sse.md (<code><mode>2): Macroize expander from
8634         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
8635
8636 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
8637
8638         * config/s390/s390.h: Remove the remains of the recent search
8639         & replace action of current_function_outgoing_args_size.
8640
8641 2008-04-10  Ira Rosen  <irar@il.ibm.com>
8642
8643         PR tree-optimization/35821
8644         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
8645         NEW_STMT_LIST is not NULL.
8646
8647 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
8648
8649         PR libstdc++/35597
8650         * toplev.c (process_options): Remove -ffunction-sections debugging
8651         warning.
8652
8653 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
8654
8655         PR middle-end/PR28690
8656         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
8657         than gen_rtx_fmt_ee to perform more canonicalizations.
8658
8659 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8660
8661         PR driver/35665
8662         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
8663
8664 2008-04-09  Richard Guenther  <rguenther@suse.de>
8665
8666         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
8667         (dump_function_to_file): Dump function arguments with types.
8668
8669 2008-04-08  Richard Guenther  <rguenther@suse.de>
8670
8671         * fold-const.c (fold_widened_comparison): Do not allow
8672         sign-changes that change the result.
8673
8674 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
8675
8676         PR target/35839
8677         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
8678         kinds of indirect references.
8679
8680 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
8681
8682         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
8683         GNU Fortran language string.
8684
8685 2008-04-08  Rafael Espindola  <espindola@google.com>
8686
8687         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
8688         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
8689         * tree.h (tree_call_nonnegative_warnv_p): New.
8690
8691 2008-04-08  Jan Hubicka  <jh@suse.cz>
8692
8693         * function.c (free_after_compilation): Clear out regno_reg_rtx
8694         pointer.
8695
8696 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
8697
8698         Revert
8699         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
8700
8701         PR middle-end/PR28690
8702         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
8703         same precedence as REG_POINTER and MEM_POINTER operands.
8704
8705 2008-04-08  Richard Guenther  <rguenther@suse.de>
8706
8707         PR middle-end/35834
8708         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
8709         for adding index to base.
8710
8711 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
8712
8713         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
8714         (MINGW_ENABLE_EXECUTE_STACK): New.
8715         (IN_LIBGCC2): For libgcc include windows.h file for
8716         function declarations.
8717
8718 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
8719
8720         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
8721         and tem2 if tem1 is not a REG or MULT.
8722
8723 2008-04-08  Jan Hubicka  <jh@suse.cz>
8724
8725         * function.h (incomming_args): Break out of struct function.
8726         (function_subsections): Break out of struct function.
8727         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
8728         return_rtx and hard_reg_initial_vals from struct function.
8729         Kill inl_max_label_num.
8730         (current_function_pops_args, current_function_args_info,
8731         current_function_args_size, current_function_args_size,
8732         current_function_pretend_args_size,
8733         current_function_outgoing_args_size,
8734         current_function_internal_arg_pointer, current_function_return_rtx):
8735         Kill compatibility accestor macros.
8736         * builtins.c (expand_builtin_apply_args_1): Update.
8737         (expand_builtin_next_arg): Update.
8738         * df-scan.c (df_get_call_refs): Update.
8739         * dbxout.c (dbxout_function_end): Update.
8740         * dwarf2out.c (dwarf2out_switch_text_section): Update.
8741         (output_line_info): Update.
8742         (secname_for_decl): Update.
8743         (dwarf2out_var_location): Update.
8744         * function.c (free_after_compilation): Update.
8745         (assign_parm_find_stack_rtl): Update.
8746         (assign_parms): Update.
8747         (expand_dummy_function_end): Update.
8748         (expand_function_end): Update.
8749         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
8750         (expand_call): Update.
8751         (emit_library_call_value_1): Update.
8752         (store_one_arg): Update.
8753         * varasm.c (initialize_cold_section_name): Update.
8754         (unlikely_text_section): Update.
8755         (unlikely_text_section_p): Update.
8756         (assemble_start_function): Update.
8757         (assemble_end_function): Update.
8758         (default_section_type_flags): Update.
8759         (switch_to_section): Update.
8760         * integrate.c (set_decl_abstract_flags): Update.
8761         (get_hard_reg_initial_val): Update.
8762         (has_hard_reg_initial_val): Update.
8763         (allocate_initial_values): Update.
8764         * resource.c (init_resource_info): Update.
8765         * config/alpha/alpha.c (NUM_ARGS): Update.
8766         (direct_return): Update.
8767         (alpha_va_start): Update.
8768         (alpha_sa_size): Update.
8769         (alpha_initial_elimination_offset): Update.
8770         (alpha_expand_prologue): Update.
8771         (alpha_start_function): Update.
8772         (alpha_expand_epilogue): Update.
8773         (unicosmk_initial_elimination_offset):
8774         * config/alpha/alpha.md (call expander): Update.
8775         * config/s390/s390.c (s390_register_info): Update.
8776         (s390_register_info): Update.
8777         (s390_frame_info): Update.
8778         (s390_initial_elimination_offset): Update.
8779         (s390_build_builtin_va_list): Update.
8780         (s390_va_start): Update.
8781         * config/spu/spu.c (direct_return): Update.
8782         (spu_expand_prologue): Update.
8783         (spu_initial_elimination_offset): Update.
8784         (spu_build_builtin_va_list): Update.
8785         (spu_va_start): Update.
8786         * config/sparc/sparc.c (sparc_init_modes): Update.
8787         (sparc_compute_frame_size): Update.
8788         (function_value): Update.
8789         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
8790         * config/i386/i386.md (return expander): Update.
8791         * config/i386/i386.c (ix86_va_start): Update.
8792         (ix86_can_use_return_insn_p): Update.
8793         (ix86_compute_frame_layout): Update.
8794         (ix86_expand_epilogue): Update.
8795         * config/sh/sh.c (output_stack_adjust): Update.
8796         (calc_live_regs): Update.
8797         (sh_expand_prologue): Update.
8798         (sh_builtin_saveregs): Update.
8799         (sh_va_start): Update.
8800         (initial_elimination_offset): Update.
8801         (sh_allocate_initial_value): Update.
8802         (sh_function_ok_for_sibcall): Update.
8803         (sh_get_pr_initial_val): Update.
8804         * config/sh/sh.md (return expander): Update.
8805         * config/avr/avr.c (frame_pointer_required_p): UPdate.
8806         * config/crx/crx.c (crx_compute_frame): UPdate.
8807         (crx_initial_elimination_offset): UPdate.
8808         * config/xtensa/xtensa.c (compute_frame_size): Update
8809         (xtensa_builtin_saveregs): Update.
8810         (xtensa_va_start): Update.
8811         (order_regs_for_local_alloc): Update.
8812         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
8813         (xstormy16_expand_builtin_va_start): Update.
8814         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
8815         * config/m68hc11/m68hc11.md (return expanders): Update.
8816         * config/m68hc11/m68hc11.c (expand_prologue): Update.
8817         (expand_epilogue): Update.
8818         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
8819         (cris_simple_epilogue): Update.
8820         (cris_expand_prologue): Update.
8821         (cris_expand_epilogue): Update.
8822         * config/iq2000/iq2000.c (iq2000_va_start): Update.
8823         (compute_frame_size): Update.
8824         * config/mt/mt.c (mt_compute_frame_size): Update.
8825         * config/mn10300/mn10300.c (expand_prologue): Update.
8826         (expand_epilogue): Update.
8827         (initial_offset): Update.
8828         (mn10300_builtin_saveregs):
8829         * config/mn10300/mn10300.md (return expander): Update.
8830         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
8831         (ia64_initial_elimination_offset): Update.
8832         (ia64_initial_elimination_offset): Update.
8833         (ia64_expand_prologue): Update.
8834         * config/m68k/m68k.md (return expander): Update.
8835         * config/rs6000/rs6000.c (rs6000_va_start): Update.
8836         (rs6000_stack_info): Update.
8837         * config/mcore/mcore.c (layout_mcore_frame): Update.
8838         (mcore_expand_prolog): Update.
8839         * config/arc/arc.c (arc_compute_frame_size): Update.
8840         * config/score/score3.c (score3_compute_frame_size): Update.
8841         * config/score/score7.c (score7_compute_frame_size): Update.
8842         * config/arm/arm.c (use_return_insn): Update.
8843         (thumb_find_work_register): Update.
8844         (arm_compute_save_reg_mask): Update.
8845         (arm_output_function_prologue): Update.
8846         (arm_output_epilogue): Update.
8847         (arm_size_return_regs): Update.
8848         (arm_get_frame_offsets): Update.
8849         (arm_expand_prologue): Update.
8850         (thumb_exit): Update.
8851         (thumb_unexpanded_epilogue): Update.
8852         (thumb1_output_function_prologue): Update.
8853         * config/pa/pa.md (return expander): Update.
8854         * config/pa/pa.c (compute_frame_size): Update.
8855         (hppa_builtin_saveregs): Update.
8856         * config/mips/mips.c (mips_va_start): Update.
8857         (mips16_build_function_stub): Update.
8858         (mips_compute_frame_info): Update.
8859         (mips_restore_gp): Update.
8860         (mips_output_function_prologue): Update.
8861         (mips_expand_prologue): Update.
8862         * config/v850/v850.c (compute_frame_size): Update.
8863         (expand_prologue): * config/mmix/mmix.c (along): update.
8864         (mmix_initial_elimination_offset): update.
8865         (mmix_reorg): update.
8866         (mmix_use_simple_return): update.
8867         (mmix_expand_prologue): update.
8868         (mmix_expand_epilogue): Update.
8869         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
8870         (emit_link_insn): Update.
8871
8872 2008-04-08  Anatoly Sokolov <aesok@post.ru>
8873
8874         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
8875         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
8876         instructions.
8877         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
8878         atmega103 device.
8879
8880 2008-04-07  Jan Hubicka  <jh@suse.cz>
8881
8882         * function.h (rtl): Rename to x_rtl.
8883         (crtl): New define.
8884         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
8885         frame_offset, stack_check_probe_note, arg_pointer_save_area,
8886         used_temp_slots avail_temp_slots, temp_slot_level,
8887         nonlocal_goto_handler_labels): Update accesstors.
8888         (rtl): New global variable.
8889         (struct function): Move some fileds to rtl_data.
8890         (get_arg_pointer_save_area): Update prototype.
8891         * builtins.c (expand_builtin_setjmp_receiver): Update call of
8892         get_arg_pointer_save_area.
8893         * expr.c (init_expr): Update
8894         * function.c (get_frame_size): Update
8895         (assign_stack_local): Update
8896         (expand_function_end): Update.
8897         (get_art_pointer_save_area): Update
8898         * function.h 
8899         * emit-rtl.c (rtl): Declare.
8900         (regno_reg_rtx): Declare.
8901         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
8902         Update.
8903         (gen_reg_rtx): Update.
8904         * varasm.c (n_deferred_constatns): Update accestor.
8905         (init_varasm_status): Do not allocate varasm_status.
8906         (force_const_mem, get_pool_size, output_constant_pool): Update.
8907         * stmt.c (force_label_rtx): Do not use x_ prefixes.
8908         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
8909         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
8910         * sparc/sparc.h (INIT_EXPANDERS): Update.
8911         * ia64/ia64.h (INIT_EXPANDERS): Update.
8912
8913 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
8914
8915         * reload.c (push_secondary_reload): Add missing break to for loop.
8916
8917 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
8918
8919         PR middle-end/PR28690
8920         * rtlanal.c: Update copyright years.
8921         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
8922         as REG_POINTER and MEM_POINTER operands.
8923         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
8924         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
8925         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
8926         * gcse.c: Update copyright years.
8927         (pre_delete): Call gen_reg_rtx_and_attrs.
8928         (hoist_code): Likewise.
8929         (build_store_vectors): Likewise.
8930         (delete_store): Likewise.
8931         * loop-invariant.c (move_invariant_reg): Likewise.
8932         Update copyright years.
8933
8934 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
8935
8936         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
8937         control string instead of quoted.
8938
8939 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
8940
8941         * doc/rtl.texi: Rewrite of subreg section.
8942
8943 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
8944
8945         PR/35842
8946         * config/i386/i386.c (legitimize_pic_address): Add treating
8947         of dllimport SYM_REF's.
8948         (legitimize_dllimport_symbol): Add prototype.
8949
8950 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
8951
8952         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
8953         reference in constructor with non self-referential type.
8954
8955 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
8956
8957         Removal of Return with Depressed Stack Pointer support
8958         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
8959         (ECF_SP_DEPRESSED): Likewise.
8960         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
8961         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
8962         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
8963         (expand_call): Do not test ECF_SP_DEPRESSED.
8964         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
8965         * function.c (keep_stack_depressed): Delete.
8966         (handle_epilogue_set): Likewise.
8967         (update_epilogue_consts): Likewise.
8968         (emit_equiv_load): Likewise.
8969         (thread_prologue_and_epilogue_insns): Remove support for Return with
8970         Depressed Stack Pointer.
8971         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
8972
8973 2008-04-06  Richard Guenther  <rguenther@suse.de>
8974
8975         PR tree-optimization/35400
8976         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
8977         information from SSA_NAMEs.
8978
8979 2008-04-06  Anatoly Sokolov <aesok@post.ru>
8980
8981         * config/avr/avr.h (avr_mega_p): Remove declaration.
8982         (AVR_MEGA): Remove macro.
8983         * config/avr/avr.c (avr_mega_p): Remove variable.
8984         (avr_override_options): Remove inicializion of avr_mega_p.
8985         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
8986         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
8987         (avr_jump_mode): (Ditto.).
8988         (avr_output_progmem_section_asm_op): (Ditto.).
8989         (avr_asm_init_sections): (Ditto.).
8990         (avr_asm_init_sections): (Ditto.).
8991         (avr_rtx_costs): (Ditto.).
8992         * config/avr/avr.md: (Ditto.).
8993         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
8994         '__AVR_MEGA__'.
8995
8996 2008-04-06  Richard Guenther  <rguenther@suse.de>
8997
8998         PR tree-optimization/35842
8999         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
9000         is_gimple_invariant_address.
9001
9002 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9003
9004         * gcc.c (default_compilers): Sync Fortran extensions list with
9005         that in fortran/lang-specs.h.
9006         * doc/invoke.texi: Likewise.
9007         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
9008         * dwarf2out.c (gen_compile_unit_die): Likewise.
9009
9010 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
9011
9012         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
9013
9014 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
9015
9016         PR target/12329
9017         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
9018         attribute is used for nested functions.
9019
9020 2008-04-05  Jan Hubicka  <jh@suse.cz>
9021
9022         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
9023
9024         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
9025         letter argument.
9026         (dump_files): Update.
9027         (enable_rtl_dump_file): Do not accept letter argument.
9028         * tree-pass.h (dump_file_info): Remove letter argument.
9029         * toplev.c (decode_d_option): Update -da handling.
9030         * toplev.h (enable_rtl_dump_file): Update prototype.
9031         * passes.c (register_one_dump_file): Do not accept IPA argument; work
9032         it out based on pass type.
9033         (register_dump_files_1): Likewise.
9034         (init_optimization_passes): Update register_one_dump_file calls.
9035         (execute_one_pass): Sanity check that IPA passes are called at IPA
9036         level and RTL passes at RTL level.
9037         (execute_pass_list): IPA pass can not be after or subpass of
9038         GIMPLE/RTL pass.
9039         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
9040         disallov RTL subpasses of IPA subpasses.
9041
9042 2008-04-05  Ben Elliston  <bje@au.ibm.com>
9043
9044         * tree-cfg.c (need_fake_edge_p): Return false for calls to
9045         builtins that return exactly once and do not throw. Cache call to
9046         call_expr_flags.
9047
9048 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
9049
9050         PR rtl-optimization/34916
9051         PR middle-end/35519
9052         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
9053         between instruction pairs.
9054
9055 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
9056
9057         * doc/invoke.texi: Document -mbitops for SH.
9058         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
9059         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
9060         * config/sh/sh.c (print_operand): Add %t operand code.
9061         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
9062         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
9063         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
9064         (extendqihi2): Likewise.
9065         (movqi_i): Likewise.
9066         (insv): Use bset, bclr and bst instructions for SH2A if possible.
9067         (extv): Use bld instruction for SH2A if possible.
9068         (extzv): Likewise.
9069         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
9070         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
9071         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
9072         (bset.b, bclr.b): Define peepholes.
9073         * config/sh/sh.opt (mbitops): New option.
9074
9075 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
9076
9077         PR target/35620
9078         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
9079         and view convert expression.
9080
9081 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
9082
9083         PR target/35364
9084         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
9085
9086 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
9087
9088         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
9089
9090         * config/i386/cpuid.h (bit_AES): New.
9091         (bit_PCLMUL): Likewise.
9092
9093         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
9094         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
9095         SSE2 if AES or PCLMUL is enabled.
9096         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
9097         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
9098         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
9099         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
9100         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
9101         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
9102         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
9103         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
9104         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
9105         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
9106         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
9107         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
9108         __builtin_ia32_aeskeygenassist128 and
9109         __builtin_ia32_pclmulqdq128.
9110         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
9111         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
9112         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
9113
9114         * config/i386/i386.h (TARGET_AES): New.
9115         (TARGET_PCLMUL): Likewise.
9116         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
9117
9118         * config/i386/i386.md (UNSPEC_AESENC): New.
9119         (UNSPEC_AESENCLAST): Likewise.
9120         (UNSPEC_AESDEC): Likewise.
9121         (UNSPEC_AESDECLAST): Likewise.
9122         (UNSPEC_AESIMC): Likewise.
9123         (UNSPEC_AESKEYGENASSIST): Likewise.
9124         (UNSPEC_PCLMUL): Likewise.
9125
9126         * config/i386/i386.opt (maes): New.
9127         (mpclmul): Likewise.
9128
9129         * config/i386/sse.md (aesenc): New pattern.
9130         (aesenclast): Likewise.
9131         (aesdec): Likewise.
9132         (aesdeclast): Likewise.
9133         (aesimc): Likewise.
9134         (aeskeygenassist): Likewise.
9135         (pclmulqdq): Likewise.
9136
9137         * config/i386/wmmintrin.h: New.
9138
9139         * doc/extend.texi: Document AES and PCLMUL built-in function.
9140
9141         * doc/invoke.texi: Document -maes and -mpclmul.
9142
9143 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
9144
9145         * function.c (free_after_parsing): Replace with
9146         cxx_push_function_context from C++ front-end.
9147         (allocate_struct_function): Don't call langhook.
9148         * langhooks.h (struct lang_hooks_for_functions): Delete.
9149         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
9150         member "function".
9151         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
9152         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
9153         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
9154         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
9155         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
9156         remove LANG_HOOKS_FUNCTION_INITIALIZER.
9157         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
9158
9159         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
9160         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
9161         
9162 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
9163
9164         PR c/35440
9165         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
9166         for all types.
9167
9168 2008-04-04  Richard Guenther  <rguenther@suse.de>
9169
9170         PR middle-end/35823
9171         * fold-const.c (optimize_minmax_comparison): Use the correct
9172         type for the constant in the simplified comparison.
9173
9174 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
9175
9176         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
9177         Pass L2 size as "--param l2-cache-size" to the compiler.
9178         (decode_l2_cache): New function to decode L2 cache parameters using
9179         0x8000006 extended cpuid function.
9180         (detect_caches_amd): Determine parameters of L2 cache using
9181         decode_l2_caches function.
9182         (decode_caches_intel): Decode L2 cache parameters.
9183         (detect_caches_intel): Determine L2 cache parameters using
9184         decode_caches_intel and decode_l2_caches functions.
9185
9186 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
9187
9188         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
9189         secondary input reload for subword loads from the constant pool.
9190
9191 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
9192
9193         PR target/35713
9194         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
9195           constants of the appropriate size for runtime calculations.
9196
9197         PR c/35712
9198         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
9199           decimal-float literal constant zero.
9200
9201 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
9202
9203         PR c/35738
9204         * c-parser.c (c_parser_omp_atomic): Call
9205         default_function_array_conversion on the RHS.
9206
9207         PR middle-end/35818
9208         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
9209         call is_variable_sized if decl has incomplete type.
9210
9211 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
9212
9213         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
9214
9215 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
9216
9217         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
9218         iterators.
9219         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
9220         (sgt<u>): Merge sgt and sgtu into new expander.
9221         (sgt, sgtu): Remove expanders.
9222         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
9223         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
9224         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
9225         *sgtu_<mode>_mips16 into new pattern.
9226         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
9227         (sge<u>): Merge sge and sgeu into new expander.
9228         (sge, sgeu): Remove expanders.
9229         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
9230         new pattern.
9231         (*sge_<mode>, second *sge_<mode>): Remove patterns.
9232         (slt<u>): Merge slt and sltu into new expander.
9233         (slt, sltu): Remove expanders.
9234         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
9235         (*slt_<mode>, *sltu_<mode>): Remove patterns.
9236         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
9237         *sltu_<mode>_mips16 into new pattern.
9238         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
9239         (sle<u>): Merge sle and sleu into new expander.
9240         (sle, sleu): Remove expanders.
9241         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
9242         (*sle_<mode>, *sleu_<mode>): Remove patterns.
9243         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
9244         *sleu_<mode>_mips16 into new pattern.
9245         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
9246
9247 2008-04-03  Jan Hubicka  <jh@suse.cz>
9248
9249         PR tree-optimization/35795
9250         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
9251         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9252         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9253         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
9254         * score/score3.c (score3_output_mi_thunk): Likewise.
9255         * score/score7.c (score7_output_mi_thunk): Likewise.
9256         * mips/mips.c (mips_output_mi_thunk): Likewise.
9257
9258 2008-04-03  Richard Guenther  <rguenther@suse.de>
9259
9260         * tree-vrp.c (extract_range_from_unary_expr): Handle all
9261         conversions.  Simplify code.
9262
9263 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
9264
9265         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
9266
9267 2008-04-03  Tom Tromey  <tromey@redhat.com>
9268             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9269
9270         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
9271         * config/bfin/t-bfin-linux (generated_files): Add
9272         linux-sysroot-suffix.h.
9273         * doc/install.texi (Prerequisites): Require make 3.80.
9274         * doc/sourcebuild.texi (Front End Directory): Document new
9275         variable.
9276         * Makefile.in (generated_files): New variable.
9277         (ALL_HOST_OBJS): New variable.
9278         ($(ALL_HOST_OBJS)): New target.
9279
9280 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
9281
9282         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
9283         (remap_block): Call id->transform_lang_insert_block instead
9284         of langhook.
9285         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
9286         Set id.transform_lang_insert_block to NULL.
9287         (clone_body): Move to cp/optimize.c
9288         * tree-inline.h (struct copy_body_data): Change
9289         transform_lang_insert_block to function pointer.
9290         (copy_generic_body, copy_decl_no_change): Export.
9291         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
9292         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
9293         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
9294
9295         * c-tree.h (insert_block): Kill.
9296         * c-decl.c (insert_block): Kill.
9297
9298 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
9299
9300         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9301         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
9302         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
9303         argument.
9304         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
9305         argument, call {push,pop}_function_context from here.
9306         * c-parser.c: Use c_{push,pop}_function_context.
9307
9308         * function.c (push_function_context_to): Move meat ...
9309         (push_function_context): ... here.  Simplify.
9310         * function.c (pop_function_context_from): Move meat ...
9311         (pop_function_context): ... here.  Simplify.
9312         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
9313         leave_nested).
9314         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9315         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
9316         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
9317         * tree.h (push_function_context_to, pop_function_context_from): Remove.
9318
9319 2008-04-03  Ben Elliston  <bje@au.ibm.com>
9320
9321         * expmed.c (extract_force_align_mem_bit_field): Remove.
9322
9323 2008-04-03  Richard Guenther  <rguenther@suse.de>
9324
9325         PR middle-end/35800
9326         * expr.h (try_casesi): Adjust prototype.
9327         * expr.c (try_casesi): Take fallback label as extra parameter.
9328         Use that for gen_casesi if default_label is NULL.
9329         * stmt.c (expand_case): Pass fallback label to try_casesi,
9330         make sure to fill gaps with a fallback label if default_label
9331         is not present.
9332
9333 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
9334
9335         PR target/35801
9336         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
9337
9338 2008-04-03  Ben Elliston  <bje@au.ibm.com>
9339
9340         * expmed.c (extract_split_bit_field): Remove if (0) code.
9341         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
9342         (do_ds_constraint): Likewise.
9343
9344 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
9345
9346         * doc/cppopts.texi (-dU): Document.
9347         * c-common.h (flag_dump_macros): Update comment.
9348         * c-opts.c (handle_OPT_d): Handle -dU.
9349         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
9350         dump_queued_macros, cb_used_define, cb_used_undef): New.
9351         (init_pp_output): Handle -dU.
9352         (cb_line_change): Call dump_queued_macros.
9353         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
9354
9355 2008-04-02  Anatoly Sokolov <aesok@post.ru>
9356
9357         * config/avr/predicates.md (io_address_operand): New predicate. 
9358         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
9359         * config/avr/avr.c (avr_io_address_p): Remove function.
9360         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
9361         'avr_io_address_p' function.
9362         (out_movhi_r_mr): (Ditto.).
9363         (out_movqi_mr_r): (Ditto.).
9364         (out_movhi_mr_r): (Ditto.).
9365         (avr_address_cost): (Ditto.).
9366
9367 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
9368
9369         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
9370         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
9371         in 32bit mode when XMM registers are available to avoid store
9372         forwarding stalls.
9373         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
9374         corresponding post-reload splitters.
9375
9376 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9377
9378         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
9379         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
9380         __builtin_ia32_roundss.
9381         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
9382         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
9383         __builtin_ia32_roundss.
9384         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
9385         IX86_BUILTIN_SHUFPD here.
9386
9387 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9388
9389         * config/i386/i386.md (plogic): New.
9390         (plogicprefix): Likewise.
9391
9392         * config/i386/mmx.md (mmx_<code><mode>3): New.
9393         (mmx_and<mode>3): Removed.
9394         (mmx_ior<mode>3): Likewise.
9395         (mmx_xor<mode>3): Likewise.
9396
9397         * config/i386/sse.md (<code><mode>3): New.
9398         (*<code><mode>3): Likewise.
9399         (*<code><mode>3): Likewise.
9400         (<code><mode>3): Likewise.
9401         (*sse_<code><mode>3): Likewise.
9402         (*sse2_<code><mode>3): Likewise.
9403         (<code>tf3): Likewise.
9404         (*<code>tf3): Likewise.
9405         (and<mode>3): Likewise.
9406         (*and<mode>3): Likewise.
9407         (ior<mode>3): Removed.
9408         (*ior<mode>3): Likewise.
9409         (xor<mode>3): Likewise.
9410         (*xor<mode>3): Likewise.
9411         (*and<mode>3): Likewise.
9412         (*ior<mode>3): Likewise.
9413         (*xor<mode>3): Likewise.
9414         (and<mode>3): Likewise.
9415         (*sse_and<mode>3): Likewise.
9416         (*sse2_and<mode>3): Likewise.
9417         (andtf3): Likewise.
9418         (*andtf3): Likewise.
9419         (ior<mode>3): Likewise.
9420         (*sse_ior<mode>3): Likewise.
9421         (*sse2_ior<mode>3): Likewise.
9422         (iortf3): Likewise.
9423         (*iortf3): Likewise.
9424         (xor<mode>3): Likewise.
9425         (*sse_xor<mode>3): Likewise.
9426         (*sse2_xor<mode>3): Likewise.
9427         (xortf3): Likewise.
9428         (*xortf3): Likewise.
9429
9430 2008-04-02  Richard Guenther  <rguenther@suse.de>
9431
9432         PR tree-optimization/14495
9433         PR tree-optimization/34793
9434         * tree-vrp.c (struct switch_update): New structure.
9435         (to_remove_edges, to_update_switch_stmts): New VECs.
9436         (simplify_switch_using_ranges): New function.  Remove not taken
9437         case labels and edges.
9438         (simplify_stmt_using_ranges): Call it.
9439         (identify_jump_threads): Mark edges we have queued for removal
9440         so we don't thread them.
9441         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
9442         case label vector.
9443         * tree-cfg.c (group_case_labels): Deal with missing default label.
9444         (tree_verify_flow_info): Allow missing default label.
9445         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
9446         (emit_case_nodes): Likewise.
9447         (expand_case): Do not rely on the default label to be present.
9448         * expr.c (try_casesi): Deal with NULL default_label.
9449         (do_tablejump): Likewise.
9450
9451 2008-04-02  Richard Guenther  <rguenther@suse.de>
9452
9453         PR tree-optimization/14495
9454         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
9455         SWITCH_EXPR here ...
9456         (vrp_visit_switch_stmt): ... but here (new function).
9457         (find_case_label_index): New helper function.
9458         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
9459
9460 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9461
9462         * fwprop.c: Fix ISO-C99ism.
9463
9464 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9465
9466         PR bootstrap/35752
9467         * Makefile.in (objdir): Set it here.
9468         * configure.ac: Not here.  Find dynamic linker characteristics.
9469         * exec-tool.in: Use them.
9470         * aclocal.m4: Regenerate.
9471         * configure: Regenerate.
9472
9473 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9474
9475         * expr.c (expand_var): Delete it.
9476         * expr.h (expand_var): Delete prototype.
9477         * function.c (expand_function_start): Use expand_decl instead.
9478         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
9479         langhook.
9480
9481 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
9482
9483         PR rtl-optimization/35542
9484         * fwprop.c (forward_propagate_and_simplify): Replace
9485         loc_reg_mentioned_in_p with reg_mentioned_p.
9486
9487 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9488
9489         PR rtl-optimization/35281
9490         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
9491         (propagate_rtx_1): Handle PR_HANDLE_MEM.
9492         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
9493         (varying_mem_p): Move above propagate_rtx.
9494         (all_uses_available_at): Do not check MEMs.
9495
9496 2008-04-02  Rafael Espindola  <espindola@google.com>
9497
9498         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
9499         (register_edge_assert_for_2): Split the cond argument.
9500         (register_edge_assert_for_1): Adjust for the change in
9501         register_edge_assert_for_2.
9502         (register_edge_assert_for): Split the cond argument.
9503         (find_switch_asserts): Adjust for the change in
9504         register_edge_assert_for.
9505
9506 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
9507
9508         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
9509         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
9510         offsets for 64-bit mingw.
9511         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
9512         abi for x86_64-pc-mingw.
9513
9514 2008-04-02  Richard Guenther  <rguenther@suse.de>
9515
9516         * tree-vrp.c (extract_range_from_assert): Make sure to not
9517         produce range min/max with TREE_OVERFOW set.
9518         If merging a anti-range and a range keep the anti-range if
9519         the range covers all values of the type.
9520         (register_edge_assert_for_2): Only allow sign-changing
9521         conversions in detecting canonical range checks.  Also
9522         register an assert for the unsigned name if useful.
9523
9524         PR tree-optimization/35787
9525         * tree-vrp.c (vrp_val_max): New function.
9526         (vrp_val_min): Likewise.
9527         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
9528         (vrp_val_is_min): Likewise.
9529         (supports_overflow_infinity): Use vrp_val_{min,max}.
9530         (negative_overflow_infinity): Likewise.
9531         (positive_overflow_infinity): Likewise.
9532         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
9533         (is_positive_overflow_infinity): Likewise.
9534         (is_overflow_infinity): Likewise.
9535         (avoid_overflow_infinity): Use vrp_val_{min,max} and
9536         vrp_val_is_{min,max}.
9537         (set_and_canonicalize_value_range): Canonicalize anti-ranges
9538         to ranges if possible.  Avoid empty ranges.
9539
9540 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9541
9542         PR middle-end/35705
9543         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
9544         the expression is a function address.
9545
9546 2008-04-01  George Helffrich  <george@gcc.gnu.org>
9547
9548         PR fortran/35154, fortran/23057
9549         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
9550         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
9551         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
9552         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
9553         in common.
9554         (dbxout_syms): Check for COMMON-based symbol and wrap in
9555         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
9556         in bracket for efficiency.
9557
9558         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
9559         using DW_TAG_common_block + member offset.
9560         (add_pubname_string): New function.
9561         (dw_expand_expr): New function to find block name and offset for
9562         COMMON var.
9563         (common_check): New function to check whether symbol in Fortran COMMON.
9564         (gen_variable_die): If COMMON, use DW_TAG_common_block.
9565
9566 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
9567
9568         PR c/35436
9569         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
9570
9571 2008-04-02  Ben Elliston  <bje@au.ibm.com>
9572
9573         * config/v850/v850.md (casesi): Remove if (0) code.
9574         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
9575         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
9576
9577 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
9578
9579         * config/i386/i386.md (rex64suffix): New mode attribute.
9580         (floathi<mode>2): Disable expander for SSE math.
9581         (*floathi<mode>2_1): New insn insn_and_split pattern.
9582         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
9583         corresponding post-reload splitters.
9584         (*floathi<mode>2_i387): New macroized insn pattern.
9585         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
9586         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
9587         insn_and_split pattern.
9588         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
9589         New macroized instruction patterns and corresponding post-reload
9590         splitters.
9591         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
9592         and corresponding post-reload splitters.
9593         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
9594         New macroized instruction patterns.
9595         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
9596         macroized instruction patterns and corresponding post-reload splitters.
9597         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
9598         corresponding post-reload splitters.
9599         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
9600         New macroized instruction patterns.
9601         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
9602         corresponding post-reload splitters.
9603         (*floatsi<mode>2_i387): New macroized instruction patterns.
9604
9605 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
9606
9607         * config/i386/i386.md (smaxmin): New.
9608         (umaxmin): Likewise.
9609         (maxminiprefix): Likewise.
9610         (maxminfprefix): Likewise.
9611         (<code><mode>3): Likewise.
9612         (smin<mode>3): Removed.
9613         (smax<mode>3): Likewise.
9614
9615         * config/i386/mmx.md (mmx_<code>v2sf3): New.
9616         (mmx_<code>v4hi3): Likewise.
9617         (mmx_<code>v8qi3): Likewise.
9618         (mmx_smaxv2sf3): Removed.
9619         (mmx_sminv2sf3): Likewise.
9620         (mmx_umaxv8qi3): Likewise.
9621         (mmx_smaxv4hi3): Likewise.
9622         (mmx_uminv8qi3): Likewise.
9623         (mmx_sminv4hi3): Likewise.
9624
9625         * config/i386/sse.md (<addsub><mode>3): New.
9626         (*<addsub><mode>3): Likewise.
9627         (<sse>_vm<addsub><mode>3): Likewise.
9628         (<maxmin><mode>3): Likewise.
9629         (*<maxmin><mode>3_finite): Likewise.
9630         (*<maxmin><mode>3): Likewise.
9631         (<sse>_vm<maxmin><mode>3): Likewise.
9632         (sse3_h<addsub>v4sf3): Likewise.
9633         (sse3_h<addsub>v2df3): Likewise.
9634         (<maxmin>v16qi3): Likewise.
9635         (*<maxmin>v16qi3): Likewise.
9636         (<maxmin>v8hi3): Likewise.
9637         (*<maxmin>v8hi3): Likewise.
9638         (*sse4_1_<maxmin><mode>3): Likewise.
9639         (*sse4_1_<maxmin><mode>3): Likewise.
9640         (add<mode>3): Removed.
9641         (*add<mode>3): Likewise.
9642         (<sse>_vmadd<mode>3): Likewise.
9643         (sub<mode>3): Likewise.
9644         (*sub<mode>3): Likewise.
9645         (<sse>_vmsub<mode>3): Likewise.
9646         (smin<mode>3): Likewise.
9647         (*smin<mode>3_finite): Likewise.
9648         (*smin<mode>3): Likewise.
9649         (<sse>_vmsmin<mode>3): Likewise.
9650         (smax<mode>3): Likewise.
9651         (*smax<mode>3_finite): Likewise.
9652         (*smax<mode>3): Likewise.
9653         (<sse>_vmsmax<mode>3): Likewise.
9654         (sse3_haddv4sf3): Likewise.
9655         (sse3_haddv2df3): Likewise.
9656         (sse3_hsubv4sf3): Likewise.
9657         (sse3_hsubv2df3): Likewise.
9658         (umaxv16qi3): Likewise.
9659         (*umaxv16qi3): Likewise.
9660         (smaxv8hi3): Likewise.
9661         (*smaxv8hi3): Likewise.
9662         (*sse4_1_smax<mode>3): Likewise.
9663         (*sse4_1_umax<mode>3): Likewise.
9664         (uminv16qi3): Likewise.
9665         (*uminv16qi3): Likewise.
9666         (sminv8hi3): Likewise.
9667         (*sminv8hi3): Likewise.
9668         (*sse4_1_smin<mode>3): Likewise.
9669         (*sse4_1_umin<mode>3): Likewise.
9670
9671 2008-04-01  Rafael Espindola  <espindola@google.com>
9672
9673         * tree-cfg.c (verify_expr): remove in_phi.
9674         (verify_stmt): Don't call walk_tree with verify_expr. Use
9675         is_gimple_min_invariant instead of is_gimple_val.
9676
9677 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
9678
9679         * doc/include/gpl_v3.texi: Update for manpage generation.
9680         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
9681         gpl.texi.
9682         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
9683         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
9684         gpl_v3.texi instead of gpl.texi.
9685         (gpl.pod): New.
9686
9687 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
9688
9689         PR pch/13675
9690         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
9691
9692 2008-04-01  Rafael Espindola  <espindola@google.com>
9693
9694         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
9695         (extract_code_and_val_from_cond): Use
9696         extract_code_and_val_from_cond_with_ops.
9697
9698 2008-04-01  Jan Hubicka  <jh@suse.cz>
9699
9700         * function.c (free_after_compilation): Free epilogue_delay_list.
9701         (prepare_function_start): Assert that previous compilation was freed.
9702
9703 2008-04-01  Jan Hubicka  <jh@suse.cz>
9704             Jim Wilson  <wilson@tuliptree.org>
9705             Andreas Tobler <andreast@gcc.gnu.org>
9706
9707         PR middle-end/35781
9708         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
9709         rtl.emit instead cfun->emit.
9710         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
9711         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
9712
9713 2008-04-01  Ben Elliston  <bje@au.ibm.com>
9714
9715         * doc/c-tree.texi (Function Basics): Fix grammatical error.
9716
9717 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
9718
9719         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
9720         New options
9721         (fprofile-use): Add var flag_profile_use
9722         * coverage.c (coverage_begin_output): Do not open a gcno file for
9723         output only if -ftest-coverage is set.
9724         Do not add getpwd() to gcda file path.
9725         (build_gcov_info): Check the new flag
9726         flag_profile_datafile_relative_path.
9727         (coverage_init): Use profile_data_prefix.
9728         Read profile counter only if flag_profile_use is set.
9729         * opts.c (common_handle_option): New option fprofile-use=,
9730         fprofile-dir=, fprofile-generate=.
9731         * toplev.c (profile_data_prefix): New variable definition.
9732         * toplev.h (profile_data_prefix): New declaration.
9733         * doc/invoke.tex (Option Summary, Optimization Options):
9734         Add new options.
9735
9736 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
9737
9738         * varasm.c (output_constant_pool_1): In LABEL_REF check,
9739         use tmp consistently.
9740
9741         PR target/35695
9742         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
9743         * config/ia64/ia64.c (rtx_needs_barrier): Handle
9744         UNSPEC_FR_RECIP_APPROX_RES.
9745         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
9746
9747 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
9748
9749         PR c/35750
9750         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
9751
9752 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9753
9754         PR middle-end/30186
9755         * fold-const.c (fold_indirect_ref_1): Support accessing non first
9756         element of the vector via a pointer.
9757
9758 2008-03-31  Ian Lance Taylor  <iant@google.com>
9759
9760         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
9761
9762 2008-03-31  Jan Hubicka  <jh@suse.cz>
9763
9764         * builtins.c (expand_builtin_setjmp_receiver): Update call of
9765         get_arg_pointer_save_area.
9766         * expr.c (init_expr): Just clear out rtl.expr.
9767         * function.c (free_after_compilation): Clear out whole RTL structure.
9768         (get_func_frame_size): Merge into ...
9769         (get_frame_size): ... this one.
9770         (assign_stack_local_1): Merge into ...
9771         (assign_stack_local): ... this one.
9772         (expand_function_end): Update call of get_arg_pointer_save_area.
9773         (get_art_pointer_save_area): Remove cfun argument.
9774         * function.h (emit_status): regno_pointer_align does not need length
9775         attribute. Move x_regno_reg_rtx to ...
9776         (regno_reg_rtx): ... new global array.
9777         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
9778         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
9779         apply_args_value, forced_labels, stack_pointer_delta):
9780         Update accestors.
9781         (struct varasm_status): Move here from varasm.c
9782         (struct rtl_data): New. Move here some fields from struct function.
9783         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
9784         frame_offset, stack_check_probe_note, arg_pointer_save_area,
9785         used_temp_slots avail_temp_slots, temp_slot_level,
9786         nonlocal_goto_handler_labels): Update accesstors.
9787         (rtl): New global variable.
9788         (struct function): Move some fileds to rtl_data.
9789         (get_arg_pointer_save_area): Update prototype.
9790         * emit-rtl.c (rtl): Declare.
9791         (regno_reg_rtx): Declare.
9792         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
9793         Update.
9794         (gen_reg_rtx): Update.
9795         (init_virtual_regs): Do not tate emit_status argument.
9796         (init_emit): Do not allocate emit.
9797         * varasm.c (varasm_statuc): Move to function.h.
9798         (n_deferred_constatns): Update accestor.
9799         (init_varasm_status): Do not allocate varasm_status.
9800         (force_const_mem, get_pool_size, output_constant_pool): Update.
9801         * stmt.c (force_label_rtx): Do not use x_ prefixes.
9802         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
9803
9804 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
9805
9806         PR rtl-optimization/35729
9807         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
9808         references.
9809
9810 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
9811
9812         PR target/32000
9813         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
9814         load/store if memory is unaligned.
9815         (*movti_rex64): Likewise.
9816
9817         * config/i386/predicates.md (misaligned_operand): New.
9818
9819 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
9820
9821         PR tree-opt/35431
9822         * tree-ssa-phiopt.c (conditional_replacement): Return early for
9823         complex types.
9824
9825 2008-03-31  Jan Beulich  <jbeulich@novell.com>
9826
9827         * config/ia64/constraints.md: Add 'j' constraint.
9828         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
9829         (movdi_internal): Likewise.
9830
9831 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
9832
9833         PR c/35748
9834         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
9835
9836 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
9837
9838         PR target/35757
9839         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
9840         proper error message for the third argument on blendpd and
9841         blendps.
9842
9843         * config/i386/sse.md (blendbits): New.
9844         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
9845
9846 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
9847
9848         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
9849
9850 2008-03-30  Richard Guenther  <rguenther@suse.de>
9851
9852         PR middle-end/31023
9853         * fold-const.c (fold_sign_changed_comparison): Do leave
9854         conversions to base-types alone.
9855
9856 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9857
9858         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
9859         the link register if one altivec register is be saved.
9860
9861 2008-03-30  Ben Elliston  <bje@au.ibm.com>
9862
9863         * final.c (final_scan_insn): Remove if (0) code.
9864
9865 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
9866
9867         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
9868
9869 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
9870
9871         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
9872         of V4SFmode to ix86_binary_operator_ok.
9873
9874 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
9875
9876         * config/i386/i386.c (override_options): Initialize
9877         ix86_veclib_handler to ix86_veclibabi_svml when
9878         -mveclibabi=svml is used.
9879         (ix86_veclibabi_svml): New function for SVML ABI style
9880         vectorization support.
9881         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
9882
9883 2008-03-28  Rafael Espindola  <espindola@google.com>
9884
9885         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
9886         (tree_binary_nonnegative_warnv_p): Make it public.
9887         (tree_single_nonnegative_warnv_p): Make it public.
9888         (tree_invalid_nonnegative_warnv_p): Make it public.
9889         (tree_unary_nonzero_warnv_p): Make it public.
9890         (tree_binary_nonzero_warnv_p): Make it public
9891         (tree_single_nonzero_warnv_p): Make it public.
9892         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
9893         (extract_range_from_binary_expr): Split the expr argument.
9894         (extract_range_from_unary_expr): Split the expr argument.
9895         (extract_range_from_comparison): Split the expr argument.
9896         (extract_range_from_expr): Use the new aux functions.
9897         (vrp_evaluate_conditional_warnv): Use
9898         vrp_evaluate_conditional_warnv_with_ops.
9899         * tree.h (tree_unary_nonzero_warnv_p): Declare.
9900         (tree_binary_nonzero_warnv_p): Declare.
9901         (tree_single_nonzero_warnv_p): Declare.
9902         (tree_expr_nonzero_warnv_p): Declare.
9903         (tree_unary_nonnegative_warnv_p): Declare.
9904         (tree_binary_nonnegative_warnv_p): Declare.
9905         (tree_single_nonnegative_warnv_p): Declare.
9906         (tree_invalid_nonnegative_warnv_p): Declare.
9907
9908 2008-03-28  Richard Guenther  <rguenther@suse.de>
9909
9910         PR tree-optimization/30317
9911         PR tree-optimization/30911
9912         PR tree-optimization/34793
9913         * tree-vrp.c (set_and_canonicalize_value_range): New function.
9914         (struct assert_locus_d): New member EXPR.
9915         (register_new_assert_for): Add EXPR parameter to support
9916         ASSERT_EXPR <name, expr OP limit>.
9917         (register_edge_assert_for_1): Adjust callers.
9918         (find_assert_locations): Likewise.
9919         (process_assert_insertions_for): Build condition from expression.
9920         (extract_range_from_assert): Handle ASSERT_EXPRs
9921         of the form ASSERT_EXPR <name, expr OP limit>.
9922         (register_edge_assert_for_2): New helper registering
9923         asserts for comparisons.  Recognize range tests of the form
9924         (unsigned)i - CST1 OP CST2.
9925         (register_edge_assert_for_1): Use it.
9926         (register_edge_assert_for): Likewise.
9927         (needs_overflow_infinity): Integer sub-types
9928         do not need overflow infinities.
9929         (vrp_val_is_max): The extreme values of integer sub-types
9930         are those of the base type.
9931         (vrp_val_is_min): Likewise.
9932         * tree.def (ASSERT_EXPR): Document extra allowed conditional
9933         expressions.
9934
9935 2008-03-28  Nick Clifton  <nickc@redhat.com>
9936
9937         PR target/31110
9938         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
9939         Return GENERAL_REGS for stack adjustment reloads.
9940
9941 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9942
9943         PR target/31334
9944         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
9945         const_vector when all the vectors are constant.
9946
9947 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
9948
9949         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
9950         comparisons.
9951         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
9952         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
9953         (scc_sf): New.
9954         (s<code>_sf): Use new scc_sf attribute for opcode names.
9955
9956 2008-03-27  Tom Tromey  <tromey@redhat.com>
9957
9958         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
9959         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
9960         config/spu/t-spu-elf, config/i386/t-interix,
9961         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
9962         config/i386/x-darwin, config/i386/x-mingw32,
9963         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
9964         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
9965         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
9966         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
9967         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
9968         config/rs6000/x-darwin, config/rs6000/t-rs6000,
9969         config/score/t-score-elf, config/arm/t-strongarm-pe,
9970         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
9971         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
9972         Revert automatic dependency patch.
9973
9974 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
9975
9976         PR target/35657
9977         * config/i386/i386.c (ix86_function_arg_boundary): Align
9978         decimal floating point to its natural boundary.
9979
9980 2008-03-27  Richard Guenther  <rguenther@suse.de>
9981
9982         PR middle-end/35716
9983         * fold-const.c (fold_comparison): Restrict distinct decl
9984         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
9985         solely rely on operand_equal_p.
9986
9987 2008-03-27  Richard Guenther  <rguenther@suse.de>
9988
9989         PR c/32511
9990         * c-common.c (handle_weak_attribute): Reject combination of
9991         weak and inline.
9992
9993 2008-03-27  Richard Guenther  <rguenther@suse.de>
9994
9995         PR tree-optimization/32810
9996         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
9997         conversions from DECL_INITIAL.
9998         (fold_const_aggregate_ref): Likewise from constructor elements.
9999
10000 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
10001
10002         * tree-affine.h (aff_combination_expand): Declare.
10003         (get_inner_reference_aff): Likewise.
10004         * tree-affine.c (aff_combination_expand): Split out from
10005         tree_to_aff_combination_expand.
10006         (get_inner_reference_aff): New function.
10007         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
10008         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
10009         (struct lim_aux_data): sm_done field removed.
10010         (mem_ref_loc_p, mem_ref_locs_p): New types.
10011         (struct mem_ref): Added id, stored, accesses_in_loop,
10012         indep_loop, dep_loop, indep_ref, dep_ref fields.
10013         Removed is_stored, locs and next fields.
10014         (memory_accesses): New variable.
10015         (movement_possibility): Do not allow moving statements
10016         that store to memory.
10017         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
10018         New functions.
10019         (determine_max_movement): For statements with memory references,
10020         find the outermost loop in that the reference is independent.
10021         (move_computations_stmt): Mark the virtual operands for renaming.
10022         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
10023         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
10024         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
10025         add_vop_ref_mapping, create_vop_ref_mapping_loop,
10026         create_vop_ref_mapping, analyze_memory_references,
10027         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
10028         get_all_locs_in_loop, ref_always_accessed_p,
10029         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
10030         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
10031         store_motion_loop, store_motion): New functions.
10032         (struct vop_to_refs_elt): New type.
10033         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
10034         memref_hash, memref_eq, hoist_memory_references): Rewritten.
10035         (schedule_sm): Replaced by...
10036         (execute_sm): ... this.
10037         (determine_lsm_ref, hoist_memory_references,
10038         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
10039         find_more_ref_vops, free_mem_ref, free_mem_refs,
10040         determine_lsm_loop, determine_lsm): Removed.
10041         (tree_ssa_lim_finalize): Free data structures used by store motion.
10042         (tree_ssa_lim): Call analyze_memory_references.  Use
10043         store_motion instead of determine_lsm.
10044
10045 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
10046
10047         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
10048         rename tmake_file to m68hc11/t-m68hc11.
10049         (mcore): Set inhibit_libc to true.
10050         * config.host (alpha*-dec-*vms*): Set extra_programs.
10051         (interix3*): Don't use host_xmake_file.
10052         * configure.ac: Let config.gcc override inhibit_libc.
10053         * configure: Regenerate.
10054
10055         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
10056         * config/t-openbsd-thread: Remove commented out lines.
10057         
10058         * config/x-interix: Remove.
10059
10060         * config/m68hc11/t-m68hc11-gas: Rename to...
10061         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
10062
10063         * config/mcore/t-mcore: Remove T_CFLAGS.
10064         * config/mcore/t-mcore-pe: Likewise.
10065
10066 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
10067
10068         * configure.ac: Replace custom __GNU_SOURCE test with
10069         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
10070         * aclocal.m4: Regenerate.
10071         * configure: Regenerate.
10072         * config.in: Regenerate.
10073
10074 2008-03-27  Richard Guenther  <rguenther@suse.de>
10075
10076         * fold-const.c (target.h): Include.
10077         (fold_comparison): Fold comparison of addresses of decls
10078         that bind locally or of constants.  Consolidate address folding code.
10079         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
10080         results from fold_binary_to_constant.
10081         (compare_values_warnv): Likewise.
10082
10083 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
10084
10085         PR middle-end/35429
10086         * fold-const.c (fold_truthop): Check for integeral types when folding
10087         a == 0 && b == 0 and a != 0 || b != 0 .
10088
10089 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
10090
10091         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
10092
10093 2008-03-26  Andreas Schwab  <schwab@suse.de>
10094
10095         * doc/invoke.texi: Fix use of @item vs. @itemx.
10096
10097 2008-03-26  Tom Tromey  <tromey@redhat.com>
10098
10099         * Makefile.in (build/gensupport.o, build/print-rtl.o,
10100         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
10101         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
10102         build/gencodes.o, build/genconditions.o, build/genconfig.o,
10103         build/genconstants.o, build/genemit.o, build/genextract.o,
10104         build/genflags.o, build/genmddeps.o, build/genopinit.o,
10105         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
10106         options.h.
10107
10108 2008-03-26  Richard Guenther  <rguenther@suse.de>
10109
10110         Revert
10111         2008-03-26  Richard Guenther  <rguenther@suse.de>
10112
10113         * fold-const.c (target.h): Include.
10114         (fold_comparison): Fold comparison of addresses of two decls
10115         that bind locally.  Consolidate address folding code.
10116
10117 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10118
10119         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
10120         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
10121         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
10122         dconstsqrt2, dconstthird, dconste and/or dconst10.
10123         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
10124         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
10125         dconstsqrt2, dconste): Delete.
10126         (init_emit_once): Likewise.  Simplify initializing dconstm1.
10127         Constify variable.
10128         * real.c (get_real_const): New.
10129         * real.h (dconst3, dconst10, dconstm2, dconstthird,
10130         dconstsqrt2, dconste): Delete.
10131         (real_value_const, get_real_const): New.
10132
10133 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
10134
10135         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
10136
10137         * config/i386/i386.c (ix86_function_arg_boundary): Check
10138         BIGGEST_ALIGNMENT instead of 128.
10139         (setup_incoming_varargs_64): Likewise.
10140
10141 2008-03-26  Tom Tromey  <tromey@redhat.com>
10142
10143         * Makefile.in (DEPFILES): Add missing '/'.
10144
10145 2008-03-26  Richard Guenther  <rguenther@suse.de>
10146
10147         * fold-const.c (target.h): Include.
10148         (fold_comparison): Fold comparison of addresses of two decls
10149         that bind locally.  Consolidate address folding code.
10150
10151 2008-03-26  Nick Clifton  <nickc@redhat.com>
10152
10153         PR target/31232
10154         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
10155         not allow INT+INT as a legitimate addressing mode.
10156
10157 2008-03-26  Richard Guenther  <rguenther@suse.de>
10158
10159         * tree-flow.h (widen_bitfield): Remove declaration.
10160         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
10161         (widen_bitfield): Remove function.
10162         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
10163         code.
10164
10165 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10166
10167         PR target/31558
10168         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
10169         error_mark_node's.
10170
10171 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
10172
10173         PR rtl-optimization/35232
10174         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
10175         (forget_old_reloads_1, forget_marked_reloads): Don't clear
10176         reg_reloaded_call_part_clobbered here.
10177         (reload_regs_reach_end_p): New function.
10178         (reload_reg_rtx_for_input): New variable.
10179         (reload_reg_rtx_for_output): Likewise.
10180         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
10181         when reassigning a pseudo register.  Load reloadreg from 
10182         reload_reg_rtx_for_input, moving the mode and register
10183         calculation to...
10184         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
10185         instead of the original when deciding whether an input reload
10186         would be a no-op or whether an output reload can be deleted.
10187         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
10188         when setting up new_spill_reg_store.  Load it from
10189         reload_reg_rtx_for_output, moving the mode and register
10190         calculation to...
10191         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
10192         instead of the original when deciding whether an output reload
10193         would be a no-op.  Do the same when modifying insn notes.
10194         Use rtx_equal_p instead of == to compare the registers.
10195         (inherit_piecemeal_p): Take a mode and two register numbers
10196         as argument.
10197         (emit_reload_insns): Clear new_spill_reg_store for every hard
10198         register in the reload register.  Remove spill registers
10199         from reg_reloaded_valid before considering whether to record
10200         inheritance information for them.  Use reload_reg_rtx_for_output
10201         instead of reg_rtx when recording output reloads.  Use
10202         reload_reg_rtx_for_input instead of reg_rtx when recording
10203         input reloads.  Set or clear reg_reloaded_call_part_clobbered
10204         at the same time as setting reg_reloaded_valid.
10205         (delete_output_reload): Add a new_reload_reg parameter and use it
10206         instead of rld[j].reg_rtx.
10207         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
10208         calls accordingly.
10209
10210 2008-03-25  Tom Tromey  <tromey@redhat.com>
10211
10212         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
10213         (build/genattr.o): Likewise.
10214         (build/genattrtab.o): Likewise.
10215         (build/gencodes.o): Likewise.
10216         (build/genconfig.o): Likewise.
10217         (build/genconstants.o): Likewise.
10218         (build/genemit.o): Likewise.
10219         (build/genextract.o): Likewise.
10220         (build/genflags.o): Likewise.
10221
10222 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
10223         
10224         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
10225         instead of size_int for integer types.
10226         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
10227         to match type of MINUS_EXPR.
10228         
10229 2008-03-25  Tom Tromey  <tromey@redhat.com>
10230
10231         * configure: Rebuilt.
10232         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
10233         Makefile.
10234
10235 2008-03-25  Tom Tromey  <tromey@redhat.com>
10236
10237         * config/x-solaris (host-solaris.o): Update.
10238         * config/x-linux (host-linux.o): Update.
10239         * config/x-hpux (host-hpux.o): Update.
10240         * config/x-darwin (host-darwin.o): Update.
10241         * config/v850/t-v850e (v850-c.o): Update.
10242         * config/v850/t-v850 (v850-c.o): Update.
10243         * config/t-vxworks (vxworks.o): Update.
10244         * config/t-sol2 (sol2-c.o, sol2.o): Update.
10245         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
10246         * config/spu/t-spu-elf (spu-c.o): Update.
10247         (spu.o): Remove.
10248         * config/sh/t-symbian (sh-c.o): Update.
10249         (symbian.o): Update.
10250         * config/sh/t-sh (sh-c.o): Update.
10251         * config/score/t-score-elf (score7.o, score3.o): Update.
10252         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
10253         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
10254         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
10255         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
10256         (rs6000.o): Remove.
10257         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
10258         * config/m32c/t-m32c (m32c-pragma.o): Update.
10259         * config/ia64/t-ia64 (ia64-c.o): Update.
10260         * config/i386/x-mingw32 (host-mingw32.o): Update.
10261         * config/i386/x-i386 (driver-i386.o): Update.
10262         * config/i386/x-darwin (host-i386-darwin.o): Update.
10263         * config/i386/x-cygwin (host-cygwin.o): Update.
10264         * config/i386/t-nwld (nwld.o): Update.
10265         * config/i386/t-netware (netware.o): Update.
10266         * config/i386/t-interix (winnt.o): Update.
10267         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
10268         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
10269         msformat-c.o): Update.
10270         * config/bfin/t-bfin-linux (generated_files): Add
10271         linux-sysroot-suffix.h.
10272         * config/arm/t-wince-pe (pe.o): Update.
10273         * config/arm/t-strongarm-pe (pe.o): Update.
10274         * config/arm/t-pe (pe.o): Update.
10275         * config/arm/t-arm (arm-c.o): Update.
10276         * doc/install.texi (Prerequisites): Require make 3.80.
10277         * Makefile.in: Remove .o targets.
10278         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
10279         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
10280         (simple_generated_h, simple_generated_c): Move earlier.
10281         (generated_files): New variable.
10282         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
10283         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
10284         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
10285         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
10286         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
10287         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
10288         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
10289         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
10290         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
10291         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
10292         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
10293         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
10294         (.c.o): Remove.
10295         (COMPILE.base, COMPILE): New variables.
10296         (%.o): New pattern rule.
10297         (ALL_HOST_OBJS): New variable.
10298         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
10299         (dummy-checksum.o, cc1-checksum.o): Remove.
10300         (DRIVER_SHLIB): New variable.
10301         (DRIVER_DEFINES): Use it.
10302         (gencondmd.c): Move out of build/.
10303         (s-conditions): Update.
10304         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
10305         (ALL_BUILD_OBJS): Likewise.
10306         (build/%.o): Use BUILDCOMPILE.
10307         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
10308         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
10309         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
10310         build/gencheck.o, build/gencodes.o, build/genconditions.o,
10311         build/genconfig.o, build/genconstants.o, build/genemit.o,
10312         build/genextract.o, build/genflags.o, build/genmddeps.o,
10313         build/genopinit.o, build/genoutput.o, build/genpeep.o,
10314         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
10315         build/gen-protos.o, build/scan.o, build/fix-header.o,
10316         build/scan-decls.o): Simplify.
10317         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
10318         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
10319         prefix.o, toplev.o): Reduce to variable setting.
10320         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
10321         ($(out_object_file), gcc-options.o): New targets.
10322         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
10323         * configure: Rebuilt.
10324         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
10325         * doc/sourcebuild.texi (Front End Directory): Document new variable.
10326
10327 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
10328
10329         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
10330         complain when we hit an error, return ERROR_MARK_NODE.
10331
10332 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
10333
10334         * config/sh/constraints.md (Pso, Psz): New constraints.
10335         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
10336         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
10337
10338 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
10339
10340         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
10341         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
10342
10343 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
10344
10345         * config/sh/sh.md (prefetch): Add condition for SH2A target.
10346         (prefetch_sh2a): New.   
10347
10348 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
10349             Naveen.H.S  <naveen.hs@kpitcummins.com>
10350
10351         * config/sh/constraints.md (I28): New constraint.
10352         * config/sh/sh.c (broken_move): Add support for movi20s.
10353         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
10354
10355 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
10356             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
10357             Naveen.H.S  <naveen.hs@kpitcummins.com>
10358
10359         * config/sh/sh.c (SH_ATTRIBUTES): Define.
10360         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
10361         (print_operand): Handle resbank in %@ operand code.
10362         (sh_encode_section_info): New.
10363         (push_regs): Add conditions for resbank.
10364         (sh_expand_epilogue): Likewise.
10365         (sh_insert_attributes): Likewise.
10366         (sh_attribute_table): Likewise.
10367         (sh_handle_resbank_handler_attribute): New.
10368         (sh2a_handle_function_vector_handler_attribute): New.
10369         (sh2a_is_function_vector_call): New.
10370         (sh2a_get_function_vector_number): New.
10371         (sh2a_function_vector_p): New.
10372         (sh_cfun_resbank_handler_p): New.
10373         * config/sh/sh.md (calli): Emit jsr/n if possible.
10374         (calli_tbr_rel): New.
10375         (calli_pcrel): Emit jsr/n if possible.
10376         (return_i): Emit rts/n if possible.
10377         (call_valuei_tbr_rel): New.
10378         (call_valuei_pcrel): Add condition for SH2A target.
10379         (call_value): Likewise.
10380         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
10381         (sh2a_get_function_vector_number): Likewise.
10382         (sh2a_is_function_vector_call): Likewise.
10383         * doc/extend.texi: Document TBR relative addressing of SH2A.
10384         (resbank): Add description for SH2A.
10385
10386 2008-03-24  Richard Guenther  <rguenther@suse.de>
10387
10388         PR c/22371
10389         * gimplify.c (gimplify_modify_expr): For frontend type-correct
10390         pointer assignments change conversions according to middle-end rules.
10391         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
10392         * configure.ac: Include type checking in yes.
10393         * configure: Regenerate.
10394
10395 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10396
10397         * diagnostic.c (diagnostic_count_diagnostic): Delete.
10398         (diagnostic_report_diagnostic): Update. Handle ICEs here.
10399         
10400 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
10401
10402         * gthr-vxworks.h (UNUSED): Define.
10403
10404 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10405
10406         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
10407
10408 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
10409
10410         * doc/extend.texi (Function Attributes): Add missing comma in the
10411         example of the "alloc_size" attribute.
10412         
10413 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
10414
10415         Revert:
10416         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10417
10418         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
10419         32bit host.
10420
10421         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
10422
10423         PR target/35496
10424         * stor-layout.c (update_alignment_for_field): Set minimum alignment
10425         of the underlying type of a MS bitfield layout to the natural
10426         alignment of the type.
10427
10428         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
10429
10430         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
10431         to their natural alignment to avoid store forwarding stalls.
10432
10433 2008-03-22  Richard Guenther  <rguenther@suse.de>
10434
10435         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
10436         For PHI nodes verify the address is invariant.
10437         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
10438         (get_symbol_constant_value): Use is_gimple_min_invariant.
10439         (maybe_fold_stmt_indirect): Likewise.
10440
10441 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
10442
10443         PR rtl-optimization/33927
10444         * Makefile.in (dse.o): Depend on $(TM_P_H).
10445         * expr.h (extract_low_bits): Declare.
10446         * expmed.c (extract_low_bits): New function.
10447         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
10448         * dse.c: Include tm_p.h.
10449         (find_shift_sequence): Remove the read_reg argument and return the
10450         read value.  Emit the instructions instead of returning them.
10451         Iterate on new_mode rather than calculating it each time.
10452         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
10453         source to NEW_MODE and extract_low_bits to convert the shifted
10454         value to READ_MODE.
10455         (replace_read): Allow the load and store to have different mode
10456         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
10457         or extraction instructions before trying the replacement.  Update
10458         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
10459
10460 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
10461
10462         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
10463         to their natural alignment to avoid store forwarding stalls.
10464
10465 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10466
10467         PR target/27946
10468         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
10469         encouraging but not allowing gprs for input;
10470         change the input constraint to !f#r.
10471         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
10472         gprs for output;
10473         change the output constraint to !f#r.
10474
10475 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
10476
10477         PR target/13958
10478         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
10479         corresponding post-reload splitters.
10480         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
10481         when x87 FP math is selected.
10482         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
10483         New function prototype.
10484         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
10485         unreachable function to ease macroization of insn patterns.
10486
10487 2008-03-21  Martin Jambor  <mjambor@suse.cz>
10488
10489         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
10490         reference dumps if ddr is NULL or dependence is unknown.
10491
10492 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10493
10494         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
10495         unsigned extension into account.
10496         (ATOMIC_COMPARE_AND_SWAP): Likewise.
10497         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
10498         Do computations on a scratch register.
10499
10500 2008-03-21  Richard Guenther  <rguenther@suse.de>
10501
10502         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10503         Use is_gimple_min_invariant instead of TREE_INVARIANT.
10504         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
10505         * tree-ssa-dom.c (record_equality): Likewise.
10506         * tree-inline.c (copy_body_r): Likewise.
10507         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
10508         TREE_INVARIANT.
10509
10510 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10511
10512         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
10513         as 'delete_unused' argument.
10514
10515 2008-03-20  Richard Guenther  <rguenther@suse.de>
10516
10517         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
10518         special casing of constant qualifiers.
10519         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
10520         care about them in general.
10521         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
10522         regardless of their type.
10523         (fold_stmt_r): Forcefully fold *& if we end up with that.
10524
10525 2008-03-20  Paul Brook  <paul@codesourcery.com>
10526
10527         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
10528         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
10529         linker flags.
10530         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
10531         definition.
10532         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
10533         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
10534
10535 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
10536
10537         * common.opt (Wmudflap): New option.
10538         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
10539         (mx_register_decls): Likewise.
10540         (mudflap_finish_file): Likewise.
10541         * doc/invoke.texi: Document -Wno-mudflap.
10542
10543 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
10544
10545         * c-format.c (replace_format_name_to_system_name): New.
10546         (cmp_attribs): New.
10547         (convert_format_name_to_system_name): New.
10548         (decode_format_attr): Add use of convert_format_name_to_system_name.
10549         (format_types_orig): Add gnu_ prefix to names.
10550         (check_format_info_main): Special treating of \0 escaped names for
10551         supporting multi-character format specifiers as I32, I64.
10552         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
10553         (gnu_target_overrides_format_attributes): New.
10554         * c-format.h: Add structure target_ovr_attr to hold
10555         system specific formatter names.
10556         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
10557         msformat-c.o file to c_target_objs and cxx_target_objs.
10558         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
10559         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
10560         (TARGET_N_FORMAT_TYPES): New.
10561         * config/i386/msformat-c.c: New.
10562         * config/i386/t-cygming: Add build rule for msformat-c.o.
10563         * doc/extend.texi: Add new format names gnu_* and ms_* and
10564         further details.
10565         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
10566
10567 2008-03-20  Ira Rosen  <irar@il.ibm.com>
10568
10569         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
10570         optimizations turned on under -O3.
10571         (ftree-vectorize): Add that the flag is turned on with -O3.
10572
10573 2008-03-20  Ben Elliston  <bje@au.ibm.com>
10574
10575         * regmove.c (try_auto_increment): Fix spelling error in comment.
10576         * final.c (final_scan_insn): Likewise.
10577
10578 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
10579
10580         PR target/14552
10581         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
10582         allocator preferences for "y" and "r" class registers.
10583         ("*mov<mode>_internal"): Ditto.
10584         ("*movv2sf_internal_rex64"): Ditto.
10585         ("*movv2sf_internal"): Ditto.
10586
10587 2008-03-19  Michael Matz  <matz@suse.de>
10588
10589         PR middle-end/35616
10590         * calls.c (expand_call): Check overlap of arguments with call
10591         address for sibcalls.
10592
10593 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
10594
10595         PR target/35496
10596         * stor-layout.c (update_alignment_for_field): Set minimum alignment
10597         of the underlying type of a MS bitfield layout to the natural
10598         alignment of the type.
10599
10600 2008-03-19  Jan Hubicka  <jh@suse.cz>
10601
10602         PR other/35094
10603         * toplev.c (decode_d_option): Handle all CPP flags.
10604         * tree-vrp.c: Update tree_pass descriptors.
10605         * regrename.c: Update tree_pass descriptors.
10606         * fwprop.c: Update tree_pass descriptors.
10607         * doc/invoke.texi: Remove documentation of dropped -d? flags.
10608         * tree-into-ssa.c: Update tree_pass descriptors.
10609         * tree-dump.c: Update tree_pass descriptors.
10610         * tree-complex.c: Update tree_pass descriptors.
10611         * tree-dump.h: Update tree_pass descriptors.
10612         * see.c: Update tree_pass descriptors.
10613         * cgraphbuild.c: Update tree_pass descriptors.
10614         * tracer.c: Update tree_pass descriptors.
10615         * tree-loop-distribution.c: Update tree_pass descriptors.
10616         * cgraph.c: Update tree_pass descriptors.
10617         * postreload-gcse.c: Update tree_pass descriptors.
10618         * postreload.c: Update tree_pass descriptors.
10619         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
10620         * tree-tailcall.c: Update tree_pass descriptors.
10621         * tree-pass.h (tree_opt_pass): Rename to ...
10622         (opt_pass) ... this one; add "type" field and remove letter field.
10623         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
10624         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
10625         all_lowering_passes): Update declaration.
10626         * ipa-cp.c: Update tree_pass descriptors.
10627         * final.c: Update tree_pass descriptors.
10628         * omp-low.c: Update tree_pass descriptors.
10629         * tree-ssa-dse.c: Update tree_pass descriptors.
10630         * ipa-reference.c: Update tree_pass descriptors.
10631         * tree-ssa-uncprop.c: Update tree_pass descriptors.
10632         * auto-inc-dec.c: Update tree_pass descriptors.
10633         * reorg.c: Update tree_pass descriptors.
10634         * cgraphunit.c: Update tree_pass descriptors.
10635         * tree-ssa-copyrename.c: Update tree_pass descriptors.
10636         * tree-ssa-ccp.c: Update tree_pass descriptors.
10637         * df-core.c: Update tree_pass descriptors.
10638         * mode-switching.c: Update tree_pass descriptors.
10639         * tree-nomudflap.c: Update tree_pass descriptors.
10640         * modulo-sched.c: Update tree_pass descriptors.
10641         * ipa-pure-const.c: Update tree_pass descriptors.
10642         * cse.c: Update tree_pass descriptors.
10643         * web.c: Update tree_pass descriptors.
10644         * tree-stdarg.c: Update tree_pass descriptors.
10645         * tree-ssa-math-opts.c: Update tree_pass descriptors.
10646         * tree-ssa-dom.c: Update tree_pass descriptors.
10647         * tree-nrv.c: Update tree_pass descriptors.
10648         * tree-ssa-alias.c: Update tree_pass descriptors.
10649         * loop-init.c: Update tree_pass descriptors.
10650         * gimple-low.c: Update tree_pass descriptors.
10651         * ipa-inline.c: Update tree_pass descriptors.
10652         * tree-ssa-sink.c: Update tree_pass descriptors.
10653         * global.c: Update tree_pass descriptors.
10654         * ifcvt.c: Update tree_pass descriptors.
10655         * jump.c: Update tree_pass descriptors.
10656         * predict.c: Update tree_pass descriptors.
10657         * tree-ssa-loop.c: Update tree_pass descriptors.
10658         * recog.c: Update tree_pass descriptors.
10659         * dse.c: Update tree_pass descriptors.
10660         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
10661         * tree-eh.c: Update tree_pass descriptors.
10662         * regmove.c: Update tree_pass descriptors.
10663         * local-alloc.c
10664         * function.c: Update tree_pass descriptors.
10665         * tree-vectorizer.c: Update tree_pass descriptors.
10666         * gcse.c: Update tree_pass descriptors.
10667         * ipa-type-escape.c: Update tree_pass descriptors.
10668         * tree-if-conv.c: Update tree_pass descriptors.
10669         * init-regs.c: Update tree_pass descriptors.
10670         * ipa.c: Update tree_pass descriptors.
10671         * tree-ssa-phiopt.c: Update tree_pass descriptors.
10672         * rtl-factoring.c: Update tree_pass descriptors.
10673         * lower-subreg.c: Update tree_pass descriptors.
10674         * bt-load.c: Update tree_pass descriptors.
10675         * tree-dfa.c: Update tree_pass descriptors.
10676         * except.c: Update tree_pass descriptors.
10677         * emit-rtl.c: Update tree_pass descriptors.
10678         * cfgexpand.c: Update tree_pass descriptors.
10679         * tree-cfgcleanup.c: Update tree_pass descriptors.
10680         * cfgcleanup.c: Update tree_pass descriptors.
10681         * tree-ssa-pre.c: Update tree_pass descriptors.
10682         * tree-sra.c: Update tree_pass descriptors.
10683         * tree-mudflap.c: Update tree_pass descriptors.
10684         * tree-ssa-copy.c: Update tree_pass descriptors.
10685         * cfglayout.c: Update tree_pass descriptors.
10686         * tree-ssa-forwprop.c: Update tree_pass descriptors.
10687         * tree-ssa-dce.c: Update tree_pass descriptors.
10688         * tree-ssa.c: Update tree_pass descriptors.
10689         * regclass.c: Update tree_pass descriptors.
10690         * integrate.c: Update tree_pass descriptors.
10691         * tree-optimize.c: Update tree_pass descriptors.
10692         * tree-ssa-phiprop.c: Update tree_pass descriptors.
10693         * tree-object-size.c: Update tree_pass descriptors.
10694         * combine.c: Update tree_pass descriptors.
10695         * tree-outof-ssa.c: Update tree_pass descriptors.
10696         * bb-reorder.c: Update tree_pass descriptors.
10697         * stack-ptr-mod.c: Update tree_pass descriptors.
10698         * var-tracking.c: Update tree_pass descriptors.
10699         * tree-profile.c: Update tree_pass descriptors.
10700         * tree-vect-generic.c: Update tree_pass descriptors.
10701         * reg-stack.c: Update tree_pass descriptors.
10702         * sched-rgn.c: Update tree_pass descriptors.
10703         * tree-ssa-structalias.c: Update tree_pass descriptors.
10704         * tree-cfg.c: Update tree_pass descriptors.
10705         * passes.c (current_pass): Update declaration.
10706         (finish_optimization_passes): Update.
10707         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
10708         (register_one_dump_file, register_dump_files_1, next_pass_1):
10709         Update arguments.
10710         (init_optimization_passes): Update handling of new types.
10711         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
10712         * ipa-struct-reorg.c: Update tree_pass descriptors.
10713         * tree-ssa-reassoc.c: Update tree_pass descriptors.
10714         * combine-stack-adj.c: Update tree_pass descriptors.
10715         * cfgrtl.c: Update tree_pass descriptors.
10716         * dce.c: Update tree_pass descriptors.
10717         * tree-ssanames.c: Update tree_pass descriptors.
10718
10719 2008-03-19  Richard Guenther  <rguenther@suse.de>
10720
10721         PR middle-end/35609
10722         * tree-ssa.c (walk_data): New structure.
10723         (warn_uninitialized_var): If not always_executed warn with "maybe"
10724         instead of "is".
10725         (execute_early_warn_uninitialized): Compute post-dominators.
10726         Initialize always_executed before processing each basic block.
10727
10728 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
10729
10730         PR target/35504
10731         * config/i386/i386.c (x86_this_parameter): Calculate correct location
10732         of "this" pointer when "regparm = N" or "fastcall" is in effect.
10733
10734 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10735
10736         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
10737
10738 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
10739
10740         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
10741         is true.
10742         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
10743         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
10744         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
10745         target after ignore has been set, and move there also the commputation
10746         of subtarget and original_target.
10747         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
10748         (LANG_HOOKS_INITIALIZER): Remove it.
10749         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
10750
10751 2008-03-18  Richard Guenther  <rguenther@suse.de>
10752
10753         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
10754         found an expression with constants, note that in the VN for the lhs.
10755         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
10756         fold them to constants if possible.  Run cleanup_cfg if done so.
10757         (execute_pre): Return todo.
10758         (do_pre): Likewise.
10759         (execute_fre): Likewise.
10760         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
10761         of constants.
10762         (get_prop_source_stmt): Look through pointer conversions.
10763
10764 2008-03-18  Jan Hubicka  <jh@suse.cz>
10765
10766         * tree-pretty-print.c: Include predict.h.
10767         (dump_generic_node): Dump predictor.
10768         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
10769         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
10770         * gimple-low.c (lower_stmt): Likewise.
10771         * expr.c (expand_expr_real): Likewise.
10772         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
10773         them.
10774         (build_predict_expr, build_predict_expr): New.
10775         * predict.h (predictor_name, build_predict_expr): Update.
10776         * c-typeck.c (c_finish_bc_stmt): Add prediction.
10777         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
10778         * predict.def (PRED_CONTINUE): Update hitrate.
10779         * tree.def (PREDICT_EXPR): Define.
10780         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
10781         do not handle BIND_EXPR.
10782         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
10783         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
10784         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
10785         operands.
10786
10787 2008-03-18  Michael Matz  <matz@suse.de>
10788
10789         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
10790
10791 2008-03-18  Richard Guenther  <rguenther@suse.de>
10792
10793         * tree-gimple.h (is_gimple_invariant_address): Declare.
10794         (is_gimple_constant): Likewise.
10795         * tree-gimple.c (is_gimple_constant): New function.
10796         (is_gimple_invariant_address): Likewise.
10797         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
10798         and is_gimple_invariant_address.
10799         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
10800         previous change.
10801         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
10802         an addressable base.
10803
10804 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
10805
10806         PR middle-end/35611
10807         * gimplify.c (gimplify_expr): Gimplify second operand of
10808         OMP_ATOMIC_LOAD.
10809
10810 2008-03-17  Richard Guenther  <rguenther@suse.de>
10811
10812         PR tree-optimization/19637
10813         * fold-const.c (fold_unary): Remove restrictions of removing
10814         intermediate pointer-conversions (P2)(P1)P0.
10815         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
10816         conversion to void pointer.
10817         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
10818
10819 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
10820
10821         PR debug/31510
10822         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
10823         emulated thread local variables.
10824
10825 2008-03-16  Richard Guenther  <rguenther@suse.de>
10826
10827         PR middle-end/35607
10828         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10829         expand TREE_INVARIANT operations that are not gimple invariant.
10830
10831 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
10832
10833         * doc/extend.texi (Alignment): Say that the ABI controls
10834         the __alignof__ for non-strict-alignment targets rather
10835         than being a recommendation.
10836
10837 2008-03-15  Paul Brook  <paul@codesourcery.com>
10838
10839         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
10840         annotations.
10841         (arm_output_fn_unwind): Mark functions that can not be unwound.
10842
10843 2008-03-15  Paul Brook  <paul@codesourcery.com>
10844
10845         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
10846         extension instructions.
10847
10848 2008-03-15  Richard Guenther  <rguenther@suse.de>
10849
10850         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
10851         and fold constant aggregate refs.
10852         (fold_const_aggregate_ref): Handle string constants
10853         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
10854         (evaluate_stmt): Simplify now that ccp_fold folds constant
10855         aggregate refs.
10856
10857 2008-03-15  Paul Brook  <paul@codesourcery.com>
10858
10859         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
10860         (extzv): Use gen_extzv_t2.
10861         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
10862
10863 2008-03-15  Richard Guenther  <rguenther@suse.de>
10864
10865         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
10866         (fold_const_aggregate_ref): Likewise.
10867         (get_value): Return NULL if we don't have any values.
10868         (ccp_finalize): Set const_val to NULL after freeing it.
10869         * tree-flow.h (get_symbol_constant_value): Declare.
10870         (fold_const_aggregate_ref): Likewise.
10871         * tree-ssa-sccvn.c (try_to_simplify): Use them.
10872
10873 2008-03-15  Richard Guenther  <rguenther@suse.de>
10874
10875         PR middle-end/35593
10876         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
10877         to not produce negative array indices if not allowed.  Add
10878         parameter to indicate that.
10879         (maybe_fold_offset_to_component_ref): Allow negative array
10880         indices only for the first member of a structure.
10881         (maybe_fold_offset_to_reference): Allow negative array indices.
10882         (maybe_fold_stmt_addition): Likewise.
10883
10884 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
10885             Anatoly Sokolov <aesok@post.ru>
10886
10887         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
10888         (avr_arch): Add ARCH_AVR6.
10889         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
10890         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
10891         instead of fixed value 2.
10892         (print_operand_address): Use gs() asm specifier instead of pm().
10893         (avr_assemble_integer): (Ditto.).
10894         (avr_output_addr_vec_elt): (Ditto.).
10895         (print_operand): Handle "!" code.
10896         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
10897         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
10898         (AVR_HAVE_EIJMP_EICALL): Define.
10899         (AVR_3_BYTE_PC): Redefine.
10900         (AVR_2_BYTE_PC): (Ditto.).
10901         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
10902         (LINK_SPEC): Add atmega2560 and atmega2561.
10903         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
10904         (crtm2561.o).
10905         * config/avr/avr.md (call_insn): Use eicall instead of icall 
10906         for 3 byte PC devices.
10907         (call_value_insn): (Ditto.).
10908         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
10909         (indirect_jump): Use only for for 2 byte PC devices.
10910         (*tablejump): (Ditto.).
10911         (*indirect_jump_avr6): Add insn.
10912         (*tablejump_rjmp): Don't use for 3 byte PC devices.
10913         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
10914         instead of ijmp for 3 byte PC devices.
10915         (__tablejump2__): (Ditto.).
10916         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
10917         (MULITLIB_DIRNAMES): (Ditto.). 
10918         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
10919
10920 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
10921
10922         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
10923         "sse2_umulsidi3".  Use V1DI mode for operand 0.
10924         ("mmx_psadbw"): Use V1DI mode for operand 0.
10925         * config/i386/i386-modes.def (V1SI): New vector mode.
10926         * config/i386/i386.c (struct builtin_description)
10927         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
10928         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
10929         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
10930         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
10931         v1di_ftype_v8qi_v8qi type.
10932         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
10933
10934         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
10935         __builtin_ia32_pmuludq]: Fix the mode of return value.
10936
10937 2008-03-15  Richard Guenther  <rguenther@suse.de>
10938
10939         PR middle-end/35595
10940         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
10941         being a PHI_NODE.
10942
10943 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
10944         
10945         * doc/invoke.texi (Option Summary, Xtensa Options): Document
10946         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
10947         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
10948         unless TARGET_SERIALIZE_VOLATILE is enabled.
10949         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
10950         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
10951         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
10952
10953 2008-03-14  Richard Guenther  <rguenther@suse.de>
10954
10955         PR tree-optimization/34172
10956         * tree-flow.h (refs_may_alias_p): Declare.
10957         (get_single_def_stmt): Likewise.
10958         (get_single_def_stmt_from_phi): Likewise.
10959         (get_single_def_stmt_with_phi): Likewise.
10960         * tree-dfa.c (refs_may_alias_p): New function.
10961         (get_single_def_stmt): Likewise.
10962         (get_single_def_stmt_from_phi): Likewise.
10963         (get_single_def_stmt_with_phi): Likewise.
10964         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
10965         (vn_reference_lookup_1): New helper function.
10966         (vn_reference_lookup): Walk the virtual use-def chain to
10967         continue searching for a match if the def does not alias the
10968         reference we are looking for.
10969
10970 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
10971
10972         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
10973         archive and Perzl.  Update The Written Word listing.
10974
10975 2008-03-14  Richard Guenther  <rguenther@suse.de>
10976
10977         PR tree-optimization/34043
10978         PR tree-optimization/33989
10979         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
10980         when doing FRE.
10981         (bitmap_find_leader): Use extra argument to verify dominance
10982         relationship inside a basic-block.
10983         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
10984         (find_leader_in_sets): Adjust.
10985         (create_component_ref_by_pieces): Take extra argument for
10986         dominance check, handle lookup failures.
10987         (find_or_generate_expression): Likewise.
10988         (create_expression_by_pieces): Likewise.
10989         (insert_into_preds_of_block): Adjust.
10990         (create_value_expr_from): If asked for, verify all operands
10991         are in the blocks AVAIL_OUT set.
10992         (make_values_for_stmt): Check for SSA_NAMEs that are life
10993         over an abnormal edge.
10994         (compute_avail): Remove such check.
10995         (do_SCCVN_insertion): New function.
10996         (eliminate): If we do not find a leader suitable for replacement
10997         insert a replacement expression from SCCVN if available.
10998         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
10999         (struct vn_ssa_aux): Add needs_insertion flag.
11000         * tree-ssa-sccvn.c (may_insert): New global flag.
11001         (copy_reference_ops_from_ref): Value-number union member access
11002         based on its size, not type and member if insertion is allowed.
11003         (visit_reference_op_load): For a weak match from union type
11004         punning lookup a view-converted value and insert a SSA_NAME
11005         for that value if that is not found.
11006         (visit_use): Make dumps shorter.  Do not disallow value numbering
11007         SSA_NAMEs that are life over an abnormal edge to constants.
11008         (free_scc_vn): Release inserted SSA_NAMEs.
11009         (run_scc_vn): New flag to specify whether insertion is allowed.
11010         Process SSA_NAMEs in forward order.
11011         * tree-ssa-loop-im.c (for_each_index): Handle invariant
11012         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
11013         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
11014         pointer type to/from integral types that do not change the
11015         precision to regular conversions.
11016
11017 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
11018
11019         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
11020         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
11021         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
11022         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
11023         input arguments and the mode of return value.  Built-in functions
11024         that operate on whole 64-bit MMX register now use V1DI mode.
11025
11026 2008-03-13  Alon Dayan  <alond@il.ibm.com>
11027             Olga Golovanevsky  <olga@il.ibm.com>
11028
11029         PR tree-optimization/35041
11030         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
11031         to locate the right position in a statement.
11032
11033 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
11034
11035         PR target/34000
11036         PR target/35553
11037         * config/i386/xmmintrin.h:  Change all static inline functions to
11038         extern inline and add __gnu_inline__ attribute.
11039         * config/i386/bmintrin.h: Ditto.
11040         * config/i386/smmintrin.h: Ditto.
11041         * config/i386/tmmintrin.h: Ditto.
11042         * config/i386/mmintrin-common.h: Ditto.
11043         * config/i386/ammintrin.h: Ditto.
11044         * config/i386/emmintrin.h: Ditto.
11045         * config/i386/pmmintrin.h: Ditto.
11046         * config/i386/mmintrin.h: Ditto.
11047         * config/i386/mm3dnow.h: Ditto.
11048
11049 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
11050
11051         PR middle-end/35185
11052         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
11053         (lower_omp_2): New function.
11054         (lower_omp_1, lower_omp): Rewritten.
11055
11056 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
11057
11058         PR 35054
11059         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
11060         with the phrase "Microsoft Windows compilers".
11061         (Push/Pop Macro Pragmas): New subsection. Document
11062         #pragma push_macro and pragma pop_macro.
11063
11064 2008-03-12  Paul Brook  <paul@codesourcery.com>
11065
11066         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
11067
11068 2008-03-12  Paul Brook  <paul@codesourcery.com>
11069
11070         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
11071         (thumb2_alusi3_short): Exclude PLUS and MINUS.
11072         (thumb2_addsi_shortim): Rename ...
11073         (thumb2_addsi_short): ... to this.  Allow register operands.
11074         (thumb2_subsi_short): New pattern.
11075         (thumb2_one_cmplsi2_short,
11076         thumb2_negsi2_short): New patterns and peepholes.
11077
11078 2008-03-12  Paul Brook  <paul@codesourcery.com>
11079
11080         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
11081
11082 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
11083
11084         * config/i386/i386.md (int_cond): New code iterator.
11085         (fp_cond): Ditto.
11086         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
11087         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
11088         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
11089         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
11090         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
11091         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
11092         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
11093         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
11094
11095 2008-03-12  Paul Brook  <paul@codesourcery.com>
11096
11097         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
11098         instead of {arm,thumb}_compute_save_reg_mask.
11099         (output_return_instruction): Ditto.
11100         (thumb_unexpanded_epilogue): Ditto.
11101         (thumb1_expand_prologue): Ditto.
11102         (thumb1_output_function_prologue): Ditto.
11103         (arm_set_return_address): Ditto.
11104         (thumb_set_return_address): Ditto.
11105         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
11106         regs to achieve stack alignment.
11107         (thumb1_compute_save_reg_mask): Fix compiler warning.
11108         (arm_output_epilogue): Use offsets->saved_regs_mask.
11109         Adjust stack pointer by poping call clobered registers.
11110         (arm_expand_prologue): Use offsets->saved_regs_mask.
11111         Adjust stack pointer by pushing extra registers.
11112         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
11113
11114 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
11115
11116         PR tree-opt/35422
11117         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
11118         conversion to the operands of a multiplication.
11119
11120 2008-03-12  Richard Guenther  <rguenther@suse.de>
11121
11122         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
11123         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
11124         * timevar.def (TV_TREE_PHIPROP): Add.
11125         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
11126         pass description.  Use TV_TREE_PHIPROP.
11127         * tree-ssa-forwprop.c: Remove phiprop code.
11128
11129 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
11130
11131         PR middle-end/35549
11132         * omp-low.c (maybe_lookup_decl): Constify first argument.
11133         (use_pointer_for_field): Change last argument from bool to
11134         omp_context *.  Disallow shared copy-in/out in nested
11135         parallel if decl is shared in outer parallel too.
11136         (build_outer_var_ref, scan_sharing_clauses,
11137         lower_rec_input_clauses, lower_copyprivate_clauses,
11138         lower_send_clauses, lower_send_shared_vars): Adjust callers.
11139
11140 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
11141             Ira Rosen  <irar@il.ibm.com>
11142
11143         * tree-vectorizer.c (free_stmt_vec_info): New function.
11144         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
11145         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
11146         * tree-vectorizer.h (free_stmt_vec_info): Declare.
11147         * tree-vect-transform.c (vectorizable_conversion): Free
11148         vec_oprnds0 if it was allocated.
11149         (vect_permute_store_chain): Remove unused VECs.
11150         (vectorizable_store): Free VECs that are allocated in the..
11151         function.
11152         (vect_transform_strided_load, vectorizable_load): Likewise.
11153         (vect_remove_stores): Simplify the code.
11154         (vect_transform_loop): Move code to vect_remove_stores().
11155         Call vect_remove_stores() and free_stmt_vec_info().
11156
11157 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11158
11159         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
11160         TARGET_HPUX.  Revise comment.
11161         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
11162         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
11163         Use sr4 variant of `be' instruction when not generating PIC code.
11164         (attr_length_call): Adjust for above change.
11165
11166 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11167
11168         * ipa-reference.c (static_execute): Remove module_statics_const and
11169         associated setting code.
11170
11171 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
11172
11173         PR target/35540
11174         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
11175         predicate for operand 1.
11176         (paritysi2_cmp): Use register_operand predicate for operand 2.
11177         Use earlyclobber modifier for operand 1.  Remove support for
11178         memory operands.
11179         (paritydi2_cmp): Use register_operand predicate for operand 3.
11180         Use earlyclobber modifier for operand 1.  Remove support for
11181         memory operands.
11182
11183 2008-03-11  Paul Brook  <paul@codesourcery.com>
11184             Vladimir Prus  <vladimir@codesourcery.com>
11185
11186         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
11187         (arm_compute_save_reg0_reg12_mask): Always
11188         check if register 11 must be saved.  Always safe hard frame pointer
11189         when frame_pointer_needeed.
11190         (arm_compute_save_reg_mask): Save IP and PC
11191         only with apcs frames.
11192         (arm_output_epilogue): Adjust Thumb2 codepath to
11193         be also invoked and work for ARM non-apcs frames.
11194         (arm_expand_prologue): Don't bother saving IP
11195         for non-apcs frame, since it's not clobbered by
11196         prologue code.  Implement non-apcs frame
11197         layout.
11198
11199 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
11200
11201         PR rtl-optimization/35281
11202         * expr.c (convert_move): Use a new pseudo for the intermediate
11203         from_mode->word_mode result.
11204
11205 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
11206
11207         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
11208         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
11209         * toplev.c (compile_file): Don't call it.
11210
11211 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
11212
11213         PR middle-end/35526
11214         * expr.c (store_expr): Call emit_block_move if the mode
11215         of "temp" RTX is BLKmode.
11216
11217 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11218             Richard Guenther  <rguenther@suse.de>
11219
11220         PR tree-optimization/31358
11221         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
11222         the step with a NULL_TREE.
11223         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
11224         to sizetype if type is a pointer type.
11225         (add_candidate_1): Don't convert the base and step to
11226         the generic type if the orginal type is a pointer type.
11227         (add_iv_value_candidates): Use sizetype for the step
11228         if type is a pointer type.
11229         (cand_value_at): Likewise.
11230         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
11231         for pointer types.
11232         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
11233         Don't convert the tem affine to the type.
11234         (add_elt_to_tree): Use sizetype for the step if a pointer.
11235         Use POINTER_PLUS_EXPR for pointers.
11236         (aff_combination_to_tree): Use sizetype for the step if a
11237         pointer.
11238
11239 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
11240
11241         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
11242         Remove commutativity hint.
11243
11244 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
11245
11246         PR c/35438
11247         PR c/35439
11248         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
11249         errorneous type.  Check that v is a VAR_DECL.
11250
11251         PR middle-end/35099
11252         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
11253
11254 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
11255
11256         PR tree-optimization/35494
11257         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
11258         may be overriden at link and run time.
11259
11260 2008-03-10  Richard Guenther  <rguenther@suse.de>
11261
11262         PR tree-optimization/34677
11263         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
11264         (poolify_tree): Likewise.
11265         (modify_expr_template): Likewise.
11266         (poolify_modify_stmt): Likewise.
11267         (insert_fake_stores): Handle all component-ref style stores
11268         in addition to INDIRECT_REF.  Also handle complex types.
11269         Do not poolify the inserted load.
11270         (realify_fake_stores): Do not rebuild the tree but only
11271         make it a SSA_NAME copy.
11272         (init_pre): Remove initialzation of modify_expr_template.
11273         Do not allocate modify_expr_node_pool.
11274         (fini_pre): Do not free modify_expr_node_pool.
11275
11276 2008-03-10  Paul Brook  <paul@codesourcery.com>
11277
11278         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
11279         to avoid conflicts.
11280
11281 2008-03-10  Paul Brook  <paul@codesourcery.com>
11282             Mark Shinwell  <shinwell@codesourcery.com>
11283
11284         * config/arm/cortex-r4.md: New.
11285         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
11286         insn attributes.
11287         * config/arm/arm.md: Include cortex-r4.md.
11288         (insn): Add smmls, sdiv and udiv values.
11289         (generic_sched): Don't use generic scheduling for Cortex-R4.
11290         (arm_issue_rate): New function.
11291         (TARGET_SCHED_ISSUE_RATE): Define.
11292
11293 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
11294
11295         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
11296
11297 2008-03-10  Richard Guenther  <rguenther@suse.de>
11298
11299         * tree-ssa-pre.c (get_sccvn_value): Simplify.
11300         (compute_avail): Do not add stmt uses to AVAIL_OUT.
11301
11302 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
11303
11304         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
11305         Set default to true.
11306
11307 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11308
11309         * c.opt (Wsynth): Deprecate.
11310         * doc/invoke.texi (Option Summary, Warning Options): Document
11311         -Wno-format-contains-nul.
11312
11313 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
11314
11315         PR target/35496
11316         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
11317         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
11318
11319 2008-03-09  Ira Rosen  <irar@il.ibm.com>
11320
11321         * config/rs6000/rs6000.c (builtin_description): Rename vector
11322         left shift operations.
11323         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
11324         (altivec_vsl<VI_char>): Rename to ...
11325         (ashl<mode>3): ... new name.
11326         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
11327         gen_ashlv4si3.
11328         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
11329
11330 2008-03-08  Richard Guenther  <rguenther@suse.de>
11331
11332         * coverage.h (tree_coverage_counter_addr): Declare.
11333         * coverage.c (tree_coverage_counter_addr): New function.
11334         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
11335         before using again.
11336         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
11337         (tree_gen_one_value_profiler): Likewise.
11338         (tree_gen_ic_profiler): Likewise.
11339         (tree_gen_average_profiler): Likewise.
11340         (tree_gen_ior_profiler): Likewise.
11341
11342 2008-03-08  Richard Guenther  <rguenther@suse.de>
11343
11344         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
11345         (vn_binary_op_insert): Likewise.
11346         (vn_unary_op_lookup): Likewise.
11347         (vn_unary_op_insert): Likewise.
11348         (vn_nary_op_lookup): Declare.
11349         (vn_nary_op_insert): Likewise.
11350         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
11351         and binary hashes, use a single obstack for unary_op_pool
11352         and binary_op_pool.
11353         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
11354         a single struct vn_nary_op_s.  Store tree code length and
11355         a variable number of operands.
11356         (struct vn_reference_op_struct): Remove unused op2.
11357         (vn_reference_op_eq): Do not compare op2.
11358         (vn_reference_op_compute_hash): Do not compute hash of op2.
11359         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
11360         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
11361         with vn_nary_op_compute_hash.
11362         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
11363         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
11364         vn_nary_op_lookup.
11365         (vn_unary_op_insert, vn_binary_op_insert): Replace with
11366         vn_nary_op_insert.
11367         (visit_unary_op): Call nary functions.
11368         (visit_binary_op): Likewise.
11369         (process_scc): Adjust for struct vn_tables_s changes.
11370         (allocate_vn_table): Likewise.
11371         (free_vn_table): Likewise.
11372         * tree-vn.c (vn_add): Call nary functions.
11373         (vn_lookup): Likewise.
11374
11375 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
11376
11377         PR target/35498
11378         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
11379         wdst back after sync_compare_and_swapqhi_internal.
11380
11381 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
11382
11383         PR target/22152
11384         * config/i386/i386-modes.def (V1DI): New vector mode.
11385         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
11386         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
11387         (MMXMODE248): Ditto.
11388         (MMXMODE): Add V1DI mode.
11389         (mmxvecsize): Change DI mode to V1DI mode.
11390         ("mov<mode>): Use MMXMODEI8 mode iterator.
11391         ("*mov<mode>_internal_rex64"): Ditto.
11392         ("*mov<mode>_internal"): Ditto.
11393         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
11394         ("mmx_sub<mode>3"): Ditto.
11395         ("mmx_adddi3"): Remove insn pattern.
11396         ("mmx_subdi3"): Ditto.
11397         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
11398         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
11399         ("mmx_ashl<mode>3"): Ditto.
11400         ("mmx_lshrdi3"): Remove insn pattern.
11401         ("mmx_ashldi3"): Ditto.
11402         * config/i386/i386.c (classify_argument): Handle V1DImode.
11403         (function_arg_advance_32): Ditto.
11404         (function_arg_32): Ditto.
11405         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
11406         mmx_addv1di3 insn pattern.
11407         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
11408         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
11409         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
11410         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
11411         Remove definitions of built-in functions.
11412         (V1DI_type_node): New node.
11413         (v1di_ftype_v1di_int): Ditto.
11414         (v1di_ftype_v1di_v1di): Ditto.
11415         (v2si_ftype_v2si_si): Ditto.
11416         (v4hi_ftype_v4hi_di): Remove node.
11417         (v2si_ftype_v2si_di): Ditto.
11418         (ix86_init_mmx_sse_builtins): Handle V1DImode.
11419         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
11420         Redefine builtins using def_builtin_const with *_ftype_*_int node.
11421         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
11422         Add new builtins using def_builtin_const.
11423         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
11424         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
11425         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
11426         * config/i386/mmintrin.h (__v1di): New typedef.
11427         (_mm_add_si64): Cast arguments to __v1di type.
11428         (_mm_sub_si64): Ditto.
11429         (_mm_sll_pi16): Cast __count to __v4hi type.
11430         (_mm_sll_pi32): Cast __count to __v2si type.
11431         (_mm_sll_si64): Cast arguments to __v1di type.
11432         (_mm_srl_pi16): Cast __count to __v4hi type.
11433         (_mm_srl_pi32): Cast __count to __v2si type.
11434         (_mm_srl_si64): Cast arguments to __v1di type.
11435         (_mm_sra_pi16): Cast __count to __v4hi type.
11436         (_mm_sra_pi32): Cast __count to __v2si type.
11437         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
11438         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
11439         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
11440         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
11441         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
11442         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
11443         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
11444         (_mm_srai_pi32): Use __builtin_ia32_psradi.
11445         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
11446         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
11447         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
11448         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
11449
11450 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
11451
11452         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
11453
11454 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
11455
11456         PR target/35373
11457         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
11458         reg+const addressing for Altivec modes.  Don't generate reg+reg
11459         addressing for TFmode or TDmode quantities.
11460
11461 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
11462
11463         * c-common.c (vector_types_convertible_p): Call langhook
11464         instead of comptypes.
11465
11466 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11467
11468         PR tree-opt/35402
11469         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
11470         integral and scalar float variables which have a
11471         NULL DECL_INITIAL.
11472
11473 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
11474
11475         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
11476         dwarf_register_span hook when emitting unwind information for
11477         register-to-memory saves.
11478         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
11479         (rs6000_frame_related): Remove call to spe_synthesize_frame.
11480
11481 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
11482
11483         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
11484         for the same VAR_DECL.
11485
11486 2008-03-06  Tom Tromey  <tromey@redhat.com>
11487
11488         * treelang: Delete.
11489         * doc/standards.texi (Standards): Don't mention treelang.
11490         * doc/invoke.texi (Overall Options): Don't mention treelang.
11491         * doc/install.texi (Prerequisites): Don't mention bison or
11492         treelang.
11493         (Configuration): Don't mention treelang.
11494         (Building): Likewise.
11495         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
11496
11497 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
11498
11499         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
11500         word-extractions out of a multi-word object.
11501
11502 2008-03-06  Richard Guenther  <rguenther@suse.de>
11503
11504         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
11505         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
11506         result type and precision.
11507         * expr.c (get_inner_reference): Set unsignedp based on the result
11508         type of BIT_FIELD_REF.
11509         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
11510         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
11511         (try_instantiate_multiple_fields): Likewise.  Use the correct type
11512         for BIT_FIELD_REF.
11513         (sra_build_assignment): Likewise.
11514         (sra_build_elt_assignment): Likewise.
11515         (sra_explode_bitfield_assignment): Likewise.
11516         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
11517         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
11518         set BIT_FIELD_REF_UNSIGNED.
11519         (vectorizable_load): Likewise.
11520
11521 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
11522
11523         * cse.c (cse_extended_basic_block): Invalidate artificial defs
11524         at bb start.
11525
11526 2008-03-06  Richard Guenther  <rguenther@suse.de>
11527
11528         * alias.c (struct alias_set_entry): Move has_zero_child field
11529         to pack with alias_set.
11530
11531 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11532
11533         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
11534         32bit host.
11535
11536 2008-03-05  Ian Lance Taylor  <iant@google.com>
11537
11538         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
11539
11540 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
11541
11542         * fwprop.c (update_df): Support width and offset parameters of
11543         df_ref_create.
11544         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
11545         global_conflicts): Change DF_REF_EXTRACT to either
11546         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
11547         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11548         * df-scan.c (df_ref_record, df_defs_record,
11549         df_ref_create_structure, df_def_record_1, df_uses_record,
11550         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
11551         df_bb_refs_collect, df_entry_block_defs_collect,
11552         df_exit_block_uses_collect): Support new width and offset fields.
11553         (ref_extract_pool): New storage pool.
11554         (df_free_ref): New function.
11555         (df_reg_chain_unlink, df_free_collection_rec,
11556         df_sort_and_compress_refs): Call df_free_ref.
11557         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
11558         of df_ref_extract.
11559         (df_ref_create_structure): Allocate df_ref_extract if offset and
11560         width fields are used.
11561         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
11562         (df_uses_record): Get offset and width from ZERO_EXTRACT 
11563         and SIGN_EXTRACT.
11564         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
11565         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
11566         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11567         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
11568         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
11569         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11570         (df_ref_extract): New structure.
11571         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
11572         (df_ref_create): Add width and offset parameters.
11573         
11574 2008-03-05  Richard Guenther  <rguenther@suse.de>
11575
11576         * tree-ssa-structalias.c (get_constraint_for_component_ref):
11577         Use ranges_overlap_p.
11578         (offset_overlaps_with_access): Rename
11579         to ranges_overlap_p and move ...
11580         * tree-flow-inline.h (ranges_overlap_p): ... here.
11581
11582         * tree.h (get_inner_reference, handled_component_p): Update
11583         comments.
11584
11585         * tree.h (record_component_aliases, get_alias_set,
11586         alias_sets_conflict_p, alias_sets_must_conflict_p,
11587         objects_must_conflict_p): Move declarations ...
11588         * alias.h (record_component_aliases, get_alias_set,
11589         alias_sets_conflict_p, alias_sets_must_conflict_p,
11590         objects_must_conflict_p): ... here.
11591         Include coretypes.h.
11592         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
11593
11594 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
11595
11596         * cfg.c: Include tree-flow.h.
11597         (remove_edge_raw): Call redirect_edge_var_map_clear.
11598         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
11599         * tree-flow-inline.h (redirect_edge_var_map_def): New.
11600         (redirect_edge_var_map_result): New.
11601         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
11602         PENDING_STMT use with redirect_edge_var_map_*.
11603         * tree-ssa.c (edge_var_maps): New definition.
11604         (redirect_edge_var_map_add): New.
11605         (redirect_edge_var_map_clear): New.
11606         (redirect_edge_var_map_dup): New.
11607         (redirect_edge_var_map_vector): New.
11608         (redirect_edge_var_map_destroy): New.
11609         (ssa_redirect_edge): Replace PENDING_STMT use with
11610         redirect_edge_var_map_*.
11611         (flush_pending_stmts): Same.
11612         (delete_tree_ssa): Destroy edge var map.
11613         * tree-flow.h (struct _edge_var_map): New.
11614         Define edge_var_map vector type.
11615         Declare redirect_edge_var_map_* prototypes.
11616         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
11617         * tree-cfg.c (reinstall_phi_args): Replace
11618         PENDING_STMT use with redirect_edge_var_map_*.
11619
11620 2008-03-05  Richard Guenther  <rguenther@suse.de>
11621
11622         PR tree-optimization/35472
11623         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
11624         whose single use_stmt has a overlapping set of loaded and
11625         stored symbols as that use_stmt might be a noop assignment then.
11626
11627 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
11628
11629         * gthr-rtems.h: Implement __gthread_mutex_destroy.
11630
11631 2008-03-05  Richard Guenther  <rguenther@suse.de>
11632
11633         PR c++/35336
11634         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
11635         should be constants.
11636         * tree-cfg.c (verify_expr): Verify it.
11637         * fold-const.c (fold_truthop): Remove code generating
11638         BIT_FIELD_REFs of structure bases.
11639         (fold_binary): Likewise.
11640         (fold_ternary): Position and size of BIT_FIELD_REFs are
11641         always host integers.
11642         (make_bit_field_ref): Remove.
11643         (optimize_bit_field_compare): Remove.
11644         (all_ones_mask_p): Remove.
11645
11646 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
11647
11648         PR gcc/33009
11649         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
11650         (split_block_and_df_analyze): New. Split basic block and rebuild
11651         dataflow.
11652         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
11653         SPLIT_BLOCK.
11654         (split_pattern_seq): Likewise.
11655         (erase_matching_seqs): Likewise.
11656         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
11657
11658 2008-03-04  Geoff Keating  <geoffk@apple.com>
11659
11660         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
11661         declaration and code.
11662         (tree_invalid_nonnegative_warnv_p): Likewise.
11663
11664 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
11665
11666         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
11667         examples.  Truncate option-names then causing overfull hbox.
11668
11669 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11670
11671         PR target/35222
11672         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
11673         on hpux10.
11674         * configure: Rebuilt.
11675
11676 2008-03-04  Rafael Espindola  <espindola@google.com>
11677
11678         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
11679         (tree_unary_nonnegative_warnv_p): New.
11680         (tree_binary_nonnegative_warnv_p): New.
11681         (tree_single_nonnegative_warnv_p): New.
11682         (tree_invalid_nonnegative_warnv_p): New.
11683         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
11684
11685 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11686
11687         PR 28322
11688         * opts.c (handle_option): Postpone 'unknown option' errors only for
11689         warning options.
11690
11691 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
11692
11693         PR target/35453
11694         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
11695         (_SIDD_XXX): This.
11696
11697 2008-03-04  Rafael Espindola  <espindola@google.com>
11698
11699         * fold-const.c (tree_unary_nonzero_warnv_p): New.
11700         (tree_binary_nonzero_warnv_p): New.
11701         (tree_single_nonzero_warnv_p): New.
11702         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
11703
11704 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
11705
11706         PR middle-end/35456
11707         * fold-const.c (fold_cond_expr_with_comparison): Prevent
11708         transformations for modes that have signed zeros.
11709         * ifcvt.c (noce_try_abs): Ditto.
11710
11711 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
11712
11713         * config/i386/i386.c (override_options): Force
11714         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
11715
11716 2008-03-04  Jan Hubicka  <jh@suse.cz>
11717
11718         PR c++/35262
11719         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
11720         in last commit.
11721
11722 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
11723
11724         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
11725         label to probe the stack.
11726
11727 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
11728
11729         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
11730         (__gthr_win32_mutex_destroy): Declare.
11731         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
11732         __gthr_win32_mutex_destroy.
11733         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
11734
11735 2008-03-03  Jan Hubicka  <jh@suse.cz>
11736
11737         PR c++/35262
11738         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
11739         aggressive on inlining cold calls.
11740
11741 2008-03-03  Richard Guenther  <rguenther@suse.de>
11742
11743         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
11744         struct copies into the expression table.
11745         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
11746         (try_to_simplify): Likewise.
11747         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
11748         integral and pointer arguments which do not change the
11749         precision to NOP_EXPRs.
11750         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
11751         VIEW_CONVERT_EXPR case.
11752
11753 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
11754
11755         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
11756         defined in a loop at depth 0 is invariant.
11757         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
11758         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
11759         be called at loop depth 0.
11760
11761 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
11762
11763         PR driver/35420
11764         * gcc.c (process_command): Update copyright notice dates.
11765         * gcov.c (print_version): Likewise.
11766         * gcov-dump.c (print_version): Likewise.
11767         * mips-tfile.c (main): Likewise.
11768         * mips-tdump.c (main): Likewise.
11769
11770 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11771
11772         PR 24924
11773         * c-common.c (flag_permissive): Delete.
11774         (constant_expression_warnings): Check flags first.
11775         (constant_expression_error): New.
11776         * c-common.h (flag_permissive): Delete.
11777         (constant_expression_error): Declare.
11778         * flags.h (flag_permissive): Declare. Update description.
11779         * diagnostic.c (pedwarn): Update.
11780         (permerror): New.
11781         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
11782         (permissive_error_kind): New.
11783         * toplev.c (flag_permissive): Define. Update description.
11784         * toplev.h (permissive_error_kind): Declare.
11785         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
11786         (pedwarn_c90): Use pedantic_warning_kind.
11787         * c-opts.c (c_common_post_options): flag_permissive does not affect
11788         flag_pedantic_errors.
11789
11790 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
11791
11792         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
11793         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
11794         __absvsi2, __absvDI2): Use unsigned arithmetic.
11795
11796 2008-03-02  Andi Kleen  <ak@suse.de>
11797             Richard Guenther  <rguenther@suse.de>
11798
11799         * struct-equiv.c: Remove file.
11800         * cfg_cleanup.c (condjump_equiv_p): Remove.
11801         * Makefile.in (OBJS-common): Remove struct-equiv.o.
11802         (struct-equiv.o): Remove rule.
11803         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
11804         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
11805         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
11806
11807 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
11808
11809         * ifcvt.c (noce_process_if_block): Try to handle only the then
11810         block if the else block exists but isn't suitable.
11811
11812 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
11813
11814         PR gcc/35063
11815         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
11816         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
11817         regression from previous patch.
11818
11819 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
11820
11821         PR gcc/35063
11822         * gthr.h: Add __gthread_mutex_destroy as a function that must be
11823         implemented.
11824         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
11825         * gthr-single.h (__gthread_mutex_destroy): Likewise.
11826         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
11827         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
11828         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
11829         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
11830         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
11831         (__gthread_mutex_destroy_function): Rename to
11832         __gthread_mutex_destroy.
11833         * gthr-dce.h (__gthread_mutex_destroy): Call
11834         pthread_mutex_destroy.
11835         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
11836         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
11837         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
11838
11839 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
11840
11841         * df-scan.c (df_ref_chain_change_bb): Simplify.
11842         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
11843         set_block_for_insn if there's any change.
11844         * df.h ((df_insn_change_bb): Fix prototype.
11845         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
11846         df_insn_change_bb, don't call set_block_for_insn.
11847         * emit-rtl.c (reorder_insns): Likewise.
11848         * haifa-sched.c (move_insn): Likewise.
11849
11850 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
11851
11852         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
11853
11854 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
11855
11856         * tree-flow-inline.h (next_readonly_imm_use): Return
11857         NULL_USE_OPERAND_P after the end.
11858
11859 2008-03-01  Richard Guenther  <rguenther@suse.de>
11860
11861         PR tree-optimization/35411
11862         * tree-sra.c (sra_build_assignment): Split conversion to
11863         final type to a separate statement if we are not assigning
11864         to a register.
11865
11866 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
11867
11868         * fold-const.c (fold_convertible_p): Correct the logic to follow
11869         that in fold_convert().
11870
11871 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
11872
11873         PR c++/35315
11874         * tree-inline.c (build_duplicate_type): When we make a
11875         duplicate type, make it unique in the canonical types system.
11876
11877 2008-02-29  Tom Tromey  <tromey@redhat.com>
11878
11879         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
11880         input_file_stack_history, input_file_stack_restored): Remove.
11881         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
11882         * input.h (struct file_stack): Remove.
11883         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
11884         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
11885         Likewise.
11886         * diagnostic.h (struct diagnostic_context) <last_module>: Change
11887         type.
11888         (diagnostic_last_module_changed): Add 'map' argument.
11889         (diagnostic_set_last_function): Likewise.
11890         * diagnostic.c (undiagnostic_report_current_module): Iterate using
11891         line map, not input_file_stack.
11892         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
11893
11894 2008-02-29  Paul Brook  <paul@codesourcery.com>
11895
11896         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
11897
11898 2008-02-29  Paul Brook  <paul@codesourcery.com>
11899
11900         * config/arm/ieee754-df.S (muldf3): Use RET macros.
11901
11902 2008-02-29  Richard Guenther  <rguenther@suse.de>
11903
11904         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
11905         vn_lookup_or_add.
11906         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
11907         value for comparing for a store match.
11908         (simplify_unary_expression): Do nothing for SSA_NAMEs.
11909         (try_to_simplify): Do not do a full-blown reference lookup.
11910
11911 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
11912
11913         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
11914         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
11915
11916         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
11917
11918 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
11919
11920         * tree-loop-linear.c (try_interchange_loops): Compare memory access
11921         strides against cache sizes.
11922
11923 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
11924
11925         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
11926         constant to fpul.
11927
11928 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
11929
11930         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
11931         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
11932         is smaller than the original promoted value.
11933         (simplify_subreg): If OP is a SUBREG, try to preserve its
11934         SUBREG_PROMOTED_VAR_P information.
11935
11936 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
11937
11938         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
11939         (VN_INFO_GET): Allocate new objects on the obstack.
11940         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
11941         for rpo_numbers_temp, for consistency.
11942         (free_scc_vn): Free the obstack.
11943
11944 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
11945
11946         * doc/invoke.texi: Document -ftree-loop-distribution.
11947         * tree-loop-distribution.c: New.
11948         * tree-pass.h (pass_loop_distribution): New.
11949         * graphds.h (struct graph): Add htab_t indices.
11950         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
11951         * tree-vectorizer.c (rename_variables_in_loop): Extern.
11952         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
11953         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
11954         * tree-data-ref.c (debug_data_dependence_relations): New.
11955         (dump_data_dependence_relation): Also print data references.
11956         (free_data_ref): Extern.
11957         (same_access_functions): Moved...
11958         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
11959         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
11960         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
11961         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
11962         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
11963         (stmts_from_loop): Skip LABEL_EXPR.
11964         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
11965         New.
11966         (build_rdg): Initialize rdg->indices htab.
11967         (free_rdg, stores_from_loop, ref_base_address,
11968         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
11969         have_similar_memory_accesses_1, ref_base_address_1,
11970         remove_similar_memory_refs): New.
11971         * tree-data-ref.h: Depend on tree-chrec.h.
11972         (debug_data_dependence_relations, free_data_ref): Declared.
11973         (same_access_functions): ... here.
11974         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
11975         New.
11976         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
11977         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
11978         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
11979         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
11980         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
11981         rdg_vertex_for_stmt): Declared.
11982         (struct rdg_edge): Add level.
11983         (RDGE_LEVEL): New.
11984         (free_rdg, stores_from_loop, remove_similar_memory_refs,
11985         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
11986         Declared.
11987         (rdg_has_similar_memory_accesses): New.
11988         * tree-vect-analyze.c: Remove unused static decls.
11989         * lambda.h (dependence_level): New.
11990         * common.opt (ftree-loop-distribution): New.
11991         * tree-flow.h (mark_virtual_ops_in_bb, 
11992         slpeel_tree_duplicate_loop_to_edge_cfg,
11993         rename_variables_in_loop): Declared.
11994         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
11995         (OBJS-common): Add tree-loop-distribution.o.
11996         (tree-loop-distribution.o): New rule.
11997         * tree-cfg.c (mark_virtual_ops_in_bb): New.
11998         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
11999         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
12000
12001 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
12002
12003         PR target/33963
12004         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
12005         other than structures and unions.
12006
12007 2008-02-28  Richard Guenther  <rguenther@suse.de>
12008
12009         Revert:
12010         2008-02-26  Richard Guenther  <rguenther@suse.de>
12011
12012         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12013         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12014         (lookup_decl_from_uid): Declare.
12015         (remove_decl_from_map): Likewise.
12016         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12017         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12018         (decl_for_uid_map): New global hashtable mapping DECL_UID
12019         to the decl tree.
12020         (init_ttree): Allocate it.
12021         (insert_decl_to_uid_decl_map): New helper function.
12022         (make_node_stat): Insert new decls into the map.
12023         (copy_node_stat): Likewise.
12024         (lookup_decl_from_uid): New function.
12025         (remove_decl_from_map): Likewise.
12026         (print_decl_for_uid_map_statistics): New helper.
12027         (dump_tree_statistics): Call it.
12028
12029         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12030         (referenced_var_iterator): Adjust.
12031         (FOR_EACH_REFERENCED_VAR): Adjust.
12032         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12033         (num_referenced_vars): Adjust.
12034         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12035         (first_referenced_var): Remove.
12036         (end_referenced_vars_p): Likewise.
12037         (next_referenced_var): Likewise.
12038         (referenced_var_iterator_set): New helper function.
12039         * tree-dfa.c (referenced_var_lookup): Adjust.
12040         (referenced_var_check_and_insert): Likewise.
12041         (remove_referenced_var): Likewise.
12042         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12043         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12044         (verify_call_clobbering): Likewise.
12045         (verify_memory_partitions): Likewise.
12046         (init_tree_ssa): Allocate bitmap instead of hashtable for
12047         referenced_vars.
12048         (delete_tree_ssa): Adjust.
12049         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12050         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12051         (compute_tag_properties): Likewise.
12052         (set_initial_properties): Likewise.
12053         (find_partition_for): Likewise.
12054         (update_reference_counts): Likewise.
12055         (dump_may_aliases_for): Likewise.
12056         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12057         (add_call_clobber_ops): Likewise.
12058         (add_call_read_ops): Likewise.
12059         (get_asm_expr_operands): Likewise.
12060         * tree-into-ssa.c (dump_decl_set): Likewise.
12061         (update_ssa): Likewise.
12062         * tree-sra.c (scan_function): Likewise.
12063         (decide_instantiations): Likewise.
12064         (scalarize_parms): Likewise.
12065         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12066         (dsa_named_for): Likewise.
12067         * tree-ssa-structalias.c (update_alias_info): Likewise.
12068         (merge_smts_into): Likewise.
12069
12070 2008-02-27  David Daney  <ddaney@avtrex.com>
12071
12072         PR target/34409
12073         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
12074         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
12075         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
12076         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
12077         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
12078
12079 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
12080
12081         PR target/25477
12082         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
12083         (BUILT_IN_NEXTTOWARD): Remove.
12084         (BUILT_IN_NEXTTOWARDF): Ditto.
12085         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
12086         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
12087
12088 2008-02-27  Tom Tromey  <tromey@redhat.com>
12089
12090         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
12091         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
12092
12093 2008-02-27  Jan Beulich  <jbeulich@novell.com>
12094
12095         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
12096         update the respective field on newdecl.
12097
12098 2008-02-27  Revital Eres  <eres@il.ibm.com>
12099
12100         PR rtl-optimization/34999
12101         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
12102         crossing edges that ends with a call insn.
12103         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
12104         call insn and clear the EDGE_CROSSING flag of the crossing edge
12105         when fixing fallthru edges.
12106
12107 2008-02-27  Richard Guenther  <rguenther@suse.de>
12108
12109         PR middle-end/35390
12110         * fold-const.c (fold_unary): Return the correct argument,
12111         converted to the result type.
12112
12113 2008-02-27  Richard Guenther  <rguenther@suse.de>
12114
12115         PR middle-end/34971
12116         * expr.c (expand_expr_real_1): Assert on rotates that operate
12117         on partial modes.
12118         * fold-const.c (fold_binary): Use the types precision, not the
12119         bitsize of the mode if folding rotate expressions.  Build rotates
12120         only for full modes.
12121
12122 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
12123
12124         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
12125         and CPP_PRAGMA_EOL.
12126         * c-pragma.c (pragma_ns_name): New typedef.
12127         (registered_pp_pragmas): New variable.
12128         (c_pp_lookup_pragma): New function.
12129         (c_register_pragma_1): If flag_preprocess_only, do nothing
12130         for non-expanded pragmas, for expanded ones push pragma's
12131         namespace and name into registered_pp_pragmas vector.
12132         (c_invoke_pragma_handler): Register OpenMP pragmas even when
12133         flag_preprocess_only, don't register GCC pch_preprocess
12134         pragma if flag_preprocess_only.
12135         * c-opts.c (c_common_init): Call init_pragma even if
12136         flag_preprocess_only.
12137         * c-pragma.c (c_pp_lookup_pragma): New prototype.
12138         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
12139         cpp_register_pragma if flag_preprocess_only.
12140
12141 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12142
12143         PR c/28800
12144         * c-parser.c (c_parser_translation_unit): Warn for empty
12145         translation unit, not empty source file.
12146
12147 2008-02-26  Paul Brook  <paul@codesourcery.com>
12148
12149         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
12150         operand for Thumb-2.
12151         * config/arm/arm.h (reg_class): Add CORE_REGS.
12152         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
12153         (BASE_REG_CLASS): Use CORE_REGS.
12154         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
12155         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
12156         (REGNO_OK_FOR_INDEX_P): Exclude SP.
12157         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
12158         ARM_REGNO_OK_FOR_INDEX_P.
12159         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
12160         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
12161         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
12162         (ldm/stm peepholes): Ditto.
12163         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
12164         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
12165         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
12166         * config/arm/constraints.md: Enable "k" constraint on ARM.
12167
12168 2008-02-27  Ben Elliston  <bje@au.ibm.com>
12169
12170         * config/rs6000/rs6000.c: Annotate cache line size field in all
12171         instances of struct processor_costs.
12172
12173 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
12174
12175         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
12176         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
12177         jump_bypass): New counters.
12178         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
12179         * dce.c (gate_ud_dce): Same.
12180         (gate_fast_dce): Same.
12181         * dse.c (gate_dse1): New function.
12182         (gate_dse2): New function.
12183         (gate_dse): Merge results of new gate functions.
12184         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
12185         (gate_handle_jump_bypass): Add dbg_cnt.
12186         (gate_handle_gcse): Add dbg_cnt.
12187         * ifcvt.c (gate_handle_if_conversion): Same.
12188         (gate_handle_if_after_combine): Same.
12189         (gate_handle_if_after_reload): Same.
12190         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
12191
12192 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
12193
12194         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
12195         line sizes.
12196         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
12197
12198 2008-02-26  Jason Merrill  <jason@redhat.com>
12199
12200         PR c++/35315
12201         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
12202         alone if it's the naming decl for the type's main variant.
12203
12204 2008-02-26  Tom Tromey  <tromey@redhat.com>
12205
12206         * system.h (USE_MAPPED_LOCATION): Poison.
12207         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
12208         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
12209         (make_goto_expr_edges): Likewise.
12210         (remove_bb): Likewise.
12211         (execute_warn_function_return): Likewise.
12212         * basic-block.h (struct edge_def) <goto_locus>: Change type to
12213         location_t.
12214         * c-common.c (fname_decl): Remove old location code.
12215         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
12216         location code.
12217         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
12218         variant.
12219         (ASM_INPUT_SOURCE_LOCATION): Likewise.
12220         (gen_rtx_ASM_INPUT): Likewise.
12221         (gen_rtx_ASM_INPUT_loc): Likewise.
12222         (get_rtx_asm_OPERANDS): Remove.
12223         * cfglayout.c (insn_locators_alloc): Remove old location code.
12224         (set_curr_insn_source_location): Likewise.
12225         (curr_insn_locator): Likewise.
12226         * print-tree.c (print_node): Remove old location code.
12227         * tree-mudflap.c (mf_varname_tree): Remove old location code.
12228         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
12229         * cfgexpand.c (expand_gimple_cond_expr): Don't use
12230         location_from_locus.
12231         (construct_exit_block): Remove old location code.
12232         * emit-rtl.c (force_next_line_note): Remove old location code.
12233         * profile.c (branch_prob): Remove old location code.
12234         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
12235         LOC_LINE): Remove old-location variants.
12236         * langhooks.c (lhd_print_error_function): Remove old location
12237         code.
12238         * configure, config.in: Rebuilt.
12239         * configure.ac (--enable-mapped-location): Remove.
12240         * c-decl.c (c_init_decl_processing): Remove old location code.
12241         (finish_function): Likewise.
12242         * recog.c (decode_asm_operands): Remove old location code.
12243         * c-pch.c (c_common_read_pch): Remove old location code.
12244         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
12245         variants.
12246         * gimple-low.c (lower_function_body): Remove old location code.
12247         * toplev.c (unknown_location): Remove.
12248         (push_srcloc): Remove old-location variant.
12249         (process_options): Remove old location code.
12250         (lang_dependent_init): Likewise.
12251         * input.h (UNKNOWN_LOCATION): Move definition.
12252         (location_t): Undeprecate.
12253         (source_locus): Remove.
12254         (location_from_locus): Remove.
12255         (struct location_s): Remove.
12256         Remove all old-location code.
12257         (input_line, input_filename): Remove.
12258         * final.c (final_scan_insn): Remove old location code.
12259         * diagnostic.c (diagnostic_build_prefix): Remove
12260         USE_MAPPED_LOCATION test.
12261         * tree.h (gimple_stmt) <locus>: Now a location_t.
12262         (tree_exp) <locus>: Likewise.
12263         (DECL_IS_BUILTIN): Remove old-location variant.
12264         (annotate_with_file_line, annotate_with_locus): Likewise.
12265         (expr_locus, set_expr_locus): Update.
12266         * tree.c (build1_stat): Remove old location code.
12267         (last_annotated_node): Remove.
12268         (annotate_with_file_line): Remove old-location variant.
12269         (annotate_with_locus): Likewise.
12270         (expr_location): Remove old location code.
12271         (set_expr_location): Likewise.
12272         (expr_has_location): Likewise.
12273         (expr_locus): Likewise.
12274         (set_expr_locus): Likewise.
12275         (expr_filename): Don't use location_from_locus.
12276         (expr_lineno): Likewise.
12277         * rtl-error.c (location_for_asm): Remove old location code.
12278         * c-lex.c (cb_line_change): Remove old location code.
12279         (fe_file_change): Likewise.
12280         (cb_def_pragma): Likewise.
12281         (c_lex_with_flags): Likewise.
12282         * gengtype.c (do_typedef): Don't special-case location types.
12283         (define_location_structures): Remove.
12284         (main): Don't call define_location_structures.
12285         * tree-pretty-print.c (dump_implicit_edges): Remove old location
12286         code.
12287
12288 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12289
12290         PR 26264
12291         * builtins.def (BUILT_IN_STDARG_START): Remove.
12292         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
12293         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
12294         * tree-inline.c (inline_forbidden_p_1): Likewise.
12295         
12296 2008-02-26  Richard Guenther  <rguenther@suse.de>
12297
12298         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12299         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12300         (lookup_decl_from_uid): Declare.
12301         (remove_decl_from_map): Likewise.
12302         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12303         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12304         (decl_for_uid_map): New global hashtable mapping DECL_UID
12305         to the decl tree.
12306         (init_ttree): Allocate it.
12307         (insert_decl_to_uid_decl_map): New helper function.
12308         (make_node_stat): Insert new decls into the map.
12309         (copy_node_stat): Likewise.
12310         (lookup_decl_from_uid): New function.
12311         (remove_decl_from_map): Likewise.
12312         (print_decl_for_uid_map_statistics): New helper.
12313         (dump_tree_statistics): Call it.
12314
12315         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12316         (referenced_var_iterator): Adjust.
12317         (FOR_EACH_REFERENCED_VAR): Adjust.
12318         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12319         (num_referenced_vars): Adjust.
12320         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12321         (first_referenced_var): Remove.
12322         (end_referenced_vars_p): Likewise.
12323         (next_referenced_var): Likewise.
12324         (referenced_var_iterator_set): New helper function.
12325         * tree-dfa.c (referenced_var_lookup): Adjust.
12326         (referenced_var_check_and_insert): Likewise.
12327         (remove_referenced_var): Likewise.
12328         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12329         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12330         (verify_call_clobbering): Likewise.
12331         (verify_memory_partitions): Likewise.
12332         (init_tree_ssa): Allocate bitmap instead of hashtable for
12333         referenced_vars.
12334         (delete_tree_ssa): Adjust.
12335         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12336         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12337         (compute_tag_properties): Likewise.
12338         (set_initial_properties): Likewise.
12339         (find_partition_for): Likewise.
12340         (update_reference_counts): Likewise.
12341         (dump_may_aliases_for): Likewise.
12342         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12343         (add_call_clobber_ops): Likewise.
12344         (add_call_read_ops): Likewise.
12345         (get_asm_expr_operands): Likewise.
12346         * tree-into-ssa.c (dump_decl_set): Likewise.
12347         (update_ssa): Likewise.
12348         * tree-sra.c (scan_function): Likewise.
12349         (decide_instantiations): Likewise.
12350         (scalarize_parms): Likewise.
12351         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12352         (dsa_named_for): Likewise.
12353         * tree-ssa-structalias.c (update_alias_info): Likewise.
12354         (merge_smts_into): Likewise.
12355
12356 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12357
12358         PR 34351
12359         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
12360         * c-opts.c (c_common_handle_option): Wall enables
12361         Wvolatile-register-var.
12362         * common.opt: Move Wvolatile-register-var to...
12363         * c.opt: ...here.
12364         
12365 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12366
12367         * common.opt (Wlarger-than=): New.
12368         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
12369         -Wlarger-than=.
12370         * opts.c (common_handle_option): Handle -Wlarger-than=.
12371         * optc-gen.awk: Likewise.
12372         * opth-gen.awk: Likewise.
12373         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
12374         * tree-optimize.c (tree_rest_of_compilation): Likewise.
12375         
12376 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12377
12378         * c-common.c (match_case_to_enum_1): Add appropriate
12379         OPT_W* parameter to warning.
12380         (c_do_switch_warnings): Likewise.
12381         * c-typeck.c (warning_init): Add one more parameter following
12382         'warning' function.
12383         (push_init_level): Update call to warning_init.
12384         (pop_init_level): Likewise.
12385         (add_pending_init): Likewise.
12386         (output_init_element: Likewise.
12387
12388 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12389
12390         PR 28322
12391         * toplev.c (toplev_main): If there are warnings or error, print
12392         errors for ignored options.
12393         * opts.c (ignored_options): New static variable.
12394         (postpone_unknown_option_error): New.
12395         (print_ignored_options): New.
12396         (handle_option): Postpone errors for unknown -Wno-* options.
12397         * opts.h (print_ignored_options): Declare.
12398         
12399 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
12400
12401         * config/mips/mips.md (loadgp_blockage, blockage): Change type
12402         to "ghost".
12403
12404 2008-02-25  Richard Guenther  <rguenther@suse.de>
12405
12406         Revert:
12407         2008-02-25  Richard Guenther  <rguenther@suse.de>
12408
12409         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12410         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12411         (lookup_decl_from_uid): Declare.
12412         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12413         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12414         (decl_for_uid_map): New global hashtable mapping DECL_UID
12415         to the decl tree.
12416         (init_ttree): Allocate it.
12417         (insert_decl_to_uid_decl_map): New helper function.
12418         (make_node_stat): Insert new decls into the map.
12419         (copy_node_stat): Likewise.
12420         (lookup_decl_from_uid): New function.
12421         (print_decl_for_uid_map_statistics): New helper.
12422         (dump_tree_statistics): Call it.
12423
12424         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12425         (referenced_var_iterator): Adjust.
12426         (FOR_EACH_REFERENCED_VAR): Adjust.
12427         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12428         (num_referenced_vars): Adjust.
12429         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12430         (first_referenced_var): Remove.
12431         (end_referenced_vars_p): Likewise.
12432         (next_referenced_var): Likewise.
12433         (referenced_var_iterator_set): New helper function.
12434         * tree-dfa.c (referenced_var_lookup): Adjust.
12435         (referenced_var_check_and_insert): Likewise.
12436         (remove_referenced_var): Likewise.
12437         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12438         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12439         (verify_call_clobbering): Likewise.
12440         (verify_memory_partitions): Likewise.
12441         (init_tree_ssa): Allocate bitmap instead of hashtable for
12442         referenced_vars.
12443         (delete_tree_ssa): Adjust.
12444         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12445         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12446         (compute_tag_properties): Likewise.
12447         (set_initial_properties): Likewise.
12448         (find_partition_for): Likewise.
12449         (update_reference_counts): Likewise.
12450         (dump_may_aliases_for): Likewise.
12451         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12452         (add_call_clobber_ops): Likewise.
12453         (add_call_read_ops): Likewise.
12454         (get_asm_expr_operands): Likewise.
12455         * tree-into-ssa.c (dump_decl_set): Likewise.
12456         (update_ssa): Likewise.
12457         * tree-sra.c (scan_function): Likewise.
12458         (decide_instantiations): Likewise.
12459         (scalarize_parms): Likewise.
12460         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12461         (dsa_named_for): Likewise.
12462         * tree-ssa-structalias.c (update_alias_info): Likewise.
12463         (merge_smts_into): Likewise.
12464
12465 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
12466
12467         PR fortran/29549
12468         * doc/invoke.texi (-fcx-limited-range): Document new option.
12469         * toplev.c (process_options): Handle -fcx-fortran-rules.
12470         * common.opt: Add documentation for -fcx-fortran-rules.
12471
12472 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
12473
12474         PR c/35162
12475         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
12476         actual behaviour and C99.
12477         
12478 2008-02-26  Ben Elliston  <bje@au.ibm.com>
12479
12480         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
12481         (ASM_CPU_POWER6_SPEC): Likewise.
12482         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
12483         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
12484         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
12485
12486 2008-02-25  Richard Guenther  <rguenther@suse.de>
12487
12488         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12489         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12490         (lookup_decl_from_uid): Declare.
12491         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12492         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12493         (decl_for_uid_map): New global hashtable mapping DECL_UID
12494         to the decl tree.
12495         (init_ttree): Allocate it.
12496         (insert_decl_to_uid_decl_map): New helper function.
12497         (make_node_stat): Insert new decls into the map.
12498         (copy_node_stat): Likewise.
12499         (lookup_decl_from_uid): New function.
12500         (print_decl_for_uid_map_statistics): New helper.
12501         (dump_tree_statistics): Call it.
12502
12503         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12504         (referenced_var_iterator): Adjust.
12505         (FOR_EACH_REFERENCED_VAR): Adjust.
12506         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12507         (num_referenced_vars): Adjust.
12508         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12509         (first_referenced_var): Remove.
12510         (end_referenced_vars_p): Likewise.
12511         (next_referenced_var): Likewise.
12512         (referenced_var_iterator_set): New helper function.
12513         * tree-dfa.c (referenced_var_lookup): Adjust.
12514         (referenced_var_check_and_insert): Likewise.
12515         (remove_referenced_var): Likewise.
12516         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12517         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12518         (verify_call_clobbering): Likewise.
12519         (verify_memory_partitions): Likewise.
12520         (init_tree_ssa): Allocate bitmap instead of hashtable for
12521         referenced_vars.
12522         (delete_tree_ssa): Adjust.
12523         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12524         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12525         (compute_tag_properties): Likewise.
12526         (set_initial_properties): Likewise.
12527         (find_partition_for): Likewise.
12528         (update_reference_counts): Likewise.
12529         (dump_may_aliases_for): Likewise.
12530         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12531         (add_call_clobber_ops): Likewise.
12532         (add_call_read_ops): Likewise.
12533         (get_asm_expr_operands): Likewise.
12534         * tree-into-ssa.c (dump_decl_set): Likewise.
12535         (update_ssa): Likewise.
12536         * tree-sra.c (scan_function): Likewise.
12537         (decide_instantiations): Likewise.
12538         (scalarize_parms): Likewise.
12539         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12540         (dsa_named_for): Likewise.
12541         * tree-ssa-structalias.c (update_alias_info): Likewise.
12542         (merge_smts_into): Likewise.
12543
12544 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
12545
12546         PR target/35258
12547         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
12548         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
12549         * alias.h (nonoverlapping_memrefs_p): Likewise.
12550
12551 2008-02-25  Jan Beulich  <jbeulich@novell.com>
12552
12553         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
12554         * config/i386/netware-libgcc.exp: Add __bswap?i2,
12555         __emultls_get_address, __emultls_register_common,
12556         __floatundi?f, and _Unwind_GetIPInfo.
12557         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
12558         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
12559         (gen_regparm_prefix): Likewise.
12560         (i386_nlm_encode_section_info): Sync with
12561         config/i386/winnt.c:i386_pe_encode_section_info().
12562         (i386_nlm_maybe_mangle_decl_assembler_name): New.
12563         i386_nlm_mangle_decl_assembler_name): New.
12564         (netware_override_options): New.
12565         * config/i386/netware.h (netware_override_options): Declare.
12566         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
12567         (i386_nlm_mangle_decl_assembler_name): Declare.
12568         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
12569
12570 2008-02-25  Ben Elliston  <bje@au.ibm.com>
12571
12572         PR other/32948
12573         * c-decl.c (grokdeclarator): Remove unused local variables
12574         `typedef_type' and `type_as_written'.
12575         * bb-reorder.c
12576         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
12577         unused local variable `has_hot_blocks'.
12578         (fix_crossing_conditional_branches): Remove unused local variable
12579         `prev_bb'.
12580         
12581 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
12582
12583         PR middle-end/19984
12584         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
12585         using DEF_C99_BUILTIN.
12586         (BUILT_IN_NANF): Ditto.
12587         (BUILT_IN_NANL): Ditto.
12588
12589 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
12590             Revital Eres  <eres@il.ibm.com>
12591
12592         * modulo-sched.c (calculate_must_precede_follow): Address TODO
12593         regarding the order of two dependent insns in the same row.
12594
12595 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
12596
12597         * stor-layout.c (layout_decl): Do not bump the alignment of a
12598         bit-field to more than byte alignment if it is packed.
12599
12600 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
12601
12602         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
12603         e300c2 and e300c3.
12604
12605 2008-02-24  Diego Novillo  <dnovillo@google.com>
12606
12607         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
12608
12609         PR 33738
12610         * tree-vrp.c (vrp_evaluate_conditional): With
12611         -Wtype-limits, emit a warning when comparing against a
12612         constant outside the natural range of OP0's type.
12613         * c.opt (Wtype-limits): Move ...
12614         * common.opt (Wtype-limits): ... here.
12615
12616 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
12617
12618         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
12619         * config/rs6000/e300c2c3.md: New file.
12620         * config/rs6000/rs6000.c (processor_costs): Add new costs for
12621         e300c2 and e300c3.
12622         (rs6000_override_options): Add e300c2 and e300c3 cases to
12623         processor_target_table. Do not allow usage of Altivec or Spe
12624         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
12625         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
12626         * config/rs6000/rs6000.h (processor_type): Add
12627         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
12628         (ASM_CPU_SPEC): Add e300c2 and e300c3.
12629         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
12630         and ppce300c3. Include e300c2c3.md.
12631
12632 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
12633
12634         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
12635         instead of TARGET_STRICT_ALIGN.
12636
12637 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
12638
12639         * explow.c (memory_address): Assert that the generated address is
12640         valid.
12641
12642 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
12643
12644         PR target/25477
12645         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
12646         * config/darwin-ppc-ldouble-patch.def: New file.
12647         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
12648         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
12649         SUBTARGET_INIT_BUILTINS if defined.
12650         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
12651         New functions.
12652
12653 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12654
12655         PR rtl-opt/33512
12656         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
12657         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
12658
12659 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12660
12661         PR pch/35027
12662         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
12663         file" warning condtional on -Winvalid-PCH.
12664
12665 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
12666
12667         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
12668
12669 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
12670
12671         PR target/22076
12672         PR target/34256 
12673         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
12674         prevent reload from using MMX registers.
12675         (*mov<mode>_internal): Ditto.
12676         (*movv2sf_internal_rex64): Ditto.
12677         (*movv2sf_internal): Ditto.
12678
12679 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12680
12681         PR documentation/31569
12682         * doc/install.texi2html: Use makeinfo --no-number-sections.
12683
12684 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
12685
12686         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
12687         ensure that we can address an entire entity > 8 bytes.  Don't
12688         generate reg+reg addressing for such data.
12689
12690 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
12691
12692         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
12693         strings when optimizing for size, unless the target cares about
12694         alignment.
12695
12696 2008-02-22  Tom Tromey  <tromey@redhat.com>
12697
12698         * regclass.c (current_pass): Remove declaration.
12699
12700 2008-02-22  Anatoly Sokolov <aesok@post.ru>
12701
12702         * config/avr/libgcc.S (__RAMPZ__): Define.
12703         (__do_copy_data): Add for devices with 128KB code memory.
12704
12705 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
12706
12707         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
12708         Use spe_abi.
12709         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
12710
12711 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
12712
12713         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
12714         GENNONACR_REGS.
12715
12716 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12717
12718         PR c/19999
12719         * c-typeck.c (build_binary_op): Warn about floating point
12720         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
12721
12722 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
12723
12724         PR target/34526
12725         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
12726         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
12727         add vrsave.
12728         (rs6000_override_options): Set altivec_abi as default, not override,
12729         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
12730         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
12731         is used; use new member spe_abi.
12732         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
12733         spe_abi and altivec_abi.
12734
12735 2008-02-22  Tomas Bily  <tbily@suse.cz>
12736
12737         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
12738
12739 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12740
12741         PR bootstrap/35273
12742         * config.build (build_file_translate): Set to `CMD //c' only if
12743         it works.
12744         * Makefile.in (build_file_translate): Improve comment.
12745
12746 2008-02-21  Jan Hubicka  <jh@suse.cz>
12747
12748         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
12749         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
12750         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
12751
12752 2008-02-21  Michael Matz  <matz@suse.de>
12753
12754         PR target/35264
12755         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
12756
12757 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
12758
12759         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
12760         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
12761         as insn constraint.
12762         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
12763         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
12764         SSE_VEC_FLOAT_MODE_P as insn constraint.
12765         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
12766         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
12767         sse4a_movntdf using MODEF mode iterator.
12768         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
12769         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
12770         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
12771         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
12772         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
12773         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
12774         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
12775
12776 2008-02-21  Richard Guenther  <rguenther@suse.de>
12777
12778         * tree.def (PAREN_EXPR): New tree code.
12779         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
12780         and PAREN_EXPR.
12781         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
12782         * expr.c (expand_expr_real_1): Likewise.
12783         * tree-inline.c (estimate_num_insns_1): Likewise.
12784         * tree-complex.c (expand_complex_move): Likewise.
12785         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
12786         as plain x.
12787
12788 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
12789
12790         PR target/35225
12791         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
12792
12793 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
12794
12795         PR target/35190
12796         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
12797
12798         * config/sh/sh.c (find_barrier): Don't go past
12799         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
12800
12801 2008-02-20  DJ Delorie  <dj@redhat.com>
12802
12803         * config/h8300/h8300.md (insv): Force source operand to be a register.
12804
12805         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
12806         as a jump, not as a plain insn.
12807         
12808 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
12809
12810         * doc/invoke.texi (Warning Options): Add new option
12811         -Wframe-larger-than=.
12812         (-Wframe-larger-than): Document.
12813
12814         * flags.h (warn_frame_larger_than, frame_larger_than_size):
12815         Add declarations for new option variables.
12816
12817         * final.c (final_start_function): Check the frame size
12818         before emission and issue a Wframe-larger-than warning.
12819
12820         * opts.c (warn_frame_larger_than, frame_larger_than_size):
12821         Add definitions for new option variables.
12822         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
12823
12824         * common.opt (Wframe-larger-than=): New option.
12825
12826 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
12827
12828         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
12829         (<sse>_div<mode>3): Ditto.
12830         (<sse>_vmdiv<mode>3): Ditto.
12831         (<sse>_vmsqrt<mode>2): Ditto.
12832         (*smax<mode>3): Ditto.
12833         (sse5_frcz<mode>2): Ditto.
12834         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
12835         as insn constraint.
12836
12837 2008-02-20  Richard Guenther  <rguenther@suse.de>
12838
12839         PR middle-end/35265
12840         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
12841         be happy with INTEGRAL_TYPE_P.
12842
12843 2008-02-20  Richard Guenther  <rguenther@suse.de>
12844
12845         * fold-const.c (split_tree): Associate floatig-point expressions
12846         if flag_associative_math is set.
12847
12848 2008-02-20  Richard Guenther  <rguenther@suse.de>
12849
12850         * tree.h (fold_real_zero_addition_p): Declare.
12851         * fold-const.c (fold_real_zero_addition_p): Export.
12852         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
12853         floating-point operations with zero and one.
12854
12855 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
12856
12857         * doc/install.texi: Correct references to CFLAGS, replacing them
12858         with BOOT_CFLAGS.  Document flags used during bootstrap for
12859         target libraries.
12860                                 
12861 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
12862
12863         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
12864         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
12865         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
12866         insn constraint.
12867         (smin<mode>3): Ditto from similar patterns.
12868         (smax<mode>3): Ditto.
12869         (*ieee_smin<mode>3): Ditto.
12870         (*ieee_smax<mode>3): Ditto.
12871         * config/i386/sse.md (sse): New mode attribute.
12872         (mov<mode>): Macroize expander from movv4sf and movv2df using
12873         SSEMODEF2P mode iterator.
12874         (<sse>_movnt<mode>): Ditto from similar patterns. Use
12875         SSE_VEC_FLOAT_MODE_P as insn constraint.
12876         (storent<mode>): Ditto.
12877         (storent<mode>): Macroize expander from storentsf and storentdf using
12878         MODEF mode iterator.
12879         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
12880         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
12881         (abs<mode>2): Ditto from similar patterns.
12882         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
12883         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
12884         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
12885         (<sse>_vmsqrt<mode>2): Ditto.
12886         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
12887         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
12888         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
12889         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
12890         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
12891         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
12892         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
12893         insn constraint.
12894         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
12895         iterator and SSE_FLOAT_MODE_P as insn constraint.
12896         (<sse>_ucomi): Ditto from similar patterns.
12897         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
12898         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
12899         SSE_VEC_FLOAT_MODE_P as insn constraint.
12900         (vcond<mode>): Ditto from similar patterns.
12901         (and<mode>3, *and<mode>3): Ditto.
12902         (<sse>_nand<mode>3): Ditto.
12903         (ior<mode>3, *ior<mode>3): Ditto.
12904         (xor<mode>3, *xor<mode>3): Ditto.
12905         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
12906         iterator and SSE_FLOAT_MODE_P as insn constraint.
12907         (*nand<mode>3): Ditto from similar patterns.
12908         (*ior<mode>3): Ditto.
12909         (*xor<mode>3): Ditto.
12910
12911 2008-02-20  Ira Rosen  <irar@il.ibm.com>
12912
12913         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
12914         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
12915         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
12916
12917 2008-02-19  Jan Hubicka  <jh@suse.cz>
12918
12919         * predict.c (tree_bb_level_predictions): Remove variable next
12920         mistakely introduced by previous commit.
12921
12922 2008-02-19  Jan Hubicka  <jh@suse.cz>
12923
12924         * predict.c (predict_paths_leading_to): Rewrite.
12925         (predict_paths_for_bb): New.
12926         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
12927
12928 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12929
12930         PR bootstrap/35218
12931         * Makefile.in (build_file_translate): New.
12932         (gcc-vers.texi): Use it for translating $(abs_srcdir).
12933         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
12934         * configure.ac (build_file_translate): Substitute it.
12935         * configure: Regenerate.
12936
12937 2008-02-19  Jan Hubicka  <jh@suse.cz>
12938
12939         PR rtl-optimization/34408
12940         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
12941         invalid sharing.
12942
12943 2008-02-19  Jan Hubicka  <jh@suse.cz>
12944
12945         PR middle-end/28779
12946         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
12947         call_expr.
12948
12949 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
12950
12951         PR Ada/35186
12952         * config/i386/i386-modes.def: Revert the last DI alignment
12953         change until Ada people can look into it.
12954
12955 2008-02-19  Nick Clifton  <nickc@redhat.com>
12956
12957         * opts.c (print_specific_help): Fix typo in --help text.
12958
12959 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
12960
12961         PR target/35239
12962         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
12963         32-bit inline asm without asm alternatives for host GCC < 3.0.
12964
12965 2008-02-19  Richard Guenther  <rguenther@suse.de>
12966
12967         PR tree-optimization/34989
12968         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
12969         Allow propagation to INDIRECT_REF if we can simplify only.
12970
12971 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12972
12973         * c-common.c (warn_for_collisions_1): Use appropriate option when
12974         warning.
12975
12976 2008-02-19  Nick Clifton  <nickc@redhat.com>
12977
12978         PR other/31349
12979         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
12980         (handle_options): Fix indentation.
12981         (print_filtered_help): If no language-specific options were
12982         displayed tell the user how to list all the options supported by
12983         the language's front-end.
12984         (print_specific_help): Fix indentation and remove duplicate line.
12985         (common_handle_option): Handle the -v option.
12986         For --help enable the display of undocumented options if the -v
12987         switch has been included on the command line.
12988         For --help= check for overlaps in the arguments between the option
12989         classes and the language names and issue a warning when they
12990         cannot be disambiguated.
12991         * c.opt (v): Pass on to the common option handler.
12992
12993 2008-02-19  Revital Eres  <eres@il.ibm.com> 
12994
12995         * modulo-sched.c (sms_schedule): Change dump message when
12996         create_ddg function fails.
12997         (try_scheduling_node_in_cycle): Rename row to cycle.
12998         (print_partial_schedule): Rename CYCLE to ROW.
12999
13000 2008-02-19  Christian Bruel  <christian.bruel@st.com>
13001             Zdenek Dvorak  <ook@ucw.cz>
13002
13003         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
13004
13005 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
13006
13007         PR target/33555
13008         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
13009         (*x86_movdicc_0_m1_se): Ditto.
13010
13011 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
13012
13013         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
13014         (CMPtype): Define as __gcc_CMPtype.
13015         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
13016         (CMPtype): Define as __gcc_CMPtype.
13017
13018 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
13019
13020         Support valgrind 3.3 for --enable-checking=valgrind.
13021         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
13022         here.
13023         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
13024         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
13025         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
13026         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
13027         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
13028         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
13029         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
13030         respectively.
13031         * ggc-zone.c: Similar.
13032         * ggc-page.c: Similar.
13033
13034 2008-02-19  Paul Brook  <paul@codesourcery.com>
13035
13036         PR target/35071
13037         * config/arm/ieee754-df.S: Fix do_it typo.
13038         * config/arm/ieee754-sf.S: Fix do_it typo.
13039
13040 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
13041
13042         PR target/35189
13043         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
13044         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
13045         (OPTION_MASK_ISA_SSE_SET): Likewise.
13046         (OPTION_MASK_ISA_SSE2_SET): Likewise.
13047         (OPTION_MASK_ISA_SSE3_SET): Likewise.
13048         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
13049         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
13050         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
13051         (OPTION_MASK_ISA_SSE4_SET): Likewise.
13052         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
13053         (OPTION_MASK_ISA_SSE5_SET): Likewise.
13054         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
13055         (OPTION_MASK_ISA_MMX_UNSET): Updated.
13056         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
13057         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
13058         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
13059         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
13060         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
13061         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
13062         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
13063         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
13064         (OPTION_MASK_ISA_SSE4): Removed.
13065         (ix86_handle_option): Turn on bits in ix86_isa_flags and
13066         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
13067         (override_options): Don't turn on implied SSE/MMX bits in
13068         ix86_isa_flags.
13069
13070 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
13071
13072         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13073         32bit host.
13074
13075 2008-02-18  Joey Ye  <joey.ye@intel.com>
13076
13077         PR middle-end/34921
13078         * tree-nested.c (insert_field_into_struct): Set type alignment
13079         to field alignment if the former is less than the latter.
13080
13081 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
13082
13083         * BASE-VER: Set to 4.4.0.
13084
13085 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13086
13087         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
13088         * doc/cfg.texi: Likewise.
13089         * doc/extend.texi: Likewise.
13090         * doc/gty.texi: Likewise.
13091         * doc/invoke.texi: Likewise.
13092         * doc/loop.texi: Likewise.
13093         * doc/md.texi: Likewise.
13094         * doc/passes.texi: Likewise.
13095         * doc/rtl.texi: Likewise.
13096         * doc/sourcebuild.texi: Likewise.
13097         * doc/tm.texi: Likewise.
13098         * doc/tree-ssa.texi: Likewise.
13099
13100 2008-02-17  Richard Guenther  <rguenther@suse.de>
13101
13102         PR middle-end/35227
13103         * tree-complex.c (init_parameter_lattice_values): Handle parameters
13104         without default definition.
13105
13106 2008-02-17  Richard Guenther  <rguenther@suse.de>
13107
13108         PR tree-optimization/35231
13109         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
13110         if A | B != 1.
13111
13112 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
13113
13114         Revert:
13115         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
13116         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
13117         libgcc_cmp_return mode.
13118
13119 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13120
13121         PR c/28368
13122         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
13123
13124 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
13125
13126         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
13127         multilibs.
13128
13129 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13130
13131         * doc/c-tree.texi: Use `@.' where appropriate.
13132         * doc/extend.texi: Likewise.
13133         * doc/install.texi: Likewise.
13134         * doc/invoke.texi: Likewise.
13135         * doc/loop.texi: Likewise.
13136         * doc/makefile.texi: Likewise.
13137         * doc/md.texi: Likewise.
13138         * doc/passes.texi: Likewise.
13139         * doc/standards.texi: Likewise.
13140         * doc/tm.texi: Likewise.
13141
13142 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
13143
13144         PR middle-end/35196
13145         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
13146         in entry_bb.
13147         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
13148         rather than in entry_bb.
13149
13150 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
13151
13152         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
13153         libgcc_cmp_return mode.
13154
13155 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
13156
13157         PR middle-end/35130
13158         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
13159         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
13160
13161 2008-02-15  Richard Guenther  <rguenther@suse.de>
13162             Zdenek Dvorak  <ook@ucw.cz>
13163
13164         PR tree-optimization/35164
13165         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
13166         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
13167         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
13168         Only propagate addresses which do not have abnormal SSA_NAMEs
13169         in their operands.
13170
13171 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
13172
13173         PR target/35088
13174         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
13175
13176 2008-02-15  Jan Hubicka  <jh@suse.cz>
13177
13178         PR middle-end/35149
13179         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
13180
13181 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
13182
13183         PR middle-end/34621
13184         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
13185         when calculating alignment_pad.
13186
13187 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
13188
13189         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
13190         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
13191         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
13192         and STACK_BOUNDARY define.
13193
13194 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
13195
13196         PR preprocessor/35061
13197         * c-pragma.c (handle_pragma_pop_macro): Check that
13198         pushed_macro_table has been allocated.
13199
13200 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
13201
13202         PR middle-end/35136
13203         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
13204         (force_gimple_operand): Likewise.
13205         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
13206         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
13207         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
13208         (find_interesting_uses_address): Check addressability and alignment
13209         of the base expression only after substituting bases of IVs into it.
13210
13211 2008-02-14  Michael Matz  <matz@suse.de>
13212
13213         PR target/34930
13214         * function.c (instantiate_virtual_regs_in_insn): Reload address
13215         before falling back to reloading the whole operand.
13216
13217 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
13218
13219         * config/s390/s390.c (s390_mainpool_start): Emit the pool
13220         before the first section switch note.
13221
13222 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13223
13224         * doc/bugreport.texi: Update copyright years.
13225         * doc/c-tree.texi: Likewise.
13226         * doc/cfg.texi: Likewise.
13227         * doc/cpp.texi: Likewise.
13228         * doc/cppinternals.texi: Likewise.
13229         * doc/fragments.texi: Likewise.
13230         * doc/frontends.texi: Likewise.
13231         * doc/gcc.texi: Likewise.
13232         * doc/gty.texi: Likewise.
13233         * doc/hostconfig.texi: Likewise.
13234         * doc/implement-c.texi: Likewise.
13235         * doc/libgcc.texi: Likewise.
13236         * doc/loop.texi: Likewise.
13237         * doc/makefile.texi: Likewise.
13238         * doc/options.texi: Likewise.
13239         * doc/passes.texi: Likewise.
13240         * doc/rtl.texi: Likewise.
13241         * doc/sourcebuild.texi: Likewise.
13242         * doc/standards.texi: Likewise.
13243         * doc/tree-ssa.texi: Likewise.
13244         * doc/trouble.texi: Likewise.
13245
13246         * doc/extend.texi: Use @: or add comma where appropriate.
13247         * doc/invoke.texi: Likewise.
13248         * doc/tm.texi: Likewise.
13249
13250 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
13251
13252         PR target/34393
13253         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
13254         to a reg.
13255
13256 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
13257
13258         * doc/md.texi (clz, ctz): Add reference.
13259         * doc/rtl.texi (clz, ctz): Likewise.
13260
13261 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13262
13263         PR other/35148
13264         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
13265         srcdir.
13266
13267 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
13268
13269         * config/s390/s390.c (struct constant_pool): New field
13270         emit_pool_after added.
13271         (s390_mainpool_start): Set the emit_pool_after flag according
13272         to the section switch notes.
13273         (s390_mainpool_finish): Consider emit_pool_after when emitting
13274         the literal pool at the end of the function.
13275         (s390_chunkify_start): Force literal pool splits at section
13276         switch notes.
13277
13278 2008-02-13  Michael Matz  <matz@suse.de>
13279
13280         PR debug/35065
13281         * var-tracking.c (clobber_variable_part): Correctly traverse the
13282         list.
13283
13284 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13285
13286         PR 29673
13287         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
13288         Add -fdump-ipa-inline.
13289         * tree-dump.c (dump_files): Remove tree-inlined dump.
13290         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
13291         
13292 2008-02-12  Richard Guenther  <rguenther@suse.de>
13293
13294         PR tree-optimization/35171
13295         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
13296         default defs.
13297
13298 2008-02-12  Richard Guenther  <rguenther@suse.de>
13299
13300         PR middle-end/35163
13301         * fold-const.c (fold_widened_comparison): Use get_unwidened in
13302         value-preserving mode.  Disallow final truncation.
13303
13304 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
13305
13306         PR middle-end/35136
13307         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
13308         code from here to...
13309         (force_gimple_operand): ...here.
13310
13311 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
13312
13313         PR c++/35144
13314         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
13315         non-compatible pointers.
13316         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
13317         different FIELD_DECLs, try harder by comparing field offsets, sizes
13318         and types.
13319
13320         PR inline-asm/35160
13321         * function.c (match_asm_constraints_1): Don't replace the same input
13322         multiple times.
13323
13324 2008-02-12  Anatoly Sokolov <aesok@post.ru>
13325
13326         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
13327         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
13328         (expand_epilogue): Restore RAMPZ register.
13329         * config/avr/avr.md (RAMPZ_ADDR): New constant.
13330
13331 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
13332
13333         * config/i386/cygwin.asm: (__alloca): Correct calling
13334         convention and alignment.
13335         (__chkstk): Force 8 byte stack alignment.
13336
13337 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
13338             Richard Guenther  <rguenther@suse.de>
13339
13340         PR tree-optimization/33992
13341         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
13342         the zero we compare against.
13343
13344 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
13345
13346         PR libfortran/35063
13347         * gthr-win32.h (__gthread_mutex_destroy_function): New function
13348         to CloseHandle after unlocking to prevent accumulation of handle
13349         count.
13350
13351 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13352
13353         PR middle_end/34150
13354         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
13355         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
13356         and update LABEL_NUSES during and after reload.
13357
13358 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
13359
13360         PR middle-end/34627
13361         * combine.c (simplify_if_then_else): Make sure the comparison is
13362         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
13363
13364 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
13365
13366         PR bootstrap/35051
13367         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
13368         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
13369         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
13370         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
13371         * tree.h (get_type_static_bounds): Likewise.
13372
13373 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13374
13375         * doc/invoke.texi (Option Summary, C++ Dialect Options)
13376         (Objective-C and Objective-C++ Dialect Options, Warning Options):
13377         Make -Wfoo language annotations match what the compiler outputs.
13378
13379 2008-02-08  Sa Liu  <saliu@de.ibm.com>
13380
13381         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
13382         intrinsics spu_convts, spu_convtu, spu_convtf.
13383
13384 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
13385
13386         * doc/extend.texi (Function Attributes) <noinline>: Mention
13387         asm ("") as method to keep calls.
13388
13389 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13390
13391         PR other/32754
13392         * doc/options.texi (Options): Replace references to opts.sh with
13393         optc-gen.awk.
13394         * opts-common.c: Likewise.
13395         * optc-gen.awk: Likewise.
13396         
13397 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
13398
13399         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
13400
13401 2008-02-07  Richard Henderson  <rth@redhat.com>
13402
13403         PR rtl-opt/33410
13404         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
13405         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
13406         funny mode.
13407
13408 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
13409
13410         PR tree-optimization/35085
13411         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
13412         for operand entry oe2 in addition to operand entry oe3 in order to
13413         expose more opportunities for vectorizer sum reduction.
13414
13415 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13416
13417         PR other/35107
13418         * Makefile.in (LIBS): Remove $(GMPLIBS).
13419         (cc1-dummy, cc1): Add $(GMPLIBS).
13420
13421 2008-02-06  Jan Hubicka  <jh@suse.cz>
13422
13423         PR target/23322
13424         * i386.md (moddf_integer): Do not produce partial memory stalls for
13425         targets where it hurts.
13426
13427 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
13428
13429         PR target/35083
13430         * optabs.c (expand_float): Do not check for decimal modes when
13431         expanding unsigned integer through signed conversion.
13432
13433 2008-02-06  Nick Clifton  <nickc@redhat.com>
13434
13435         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
13436         inside the clobber with a match_operand and duplicated operand
13437         number in the constraint.
13438         (ineqbranchsi): Delete redundant comment.
13439
13440 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
13441
13442         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
13443         builtin_define ("__USE_INIT_FINI__").
13444         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
13445         -msx multilibs.
13446         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
13447
13448 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13449
13450         PR documentation/30330
13451         * doc/invoke.texi (C++ Dialect Options)
13452         (Objective-C and Objective-C++ Dialect Options, Warning Options):
13453         For each warning option -Wfoo that allows -Wno-foo, ensure both
13454         -Wfoo and -Wno-foo are listed in the option index.  Fix index
13455         entry of -Wswitch-default, index -Wnormalized= including the
13456         `=', and -Wlarger-than-@var{len} including @var{len}.
13457
13458 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
13459
13460         * config/i386/i386.md (floatunssisf2): Use
13461         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
13462         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
13463         Macroize expander using MODEF mode iterator.
13464
13465 2008-02-05  Diego Novillo  <dnovillo@google.com>
13466
13467         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
13468
13469         PR 33738
13470         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
13471
13472 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13473
13474         PR other/35070
13475         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
13476
13477 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
13478
13479         PR target/35084
13480         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
13481         to indicate if a message should be generated.
13482         (init_cumulative_args): Updated.
13483         (function_value_32): Likewise.
13484
13485 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
13486
13487         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
13488
13489 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
13490
13491         PR target/35083
13492         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
13493         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
13494
13495 2008-02-04  Diego Novillo  <dnovillo@google.com>
13496
13497         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
13498
13499         PR 33738
13500         * tree-vrp.c (vrp_evaluate_conditional): With
13501         -Wtype-limits, emit a warning when comparing against a
13502         constant outside the natural range of OP0's type.
13503
13504 2008-02-04  Richard Guenther  <rguenther@suse.de>
13505
13506         PR middle-end/33631
13507         * expr.c (count_type_elements): Give for unions instead of
13508         guessing.
13509
13510 2008-02-04  Richard Guenther  <rguenther@suse.de>
13511
13512         PR middle-end/35043
13513         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
13514         to TYPE_DOMAINs base type instead of using bitsizetype here.
13515
13516 2008-02-03  Jason Merrill  <jason@redhat.com>
13517
13518         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
13519
13520 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13521
13522         PR other/29972
13523         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
13524         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
13525         (RS/6000 and PowerPC Options): Fix typos and markup.
13526         * doc/passes.texi (Tree-SSA passes): Likewise.
13527
13528 2008-02-02  Michael Matz  <matz@suse.de>
13529
13530         PR target/35045
13531         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
13532         from record_last_reg_set_info.
13533         (record_last_reg_set_info): Take an RTX argument, iterate over all
13534         constituent hardregs.
13535         (record_last_set_info, record_opr_changes): Change calls to
13536         new signature or to record_last_reg_set_info_regno.
13537
13538 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
13539
13540         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
13541
13542 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
13543
13544         PR rtl-optimization/34773
13545         * reg-notes.def (EQUAL): Mention significance of combination of
13546         REG_EQUAL and REG_RETVAL.
13547         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
13548         insn that has a REG_RETVAL.
13549
13550 2008-02-01  Roger Sayle  <roger@eyesopen.com>
13551
13552         PR bootstrap/33781
13553         * configure.ac (--enable-fixed-point): Disable unless explicitly
13554         requested on IRIX.
13555         * configure: Regenerate.
13556
13557 2008-02-01  Richard Guenther  <rguenther@suse.de>
13558
13559         PR other/35042
13560         * invoke.texi (-finline-limit): Remove no longer true parts
13561         of the documentation.  Note that there is no default value.
13562
13563 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
13564             Mark Mitchell  <mark@codesourcery.com>
13565             Ben Elliston  <bje@au.ibm.com>
13566
13567         PR c/29326
13568         * doc/extend.texi (Other Builtins): Document.
13569
13570 2008-01-31  Tom Browder <tom.browder@gmail.com>
13571
13572         * doc/c-tree.texi (Types): Fix grammar.
13573         (Expression trees): Ditto.
13574         * doc/passes.texi (Tree-SSA passes): Ditto.
13575         
13576         * doc/configterms.texi (Configure Terms): Fix typo.
13577         * doc/cpp.texi (Common Predefined Macros): Ditto.
13578         * doc/md.texi (Machine Constraints): Ditto.
13579         
13580         * doc/makefile.texi (Makefile): Add comma.
13581
13582 2008-01-31  Tom Browder  <tom.browder@gmail.com>
13583             Gerald Pfeifer  <gerald@pfeifer.com>
13584         
13585         * doc/sourcebuild.texi (Front End): Remove references to CVS
13586         and CVSROOT/modules.
13587         (Texinfo Manuals): Replace reference to CVS by one to SVN.
13588         (Back End): Remove reference to CVS.
13589
13590 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
13591
13592         PR target/34900
13593         * config/mips/mips.c (gen_load_const_gp): New function, taking a
13594         comment from...
13595         (mips16_gp_pseudo_reg): ...here.
13596         * config/mips/mips.md (load_const_gp): Replace with...
13597         (load_const_gp_<mode>): ...this :P-based insn.
13598
13599 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13600
13601         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
13602         options. Minor fixes.
13603         (-std): Move reference to standards closer to where language
13604         standards are first mentioned.
13605         
13606 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
13607
13608         PR rtl-optimization/34995
13609         * reload.c (alternative_allows_const_pool_ref): Take an rtx
13610         parameter and return a bool.  If the rtx parameter is nonnull,
13611         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
13612         (find_reloads): Update call accordingly.  Pass the new operand
13613         if it needed no address reloads, otherwise pass null.
13614
13615 2008-01-30  Richard Henderson  <rth@redhat.com>
13616
13617         PR c/34993
13618         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
13619         for unbounded arrays.
13620
13621 2008-01-30  Silvius Rus  <rus@google.com>
13622
13623         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
13624
13625 2008-01-30  Jan Hubicka  <jh@suse.cz>
13626
13627         PR target/34982
13628         * i386.c (init_cumulative_args): Use real function declaration when
13629         calling locally.
13630
13631 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
13632
13633         PR rtl-optimization/34998
13634         * global.c (build_insn_chain): Treat non-subreg_lowpart
13635         SUBREGs of pseudos as clobbering all the words covered by the
13636         SUBREG, not just all the bytes.
13637         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
13638         original df_ref rather than an extract parameter.
13639         (global_conflicts): Update call accordingly.
13640
13641 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
13642
13643         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
13644         the overflow check to make it easier to read.
13645         (__fixtfdi): Change the type of the ll member in union
13646         long_double to UDItype_x.
13647
13648 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
13649
13650         PR middle-end/34969
13651         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
13652         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
13653         * tree-inline.c (fold_marked_statements): Call
13654         cgraph_update_edges_for_call_stmt if folding a call statement.
13655         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
13656         debug_generic_stmt calls, reset it back afterwards.
13657
13658         PR c/35017
13659         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
13660         static decls.
13661         * c-typeck.c (build_external_ref): Don't pedwarn about
13662         static vars in current function's scope.
13663
13664 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
13665
13666         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
13667
13668 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
13669
13670         PR c/35002
13671         * ipa-struct-reorg.c: Fix spelling.
13672         * params.def: Ditto.
13673
13674 2008-01-29  Richard Guenther  <rguenther@suse.de>
13675
13676         PR middle-end/35006
13677         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
13678         field.
13679         * tree-inline.c (remap_type): Increment remapping_type_depth
13680         around remapping types.
13681         (copy_body_r): Only add referenced variables if they are referenced
13682         from code, not types.
13683
13684 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
13685
13686         PR c++/34055
13687         PR c++/34103
13688         PR c++/34219
13689         PR c++/34606
13690         PR c++/34753
13691         PR c++/34754
13692         PR c++/34755
13693         PR c++/34919
13694         PR c++/34961
13695         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
13696         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
13697
13698 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
13699
13700         PR target/34412
13701         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
13702         pointer for tiny stack.
13703
13704 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
13705
13706         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
13707
13708 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
13709
13710         * config/vx-common.h: Fix typo in comment.
13711
13712 2008-01-28  Ian Lance Taylor  <iant@google.com>
13713
13714         PR c++/34862
13715         PR c++/33407
13716         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13717         coalesce pointers if they have different DECL_NO_TBAA_P values.
13718         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
13719         between variables with different DECL_NO_TBAA_P values.
13720
13721 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
13722
13723         PR 31535
13724         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
13725         are not legitimate small data references on SPE targets.
13726
13727 2008-01-28  David Daney  <ddaney@avtrex.com>
13728
13729         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
13730
13731 2008-01-28  David Daney  <ddaney@avtrex.com>
13732
13733         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
13734
13735 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
13736
13737         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
13738         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
13739         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
13740         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
13741         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
13742         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
13743         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
13744         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
13745
13746 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
13747
13748         * basic-block.h (condjump_equiv_p): Fix comment.
13749
13750 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
13751
13752         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
13753         print_generic_stmt_indented): Fix comment.
13754
13755 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
13756
13757         * configure.ac (__stack_chk_fail): Add detecion for availability
13758         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
13759         * configure: Regenerate.
13760
13761 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
13762
13763         PR middle-end/34688
13764         * final.c (output_addr_const): Handle TRUNCATE.
13765
13766 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
13767
13768         PR target/34711
13769         * tree-ssa-loop-ivopts.c (comp_cost): New type.
13770         (zero_cost, infinite_cost): New constants.
13771         (struct cost_pair): Change type of cost to comp_cost.
13772         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
13773         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
13774         New functions.
13775         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
13776         split_address_cost, ptr_difference_cost, difference_cost,
13777         get_computation_cost_at, get_computation_cost,
13778         determine_use_iv_cost_generic, determine_use_iv_cost_address,
13779         determine_use_iv_cost_condition, determine_use_iv_costs,
13780         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
13781         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
13782         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
13783         Change type of cost to comp_cost.
13784         (determine_iv_cost): Increase cost of non-original ivs, instead
13785         of decreasing the cost of original ones.
13786         (get_address_cost): Indicate the complexity of the addressing mode 
13787         in comp_cost.
13788         (try_add_cand_for): Prefer using ivs not specific to some object.
13789         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
13790
13791 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
13792             Janis Johnson  <janis187@us.ibm.com>
13793
13794         PR target/34814
13795         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
13796         (TARGET_INSTANTIATE_DECLS): Likewise.
13797         * target.h (expand_to_rtl_hook): New target hook.
13798         (instantiate_decls): Likewise.
13799         * function.c (instantiate_decl): Make non-static.  Rename to...
13800         (instantiate_decl_rtl): ... this.
13801         (instantiate_expr): Use instantiate_decl_rtl.
13802         (instantiate_decls_1): Likewise.
13803         (instantiate_decls): Likewise.
13804         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
13805         * function.h (instantiate_decl_rtl): Add prototype.
13806         * cfgexpand.c (target.h): New include.
13807         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
13808         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
13809         (TARGET_INSTANTIATE_DECLS): Likewise.
13810         (TARGET_INITIALIZER): New target hooks added.
13811         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
13812         New prototype.
13813         * config/rs6000/rs6000.c (tree-flow.h): New include.
13814         (machine_function): Add sdmode_stack_slot field.
13815         (rs6000_alloc_sdmode_stack_slot): New function.
13816         (rs6000_instantiate_decls): Likewise.
13817         (rs6000_secondary_memory_needed_rtx): Likewise.
13818         (rs6000_check_sdmode): Likewise.
13819         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
13820         (TARGET_INSTANTIATE_DECLS): Likewise.
13821         (rs6000_hard_regno_mode_ok): Allow SDmode.
13822         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
13823         (rs6000_emit_move): Handle SDmode.
13824         (function_arg_advance): Likewise.
13825         (function_arg): Likewise.
13826         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
13827         SDmode var args for 32-bit compiles.
13828         (rs6000_secondary_reload_class): Handle SDmode.
13829         (rs6000_output_function_epilogue): Likewise.
13830         (rs6000_function_value): Simplify if statement.
13831         (rs6000_libcall_value): Likewise.
13832         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
13833         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
13834         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
13835         (movsd_hardfloat): New define_insn.
13836         (movsd_softfloat): Likewise.
13837         (movsd_store): Likewise.
13838         (movsd_load): Likewise.
13839         (extendsddd2): Likewise.
13840         (extendsdtd2): Likewise.
13841         (truncddsd2): Likewise.
13842         (movdd_hardfloat64): Fixup comment.
13843         (UNSPEC_MOVSD_LOAD): New constant.
13844         (UNSPEC_MOVSD_STORE): Likewise.
13845
13846 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
13847
13848         PR c++/34965
13849         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
13850         TRUTH_XOR_EXPR.
13851         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
13852         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
13853         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
13854         and TRUTH_XOR_EXPR.
13855
13856 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
13857
13858         PR target/34794
13859         * config.gcc: Separate AIX 5.3 from AIX 6.1.
13860         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
13861         __LONGDOUBLE128 too.
13862         * config/rs6000/aix61.h: New file.
13863
13864 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
13865
13866         PR rtl-optimization/34959
13867         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
13868         popcount and parity rtxes the same mode as their operand.
13869         Truncate or extend the result to the return value's mode
13870         if necessary.
13871
13872 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
13873
13874         PR target/34981
13875         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
13876         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
13877         to GOT_VERSION_REGNUM.
13878         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
13879         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
13880         * config/mips/mips.c (mips_emit_call_insn): New function.
13881         (mips_call_tls_get_addr): Call mips_expand_call directly.
13882         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
13883         emit_call_insn.
13884         (mips16_build_call_stub): Likewise.  Return the call insn or null.
13885         (mips_expand_call): Update the call to mips16_build_call_stub
13886         accordingly and a remove redundant condition.  Assert that MIPS16
13887         stubs do not use lazy binding.  Use mips_emit_call_insn and return
13888         the call insn.
13889         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
13890         TARGET_USE_GOT.
13891         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
13892         (mips_avoid_hazard): Remove hazard_set handling.
13893         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
13894         (UNSPEC_RESTORE_GP): ...this.
13895         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
13896         (FAKE_CALL_REGNO): Rename to...
13897         (GOT_VERSION_REGNUM): ...this.
13898         (type): Add "ghost" value.  Add an associated insn reservation.
13899         (hazard_set): Remove.
13900         (exception_receiver): Rename to...
13901         (restore_gp): ...this and update the unspec identifier accordingly.
13902         (exception_receiver, nonlocal_got_receiver): New expanders.
13903         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
13904         FAKE_CALL_REGNO.  Remove hazard_set attribute.
13905         (set_got_version, update_got_version): New patterns.
13906
13907 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
13908
13909         PR target/34970
13910         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
13911
13912 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
13913
13914         PR other/31955
13915         * doc/install.texi2html: Generate gcc-vers.texi.
13916
13917 2008-01-25  DJ Delorie  <dj@redhat.com>
13918
13919         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13920
13921 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
13922
13923         * config/c4x: Remove directory.
13924         * config.gcc (crx-*, mt-*): Mark obsolete.
13925         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
13926         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
13927         sh-*-rtemscoff*): Remove cases.
13928         * defaults.h (C4X_FLOAT_FORMAT): Remove.
13929         * real.c (encode_c4x_single, decode_c4x_single,
13930         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
13931         c4x_extended_format): Remove.
13932         * real.h (c4x_single_format, c4x_extended_format): Remove.
13933         * doc/extend.texi (interrupt, naked): Remove mention of attributes
13934         on C4x.
13935         (Pragmas): Remove comment about c4x pragmas.
13936         * doc/install.texi (c4x): Remove target-specific instructions.
13937         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
13938         * doc/md.texi (Machine Constraints): Remove C4x documentation.
13939         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
13940         refer to C4x source files as examples.
13941         (C4X_FLOAT_FORMAT): Remove documentation.
13942
13943 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
13944
13945         * config/bfin/bfin.c (override_options): Reorder tests so that
13946         flag_pic gets enabled for -msep-data.
13947
13948 2008-01-25  Richard Guenther  <rguenther@suse.de>
13949
13950         PR middle-end/32244
13951         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
13952         to its bitfield precision if required.
13953
13954 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
13955
13956         PR middle-end/33880
13957         * tree-nested.c (walk_omp_for): New function.
13958         (convert_nonlocal_reference, convert_local_reference): Call
13959         walk_omp_for on OMP_FOR.
13960         (convert_call_expr): Call walk_body on OMP_FOR's
13961         OMP_FOR_PRE_INIT_BODY.
13962
13963 2008-01-25  Richard Guenther  <rguenther@suse.de>
13964
13965         PR tree-optimization/34966
13966         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
13967         default defs and PHI_NODEs we have to insert after the
13968         defining statement.
13969
13970 2008-01-24  Nick Clifton  <nickc@redhat.com>
13971
13972         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
13973         Provide a default definition.
13974         (LIBGCC2_UNITS_PER_WORD): Likewise.
13975
13976         * config/stormy16/stormy16.c: Include df.h for the prototype
13977         for df_regs_ever_live_p.
13978         (xstormy16_expand_builtin_va_start): Convert the stack offset
13979         into a component_ref and then use POINTER_PLUS_EXPR to add it
13980         to the incoming_virtual_args_rtx.
13981         (xstormy16_gimplify_va_arg_expr): Rename to
13982         xstormy16_gimplify_va_arg_expr.
13983         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
13984         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
13985         xstormy16_gimplify_va_arg_expr.
13986         Fix up some formatting issues.
13987
13988         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
13989         Move to predicates.md.
13990         (xs_hi_general_operand): Likewise.
13991         (xs_hi_nonmemory_operand): Likewise.
13992         * config/stormy16/predicates.md:
13993         (xstormy16_carry_plus_operand): New predicate.
13994         (xs_hi_general_operand): New predicate.
13995         (xs_hi_nonmemory_operand): New predicate.
13996         * config/stormy16/stormy16-protos.h:
13997         (xstormy16_carry_plus_operand): Delete prototype.
13998         (xs_hi_general_operand): Likewise.
13999         (xs_hi_nonmemory_operand): Likewise.
14000
14001         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
14002         modifiers as they are no longer needed and they can trigger
14003         reload spill failures.
14004
14005         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
14006         with a match_operand in order to help reload.
14007
14008         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
14009         constraint with 'e' for the 8th alternative as this version of
14010         the mov.w instruction only accepts the lower 8 registers.
14011
14012 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
14013
14014         PR target/34856
14015         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
14016         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
14017         vector elements.
14018
14019 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
14020
14021         PR middle-end/33333
14022         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
14023
14024 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
14025
14026         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
14027         New functions.
14028         (remove_structure): Update allocations list before removing structure.
14029         
14030 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
14031
14032         * ipa-struct-reorg.c (is_safe_cond_expr, 
14033         create_new_stmts_for_cond_expr): Use integer_zerop function,
14034         that recognize not only zero-pointer, but zero-integer too.
14035
14036 2008-01-25  Ben Elliston  <bje@au.ibm.com>
14037
14038         PR other/22232
14039         * fixproto: Escape "." in sed expression that strips leading "./".
14040
14041 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
14042
14043         PR driver/34904
14044         * gcc.c (SWITCH_OK): Removed.
14045         (SWITCH_LIVE): Changed to bit.
14046         (SWITCH_FALSE): Likewise.
14047         (SWITCH_IGNORE): Likewise.
14048         (switchstr): Change live_cond to unsigned int.
14049         (process_command): Replace SWITCH_OK with 0.
14050         (do_self_spec): Likewise.
14051         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
14052         (give_switch): Likewise.
14053         (used_arg): Likewise.
14054         (do_spec_1): Set the SWITCH_IGNORE bit.
14055         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
14056         bits.  Set the SWITCH_LIVE bit.
14057
14058 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
14059
14060         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
14061
14062 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
14063
14064         PR tree-optimization/34472
14065         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
14066         parameter to a "bool *" and set *DATA to false if there is
14067         an unsafe access.  Do not delete the structure here.
14068         (check_cond_exprs): Delete it here instead.
14069         (check_cond_exprs, exclude_cold_structs): Do not increase
14070         I when removing a structure.
14071
14072 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
14073
14074         PR target/34856
14075         * config/i386/i386.c (ix86_expand_vector_init): Consider only
14076         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
14077
14078 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
14079
14080         PR middle-end/34934
14081         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
14082         a fixed vector for stack.
14083
14084 2008-01-24  Ben Elliston  <bje@au.ibm.com>
14085
14086         PR c++/25701
14087         * doc/gcc.texi (Software development): Add a direntry for g++.
14088         
14089 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
14090
14091         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
14092         stale and straggling -fforce-addr comments above.
14093
14094         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
14095         define.
14096         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
14097         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
14098
14099 2008-01-23  Michael Matz  <matz@suse.de>
14100
14101         PR debug/34895
14102         * dwarf2out.c (force_type_die): Use modified_type_die instead of
14103         gen_type_die.
14104
14105 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
14106
14107         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
14108         malloc result type.
14109
14110 2008-01-23 Anatoly Sokolov <aesok@post.ru>
14111
14112         * config/avr/avr.c (avr_current_arch): New variable.
14113         (avr_arch_types): Add 'avr31' and 'avr51' entries.
14114         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
14115         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
14116         (avr_override_options): Init 'avr_current_arch'. 
14117         (base_arch_s): Move from here...
14118         * config/avr/avr.h (base_arch_s): ... here. Add new members 
14119         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
14120         'mega' to 'have_jmp_call'.
14121         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
14122         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
14123         macros.
14124         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
14125         architectures.
14126         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
14127         MULTILIB_MATCHES): (Ditto.).
14128
14129 2008-01-23  Richard Guenther  <rguenther@suse.de>
14130
14131         PR middle-end/31529
14132         * cgraphunit.c (cgraph_reset_node): Always mark the node
14133         not reachable if it is not queued already.
14134
14135 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
14136
14137         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
14138         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
14139         (cputype_selected): New static variable.
14140         (bfin_handle_option): Set it if -mcpu is used.
14141         (override_option): Select default set of workarounds if no cpu type
14142         selected on the command line.
14143         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
14144
14145         From  Michael Frysinger  <michael.frysinger@analog.com>
14146         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
14147         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
14148
14149         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
14150         for bf547, bf523, bf524, and bf526.
14151         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
14152         bf526.
14153         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
14154         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
14155         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
14156         __ADSPBF547__ and __ADSPBF54x__ for bf547.
14157         * doc/invoke.texi (Blackfin Options): Document that
14158         -mcpu now accept bf547, bf523, bf524, and bf526.
14159
14160 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
14161
14162         PR rtl-optimization/34628
14163         * combine.c (try_combine): Stop and undo after the first combination
14164         if an autoincrement side-effect on the first insn has effectively
14165         been lost.
14166
14167 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
14168
14169         PR target/34529
14170         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
14171         Offset addresses are not valid for Altivec or paired float modes.
14172
14173 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
14174
14175         PR c++/34607
14176         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
14177         if DECL_INITIAL (decl) is error_mark_node.
14178
14179         PR c++/34914
14180         * c-common.c (handle_vector_size_attribute): Only allow
14181         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
14182         the same way as pointer, array etc. types.
14183         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
14184
14185         PR c++/34917
14186         * tree.c (build_type_attribute_qual_variant): Call
14187         build_qualified_type if attributes are equal, but quals are not.
14188
14189 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14190
14191         PR 32102
14192         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
14193         * flags.h (warn_strict_aliasing): Remove.
14194         (warn_strict_overflow): Remove.
14195         * opts.c (warn_strict_aliasing): Remove.
14196         (warn_strict_overflow): Remove.
14197         * c-opts.c (c_common_handle_option): -Wall only sets
14198         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
14199         (c_common_post_options): Give default values to -Wstrict-aliasing
14200         and -Wstrict-overflow if they are uninitialized.
14201         * common.opt (Wstrict-aliasing): Specify Var and Init.
14202         (Wstrict-overflow): Likewise.
14203
14204 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
14205
14206         PR rtl-optimization/26854
14207         PR rtl-optimization/34400
14208         PR rtl-optimization/34884
14209         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
14210         DF_RD->gen.
14211         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
14212         (df_rd_bb_info.expanded_lr_out): Deleted
14213         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
14214         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
14215         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
14216         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
14217         Removed code to allocate, initialize or free expanded_lr_out.
14218         (df_rd_bb_local_compute_process_def): Restructured to make more
14219         understandable.
14220         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
14221         sets if the sets are being trimmed.
14222
14223 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
14224
14225         PR bootstrap/32287
14226         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
14227         (as_vers): Likewise.
14228         * configure: Regenerated.
14229
14230 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14231
14232         PR middle-end/33092
14233         * tree-pass.h (pass_build_alias): New pass.
14234         * tree-ssa-alias.c (gate_build_alias): New.
14235         (pass_build_alias): New.
14236         * passes.c (init_optimization_passes): Add pass_build_alias after
14237         pass_create_structure_vars.
14238
14239 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
14240
14241         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
14242         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
14243         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
14244         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
14245         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
14246         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
14247         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
14248         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
14249         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
14250         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
14251         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
14252         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
14253         * config/s390/s390.md (FP_ALL): New mode iterator.
14254         (_d): New mode attribute.
14255         ("*signbit<mode>2>"): Changed mode of first operand.
14256         ("isinf<mode>2"): Changed mode of first operand.
14257         ("*TDC_insn"): Adaptation for DFP modes.
14258
14259 2008-01-22  Ben Elliston  <bje@au.ibm.com>
14260
14261         * tree.c (check_qualified_type): Improve function description.
14262
14263 2008-01-21  Jason Merrill  <jason@redhat.com>
14264
14265         PR c++/34196
14266         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
14267         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
14268         if it is set.
14269
14270 2008-01-21  DJ Delorie  <dj@redhat.com>
14271
14272         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
14273         return zero.
14274
14275 2008-01-21  Richard Guenther  <rguenther@suse.de>
14276
14277         PR middle-end/34856
14278         * tree-cfg.c (verify_expr): Allow all invariant expressions
14279         instead of just constant class ones as reference argument.
14280         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
14281         like any other constant.
14282         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
14283
14284 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
14285
14286         * regmove.c (fixup_match_1): Update call crossed frequencies.
14287
14288 2008-01-21  Richard Guenther  <rguenther@suse.de>
14289
14290         PR c/34885
14291         * tree-inline.c (setup_one_parameter): Deal with mismatched
14292         types using a VIEW_CONVERT_EXPR.
14293
14294 2008-01-21  Alon Dayan  <alond@il.ibm.com>
14295             Olga Golovanevsky  <olga@il.ibm.com>
14296         
14297         PR tree-optimization/34701
14298         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
14299         when the structure size is not a power of 2.
14300
14301 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
14302
14303         * doc/install.texi: Add doc for --enable-checking=df.
14304         
14305 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14306
14307         PR rtl-optimization/34808
14308         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
14309
14310 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
14311
14312         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
14313         input.
14314
14315 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
14316
14317         PR rtl-optimization/26854
14318         PR rtl-optimization/34400
14319         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
14320         DF_RD->gen.
14321         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
14322         (df_rd_bb_info.expanded_lr_out): New.
14323         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
14324         * loop_iv.c (iv_analysis_loop_init): Ditto.
14325         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
14326         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
14327         Added code to allocate, initialize or free expanded_lr_out.
14328         (df_rd_bb_local_compute_process_def): Restructured to make
14329         more understandable.
14330         (df_rd_confluence_n): Add code to do nothing with fake edges and
14331         code to no apply invalidate_by_call sets if the sets are being trimmed.
14332         (df_lr_local_finalize): Renamed to df_lr_finalize.
14333         (df_live_local_finalize): Renamed to df_live_finalize.
14334
14335 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
14336
14337         PR target/34831
14338         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
14339         deciding whether to use reciprocal instructions.
14340
14341 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
14342
14343         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
14344         dwarf2out_note_section_used if cold_text_section is NULL.
14345
14346 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
14347
14348         PR gcov-profile/34610
14349         * tree-cfg.c (make_edges): Mark both outgoing edges from
14350         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
14351         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
14352         from OMP_FOR and OMP_CONTINUE outgoing edges.
14353
14354         * tree-profile.c (tree_profiling): Return early if
14355         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
14356         at the end.
14357         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
14358         from cfun to child_cfun.
14359         * function.h (struct function): Add after_tree_profile bit.
14360
14361 2008-01-19 Anatoly Sokolov <aesok@post.ru>
14362
14363         * config/avr/avr.S (_exit): Disable interrupt.
14364
14365 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
14366             Steven Bosscher  <stevenb.gcc@gmail.com>
14367
14368         PR rtl-optimization/26854
14369         PR rtl-optimization/34400
14370         * df-problems.c (df_live_scratch): New scratch bitmap.
14371         (df_live_alloc): Allocate df_live_scratch when doing df_live.
14372         (df_live_reset): Clear the proper bitmaps.
14373         (df_live_bb_local_compute): Only process the artificial defs once
14374         since the order is not important.
14375         (df_live_init): Init the df_live sets only with the variables
14376         found live by df_lr.
14377         (df_live_transfer_function): Use the df_lr sets to prune the
14378         df_live sets as they are being computed.  
14379         (df_live_free): Free df_live_scratch.
14380
14381 2008-01-18  Ian Lance Taylor  <iant@google.com>
14382
14383         * common.opt: Add fmerge-debug-strings.
14384         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
14385         flag_merge_debug_strings rather than flag_merge_constants.
14386         * doc/invoke.texi (Option Summary): Mention
14387         -fmerge-debug-strings.
14388         (Debugging Options): Document -fmerge-debug-strings.
14389
14390 2008-01-18  Ian Lance Taylor  <iant@google.com>
14391
14392         PR c++/33407
14393         * tree.h (DECL_IS_OPERATOR_NEW): Define.
14394         (struct tree_function_decl): Add new field operator_new_flag.
14395         * tree-inline.c (expand_call_inline): When inlining a call to
14396         operator new, force the return value to go into a variable, and
14397         set DECL_NO_TBAA_P on that variable.
14398         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
14399
14400 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
14401
14402         PR debug/34484
14403         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
14404         DWARF2_DEBUGGING_INFO.
14405         (dwarf2out_note_section_used): Ditto.  Add prototype.
14406         (have_multiple_function_sections, text_section_used,
14407         cold_text_section_used, *cold_text_sections): Move declarations
14408         before their uses.
14409
14410 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
14411
14412         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
14413         field and add signal_ra.
14414         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
14415         assignments to frame state pc.  Move end of stack check after
14416         MD_FALLBACK_FRAME_STATE_FOR.
14417         (uw_update_context_1): Use frame state signal_regs if set, instead
14418         of checking signal_frame flag.
14419         (uw_update_context): Use frame state signal_ra if set.
14420         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
14421         * config/xtensa/linux-unwind.h: New file.
14422
14423 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
14424
14425         * modulo-sched.c (get_sched_window): Fix comment typo.
14426
14427 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
14428
14429         PR tree-optimization/34648
14430         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
14431
14432 2008-01-17  Anatoly Sokolov <aesok@post.ru>
14433
14434         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
14435         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
14436
14437 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
14438
14439         PR rtl-optimization/34400
14440         * df-core.c (df_worklist_dataflow_overeager,
14441         df_worklist_dataflow_doublequeue): New functions.
14442         (df_worklist_dataflow): Two different worklist solvers.
14443         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
14444         New param.
14445
14446 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14447
14448         PR testsuite/34821
14449         * doc/invoke.texi: Document the dependence on pthread for fopenmp
14450         and ftree-parallelize-loops.
14451
14452 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
14453
14454         PR rtl-optimization/34826
14455         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
14456
14457 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
14458
14459         * global.c (find_reg): Mark the eh regs as used if necessary.
14460         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
14461         * ra.h (struct allocno): no_eh_reg field added.  Changed
14462         no_stack_reg type to bitfield.
14463
14464 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
14465
14466         * tree.c (substitute_in_expr): Add missing 'break'.
14467
14468 2008-01-17  Richard Guenther  <rguenther@suse.de>
14469
14470         PR tree-optimization/34825
14471         * tree-ssa-math-opts.c (is_division_by): Do not recognize
14472         x / x as division to handle.
14473
14474 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14475
14476         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
14477         "-pthread" is specified.
14478         * pa-hpux11.h (LIB_SPEC): Likewise.
14479
14480 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
14481             Peter Bergner  <bergner@vnet.ibm.com>
14482
14483         PR rtl-optimization/33796
14484         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
14485
14486 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14487
14488         PR libgfortran/34699
14489         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
14490         static links.
14491         * pa-hpux10.h (LINK_SPEC): Likewise.
14492         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
14493
14494 2008-01-16  Richard Guenther  <rguenther@suse.de>
14495
14496         PR middle-end/32628
14497         * fold-const.c (fold_convert_const_int_from_int): Do not
14498         set overflow if that occured only because of a sign extension
14499         change when converting from/to a sizetype with the same
14500         precision and signedness.
14501
14502 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
14503
14504         PR debug/34249
14505         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
14506         location address to the correct place.  Update copyright year.
14507
14508 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14509
14510         * lambda-code.c (lambda_transform_legal_p): Handle the case of
14511         no dependences in the dependence_relations vector.
14512
14513 2008-01-16  Jan Hubicka  <jh@suse.cz>
14514
14515         PR rtl-optimization/31396
14516         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
14517         * cfg.c (dump_reg_info): Print it.
14518         * regs.h (struct reg_info_t): add freq_calls_crossed.
14519         (REG_FREQ_CALLS_CROSSED): New macro.
14520         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
14521         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
14522         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
14523         regmove_optimize): Update call crossed frequencies.
14524         * local-alloc.c (struct qty): Add freq_calls_crossed.
14525         (alloc_qty): Copute freq_calls_crossed.
14526         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
14527         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
14528         * ra.h (struct allocno): Add freq_calls_crossed.
14529
14530 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14531
14532         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
14533         libgomp when compiling with ftree-parallelize-loops.
14534         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
14535
14536 2008-01-16  Richard Guenther  <rguenther@suse.de>
14537
14538         PR tree-optimization/34769
14539         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
14540         * tree.c (int_cst_value): Instead make this function more
14541         permissive in what it accepts as valid input.  Document this
14542         function always sign-extends the value.
14543
14544 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
14545             Richard Guenther  <rguenther@suse.de>
14546
14547         PR c/34668
14548         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
14549         (gimple_fold_indirect_ref_rhs): ... this.
14550         (gimple_fold_indirect_ref): New function with foldings
14551         that preserve lvalueness.
14552         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
14553         * tree-flow.h (gimple_fold_indirect_ref): Declare.
14554         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
14555         to fold an INDIRECT_REF, fall back to the old use of
14556         fold_indirect_ref_1.
14557
14558 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14559
14560         * tree-data-ref.c (subscript_dependence_tester_1): Call 
14561         free_conflict_function.
14562         (compute_self_dependence): Same.
14563
14564 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
14565
14566         PR debug/34249
14567         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
14568         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
14569         function global.
14570         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
14571         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
14572         for DWARF2_UNWIND_INFO targets.
14573
14574 2008-01-16  Richard Guenther  <rguenther@suse.de>
14575
14576         PR c/34768
14577         * c-typeck.c (common_pointer_type): Do not merge inconsistent
14578         type qualifiers for function types.
14579
14580 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
14581
14582         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
14583         loop_iterator li from previous commit.
14584
14585 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
14586
14587         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
14588
14589 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
14590
14591         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
14592         (parallelize_loops): Don't parallelize irreducible components.
14593
14594 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14595
14596         PR c++/24924
14597         * c-opts (c_common_post_options): Do not enable CPP
14598         flag_pedantic_errors by default.
14599         
14600 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
14601
14602         PR rtl-optimization/31944
14603         * cse.c (remove_pseudo_from_table): New function.
14604         (merge_equiv_classes): Use above function to remove pseudo-registers.
14605         (invalidate): Likewise.
14606
14607 2008-01-13  Richard Guenther  <rguenther@suse.de>
14608
14609         PR middle-end/34601
14610         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
14611         instead of TYPE_MODE to deal with calls from expand_one_error_var.
14612
14613 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
14614
14615         * gcse.c (cprop_jump): Call validate_unshare_change instead of
14616         validate_change to unshare the source of the PC set.
14617
14618 2008-01-12  Jan Hubicka  <jh@suse.cz>
14619
14620         PR middle-end/32135
14621         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
14622         references above array bounds.  This might trigger bounds checks for
14623         pointers to arrays.
14624
14625 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
14626
14627         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
14628         new_replaceable_dependencies.
14629
14630 2008-01-12  Doug Kwan  <dougkwan@google.com>
14631
14632         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
14633         instead of OPT_Wreturn_type in warning due to ignored return type
14634         qualifiers.
14635         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
14636         options included in -Wextra.
14637         * c.opt: New option -Wignored_qualifiers.
14638         * doc/invoke.texi (Warning Options, -Wextra): Add new option
14639         -Wignore_qualifiers.
14640         (-Wignored-qualifiers): Document.
14641         (-Wreturn-type): Remove description of functionality now handled
14642         by -Wignored-qualifiers.
14643
14644 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
14645
14646         PR ada/33788
14647         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
14648         NOP_EXPR if it is between integral types with the same precision.
14649
14650 2008-01-12  Jan Hubicka  <jh@suse.cz>
14651
14652         PR other/28023
14653         * invoke.texi (max-inline-recursive-depth): Fix default value.
14654
14655 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
14656
14657         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
14658         correct type.
14659
14660 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
14661         
14662         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
14663         
14664 2008-01-11  James E. Wilson  <wilson@specifix.com>
14665
14666         PR target/26015
14667         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
14668
14669 2008-01-11  Anatoly Sokolov <aesok@post.ru>
14670
14671         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
14672         save/restore frame pointer register and don't use 'call-prologues' 
14673         optimization in function with "OS_task" attribute.
14674
14675 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
14676
14677         PR middle-end/31309
14678         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
14679         when copying to memory.
14680
14681 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
14682
14683         PR rtl-optimization/30905
14684         * cfgcleanup.c: Include dce.h
14685         (crossjumps_occured): New global variable.
14686         (try_crossjump_bb): Exit loop after finding a fallthru edge.
14687         If something changed, set crossjumps_occured to true.
14688         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
14689         Don't add/remove fake edges to exit here...
14690         (cleanup_cfg): ...but do it here, when crossjumping.
14691         Run a fast DCE when successful crossjumps occured in the latest
14692         iteration of try_optimize_cfg.
14693
14694 2008-01-11  Richard Guenther  <rguenther@suse.de>
14695
14696         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
14697         (struct vn_unary_op_s): Likewise.
14698         (vn_reference_insert): Free old reference on hash collision.
14699
14700 2008-01-10  Raksit Ashok  <raksit@google.com>
14701
14702         PR rtl-optimization/27971
14703         * combine.c (find_split_point): Split PLUS expressions which are
14704         inside a MEM rtx, and whose first operand is complex.
14705
14706 2008-01-10  DJ Delorie  <dj@redhat.com>
14707
14708         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
14709         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
14710         (m32c_hard_regno_ok): Call the underlying function.
14711
14712 2008-01-10  Richard Guenther  <rguenther@suse.de>
14713
14714         PR middle-end/34683
14715         * tree-cfg.c (tree_merge_blocks): Do not go through the
14716         full-blown folding and stmt updating path if we just deal
14717         with virtual operands.
14718         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
14719         test for abnormal SSA_NAMEs.
14720
14721 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
14722
14723         PR middle-end/34641
14724         * reload.c (push_reload): Add assertions.  All constants from
14725         reg_equiv_constant should have been used for replacing the respective
14726         pseudo earlier.
14727         (find_reloads_address): Invoke find_reloads_address_part for
14728         constant taken from the reg_equiv_constant array.
14729
14730 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
14731
14732         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
14733         field (valnum) the first in the struct.  Replace bools with
14734         unit bit fields.
14735
14736 2008-01-10  Richard Guenther  <rguenther@suse.de>
14737
14738         PR tree-optimization/34651
14739         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
14740         types and ordering for masking and converting.
14741
14742 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
14743
14744         PR tree-optimization/34017
14745         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
14746         also for PHI_NODE expressions.
14747
14748 2008-01-09  Jan Hubicka  <jh@suse.cz>
14749
14750         PR tree-optimization/34708
14751         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
14752         based on number of case labels.
14753         (init_inline_once): Remove switch_cost.
14754         * tree-inline.h (eni_weights_d): Remove switch_cost.
14755
14756 2008-01-09  Richard Guenther  <rguenther@suse.de>
14757         Andrew Pinski  <andrew_pinski@playstation.sony.com>
14758
14759         PR middle-end/30132
14760         * gimplify.c (gimplify_cond_expr): Do not create an addressable
14761         temporary if an rvalue is ok or an lvalue is not required.
14762
14763 2008-01-09  Richard Guenther  <rguenther@suse.de>
14764
14765         PR middle-end/34458
14766         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
14767         adjust return type.
14768
14769 2008-01-09  Richard Guenther  <rguenther@suse.de>
14770
14771         PR middle-end/34679
14772         * tree.c (host_integerp): Check for sizetype only if the
14773         type is an integer type.
14774
14775 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
14776
14777         PR debug/26364
14778         * opts.c (decode_options): Disable inlining of functions called
14779         once if not in unit-at-a-time mode.
14780
14781 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
14782
14783         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
14784
14785 2008-01-08  Richard Guenther  <rguenther@suse.de>
14786
14787         PR middle-end/31863
14788         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
14789         out early if the result will be unused.
14790
14791 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
14792
14793         PR target/34709
14794         Revert:
14795
14796         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
14797         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
14798         for TARGET_RECIP.       
14799         
14800 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
14801         
14802         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
14803         for vectorization tuned.
14804         
14805 2008-01-08  Richard Guenther  <rguenther@suse.de>
14806
14807         PR tree-optimization/34683
14808         * tree-ssa-operands.c (operand_build_cmp): Export.
14809         * tree-ssa-operands.h (operand_build_cmp): Declare.
14810         * tree-vn.c (vuses_compare): Remove.
14811         (sort_vuses): Use operand_build_cmp.
14812         (sort_vuses_heap): Likewise.
14813         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
14814         to re-use old VEC if available.  Do not sort already sorted VUSEs.
14815         (vdefs_to_vec): Do not sort already sorted VDEFs.
14816
14817 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
14818
14819         PR middle-end/34694
14820         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
14821
14822 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
14823
14824         PR target/34702
14825         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
14826         limitations of reciprocal sequences on x86 targets.
14827
14828 2008-01-08  Richard Guenther  <rguenther@suse.de>
14829
14830         PR tree-optimization/34683
14831         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
14832
14833 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
14834
14835         PR target/34622
14836         * config/darwin.c (darwin_mergeable_string_section): Don't use
14837         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
14838
14839 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
14840
14841         PR target/34682
14842         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
14843         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
14844         predicates of op0 and op1 to register_operand.
14845         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
14846         expander using X87MODEF mode iterator.  Change predicates of
14847         op0 and op1 to register_operand.
14848         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
14849         corresponding patterns and macroize using MODEF macro.  Change
14850         predicates of op0 and op1 to register_operand and remove
14851         "m" constraint. Disparage "r" alternative with "!".
14852         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
14853         macroize using X87MODEF macro.  Change predicates of op0 and op1
14854         to register_operand and remove "m" constraint.  Disparage "r"
14855         alternative with "!".
14856         (absneg splitter with memory operands): Remove.
14857         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
14858         patterns and macroize using X87MODEF mode iterator.
14859         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
14860         Change predicate of op1 to register_operand.
14861         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
14862         for memory operands.
14863
14864 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
14865
14866         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
14867
14868 2008-01-07  Richard Guenther  <rguenther@suse.de>
14869
14870         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
14871         fields.
14872
14873 2008-01-07  Richard Guenther  <rguenther@suse.de>
14874
14875         PR tree-optimization/34683
14876         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
14877         VOPs of the needed size to save memory.  Use VEC_quick_push
14878         to save compile-time.
14879         (vdefs_to_vec): Likewise.
14880
14881 2008-01-07  Sa Liu  <saliu@de.ibm.com>
14882
14883         * config/spu/spu.md (divdf3): Genetate inline code for double
14884         division.  The implementation doesn't handle INF or NAN, therefore it
14885         only applies when -ffinite-math-only is given.
14886
14887 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
14888
14889         PR libstdc++/34680
14890         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
14891         * doc/cpp.texi ([Common Predefined Macros]): Document.
14892
14893 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
14894
14895         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
14896         order to use commutative addition instead of subtraction.
14897
14898 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14899             Mircea Namolaru  <namolaru@il.ibm.com>
14900             Vladimir Yanovsky  <yanov@il.ibm.com>
14901             Revital Eres  <eres@il.ibm.com>
14902
14903         PR tree-optimization/34263
14904         * tree-outof-ssa.c (process_single_block_loop_latch,
14905         contains_tree_r): New functions.
14906         (analyze_edges_for_bb): Call process_single_block_loop_latch
14907         function to empty single-basic-block latch block if possible.
14908
14909 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
14910
14911         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
14912         for TARGET_RECIP.
14913         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
14914
14915 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
14916
14917         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
14918
14919 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
14920
14921         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
14922
14923 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
14924
14925         PR tree-optimization/34618
14926         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
14927         flag from T.
14928
14929 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
14930
14931         PR target/34673
14932         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
14933         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
14934         Update copyright year.
14935
14936         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
14937         Update copyright year.
14938         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
14939         using NR fixup.
14940
14941 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
14942
14943         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
14944         edge does not point to current bb before changing need_assert.
14945
14946 2008-01-04  Richard Guenther  <rguenther@suse.de>
14947
14948         PR middle-end/34029
14949         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
14950         for verifying purposes if they are is_gimple_min_invariant.
14951
14952 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
14953
14954         PR tree-optimization/34448
14955         PR tree-optimization/34465
14956         * gimplify.c (gimplify_init_constructor): Add new parameter
14957         notify_temp_creation.  Use it.
14958         (gimplify_modify_expr_rhs): Take volatiles into account when
14959         optimizing constructors.
14960         Do not optimize constructors if gimplify_init_constructor will dump to
14961         memory.
14962         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
14963         * gcc.c-torture/compile/pr34448.c: New.
14964
14965 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
14966
14967         PR gcov-profile/34609
14968         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
14969         return_slot if result is TREE_ADDRESSABLE.
14970
14971 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
14972
14973         * config/mips/mips.md (sqrt_condition): Tweak comment.
14974         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
14975
14976 2008-01-03  Tom Tromey  <tromey@redhat.com>
14977
14978         PR c/34457
14979         * c-common.c (c_type_hash): Handle VLAs.
14980
14981 2008-01-03  Jan Hubicka  <jh@suse.cz>
14982
14983         PR tree-optimization/31081
14984         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
14985         0 when inlining and not inlining to first basic block.
14986         (remap_decl): When var is initialized to 0, don't set default_def.
14987         (expand_call_inline): Set entry_bb.
14988         * tree-inline.h (copy_body_data): Add entry_bb.
14989
14990 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
14991
14992         PR c++/34619
14993         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
14994         before returning.
14995
14996         PR tree-optimization/29484
14997         * tree-inline.c (inline_forbidden_p_2): New function.
14998         (inline_forbidden_p): Disallow inlining if some static var
14999         has an address of a local LABEL_DECL in its initializer.
15000         * doc/extend.texi (Labels as Values): Document &&foo behaviour
15001         vs. inlining.
15002
15003 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
15004
15005         PR tree-optimization/34635
15006         * tree-data-ref.c (add_other_self_distances): Make sure that the
15007         evolution step is constant.
15008
15009 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
15010
15011         PR middle-end/34608
15012         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
15013
15014 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
15015
15016         * tree-sra.c (scalarize_init): Insert the generate_element_init
15017         statements after the generate_element_zero statements.
15018
15019 2008-01-02  Richard Guenther  <rguenther@suse.de>
15020
15021         PR middle-end/34093
15022         PR middle-end/31976
15023         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
15024         for very large number of operands instead of ICEing.
15025
15026 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
15027
15028         PR target/34013
15029         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
15030         while stack probing.
15031
15032 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
15033
15034         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
15035         in C++0x mode.
15036
15037 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
15038
15039         PR libmudflap/26442
15040         * tree-mudflap.c (mx_register_decls): Guard warning by
15041         !DECL_ARTIFICIAL check.
15042
15043 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
15044
15045         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
15046         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
15047         sse5_perm<mode>): Fix constraints.